@designbasekorea/ui-wc 0.7.1 → 0.8.0
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 +39 -0
- package/README.md +9 -0
- package/dist/esm/components/db-color-picker.d.ts +1 -0
- package/dist/esm/components/db-color-picker.js +1 -1
- package/dist/esm/components/db-color-swatch.d.ts +43 -0
- package/dist/esm/components/db-color-swatch.js +1 -0
- package/dist/esm/components/db-range-slider.js +1 -1
- package/dist/esm/components/db-search-bar.js +1 -1
- package/dist/esm/components/db-segment-control.js +1 -1
- package/dist/esm/components/db-sidebar.js +1 -1
- package/dist/esm/components/db-tabs.d.ts +3 -0
- package/dist/esm/components/db-tabs.js +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +47 -2
- package/dist/index.esm.js +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.d.ts +71 -4
- package/dist/react/index.esm.js +1 -1
- package/package.json +1 -1
- /package/dist/chunks/{lottie-672879dc.js → lottie-78a72482.js} +0 -0
package/dist/react/index.d.ts
CHANGED
|
@@ -300,6 +300,8 @@ declare class DbTabs extends HTMLElement {
|
|
|
300
300
|
private inactivePanels;
|
|
301
301
|
private isRendering;
|
|
302
302
|
private childObserver?;
|
|
303
|
+
private resizeObserver?;
|
|
304
|
+
private resizeRaf?;
|
|
303
305
|
get labels(): string[] | string;
|
|
304
306
|
set labels(value: string[] | string);
|
|
305
307
|
get tabItems(): TabItemConfig$1[];
|
|
@@ -318,6 +320,7 @@ declare class DbTabs extends HTMLElement {
|
|
|
318
320
|
set fullWidth(value: boolean);
|
|
319
321
|
connectedCallback(): void;
|
|
320
322
|
disconnectedCallback(): void;
|
|
323
|
+
private handleResize;
|
|
321
324
|
attributeChangedCallback(): void;
|
|
322
325
|
private handleListScroll;
|
|
323
326
|
private collectPanelContent;
|
|
@@ -2906,6 +2909,7 @@ declare class DbColorPicker extends HTMLElement {
|
|
|
2906
2909
|
private handleDocumentMouseMove;
|
|
2907
2910
|
private handleDocumentMouseUp;
|
|
2908
2911
|
private toggleOpen;
|
|
2912
|
+
close(): void;
|
|
2909
2913
|
private handleModalCancel;
|
|
2910
2914
|
private handleModalApply;
|
|
2911
2915
|
private mount;
|
|
@@ -2919,6 +2923,40 @@ declare global {
|
|
|
2919
2923
|
}
|
|
2920
2924
|
}
|
|
2921
2925
|
|
|
2926
|
+
declare class DbColorSwatch extends HTMLElement {
|
|
2927
|
+
private colors;
|
|
2928
|
+
private selected;
|
|
2929
|
+
private customValue;
|
|
2930
|
+
private mounted;
|
|
2931
|
+
private gridEl?;
|
|
2932
|
+
private presetsEl?;
|
|
2933
|
+
private customWrapEl?;
|
|
2934
|
+
private customTipEl?;
|
|
2935
|
+
private customPickerEl?;
|
|
2936
|
+
static get observedAttributes(): string[];
|
|
2937
|
+
connectedCallback(): void;
|
|
2938
|
+
disconnectedCallback(): void;
|
|
2939
|
+
private handleOutsideMouseDown;
|
|
2940
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
2941
|
+
get value(): string;
|
|
2942
|
+
set value(next: string);
|
|
2943
|
+
private getOption;
|
|
2944
|
+
private getBool;
|
|
2945
|
+
private parseColors;
|
|
2946
|
+
private isCustomSelected;
|
|
2947
|
+
private emitChange;
|
|
2948
|
+
private selectPreset;
|
|
2949
|
+
private render;
|
|
2950
|
+
private buildSwatch;
|
|
2951
|
+
private ensureCustom;
|
|
2952
|
+
private updateCustom;
|
|
2953
|
+
}
|
|
2954
|
+
declare global {
|
|
2955
|
+
interface HTMLElementTagNameMap {
|
|
2956
|
+
'db-color-swatch': DbColorSwatch;
|
|
2957
|
+
}
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2922
2960
|
type DbReorderItem = {
|
|
2923
2961
|
id: string;
|
|
2924
2962
|
content: string;
|
|
@@ -6449,7 +6487,7 @@ type SegmentControlProps = SelectionProps & {
|
|
|
6449
6487
|
value?: string;
|
|
6450
6488
|
size?: 's' | 'm' | 'l';
|
|
6451
6489
|
variant?: 'default' | 'icon-only';
|
|
6452
|
-
appearance?: 'pill' | 'rounded';
|
|
6490
|
+
appearance?: 'default' | 'pill' | 'rounded';
|
|
6453
6491
|
fullWidth?: boolean;
|
|
6454
6492
|
};
|
|
6455
6493
|
type StepperProps = SelectionProps & {
|
|
@@ -7198,7 +7236,10 @@ type SidebarProps = WebComponentProps & {
|
|
|
7198
7236
|
settingsSections?: SidebarSection[] | string;
|
|
7199
7237
|
activePanel?: string;
|
|
7200
7238
|
size?: 's' | 'm' | 'l';
|
|
7201
|
-
|
|
7239
|
+
/** 레이아웃 외형입니다. default(우측 보더만) · wrapper(패딩+radius+보더 카드형). */
|
|
7240
|
+
variant?: 'default' | 'wrapper';
|
|
7241
|
+
/** 색상 테마입니다. default · dark · light. */
|
|
7242
|
+
theme?: 'default' | 'dark' | 'light';
|
|
7202
7243
|
position?: 'left' | 'right';
|
|
7203
7244
|
collapsed?: boolean;
|
|
7204
7245
|
collapsible?: boolean;
|
|
@@ -7820,6 +7861,7 @@ type SearchBarProps = WebComponentProps & {
|
|
|
7820
7861
|
defaultValue?: string;
|
|
7821
7862
|
placeholder?: string;
|
|
7822
7863
|
size?: 's' | 'm' | 'l';
|
|
7864
|
+
appearance?: 'default' | 'pill';
|
|
7823
7865
|
disabled?: boolean;
|
|
7824
7866
|
readOnly?: boolean;
|
|
7825
7867
|
fullWidth?: boolean;
|
|
@@ -8187,6 +8229,7 @@ type MasonryProps = WebComponentProps & {
|
|
|
8187
8229
|
type ColorPickerProps = WebComponentProps & {
|
|
8188
8230
|
size?: 's' | 'm' | 'l';
|
|
8189
8231
|
type?: 'dropdown' | 'modal';
|
|
8232
|
+
trigger?: 'input' | 'swatch';
|
|
8190
8233
|
position?: 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
|
|
8191
8234
|
value?: string;
|
|
8192
8235
|
defaultValue?: string;
|
|
@@ -8206,6 +8249,29 @@ type ColorPickerProps = WebComponentProps & {
|
|
|
8206
8249
|
value: string;
|
|
8207
8250
|
}>;
|
|
8208
8251
|
};
|
|
8252
|
+
type ColorSwatchItem = {
|
|
8253
|
+
value: string;
|
|
8254
|
+
name?: string;
|
|
8255
|
+
};
|
|
8256
|
+
type ColorSwatchProps = WebComponentProps & {
|
|
8257
|
+
colors?: ColorSwatchItem[] | string[] | string;
|
|
8258
|
+
value?: string;
|
|
8259
|
+
defaultValue?: string;
|
|
8260
|
+
shape?: 'rounded' | 'circle';
|
|
8261
|
+
size?: 's' | 'm' | 'l';
|
|
8262
|
+
showName?: boolean;
|
|
8263
|
+
allowCustom?: boolean;
|
|
8264
|
+
customType?: 'dropdown' | 'modal';
|
|
8265
|
+
disabled?: boolean;
|
|
8266
|
+
onChange?: DbEventHandler<{
|
|
8267
|
+
value: string;
|
|
8268
|
+
name: string;
|
|
8269
|
+
}>;
|
|
8270
|
+
onDbChange?: DbEventHandler<{
|
|
8271
|
+
value: string;
|
|
8272
|
+
name: string;
|
|
8273
|
+
}>;
|
|
8274
|
+
};
|
|
8209
8275
|
type ReorderItem = {
|
|
8210
8276
|
id: string;
|
|
8211
8277
|
content: string;
|
|
@@ -9613,6 +9679,7 @@ declare const Countdown: react.ForwardRefExoticComponent<Omit<CountdownProps, "r
|
|
|
9613
9679
|
declare const Masonry: react.ForwardRefExoticComponent<Omit<MasonryProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
9614
9680
|
declare const Carousel: react.ForwardRefExoticComponent<Omit<CarouselProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
9615
9681
|
declare const ColorPicker: react.ForwardRefExoticComponent<Omit<ColorPickerProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
9682
|
+
declare const ColorSwatch: react.ForwardRefExoticComponent<Omit<ColorSwatchProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
9616
9683
|
declare const Reorder: react.ForwardRefExoticComponent<Omit<ReorderProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
9617
9684
|
declare const Kanban: react.ForwardRefExoticComponent<Omit<KanbanProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
9618
9685
|
declare const Gantt: react.ForwardRefExoticComponent<Omit<GanttProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
@@ -9686,5 +9753,5 @@ declare const DatePicker: react.ForwardRefExoticComponent<Omit<DatePickerProps,
|
|
|
9686
9753
|
declare const TimePicker: react.ForwardRefExoticComponent<Omit<TimePickerProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
9687
9754
|
declare const Calendar: react.ForwardRefExoticComponent<Omit<CalendarProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
9688
9755
|
|
|
9689
|
-
export { Accordion, AdBanner, AiChat, AiChatList, Alert, AnimationBackground, AnimationText, AppBadge, AudioPlayer, Avatar, Backdrop, Badge, Banner, BottomNavigation, BottomSheet, Breadcrumbs, Button, Calendar, Card, Carousel, ChatComposer, ChatList, ChatMessage, ChatOrb, ChatRoom, ChatSuggestions, ChatTyping, ChatWelcome, ChatWidget, Checkbox, Chip, CodeBlock, ColorPicker, Confirm, Container, ContextMenu, CookieBanner, Countdown, CursorFollower, DatePicker, Divider, DownloadProgress, Drawer, Dropdown, Dropzone, EmailVerify, EmptyState, FileUploader, FloatingActionButton, Footer, Form, Gantt, Gradient, Grid, GridBackground, GridItem, Image, ImageList, ImagePlaceholder, Indicator, Input, Kanban, Label, Lightbox, List, Logo, Lottie, MarkdownEditor, Marquee, Masonry, MenuItem, Modal, ModalBody, ModalFooter, ModalHeader, Navbar, OnboardingModal, OtpInput, PageHeader, Pagination, PhoneVerify, Popover, Progress, ProgressStep, Progressbar, Radio, RandomGradient, RangeSlider, Rating, Reorder, ResizablePanels, ScrollArea, SearchBar, Section, SectionAppDownload, SectionContact, SectionCta, SectionFaq, SectionFeature, SectionFeatureGrid, SectionHero, SectionLogoCloud, SectionPricing, SectionStats, SectionTestimonials, SegmentControl, Select, Share, Sidebar, Signature, Skeleton, Spinner, SplitView, Stack, Stat, Stepper, Table, Tabs, Testimonial, Textarea, TimePicker, Timeline, Toast, Toggle, Toolbar, Tooltip, TopBanner, Tutorial, TwoFactor, VideoPlayer, YouTubePlayer, useContextMenu };
|
|
9690
|
-
export type { AccordionItemConfig, AccordionProps, AdBannerProps, AiChatListProps, AiChatProps, AlertAction, AlertProps, AnimationBackgroundProps, AnimationTextProps, AppBadgeProps, AudioPlayerProps, AvatarProps, BackdropProps, BadgeProps, BannerAction, BannerProps, BottomNavigationItem, BottomNavigationProps, BottomSheetProps, BreadcrumbItemConfig, BreadcrumbMenuItemConfig, BreadcrumbsProps, ButtonProps, CalendarEvent, CalendarProps, CardProps, CarouselItem, CarouselProps, ChatComposerProps, ChatListProps, ChatMessageProps, ChatOrbProps, ChatRoomProps, ChatSuggestionsProps, ChatTypingProps, ChatWelcomeProps, ChatWidgetProps, ChipProps, CodeBlockItem, CodeBlockProps, ColorPickerProps, ConfirmProps, ContextMenuItemConfig, ContextMenuProps, CookieBannerProps, CountdownProps, CursorFollowerProps, DatePickerProps, DbChatSuggestion, DbChatTool, DbChatWidgetConversation, DbChatWidgetMessage, DbEventHandler, DividerProps, DownloadProgressProps, DrawerProps, DropdownItemConfig, DropdownProps, DropzoneProps, EmailVerifyProps, EmptyStateProps, FileUploaderProps, FloatingActionButtonProps, FooterCompanyInfo, FooterFamilySite, FooterLink, FooterLinkColumn, FooterProps, FooterSocialLink, FormFieldData, FormProps, GanttAssignee, GanttGroup, GanttItem, GanttProps, GanttRow, GradientColor, GradientProps, GradientScheme, GradientTone, GridBackgroundProps, ImageListItem, ImageListProps, ImagePlaceholderProps, ImageProps, IndicatorProps, InputProps, KanbanAssignee, KanbanCard, KanbanColumn, KanbanProps, KanbanTag, LabelProps, LightboxImage, LightboxProps, ListItemConfig, ListProps, LogoProps, LottieProps, MarkdownEditorProps, MarqueeImageItem, MarqueeProps, MasonryItem, MasonryProps, MenuItemChildConfig, MenuItemProps, ModalProps, ModalSegmentItem, ModalTabItem, NavbarItem, NavbarProps, NavbarUserProfile, OnboardingModalProps, OnboardingStep, OtpInputProps, PageHeaderProps, PageHeaderTabItem, PaginationProps, PhoneVerifyProps, PopoverProps, ProgressProps, ProgressStepItem, ProgressStepProps, RadioProps, RandomGradientProps, RangeSliderProps, RatingProps, ReorderItem, ReorderProps, ResizablePanelsProps, ScrollAreaProps, SearchBarProps, SectionAppDownloadProps, SectionAppDownloadStore, SectionBlockBadge, SectionContactAction, SectionContactProps, SectionCtaButton, SectionCtaProps, SectionFaqItem, SectionFaqProps, SectionFeatureAction, SectionFeatureBadge, SectionFeatureGridItem, SectionFeatureGridProps, SectionFeatureProps, SectionHeroButton, SectionHeroProps, SectionLogoCloudItem, SectionLogoCloudProps, SectionPricingCta, SectionPricingPlan, SectionPricingProps, SectionProps, SectionStatItem, SectionStatsProps, SectionTestimonialItem, SectionTestimonialsProps, SegmentControlProps, SelectProps, SelectionProps, SharePlatform, ShareProps, SidebarItem, SidebarProject, SidebarPromoBanner, SidebarProps, SidebarSection, SidebarUserProfile, SignatureProps, SkeletonProps, SpinnerProps, SplitViewProps, StatChange, StatProps, StepperProps, TabItemConfig, TableColumn, TableProps, TabsProps, TestimonialProps, TextareaProps, TimePickerProps, TimelineItem, TimelineProps, ToastProps, ToggleProps, TooltipProps, TopBannerProps, TutorialProps, TutorialStep, TwoFactorProps, UseContextMenuReturn, VideoPlayerProps, WebComponentProps, YouTubePlayerProps };
|
|
9756
|
+
export { Accordion, AdBanner, AiChat, AiChatList, Alert, AnimationBackground, AnimationText, AppBadge, AudioPlayer, Avatar, Backdrop, Badge, Banner, BottomNavigation, BottomSheet, Breadcrumbs, Button, Calendar, Card, Carousel, ChatComposer, ChatList, ChatMessage, ChatOrb, ChatRoom, ChatSuggestions, ChatTyping, ChatWelcome, ChatWidget, Checkbox, Chip, CodeBlock, ColorPicker, ColorSwatch, Confirm, Container, ContextMenu, CookieBanner, Countdown, CursorFollower, DatePicker, Divider, DownloadProgress, Drawer, Dropdown, Dropzone, EmailVerify, EmptyState, FileUploader, FloatingActionButton, Footer, Form, Gantt, Gradient, Grid, GridBackground, GridItem, Image, ImageList, ImagePlaceholder, Indicator, Input, Kanban, Label, Lightbox, List, Logo, Lottie, MarkdownEditor, Marquee, Masonry, MenuItem, Modal, ModalBody, ModalFooter, ModalHeader, Navbar, OnboardingModal, OtpInput, PageHeader, Pagination, PhoneVerify, Popover, Progress, ProgressStep, Progressbar, Radio, RandomGradient, RangeSlider, Rating, Reorder, ResizablePanels, ScrollArea, SearchBar, Section, SectionAppDownload, SectionContact, SectionCta, SectionFaq, SectionFeature, SectionFeatureGrid, SectionHero, SectionLogoCloud, SectionPricing, SectionStats, SectionTestimonials, SegmentControl, Select, Share, Sidebar, Signature, Skeleton, Spinner, SplitView, Stack, Stat, Stepper, Table, Tabs, Testimonial, Textarea, TimePicker, Timeline, Toast, Toggle, Toolbar, Tooltip, TopBanner, Tutorial, TwoFactor, VideoPlayer, YouTubePlayer, useContextMenu };
|
|
9757
|
+
export type { AccordionItemConfig, AccordionProps, AdBannerProps, AiChatListProps, AiChatProps, AlertAction, AlertProps, AnimationBackgroundProps, AnimationTextProps, AppBadgeProps, AudioPlayerProps, AvatarProps, BackdropProps, BadgeProps, BannerAction, BannerProps, BottomNavigationItem, BottomNavigationProps, BottomSheetProps, BreadcrumbItemConfig, BreadcrumbMenuItemConfig, BreadcrumbsProps, ButtonProps, CalendarEvent, CalendarProps, CardProps, CarouselItem, CarouselProps, ChatComposerProps, ChatListProps, ChatMessageProps, ChatOrbProps, ChatRoomProps, ChatSuggestionsProps, ChatTypingProps, ChatWelcomeProps, ChatWidgetProps, ChipProps, CodeBlockItem, CodeBlockProps, ColorPickerProps, ColorSwatchItem, ColorSwatchProps, ConfirmProps, ContextMenuItemConfig, ContextMenuProps, CookieBannerProps, CountdownProps, CursorFollowerProps, DatePickerProps, DbChatSuggestion, DbChatTool, DbChatWidgetConversation, DbChatWidgetMessage, DbEventHandler, DividerProps, DownloadProgressProps, DrawerProps, DropdownItemConfig, DropdownProps, DropzoneProps, EmailVerifyProps, EmptyStateProps, FileUploaderProps, FloatingActionButtonProps, FooterCompanyInfo, FooterFamilySite, FooterLink, FooterLinkColumn, FooterProps, FooterSocialLink, FormFieldData, FormProps, GanttAssignee, GanttGroup, GanttItem, GanttProps, GanttRow, GradientColor, GradientProps, GradientScheme, GradientTone, GridBackgroundProps, ImageListItem, ImageListProps, ImagePlaceholderProps, ImageProps, IndicatorProps, InputProps, KanbanAssignee, KanbanCard, KanbanColumn, KanbanProps, KanbanTag, LabelProps, LightboxImage, LightboxProps, ListItemConfig, ListProps, LogoProps, LottieProps, MarkdownEditorProps, MarqueeImageItem, MarqueeProps, MasonryItem, MasonryProps, MenuItemChildConfig, MenuItemProps, ModalProps, ModalSegmentItem, ModalTabItem, NavbarItem, NavbarProps, NavbarUserProfile, OnboardingModalProps, OnboardingStep, OtpInputProps, PageHeaderProps, PageHeaderTabItem, PaginationProps, PhoneVerifyProps, PopoverProps, ProgressProps, ProgressStepItem, ProgressStepProps, RadioProps, RandomGradientProps, RangeSliderProps, RatingProps, ReorderItem, ReorderProps, ResizablePanelsProps, ScrollAreaProps, SearchBarProps, SectionAppDownloadProps, SectionAppDownloadStore, SectionBlockBadge, SectionContactAction, SectionContactProps, SectionCtaButton, SectionCtaProps, SectionFaqItem, SectionFaqProps, SectionFeatureAction, SectionFeatureBadge, SectionFeatureGridItem, SectionFeatureGridProps, SectionFeatureProps, SectionHeroButton, SectionHeroProps, SectionLogoCloudItem, SectionLogoCloudProps, SectionPricingCta, SectionPricingPlan, SectionPricingProps, SectionProps, SectionStatItem, SectionStatsProps, SectionTestimonialItem, SectionTestimonialsProps, SegmentControlProps, SelectProps, SelectionProps, SharePlatform, ShareProps, SidebarItem, SidebarProject, SidebarPromoBanner, SidebarProps, SidebarSection, SidebarUserProfile, SignatureProps, SkeletonProps, SpinnerProps, SplitViewProps, StatChange, StatProps, StepperProps, TabItemConfig, TableColumn, TableProps, TabsProps, TestimonialProps, TextareaProps, TimePickerProps, TimelineItem, TimelineProps, ToastProps, ToggleProps, TooltipProps, TopBannerProps, TutorialProps, TutorialStep, TwoFactorProps, UseContextMenuReturn, VideoPlayerProps, WebComponentProps, YouTubePlayerProps };
|