v7.0.0-beta.2 release

This commit is contained in:
HeuJung committed 2026-04-20 20:37:49 +09:00
1 parent 6595fd0eb5
commit fa8eba7a0d
1165 files changed
+107118 -762127

No files matched your search

@@ -13,6 +13,10 @@ export interface SelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectE
value: string | number;
};
}) => void;
/** 드롭다운 내 검색 input 활성화 (engine-v1.40.0+) */
searchable?: boolean;
/** 검색 input placeholder */
searchPlaceholder?: string;
}
/**
* 커스텀 Select 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { NotificationItem } from './NotificationCenter';
interface Board {
id: number;
name: string;
@@ -36,6 +37,38 @@ interface HeaderProps {
shopBase?: string;
/** 추가 CSS 클래스 */
className?: string;
/** 알림 목록 (NotificationCenter에 전달) */
notifications?: NotificationItem[];
/** 더 불러올 페이지 존재 여부 */
notificationHasMore?: boolean;
/** 알림 로딩 상태 */
notificationLoading?: boolean;
/** "안 읽은 알림만" 필터 상태 */
notificationUnreadOnly?: boolean;
/** 알림 드롭다운 제목 */
notificationTitleText?: string;
/** 알림 없음 텍스트 */
notificationEmptyText?: string;
/** "모두 읽음" 텍스트 */
notificationMarkAllReadText?: string;
/** "모두 삭제" 텍스트 */
notificationDeleteAllText?: string;
/** "안 읽은 알림만" 체크박스 텍스트 */
notificationUnreadOnlyText?: string;
/** 알림 드롭다운 닫힐 때 (뷰포트에 보인 미읽음 ID 배열 전달) */
onNotificationClose?: (visibleUnreadIds: (string | number)[]) => void;
/** 개별 알림 클릭 */
onNotificationClick?: (notification: NotificationItem) => void;
/** 무한 스크롤: 추가 로드 */
onNotificationLoadMore?: () => void;
/** "모두 읽음" 처리 */
onNotificationMarkAllRead?: () => void;
/** "모두 삭제" 요청 (모달 오픈) */
onNotificationDeleteAll?: () => void;
/** 개별 알림 삭제 */
onNotificationDelete?: (notification: NotificationItem) => void;
/** "안 읽은 알림만" 체크박스 토글 */
onNotificationUnreadOnlyToggle?: (checked: boolean) => void;
}
/**
* 사이트 헤더 컴포넌트
@@ -35,7 +35,6 @@ export interface HtmlContentProps {
* @example
* // HTML 렌더링 (기본값)
* <HtmlContent content="<p>안녕하세요</p>" />
* <HtmlContent content="<p>안녕하세요</p>" isHtml={true} />
*
* // 일반 텍스트 렌더링
* <HtmlContent
@@ -0,0 +1,78 @@
import { default as React } from 'react';
import { IconName } from '../basic/IconTypes';
/**
* 알림 아이템 인터페이스
*/
export interface NotificationItem {
id: string | number;
title: string;
message: string;
time: string;
read?: boolean;
iconName?: IconName;
data?: Record<string, unknown>;
onClick?: () => void;
}
/**
* NotificationCenter Props
*/
export interface NotificationCenterProps {
/** 알림 목록 */
notifications?: NotificationItem[];
/** 서버 기반 미읽음 알림 수 */
unreadCount?: number;
/** 추가 로드 가능 여부 */
hasMore?: boolean;
/** 로딩 상태 */
loading?: boolean;
/** 알림 제목 텍스트 */
titleText?: string;
/** 알림 없음 텍스트 */
emptyText?: string;
/** "모두 읽음" 버튼 텍스트 */
markAllReadText?: string;
/** "모두 삭제" 버튼 텍스트 */
deleteAllText?: string;
/** "미읽음만" 체크박스 텍스트 */
unreadOnlyText?: string;
/** "미읽음만" 체크박스 상태 */
unreadOnly?: boolean;
/** 알림 클릭 핸들러 (알림 전체 객체 전달) */
onNotificationClick?: (notification: NotificationItem) => void;
/** 드롭다운 닫힐 때 (뷰포트에 들어온 미읽음 알림 ID 목록) */
onClose?: (visibleUnreadIds: (string | number)[]) => void;
/** 추가 로드 요청 */
onLoadMore?: () => void;
/** 모두 읽음 처리 요청 */
onMarkAllRead?: () => void;
/** 모두 삭제 요청 */
onDeleteAll?: () => void;
/** 개별 알림 삭제 요청 (알림 전체 객체 전달) */
onDelete?: (notification: NotificationItem) => void;
/** "미읽음만" 체크박스 토글 */
onUnreadOnlyToggle?: (checked: boolean) => void;
/** 드롭다운 정렬 방향 — "right"(기본): 우측 정렬되어 좌측으로 확장 / "left": 좌측 정렬되어 우측으로 확장 */
dropdownAlign?: 'left' | 'right';
className?: string;
}
/**
* NotificationCenter 컴포넌트 (User)
*
* 알림 센터 - 알림 목록 표시, 무한스크롤, 읽음 추적.
* sirsoft-admin_basic의 NotificationCenter와 동일 API/동작을 제공한다.
*
* @example
* ```tsx
* <NotificationCenter
* notifications={[
* { id: 1, title: '새 댓글', message: '게시물에 댓글이 달렸습니다', time: '5분 전' }
* ]}
* unreadCount={5}
* hasMore={true}
* titleText="알림"
* emptyText="알림이 없습니다."
* />
* ```
*/
export declare const NotificationCenter: React.FC<NotificationCenterProps>;
export default NotificationCenter;
@@ -14,24 +14,25 @@ export interface TabNavigationProps {
variant?: 'default' | 'pills' | 'underline';
className?: string;
style?: React.CSSProperties;
/** 모바일에서 그리드 레이아웃 사용 (기본: true) */
mobileGrid?: boolean;
/** 모바일 그리드 컬럼 수 (기본: 3) */
mobileColumns?: number;
/** 숨길 탭 ID 목록 (동적 조건부 탭 노출용) */
hiddenTabIds?: (string | number)[];
/** 모바일 전환 임계값 (px). 기본값 768 — G7 ResponsiveContext mobile 프리셋과 동일 */
mobileBreakpoint?: number;
}
/**
* TabNavigation 집합 컴포넌트
*
* 탭 네비게이션을 제공하는 컴포넌트입니다.
* 여러 탭을 전환할 수 있으며, 아이콘과 뱃지를 지원합니다.
* 모바일에서는 그리드 레이아웃으로 표시합니다.
*
* 반응형: G7Core.useResponsive() hook으로 화면 너비를 구독하여
* mobileBreakpoint(기본 768px) 미만일 때 Select 드롭다운으로 자동 전환됩니다.
* Tailwind hidden md:flex 분기를 사용하지 않으므로 위지윅 편집기의 디바이스 미리보기와도 호환됩니다.
*
* **주의**: 이 컴포넌트는 순수 네비게이션 UI만 제공하며,
* 실제 탭 컨텐츠는 부모 컴포넌트에서 activeTabId를 기반으로 조건부 렌더링해야 합니다.
*
* 기본 컴포넌트 조합: Nav + Button + Icon + Div + Span
* 기본 컴포넌트 조합: Nav + Button + Icon + Div + Span + Select
*
* @example
* // 레이아웃 JSON 사용 예시
@@ -39,7 +40,6 @@ export interface TabNavigationProps {
* "name": "TabNavigation",
* "props": {
* "activeTabId": 1,
* "mobileColumns": 3,
* "tabs": [
* {"id": 1, "label": "프로필", "iconName": "user"},
* {"id": 2, "label": "설정", "iconName": "cog", "badge": 3},
@@ -7,6 +7,8 @@
export { default as Header } from './Header';
export { default as Footer } from './Footer';
export { default as MobileNav } from './MobileNav';
export { NotificationCenter } from './NotificationCenter';
export type { NotificationCenterProps, NotificationItem } from './NotificationCenter';
export { default as ProductCard } from './ProductCard';
export { default as ImageGallery } from './ImageGallery';
export { default as ProductImageViewer } from './ProductImageViewer';
@@ -50,6 +52,7 @@ export declare const compositeComponents: {
Header: () => Promise<typeof import("./Header")>;
Footer: () => Promise<typeof import("./Footer")>;
MobileNav: () => Promise<typeof import("./MobileNav")>;
NotificationCenter: () => Promise<typeof import("./NotificationCenter")>;
ProductCard: () => Promise<typeof import("./ProductCard")>;
ImageGallery: () => Promise<typeof import("./ImageGallery")>;
ProductImageViewer: () => Promise<typeof import("./ProductImageViewer")>;