@pfct/purple 1.7.0-next.3 → 1.7.0-next.4
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/chunks/index.9fap07Gq.js +60 -0
- package/dist/chunks/index.B-Bfcjo7.js +1 -0
- package/dist/chunks/index.BfjI33ZB.js +41 -0
- package/dist/chunks/{index.Dud5PpT2.js → index.BmifSqQX.js} +26 -26
- package/dist/chunks/{index.BRcoZnsL.js → index.BngGCpBd.js} +1 -1
- package/dist/chunks/{index.B04X8ryw.js → index.BtGja8CI.js} +1 -1
- package/dist/chunks/{index.BKkcGVEJ.js → index.C1WOc90r.js} +81 -81
- package/dist/chunks/index.C3oZfEx6.js +283 -0
- package/dist/chunks/{index.CtswiKeA.js → index.CDVf4iB0.js} +1 -1
- package/dist/chunks/{index.DrALxeqy.js → index.CIUK7hO2.js} +23 -23
- package/dist/chunks/{index.DIsmU7qE.js → index.CVogEmtp.js} +1 -1
- package/dist/chunks/index.CqHp_goI.js +1 -0
- package/dist/chunks/{index.B3rAhBCw.js → index.CskkVMdK.js} +1 -1
- package/dist/chunks/{index.93u2Cu_l.js → index.DIaW0faE.js} +1 -1
- package/dist/chunks/{index.-8MfVPUU.js → index.DVHp5IZe.js} +47 -47
- package/dist/chunks/index.QJBZMz2E.js +5 -0
- package/dist/chunks/index.eYfYnSCV.js +1 -0
- package/dist/chunks/index.ps14_l3u.js +1 -0
- package/dist/components/Accordion/index.cjs.js +1 -1
- package/dist/components/Accordion/index.es.js +176 -176
- package/dist/components/Badge/BaseBadge/index.cjs.js +1 -1
- package/dist/components/Badge/BaseBadge/index.es.js +10 -10
- package/dist/components/Badge/BaseBadge/index.styled.cjs.js +1 -1
- package/dist/components/Badge/BaseBadge/index.styled.es.js +1 -1
- package/dist/components/Badge/IconBadge/index.cjs.js +1 -1
- package/dist/components/Badge/IconBadge/index.es.js +6 -6
- package/dist/components/Badge/TextBadge/index.cjs.js +1 -1
- package/dist/components/Badge/TextBadge/index.es.js +7 -7
- package/dist/components/BottomSheet/BaseBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/BaseBottomSheet/index.es.js +32 -32
- package/dist/components/BottomSheet/NavBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/NavBottomSheet/index.es.js +8 -8
- package/dist/components/BottomSheet/TitleBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/TitleBottomSheet/index.es.js +15 -15
- package/dist/components/Button/BaseButton/index.cjs.js +1 -1
- package/dist/components/Button/BaseButton/index.es.js +4 -4
- package/dist/components/Button/DoubleButton/index.cjs.js +1 -1
- package/dist/components/Button/DoubleButton/index.es.js +6 -6
- package/dist/components/Button/FloatBaseButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatBaseButton/index.es.js +16 -16
- package/dist/components/Button/FloatDoubleButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatDoubleButton/index.es.js +13 -13
- package/dist/components/Button/FloatSingleButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatSingleButton/index.es.js +8 -8
- package/dist/components/Button/SingleButton/index.cjs.js +1 -1
- package/dist/components/Button/SingleButton/index.es.js +3 -3
- package/dist/components/Button/TestButton/index.cjs.js +1 -1
- package/dist/components/Button/TestButton/index.es.js +2 -2
- package/dist/components/Card/index.cjs.js +1 -1
- package/dist/components/Card/index.es.js +7 -7
- package/dist/components/Chips/BasicChips/index.cjs.js +1 -1
- package/dist/components/Chips/BasicChips/index.es.js +8 -8
- package/dist/components/Chips/BasicChips/index.styled.cjs.js +1 -1
- package/dist/components/Chips/BasicChips/index.styled.es.js +1 -1
- package/dist/components/Chips/ChipItem/index.cjs.js +1 -1
- package/dist/components/Chips/ChipItem/index.es.js +31 -34
- package/dist/components/Chips/ChipsFrame/index.cjs.js +1 -1
- package/dist/components/Chips/ChipsFrame/index.es.js +14 -14
- 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/Comment/Group/index.cjs.js +1 -1
- package/dist/components/Comment/Group/index.es.js +3 -3
- package/dist/components/Comment/Item/index.cjs.js +1 -1
- package/dist/components/Comment/Item/index.es.js +6 -6
- package/dist/components/Control/CheckMark/CheckMark.cjs.js +1 -1
- package/dist/components/Control/CheckMark/CheckMark.es.js +3 -3
- package/dist/components/Control/CheckMark/index.cjs.js +1 -1
- package/dist/components/Control/CheckMark/index.es.js +7 -7
- package/dist/components/Control/RadioButton/index.cjs.js +1 -1
- package/dist/components/Control/RadioButton/index.es.js +11 -11
- package/dist/components/Control/Switch/index.cjs.js +1 -1
- package/dist/components/Control/Switch/index.es.js +71 -71
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.es.js +12 -12
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.es.js +12 -12
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.es.js +3 -3
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.es.js +14 -14
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.es.js +18 -18
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.es.js +13 -13
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.es.js +3 -3
- package/dist/components/DatePicker/BaseDatePicker/Month/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/Month/index.es.js +4 -4
- package/dist/components/DatePicker/BaseDatePicker/Week/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/Week/index.es.js +3 -3
- 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 +31 -31
- package/dist/components/DatePicker/RangeDatePickerModal/index.cjs.js +1 -1
- package/dist/components/DatePicker/RangeDatePickerModal/index.es.js +27 -27
- package/dist/components/DatePicker/SingleDatePickerModal/index.cjs.js +1 -1
- package/dist/components/DatePicker/SingleDatePickerModal/index.es.js +14 -14
- package/dist/components/Divider/index.cjs.js +1 -1
- package/dist/components/Divider/index.es.js +17 -17
- package/dist/components/Input/BaseInput/index.cjs.js +1 -1
- package/dist/components/Input/BaseInput/index.es.js +44 -44
- package/dist/components/Input/NumberInput/index.cjs.js +1 -1
- package/dist/components/Input/NumberInput/index.es.js +23 -23
- package/dist/components/Input/PostfixInput/index.cjs.js +1 -1
- package/dist/components/Input/PostfixInput/index.es.js +61 -61
- package/dist/components/Input/ResidentNumberInput/index.cjs.js +1 -1
- package/dist/components/Input/ResidentNumberInput/index.es.js +65 -65
- package/dist/components/Input/TextField/index.cjs.js +1 -1
- package/dist/components/Input/TextField/index.es.js +32 -32
- package/dist/components/Input/common/InputFrame/index.cjs.js +1 -1
- package/dist/components/Input/common/InputFrame/index.es.js +17 -17
- package/dist/components/Input/index.cjs.js +1 -1
- package/dist/components/Input/index.es.js +1 -1
- package/dist/components/LegacyModal/BaseModal/index.cjs.js +1 -1
- package/dist/components/LegacyModal/BaseModal/index.es.js +8 -8
- package/dist/components/LegacyModal/index.cjs.js +1 -1
- package/dist/components/LegacyModal/index.es.js +19 -19
- package/dist/components/List/index.cjs.js +1 -1
- package/dist/components/List/index.es.js +11 -11
- package/dist/components/Loading/ProgressBar/index.cjs.js +1 -1
- package/dist/components/Loading/ProgressBar/index.es.js +3 -3
- package/dist/components/Loading/Skeleton/index.cjs.js +1 -1
- package/dist/components/Loading/Skeleton/index.es.js +5 -5
- package/dist/components/Loading/Spinner/index.cjs.js +1 -1
- package/dist/components/Loading/Spinner/index.es.js +3 -3
- package/dist/components/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.es.js +27 -30
- package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/UnderLineMiniButton/index.es.js +40 -43
- package/dist/components/MiniButton/common/ButtonTag.cjs.js +1 -1
- package/dist/components/MiniButton/common/ButtonTag.es.js +3 -3
- package/dist/components/Modal/index.cjs.js +1 -1
- package/dist/components/Modal/index.es.js +42 -42
- package/dist/components/Navigation/BaseNavigation/index.cjs.js +1 -1
- package/dist/components/Navigation/BaseNavigation/index.es.js +14 -14
- package/dist/components/Navigation/BottomNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/BottomNavigationBar/index.es.js +10 -10
- package/dist/components/Navigation/PageNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/PageNavigationBar/index.es.js +21 -21
- package/dist/components/Navigation/TitleNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/TitleNavigationBar/index.es.js +12 -12
- package/dist/components/Navigation/index.cjs.js +1 -1
- package/dist/components/Navigation/index.es.js +21 -21
- package/dist/components/OverlayRoot/index.cjs.js +1 -1
- package/dist/components/OverlayRoot/index.es.js +6 -6
- package/dist/components/Segment/BaseSegment/index.cjs.js +1 -1
- package/dist/components/Segment/BaseSegment/index.es.js +16 -16
- package/dist/components/Segment/ExtendSegment/index.cjs.js +1 -1
- package/dist/components/Segment/ExtendSegment/index.es.js +18 -18
- package/dist/components/SelectBox/index.cjs.js +1 -1
- package/dist/components/SelectBox/index.es.js +42 -42
- package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/FillTabs/index.es.js +11 -11
- package/dist/components/Tabs/TextTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/TextTabs/index.es.js +18 -18
- package/dist/components/Tag/index.cjs.js +1 -1
- package/dist/components/Tag/index.es.js +7 -8
- package/dist/components/Terms/index.cjs.js +1 -1
- package/dist/components/Terms/index.es.js +26 -26
- package/dist/components/TextArea/index.cjs.js +1 -1
- package/dist/components/TextArea/index.es.js +17 -17
- package/dist/components/Title/index.cjs.js +1 -1
- package/dist/components/Title/index.es.js +12 -12
- package/dist/components/Toast/index.cjs.js +1 -1
- package/dist/components/Toast/index.es.js +4 -4
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +1 -1
- package/dist/components/ui/bottomSheet.cjs.js +1 -1
- package/dist/components/ui/bottomSheet.es.js +92 -92
- package/dist/components/ui/button.cjs.js +1 -1
- package/dist/components/ui/button.es.js +13 -14
- package/dist/components/ui/checkbox.cjs.js +1 -1
- package/dist/components/ui/checkbox.es.js +88 -88
- package/dist/components/ui/dialog.cjs.js +1 -1
- package/dist/components/ui/dialog.es.js +48 -48
- package/dist/components/ui/drawer.cjs.js +2 -2
- package/dist/components/ui/drawer.es.js +159 -159
- package/dist/components/ui/impact-tooltip.cjs.js +1 -1
- package/dist/components/ui/impact-tooltip.es.js +133 -133
- package/dist/components/ui/share-ui.cjs.js +1 -1
- package/dist/components/ui/share-ui.es.js +34 -34
- package/dist/components/ui/tooltip.cjs.js +1 -1
- package/dist/components/ui/tooltip.es.js +138 -138
- package/dist/components/ui/typography.cjs.js +1 -1
- package/dist/components/ui/typography.es.js +3 -3
- package/dist/core/Display/Mobile.cjs.js +1 -1
- package/dist/core/Display/Mobile.es.js +4 -4
- package/dist/core/Display/Pc.cjs.js +1 -1
- package/dist/core/Display/Pc.es.js +4 -4
- package/dist/core/Typography/BaseTypography/index.cjs.js +1 -1
- package/dist/core/Typography/BaseTypography/index.es.js +3 -3
- package/dist/core/Typography/index.cjs.js +1 -1
- package/dist/core/Typography/index.es.js +19 -19
- package/dist/icons/src/icons/index.cjs.js +1 -1
- package/dist/icons/src/icons/index.d.ts +1 -1
- package/dist/icons/src/icons/index.d.ts.map +1 -1
- package/dist/icons/src/icons/index.es.js +4 -4
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/library/BasicForm/index.cjs.js +1 -1
- package/dist/library/BasicForm/index.es.js +10 -10
- package/dist/library/BasicLayout/Body.cjs.js +1 -1
- package/dist/library/BasicLayout/Body.es.js +7 -7
- package/dist/library/BasicLayout/Footer.cjs.js +1 -1
- package/dist/library/BasicLayout/Footer.es.js +71 -71
- package/dist/library/BasicLayout/index.cjs.js +1 -1
- package/dist/library/BasicLayout/index.es.js +35 -35
- package/dist/library/BasicLayout/index.styled.cjs.js +1 -1
- package/dist/library/BasicLayout/index.styled.es.js +1 -1
- package/dist/library/IconWithImage/index.cjs.js +1 -1
- package/dist/library/IconWithImage/index.es.js +4 -4
- package/dist/library/List/BottomSheetItemList/index.cjs.js +1 -1
- package/dist/library/List/BottomSheetItemList/index.es.js +5 -5
- package/dist/library/Lottie/index.cjs.js +1 -1
- package/dist/library/Lottie/index.es.js +47 -47
- package/dist/library/Spacing/index.cjs.js +1 -1
- package/dist/library/Spacing/index.es.js +3 -3
- package/package.json +1 -1
- package/dist/chunks/index.9yN3bH7k.js +0 -283
- package/dist/chunks/index.BTUe9yKh.js +0 -1
- package/dist/chunks/index.Beaq4T1c.js +0 -1
- package/dist/chunks/index.BspO8Abs.js +0 -41
- package/dist/chunks/index.CtIpJqp4.js +0 -5
- package/dist/chunks/index.DcvrUsoU.js +0 -1
- package/dist/chunks/index._MxrBNop.js +0 -60
- package/dist/chunks/index.mCMIO9lL.js +0 -1
- package/dist/chunks/jsx-runtime.B0Vkbtvx.js +0 -14
- package/dist/chunks/jsx-runtime.C63F304d.js +0 -615
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { jsx as M } from "react/jsx-runtime";
|
|
2
|
+
import P from "lottie-web";
|
|
3
3
|
import * as b from "react";
|
|
4
|
-
import { useState as
|
|
5
|
-
import
|
|
6
|
-
import { uuid as
|
|
7
|
-
import { IconWithImage as
|
|
8
|
-
import { AlterImageWrapper as
|
|
9
|
-
var
|
|
4
|
+
import { useState as W, useRef as j, useMemo as _, useEffect as y } from "react";
|
|
5
|
+
import z from "../../hooks/useLayoutIsMobile.es.js";
|
|
6
|
+
import { uuid as C } from "../../utils/uuid.util.es.js";
|
|
7
|
+
import { IconWithImage as D } from "../IconWithImage/index.es.js";
|
|
8
|
+
import { AlterImageWrapper as L, Wrapper as V, Container as q } from "./index.styled.es.js";
|
|
9
|
+
var T = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new WeakMap(), w = 0, x;
|
|
10
10
|
function G(e) {
|
|
11
|
-
return e ? (E.has(e) || (
|
|
11
|
+
return e ? (E.has(e) || (w += 1, E.set(e, w.toString())), E.get(e)) : "0";
|
|
12
12
|
}
|
|
13
13
|
function H(e) {
|
|
14
14
|
return Object.keys(e).sort().filter(
|
|
@@ -17,15 +17,15 @@ function H(e) {
|
|
|
17
17
|
}
|
|
18
18
|
function J(e) {
|
|
19
19
|
const r = H(e);
|
|
20
|
-
let n =
|
|
20
|
+
let n = T.get(r);
|
|
21
21
|
if (!n) {
|
|
22
22
|
const i = /* @__PURE__ */ new Map();
|
|
23
23
|
let c;
|
|
24
|
-
const u = new IntersectionObserver((
|
|
25
|
-
|
|
26
|
-
var
|
|
24
|
+
const u = new IntersectionObserver((s) => {
|
|
25
|
+
s.forEach((t) => {
|
|
26
|
+
var o;
|
|
27
27
|
const h = t.isIntersecting && c.some((f) => t.intersectionRatio >= f);
|
|
28
|
-
e.trackVisibility && typeof t.isVisible > "u" && (t.isVisible = h), (
|
|
28
|
+
e.trackVisibility && typeof t.isVisible > "u" && (t.isVisible = h), (o = i.get(t.target)) == null || o.forEach((f) => {
|
|
29
29
|
f(h, t);
|
|
30
30
|
});
|
|
31
31
|
});
|
|
@@ -34,27 +34,27 @@ function J(e) {
|
|
|
34
34
|
id: r,
|
|
35
35
|
observer: u,
|
|
36
36
|
elements: i
|
|
37
|
-
},
|
|
37
|
+
}, T.set(r, n);
|
|
38
38
|
}
|
|
39
39
|
return n;
|
|
40
40
|
}
|
|
41
|
-
function K(e, r, n = {}, i =
|
|
41
|
+
function K(e, r, n = {}, i = x) {
|
|
42
42
|
if (typeof window.IntersectionObserver > "u" && i !== void 0) {
|
|
43
|
-
const
|
|
43
|
+
const o = e.getBoundingClientRect();
|
|
44
44
|
return r(i, {
|
|
45
45
|
isIntersecting: i,
|
|
46
46
|
target: e,
|
|
47
47
|
intersectionRatio: typeof n.threshold == "number" ? n.threshold : 0,
|
|
48
48
|
time: 0,
|
|
49
|
-
boundingClientRect:
|
|
50
|
-
intersectionRect:
|
|
51
|
-
rootBounds:
|
|
49
|
+
boundingClientRect: o,
|
|
50
|
+
intersectionRect: o,
|
|
51
|
+
rootBounds: o
|
|
52
52
|
}), () => {
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
const { id: c, observer: u, elements:
|
|
56
|
-
return
|
|
57
|
-
t.splice(t.indexOf(r), 1), t.length === 0 && (
|
|
55
|
+
const { id: c, observer: u, elements: s } = J(n), t = s.get(e) || [];
|
|
56
|
+
return s.has(e) || s.set(e, t), t.push(r), u.observe(e), function() {
|
|
57
|
+
t.splice(t.indexOf(r), 1), t.length === 0 && (s.delete(e), u.unobserve(e)), s.size === 0 && (u.disconnect(), T.delete(c));
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
function Q({
|
|
@@ -64,9 +64,9 @@ function Q({
|
|
|
64
64
|
rootMargin: i,
|
|
65
65
|
root: c,
|
|
66
66
|
triggerOnce: u,
|
|
67
|
-
skip:
|
|
67
|
+
skip: s,
|
|
68
68
|
initialInView: t,
|
|
69
|
-
fallbackInView:
|
|
69
|
+
fallbackInView: o,
|
|
70
70
|
onChange: h
|
|
71
71
|
} = {}) {
|
|
72
72
|
var f;
|
|
@@ -76,16 +76,16 @@ function Q({
|
|
|
76
76
|
});
|
|
77
77
|
R.current = h, b.useEffect(
|
|
78
78
|
() => {
|
|
79
|
-
if (l.current === void 0 && (l.current = t),
|
|
79
|
+
if (l.current === void 0 && (l.current = t), s || !m) return;
|
|
80
80
|
let p;
|
|
81
81
|
return p = K(
|
|
82
82
|
m,
|
|
83
|
-
(
|
|
84
|
-
const
|
|
85
|
-
l.current =
|
|
86
|
-
inView:
|
|
87
|
-
entry:
|
|
88
|
-
}), R.current && R.current(
|
|
83
|
+
(A, $) => {
|
|
84
|
+
const F = l.current;
|
|
85
|
+
l.current = A, !(F === void 0 && !A) && (a({
|
|
86
|
+
inView: A,
|
|
87
|
+
entry: $
|
|
88
|
+
}), R.current && R.current(A, $), $.isIntersecting && u && p && (p(), p = void 0));
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
root: c,
|
|
@@ -95,7 +95,7 @@ function Q({
|
|
|
95
95
|
trackVisibility: n,
|
|
96
96
|
delay: r
|
|
97
97
|
},
|
|
98
|
-
|
|
98
|
+
o
|
|
99
99
|
), () => {
|
|
100
100
|
p && p();
|
|
101
101
|
};
|
|
@@ -109,14 +109,14 @@ function Q({
|
|
|
109
109
|
c,
|
|
110
110
|
i,
|
|
111
111
|
u,
|
|
112
|
-
o,
|
|
113
|
-
n,
|
|
114
112
|
s,
|
|
113
|
+
n,
|
|
114
|
+
o,
|
|
115
115
|
r
|
|
116
116
|
]
|
|
117
117
|
);
|
|
118
118
|
const I = (f = g.entry) == null ? void 0 : f.target, d = b.useRef(void 0);
|
|
119
|
-
!m && I && !u && !
|
|
119
|
+
!m && I && !u && !s && d.current !== I && (d.current = I, a({
|
|
120
120
|
inView: !!t,
|
|
121
121
|
entry: void 0
|
|
122
122
|
}), l.current = t);
|
|
@@ -130,10 +130,10 @@ const k = ({
|
|
|
130
130
|
className: i,
|
|
131
131
|
playOnce: c,
|
|
132
132
|
autoplay: u = !1,
|
|
133
|
-
alterImgSrcOnLoad:
|
|
133
|
+
alterImgSrcOnLoad: s,
|
|
134
134
|
lottieFileSrcPath: t
|
|
135
135
|
}) => {
|
|
136
|
-
const [
|
|
136
|
+
const [o, h] = W(null), f = j(null), m = j(C()), S = z(), { ref: R, inView: l } = Q({
|
|
137
137
|
/**
|
|
138
138
|
* 모바일 : 로띠의 높이가 PC와 다르게 작기 때문에 스크롤시 로띠의 play 시작점을 자연스럽게 하기위해 0.4
|
|
139
139
|
* PC : 로띠의 play 시작점이 lottie 끝에 들어왔을때 play하기 위해 value 0.9
|
|
@@ -144,37 +144,37 @@ const k = ({
|
|
|
144
144
|
* 모바일, PC의 높이가 달라 다르게 선언하였습니다.
|
|
145
145
|
*/
|
|
146
146
|
rootMargin: S ? "20% 0% 0% 0%" : "40% 0% 10% 0%"
|
|
147
|
-
}), g =
|
|
147
|
+
}), g = _(
|
|
148
148
|
() => n ? `${n.x ?? 0} ${n.y ?? 0} ${n.width} ${n.height}` : void 0,
|
|
149
149
|
[n]
|
|
150
|
-
), [a, I] =
|
|
151
|
-
return
|
|
150
|
+
), [a, I] = W();
|
|
151
|
+
return y(() => {
|
|
152
152
|
fetch(t).then((d) => d.json()).then((d) => {
|
|
153
153
|
h(d);
|
|
154
154
|
}).catch(() => {
|
|
155
155
|
console.info("lottie load 에 실패했습니다.");
|
|
156
156
|
});
|
|
157
|
-
}, [t]),
|
|
158
|
-
if (!(f.current &&
|
|
157
|
+
}, [t]), y(() => {
|
|
158
|
+
if (!(f.current && o))
|
|
159
159
|
return;
|
|
160
|
-
const d =
|
|
160
|
+
const d = P.loadAnimation({
|
|
161
161
|
container: f.current,
|
|
162
162
|
renderer: "svg",
|
|
163
163
|
loop: !c,
|
|
164
164
|
autoplay: u,
|
|
165
|
-
animationData:
|
|
165
|
+
animationData: o,
|
|
166
166
|
rendererSettings: {
|
|
167
167
|
viewBoxSize: g
|
|
168
168
|
},
|
|
169
169
|
name: i
|
|
170
170
|
});
|
|
171
171
|
return I(d), () => d.destroy();
|
|
172
|
-
}, [
|
|
172
|
+
}, [o, i, u, c, g]), y(() => {
|
|
173
173
|
l ? a?.goToAndPlay(
|
|
174
174
|
a?.currentFrame > 0.9 * a?.totalFrames ? 0 : a?.currentFrame,
|
|
175
175
|
!0
|
|
176
176
|
) : c ? a?.stop() : a?.pause();
|
|
177
|
-
}, [l, a, c]),
|
|
177
|
+
}, [l, a, c]), o === null && s ? /* @__PURE__ */ M(L, { children: /* @__PURE__ */ M(D, { srcPath: s, width: e || 0 }) }) : /* @__PURE__ */ M(V, { ref: R, children: /* @__PURE__ */ M(q, { className: i, height: r, id: m.current, ref: f, width: e }) });
|
|
178
178
|
};
|
|
179
179
|
export {
|
|
180
180
|
k as Lottie
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),n=require("./index.styled.cjs.js"),r=({spaceNumber:e})=>i.jsx(n.Spacing,{spaceNumber:e});exports.Spacing=r;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Spacing as p } from "./index.styled.es.js";
|
|
3
|
-
const
|
|
3
|
+
const t = ({ spaceNumber: r }) => /* @__PURE__ */ o(p, { spaceNumber: r });
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
t as Spacing
|
|
6
6
|
};
|
package/package.json
CHANGED
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
import * as a from "react";
|
|
2
|
-
import { P as D, c as m, b as $, d as B, a as H } from "./index.Dud5PpT2.js";
|
|
3
|
-
import { c as Z, u as y } from "./index.DLcqcWxM.js";
|
|
4
|
-
import { u as x } from "./index.DIsmU7qE.js";
|
|
5
|
-
import { D as q, P as K } from "./index.-8MfVPUU.js";
|
|
6
|
-
import { R as U, h as Y, u as z, F as J } from "./index.DrALxeqy.js";
|
|
7
|
-
import { P as h } from "./index.CtswiKeA.js";
|
|
8
|
-
import { j as i } from "./jsx-runtime.C63F304d.js";
|
|
9
|
-
// @__NO_SIDE_EFFECTS__
|
|
10
|
-
function Q(e) {
|
|
11
|
-
const t = /* @__PURE__ */ X(e), n = a.forwardRef((r, o) => {
|
|
12
|
-
const { children: s, ...c } = r, l = a.Children.toArray(s), u = l.find(te);
|
|
13
|
-
if (u) {
|
|
14
|
-
const f = u.props.children, g = l.map((v) => v === u ? a.Children.count(f) > 1 ? a.Children.only(null) : a.isValidElement(f) ? f.props.children : null : v);
|
|
15
|
-
return /* @__PURE__ */ i.jsx(t, { ...c, ref: o, children: a.isValidElement(f) ? a.cloneElement(f, void 0, g) : null });
|
|
16
|
-
}
|
|
17
|
-
return /* @__PURE__ */ i.jsx(t, { ...c, ref: o, children: s });
|
|
18
|
-
});
|
|
19
|
-
return n.displayName = `${e}.Slot`, n;
|
|
20
|
-
}
|
|
21
|
-
// @__NO_SIDE_EFFECTS__
|
|
22
|
-
function X(e) {
|
|
23
|
-
const t = a.forwardRef((n, r) => {
|
|
24
|
-
const { children: o, ...s } = n;
|
|
25
|
-
if (a.isValidElement(o)) {
|
|
26
|
-
const c = ne(o), l = oe(s, o.props);
|
|
27
|
-
return o.type !== a.Fragment && (l.ref = r ? Z(r, c) : c), a.cloneElement(o, l);
|
|
28
|
-
}
|
|
29
|
-
return a.Children.count(o) > 1 ? a.Children.only(null) : null;
|
|
30
|
-
});
|
|
31
|
-
return t.displayName = `${e}.SlotClone`, t;
|
|
32
|
-
}
|
|
33
|
-
var ee = /* @__PURE__ */ Symbol("radix.slottable");
|
|
34
|
-
function te(e) {
|
|
35
|
-
return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ee;
|
|
36
|
-
}
|
|
37
|
-
function oe(e, t) {
|
|
38
|
-
const n = { ...t };
|
|
39
|
-
for (const r in t) {
|
|
40
|
-
const o = e[r], s = t[r];
|
|
41
|
-
/^on[A-Z]/.test(r) ? o && s ? n[r] = (...l) => {
|
|
42
|
-
const u = s(...l);
|
|
43
|
-
return o(...l), u;
|
|
44
|
-
} : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...s } : r === "className" && (n[r] = [o, s].filter(Boolean).join(" "));
|
|
45
|
-
}
|
|
46
|
-
return { ...e, ...n };
|
|
47
|
-
}
|
|
48
|
-
function ne(e) {
|
|
49
|
-
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
50
|
-
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
51
|
-
}
|
|
52
|
-
var R = "Dialog", [O] = $(R), [re, d] = O(R), N = (e) => {
|
|
53
|
-
const {
|
|
54
|
-
__scopeDialog: t,
|
|
55
|
-
children: n,
|
|
56
|
-
open: r,
|
|
57
|
-
defaultOpen: o,
|
|
58
|
-
onOpenChange: s,
|
|
59
|
-
modal: c = !0
|
|
60
|
-
} = e, l = a.useRef(null), u = a.useRef(null), [f, g] = H({
|
|
61
|
-
prop: r,
|
|
62
|
-
defaultProp: o ?? !1,
|
|
63
|
-
onChange: s,
|
|
64
|
-
caller: R
|
|
65
|
-
});
|
|
66
|
-
return /* @__PURE__ */ i.jsx(
|
|
67
|
-
re,
|
|
68
|
-
{
|
|
69
|
-
scope: t,
|
|
70
|
-
triggerRef: l,
|
|
71
|
-
contentRef: u,
|
|
72
|
-
contentId: x(),
|
|
73
|
-
titleId: x(),
|
|
74
|
-
descriptionId: x(),
|
|
75
|
-
open: f,
|
|
76
|
-
onOpenChange: g,
|
|
77
|
-
onOpenToggle: a.useCallback(() => g((v) => !v), [g]),
|
|
78
|
-
modal: c,
|
|
79
|
-
children: n
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
};
|
|
83
|
-
N.displayName = R;
|
|
84
|
-
var I = "DialogTrigger", b = a.forwardRef(
|
|
85
|
-
(e, t) => {
|
|
86
|
-
const { __scopeDialog: n, ...r } = e, o = d(I, n), s = y(t, o.triggerRef);
|
|
87
|
-
return /* @__PURE__ */ i.jsx(
|
|
88
|
-
D.button,
|
|
89
|
-
{
|
|
90
|
-
type: "button",
|
|
91
|
-
"aria-haspopup": "dialog",
|
|
92
|
-
"aria-expanded": o.open,
|
|
93
|
-
"aria-controls": o.contentId,
|
|
94
|
-
"data-state": P(o.open),
|
|
95
|
-
...r,
|
|
96
|
-
ref: s,
|
|
97
|
-
onClick: m(e.onClick, o.onOpenToggle)
|
|
98
|
-
}
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
);
|
|
102
|
-
b.displayName = I;
|
|
103
|
-
var E = "DialogPortal", [se, j] = O(E, {
|
|
104
|
-
forceMount: void 0
|
|
105
|
-
}), A = (e) => {
|
|
106
|
-
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = d(E, t);
|
|
107
|
-
return /* @__PURE__ */ i.jsx(se, { scope: t, forceMount: n, children: a.Children.map(r, (c) => /* @__PURE__ */ i.jsx(h, { present: n || s.open, children: /* @__PURE__ */ i.jsx(K, { asChild: !0, container: o, children: c }) })) });
|
|
108
|
-
};
|
|
109
|
-
A.displayName = E;
|
|
110
|
-
var C = "DialogOverlay", T = a.forwardRef(
|
|
111
|
-
(e, t) => {
|
|
112
|
-
const n = j(C, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = d(C, e.__scopeDialog);
|
|
113
|
-
return s.modal ? /* @__PURE__ */ i.jsx(h, { present: r || s.open, children: /* @__PURE__ */ i.jsx(ie, { ...o, ref: t }) }) : null;
|
|
114
|
-
}
|
|
115
|
-
);
|
|
116
|
-
T.displayName = C;
|
|
117
|
-
var ae = /* @__PURE__ */ Q("DialogOverlay.RemoveScroll"), ie = a.forwardRef(
|
|
118
|
-
(e, t) => {
|
|
119
|
-
const { __scopeDialog: n, ...r } = e, o = d(C, n);
|
|
120
|
-
return (
|
|
121
|
-
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
122
|
-
// ie. when `Overlay` and `Content` are siblings
|
|
123
|
-
/* @__PURE__ */ i.jsx(U, { as: ae, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ i.jsx(
|
|
124
|
-
D.div,
|
|
125
|
-
{
|
|
126
|
-
"data-state": P(o.open),
|
|
127
|
-
...r,
|
|
128
|
-
ref: t,
|
|
129
|
-
style: { pointerEvents: "auto", ...r.style }
|
|
130
|
-
}
|
|
131
|
-
) })
|
|
132
|
-
);
|
|
133
|
-
}
|
|
134
|
-
), p = "DialogContent", S = a.forwardRef(
|
|
135
|
-
(e, t) => {
|
|
136
|
-
const n = j(p, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = d(p, e.__scopeDialog);
|
|
137
|
-
return /* @__PURE__ */ i.jsx(h, { present: r || s.open, children: s.modal ? /* @__PURE__ */ i.jsx(le, { ...o, ref: t }) : /* @__PURE__ */ i.jsx(ce, { ...o, ref: t }) });
|
|
138
|
-
}
|
|
139
|
-
);
|
|
140
|
-
S.displayName = p;
|
|
141
|
-
var le = a.forwardRef(
|
|
142
|
-
(e, t) => {
|
|
143
|
-
const n = d(p, e.__scopeDialog), r = a.useRef(null), o = y(t, n.contentRef, r);
|
|
144
|
-
return a.useEffect(() => {
|
|
145
|
-
const s = r.current;
|
|
146
|
-
if (s) return Y(s);
|
|
147
|
-
}, []), /* @__PURE__ */ i.jsx(
|
|
148
|
-
M,
|
|
149
|
-
{
|
|
150
|
-
...e,
|
|
151
|
-
ref: o,
|
|
152
|
-
trapFocus: n.open,
|
|
153
|
-
disableOutsidePointerEvents: !0,
|
|
154
|
-
onCloseAutoFocus: m(e.onCloseAutoFocus, (s) => {
|
|
155
|
-
s.preventDefault(), n.triggerRef.current?.focus();
|
|
156
|
-
}),
|
|
157
|
-
onPointerDownOutside: m(e.onPointerDownOutside, (s) => {
|
|
158
|
-
const c = s.detail.originalEvent, l = c.button === 0 && c.ctrlKey === !0;
|
|
159
|
-
(c.button === 2 || l) && s.preventDefault();
|
|
160
|
-
}),
|
|
161
|
-
onFocusOutside: m(
|
|
162
|
-
e.onFocusOutside,
|
|
163
|
-
(s) => s.preventDefault()
|
|
164
|
-
)
|
|
165
|
-
}
|
|
166
|
-
);
|
|
167
|
-
}
|
|
168
|
-
), ce = a.forwardRef(
|
|
169
|
-
(e, t) => {
|
|
170
|
-
const n = d(p, e.__scopeDialog), r = a.useRef(!1), o = a.useRef(!1);
|
|
171
|
-
return /* @__PURE__ */ i.jsx(
|
|
172
|
-
M,
|
|
173
|
-
{
|
|
174
|
-
...e,
|
|
175
|
-
ref: t,
|
|
176
|
-
trapFocus: !1,
|
|
177
|
-
disableOutsidePointerEvents: !1,
|
|
178
|
-
onCloseAutoFocus: (s) => {
|
|
179
|
-
e.onCloseAutoFocus?.(s), s.defaultPrevented || (r.current || n.triggerRef.current?.focus(), s.preventDefault()), r.current = !1, o.current = !1;
|
|
180
|
-
},
|
|
181
|
-
onInteractOutside: (s) => {
|
|
182
|
-
e.onInteractOutside?.(s), s.defaultPrevented || (r.current = !0, s.detail.originalEvent.type === "pointerdown" && (o.current = !0));
|
|
183
|
-
const c = s.target;
|
|
184
|
-
n.triggerRef.current?.contains(c) && s.preventDefault(), s.detail.originalEvent.type === "focusin" && o.current && s.preventDefault();
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
);
|
|
188
|
-
}
|
|
189
|
-
), M = a.forwardRef(
|
|
190
|
-
(e, t) => {
|
|
191
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...c } = e, l = d(p, n), u = a.useRef(null), f = y(t, u);
|
|
192
|
-
return z(), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
193
|
-
/* @__PURE__ */ i.jsx(
|
|
194
|
-
J,
|
|
195
|
-
{
|
|
196
|
-
asChild: !0,
|
|
197
|
-
loop: !0,
|
|
198
|
-
trapped: r,
|
|
199
|
-
onMountAutoFocus: o,
|
|
200
|
-
onUnmountAutoFocus: s,
|
|
201
|
-
children: /* @__PURE__ */ i.jsx(
|
|
202
|
-
q,
|
|
203
|
-
{
|
|
204
|
-
role: "dialog",
|
|
205
|
-
id: l.contentId,
|
|
206
|
-
"aria-describedby": l.descriptionId,
|
|
207
|
-
"aria-labelledby": l.titleId,
|
|
208
|
-
"data-state": P(l.open),
|
|
209
|
-
...c,
|
|
210
|
-
ref: f,
|
|
211
|
-
onDismiss: () => l.onOpenChange(!1)
|
|
212
|
-
}
|
|
213
|
-
)
|
|
214
|
-
}
|
|
215
|
-
),
|
|
216
|
-
/* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
217
|
-
/* @__PURE__ */ i.jsx(ue, { titleId: l.titleId }),
|
|
218
|
-
/* @__PURE__ */ i.jsx(fe, { contentRef: u, descriptionId: l.descriptionId })
|
|
219
|
-
] })
|
|
220
|
-
] });
|
|
221
|
-
}
|
|
222
|
-
), _ = "DialogTitle", w = a.forwardRef(
|
|
223
|
-
(e, t) => {
|
|
224
|
-
const { __scopeDialog: n, ...r } = e, o = d(_, n);
|
|
225
|
-
return /* @__PURE__ */ i.jsx(D.h2, { id: o.titleId, ...r, ref: t });
|
|
226
|
-
}
|
|
227
|
-
);
|
|
228
|
-
w.displayName = _;
|
|
229
|
-
var F = "DialogDescription", W = a.forwardRef(
|
|
230
|
-
(e, t) => {
|
|
231
|
-
const { __scopeDialog: n, ...r } = e, o = d(F, n);
|
|
232
|
-
return /* @__PURE__ */ i.jsx(D.p, { id: o.descriptionId, ...r, ref: t });
|
|
233
|
-
}
|
|
234
|
-
);
|
|
235
|
-
W.displayName = F;
|
|
236
|
-
var L = "DialogClose", k = a.forwardRef(
|
|
237
|
-
(e, t) => {
|
|
238
|
-
const { __scopeDialog: n, ...r } = e, o = d(L, n);
|
|
239
|
-
return /* @__PURE__ */ i.jsx(
|
|
240
|
-
D.button,
|
|
241
|
-
{
|
|
242
|
-
type: "button",
|
|
243
|
-
...r,
|
|
244
|
-
ref: t,
|
|
245
|
-
onClick: m(e.onClick, () => o.onOpenChange(!1))
|
|
246
|
-
}
|
|
247
|
-
);
|
|
248
|
-
}
|
|
249
|
-
);
|
|
250
|
-
k.displayName = L;
|
|
251
|
-
function P(e) {
|
|
252
|
-
return e ? "open" : "closed";
|
|
253
|
-
}
|
|
254
|
-
var G = "DialogTitleWarning", [xe, V] = B(G, {
|
|
255
|
-
contentName: p,
|
|
256
|
-
titleName: _,
|
|
257
|
-
docsSlug: "dialog"
|
|
258
|
-
}), ue = ({ titleId: e }) => {
|
|
259
|
-
const t = V(G), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
260
|
-
|
|
261
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
262
|
-
|
|
263
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
|
|
264
|
-
return a.useEffect(() => {
|
|
265
|
-
e && (document.getElementById(e) || console.error(n));
|
|
266
|
-
}, [n, e]), null;
|
|
267
|
-
}, de = "DialogDescriptionWarning", fe = ({ contentRef: e, descriptionId: t }) => {
|
|
268
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${V(de).contentName}}.`;
|
|
269
|
-
return a.useEffect(() => {
|
|
270
|
-
const o = e.current?.getAttribute("aria-describedby");
|
|
271
|
-
t && o && (document.getElementById(t) || console.warn(r));
|
|
272
|
-
}, [r, e, t]), null;
|
|
273
|
-
}, ye = N, he = b, Ee = A, _e = T, Pe = S, Oe = w, Ne = W, Ie = k;
|
|
274
|
-
export {
|
|
275
|
-
Ie as C,
|
|
276
|
-
Ne as D,
|
|
277
|
-
_e as O,
|
|
278
|
-
Ee as P,
|
|
279
|
-
ye as R,
|
|
280
|
-
Oe as T,
|
|
281
|
-
Pe as a,
|
|
282
|
-
he as b
|
|
283
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const y=require("react"),m=require("./jsx-runtime.B0Vkbtvx.js"),b=require("react-dom"),R=require("./index.BIcga6m3.js");function C(e){if(e&&typeof e=="object"&&"default"in e)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=C(y),g=C(b);function P(e,t){const n=s.createContext(t),r=i=>{const{children:u,...c}=i,l=s.useMemo(()=>c,Object.values(c));return m.jsxRuntimeExports.jsx(n.Provider,{value:l,children:u})};r.displayName=e+"Provider";function o(i){const u=s.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function j(e,t=[]){let n=[];function r(i,u){const c=s.createContext(u),l=n.length;n=[...n,u];const f=a=>{const{scope:v,children:x,...p}=a,S=v?.[e]?.[l]||c,h=s.useMemo(()=>p,Object.values(p));return m.jsxRuntimeExports.jsx(S.Provider,{value:h,children:x})};f.displayName=i+"Provider";function d(a,v){const x=v?.[e]?.[l]||c,p=s.useContext(x);if(p)return p;if(u!==void 0)return u;throw new Error(`\`${a}\` must be used within \`${i}\``)}return[f,d]}const o=()=>{const i=n.map(u=>s.createContext(u));return function(c){const l=c?.[e]||i;return s.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,w(o,...t)]}function w(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const u=r.reduce((c,{useScope:l,scopeName:f})=>{const a=l(i)[`__scope${f}`];return{...c,...a}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}function _(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var E=globalThis?.document?s.useLayoutEffect:()=>{},O=s[" useInsertionEffect ".trim().toString()]||E;function $({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,u]=D({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:o;{const d=s.useRef(e!==void 0);s.useEffect(()=>{const a=d.current;a!==c&&console.warn(`${r} is changing from ${a?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=c},[c,r])}const f=s.useCallback(d=>{if(c){const a=N(d)?d(e):d;a!==e&&u.current?.(a)}else i(d)},[c,e,i,u]);return[l,f]}function D({defaultProp:e,onChange:t}){const[n,r]=s.useState(e),o=s.useRef(n),i=s.useRef(t);return O(()=>{i.current=t},[t]),s.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function N(e){return typeof e=="function"}function I(e){const t=M(e),n=s.forwardRef((r,o)=>{const{children:i,...u}=r,c=s.Children.toArray(i),l=c.find(H);if(l){const f=l.props.children,d=c.map(a=>a===l?s.Children.count(f)>1?s.Children.only(null):s.isValidElement(f)?f.props.children:null:a);return m.jsxRuntimeExports.jsx(t,{...u,ref:o,children:s.isValidElement(f)?s.cloneElement(f,void 0,d):null})}return m.jsxRuntimeExports.jsx(t,{...u,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function M(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const u=T(o),c=L(i,o.props);return o.type!==s.Fragment&&(c.ref=r?R.composeRefs(r,u):u),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var V=Symbol("radix.slottable");function H(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===V}function L(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...c)=>{const l=i(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function T(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var W=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],q=W.reduce((e,t)=>{const n=I(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:u,...c}=o,l=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsxRuntimeExports.jsx(l,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function A(e,t){e&&g.flushSync(()=>e.dispatchEvent(t))}exports.Primitive=q;exports.composeEventHandlers=_;exports.createContext2=P;exports.createContextScope=j;exports.dispatchDiscreteCustomEvent=A;exports.useControllableState=$;exports.useLayoutEffect2=E;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const g=require("react"),b=require("./index.BIcga6m3.js"),d=require("./jsx-runtime.B0Vkbtvx.js");function j(t){if(t&&typeof t=="object"&&"default"in t)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const i=j(g);var E=Symbol.for("react.lazy"),u=i[" use ".trim().toString()];function R(t){return typeof t=="object"&&t!==null&&"then"in t}function y(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===E&&"_payload"in t&&R(t._payload)}function m(t){const e=C(t),n=i.forwardRef((o,r)=>{let{children:l,...c}=o;y(l)&&typeof u=="function"&&(l=u(l._payload));const s=i.Children.toArray(l),a=s.find(O);if(a){const f=a.props.children,S=s.map(p=>p===a?i.Children.count(f)>1?i.Children.only(null):i.isValidElement(f)?f.props.children:null:p);return d.jsxRuntimeExports.jsx(e,{...c,ref:r,children:i.isValidElement(f)?i.cloneElement(f,void 0,S):null})}return d.jsxRuntimeExports.jsx(e,{...c,ref:r,children:l})});return n.displayName=`${t}.Slot`,n}var _=m("Slot");function C(t){const e=i.forwardRef((n,o)=>{let{children:r,...l}=n;if(y(r)&&typeof u=="function"&&(r=u(r._payload)),i.isValidElement(r)){const c=P(r),s=h(l,r.props);return r.type!==i.Fragment&&(s.ref=o?b.composeRefs(o,c):c),i.cloneElement(r,s)}return i.Children.count(r)>1?i.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var x=Symbol("radix.slottable");function O(t){return i.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===x}function h(t,e){const n={...e};for(const o in e){const r=t[o],l=e[o];/^on[A-Z]/.test(o)?r&&l?n[o]=(...s)=>{const a=l(...s);return r(...s),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...l}:o==="className"&&(n[o]=[r,l].filter(Boolean).join(" "))}return{...t,...n}}function P(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}exports.Slot=_;exports.createSlot=m;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";const ue=require("react"),Se=require("./index.BIcga6m3.js"),Ee=require("./index.BTUe9yKh.js"),Z=require("./index.DcvrUsoU.js"),we=require("./jsx-runtime.B0Vkbtvx.js");function Ce(e){if(e&&typeof e=="object"&&"default"in e)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=Ce(ue);var _="focusScope.autoFocusOnMount",U="focusScope.autoFocusOnUnmount",Q={bubbles:!1,cancelable:!0},Re="FocusScope",ie=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:i,...s}=e,[a,E]=u.useState(null),b=Z.useCallbackRef(c),g=Z.useCallbackRef(i),f=u.useRef(null),v=Se.useComposedRefs(t,o=>E(o)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let o=function(p){if(h.paused||!a)return;const y=p.target;a.contains(y)?f.current=y:T(f.current,{select:!0})},l=function(p){if(h.paused||!a)return;const y=p.relatedTarget;y!==null&&(a.contains(y)||T(f.current,{select:!0}))},d=function(p){if(document.activeElement===document.body)for(const S of p)S.removedNodes.length>0&&T(a)};document.addEventListener("focusin",o),document.addEventListener("focusout",l);const m=new MutationObserver(d);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",o),document.removeEventListener("focusout",l),m.disconnect()}}},[r,a,h.paused]),u.useEffect(()=>{if(a){J.add(h);const o=document.activeElement;if(!a.contains(o)){const d=new CustomEvent(_,Q);a.addEventListener(_,b),a.dispatchEvent(d),d.defaultPrevented||(ke(Me(le(a)),{select:!0}),document.activeElement===o&&T(a))}return()=>{a.removeEventListener(_,b),setTimeout(()=>{const d=new CustomEvent(U,Q);a.addEventListener(U,g),a.dispatchEvent(d),d.defaultPrevented||T(o??document.body,{select:!0}),a.removeEventListener(U,g),J.remove(h)},0)}}},[a,b,g,h]);const w=u.useCallback(o=>{if(!n&&!r||h.paused)return;const l=o.key==="Tab"&&!o.altKey&&!o.ctrlKey&&!o.metaKey,d=document.activeElement;if(l&&d){const m=o.currentTarget,[p,y]=Te(m);p&&y?!o.shiftKey&&d===y?(o.preventDefault(),n&&T(p,{select:!0})):o.shiftKey&&d===p&&(o.preventDefault(),n&&T(y,{select:!0})):d===m&&o.preventDefault()}},[n,r,h.paused]);return we.jsxRuntimeExports.jsx(Ee.Primitive.div,{tabIndex:-1,...s,ref:v,onKeyDown:w})});ie.displayName=Re;function ke(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(T(r,{select:t}),document.activeElement!==n)return}function Te(e){const t=le(e),n=$(t,e),r=$(t.reverse(),e);return[n,r]}function le(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $(e,t){for(const n of e)if(!Ae(n,{upTo:t}))return n}function Ae(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 Ne(e){return e instanceof HTMLInputElement&&"select"in e}function T(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ne(e)&&t&&e.select()}}var J=Oe();function Oe(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ee(e,t),e.unshift(t)},remove(t){e=ee(e,t),e[0]?.resume()}}}function ee(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Me(e){return e.filter(t=>t.tagName!=="A")}var K=0;function Fe(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??te()),document.body.insertAdjacentElement("beforeend",e[1]??te()),K++,()=>{K===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),K--}},[])}function te(){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 C=function(){return C=Object.assign||function(t){for(var n,r=1,c=arguments.length;r<c;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},C.apply(this,arguments)};function se(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(e);c<r.length;c++)t.indexOf(r[c])<0&&Object.prototype.propertyIsEnumerable.call(e,r[c])&&(n[r[c]]=e[r[c]]);return n}function Pe(e,t,n){if(n||arguments.length===2)for(var r=0,c=t.length,i;r<c;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var W="right-scroll-bar-position",B="width-before-scroll-bar",Le="with-scroll-bars-hidden",xe="--removed-body-scroll-bar-size";function H(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ie(e,t){var n=ue.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var c=n.value;c!==r&&(n.value=r,n.callback(r,c))}}}})[0];return n.callback=t,n.facade}var We=typeof window<"u"?u.useLayoutEffect:u.useEffect,ne=new WeakMap;function Be(e,t){var n=Ie(null,function(r){return e.forEach(function(c){return H(c,r)})});return We(function(){var r=ne.get(n);if(r){var c=new Set(r),i=new Set(e),s=n.current;c.forEach(function(a){i.has(a)||H(a,null)}),i.forEach(function(a){c.has(a)||H(a,s)})}ne.set(n,e)},[e]),n}function De(e){return e}function je(e,t){t===void 0&&(t=De);var n=[],r=!1,c={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var E=function(){var g=s;s=[],g.forEach(i)},b=function(){return Promise.resolve().then(E)};b(),n={push:function(g){s.push(g),b()},filter:function(g){return s=s.filter(g),n}}}};return c}function _e(e){e===void 0&&(e={});var t=je(null);return t.options=C({async:!0,ssr:!1},e),t}var fe=function(e){var t=e.sideCar,n=se(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,C({},n))};fe.isSideCarExport=!0;function Ue(e,t){return e.useMedium(t),fe}var de=_e(),V=function(){},D=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:V,onWheelCapture:V,onTouchMoveCapture:V}),c=r[0],i=r[1],s=e.forwardProps,a=e.children,E=e.className,b=e.removeScrollBar,g=e.enabled,f=e.shards,v=e.sideCar,h=e.noRelative,w=e.noIsolation,o=e.inert,l=e.allowPinchZoom,d=e.as,m=d===void 0?"div":d,p=e.gapMode,y=se(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,R=Be([n,t]),k=C(C({},y),c);return u.createElement(u.Fragment,null,g&&u.createElement(S,{sideCar:de,removeScrollBar:b,shards:f,noRelative:h,noIsolation:w,inert:o,setCallbacks:i,allowPinchZoom:!!l,lockRef:n,gapMode:p}),s?u.cloneElement(u.Children.only(a),C(C({},k),{ref:R})):u.createElement(m,C({},k,{className:E,ref:R}),a))});D.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};D.classNames={fullWidth:B,zeroRight:W};var Ke=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function He(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ke();return t&&e.setAttribute("nonce",t),e}function Ve(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Xe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ye=function(){var e=0,t=null;return{add:function(n){e==0&&(t=He())&&(Ve(t,n),Xe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},qe=function(){var e=Ye();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ve=function(){var e=qe(),t=function(n){var r=n.styles,c=n.dynamic;return e(r,c),null};return t},Ge={left:0,top:0,right:0,gap:0},X=function(e){return parseInt(e||"",10)||0},ze=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],c=t[e==="padding"?"paddingRight":"marginRight"];return[X(n),X(r),X(c)]},Ze=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ge;var t=ze(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Qe=ve(),M="data-scroll-locked",$e=function(e,t,n,r){var c=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
2
|
-
.`.concat(Le,` {
|
|
3
|
-
overflow: hidden `).concat(r,`;
|
|
4
|
-
padding-right: `).concat(a,"px ").concat(r,`;
|
|
5
|
-
}
|
|
6
|
-
body[`).concat(M,`] {
|
|
7
|
-
overflow: hidden `).concat(r,`;
|
|
8
|
-
overscroll-behavior: contain;
|
|
9
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
10
|
-
padding-left: `.concat(c,`px;
|
|
11
|
-
padding-top: `).concat(i,`px;
|
|
12
|
-
padding-right: `).concat(s,`px;
|
|
13
|
-
margin-left:0;
|
|
14
|
-
margin-top:0;
|
|
15
|
-
margin-right: `).concat(a,"px ").concat(r,`;
|
|
16
|
-
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.`).concat(W,` {
|
|
20
|
-
right: `).concat(a,"px ").concat(r,`;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.`).concat(B,` {
|
|
24
|
-
margin-right: `).concat(a,"px ").concat(r,`;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.`).concat(W," .").concat(W,` {
|
|
28
|
-
right: 0 `).concat(r,`;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.`).concat(B," .").concat(B,` {
|
|
32
|
-
margin-right: 0 `).concat(r,`;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
body[`).concat(M,`] {
|
|
36
|
-
`).concat(xe,": ").concat(a,`px;
|
|
37
|
-
}
|
|
38
|
-
`)},re=function(){var e=parseInt(document.body.getAttribute(M)||"0",10);return isFinite(e)?e:0},Je=function(){u.useEffect(function(){return document.body.setAttribute(M,(re()+1).toString()),function(){var e=re()-1;e<=0?document.body.removeAttribute(M):document.body.setAttribute(M,e.toString())}},[])},et=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,c=r===void 0?"margin":r;Je();var i=u.useMemo(function(){return Ze(c)},[c]);return u.createElement(Qe,{styles:$e(i,!t,c,n?"":"!important")})},q=!1;if(typeof window<"u")try{var P=Object.defineProperty({},"passive",{get:function(){return q=!0,!0}});window.addEventListener("test",P,P),window.removeEventListener("test",P,P)}catch{q=!1}var A=q?{passive:!1}:!1,tt=function(e){return e.tagName==="TEXTAREA"},he=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!tt(e)&&n[t]==="visible")},nt=function(e){return he(e,"overflowY")},rt=function(e){return he(e,"overflowX")},ae=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var c=me(e,r);if(c){var i=pe(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},at=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ot=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},me=function(e,t){return e==="v"?nt(t):rt(t)},pe=function(e,t){return e==="v"?at(t):ot(t)},ct=function(e,t){return e==="h"&&t==="rtl"?-1:1},ut=function(e,t,n,r,c){var i=ct(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,E=t.contains(a),b=!1,g=s>0,f=0,v=0;do{if(!a)break;var h=pe(e,a),w=h[0],o=h[1],l=h[2],d=o-l-i*w;(w||d)&&me(e,a)&&(f+=d,v+=w);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!E&&a!==document.body||E&&(t.contains(a)||t===a));return(g&&Math.abs(f)<1||!g&&Math.abs(v)<1)&&(b=!0),b},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oe=function(e){return[e.deltaX,e.deltaY]},ce=function(e){return e&&"current"in e?e.current:e},it=function(e,t){return e[0]===t[0]&&e[1]===t[1]},lt=function(e){return`
|
|
39
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
-
`)},st=0,N=[];function ft(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),c=u.useState(st++)[0],i=u.useState(ve)[0],s=u.useRef(e);u.useEffect(function(){s.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var o=Pe([e.lockRef.current],(e.shards||[]).map(ce),!0).filter(Boolean);return o.forEach(function(l){return l.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),o.forEach(function(l){return l.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var a=u.useCallback(function(o,l){if("touches"in o&&o.touches.length===2||o.type==="wheel"&&o.ctrlKey)return!s.current.allowPinchZoom;var d=L(o),m=n.current,p="deltaX"in o?o.deltaX:m[0]-d[0],y="deltaY"in o?o.deltaY:m[1]-d[1],S,R=o.target,k=Math.abs(p)>Math.abs(y)?"h":"v";if("touches"in o&&k==="h"&&R.type==="range")return!1;var G=window.getSelection(),j=G&&G.anchorNode,be=j?j===R||j.contains(R):!1;if(be)return!1;var F=ae(k,R);if(!F)return!0;if(F?S=k:(S=k==="v"?"h":"v",F=ae(k,R)),!F)return!1;if(!r.current&&"changedTouches"in o&&(p||y)&&(r.current=S),!S)return!0;var z=r.current||S;return ut(z,l,o,z==="h"?p:y)},[]),E=u.useCallback(function(o){var l=o;if(!(!N.length||N[N.length-1]!==i)){var d="deltaY"in l?oe(l):L(l),m=t.current.filter(function(S){return S.name===l.type&&(S.target===l.target||l.target===S.shadowParent)&&it(S.delta,d)})[0];if(m&&m.should){l.cancelable&&l.preventDefault();return}if(!m){var p=(s.current.shards||[]).map(ce).filter(Boolean).filter(function(S){return S.contains(l.target)}),y=p.length>0?a(l,p[0]):!s.current.noIsolation;y&&l.cancelable&&l.preventDefault()}}},[]),b=u.useCallback(function(o,l,d,m){var p={name:o,delta:l,target:d,should:m,shadowParent:dt(d)};t.current.push(p),setTimeout(function(){t.current=t.current.filter(function(y){return y!==p})},1)},[]),g=u.useCallback(function(o){n.current=L(o),r.current=void 0},[]),f=u.useCallback(function(o){b(o.type,oe(o),o.target,a(o,e.lockRef.current))},[]),v=u.useCallback(function(o){b(o.type,L(o),o.target,a(o,e.lockRef.current))},[]);u.useEffect(function(){return N.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",E,A),document.addEventListener("touchmove",E,A),document.addEventListener("touchstart",g,A),function(){N=N.filter(function(o){return o!==i}),document.removeEventListener("wheel",E,A),document.removeEventListener("touchmove",E,A),document.removeEventListener("touchstart",g,A)}},[]);var h=e.removeScrollBar,w=e.inert;return u.createElement(u.Fragment,null,w?u.createElement(i,{styles:lt(c)}):null,h?u.createElement(et,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function dt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vt=Ue(de,ft);var ge=u.forwardRef(function(e,t){return u.createElement(D,C({},e,{ref:t,sideCar:vt}))});ge.classNames=D.classNames;var ht=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},O=new WeakMap,x=new WeakMap,I={},Y=0,ye=function(e){return e&&(e.host||ye(e.parentNode))},mt=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ye(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},pt=function(e,t,n,r){var c=mt(t,Array.isArray(e)?e:[e]);I[n]||(I[n]=new WeakMap);var i=I[n],s=[],a=new Set,E=new Set(c),b=function(f){!f||a.has(f)||(a.add(f),b(f.parentNode))};c.forEach(b);var g=function(f){!f||E.has(f)||Array.prototype.forEach.call(f.children,function(v){if(a.has(v))g(v);else try{var h=v.getAttribute(r),w=h!==null&&h!=="false",o=(O.get(v)||0)+1,l=(i.get(v)||0)+1;O.set(v,o),i.set(v,l),s.push(v),o===1&&w&&x.set(v,!0),l===1&&v.setAttribute(n,"true"),w||v.setAttribute(r,"true")}catch(d){console.error("aria-hidden: cannot operate on ",v,d)}})};return g(t),a.clear(),Y++,function(){s.forEach(function(f){var v=O.get(f)-1,h=i.get(f)-1;O.set(f,v),i.set(f,h),v||(x.has(f)||f.removeAttribute(r),x.delete(f)),h||f.removeAttribute(n)}),Y--,Y||(O=new WeakMap,O=new WeakMap,x=new WeakMap,I={})}},gt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),c=ht(e);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live], script"))),pt(r,c,n,"aria-hidden")):function(){return null}};exports.FocusScope=ie;exports.ReactRemoveScroll=ge;exports.hideOthers=gt;exports.useFocusGuards=Fe;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";const H=require("react"),u=require("./index.BTUe9yKh.js"),v=require("./index.BIcga6m3.js"),C=require("./index.B04X8ryw.js"),P=require("./index.DcvrUsoU.js"),R=require("./index.BspO8Abs.js"),j=require("./index.BRcoZnsL.js"),a=require("./jsx-runtime.B0Vkbtvx.js");function V(e){if(e&&typeof e=="object"&&"default"in e)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const i=V(H);function B(e){const t=Z(e),o=i.forwardRef((r,n)=>{const{children:s,...c}=r,l=i.Children.toArray(s),d=l.find(K);if(d){const f=d.props.children,x=l.map(m=>m===d?i.Children.count(f)>1?i.Children.only(null):i.isValidElement(f)?f.props.children:null:m);return a.jsxRuntimeExports.jsx(t,{...c,ref:n,children:i.isValidElement(f)?i.cloneElement(f,void 0,x):null})}return a.jsxRuntimeExports.jsx(t,{...c,ref:n,children:s})});return o.displayName=`${e}.Slot`,o}function Z(e){const t=i.forwardRef((o,r)=>{const{children:n,...s}=o;if(i.isValidElement(n)){const c=Y(n),l=U(s,n.props);return n.type!==i.Fragment&&(l.ref=r?v.composeRefs(r,c):c),i.cloneElement(n,l)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var z=Symbol("radix.slottable");function K(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===z}function U(e,t){const o={...t};for(const r in t){const n=e[r],s=t[r];/^on[A-Z]/.test(r)?n&&s?o[r]=(...l)=>{const d=s(...l);return n(...l),d}:n&&(o[r]=n):r==="style"?o[r]={...n,...s}:r==="className"&&(o[r]=[n,s].filter(Boolean).join(" "))}return{...e,...o}}function Y(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var D="Dialog",[O]=u.createContextScope(D),[J,p]=O(D),I=e=>{const{__scopeDialog:t,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:c=!0}=e,l=i.useRef(null),d=i.useRef(null),[f,x]=u.useControllableState({prop:r,defaultProp:n??!1,onChange:s,caller:D});return a.jsxRuntimeExports.jsx(J,{scope:t,triggerRef:l,contentRef:d,contentId:C.useId(),titleId:C.useId(),descriptionId:C.useId(),open:f,onOpenChange:x,onOpenToggle:i.useCallback(()=>x(m=>!m),[x]),modal:c,children:o})};I.displayName=D;var N="DialogTrigger",b=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=p(N,o),s=v.useComposedRefs(t,n.triggerRef);return a.jsxRuntimeExports.jsx(u.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":h(n.open),...r,ref:s,onClick:u.composeEventHandlers(e.onClick,n.onOpenToggle)})});b.displayName=N;var y="DialogPortal",[Q,T]=O(y,{forceMount:void 0}),A=e=>{const{__scopeDialog:t,forceMount:o,children:r,container:n}=e,s=p(y,t);return a.jsxRuntimeExports.jsx(Q,{scope:t,forceMount:o,children:i.Children.map(r,c=>a.jsxRuntimeExports.jsx(j.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(P.Portal,{asChild:!0,container:n,children:c})}))})};A.displayName=y;var E="DialogOverlay",S=i.forwardRef((e,t)=>{const o=T(E,e.__scopeDialog),{forceMount:r=o.forceMount,...n}=e,s=p(E,e.__scopeDialog);return s.modal?a.jsxRuntimeExports.jsx(j.Presence,{present:r||s.open,children:a.jsxRuntimeExports.jsx(ee,{...n,ref:t})}):null});S.displayName=E;var X=B("DialogOverlay.RemoveScroll"),ee=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=p(E,o);return a.jsxRuntimeExports.jsx(R.ReactRemoveScroll,{as:X,allowPinchZoom:!0,shards:[n.contentRef],children:a.jsxRuntimeExports.jsx(u.Primitive.div,{"data-state":h(n.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),g="DialogContent",M=i.forwardRef((e,t)=>{const o=T(g,e.__scopeDialog),{forceMount:r=o.forceMount,...n}=e,s=p(g,e.__scopeDialog);return a.jsxRuntimeExports.jsx(j.Presence,{present:r||s.open,children:s.modal?a.jsxRuntimeExports.jsx(te,{...n,ref:t}):a.jsxRuntimeExports.jsx(oe,{...n,ref:t})})});M.displayName=g;var te=i.forwardRef((e,t)=>{const o=p(g,e.__scopeDialog),r=i.useRef(null),n=v.useComposedRefs(t,o.contentRef,r);return i.useEffect(()=>{const s=r.current;if(s)return R.hideOthers(s)},[]),a.jsxRuntimeExports.jsx(w,{...e,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:u.composeEventHandlers(e.onCloseAutoFocus,s=>{s.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:u.composeEventHandlers(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&s.preventDefault()}),onFocusOutside:u.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault())})}),oe=i.forwardRef((e,t)=>{const o=p(g,e.__scopeDialog),r=i.useRef(!1),n=i.useRef(!1);return a.jsxRuntimeExports.jsx(w,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const c=s.target;o.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),w=i.forwardRef((e,t)=>{const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,...c}=e,l=p(g,o),d=i.useRef(null),f=v.useComposedRefs(t,d);return R.useFocusGuards(),a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[a.jsxRuntimeExports.jsx(R.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:a.jsxRuntimeExports.jsx(P.DismissableLayer,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":h(l.open),...c,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[a.jsxRuntimeExports.jsx(ne,{titleId:l.titleId}),a.jsxRuntimeExports.jsx(se,{contentRef:d,descriptionId:l.descriptionId})]})]})}),_="DialogTitle",F=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=p(_,o);return a.jsxRuntimeExports.jsx(u.Primitive.h2,{id:n.titleId,...r,ref:t})});F.displayName=_;var W="DialogDescription",$=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=p(W,o);return a.jsxRuntimeExports.jsx(u.Primitive.p,{id:n.descriptionId,...r,ref:t})});$.displayName=W;var L="DialogClose",k=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=p(L,o);return a.jsxRuntimeExports.jsx(u.Primitive.button,{type:"button",...r,ref:t,onClick:u.composeEventHandlers(e.onClick,()=>n.onOpenChange(!1))})});k.displayName=L;function h(e){return e?"open":"closed"}var q="DialogTitleWarning",[ge,G]=u.createContext2(q,{contentName:g,titleName:_,docsSlug:"dialog"}),ne=({titleId:e})=>{const t=G(q),o=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
2
|
-
|
|
3
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
|
-
|
|
5
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(o))},[o,e]),null},re="DialogDescriptionWarning",se=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${G(re).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ie=I,ae=b,le=A,ce=S,ue=M,de=F,pe=$,fe=k;exports.Close=fe;exports.Content=ue;exports.Description=pe;exports.Overlay=ce;exports.Portal=le;exports.Root=ie;exports.Title=de;exports.Trigger=ae;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const W=require("react"),f=require("./index.BTUe9yKh.js"),w=require("./index.BIcga6m3.js"),h=require("./jsx-runtime.B0Vkbtvx.js"),M=require("react-dom"),H=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function U(e){if(e&&typeof e=="object"&&"default"in e)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=U(W),q=H(M);function y(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>t.current?.(...n),[])}function z(e,t=globalThis?.document){const n=y(e);s.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var K="DismissableLayer",b="dismissableLayer.update",$="dismissableLayer.pointerDownOutside",X="dismissableLayer.focusOutside",L,x=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),T=s.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:d,onDismiss:l,...v}=e,c=s.useContext(x),[u,j]=s.useState(null),E=u?.ownerDocument??globalThis?.document,[,B]=s.useState({}),F=w.useComposedRefs(t,i=>j(i)),P=Array.from(c.layers),[I]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),N=P.indexOf(I),D=u?P.indexOf(u):-1,k=c.layersWithOutsidePointerEventsDisabled.size>0,O=D>=N,A=J(i=>{const p=i.target,C=[...c.branches].some(m=>m.contains(p));!O||C||(o?.(i),d?.(i),i.defaultPrevented||l?.())},E),R=Q(i=>{const p=i.target;[...c.branches].some(m=>m.contains(p))||(a?.(i),d?.(i),i.defaultPrevented||l?.())},E);return z(i=>{D===c.layers.size-1&&(r?.(i),!i.defaultPrevented&&l&&(i.preventDefault(),l()))},E),s.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(L=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),g(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=L)}},[u,E,n,c]),s.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),g())},[u,c]),s.useEffect(()=>{const i=()=>B({});return document.addEventListener(b,i),()=>document.removeEventListener(b,i)},[]),h.jsxRuntimeExports.jsx(f.Primitive.div,{...v,ref:F,style:{pointerEvents:k?O?"auto":"none":void 0,...e.style},onFocusCapture:f.composeEventHandlers(e.onFocusCapture,R.onFocusCapture),onBlurCapture:f.composeEventHandlers(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:f.composeEventHandlers(e.onPointerDownCapture,A.onPointerDownCapture)})});T.displayName=K;var Y="DismissableLayerBranch",G=s.forwardRef((e,t)=>{const n=s.useContext(x),r=s.useRef(null),o=w.useComposedRefs(t,r);return s.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),h.jsxRuntimeExports.jsx(f.Primitive.div,{...e,ref:o})});G.displayName=Y;function J(e,t=globalThis?.document){const n=y(e),r=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const a=l=>{if(l.target&&!r.current){let v=function(){S($,n,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=v,t.addEventListener("click",o.current,{once:!0})):v()}else t.removeEventListener("click",o.current);r.current=!1},d=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(d),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Q(e,t=globalThis?.document){const n=y(e),r=s.useRef(!1);return s.useEffect(()=>{const o=a=>{a.target&&!r.current&&S(X,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function g(){const e=new CustomEvent(b);document.dispatchEvent(e)}function S(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?f.dispatchDiscreteCustomEvent(o,a):o.dispatchEvent(a)}var V="Portal",_=s.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=s.useState(!1);f.useLayoutEffect2(()=>a(!0),[]);const d=n||o&&globalThis?.document?.body;return d?q.default.createPortal(h.jsxRuntimeExports.jsx(f.Primitive.div,{...r,ref:t}),d):null});_.displayName=V;exports.DismissableLayer=T;exports.Portal=_;exports.useCallbackRef=y;
|