@designbasekorea/ui-wc 0.1.5 → 0.2.1
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.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +50 -2
- package/dist/index.esm.js +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.d.ts +57 -4
- package/dist/react/index.esm.js +1 -1
- package/package.json +1 -1
- /package/dist/chunks/{lottie-d2c02640.js → lottie-2c3b8673.js} +0 -0
package/dist/react/index.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ declare class DbButton extends HTMLElement {
|
|
|
15
15
|
set size(value: string);
|
|
16
16
|
get radius(): string;
|
|
17
17
|
set radius(value: string);
|
|
18
|
+
get accentStyle(): string;
|
|
19
|
+
set accentStyle(value: string);
|
|
18
20
|
get type(): string;
|
|
19
21
|
set type(value: string);
|
|
20
22
|
get loadingText(): string;
|
|
@@ -42,6 +44,8 @@ declare class DbButton extends HTMLElement {
|
|
|
42
44
|
private syncIcons;
|
|
43
45
|
private getDefaultRadiusClass;
|
|
44
46
|
private syncRadius;
|
|
47
|
+
private syncAccentStyle;
|
|
48
|
+
private syncAccentField;
|
|
45
49
|
private syncModifier;
|
|
46
50
|
private syncBooleanModifier;
|
|
47
51
|
private getSpinnerSize;
|
|
@@ -286,6 +290,9 @@ declare class DbTabs extends HTMLElement {
|
|
|
286
290
|
private indicator?;
|
|
287
291
|
private panel?;
|
|
288
292
|
private tabButtons;
|
|
293
|
+
private inactivePanels;
|
|
294
|
+
private isRendering;
|
|
295
|
+
private childObserver?;
|
|
289
296
|
get labels(): string[] | string;
|
|
290
297
|
set labels(value: string[] | string);
|
|
291
298
|
get tabItems(): TabItemConfig$1[];
|
|
@@ -303,6 +310,7 @@ declare class DbTabs extends HTMLElement {
|
|
|
303
310
|
disconnectedCallback(): void;
|
|
304
311
|
attributeChangedCallback(): void;
|
|
305
312
|
private handleListScroll;
|
|
313
|
+
private collectPanelContent;
|
|
306
314
|
private render;
|
|
307
315
|
private select;
|
|
308
316
|
private handleKeyDown;
|
|
@@ -363,6 +371,7 @@ declare class DbModal extends HTMLElement {
|
|
|
363
371
|
private renderBodyContent;
|
|
364
372
|
private renderFooter;
|
|
365
373
|
private render;
|
|
374
|
+
private exitTimerId;
|
|
366
375
|
private syncVisibility;
|
|
367
376
|
private syncOpenState;
|
|
368
377
|
private teardown;
|
|
@@ -673,6 +682,7 @@ declare class DbRadio extends HTMLElement {
|
|
|
673
682
|
private root?;
|
|
674
683
|
private input?;
|
|
675
684
|
private visual?;
|
|
685
|
+
private dot?;
|
|
676
686
|
private labelEl?;
|
|
677
687
|
private built;
|
|
678
688
|
get checked(): boolean;
|
|
@@ -867,10 +877,13 @@ declare class DbBackdrop extends HTMLElement {
|
|
|
867
877
|
static get observedAttributes(): string[];
|
|
868
878
|
private portal?;
|
|
869
879
|
private keyHandler;
|
|
880
|
+
get open(): boolean;
|
|
881
|
+
set open(value: boolean);
|
|
870
882
|
connectedCallback(): void;
|
|
871
883
|
disconnectedCallback(): void;
|
|
872
884
|
attributeChangedCallback(): void;
|
|
873
885
|
private isOpen;
|
|
886
|
+
private syncOpenState;
|
|
874
887
|
private collectChildren;
|
|
875
888
|
private attachListeners;
|
|
876
889
|
private detachListeners;
|
|
@@ -927,7 +940,10 @@ declare class DbPopover extends HTMLElement {
|
|
|
927
940
|
private handleTriggerBlur;
|
|
928
941
|
private handleReposition;
|
|
929
942
|
private getTriggerRect;
|
|
943
|
+
private flipPlacementIfNeeded;
|
|
944
|
+
private applyCoords;
|
|
930
945
|
private positionPanel;
|
|
946
|
+
private revealPanel;
|
|
931
947
|
private updatePanelMetadata;
|
|
932
948
|
private ensurePanel;
|
|
933
949
|
private showPanel;
|
|
@@ -976,6 +992,7 @@ declare class DbToast extends HTMLElement {
|
|
|
976
992
|
static get observedAttributes(): string[];
|
|
977
993
|
private timeoutId;
|
|
978
994
|
private progressInterval;
|
|
995
|
+
private closeTimerId;
|
|
979
996
|
private closed;
|
|
980
997
|
connectedCallback(): void;
|
|
981
998
|
disconnectedCallback(): void;
|
|
@@ -1543,6 +1560,8 @@ declare class DbSegmentControl extends HTMLElement {
|
|
|
1543
1560
|
private segmentButtons;
|
|
1544
1561
|
private focusedIndex;
|
|
1545
1562
|
private boundKeyDown;
|
|
1563
|
+
private boundResize;
|
|
1564
|
+
private resizeObserver;
|
|
1546
1565
|
connectedCallback(): void;
|
|
1547
1566
|
disconnectedCallback(): void;
|
|
1548
1567
|
attributeChangedCallback(name: string): void;
|
|
@@ -1553,6 +1572,7 @@ declare class DbSegmentControl extends HTMLElement {
|
|
|
1553
1572
|
private parseOptions;
|
|
1554
1573
|
private render;
|
|
1555
1574
|
private updateSelection;
|
|
1575
|
+
private updateIndicator;
|
|
1556
1576
|
private select;
|
|
1557
1577
|
private handleKeyDown;
|
|
1558
1578
|
}
|
|
@@ -1863,15 +1883,21 @@ declare class DbBottomSheet extends HTMLElement {
|
|
|
1863
1883
|
private isDragging;
|
|
1864
1884
|
private isVisible;
|
|
1865
1885
|
private isMounted;
|
|
1866
|
-
private
|
|
1886
|
+
private enterFrame?;
|
|
1867
1887
|
private exitTimer?;
|
|
1868
1888
|
private keyHandler;
|
|
1889
|
+
private childObserver?;
|
|
1869
1890
|
private dragState;
|
|
1891
|
+
get open(): boolean;
|
|
1892
|
+
set open(value: boolean);
|
|
1893
|
+
private shouldMountPortal;
|
|
1870
1894
|
connectedCallback(): void;
|
|
1871
1895
|
disconnectedCallback(): void;
|
|
1872
1896
|
attributeChangedCallback(name: string): void;
|
|
1873
1897
|
private isOpenRequested;
|
|
1874
1898
|
private clearTimers;
|
|
1899
|
+
/** 닫힌 transform이 페인트된 뒤 --open을 붙여 슬라이드 업 전환이 보이게 함 */
|
|
1900
|
+
private scheduleEnterAnimation;
|
|
1875
1901
|
private getMaxHeightLimit;
|
|
1876
1902
|
private close;
|
|
1877
1903
|
private attachEscape;
|
|
@@ -1944,6 +1970,12 @@ declare global {
|
|
|
1944
1970
|
}
|
|
1945
1971
|
}
|
|
1946
1972
|
|
|
1973
|
+
type OnboardingStep$1 = {
|
|
1974
|
+
id: string;
|
|
1975
|
+
image?: string;
|
|
1976
|
+
title?: string;
|
|
1977
|
+
description?: string;
|
|
1978
|
+
};
|
|
1947
1979
|
declare class DbOnboardingModal extends HTMLElement {
|
|
1948
1980
|
static get observedAttributes(): string[];
|
|
1949
1981
|
private root?;
|
|
@@ -1963,6 +1995,10 @@ declare class DbOnboardingModal extends HTMLElement {
|
|
|
1963
1995
|
private prevButtonEl?;
|
|
1964
1996
|
private nextButtonEl?;
|
|
1965
1997
|
private indicatorEl?;
|
|
1998
|
+
get open(): boolean;
|
|
1999
|
+
set open(value: boolean);
|
|
2000
|
+
get steps(): OnboardingStep$1[];
|
|
2001
|
+
set steps(value: OnboardingStep$1[] | string);
|
|
1966
2002
|
connectedCallback(): void;
|
|
1967
2003
|
disconnectedCallback(): void;
|
|
1968
2004
|
attributeChangedCallback(name: string): void;
|
|
@@ -2455,15 +2491,27 @@ type DbReorderItem = {
|
|
|
2455
2491
|
};
|
|
2456
2492
|
declare class DbReorder extends HTMLElement {
|
|
2457
2493
|
private draggedIndex;
|
|
2458
|
-
private
|
|
2494
|
+
private dropIndex;
|
|
2459
2495
|
static get observedAttributes(): string[];
|
|
2460
2496
|
get items(): DbReorderItem[];
|
|
2461
2497
|
set items(value: DbReorderItem[] | string);
|
|
2462
2498
|
connectedCallback(): void;
|
|
2499
|
+
disconnectedCallback(): void;
|
|
2463
2500
|
attributeChangedCallback(): void;
|
|
2464
2501
|
private getBool;
|
|
2465
2502
|
private getOption;
|
|
2466
2503
|
private emitReorder;
|
|
2504
|
+
private getItemElements;
|
|
2505
|
+
private updateDragClasses;
|
|
2506
|
+
private getAdjustedDropIndex;
|
|
2507
|
+
private isValidDropIndex;
|
|
2508
|
+
private getDropIndexFromPointer;
|
|
2509
|
+
private getDropIndexFromContainerPointer;
|
|
2510
|
+
private commitDrop;
|
|
2511
|
+
private handleContainerDragOver;
|
|
2512
|
+
private handleContainerDrop;
|
|
2513
|
+
private setDropIndex;
|
|
2514
|
+
private resetDragState;
|
|
2467
2515
|
private render;
|
|
2468
2516
|
}
|
|
2469
2517
|
declare global {
|
|
@@ -3185,6 +3233,9 @@ type WebComponentProps = Omit<react__default.HTMLAttributes<HTMLElement>, 'onCha
|
|
|
3185
3233
|
[key: string]: unknown;
|
|
3186
3234
|
};
|
|
3187
3235
|
|
|
3236
|
+
type GradientScheme = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info' | 'purple' | 'ocean' | 'sunset';
|
|
3237
|
+
type GradientTone = 'light' | 'vivid' | 'dark';
|
|
3238
|
+
|
|
3188
3239
|
type PartProps = React.HTMLAttributes<HTMLDivElement>;
|
|
3189
3240
|
declare function ModalHeader({ className, children, ...props }: PartProps): react.DetailedReactHTMLElement<{
|
|
3190
3241
|
defaultChecked?: boolean | undefined;
|
|
@@ -4140,6 +4191,7 @@ type SegmentControlProps = SelectionProps & {
|
|
|
4140
4191
|
value?: string;
|
|
4141
4192
|
size?: 's' | 'm' | 'l';
|
|
4142
4193
|
variant?: 'default' | 'icon-only';
|
|
4194
|
+
appearance?: 'pill' | 'rounded';
|
|
4143
4195
|
fullWidth?: boolean;
|
|
4144
4196
|
};
|
|
4145
4197
|
type StepperProps = SelectionProps & {
|
|
@@ -4149,6 +4201,7 @@ type StepperProps = SelectionProps & {
|
|
|
4149
4201
|
step?: number;
|
|
4150
4202
|
size?: 's' | 'm' | 'l';
|
|
4151
4203
|
editable?: boolean;
|
|
4204
|
+
fullWidth?: boolean;
|
|
4152
4205
|
readOnly?: boolean;
|
|
4153
4206
|
onMinReached?: DbEventHandler<{
|
|
4154
4207
|
value: number;
|
|
@@ -4550,6 +4603,7 @@ type OnboardingModalProps = WebComponentProps & {
|
|
|
4550
4603
|
steps?: OnboardingStep[];
|
|
4551
4604
|
currentStep?: number;
|
|
4552
4605
|
isOpen?: boolean;
|
|
4606
|
+
open?: boolean;
|
|
4553
4607
|
showCloseButton?: boolean;
|
|
4554
4608
|
showIndicator?: boolean;
|
|
4555
4609
|
indicatorType?: 'dots' | 'numbers';
|
|
@@ -5320,7 +5374,6 @@ type SearchBarProps = WebComponentProps & {
|
|
|
5320
5374
|
defaultValue?: string;
|
|
5321
5375
|
placeholder?: string;
|
|
5322
5376
|
size?: 's' | 'm' | 'l';
|
|
5323
|
-
variant?: 'default' | 'outlined' | 'filled';
|
|
5324
5377
|
disabled?: boolean;
|
|
5325
5378
|
readOnly?: boolean;
|
|
5326
5379
|
fullWidth?: boolean;
|
|
@@ -6468,4 +6521,4 @@ declare const TimePicker: react.ForwardRefExoticComponent<Omit<TimePickerProps,
|
|
|
6468
6521
|
declare const Calendar: react.ForwardRefExoticComponent<Omit<CalendarProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
6469
6522
|
|
|
6470
6523
|
export { Accordion, AdBanner, Alert, AnimationBackground, AnimationText, AppBadge, AudioPlayer, Avatar, Backdrop, Badge, Banner, BottomNavigation, BottomSheet, Breadcrumbs, Button, Calendar, Card, Carousel, Checkbox, Chip, CodeBlock, ColorPicker, Confirm, Container, ContextMenu, Countdown, CursorFollower, DatePicker, Divider, Drawer, Dropdown, Dropzone, EmptyState, FileUploader, FloatingActionButton, Form, Gradient, Grid, GridItem, Image, ImageList, ImagePlaceholder, Indicator, Input, Label, Lightbox, List, Logo, Lottie, MarkdownEditor, Marquee, Masonry, MenuItem, Modal, ModalBody, ModalFooter, ModalHeader, Navbar, OnboardingModal, PageHeader, Pagination, Popover, Progress, ProgressStep, Progressbar, Radio, RandomGradient, RangeSlider, Rating, Reorder, ResizablePanels, ScrollArea, SearchBar, Section, SectionAppDownload, SectionContact, SectionFeature, SectionHero, SegmentControl, Select, Share, Sidebar, Skeleton, Spinner, SplitView, Stack, Stat, Stepper, Table, Tabs, Testimonial, Textarea, TimePicker, Timeline, Toast, Toggle, Toolbar, Tooltip, TopBanner, Tutorial, VideoPlayer, YouTubePlayer, useContextMenu };
|
|
6471
|
-
export type { AccordionItemConfig, AccordionProps, AdBannerProps, AlertAction, AlertProps, AnimationBackgroundProps, AnimationTextProps, AppBadgeProps, AudioPlayerProps, AvatarProps, BackdropProps, BadgeProps, BannerAction, BannerProps, BottomNavigationItem, BottomNavigationProps, BottomSheetProps, BreadcrumbItemConfig, BreadcrumbsProps, ButtonProps, CalendarEvent, CalendarProps, CardProps, CarouselItem, CarouselProps, ChipProps, CodeBlockItem, CodeBlockProps, ColorPickerProps, ConfirmProps, ContextMenuItemConfig, ContextMenuProps, CountdownProps, CursorFollowerProps, DatePickerProps, DbEventHandler, DividerProps, DrawerProps, DropdownItemConfig, DropdownProps, DropzoneProps, EmptyStateProps, FileUploaderProps, FloatingActionButtonProps, FormFieldData, FormProps, GradientColor, GradientProps, ImageListItem, ImageListProps, ImagePlaceholderProps, ImageProps, IndicatorProps, InputProps, LabelProps, LightboxImage, LightboxProps, ListItemConfig, ListProps, LogoProps, LottieProps, MarkdownEditorProps, MarqueeProps, MasonryItem, MasonryProps, MenuItemChildConfig, MenuItemProps, ModalProps, ModalSegmentItem, ModalTabItem, NavbarItem, NavbarProps, NavbarUserProfile, OnboardingModalProps, OnboardingStep, PageHeaderProps, PageHeaderTabItem, PaginationProps, PopoverProps, ProgressProps, ProgressStepItem, ProgressStepProps, RadioProps, RandomGradientProps, RangeSliderProps, RatingProps, ReorderItem, ReorderProps, ResizablePanelsProps, ScrollAreaProps, SearchBarProps, SectionAppDownloadProps, SectionAppDownloadStore, SectionContactAction, SectionContactProps, SectionFeatureAction, SectionFeatureBadge, SectionFeatureProps, SectionHeroButton, SectionHeroProps, SectionProps, SegmentControlProps, SelectProps, SelectionProps, SharePlatform, ShareProps, SidebarItem, SidebarProps, SidebarSection, SidebarUserProfile, SkeletonProps, SpinnerProps, SplitViewProps, StatChange, StatProps, StepperProps, TabItemConfig, TableColumn, TableProps, TabsProps, TestimonialProps, TextareaProps, TimePickerProps, TimelineItem, TimelineProps, ToastProps, ToggleProps, TooltipProps, TopBannerProps, TutorialProps, TutorialStep, UseContextMenuReturn, VideoPlayerProps, WebComponentProps, YouTubePlayerProps };
|
|
6524
|
+
export type { AccordionItemConfig, AccordionProps, AdBannerProps, AlertAction, AlertProps, AnimationBackgroundProps, AnimationTextProps, AppBadgeProps, AudioPlayerProps, AvatarProps, BackdropProps, BadgeProps, BannerAction, BannerProps, BottomNavigationItem, BottomNavigationProps, BottomSheetProps, BreadcrumbItemConfig, BreadcrumbsProps, ButtonProps, CalendarEvent, CalendarProps, CardProps, CarouselItem, CarouselProps, ChipProps, CodeBlockItem, CodeBlockProps, ColorPickerProps, ConfirmProps, ContextMenuItemConfig, ContextMenuProps, CountdownProps, CursorFollowerProps, DatePickerProps, DbEventHandler, DividerProps, DrawerProps, DropdownItemConfig, DropdownProps, DropzoneProps, EmptyStateProps, FileUploaderProps, FloatingActionButtonProps, FormFieldData, FormProps, GradientColor, GradientProps, GradientScheme, GradientTone, ImageListItem, ImageListProps, ImagePlaceholderProps, ImageProps, IndicatorProps, InputProps, LabelProps, LightboxImage, LightboxProps, ListItemConfig, ListProps, LogoProps, LottieProps, MarkdownEditorProps, MarqueeProps, MasonryItem, MasonryProps, MenuItemChildConfig, MenuItemProps, ModalProps, ModalSegmentItem, ModalTabItem, NavbarItem, NavbarProps, NavbarUserProfile, OnboardingModalProps, OnboardingStep, PageHeaderProps, PageHeaderTabItem, PaginationProps, PopoverProps, ProgressProps, ProgressStepItem, ProgressStepProps, RadioProps, RandomGradientProps, RangeSliderProps, RatingProps, ReorderItem, ReorderProps, ResizablePanelsProps, ScrollAreaProps, SearchBarProps, SectionAppDownloadProps, SectionAppDownloadStore, SectionContactAction, SectionContactProps, SectionFeatureAction, SectionFeatureBadge, SectionFeatureProps, SectionHeroButton, SectionHeroProps, SectionProps, SegmentControlProps, SelectProps, SelectionProps, SharePlatform, ShareProps, SidebarItem, SidebarProps, SidebarSection, SidebarUserProfile, SkeletonProps, SpinnerProps, SplitViewProps, StatChange, StatProps, StepperProps, TabItemConfig, TableColumn, TableProps, TabsProps, TestimonialProps, TextareaProps, TimePickerProps, TimelineItem, TimelineProps, ToastProps, ToggleProps, TooltipProps, TopBannerProps, TutorialProps, TutorialStep, UseContextMenuReturn, VideoPlayerProps, WebComponentProps, YouTubePlayerProps };
|