@designbasekorea/ui-wc 0.6.0 → 0.7.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +9 -0
  3. package/dist/esm/components/db-cookie-banner.d.ts +15 -0
  4. package/dist/esm/components/db-cookie-banner.js +1 -0
  5. package/dist/esm/components/db-email-verify.d.ts +2 -0
  6. package/dist/esm/components/db-email-verify.js +1 -1
  7. package/dist/esm/components/db-phone-verify.d.ts +2 -0
  8. package/dist/esm/components/db-phone-verify.js +1 -1
  9. package/dist/esm/components/db-section-faq.js +1 -1
  10. package/dist/esm/components/db-section-hero.d.ts +13 -0
  11. package/dist/esm/components/db-section-hero.js +1 -1
  12. package/dist/esm/components/db-section-testimonials.js +1 -1
  13. package/dist/esm/components/db-sidebar.d.ts +32 -0
  14. package/dist/esm/components/db-sidebar.js +1 -1
  15. package/dist/esm/components/db-signature.d.ts +79 -0
  16. package/dist/esm/components/db-signature.js +1 -0
  17. package/dist/esm/components/db-testimonial.d.ts +1 -0
  18. package/dist/esm/components/db-testimonial.js +1 -1
  19. package/dist/esm/components/db-two-factor.d.ts +11 -0
  20. package/dist/esm/components/db-two-factor.js +1 -1
  21. package/dist/esm/components/highlight-code.js +1 -1
  22. package/dist/esm/index.d.ts +2 -0
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.cjs +1 -1
  25. package/dist/index.css +1 -1
  26. package/dist/index.d.ts +153 -2
  27. package/dist/index.esm.js +1 -1
  28. package/dist/react/index.cjs +1 -1
  29. package/dist/react/index.d.ts +262 -36
  30. package/dist/react/index.esm.js +1 -1
  31. package/package.json +4 -3
  32. /package/dist/chunks/{lottie-0e23d630.js → lottie-bfc2216c.js} +0 -0
  33. /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-bash.js +0 -0
  34. /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-clike.js +0 -0
  35. /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-css.js +0 -0
  36. /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-javascript.js +0 -0
  37. /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-json.js +0 -0
  38. /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-jsx.js +0 -0
  39. /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-markup.js +0 -0
  40. /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-scss.js +0 -0
  41. /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-tsx.js +0 -0
  42. /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-typescript.js +0 -0
package/dist/index.d.ts CHANGED
@@ -1348,6 +1348,20 @@ declare global {
1348
1348
  }
1349
1349
  }
1350
1350
 
1351
+ declare class DbCookieBanner extends HTMLElement {
1352
+ static get observedAttributes(): string[];
1353
+ connectedCallback(): void;
1354
+ attributeChangedCallback(): void;
1355
+ private isEnabled;
1356
+ private createButton;
1357
+ private render;
1358
+ }
1359
+ declare global {
1360
+ interface HTMLElementTagNameMap {
1361
+ 'db-cookie-banner': DbCookieBanner;
1362
+ }
1363
+ }
1364
+
1351
1365
  interface DbStatChange {
1352
1366
  value: number;
1353
1367
  type: 'increase' | 'decrease';
@@ -1698,11 +1712,21 @@ interface DbSidebarItem {
1698
1712
  disabled?: boolean;
1699
1713
  badge?: string | number;
1700
1714
  badgeColor?: string;
1715
+ /** 프로필 메뉴 우측에 표시할 현재 값 (예: "System", "한국어") */
1716
+ value?: string;
1717
+ /** 2depth 선택 상태. 선택된 항목에는 체크 아이콘이 표시됩니다. */
1718
+ selected?: boolean;
1719
+ /** 프로필 메뉴에서 이 항목 앞에 구분선을 표시합니다. */
1720
+ dividerBefore?: boolean;
1721
+ /** 클릭 시 이동할 사이드바 패널 id (예: settings) */
1722
+ openPanel?: string;
1701
1723
  children?: DbSidebarItem[];
1702
1724
  }
1703
1725
  interface DbSidebarSection {
1704
1726
  id: string;
1705
1727
  title?: string;
1728
+ /** 이전 섹션과의 간격 */
1729
+ gap?: 'none' | 's' | 'm' | 'l';
1706
1730
  items: DbSidebarItem[];
1707
1731
  }
1708
1732
  interface DbSidebarUserProfile {
@@ -1733,7 +1757,9 @@ declare class DbSidebar extends HTMLElement {
1733
1757
  private userMenuOpen;
1734
1758
  private projectMenuOpen;
1735
1759
  private flyoutItemId;
1760
+ private userFlyoutItemId;
1736
1761
  private flyoutCloseTimer;
1762
+ private userFlyoutCloseTimer;
1737
1763
  private outsideHandler;
1738
1764
  static get observedAttributes(): string[];
1739
1765
  connectedCallback(): void;
@@ -1768,6 +1794,18 @@ declare class DbSidebar extends HTMLElement {
1768
1794
  set bottomSections(value: DbSidebarSection[] | string);
1769
1795
  get promoBanner(): DbSidebarPromoBanner | null;
1770
1796
  set promoBanner(value: DbSidebarPromoBanner | string | null);
1797
+ get headerType(): 'default' | 'back';
1798
+ set headerType(value: 'default' | 'back');
1799
+ get backLabel(): string;
1800
+ set backLabel(value: string);
1801
+ get backHref(): string;
1802
+ set backHref(value: string);
1803
+ get settingsSections(): DbSidebarSection[];
1804
+ set settingsSections(value: DbSidebarSection[] | string);
1805
+ get activePanel(): string;
1806
+ set activePanel(value: string);
1807
+ private parseSettingsSections;
1808
+ private hasSettingsPanel;
1771
1809
  private parseSections;
1772
1810
  private parseUserMenuItems;
1773
1811
  private parseUserProfile;
@@ -1783,9 +1821,15 @@ declare class DbSidebar extends HTMLElement {
1783
1821
  private cancelFlyoutClose;
1784
1822
  private showFlyout;
1785
1823
  private scheduleFlyoutClose;
1824
+ private cancelUserFlyoutClose;
1825
+ private setUserFlyout;
1826
+ private scheduleUserFlyoutClose;
1786
1827
  private syncHostClasses;
1828
+ private syncActivePanelTrack;
1829
+ private navigateToPanel;
1787
1830
  private dispatchItemClick;
1788
1831
  private dispatchUserMenuItemClick;
1832
+ private dispatchBackClick;
1789
1833
  private dispatchProjectChange;
1790
1834
  private dispatchProjectManage;
1791
1835
  private dispatchPromoCtaClick;
@@ -1800,6 +1844,8 @@ declare class DbSidebar extends HTMLElement {
1800
1844
  private renderBottomNav;
1801
1845
  private createUserDropdown;
1802
1846
  private createPromoBanner;
1847
+ private createHeader;
1848
+ private createNavWrapper;
1803
1849
  private render;
1804
1850
  }
1805
1851
  declare global {
@@ -2752,6 +2798,83 @@ declare global {
2752
2798
  }
2753
2799
  }
2754
2800
 
2801
+ type DbSignatureVariant = 'dashed' | 'outlined';
2802
+ interface DbSignaturePoint {
2803
+ x: number;
2804
+ y: number;
2805
+ t: number;
2806
+ }
2807
+ /**
2808
+ * db-signature — 마우스·터치·펜으로 서명을 그리는 컴포넌트
2809
+ *
2810
+ * 중점 이차 곡선 + coalesced pointer 로 자연스럽게 이어지며,
2811
+ * ⌘Z / ⌘⇧Z (Ctrl+Z / Ctrl+⇧Z) 로 되돌리기·다시 실행을 지원합니다.
2812
+ *
2813
+ * 속성: height, variant, pen-color, background-color, min-width, max-width,
2814
+ * placeholder, show-clear, clear-label, disabled, readonly, value
2815
+ * 메서드: clear(), undo(), redo(), isEmpty(), toDataURL(), fromDataURL()
2816
+ * 이벤트: db-begin, db-end, db-change(detail.value), db-clear
2817
+ */
2818
+ declare class DbSignature extends HTMLElement {
2819
+ private canvas;
2820
+ private placeholderEl;
2821
+ private clearButton;
2822
+ private resizeObserver;
2823
+ private themeObserver;
2824
+ private strokes;
2825
+ private redoStack;
2826
+ private currentStroke;
2827
+ private lastMid;
2828
+ private lastWidth;
2829
+ private lastVelocity;
2830
+ private backgroundImage;
2831
+ private activePointerId;
2832
+ static get observedAttributes(): string[];
2833
+ connectedCallback(): void;
2834
+ disconnectedCallback(): void;
2835
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
2836
+ get value(): string | null;
2837
+ set value(next: string | null);
2838
+ private getNumberAttr;
2839
+ private getBooleanAttr;
2840
+ private getVariant;
2841
+ private get minWidth();
2842
+ private get maxWidth();
2843
+ private get interactive();
2844
+ private getPenColor;
2845
+ private render;
2846
+ private updateState;
2847
+ private syncCanvasSize;
2848
+ private resetCanvas;
2849
+ private resolveWidth;
2850
+ private drawCurveSegment;
2851
+ private drawDot;
2852
+ private drawStroke;
2853
+ private redraw;
2854
+ private getPoint;
2855
+ private appendPoint;
2856
+ private handlePointerDown;
2857
+ private handlePointerMove;
2858
+ private handlePointerUp;
2859
+ private handleClearClick;
2860
+ private handleKeyDown;
2861
+ private emitChange;
2862
+ isEmpty(): boolean;
2863
+ clear(): void;
2864
+ /** 마지막 획을 되돌립니다 */
2865
+ undo(): void;
2866
+ /** 되돌린 획을 다시 적용합니다 */
2867
+ redo(): void;
2868
+ toDataURL(type?: string, quality?: number): string | null;
2869
+ fromDataURL(dataUrl: string): void;
2870
+ getCanvas(): HTMLCanvasElement | null;
2871
+ }
2872
+ declare global {
2873
+ interface HTMLElementTagNameMap {
2874
+ 'db-signature': DbSignature;
2875
+ }
2876
+ }
2877
+
2755
2878
  declare class DbCountdown extends HTMLElement {
2756
2879
  private timer;
2757
2880
  private targetTime;
@@ -3406,6 +3529,7 @@ declare class DbTestimonial extends HTMLElement {
3406
3529
  private innerEl?;
3407
3530
  private quoteEl?;
3408
3531
  private backgroundEl?;
3532
+ private logoWrapEl?;
3409
3533
  private logoEl?;
3410
3534
  private footerEl?;
3411
3535
  private extraEl?;
@@ -3443,16 +3567,29 @@ declare class DbSectionHero extends HTMLElement {
3443
3567
  private backgroundVideoEl?;
3444
3568
  private backgroundImageEl?;
3445
3569
  private overlayEl?;
3570
+ private defaultContainerEl?;
3571
+ private splitContainerEl?;
3572
+ private stageEl?;
3573
+ private floatsEl?;
3574
+ private contentEl?;
3575
+ private badgeEl?;
3446
3576
  private titleEl?;
3447
3577
  private subtitleEl?;
3448
3578
  private descriptionEl?;
3449
3579
  private buttonsEl?;
3580
+ private visualMainEl?;
3581
+ private visualSideEl?;
3582
+ private visualTlEl?;
3583
+ private visualTrEl?;
3450
3584
  connectedCallback(): void;
3451
3585
  attributeChangedCallback(): void;
3452
3586
  get buttons(): HeroButton[];
3453
3587
  set buttons(value: HeroButton[] | string);
3454
3588
  private parseButtons;
3589
+ private createContent;
3590
+ private createVisual;
3455
3591
  private build;
3592
+ private mountLayout;
3456
3593
  private updateUI;
3457
3594
  }
3458
3595
  declare global {
@@ -4343,6 +4480,7 @@ declare class DbPhoneVerify extends HTMLElement {
4343
4480
  private codeBlock;
4344
4481
  private errorEl;
4345
4482
  get size(): Size$2;
4483
+ set size(v: Size$2);
4346
4484
  get step(): 'phone' | 'code' | 'verified';
4347
4485
  set step(v: 'phone' | 'code' | 'verified');
4348
4486
  get phone(): string;
@@ -4352,6 +4490,7 @@ declare class DbPhoneVerify extends HTMLElement {
4352
4490
  get code(): string;
4353
4491
  set code(v: string);
4354
4492
  get countdown(): number;
4493
+ set countdown(v: number);
4355
4494
  connectedCallback(): void;
4356
4495
  disconnectedCallback(): void;
4357
4496
  attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
@@ -4404,11 +4543,13 @@ declare class DbEmailVerify extends HTMLElement {
4404
4543
  get mode(): 'code' | 'confirm';
4405
4544
  set mode(v: 'code' | 'confirm');
4406
4545
  get size(): Size$1;
4546
+ set size(v: Size$1);
4407
4547
  get step(): 'email' | 'code' | 'sent' | 'verified';
4408
4548
  set step(v: 'email' | 'code' | 'sent' | 'verified');
4409
4549
  get email(): string;
4410
4550
  set email(v: string);
4411
4551
  get countdown(): number;
4552
+ set countdown(v: number);
4412
4553
  connectedCallback(): void;
4413
4554
  disconnectedCallback(): void;
4414
4555
  attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
@@ -4460,15 +4601,25 @@ declare class DbTwoFactor extends HTMLElement {
4460
4601
  private otpInput;
4461
4602
  private hintEl;
4462
4603
  private timerEl;
4604
+ private codeHead;
4463
4605
  private resendBtn;
4464
4606
  private verifyBtn;
4465
4607
  private backupBtn;
4466
4608
  private errorEl;
4467
4609
  private channelActions;
4610
+ private resendStatus;
4611
+ private backupBlock;
4612
+ private backupInput;
4613
+ private backupCancelBtn;
4614
+ private backupMode;
4615
+ private resendCount;
4468
4616
  get method(): Method;
4469
4617
  set method(v: Method);
4470
4618
  get size(): Size;
4619
+ set size(v: Size);
4471
4620
  get countdown(): number;
4621
+ set countdown(v: number);
4622
+ get maxResends(): number;
4472
4623
  connectedCallback(): void;
4473
4624
  disconnectedCallback(): void;
4474
4625
  attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
@@ -5350,5 +5501,5 @@ interface DbConfirmOptions {
5350
5501
  /** 확인 대화상자를 띄우고, 확인 시 true / 취소(ESC·배경 포함) 시 false 로 resolve 합니다. */
5351
5502
  declare function confirm(options: DbConfirmOptions): Promise<boolean>;
5352
5503
 
5353
- 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, 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, 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 };
5354
- 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, DbStatChange, DbTimelineItem, DbToastApi, DbToastHandle, DbToastOptions, DbToastPosition, DbToastStatus };
5504
+ 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 };
5505
+ 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 };