v7.0.0-beta.2 release
This commit is contained in:
1 parent
6595fd0eb5
commit
fa8eba7a0d
1165 files changed
+107118
-762127
No files matched your search
+7
-2
@@ -4,8 +4,13 @@ export interface FileInputProps extends Omit<React.InputHTMLAttributes<HTMLInput
|
||||
accept?: string;
|
||||
/** 최대 파일 크기 (MB) */
|
||||
maxSize?: number;
|
||||
/** 파일 선택 시 콜백 */
|
||||
onChange?: (file: File | null) => void;
|
||||
/** 파일 선택 시 콜백 ({ target: { value } } 패턴) */
|
||||
onChange?: (event: {
|
||||
target: {
|
||||
value: File | null;
|
||||
name: string;
|
||||
};
|
||||
}) => void;
|
||||
/** 에러 발생 시 콜백 */
|
||||
onError?: (error: string) => void;
|
||||
/** 버튼 텍스트 */
|
||||
|
||||
@@ -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 컴포넌트
|
||||
|
||||
+2
@@ -86,6 +86,8 @@ export interface DataGridFooterCell {
|
||||
text?: string;
|
||||
}
|
||||
export interface DataGridProps {
|
||||
/** DOM id (transition_overlay.target / overlay_target 으로 spinner mount 영역 지정용) */
|
||||
id?: string;
|
||||
columns: DataGridColumn[];
|
||||
data: any[];
|
||||
sortable?: boolean;
|
||||
|
||||
-1
@@ -35,7 +35,6 @@ export interface HtmlContentProps {
|
||||
* @example
|
||||
* // HTML 렌더링 (기본값)
|
||||
* <HtmlContent content="<p>안녕하세요</p>" />
|
||||
* <HtmlContent content="<p>안녕하세요</p>" isHtml={true} />
|
||||
*
|
||||
* // 일반 텍스트 렌더링
|
||||
* <HtmlContent
|
||||
|
||||
Vendored
+34
-3
@@ -10,6 +10,7 @@ export interface NotificationItem {
|
||||
time: string;
|
||||
read?: boolean;
|
||||
iconName?: IconName;
|
||||
data?: Record<string, unknown>;
|
||||
onClick?: () => void;
|
||||
}
|
||||
/**
|
||||
@@ -18,18 +19,46 @@ export interface NotificationItem {
|
||||
export interface NotificationCenterProps {
|
||||
/** 알림 목록 */
|
||||
notifications?: NotificationItem[];
|
||||
/** 서버 기반 미읽음 알림 수 */
|
||||
unreadCount?: number;
|
||||
/** 추가 로드 가능 여부 */
|
||||
hasMore?: boolean;
|
||||
/** 로딩 상태 */
|
||||
loading?: boolean;
|
||||
/** 알림 제목 텍스트 */
|
||||
titleText?: string;
|
||||
/** 알림 없음 텍스트 */
|
||||
emptyText?: string;
|
||||
/** 알림 클릭 핸들러 */
|
||||
onNotificationClick?: (id: string | number) => void;
|
||||
/** "모두 읽음" 버튼 텍스트 */
|
||||
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 컴포넌트
|
||||
*
|
||||
* 알림 센터 - 알림 목록 표시 및 관리
|
||||
* 알림 센터 - 알림 목록 표시, 무한스크롤, 읽음 추적
|
||||
*
|
||||
* @example
|
||||
* ```tsx
|
||||
@@ -37,6 +66,8 @@ export interface NotificationCenterProps {
|
||||
* notifications={[
|
||||
* { id: 1, title: '새 댓글', message: '게시물에 댓글이 달렸습니다', time: '5분 전' }
|
||||
* ]}
|
||||
* unreadCount={5}
|
||||
* hasMore={true}
|
||||
* titleText="Notifications"
|
||||
* emptyText="No notifications"
|
||||
* />
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
import { default as React } from 'react';
|
||||
/**
|
||||
* 페이지 로딩 컴포넌트 Props (엔진에서 전달)
|
||||
*
|
||||
* @since engine-v1.29.0
|
||||
*/
|
||||
export interface PageLoadingProps {
|
||||
options?: {
|
||||
text?: string;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* 어드민 페이지 로딩 인디케이터 컴포넌트
|
||||
*
|
||||
* `transition_overlay` 의 spinner 스타일에서 사용된다.
|
||||
* 엔진은 타겟 요소 내부에 빈 컨테이너만 삽입하며, 포지셔닝/배경/z-index/다크모드
|
||||
* 등 모든 비주얼 스타일은 이 컴포넌트가 결정한다. React 트리 외부에 렌더링되므로
|
||||
* 인라인 스타일을 사용한다.
|
||||
*
|
||||
* @since engine-v1.29.0
|
||||
*/
|
||||
declare const PageLoading: React.FC<PageLoadingProps>;
|
||||
export default PageLoading;
|
||||
+7
-11
@@ -14,6 +14,8 @@ export interface TabNavigationProps {
|
||||
variant?: 'default' | 'pills' | 'underline';
|
||||
className?: string;
|
||||
style?: React.CSSProperties;
|
||||
/** 모바일 전환 임계값 (px). 기본값 768 — G7 ResponsiveContext mobile 프리셋과 동일 */
|
||||
mobileBreakpoint?: number;
|
||||
}
|
||||
/**
|
||||
* TabNavigation 집합 컴포넌트
|
||||
@@ -21,10 +23,14 @@ export interface TabNavigationProps {
|
||||
* 탭 네비게이션을 제공하는 컴포넌트입니다.
|
||||
* 여러 탭을 전환할 수 있으며, 아이콘과 뱃지를 지원합니다.
|
||||
*
|
||||
* 반응형: 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 사용 예시
|
||||
@@ -38,15 +44,5 @@ export interface TabNavigationProps {
|
||||
* ]
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* // 부모 컴포넌트에서 컨텐츠 렌더링 예시:
|
||||
* const [activeTab, setActiveTab] = useState(1);
|
||||
* return (
|
||||
* <>
|
||||
* <TabNavigation tabs={tabs} activeTabId={activeTab} onTabChange={setActiveTab} />
|
||||
* {activeTab === 1 && <ProfileContent />}
|
||||
* {activeTab === 2 && <SettingsContent />}
|
||||
* </>
|
||||
* );
|
||||
*/
|
||||
export declare const TabNavigation: React.FC<TabNavigationProps>;
|
||||
Vendored
+2
@@ -54,6 +54,8 @@ export interface TabNavigationScrollProps {
|
||||
* - 내부 상태로 활성 탭 관리 (React useState)
|
||||
* - scrollToSectionHandler를 사용하여 자동 스크롤
|
||||
* - 탭 클릭 시 즉시 UI 업데이트 + 스크롤 이동
|
||||
* - 반응형: G7Core.useResponsive() hook으로 화면 너비를 구독하여 768px 미만 시
|
||||
* Select 드롭다운으로 자동 전환 (Tailwind hidden md:flex 분기 미사용 — 위지윅 미리보기 호환)
|
||||
*
|
||||
* @example
|
||||
* ```json
|
||||
|
||||
+2
@@ -78,6 +78,8 @@ export { ColumnSelector } from './ColumnSelector';
|
||||
export type { ColumnSelectorProps, ColumnItem } from './ColumnSelector';
|
||||
export { PageTransitionIndicator } from './PageTransitionIndicator';
|
||||
export type { PageTransitionIndicatorProps } from './PageTransitionIndicator';
|
||||
export { default as PageLoading } from './PageLoading';
|
||||
export type { PageLoadingProps } from './PageLoading';
|
||||
export { Toggle } from './Toggle';
|
||||
export type { ToggleProps } from './Toggle';
|
||||
export { TagInput } from './TagInput';
|
||||
|
||||
Reference in new issue
Block a user