@designbasekorea/ui-wc 0.8.11 → 0.8.12

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,4 +1,4 @@
1
- import { BadgeVariant, BadgeType, TIME_PICKER_FORMATS, DOWNLOAD_PROGRESS_STATUSES, DOWNLOAD_PROGRESS_POSITIONS, OTP_INPUT_SIZES, PHONE_VERIFY_SIZES, EMAIL_VERIFY_SIZES, TWO_FACTOR_SIZES, AI_GLOW_STATES, AI_GLOW_VARIANTS, AI_GLOW_SIZES, CHAT_ORB_SIZES, CHAT_ORB_VARIANTS, CHAT_ORB_STATES, CHAT_ORB_THEMES, CHAT_MESSAGE_ROLES, CHAT_WIDGET_VIEWS, CHAT_WIDGET_POSITIONS, ToastVariant, ToastPosition } from '@designbasekorea/ui-contracts';
1
+ import { NavigationRailLabelDisplay, BadgeVariant, BadgeType, TIME_PICKER_FORMATS, DOWNLOAD_PROGRESS_STATUSES, DOWNLOAD_PROGRESS_POSITIONS, OTP_INPUT_SIZES, PHONE_VERIFY_SIZES, EMAIL_VERIFY_SIZES, TWO_FACTOR_SIZES, AI_GLOW_STATES, AI_GLOW_VARIANTS, AI_GLOW_SIZES, CHAT_ORB_SIZES, CHAT_ORB_VARIANTS, CHAT_ORB_STATES, CHAT_ORB_THEMES, CHAT_MESSAGE_ROLES, CHAT_WIDGET_VIEWS, CHAT_WIDGET_POSITIONS, ToastVariant, ToastPosition } from '@designbasekorea/ui-contracts';
2
2
  export { ToastPosition as DbToastPosition, ToastVariant as DbToastVariant } from '@designbasekorea/ui-contracts';
3
3
 
4
4
  /**
@@ -183,6 +183,9 @@ declare const DEFAULT_STRINGS: {
183
183
  readonly next: "다음";
184
184
  readonly 'select.placeholder': "선택하세요";
185
185
  readonly 'select.noResults': "결과 없음";
186
+ readonly 'navigationRail.label': "주요 내비게이션";
187
+ readonly 'navigationRail.newNotification': "새 알림";
188
+ readonly 'navigationRail.notifications': "알림";
186
189
  readonly 'tabs.label': "탭 목록";
187
190
  readonly 'pagination.label': "페이지 번호";
188
191
  readonly 'search.label': "검색";
@@ -275,6 +278,102 @@ declare abstract class DbElement extends HTMLElement {
275
278
  protected upgradeProperties(names: string[]): void;
276
279
  }
277
280
 
281
+ declare class DbTooltip extends HTMLElement {
282
+ static get observedAttributes(): string[];
283
+ private tooltipId;
284
+ private trigger?;
285
+ private tooltip?;
286
+ private contentEl?;
287
+ private arrow?;
288
+ private visible;
289
+ private showTimer?;
290
+ private hideTimer?;
291
+ private repositionRaf?;
292
+ private enterRaf?;
293
+ private removalTimer?;
294
+ get content(): string;
295
+ set content(value: string);
296
+ get position(): string;
297
+ set position(value: string);
298
+ get size(): string;
299
+ set size(value: string);
300
+ get variant(): string;
301
+ set variant(value: string);
302
+ get disabled(): boolean;
303
+ set disabled(value: boolean);
304
+ get alwaysShow(): boolean;
305
+ set alwaysShow(value: boolean);
306
+ get delay(): number;
307
+ get hideDelay(): number;
308
+ get maxWidth(): number;
309
+ get showArrow(): boolean;
310
+ private childObserver?;
311
+ connectedCallback(): void;
312
+ disconnectedCallback(): void;
313
+ attributeChangedCallback(): void;
314
+ private clearTimers;
315
+ private groupOf;
316
+ private resolvedPosition;
317
+ private collectTriggerChildren;
318
+ private ensureTrigger;
319
+ private mountTriggerChildren;
320
+ private render;
321
+ private ensureTooltip;
322
+ private syncTooltipClasses;
323
+ private calculatePosition;
324
+ private setVisible;
325
+ private hideTooltip;
326
+ private removeTooltip;
327
+ private handleShow;
328
+ private handleHide;
329
+ private handleKeyDown;
330
+ private handleReposition;
331
+ }
332
+ declare global {
333
+ interface HTMLElementTagNameMap {
334
+ 'db-tooltip': DbTooltip;
335
+ }
336
+ }
337
+
338
+ interface DbNavigationRailItem {
339
+ id: string;
340
+ label: string;
341
+ icon: string;
342
+ activeIcon?: string;
343
+ href?: string;
344
+ disabled?: boolean;
345
+ /** true = 알림 점, 문자열/숫자 = 배지 */
346
+ badge?: boolean | string | number;
347
+ badgeColor?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info';
348
+ dividerBefore?: boolean;
349
+ }
350
+ /** Selection is controlled by active-item-id; clicks emit db-item-click. */
351
+ declare class DbNavigationRail extends HTMLElement {
352
+ static get observedAttributes(): string[];
353
+ connectedCallback(): void;
354
+ attributeChangedCallback(_name: string, oldValue: string | null, newValue: string | null): void;
355
+ private parseItems;
356
+ get items(): DbNavigationRailItem[];
357
+ set items(value: DbNavigationRailItem[] | string);
358
+ get bottomItems(): DbNavigationRailItem[];
359
+ set bottomItems(value: DbNavigationRailItem[] | string);
360
+ get activeItemId(): string;
361
+ set activeItemId(value: string);
362
+ get labelDisplay(): NavigationRailLabelDisplay;
363
+ set labelDisplay(value: NavigationRailLabelDisplay);
364
+ get size(): 's' | 'm' | 'l';
365
+ set size(value: 's' | 'm' | 'l');
366
+ get fullHeight(): boolean;
367
+ set fullHeight(value: boolean);
368
+ private renderItems;
369
+ private render;
370
+ }
371
+ declare global {
372
+ interface HTMLElementTagNameMap {
373
+ 'db-navigation-rail': DbNavigationRail;
374
+ }
375
+ }
376
+
278
377
  /**
279
378
  * Light DOM custom element for the canonical web Button.
280
379
  *
@@ -809,63 +908,6 @@ declare global {
809
908
  }
810
909
  }
811
910
 
812
- declare class DbTooltip extends HTMLElement {
813
- static get observedAttributes(): string[];
814
- private tooltipId;
815
- private trigger?;
816
- private tooltip?;
817
- private contentEl?;
818
- private arrow?;
819
- private visible;
820
- private showTimer?;
821
- private hideTimer?;
822
- private repositionRaf?;
823
- private enterRaf?;
824
- private removalTimer?;
825
- get content(): string;
826
- set content(value: string);
827
- get position(): string;
828
- set position(value: string);
829
- get size(): string;
830
- set size(value: string);
831
- get variant(): string;
832
- set variant(value: string);
833
- get disabled(): boolean;
834
- set disabled(value: boolean);
835
- get alwaysShow(): boolean;
836
- set alwaysShow(value: boolean);
837
- get delay(): number;
838
- get hideDelay(): number;
839
- get maxWidth(): number;
840
- get showArrow(): boolean;
841
- private childObserver?;
842
- connectedCallback(): void;
843
- disconnectedCallback(): void;
844
- attributeChangedCallback(): void;
845
- private clearTimers;
846
- private groupOf;
847
- private resolvedPosition;
848
- private collectTriggerChildren;
849
- private ensureTrigger;
850
- private mountTriggerChildren;
851
- private render;
852
- private ensureTooltip;
853
- private syncTooltipClasses;
854
- private calculatePosition;
855
- private setVisible;
856
- private hideTooltip;
857
- private removeTooltip;
858
- private handleShow;
859
- private handleHide;
860
- private handleKeyDown;
861
- private handleReposition;
862
- }
863
- declare global {
864
- interface HTMLElementTagNameMap {
865
- 'db-tooltip': DbTooltip;
866
- }
867
- }
868
-
869
911
  interface AccordionItemConfig {
870
912
  id?: string;
871
913
  title: string;
@@ -5379,7 +5421,7 @@ declare global {
5379
5421
  }
5380
5422
  }
5381
5423
 
5382
- type DbIconName = 'arrow-bar-left' | 'arrow-bar-right' | 'award' | 'apple' | 'play-store' | 'arrow-right' | 'star' | 'star-filled' | 'star-half' | 'trending-up' | 'cart' | 'bell-active' | 'caret-down-filled' | 'caret-updown-filled' | 'chevron-down' | 'chevron-up' | 'chevron-left' | 'chevron-right' | 'calendar' | 'camera' | 'clock' | 'bulb' | 'circle-checked' | 'cloud-close' | 'close' | 'done' | 'documentation' | 'doughnut-chart' | 'download' | 'error-filled' | 'edit' | 'eyedropper' | 'file-new' | 'folder-open' | 'gallery' | 'globe' | 'hide' | 'info-filled' | 'lock' | 'mail' | 'menu' | 'microphone' | 'minus' | 'moon' | 'more-vertical' | 'paperclip' | 'pause' | 'play' | 'plus' | 'copy' | 'code' | 'write' | 'upload' | 'video' | 'volume-up' | 'mute-filled' | 'package' | 'delivery-filled' | 'repeat' | 'settings' | 'refresh' | 'expand' | 'shrink' | 'grip-vertical' | 'grip-horizontal' | 'search' | 'send' | 'share-alt' | 'show' | 'sparkle' | 'stop' | 'sun' | 'thumb-down' | 'thumb-up' | 'trash' | 'user' | 'warning-filled';
5424
+ type DbIconName = 'arrow-bar-left' | 'arrow-bar-right' | 'award' | 'apple' | 'play-store' | 'arrow-right' | 'star' | 'star-filled' | 'star-half' | 'trending-up' | 'cart' | 'bell-active' | 'caret-down-filled' | 'caret-updown-filled' | 'chevron-down' | 'chevron-up' | 'chevron-left' | 'chevron-right' | 'calendar' | 'camera' | 'clock' | 'bulb' | 'circle-checked' | 'cloud-close' | 'close' | 'done' | 'documentation' | 'doughnut-chart' | 'download' | 'error-filled' | 'edit' | 'eyedropper' | 'file-new' | 'home-outline' | 'home-filled' | 'folder' | 'more-horizontal' | 'folder-open' | 'gallery' | 'globe' | 'hide' | 'info-filled' | 'lock' | 'mail' | 'menu' | 'microphone' | 'minus' | 'moon' | 'more-vertical' | 'paperclip' | 'pause' | 'play' | 'plus' | 'copy' | 'code' | 'write' | 'upload' | 'video' | 'volume-up' | 'mute-filled' | 'package' | 'delivery-filled' | 'repeat' | 'settings' | 'refresh' | 'expand' | 'shrink' | 'grip-vertical' | 'grip-horizontal' | 'search' | 'send' | 'share-alt' | 'show' | 'sparkle' | 'stop' | 'sun' | 'thumb-down' | 'thumb-up' | 'trash' | 'user' | 'warning-filled';
5383
5425
 
5384
5426
  interface DbChatTool {
5385
5427
  /** 고유 id (이벤트 detail 로 전달) */
@@ -6183,5 +6225,5 @@ interface DbConfirmOptions {
6183
6225
  /** 확인 대화상자를 띄우고, 확인 시 true / 취소(ESC·배경 포함) 시 false 로 resolve 합니다. */
6184
6226
  declare function confirm(options: DbConfirmOptions): Promise<boolean>;
6185
6227
 
6186
- export { CleanupBag, DbAccordion, DbActivityHeatmap, DbAdBanner, DbAiChat, DbAiChatList, DbAiGlow, 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, DbElement, DbEmailVerify, DbEmptyState, DbFileUploader, DbFloatingActionButton, DbFooter, DbForm, DbGantt, DbGradient, DbGrid, DbGridBackground, DbGridItem, DbImage, DbImageList, DbImagePlaceholder, DbIndicator, DbInput, DbKanban, DbLabel, DbLightbox, DbList, DbLogo, 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, activateOnKey, announce, confirm, createFocusTrap, createSrOnly, confirm as dbConfirm, dbResetLocale, dbSetLocale, toast as dbToast, dbUid, ensureId, getTabbables, labelFrom, lockScroll, politenessForTone, rafThrottle, sanitizeHref, sanitizeHtmlFragment, scrollLockDepth, setAccessibleName, showToast, t, toast, unlockScroll };
6187
- export type { CalendarEventData, CalendarEventType, Cleanup, DbActivityHeatmapCellDetail, DbActivityHeatmapItem, DbAiChatItem, DbAlertAction, DbArtifactOptions, DbBannerAction, DbBottomNavigationItem, DbChatArtifactRef, DbChatAttachOption, DbChatListItem, DbChatMessageAttachment, DbChatMessageData, DbChatRoomMessage, DbChatSuggestion, DbChatTool, DbChatWidgetArticle, DbChatWidgetConversation, DbChatWidgetMenuAction, DbChatWidgetMenuItem, 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, DbStringKey, DbStrings, DbTimelineItem, DbToastApi, DbToastHandle, DbToastOptions, FocusTrap, FocusTrapOptions };
6228
+ export { CleanupBag, DbAccordion, DbActivityHeatmap, DbAdBanner, DbAiChat, DbAiChatList, DbAiGlow, 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, DbElement, DbEmailVerify, DbEmptyState, DbFileUploader, DbFloatingActionButton, DbFooter, DbForm, DbGantt, DbGradient, DbGrid, DbGridBackground, DbGridItem, DbImage, DbImageList, DbImagePlaceholder, DbIndicator, DbInput, DbKanban, DbLabel, DbLightbox, DbList, DbLogo, DbMarkdownEditor, DbMarquee, DbMasonry, DbMenuItem, DbModal, DbNavbar, DbNavigationRail, 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, activateOnKey, announce, confirm, createFocusTrap, createSrOnly, confirm as dbConfirm, dbResetLocale, dbSetLocale, toast as dbToast, dbUid, ensureId, getTabbables, labelFrom, lockScroll, politenessForTone, rafThrottle, sanitizeHref, sanitizeHtmlFragment, scrollLockDepth, setAccessibleName, showToast, t, toast, unlockScroll };
6229
+ export type { CalendarEventData, CalendarEventType, Cleanup, DbActivityHeatmapCellDetail, DbActivityHeatmapItem, DbAiChatItem, DbAlertAction, DbArtifactOptions, DbBannerAction, DbBottomNavigationItem, DbChatArtifactRef, DbChatAttachOption, DbChatListItem, DbChatMessageAttachment, DbChatMessageData, DbChatRoomMessage, DbChatSuggestion, DbChatTool, DbChatWidgetArticle, DbChatWidgetConversation, DbChatWidgetMenuAction, DbChatWidgetMenuItem, 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, DbNavigationRailItem, DbPageHeaderTabItem, DbSharePlatform, DbShareVariant, DbSidebarItem, DbSidebarProject, DbSidebarPromoBanner, DbSidebarSection, DbSidebarUserProfile, DbSignaturePoint, DbSignatureVariant, DbStatChange, DbStringKey, DbStrings, DbTimelineItem, DbToastApi, DbToastHandle, DbToastOptions, FocusTrap, FocusTrapOptions };