@roottale/cms-renderer-next 0.41.2 → 0.42.1
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/CHANGELOG.md +54 -0
- package/dist/before-after-client.d.ts +15 -0
- package/dist/before-after-client.js +8 -0
- package/dist/before-after-client.js.map +1 -0
- package/dist/chunk-4LQPZDXZ.js +75 -0
- package/dist/chunk-4LQPZDXZ.js.map +1 -0
- package/dist/chunk-6GQCFFHU.js +540 -0
- package/dist/chunk-6GQCFFHU.js.map +1 -0
- package/dist/{chunk-YUT4BRJY.js → chunk-F3G6RVIR.js} +68 -15
- package/dist/chunk-F3G6RVIR.js.map +1 -0
- package/dist/chunk-H46JUIHZ.js +79 -0
- package/dist/chunk-H46JUIHZ.js.map +1 -0
- package/dist/chunk-K62RR4UQ.js +53 -0
- package/dist/chunk-K62RR4UQ.js.map +1 -0
- package/dist/chunk-NUUTTSGT.js +916 -0
- package/dist/chunk-NUUTTSGT.js.map +1 -0
- package/dist/chunk-RSNUZ4BF.js +3378 -0
- package/dist/chunk-RSNUZ4BF.js.map +1 -0
- package/dist/chunk-U5AKACPN.js +113 -0
- package/dist/chunk-U5AKACPN.js.map +1 -0
- package/dist/chunk-WWS43XCT.js +206 -0
- package/dist/chunk-WWS43XCT.js.map +1 -0
- package/dist/cms-public.css +175 -55
- package/dist/concerns-client.d.ts +12 -0
- package/dist/concerns-client.js +8 -0
- package/dist/concerns-client.js.map +1 -0
- package/dist/expertise-client.d.ts +10 -0
- package/dist/expertise-client.js +8 -0
- package/dist/expertise-client.js.map +1 -0
- package/dist/hero-carousel-client.d.ts +22 -1
- package/dist/hero-carousel-client.js +1 -1
- package/dist/routes.d.ts +51 -5
- package/dist/routes.js +109 -62
- package/dist/routes.js.map +1 -1
- package/dist/seo-checks.d.ts +87 -0
- package/dist/seo-checks.js +27 -0
- package/dist/seo-checks.js.map +1 -0
- package/dist/server.d.ts +51 -2
- package/dist/server.js +8 -3
- package/dist/site-config-DgYGGwu1.d.ts +3910 -0
- package/dist/spaces-client.d.ts +10 -0
- package/dist/spaces-client.js +8 -0
- package/dist/spaces-client.js.map +1 -0
- package/dist/templates.css +3200 -344
- package/dist/templates.d.ts +19 -1127
- package/dist/templates.js +70 -3
- package/dist/templates.js.map +1 -1
- package/dist/{theme-css-vars-BiyHBsJG.d.ts → theme-css-vars-CD3jcEkp.d.ts} +2 -2
- package/dist/ui-react-motion-client.d.ts +73 -0
- package/dist/ui-react-motion-client.js +14 -0
- package/dist/ui-react-motion-client.js.map +1 -0
- package/dist/validate.d.ts +15 -1
- package/dist/validate.js +399 -15
- package/dist/validate.js.map +1 -1
- package/package.json +15 -5
- package/dist/chunk-5R6APJZ2.js +0 -1688
- package/dist/chunk-5R6APJZ2.js.map +0 -1
- package/dist/chunk-QKZ4HRBB.js +0 -300
- package/dist/chunk-QKZ4HRBB.js.map +0 -1
- package/dist/chunk-YUT4BRJY.js.map +0 -1
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/templates/before-after-client.tsx
|
|
4
|
+
import { useCallback, useRef, useState } from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
var MIN_VALUE = 0;
|
|
7
|
+
var MAX_VALUE = 100;
|
|
8
|
+
var INITIAL_VALUE = 50;
|
|
9
|
+
var KEY_STEP = 5;
|
|
10
|
+
function clampValue(value) {
|
|
11
|
+
return Math.min(MAX_VALUE, Math.max(MIN_VALUE, value));
|
|
12
|
+
}
|
|
13
|
+
function BeforeAfterSlider({
|
|
14
|
+
beforeImage,
|
|
15
|
+
afterImage,
|
|
16
|
+
beforeLabel,
|
|
17
|
+
afterLabel
|
|
18
|
+
}) {
|
|
19
|
+
const [value, setValue] = useState(INITIAL_VALUE);
|
|
20
|
+
const [dragging, setDragging] = useState(false);
|
|
21
|
+
const frameRef = useRef(null);
|
|
22
|
+
const updateFromClientX = useCallback((clientX) => {
|
|
23
|
+
const frame = frameRef.current;
|
|
24
|
+
if (!frame) return;
|
|
25
|
+
const rect = frame.getBoundingClientRect();
|
|
26
|
+
if (rect.width === 0) return;
|
|
27
|
+
setValue(clampValue((clientX - rect.left) / rect.width * MAX_VALUE));
|
|
28
|
+
}, []);
|
|
29
|
+
const onKeyDown = useCallback((event) => {
|
|
30
|
+
if (event.key === "ArrowLeft" || event.key === "ArrowDown") {
|
|
31
|
+
event.preventDefault();
|
|
32
|
+
setValue((current) => clampValue(current - KEY_STEP));
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
if (event.key === "ArrowRight" || event.key === "ArrowUp") {
|
|
36
|
+
event.preventDefault();
|
|
37
|
+
setValue((current) => clampValue(current + KEY_STEP));
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (event.key === "Home") {
|
|
41
|
+
event.preventDefault();
|
|
42
|
+
setValue(MIN_VALUE);
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
if (event.key === "End") {
|
|
46
|
+
event.preventDefault();
|
|
47
|
+
setValue(MAX_VALUE);
|
|
48
|
+
}
|
|
49
|
+
}, []);
|
|
50
|
+
return /* @__PURE__ */ jsx(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
className: "rt-tpl-before-after-slider",
|
|
54
|
+
onPointerCancel: () => setDragging(false),
|
|
55
|
+
onPointerDown: (event) => {
|
|
56
|
+
event.currentTarget.setPointerCapture(event.pointerId);
|
|
57
|
+
setDragging(true);
|
|
58
|
+
updateFromClientX(event.clientX);
|
|
59
|
+
},
|
|
60
|
+
onPointerMove: (event) => {
|
|
61
|
+
if (dragging) updateFromClientX(event.clientX);
|
|
62
|
+
},
|
|
63
|
+
onPointerUp: () => setDragging(false),
|
|
64
|
+
children: /* @__PURE__ */ jsxs("div", { className: "rt-tpl-before-after-frame", ref: frameRef, children: [
|
|
65
|
+
/* @__PURE__ */ jsx(
|
|
66
|
+
"img",
|
|
67
|
+
{
|
|
68
|
+
className: "rt-tpl-before-after-img",
|
|
69
|
+
src: afterImage.src,
|
|
70
|
+
alt: afterImage.alt,
|
|
71
|
+
draggable: false,
|
|
72
|
+
loading: "lazy"
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ jsx(
|
|
76
|
+
"img",
|
|
77
|
+
{
|
|
78
|
+
className: "rt-tpl-before-after-img rt-tpl-before-after-img--before",
|
|
79
|
+
src: beforeImage.src,
|
|
80
|
+
alt: beforeImage.alt,
|
|
81
|
+
draggable: false,
|
|
82
|
+
loading: "lazy",
|
|
83
|
+
style: { clipPath: `inset(0 ${MAX_VALUE - value}% 0 0)` }
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
/* @__PURE__ */ jsx(
|
|
87
|
+
"div",
|
|
88
|
+
{
|
|
89
|
+
className: "rt-tpl-before-after-handle",
|
|
90
|
+
role: "slider",
|
|
91
|
+
tabIndex: 0,
|
|
92
|
+
"aria-label": "\uC2DC\uACF5 \uC804\uD6C4 \uBE44\uAD50 \uC2AC\uB77C\uC774\uB354",
|
|
93
|
+
"aria-valuemin": MIN_VALUE,
|
|
94
|
+
"aria-valuemax": MAX_VALUE,
|
|
95
|
+
"aria-valuenow": Math.round(value),
|
|
96
|
+
onKeyDown,
|
|
97
|
+
style: { left: `${value}%` },
|
|
98
|
+
children: /* @__PURE__ */ jsx("span", { className: "rt-tpl-before-after-thumb", "aria-hidden": "true" })
|
|
99
|
+
}
|
|
100
|
+
),
|
|
101
|
+
/* @__PURE__ */ jsxs("div", { className: "rt-tpl-before-after-labels", "aria-hidden": "true", children: [
|
|
102
|
+
/* @__PURE__ */ jsx("span", { className: "rt-tpl-before-after-label", children: beforeLabel }),
|
|
103
|
+
/* @__PURE__ */ jsx("span", { className: "rt-tpl-before-after-label", children: afterLabel })
|
|
104
|
+
] })
|
|
105
|
+
] })
|
|
106
|
+
}
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export {
|
|
111
|
+
BeforeAfterSlider
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=chunk-U5AKACPN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/templates/before-after-client.tsx"],"sourcesContent":["\"use client\";\n\nimport { useCallback, useRef, useState, type KeyboardEvent } from \"react\";\n\nexport interface BeforeAfterClientImage {\n readonly src: string;\n readonly alt: string;\n}\n\nexport interface BeforeAfterSliderProps {\n readonly beforeImage: BeforeAfterClientImage;\n readonly afterImage: BeforeAfterClientImage;\n readonly beforeLabel: string;\n readonly afterLabel: string;\n}\n\nconst MIN_VALUE = 0;\nconst MAX_VALUE = 100;\nconst INITIAL_VALUE = 50;\nconst KEY_STEP = 5;\n\nfunction clampValue(value: number): number {\n return Math.min(MAX_VALUE, Math.max(MIN_VALUE, value));\n}\n\nexport function BeforeAfterSlider({\n beforeImage,\n afterImage,\n beforeLabel,\n afterLabel,\n}: BeforeAfterSliderProps) {\n const [value, setValue] = useState(INITIAL_VALUE);\n const [dragging, setDragging] = useState(false);\n const frameRef = useRef<HTMLDivElement | null>(null);\n\n const updateFromClientX = useCallback((clientX: number): void => {\n const frame = frameRef.current;\n if (!frame) return;\n const rect = frame.getBoundingClientRect();\n if (rect.width === 0) return;\n setValue(clampValue(((clientX - rect.left) / rect.width) * MAX_VALUE));\n }, []);\n\n const onKeyDown = useCallback((event: KeyboardEvent<HTMLDivElement>) => {\n if (event.key === \"ArrowLeft\" || event.key === \"ArrowDown\") {\n event.preventDefault();\n setValue((current) => clampValue(current - KEY_STEP));\n return;\n }\n if (event.key === \"ArrowRight\" || event.key === \"ArrowUp\") {\n event.preventDefault();\n setValue((current) => clampValue(current + KEY_STEP));\n return;\n }\n if (event.key === \"Home\") {\n event.preventDefault();\n setValue(MIN_VALUE);\n return;\n }\n if (event.key === \"End\") {\n event.preventDefault();\n setValue(MAX_VALUE);\n }\n }, []);\n\n return (\n <div\n className=\"rt-tpl-before-after-slider\"\n onPointerCancel={() => setDragging(false)}\n onPointerDown={(event) => {\n event.currentTarget.setPointerCapture(event.pointerId);\n setDragging(true);\n updateFromClientX(event.clientX);\n }}\n onPointerMove={(event) => {\n if (dragging) updateFromClientX(event.clientX);\n }}\n onPointerUp={() => setDragging(false)}\n >\n <div className=\"rt-tpl-before-after-frame\" ref={frameRef}>\n <img\n className=\"rt-tpl-before-after-img\"\n src={afterImage.src}\n alt={afterImage.alt}\n draggable={false}\n loading=\"lazy\"\n />\n <img\n className=\"rt-tpl-before-after-img rt-tpl-before-after-img--before\"\n src={beforeImage.src}\n alt={beforeImage.alt}\n draggable={false}\n loading=\"lazy\"\n style={{ clipPath: `inset(0 ${MAX_VALUE - value}% 0 0)` }}\n />\n <div\n className=\"rt-tpl-before-after-handle\"\n role=\"slider\"\n tabIndex={0}\n aria-label=\"시공 전후 비교 슬라이더\"\n aria-valuemin={MIN_VALUE}\n aria-valuemax={MAX_VALUE}\n aria-valuenow={Math.round(value)}\n onKeyDown={onKeyDown}\n style={{ left: `${value}%` }}\n >\n <span className=\"rt-tpl-before-after-thumb\" aria-hidden=\"true\" />\n </div>\n <div className=\"rt-tpl-before-after-labels\" aria-hidden=\"true\">\n <span className=\"rt-tpl-before-after-label\">{beforeLabel}</span>\n <span className=\"rt-tpl-before-after-label\">{afterLabel}</span>\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";AAEA,SAAS,aAAa,QAAQ,gBAAoC;AA8E1D,cA4BA,YA5BA;AAhER,IAAM,YAAY;AAClB,IAAM,YAAY;AAClB,IAAM,gBAAgB;AACtB,IAAM,WAAW;AAEjB,SAAS,WAAW,OAAuB;AACzC,SAAO,KAAK,IAAI,WAAW,KAAK,IAAI,WAAW,KAAK,CAAC;AACvD;AAEO,SAAS,kBAAkB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA2B;AACzB,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAS,aAAa;AAChD,QAAM,CAAC,UAAU,WAAW,IAAI,SAAS,K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YAChB,KAAK,WAAW;AAAA,YAChB,WAAW;AAAA,YACX,SAAQ;AAAA;AAAA,QACV;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACC,WAAU;AAAA,YACV,KAAK,YAAY;AAAA,YACjB,KAAK,YAAY;AAAA,YACjB,WAAW;AAAA,YACX,SAAQ;AAAA,YACR,OAAO,EAAE,UAAU,WAAW,YAAY,KAAK,SAAS;AAAA;AAAA,QAC1D;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACC,WAAU;AAAA,YACV,MAAK;AAAA,YACL,UAAU;AAAA,YACV,cAAW;AAAA,YACX,iBAAe;AAAA,YACf,iBAAe;AAAA,YACf,iBAAe,KAAK,MAAM,KAAK;AAAA,YAC/B;AAAA,YACA,OAAO,EAAE,MAAM,GAAG,KAAK,IAAI;AAAA,YAE3B,8BAAC,UAAK,WAAU,6BAA4B,eAAY,QAAO;AAAA;AAAA,QACjE;AAAA,QACA,qBAAC,SAAI,WAAU,8BAA6B,eAAY,QACtD;AAAA,8BAAC,UAAK,WAAU,6BAA6B,uBAAY;AAAA,UACzD,oBAAC,UAAK,WAAU,6BAA6B,sBAAW;AAAA,WAC1D;AAAA,SACF;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// ../ui-react/src/components/scroll/AnimateOnScroll.tsx
|
|
4
|
+
import {
|
|
5
|
+
useEffect,
|
|
6
|
+
createElement,
|
|
7
|
+
useState
|
|
8
|
+
} from "react";
|
|
9
|
+
import { motion, useReducedMotion } from "motion/react";
|
|
10
|
+
|
|
11
|
+
// ../ui-react/src/components/motion/variants.ts
|
|
12
|
+
var ENTRANCE_EASE = [0, 0, 0.2, 1];
|
|
13
|
+
var ENTRANCE_DURATION = 0.5;
|
|
14
|
+
var STAGGER_STEP = 0.08;
|
|
15
|
+
var DEFAULT_VIEWPORT_MARGIN = "-80px";
|
|
16
|
+
var entranceTransition = {
|
|
17
|
+
duration: ENTRANCE_DURATION,
|
|
18
|
+
ease: ENTRANCE_EASE
|
|
19
|
+
};
|
|
20
|
+
var ENTRANCE_KEYFRAMES = {
|
|
21
|
+
"fade-up": { hidden: { opacity: 0, y: 16 }, visible: { opacity: 1, y: 0 } },
|
|
22
|
+
fade: { hidden: { opacity: 0 }, visible: { opacity: 1 } },
|
|
23
|
+
"scale-in": { hidden: { opacity: 0, scale: 0.98 }, visible: { opacity: 1, scale: 1 } }
|
|
24
|
+
};
|
|
25
|
+
function withEntranceTransition(keyframes) {
|
|
26
|
+
return {
|
|
27
|
+
hidden: keyframes.hidden,
|
|
28
|
+
visible: { ...keyframes.visible, transition: entranceTransition }
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
var fadeUp = withEntranceTransition(ENTRANCE_KEYFRAMES["fade-up"]);
|
|
32
|
+
var fade = withEntranceTransition(ENTRANCE_KEYFRAMES.fade);
|
|
33
|
+
var scaleIn = withEntranceTransition(ENTRANCE_KEYFRAMES["scale-in"]);
|
|
34
|
+
var ENTRANCE_VARIANTS = {
|
|
35
|
+
"fade-up": fadeUp,
|
|
36
|
+
fade,
|
|
37
|
+
"scale-in": scaleIn
|
|
38
|
+
};
|
|
39
|
+
function staggerContainer(step = STAGGER_STEP) {
|
|
40
|
+
return {
|
|
41
|
+
hidden: {},
|
|
42
|
+
visible: { transition: { staggerChildren: step } }
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
var staggerItem = fadeUp;
|
|
46
|
+
|
|
47
|
+
// ../ui-react/src/components/scroll/AnimateOnScroll.tsx
|
|
48
|
+
import { jsx } from "react/jsx-runtime";
|
|
49
|
+
function AnimateOnScroll({
|
|
50
|
+
children,
|
|
51
|
+
className,
|
|
52
|
+
style,
|
|
53
|
+
variant = "fade-up",
|
|
54
|
+
as = "div",
|
|
55
|
+
once = true,
|
|
56
|
+
margin = DEFAULT_VIEWPORT_MARGIN
|
|
57
|
+
}) {
|
|
58
|
+
const reducedMotion = useReducedMotion();
|
|
59
|
+
const [mounted, setMounted] = useState(false);
|
|
60
|
+
useEffect(() => setMounted(true), []);
|
|
61
|
+
const supportsInView = mounted && typeof window !== "undefined" && typeof window.IntersectionObserver !== "undefined";
|
|
62
|
+
if (reducedMotion || !mounted || !supportsInView) {
|
|
63
|
+
return createElement(as, { className, style }, children);
|
|
64
|
+
}
|
|
65
|
+
const MotionTag = motion[as];
|
|
66
|
+
return /* @__PURE__ */ jsx(
|
|
67
|
+
MotionTag,
|
|
68
|
+
{
|
|
69
|
+
className,
|
|
70
|
+
style,
|
|
71
|
+
initial: "hidden",
|
|
72
|
+
whileInView: "visible",
|
|
73
|
+
viewport: { once, margin },
|
|
74
|
+
variants: ENTRANCE_VARIANTS[variant],
|
|
75
|
+
children
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// ../ui-react/src/components/motion/Marquee.tsx
|
|
81
|
+
import {
|
|
82
|
+
useEffect as useEffect2,
|
|
83
|
+
useState as useState2
|
|
84
|
+
} from "react";
|
|
85
|
+
import {
|
|
86
|
+
motion as motion2,
|
|
87
|
+
useAnimationFrame,
|
|
88
|
+
useMotionValue,
|
|
89
|
+
useReducedMotion as useReducedMotion2,
|
|
90
|
+
useTransform
|
|
91
|
+
} from "motion/react";
|
|
92
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
93
|
+
function Marquee({
|
|
94
|
+
children,
|
|
95
|
+
className,
|
|
96
|
+
speedSec = 24,
|
|
97
|
+
gap = "2rem",
|
|
98
|
+
pauseOnHover = true,
|
|
99
|
+
ariaLabel
|
|
100
|
+
}) {
|
|
101
|
+
const reducedMotion = useReducedMotion2();
|
|
102
|
+
const [mounted, setMounted] = useState2(false);
|
|
103
|
+
const [paused, setPaused] = useState2(false);
|
|
104
|
+
useEffect2(() => setMounted(true), []);
|
|
105
|
+
const x = useMotionValue(0);
|
|
106
|
+
const transform = useTransform(x, (v) => `translateX(${v}%)`);
|
|
107
|
+
useAnimationFrame((_t, delta) => {
|
|
108
|
+
if (reducedMotion || paused) return;
|
|
109
|
+
const percentPerMs = 50 / (speedSec * 1e3);
|
|
110
|
+
let next = x.get() - percentPerMs * delta;
|
|
111
|
+
if (next <= -50) next += 50;
|
|
112
|
+
x.set(next);
|
|
113
|
+
});
|
|
114
|
+
const staticStyle = {
|
|
115
|
+
display: "flex",
|
|
116
|
+
flexWrap: "wrap",
|
|
117
|
+
alignItems: "center",
|
|
118
|
+
gap
|
|
119
|
+
};
|
|
120
|
+
if (reducedMotion || !mounted) {
|
|
121
|
+
return /* @__PURE__ */ jsx2("div", { className, "aria-label": ariaLabel, style: staticStyle, children });
|
|
122
|
+
}
|
|
123
|
+
const copyStyle = {
|
|
124
|
+
display: "flex",
|
|
125
|
+
alignItems: "center",
|
|
126
|
+
gap,
|
|
127
|
+
flexShrink: 0,
|
|
128
|
+
paddingInlineEnd: gap
|
|
129
|
+
};
|
|
130
|
+
return /* @__PURE__ */ jsx2(
|
|
131
|
+
"div",
|
|
132
|
+
{
|
|
133
|
+
className,
|
|
134
|
+
"aria-label": ariaLabel,
|
|
135
|
+
style: { overflow: "hidden", inlineSize: "100%" },
|
|
136
|
+
onMouseEnter: pauseOnHover ? () => setPaused(true) : void 0,
|
|
137
|
+
onMouseLeave: pauseOnHover ? () => setPaused(false) : void 0,
|
|
138
|
+
children: /* @__PURE__ */ jsxs(
|
|
139
|
+
motion2.div,
|
|
140
|
+
{
|
|
141
|
+
style: { display: "flex", inlineSize: "max-content", willChange: "transform", transform },
|
|
142
|
+
children: [
|
|
143
|
+
/* @__PURE__ */ jsx2("div", { style: copyStyle, children }),
|
|
144
|
+
/* @__PURE__ */ jsx2("div", { style: copyStyle, "aria-hidden": true, children })
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
}
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// ../ui-react/src/components/scroll/StaggerGroup.tsx
|
|
153
|
+
import {
|
|
154
|
+
useEffect as useEffect3,
|
|
155
|
+
createElement as createElement2,
|
|
156
|
+
useState as useState3
|
|
157
|
+
} from "react";
|
|
158
|
+
import { motion as motion3, useReducedMotion as useReducedMotion3 } from "motion/react";
|
|
159
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
160
|
+
function StaggerGroup({
|
|
161
|
+
children,
|
|
162
|
+
className,
|
|
163
|
+
style,
|
|
164
|
+
as = "div",
|
|
165
|
+
staggerChildren = STAGGER_STEP,
|
|
166
|
+
once = true,
|
|
167
|
+
margin = DEFAULT_VIEWPORT_MARGIN
|
|
168
|
+
}) {
|
|
169
|
+
const reducedMotion = useReducedMotion3();
|
|
170
|
+
const [mounted, setMounted] = useState3(false);
|
|
171
|
+
useEffect3(() => setMounted(true), []);
|
|
172
|
+
if (reducedMotion || !mounted) {
|
|
173
|
+
return createElement2(as, { className, style }, children);
|
|
174
|
+
}
|
|
175
|
+
const MotionTag = motion3[as];
|
|
176
|
+
return /* @__PURE__ */ jsx3(
|
|
177
|
+
MotionTag,
|
|
178
|
+
{
|
|
179
|
+
className,
|
|
180
|
+
style,
|
|
181
|
+
initial: "hidden",
|
|
182
|
+
whileInView: "visible",
|
|
183
|
+
viewport: { once, margin },
|
|
184
|
+
variants: staggerContainer(staggerChildren),
|
|
185
|
+
children
|
|
186
|
+
}
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
function StaggerItem({ children, className, style, as = "div" }) {
|
|
190
|
+
const reducedMotion = useReducedMotion3();
|
|
191
|
+
const [mounted, setMounted] = useState3(false);
|
|
192
|
+
useEffect3(() => setMounted(true), []);
|
|
193
|
+
if (reducedMotion || !mounted) {
|
|
194
|
+
return createElement2(as, { className, style }, children);
|
|
195
|
+
}
|
|
196
|
+
const MotionTag = motion3[as];
|
|
197
|
+
return /* @__PURE__ */ jsx3(MotionTag, { className, style, variants: staggerItem, children });
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export {
|
|
201
|
+
AnimateOnScroll,
|
|
202
|
+
Marquee,
|
|
203
|
+
StaggerGroup,
|
|
204
|
+
StaggerItem
|
|
205
|
+
};
|
|
206
|
+
//# sourceMappingURL=chunk-WWS43XCT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../ui-react/src/components/scroll/AnimateOnScroll.tsx","../../ui-react/src/components/motion/variants.ts","../../ui-react/src/components/motion/Marquee.tsx","../../ui-react/src/components/scroll/StaggerGroup.tsx"],"sourcesContent":["\"use client\";\n\n/**\n * `AnimateOnScroll` — whileInView 진입 애니메이션 래퍼(ddd `scroll`).\n *\n * 모션 규율(M5, ds-rule-pack.md):\n * - `useReducedMotion()` true → 애니메이션 없이 즉시 표시.\n * - **마운트 전(SSR·하이드레이션 전)에는 initial=\"hidden\" 을 걸지 않는다** —\n * 서버 마크업은 항상 최종(보이는) 상태로 렌더한다. JS 미로드·모션 실패 시에도\n * 콘텐츠가 보여야 하는 계약(M6)을 지키기 위함. 진입 애니메이션은 하이드레이션\n * 이후에만 활성화되며, 이 컴포넌트를 쓰는 섹션은 통상 fold 아래라 \"보였다가\n * 숨는\" 플래시가 사용자에게 노출되지 않는다.\n * - **`IntersectionObserver` 가 없는 환경(구형 브라우저·테스트 스텁 삭제)도\n * 동일 계약을 지킨다.** motion/react 의 `whileInView` Feature 는 마운트 시\n * 무조건 `new IntersectionObserver(...)` 를 호출하므로, 그 생성자가 없으면\n * 관찰이 아예 시작되지 않아 `initial=\"hidden\"` 상태(opacity 0)에서 영원히\n * 멈춘다 — motion 라이브러리 자체는 이 마운트 경로에 폴백이 없다. 여기서\n * `IntersectionObserver` 존재 여부를 직접 확인해 없으면 reduced-motion과\n * 동일하게 최종 상태로 렌더한다(M6).\n *\n * variant(구조 상이 ≥2, M4-f): `fade-up` · `fade` · `scale-in` — 정의는\n * `../motion/variants`(C5, 손 복사 금지) 한 곳에서 import.\n */\nimport {\n useEffect,\n createElement,\n useState,\n type CSSProperties,\n type ReactNode,\n} from \"react\";\nimport { motion, useReducedMotion } from \"motion/react\";\nimport {\n DEFAULT_VIEWPORT_MARGIN,\n ENTRANCE_VARIANTS,\n type EntranceVariant,\n} from \"../motion/variants\";\n\ntype AnimateTag = \"div\" | \"section\" | \"article\" | \"li\" | \"span\";\n\nexport interface AnimateOnScrollProps {\n readonly children?: ReactNode;\n readonly className?: string;\n readonly style?: CSSProperties;\n /** 진입 애니메이션 종류(구조 상이). 기본 `fade-up`. */\n readonly variant?: EntranceVariant;\n /** 렌더할 시맨틱 엘리먼트(래퍼 div 추가 없이 그 자리를 대체). 기본 `div`. */\n readonly as?: AnimateTag;\n /** 한 번만 트리거(재진입 시 재생 안 함). 기본 true. */\n readonly once?: boolean;\n /** whileInView viewport root margin. 기본 `-80px`. */\n readonly margin?: string;\n}\n\nexport function AnimateOnScroll({\n children,\n className,\n style,\n variant = \"fade-up\",\n as = \"div\",\n once = true,\n margin = DEFAULT_VIEWPORT_MARGIN,\n}: AnimateOnScrollProps) {\n const reducedMotion = useReducedMotion();\n const [mounted, setMounted] = useState(false);\n useEffect(() => setMounted(true), []);\n\n // `mounted` already gates the SSR/pre-hydration pass, so this check only\n // ever runs client-side — safe to read `window` synchronously here.\n const supportsInView =\n mounted && typeof window !== \"undefined\" && typeof window.IntersectionObserver !== \"undefined\";\n\n if (reducedMotion || !mounted || !supportsInView) {\n return createElement(as, { className, style }, children);\n }\n\n const MotionTag = motion[as] as typeof motion.div;\n return (\n <MotionTag\n className={className}\n style={style}\n initial=\"hidden\"\n whileInView=\"visible\"\n viewport={{ once, margin }}\n variants={ENTRANCE_VARIANTS[variant]}\n >\n {children}\n </MotionTag>\n );\n}\n","/**\n * 공유 모션 variants — C5(생성물 손 복사 금지)의 정신을 따라 모든 `scroll`/`motion`\n * 프리미티브가 이 한 파일에서 variants 를 파생한다. 각 컴포넌트가 hidden/visible\n * keyframe 객체를 손으로 복사하지 않는다(ds-rule-pack.md C5).\n *\n * 타이밍 출처(C1 — 임의값 대신 토큰 참조):\n * - `ENTRANCE_EASE` = DTCG `--ease-out`(packages/tokens/src/motion.dtcg.json:\n * `cubic-bezier(0, 0, 0.2, 1)`)과 동일 곡선. 등장(entrance)에 쓰는 표준 감속.\n * - `ENTRANCE_DURATION`(0.5s)·`STAGGER_STEP`(0.08s) = 앰비언트 등장 스케일.\n * motion.dtcg 의 100~200ms 는 INP 예산이 걸린 마이크로 인터랙션\n * (hover/focus/button)용 cap 이며(M5), 스크롤 진입 리빌은 입력 지연(INP)\n * 경로가 아니라 그 cap 대상이 아니다 — 별도 앰비언트 스케일로 문서화한다.\n */\nimport type { Variants } from \"motion/react\";\n\n/** = DTCG `--ease-out` (packages/tokens/src/motion.dtcg.json). */\nexport const ENTRANCE_EASE = [0, 0, 0.2, 1] as const;\n/** 앰비언트 등장 지속(초). INP cap(200ms) 대상 아님 — 상단 주석 참조. */\nexport const ENTRANCE_DURATION = 0.5;\n/** 자식 순차 지연(초). */\nexport const STAGGER_STEP = 0.08;\n/** whileInView viewport 기본 margin — 뷰포트 하단 80px 전 트리거. */\nexport const DEFAULT_VIEWPORT_MARGIN = \"-80px\";\n\nconst entranceTransition = {\n duration: ENTRANCE_DURATION,\n ease: ENTRANCE_EASE,\n} as const;\n\nexport type EntranceVariant = \"fade-up\" | \"fade\" | \"scale-in\";\n\n/** 모션 유무와 관계없이 공유하는 진입 시작/완료 상태의 단일 원본. */\nexport const ENTRANCE_KEYFRAMES = {\n \"fade-up\": { hidden: { opacity: 0, y: 16 }, visible: { opacity: 1, y: 0 } },\n fade: { hidden: { opacity: 0 }, visible: { opacity: 1 } },\n \"scale-in\": { hidden: { opacity: 0, scale: 0.98 }, visible: { opacity: 1, scale: 1 } },\n} as const;\n\nfunction withEntranceTransition(keyframes: (typeof ENTRANCE_KEYFRAMES)[EntranceVariant]): Variants {\n return {\n hidden: keyframes.hidden,\n visible: { ...keyframes.visible, transition: entranceTransition },\n };\n}\n\n/** fade + 상승(구조: 이동 O). */\nexport const fadeUp: Variants = withEntranceTransition(ENTRANCE_KEYFRAMES[\"fade-up\"]);\n\n/** fade only(구조: 이동 X). */\nexport const fade: Variants = withEntranceTransition(ENTRANCE_KEYFRAMES.fade);\n\n/** subtle scale(구조: 축소→기본, AI-slop #10 준수 — 0.98 미만 스케일 금지). */\nexport const scaleIn: Variants = withEntranceTransition(ENTRANCE_KEYFRAMES[\"scale-in\"]);\n\n/** `AnimateOnScroll` 의 3 구조 상이 variant(M4-f) — 여기서만 정의. */\nexport const ENTRANCE_VARIANTS: Record<EntranceVariant, Variants> = {\n \"fade-up\": fadeUp,\n fade,\n \"scale-in\": scaleIn,\n};\n\n/** stagger 컨테이너 — 자식 진입을 `step` 간격으로 순차 트리거. */\nexport function staggerContainer(step: number = STAGGER_STEP): Variants {\n return {\n hidden: {},\n visible: { transition: { staggerChildren: step } },\n };\n}\n\n/** stagger 자식 — 컨테이너의 hidden/visible 라벨을 상속받아 fadeUp 으로 진입. */\nexport const staggerItem: Variants = fadeUp;\n","\"use client\";\n\n/**\n * `Marquee` — 수평 무한 루프(ddd `motion`). 로고 클라우드·신뢰 배지 띠용.\n *\n * 모션 규율(M5·AI-slop):\n * - `useReducedMotion()` true 또는 마운트 전 → **정지**. 스크롤 없이\n * `flex-wrap` 으로 항목 전체를 한 번에 노출(콘텐츠 손실 없음, M6).\n * - 진행 방식 = `useAnimationFrame` 로 매 프레임 균일 이동(선형). hover 시\n * 일시정지(pause-on-hover) — 정지/재개가 위치 점프 없이 이어진다.\n * - 과한 효과 금지(AI-slop #10) — scale·회전 없음, 등속 이동만.\n *\n * 트랙은 자식을 2벌 복제해 -50% 이동 시 이음매 없이 순환한다.\n */\nimport {\n useEffect,\n useState,\n type CSSProperties,\n type ReactNode,\n} from \"react\";\nimport {\n motion,\n useAnimationFrame,\n useMotionValue,\n useReducedMotion,\n useTransform,\n} from \"motion/react\";\n\nexport interface MarqueeProps {\n readonly children?: ReactNode;\n readonly className?: string;\n /** 한 바퀴(자식 1벌 폭) 이동에 걸리는 시간(초). 기본 24. */\n readonly speedSec?: number;\n /** 항목 간격(CSS length). 기본 `2rem`(구조 간격 — 브랜드 토큰 아님). */\n readonly gap?: string;\n /** hover 시 일시정지. 기본 true. */\n readonly pauseOnHover?: boolean;\n /** 스크린리더용 그룹 레이블. */\n readonly ariaLabel?: string;\n}\n\nexport function Marquee({\n children,\n className,\n speedSec = 24,\n gap = \"2rem\",\n pauseOnHover = true,\n ariaLabel,\n}: MarqueeProps) {\n const reducedMotion = useReducedMotion();\n const [mounted, setMounted] = useState(false);\n const [paused, setPaused] = useState(false);\n useEffect(() => setMounted(true), []);\n\n const x = useMotionValue(0);\n const transform = useTransform(x, (v) => `translateX(${v}%)`);\n\n useAnimationFrame((_t, delta) => {\n if (reducedMotion || paused) return;\n const percentPerMs = 50 / (speedSec * 1000); // 자식 1벌 = 트랙의 50%\n let next = x.get() - percentPerMs * delta;\n if (next <= -50) next += 50; // 이음매 없는 순환\n x.set(next);\n });\n\n const staticStyle: CSSProperties = {\n display: \"flex\",\n flexWrap: \"wrap\",\n alignItems: \"center\",\n gap,\n };\n if (reducedMotion || !mounted) {\n return (\n <div className={className} aria-label={ariaLabel} style={staticStyle}>\n {children}\n </div>\n );\n }\n\n const copyStyle: CSSProperties = {\n display: \"flex\",\n alignItems: \"center\",\n gap,\n flexShrink: 0,\n paddingInlineEnd: gap,\n };\n return (\n <div\n className={className}\n aria-label={ariaLabel}\n style={{ overflow: \"hidden\", inlineSize: \"100%\" }}\n onMouseEnter={pauseOnHover ? () => setPaused(true) : undefined}\n onMouseLeave={pauseOnHover ? () => setPaused(false) : undefined}\n >\n <motion.div\n style={{ display: \"flex\", inlineSize: \"max-content\", willChange: \"transform\", transform }}\n >\n <div style={copyStyle}>{children}</div>\n <div style={copyStyle} aria-hidden>\n {children}\n </div>\n </motion.div>\n </div>\n );\n}\n","\"use client\";\n\n/**\n * `StaggerGroup` + `StaggerItem` — 자식 순차 진입(ddd `scroll`). 카드 그리드용.\n *\n * `StaggerGroup` 이 컨테이너(초기 hidden→whileInView visible)를, 각 `StaggerItem`\n * 은 컨테이너의 애니메이션 라벨을 상속받아 `STAGGER_STEP` 간격으로 진입한다.\n * variants 정의는 `../motion/variants` 한 곳(C5). 모션 규율은 `AnimateOnScroll`\n * 와 동일 — reduce·마운트 전에는 애니메이션 없이 시맨틱 엘리먼트를 그대로 렌더\n * (래퍼 div 추가 없음 → SSR 마크업 불변, M6).\n */\nimport {\n useEffect,\n createElement,\n useState,\n type CSSProperties,\n type ReactNode,\n} from \"react\";\nimport { motion, useReducedMotion } from \"motion/react\";\nimport {\n DEFAULT_VIEWPORT_MARGIN,\n STAGGER_STEP,\n staggerContainer,\n staggerItem,\n} from \"../motion/variants\";\n\ntype GroupTag = \"div\" | \"ul\" | \"ol\" | \"section\";\ntype ItemTag = \"div\" | \"li\" | \"article\";\n\nexport interface StaggerGroupProps {\n readonly children?: ReactNode;\n readonly className?: string;\n readonly style?: CSSProperties;\n /** 렌더할 시맨틱 컨테이너 엘리먼트. 기본 `div`. */\n readonly as?: GroupTag;\n /** 자식 순차 지연(초). 기본 0.08. */\n readonly staggerChildren?: number;\n readonly once?: boolean;\n readonly margin?: string;\n}\n\nexport function StaggerGroup({\n children,\n className,\n style,\n as = \"div\",\n staggerChildren = STAGGER_STEP,\n once = true,\n margin = DEFAULT_VIEWPORT_MARGIN,\n}: StaggerGroupProps) {\n const reducedMotion = useReducedMotion();\n const [mounted, setMounted] = useState(false);\n useEffect(() => setMounted(true), []);\n\n if (reducedMotion || !mounted) {\n return createElement(as, { className, style }, children);\n }\n\n const MotionTag = motion[as] as typeof motion.div;\n return (\n <MotionTag\n className={className}\n style={style}\n initial=\"hidden\"\n whileInView=\"visible\"\n viewport={{ once, margin }}\n variants={staggerContainer(staggerChildren)}\n >\n {children}\n </MotionTag>\n );\n}\n\nexport interface StaggerItemProps {\n readonly children?: ReactNode;\n readonly className?: string;\n readonly style?: CSSProperties;\n /** 렌더할 시맨틱 아이템 엘리먼트. 기본 `div`. */\n readonly as?: ItemTag;\n}\n\nexport function StaggerItem({ children, className, style, as = \"div\" }: StaggerItemProps) {\n const reducedMotion = useReducedMotion();\n const [mounted, setMounted] = useState(false);\n useEffect(() => setMounted(true), []);\n\n if (reducedMotion || !mounted) {\n return createElement(as, { className, style }, children);\n }\n\n // initial/whileInView 없음 — 부모 StaggerGroup 의 hidden/visible 라벨을 상속.\n const MotionTag = motion[as] as typeof motion.div;\n return (\n <MotionTag className={className} style={style} variants={staggerItem}>\n {children}\n </MotionTag>\n );\n}\n"],"mappings":";AAuBA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP,SAAS,QAAQ,wBAAwB;;;ACdlC,IAAM,gBAAgB,CAAC,GAAG,GAAG,KAAK,CAAC;AAEnC,IAAM,oBAAoB;AAE1B,IAAM,eAAe;AAErB,IAAM,0BAA0B;AAEvC,IAAM,qBAAqB;AAAA,EACzB,UAAU;AAAA,EACV,MAAM;AACR;AAKO,IAAM,qBAAqB;AAAA,EAChC,WAAW,EAAE,QAAQ,EAAE,SAAS,GAAG,GAAG,GAAG,GAAG,SAAS,EAAE,SAAS,GAAG,GAAG,EAAE,EAAE;AAAA,EAC1E,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,SAAS,EAAE,EAAE;AAAA,EACxD,YAAY,EAAE,QAAQ,EAAE,SAAS,GAAG,OAAO,KAAK,GAAG,SAAS,EAAE,SAAS,GAAG,OAAO,EAAE,EAAE;AACvF;AAEA,SAAS,uBAAuB,WAAmE;AACjG,SAAO;AAAA,IACL,QAAQ,UAAU;AAAA,IAClB,SAAS,EAAE,GAAG,UAAU,SAAS,YAAY,mBAAmB;AAAA,EAClE;AACF;AAGO,IAAM,SAAmB,uBAAuB,mBAAmB,SAAS,CAAC;AAG7E,IAAM,OAAiB,uBAAuB,mBAAmB,IAAI;AAGrE,IAAM,UAAoB,uBAAuB,mBAAmB,UAAU,CAAC;AAG/E,IAAM,oBAAuD;AAAA,EAClE,W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;AAAA,EACE,aAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,YAAAC;AAAA,OAGK;AACP,SAAS,UAAAC,SAAQ,oBAAAC,yBAAwB;AA0CrC,gBAAAC,YAAA;AAnBG,SAAS,aAAa;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA,KAAK;AAAA,EACL,kBAAkB;AAAA,EAClB,OAAO;AAAA,EACP,SAAS;AACX,GAAsB;AACpB,QAAM,gBAAgBC,kBAAiB;AACvC,QAAM,CAAC,SAAS,UAAU,IAAIC,UAAS,KAAK;AAC5C,EAAAC,WAAU,MAAM,WAAW,IAAI,GAAG,CAAC,CAAC;AAEpC,MAAI,iBAAiB,CAAC,SAAS;AAC7B,WAAOC,eAAc,IAAI,EAAE,WAAW,MAAM,GAAG,QAAQ;AAAA,EACzD;AAEA,QAAM,YAAYC,QAAO,EAAE;AAC3B,SACE,gBAAAL;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,SAAQ;AAAA,MACR,aAAY;AAAA,MACZ,UAAU,EAAE,MAAM,OAAO;AAAA,MACzB,UAAU,iBAAiB,eAAe;AAAA,MAEzC;AAAA;AAAA,EACH;AAEJ;AAUO,SAAS,YAAY,EAAE,UAAU,WAAW,OAAO,KAAK,MAAM,GAAqB;AACxF,QAAM,gBAAgBC,kBAAiB;AACvC,QAAM,CAAC,SAAS,UAAU,IAAIC,UAAS,KAAK;AAC5C,EAAAC,WAAU,MAAM,WAAW,IAAI,GAAG,CAAC,CAAC;AAEpC,MAAI,iBAAiB,CAAC,SAAS;AAC7B,WAAOC,eAAc,IAAI,EAAE,WAAW,MAAM,GAAG,QAAQ;AAAA,EACzD;AAGA,QAAM,YAAYC,QAAO,EAAE;AAC3B,SACE,gBAAAL,KAAC,aAAU,WAAsB,OAAc,UAAU,aACtD,UACH;AAEJ;","names":["useEffect","useState","motion","useReducedMotion","jsx","useEffect","createElement","useState","motion","useReducedMotion","jsx","useReducedMotion","useState","useEffect","createElement","motion"]}
|