@designbasekorea/ui-wc 0.7.3 → 0.8.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/CHANGELOG.md +53 -0
- package/README.md +9 -0
- package/dist/esm/components/db-banner.d.ts +5 -0
- package/dist/esm/components/db-banner.js +1 -1
- 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-sidebar.d.ts +15 -1
- package/dist/esm/components/db-sidebar.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 +63 -2
- package/dist/index.esm.js +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.d.ts +124 -3
- package/dist/react/index.esm.js +1 -1
- package/package.json +1 -1
- /package/dist/chunks/{lottie-aa04ecb1.js → lottie-26a5e98f.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -208,6 +208,8 @@ interface DbBannerAction {
|
|
|
208
208
|
iconOnly?: boolean;
|
|
209
209
|
}
|
|
210
210
|
declare class DbBanner extends HTMLElement {
|
|
211
|
+
private clickHandler?;
|
|
212
|
+
private keydownHandler?;
|
|
211
213
|
static get observedAttributes(): string[];
|
|
212
214
|
connectedCallback(): void;
|
|
213
215
|
attributeChangedCallback(): void;
|
|
@@ -217,6 +219,9 @@ declare class DbBanner extends HTMLElement {
|
|
|
217
219
|
private resolveIconName;
|
|
218
220
|
private createActionControl;
|
|
219
221
|
private render;
|
|
222
|
+
private createCloseButton;
|
|
223
|
+
private handleClose;
|
|
224
|
+
private setupInteractivity;
|
|
220
225
|
}
|
|
221
226
|
declare global {
|
|
222
227
|
interface HTMLElementTagNameMap {
|
|
@@ -1755,6 +1760,15 @@ interface DbSidebarPromoBanner {
|
|
|
1755
1760
|
ctaHref?: string;
|
|
1756
1761
|
icon?: string;
|
|
1757
1762
|
}
|
|
1763
|
+
interface DbSidebarUpdateBanner {
|
|
1764
|
+
title: string;
|
|
1765
|
+
description?: string;
|
|
1766
|
+
icon?: string;
|
|
1767
|
+
ctaLabel?: string;
|
|
1768
|
+
ctaHref?: string;
|
|
1769
|
+
/** db-banner variant. 기본 outline(흰 배경+보더). */
|
|
1770
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'outline';
|
|
1771
|
+
}
|
|
1758
1772
|
declare class DbSidebar extends HTMLElement {
|
|
1759
1773
|
private expandedItems;
|
|
1760
1774
|
private userMenuOpen;
|
|
@@ -1804,6 +1818,8 @@ declare class DbSidebar extends HTMLElement {
|
|
|
1804
1818
|
set bottomSections(value: DbSidebarSection[] | string);
|
|
1805
1819
|
get promoBanner(): DbSidebarPromoBanner | null;
|
|
1806
1820
|
set promoBanner(value: DbSidebarPromoBanner | string | null);
|
|
1821
|
+
get updateBanner(): DbSidebarUpdateBanner | null;
|
|
1822
|
+
set updateBanner(value: DbSidebarUpdateBanner | string | null);
|
|
1807
1823
|
get headerType(): 'default' | 'back';
|
|
1808
1824
|
set headerType(value: 'default' | 'back');
|
|
1809
1825
|
get backLabel(): string;
|
|
@@ -1823,6 +1839,7 @@ declare class DbSidebar extends HTMLElement {
|
|
|
1823
1839
|
private parseBottomItems;
|
|
1824
1840
|
private parseBottomSections;
|
|
1825
1841
|
private parsePromoBanner;
|
|
1842
|
+
private parseUpdateBanner;
|
|
1826
1843
|
private getSelectedProject;
|
|
1827
1844
|
private bindOutsideClick;
|
|
1828
1845
|
private closeOverlayMenus;
|
|
@@ -1843,6 +1860,7 @@ declare class DbSidebar extends HTMLElement {
|
|
|
1843
1860
|
private dispatchProjectChange;
|
|
1844
1861
|
private dispatchProjectManage;
|
|
1845
1862
|
private dispatchPromoCtaClick;
|
|
1863
|
+
private dispatchUpdateCtaClick;
|
|
1846
1864
|
private createProjectAvatar;
|
|
1847
1865
|
private createProjectEmptyMark;
|
|
1848
1866
|
private createProjectBadge;
|
|
@@ -1853,6 +1871,7 @@ declare class DbSidebar extends HTMLElement {
|
|
|
1853
1871
|
private renderNav;
|
|
1854
1872
|
private renderBottomNav;
|
|
1855
1873
|
private createUserDropdown;
|
|
1874
|
+
private createUpdateBanner;
|
|
1856
1875
|
private createPromoBanner;
|
|
1857
1876
|
private createHeader;
|
|
1858
1877
|
private createNavWrapper;
|
|
@@ -3033,6 +3052,7 @@ declare class DbColorPicker extends HTMLElement {
|
|
|
3033
3052
|
private handleDocumentMouseMove;
|
|
3034
3053
|
private handleDocumentMouseUp;
|
|
3035
3054
|
private toggleOpen;
|
|
3055
|
+
close(): void;
|
|
3036
3056
|
private handleModalCancel;
|
|
3037
3057
|
private handleModalApply;
|
|
3038
3058
|
private mount;
|
|
@@ -3046,6 +3066,47 @@ declare global {
|
|
|
3046
3066
|
}
|
|
3047
3067
|
}
|
|
3048
3068
|
|
|
3069
|
+
type DbColorSwatchShape = 'rounded' | 'circle';
|
|
3070
|
+
type DbColorSwatchSize = 's' | 'm' | 'l';
|
|
3071
|
+
type DbColorSwatchCustomType = 'dropdown' | 'modal';
|
|
3072
|
+
type DbColorSwatchItem = {
|
|
3073
|
+
value: string;
|
|
3074
|
+
name?: string;
|
|
3075
|
+
};
|
|
3076
|
+
declare class DbColorSwatch extends HTMLElement {
|
|
3077
|
+
private colors;
|
|
3078
|
+
private selected;
|
|
3079
|
+
private customValue;
|
|
3080
|
+
private mounted;
|
|
3081
|
+
private gridEl?;
|
|
3082
|
+
private presetsEl?;
|
|
3083
|
+
private customWrapEl?;
|
|
3084
|
+
private customTipEl?;
|
|
3085
|
+
private customPickerEl?;
|
|
3086
|
+
static get observedAttributes(): string[];
|
|
3087
|
+
connectedCallback(): void;
|
|
3088
|
+
disconnectedCallback(): void;
|
|
3089
|
+
private handleOutsideMouseDown;
|
|
3090
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
3091
|
+
get value(): string;
|
|
3092
|
+
set value(next: string);
|
|
3093
|
+
private getOption;
|
|
3094
|
+
private getBool;
|
|
3095
|
+
private parseColors;
|
|
3096
|
+
private isCustomSelected;
|
|
3097
|
+
private emitChange;
|
|
3098
|
+
private selectPreset;
|
|
3099
|
+
private render;
|
|
3100
|
+
private buildSwatch;
|
|
3101
|
+
private ensureCustom;
|
|
3102
|
+
private updateCustom;
|
|
3103
|
+
}
|
|
3104
|
+
declare global {
|
|
3105
|
+
interface HTMLElementTagNameMap {
|
|
3106
|
+
'db-color-swatch': DbColorSwatch;
|
|
3107
|
+
}
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3049
3110
|
type DbReorderItem = {
|
|
3050
3111
|
id: string;
|
|
3051
3112
|
content: string;
|
|
@@ -5511,5 +5572,5 @@ interface DbConfirmOptions {
|
|
|
5511
5572
|
/** 확인 대화상자를 띄우고, 확인 시 true / 취소(ESC·배경 포함) 시 false 로 resolve 합니다. */
|
|
5512
5573
|
declare function confirm(options: DbConfirmOptions): Promise<boolean>;
|
|
5513
5574
|
|
|
5514
|
-
export { DbAccordion, DbAdBanner, DbAiChat, DbAiChatList, DbAlert, DbAnimationBackground, DbAnimationText, DbAppBadge, DbAudioPlayer, DbAvatar, DbBackdrop, DbBadge, DbBanner, DbBottomNavigation, DbBottomSheet, DbBreadcrumbs, DbButton, DbCalendar, DbCard, DbCarousel, DbChatComposer, DbChatList, DbChatMessage, DbChatOrb, DbChatRoom, DbChatSuggestions, DbChatTyping, DbChatWelcome, DbChatWidget, DbCheckbox, DbChip, DbCodeBlock, DbColorPicker, DbConfirm, DbContainer, DbContextMenu, DbCookieBanner, DbCountdown, DbCursorFollower, DbDatePicker, DbDivider, DbDownloadProgress, DbDrawer, DbDropdown, DbDropzone, DbEmailVerify, DbEmptyState, DbFileUploader, DbFloatingActionButton, DbFooter, DbForm, DbGantt, DbGradient, DbGrid, DbGridBackground, DbGridItem, DbImage, DbImageList, DbImagePlaceholder, DbIndicator, DbInput, DbKanban, DbLabel, DbLightbox, DbList, DbLogo, DbLottie, DbMarkdownEditor, DbMarquee, DbMasonry, DbMenuItem, DbModal, DbNavbar, DbOnboardingModal, DbOtpInput, DbPageHeader, DbPagination, DbPhoneVerify, DbPopover, DbProgress, DbProgressStep, DbProgressbar, DbRadio, DbRandomGradient, DbRangeSlider, DbRating, DbReorder, DbResizablePanels, DbScrollArea, DbSearchBar, DbSection, DbSectionAppDownload, DbSectionContact, DbSectionCta, DbSectionFaq, DbSectionFeature, DbSectionFeatureGrid, DbSectionHero, DbSectionLogoCloud, DbSectionPricing, DbSectionStats, DbSectionTestimonials, DbSegmentControl, DbSelect, DbShare, DbSidebar, DbSignature, DbSkeleton, DbSpinner, DbSplitView, DbStack, DbStat, DbStepper, DbTable, DbTabs, DbTestimonial, DbTextarea, DbTimePicker, DbTimeline, DbToast, DbToggle, DbToolbar, DbTooltip, DbTopBanner, DbTutorial, DbTwoFactor, DbVideoPlayer, DbYouTubePlayer, confirm, confirm as dbConfirm, toast as dbToast, showToast, toast };
|
|
5515
|
-
export type { CalendarEventData, CalendarEventType, DbAiChatItem, DbAlertAction, DbArtifactOptions, DbBannerAction, DbBottomNavigationItem, DbChatArtifactRef, DbChatAttachOption, DbChatListItem, DbChatMessageData, DbChatRoomMessage, DbChatSuggestion, DbChatTool, DbChatWidgetConversation, DbChatWidgetMessage, DbConfirmOptions, DbConfirmVariant, DbFooterCompanyInfo, DbFooterFamilySite, DbFooterLink, DbFooterLinkColumn, DbFooterSocialLink, DbFormFieldData, DbGanttAssignee, DbGanttGroup, DbGanttItem, DbGanttItemStatus, DbGanttRow, DbImageListItem, DbKanbanAssignee, DbKanbanCard, DbKanbanColumn, DbKanbanPriority, DbKanbanTag, DbLightboxImage, DbNavbarItem, DbNavbarUserProfile, DbPageHeaderTabItem, DbSharePlatform, DbShareVariant, DbSidebarItem, DbSidebarProject, DbSidebarPromoBanner, DbSidebarSection, DbSidebarUserProfile, DbSignaturePoint, DbSignatureVariant, DbStatChange, DbTimelineItem, DbToastApi, DbToastHandle, DbToastOptions, DbToastPosition, DbToastStatus };
|
|
5575
|
+
export { DbAccordion, DbAdBanner, DbAiChat, DbAiChatList, DbAlert, DbAnimationBackground, DbAnimationText, DbAppBadge, DbAudioPlayer, DbAvatar, DbBackdrop, DbBadge, DbBanner, DbBottomNavigation, DbBottomSheet, DbBreadcrumbs, DbButton, DbCalendar, DbCard, DbCarousel, DbChatComposer, DbChatList, DbChatMessage, DbChatOrb, DbChatRoom, DbChatSuggestions, DbChatTyping, DbChatWelcome, DbChatWidget, DbCheckbox, DbChip, DbCodeBlock, DbColorPicker, DbColorSwatch, DbConfirm, DbContainer, DbContextMenu, DbCookieBanner, DbCountdown, DbCursorFollower, DbDatePicker, DbDivider, DbDownloadProgress, DbDrawer, DbDropdown, DbDropzone, DbEmailVerify, DbEmptyState, DbFileUploader, DbFloatingActionButton, DbFooter, DbForm, DbGantt, DbGradient, DbGrid, DbGridBackground, DbGridItem, DbImage, DbImageList, DbImagePlaceholder, DbIndicator, DbInput, DbKanban, DbLabel, DbLightbox, DbList, DbLogo, DbLottie, DbMarkdownEditor, DbMarquee, DbMasonry, DbMenuItem, DbModal, DbNavbar, DbOnboardingModal, DbOtpInput, DbPageHeader, DbPagination, DbPhoneVerify, DbPopover, DbProgress, DbProgressStep, DbProgressbar, DbRadio, DbRandomGradient, DbRangeSlider, DbRating, DbReorder, DbResizablePanels, DbScrollArea, DbSearchBar, DbSection, DbSectionAppDownload, DbSectionContact, DbSectionCta, DbSectionFaq, DbSectionFeature, DbSectionFeatureGrid, DbSectionHero, DbSectionLogoCloud, DbSectionPricing, DbSectionStats, DbSectionTestimonials, DbSegmentControl, DbSelect, DbShare, DbSidebar, DbSignature, DbSkeleton, DbSpinner, DbSplitView, DbStack, DbStat, DbStepper, DbTable, DbTabs, DbTestimonial, DbTextarea, DbTimePicker, DbTimeline, DbToast, DbToggle, DbToolbar, DbTooltip, DbTopBanner, DbTutorial, DbTwoFactor, DbVideoPlayer, DbYouTubePlayer, confirm, confirm as dbConfirm, toast as dbToast, showToast, toast };
|
|
5576
|
+
export type { CalendarEventData, CalendarEventType, DbAiChatItem, DbAlertAction, DbArtifactOptions, DbBannerAction, DbBottomNavigationItem, DbChatArtifactRef, DbChatAttachOption, DbChatListItem, DbChatMessageData, DbChatRoomMessage, DbChatSuggestion, DbChatTool, DbChatWidgetConversation, DbChatWidgetMessage, DbColorSwatchCustomType, DbColorSwatchItem, DbColorSwatchShape, DbColorSwatchSize, DbConfirmOptions, DbConfirmVariant, DbFooterCompanyInfo, DbFooterFamilySite, DbFooterLink, DbFooterLinkColumn, DbFooterSocialLink, DbFormFieldData, DbGanttAssignee, DbGanttGroup, DbGanttItem, DbGanttItemStatus, DbGanttRow, DbImageListItem, DbKanbanAssignee, DbKanbanCard, DbKanbanColumn, DbKanbanPriority, DbKanbanTag, DbLightboxImage, DbNavbarItem, DbNavbarUserProfile, DbPageHeaderTabItem, DbSharePlatform, DbShareVariant, DbSidebarItem, DbSidebarProject, DbSidebarPromoBanner, DbSidebarSection, DbSidebarUserProfile, DbSignaturePoint, DbSignatureVariant, DbStatChange, DbTimelineItem, DbToastApi, DbToastHandle, DbToastOptions, DbToastPosition, DbToastStatus };
|