@designbasekorea/ui 0.4.1 → 0.5.2

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/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import React$1, { ReactNode } from 'react';
2
2
  import { IconProps } from '@designbasekorea/icons';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
+ export { getTheme, setTheme, toggleTheme } from '@designbasekorea/theme';
4
5
 
5
6
  /**
6
7
  * Accordion 컴포넌트
@@ -143,7 +144,7 @@ interface AlertAction {
143
144
  /** 액션 라벨 */
144
145
  label: string;
145
146
  /** 액션 타입 */
146
- variant?: 'primary' | 'secondary' | 'tertiary' | 'danger' | 'success';
147
+ variant?: 'primary' | 'secondary' | 'tertiary' | 'danger';
147
148
  /** 액션 크기 */
148
149
  size?: 's' | 'm' | 'l';
149
150
  /** 액션 핸들러 */
@@ -177,55 +178,74 @@ interface AlertProps {
177
178
  }
178
179
  declare const Alert: React$1.FC<AlertProps>;
179
180
 
181
+ type AuroraIntensity = 'subtle' | 'medium' | 'vivid';
182
+ type AnimationType = 'gradient' | 'pulse' | 'wave' | 'particles' | 'stars' | 'aurora';
183
+ type DirectionType = 'left' | 'right' | 'up' | 'down' | 'diagonal' | 'radial';
180
184
  interface AnimationBackgroundProps {
181
185
  /** 애니메이션 타입 */
182
- type?: 'gradient' | 'rainbow' | 'pulse' | 'wave' | 'particles' | 'stars' | 'aurora' | 'fire' | 'ocean' | 'sunset';
186
+ type?: AnimationType;
187
+ /** 테마 (다크/라이트, 오로라·배경 톤 조절) */
188
+ theme?: 'light' | 'dark';
189
+ /** 오로라/배경 강도 */
190
+ intensity?: AuroraIntensity;
191
+ /** 오로라 블러 강도 (px) */
192
+ blur?: number;
183
193
  /** 애니메이션 속도 (ms) */
184
194
  speed?: number;
185
- /** 애니메이션 반복 횟수 (0 무한 반복) */
195
+ /** 반복 횟수 (0 = 무한) */
186
196
  repeat?: number;
187
- /** 애니메이션 지연 시간 (ms) */
197
+ /** 지연 (ms) */
188
198
  delay?: number;
189
- /** 애니메이션 방향 */
190
- direction?: 'left' | 'right' | 'up' | 'down' | 'diagonal' | 'radial';
191
- /** 배경 색상들 */
199
+ /** 방향 */
200
+ direction?: DirectionType;
201
+ /** 배경 색상 */
192
202
  colors?: string[];
193
- /** 컴포넌트 너비 */
203
+ /** 너비 */
194
204
  width?: string | number;
195
- /** 컴포넌트 높이 */
205
+ /** 높이 */
196
206
  height?: string | number;
197
207
  /** 테두리 반경 */
198
208
  borderRadius?: string | number;
199
209
  /** 투명도 */
200
210
  opacity?: number;
201
211
  /** 블렌드 모드 */
202
- blendMode?: 'normal' | 'multiply' | 'screen' | 'overlay' | 'soft-light' | 'hard-light' | 'color-dodge' | 'color-burn' | 'darken' | 'lighten' | 'difference' | 'exclusion' | 'hue' | 'saturation' | 'color' | 'luminosity';
203
- /** 파티클 개수 (particles 타입용) */
212
+ blendMode?: React$1.CSSProperties['mixBlendMode'];
213
+ /** 파티클 개수 */
204
214
  particleCount?: number;
205
- /** 파티클 크기 (particles 타입용) */
215
+ /** 파티클 크기 */
206
216
  particleSize?: number;
207
- /** 별 개수 (stars 타입용) */
217
+ /** 별 개수 */
208
218
  starCount?: number;
209
- /** 별 크기 (stars 타입용) */
219
+ /** 별 크기 */
210
220
  starSize?: number;
211
- /** 클릭 가능 여부 */
221
+ /** 클릭 가능 */
212
222
  clickable?: boolean;
213
- /** 비활성화 여부 */
223
+ /** 비활성화 */
214
224
  disabled?: boolean;
215
225
  /** 클래스명 */
216
226
  className?: string;
217
227
  /** 클릭 핸들러 */
218
228
  onClick?: () => void;
219
- /** 자식 요소 */
229
+ /** 자식 */
220
230
  children?: React$1.ReactNode;
231
+ /** 그리드 오버레이 표시 */
232
+ showGrid?: boolean;
233
+ /** 그리드 칸 크기 (px) */
234
+ gridSize?: number;
235
+ /** 그리드 색상 */
236
+ gridColor?: string;
237
+ /** 그리드 투명도 */
238
+ gridOpacity?: number;
221
239
  }
240
+
222
241
  declare const AnimationBackground: React$1.FC<AnimationBackgroundProps>;
223
242
 
224
243
  interface AnimationTextProps {
225
244
  /** 애니메이션할 텍스트 */
226
245
  children: string;
246
+ trigger?: 'mount' | 'hover' | 'click' | 'in-view';
227
247
  /** 애니메이션 타입 */
228
- type?: 'typing' | 'fade' | 'slide' | 'bounce' | 'shake' | 'glow' | 'gradient' | 'wave' | 'flip' | 'scale';
248
+ type?: 'typing' | 'fade' | 'slide' | 'bounce' | 'shake' | 'glow' | 'gradient' | 'wave' | 'flip' | 'scale' | 'decode';
229
249
  /** 애니메이션 속도 (ms) */
230
250
  speed?: number;
231
251
  /** 애니메이션 반복 횟수 (0은 무한 반복) */
@@ -828,7 +848,7 @@ interface CardImage {
828
848
  }
829
849
  interface CardAction {
830
850
  label: string;
831
- variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'link';
851
+ variant?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'danger';
832
852
  size?: 's' | 'm' | 'l';
833
853
  icon?: React$1.ComponentType<any>;
834
854
  onClick?: () => void;
@@ -2537,6 +2557,8 @@ interface ModalProps {
2537
2557
  interface ModalHeaderProps {
2538
2558
  /** 제목 */
2539
2559
  title?: string;
2560
+ /** 제목 ID (접근성용) */
2561
+ titleId?: string;
2540
2562
  /** 닫기 버튼 표시 여부 */
2541
2563
  showCloseButton?: boolean;
2542
2564
  /** 닫기 핸들러 */
@@ -3321,7 +3343,7 @@ declare const SearchBar: React$1.FC<SearchBarProps>;
3321
3343
  */
3322
3344
 
3323
3345
  type SectionSize = 's' | 'm' | 'l' | 'xl';
3324
- type SectionVariant = 'default' | 'elevated' | 'outlined' | 'filled';
3346
+ type SectionVariant = 'default' | 'outlined' | 'filled';
3325
3347
  interface SectionProps {
3326
3348
  /** 섹션 제목 */
3327
3349
  title?: React$1.ReactNode;
@@ -3446,6 +3468,8 @@ interface SelectProps {
3446
3468
  maxHeight?: number;
3447
3469
  /** 클리어 버튼 표시 여부 */
3448
3470
  showClearButton?: boolean;
3471
+ /** 모바일에서 바텀 시트로 표시 여부 */
3472
+ useMobileBottomSheet?: boolean;
3449
3473
  /** 추가 CSS 클래스 */
3450
3474
  className?: string;
3451
3475
  /** 값 변경 핸들러 */
@@ -3547,6 +3571,8 @@ interface SidebarProps {
3547
3571
  variant?: SidebarVariant;
3548
3572
  /** 사이드바 위치 */
3549
3573
  position?: SidebarPosition;
3574
+ /** 로고 표시 여부 */
3575
+ showLogo?: boolean;
3550
3576
  /** 로고 컴포넌트 */
3551
3577
  logo?: React$1.ReactNode;
3552
3578
  /** 로고 클릭 핸들러 */
@@ -3742,7 +3768,7 @@ declare const Stack: React$1.FC<StackProps>;
3742
3768
  */
3743
3769
 
3744
3770
  type StatSize = 's' | 'm' | 'l' | 'xl';
3745
- type StatVariant = 'default' | 'minimal' | 'card' | 'colored';
3771
+ type StatVariant = 'default' | 'minimal' | 'card' | 'colored' | 'iconBox';
3746
3772
  type StatLayout = 'horizontal' | 'vertical' | 'reverse';
3747
3773
  type StatColor = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info' | 'custom';
3748
3774
  interface StatProps {
@@ -4480,9 +4506,6 @@ interface ComponentBaseProps {
4480
4506
  className?: string;
4481
4507
  children?: React.ReactNode;
4482
4508
  }
4483
- declare const setTheme: (theme: string) => void;
4484
- declare const getTheme: () => string;
4485
- declare const toggleTheme: () => void;
4486
4509
 
4487
- export { Accordion, AdBanner, Alert, AnimationBackground, AnimationText, AudioPlayer, Avatar, Backdrop, Badge, Banner, BottomNavigation, BottomSheet, Breadcrumbs, Button, Calendar, Card, Carousel, Checkbox, Chip, ColorPicker, Confirm, Container, ContextMenu, Countdown, DatePicker, Divider, Drawer, Dropdown, Dropzone, EmptyState, FileUploader, FloatingActionButton, Form, Gradient, Grid, HeroFeature, Image, ImageList, Indicator, Input, Label, Lightbox, List, Logo, MarkdownEditor, Masonry, MenuItem, Modal, ModalBody, ModalFooter, ModalHeader, Navbar, OnboardingModal, Pagination, Popover, Progress, ProgressStep, Progressbar, Radio, RandomGradient, RangeSlider, Rating, Reorder, ResizablePanels, ScrollArea, SearchBar, Section, SegmentControl, Select, Share, Sidebar, Skeleton, Spinner, SplitView, Stack, Stat, Stepper, Table, Tabs, Testimonial, Textarea, TimePicker, Timeline, Toast, ToastContainer, ToastProvider, Toggle, Toolbar, Tooltip, Tutorial, VideoPlayer, YouTubePlayer, getTheme, setTheme, toggleTheme, useToast };
4488
- export type { AccordionItem, AccordionItemType, AccordionProps, AdBannerProps, AdBannerType, AdBannerVariant, AlertAction, AlertProps, AlertSize, AlertVariant, AnimationBackgroundProps, AnimationTextProps, AudioPlayerProps, AudioPlayerSize, AudioPlayerTheme, AudioPlayerVariant, AvatarGroupProps, AvatarProps, AvatarSize, AvatarStatus, AvatarVariant, BackdropProps, BadgeProps, BadgeSize, BadgeStyle, BadgeVariant, BannerAction, BannerProps, BannerSize, BannerVariant, BottomNavigationItem, BottomNavigationProps, BottomSheetProps, BottomSheetSize, BottomSheetVariant, BreadcrumbItem, BreadcrumbsProps, BreadcrumbsSize, BreadcrumbsStyle, ButtonProps, CalendarEvent, CalendarEventType, CalendarProps, CalendarView, CardAction, CardImage, CardImagePosition, CardLayout, CardProps, CardSize, CardVariant, CarouselIndicatorStyle, CarouselItem, CarouselProps, CarouselSize, CarouselTheme, CarouselTransition, CarouselVariant, CheckboxProps, ChipColor, ChipProps, ChipSize, ChipVariant, ColorPickerProps, ColorPickerSize, ColorPickerType, ComponentBaseProps, ConfirmProps, ConfirmSize, ConfirmVariant, ContainerPadding, ContainerProps, ContainerSize, ContainerVariant, ContextMenuItem, ContextMenuProps, CountdownProps, CountdownSize, CountdownVariant, DatePickerEvent, DatePickerMode, DatePickerProps, DatePickerSize, DatePickerVariant, DividerProps, DrawerPosition, DrawerProps, DrawerSize, DropdownItem, DropdownProps, DropzoneProps, DropzoneSize, DropzoneVariant, EmptyStateProps, EmptyStateSize, EmptyStateVariant, FileStatus, FileUploaderProps, FileUploaderSize, FileUploaderVariant, FloatingActionButtonProps, FloatingActionButtonSize, FloatingActionButtonVariant, FormField, FormProps, FormSize, FormVariant, GradientColor, GradientDirection, GradientProps, GradientScheme, GradientSize, GradientVariant, GridAlignment, GridBreakpoint, GridColProps, GridJustify, GridProps, GridRowProps, GridSize, HeroFeatureAlignment, HeroFeatureButton, HeroFeatureProps, HeroFeatureSize, HeroFeatureTheme, HeroFeatureVariant, ImageFit, ImageItem, ImageListColumns, ImageListLayout, ImageListProps, ImageListSpacing, ImageLoading, ImagePlaceholder, ImageProps, ImageRatio, ImageRounded, IndicatorProps, InputProps, LabelProps, LightboxImage, LightboxProps, LightboxSize, ListItem, ListItemType, ListLayout, ListProps, ListSize, ListVariant, LogoProps, LogoSize, LogoType, LogoVariant, MarkdownEditorMode, MarkdownEditorProps, MarkdownEditorSize, MarkdownEditorTheme, MarkdownEditorVariant, MarkdownToolbarItem, MasonryAnimation, MasonryColumns, MasonryItem, MasonryProps, MasonrySpacing, MenuItemChild, MenuItemProps, MenuItemSize, MenuItemStyle, MenuItemType, MenuItemVariant, ModalBodyProps, ModalFooterProps, ModalHeaderProps, ModalProps, NavbarItem, NavbarPosition, NavbarProps, NavbarSize, NavbarVariant, OnboardingModalProps, OnboardingStep, PaginationAlignment, PaginationProps, PaginationSize, PaginationVariant, PopoverPosition, PopoverProps, PopoverSize, PopoverTrigger, PopoverVariant, ProgressProps, ProgressSize, ProgressStepItem, ProgressStepLayout, ProgressStepProps, ProgressStepSize, ProgressType, ProgressVariant, ProgressbarProps, ProgressbarSize, ProgressbarStyle, ProgressbarVariant, RadioProps, RandomGradientProps, RangeSliderProps, RangeSliderSize, RangeSliderVariant, RatingDisplay, RatingProps, RatingSize, RatingType, RatingVariant, ReorderItem, ReorderOrientation, ReorderProps, ReorderSize, ReorderVariant, ResizablePanelsProps, ScrollAreaProps, ScrollAreaSize, ScrollDirection, ScrollbarStyle, SearchBarProps, SearchBarSize, SearchBarVariant, SectionProps, SectionSize, SectionVariant, SegmentControlProps, SegmentOption, SelectOption, SelectProps, SharePlatform, SharePlatformConfig, SharePosition, ShareProps, ShareSize, ShareVariant, SidebarItem, SidebarPosition, SidebarProps, SidebarSize, SidebarVariant, SkeletonProps, SortDirection, SpinnerProps, SpinnerSize, SpinnerType, SplitDirection, SplitMode, SplitSize, SplitViewProps, StackAlignment, StackDirection, StackJustify, StackProps, StackSpacing, StartOfWeek, StatColor, StatLayout, StatProps, StatSize, StatVariant, StepperProps, StepperSize, StepperVariant, TabItem, TableColumn, TableProps, TableSize, TableVariant, TabsProps, TestimonialAlignment, TestimonialProps, TestimonialSize, TextareaProps, TimeFormat, TimePickerProps, TimePickerSize, TimePickerType, TimeRemaining, TimelineColor, TimelineItem, TimelineProps, TimelineSize, TimelineType, TimelineVariant, ToastContainerProps, ToastItem, ToastProps, ToastStatus, ToggleProps, ToolbarItem, ToolbarPosition, ToolbarProps, ToolbarSize, ToolbarVariant, TooltipPosition, TooltipProps, TooltipSize, TooltipVariant, TutorialProps, TutorialStep, UploadFile, VideoPlayerProps, VideoPlayerSize, VideoPlayerTheme, VideoPlayerVariant, YouTubePlayerProps, YouTubePlayerSize, YouTubePlayerTheme, YouTubePlayerVariant };
4510
+ export { Accordion, AdBanner, Alert, AnimationBackground, AnimationText, AudioPlayer, Avatar, Backdrop, Badge, Banner, BottomNavigation, BottomSheet, Breadcrumbs, Button, Calendar, Card, Carousel, Checkbox, Chip, ColorPicker, Confirm, Container, ContextMenu, Countdown, DatePicker, Divider, Drawer, Dropdown, Dropzone, EmptyState, FileUploader, FloatingActionButton, Form, Gradient, Grid, HeroFeature, Image, ImageList, Indicator, Input, Label, Lightbox, List, Logo, MarkdownEditor, Masonry, MenuItem, Modal, ModalBody, ModalFooter, ModalHeader, Navbar, OnboardingModal, Pagination, Popover, Progress, ProgressStep, Progressbar, Radio, RandomGradient, RangeSlider, Rating, Reorder, ResizablePanels, ScrollArea, SearchBar, Section, SegmentControl, Select, Share, Sidebar, Skeleton, Spinner, SplitView, Stack, Stat, Stepper, Table, Tabs, Testimonial, Textarea, TimePicker, Timeline, Toast, ToastContainer, ToastProvider, Toggle, Toolbar, Tooltip, Tutorial, VideoPlayer, YouTubePlayer, useToast };
4511
+ export type { AccordionItem, AccordionItemType, AccordionProps, AdBannerProps, AdBannerType, AdBannerVariant, AlertAction, AlertProps, AlertSize, AlertVariant, AnimationBackgroundProps, AnimationTextProps, AnimationType, AudioPlayerProps, AudioPlayerSize, AudioPlayerTheme, AudioPlayerVariant, AuroraIntensity, AvatarGroupProps, AvatarProps, AvatarSize, AvatarStatus, AvatarVariant, BackdropProps, BadgeProps, BadgeSize, BadgeStyle, BadgeVariant, BannerAction, BannerProps, BannerSize, BannerVariant, BottomNavigationItem, BottomNavigationProps, BottomSheetProps, BottomSheetSize, BottomSheetVariant, BreadcrumbItem, BreadcrumbsProps, BreadcrumbsSize, BreadcrumbsStyle, ButtonProps, CalendarEvent, CalendarEventType, CalendarProps, CalendarView, CardAction, CardImage, CardImagePosition, CardLayout, CardProps, CardSize, CardVariant, CarouselIndicatorStyle, CarouselItem, CarouselProps, CarouselSize, CarouselTheme, CarouselTransition, CarouselVariant, CheckboxProps, ChipColor, ChipProps, ChipSize, ChipVariant, ColorPickerProps, ColorPickerSize, ColorPickerType, ComponentBaseProps, ConfirmProps, ConfirmSize, ConfirmVariant, ContainerPadding, ContainerProps, ContainerSize, ContainerVariant, ContextMenuItem, ContextMenuProps, CountdownProps, CountdownSize, CountdownVariant, DatePickerEvent, DatePickerMode, DatePickerProps, DatePickerSize, DatePickerVariant, DirectionType, DividerProps, DrawerPosition, DrawerProps, DrawerSize, DropdownItem, DropdownProps, DropzoneProps, DropzoneSize, DropzoneVariant, EmptyStateProps, EmptyStateSize, EmptyStateVariant, FileStatus, FileUploaderProps, FileUploaderSize, FileUploaderVariant, FloatingActionButtonProps, FloatingActionButtonSize, FloatingActionButtonVariant, FormField, FormProps, FormSize, FormVariant, GradientColor, GradientDirection, GradientProps, GradientScheme, GradientSize, GradientVariant, GridAlignment, GridBreakpoint, GridColProps, GridJustify, GridProps, GridRowProps, GridSize, HeroFeatureAlignment, HeroFeatureButton, HeroFeatureProps, HeroFeatureSize, HeroFeatureTheme, HeroFeatureVariant, ImageFit, ImageItem, ImageListColumns, ImageListLayout, ImageListProps, ImageListSpacing, ImageLoading, ImagePlaceholder, ImageProps, ImageRatio, ImageRounded, IndicatorProps, InputProps, LabelProps, LightboxImage, LightboxProps, LightboxSize, ListItem, ListItemType, ListLayout, ListProps, ListSize, ListVariant, LogoProps, LogoSize, LogoType, LogoVariant, MarkdownEditorMode, MarkdownEditorProps, MarkdownEditorSize, MarkdownEditorTheme, MarkdownEditorVariant, MarkdownToolbarItem, MasonryAnimation, MasonryColumns, MasonryItem, MasonryProps, MasonrySpacing, MenuItemChild, MenuItemProps, MenuItemSize, MenuItemStyle, MenuItemType, MenuItemVariant, ModalBodyProps, ModalFooterProps, ModalHeaderProps, ModalProps, NavbarItem, NavbarPosition, NavbarProps, NavbarSize, NavbarVariant, OnboardingModalProps, OnboardingStep, PaginationAlignment, PaginationProps, PaginationSize, PaginationVariant, PopoverPosition, PopoverProps, PopoverSize, PopoverTrigger, PopoverVariant, ProgressProps, ProgressSize, ProgressStepItem, ProgressStepLayout, ProgressStepProps, ProgressStepSize, ProgressType, ProgressVariant, ProgressbarProps, ProgressbarSize, ProgressbarStyle, ProgressbarVariant, RadioProps, RandomGradientProps, RangeSliderProps, RangeSliderSize, RangeSliderVariant, RatingDisplay, RatingProps, RatingSize, RatingType, RatingVariant, ReorderItem, ReorderOrientation, ReorderProps, ReorderSize, ReorderVariant, ResizablePanelsProps, ScrollAreaProps, ScrollAreaSize, ScrollDirection, ScrollbarStyle, SearchBarProps, SearchBarSize, SearchBarVariant, SectionProps, SectionSize, SectionVariant, SegmentControlProps, SegmentOption, SelectOption, SelectProps, SharePlatform, SharePlatformConfig, SharePosition, ShareProps, ShareSize, ShareVariant, SidebarItem, SidebarPosition, SidebarProps, SidebarSize, SidebarVariant, SkeletonProps, SortDirection, SpinnerProps, SpinnerSize, SpinnerType, SplitDirection, SplitMode, SplitSize, SplitViewProps, StackAlignment, StackDirection, StackJustify, StackProps, StackSpacing, StartOfWeek, StatColor, StatLayout, StatProps, StatSize, StatVariant, StepperProps, StepperSize, StepperVariant, TabItem, TableColumn, TableProps, TableSize, TableVariant, TabsProps, TestimonialAlignment, TestimonialProps, TestimonialSize, TextareaProps, TimeFormat, TimePickerProps, TimePickerSize, TimePickerType, TimeRemaining, TimelineColor, TimelineItem, TimelineProps, TimelineSize, TimelineType, TimelineVariant, ToastContainerProps, ToastItem, ToastProps, ToastStatus, ToggleProps, ToolbarItem, ToolbarPosition, ToolbarProps, ToolbarSize, ToolbarVariant, TooltipPosition, TooltipProps, TooltipSize, TooltipVariant, TutorialProps, TutorialStep, UploadFile, VideoPlayerProps, VideoPlayerSize, VideoPlayerTheme, VideoPlayerVariant, YouTubePlayerProps, YouTubePlayerSize, YouTubePlayerTheme, YouTubePlayerVariant };