feat(pop-card-list): PopCardList 컴포넌트 구현

- PopCardList 컴포넌트 추가 (NumberInputModal, PackageUnitModal 포함)
- ComponentEditorPanel, PopRenderer 충돌 해결 (modals + onRequestResize 통합)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
shin
2026-02-24 15:54:57 +09:00
parent 3336384434
commit 8cfd4024e1
19 changed files with 2099 additions and 372 deletions
@@ -146,6 +146,28 @@ function PopScreenViewPage() {
}
}, [screenId]);
// 뷰어 모드에서도 컴포넌트 크기 변경 지원 (더보기 등)
const handleRequestResize = React.useCallback((componentId: string, newRowSpan: number, newColSpan?: number) => {
setLayout((prev) => {
const comp = prev.components[componentId];
if (!comp) return prev;
return {
...prev,
components: {
...prev.components,
[componentId]: {
...comp,
position: {
...comp.position,
rowSpan: newRowSpan,
...(newColSpan !== undefined ? { colSpan: newColSpan } : {}),
},
},
},
};
});
}, []);
const currentDevice = DEVICE_SIZES[deviceType][isLandscape ? "landscape" : "portrait"];
const hasComponents = Object.keys(layout.components).length > 0;
@@ -301,6 +323,8 @@ function PopScreenViewPage() {
currentMode={currentModeKey}
overrideGap={adjustedGap}
overridePadding={adjustedPadding}
onRequestResize={handleRequestResize}
currentScreenId={screenId}
/>
);
})()}