@designbasekorea/ui-wc 0.3.0 → 0.4.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 (43) hide show
  1. package/dist/esm/components/db-accordion.d.ts +2 -0
  2. package/dist/esm/components/db-accordion.js +1 -1
  3. package/dist/esm/components/db-breadcrumbs.d.ts +29 -0
  4. package/dist/esm/components/db-breadcrumbs.js +1 -1
  5. package/dist/esm/components/db-calendar.js +1 -1
  6. package/dist/esm/components/db-gantt.d.ts +96 -0
  7. package/dist/esm/components/db-gantt.js +1 -0
  8. package/dist/esm/components/db-icons.js +1 -1
  9. package/dist/esm/components/db-kanban.d.ts +70 -0
  10. package/dist/esm/components/db-kanban.js +1 -0
  11. package/dist/esm/components/db-section-app-download.d.ts +0 -2
  12. package/dist/esm/components/db-section-app-download.js +1 -1
  13. package/dist/esm/components/db-section-contact.d.ts +1 -3
  14. package/dist/esm/components/db-section-contact.js +1 -1
  15. package/dist/esm/components/db-section-cta.d.ts +24 -0
  16. package/dist/esm/components/db-section-cta.js +1 -0
  17. package/dist/esm/components/db-section-faq.d.ts +20 -0
  18. package/dist/esm/components/db-section-faq.js +1 -0
  19. package/dist/esm/components/db-section-feature-grid.d.ts +20 -0
  20. package/dist/esm/components/db-section-feature-grid.js +1 -0
  21. package/dist/esm/components/db-section-feature.d.ts +2 -2
  22. package/dist/esm/components/db-section-feature.js +1 -1
  23. package/dist/esm/components/db-section-logo-cloud.d.ts +20 -0
  24. package/dist/esm/components/db-section-logo-cloud.js +1 -0
  25. package/dist/esm/components/db-section-pricing.d.ts +20 -0
  26. package/dist/esm/components/db-section-pricing.js +1 -0
  27. package/dist/esm/components/db-section-stats.d.ts +20 -0
  28. package/dist/esm/components/db-section-stats.js +1 -0
  29. package/dist/esm/components/db-section-testimonials.d.ts +34 -0
  30. package/dist/esm/components/db-section-testimonials.js +1 -0
  31. package/dist/esm/components/marketing-block-host-utils.js +1 -0
  32. package/dist/esm/components/section-block-header-utils.js +1 -0
  33. package/dist/esm/index.d.ts +9 -0
  34. package/dist/esm/index.js +1 -1
  35. package/dist/index.cjs +1 -1
  36. package/dist/index.css +1 -1
  37. package/dist/index.d.ts +349 -9
  38. package/dist/index.esm.js +1 -1
  39. package/dist/react/index.cjs +1 -1
  40. package/dist/react/index.d.ts +739 -13
  41. package/dist/react/index.esm.js +1 -1
  42. package/package.json +1 -1
  43. /package/dist/chunks/{lottie-1e5700ad.js → lottie-3b3dac01.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -528,6 +528,8 @@ declare global {
528
528
  interface AccordionItemConfig {
529
529
  id?: string;
530
530
  title: string;
531
+ /** 슬롯(content-N)이 없을 때 본문으로 렌더되는 텍스트 */
532
+ content?: string;
531
533
  disabled?: boolean;
532
534
  itemType?: 'icon' | 'number' | 'question' | 'none';
533
535
  icon?: string;
@@ -769,6 +771,14 @@ declare global {
769
771
  }
770
772
  }
771
773
 
774
+ interface BreadcrumbMenuItem {
775
+ id?: string;
776
+ label: string;
777
+ href?: string;
778
+ active?: boolean;
779
+ disabled?: boolean;
780
+ icon?: string;
781
+ }
772
782
  interface BreadcrumbItem {
773
783
  id?: string;
774
784
  label: string;
@@ -776,14 +786,35 @@ interface BreadcrumbItem {
776
786
  active?: boolean;
777
787
  disabled?: boolean;
778
788
  icon?: string;
789
+ menu?: BreadcrumbMenuItem[];
779
790
  }
780
791
  declare class DbBreadcrumbs extends HTMLElement {
781
792
  static get observedAttributes(): string[];
793
+ private openMenuId;
794
+ private onDocumentMouseDown;
795
+ private onDocumentKeyDown;
782
796
  get items(): BreadcrumbItem[] | string;
783
797
  set items(value: BreadcrumbItem[] | string);
784
798
  connectedCallback(): void;
799
+ disconnectedCallback(): void;
785
800
  attributeChangedCallback(): void;
801
+ private get menuDropdown();
802
+ private get maxLabelLength();
803
+ private get resolvedVariant();
804
+ private itemId;
805
+ private menuItemId;
786
806
  private visibleItems;
807
+ private shouldUseDropdown;
808
+ private closeMenu;
809
+ private openMenu;
810
+ private toggleMenu;
811
+ private addGlobalListeners;
812
+ private removeGlobalListeners;
813
+ private updateDropdownStates;
814
+ private createLabel;
815
+ private createMenuItem;
816
+ private createDropdownItem;
817
+ private createStandardItem;
787
818
  private render;
788
819
  }
789
820
  declare global {
@@ -2849,6 +2880,168 @@ declare global {
2849
2880
  }
2850
2881
  }
2851
2882
 
2883
+ type DbKanbanPriority = 'low' | 'medium' | 'high' | 'urgent';
2884
+ type DbKanbanTag = {
2885
+ label: string;
2886
+ variant?: 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'neutral';
2887
+ };
2888
+ type DbKanbanAssignee = {
2889
+ name: string;
2890
+ initials?: string;
2891
+ avatar?: string;
2892
+ };
2893
+ type DbKanbanCard = {
2894
+ id: string;
2895
+ title: string;
2896
+ description?: string;
2897
+ tags?: DbKanbanTag[];
2898
+ assignee?: DbKanbanAssignee;
2899
+ priority?: DbKanbanPriority;
2900
+ dueDate?: string;
2901
+ disabled?: boolean;
2902
+ };
2903
+ type DbKanbanColumn = {
2904
+ id: string;
2905
+ title: string;
2906
+ cards: DbKanbanCard[];
2907
+ limit?: number;
2908
+ color?: string;
2909
+ };
2910
+ declare class DbKanban extends HTMLElement {
2911
+ private dragState;
2912
+ private dropTarget;
2913
+ static get observedAttributes(): string[];
2914
+ get columns(): DbKanbanColumn[];
2915
+ set columns(value: DbKanbanColumn[] | string);
2916
+ connectedCallback(): void;
2917
+ disconnectedCallback(): void;
2918
+ attributeChangedCallback(): void;
2919
+ private getBool;
2920
+ private getOption;
2921
+ private emitChange;
2922
+ private emitCardMove;
2923
+ private findCardLocation;
2924
+ private getAdjustedDropIndex;
2925
+ private isValidDropTarget;
2926
+ private moveCard;
2927
+ private setDropTarget;
2928
+ private resetDragState;
2929
+ private updateDragClasses;
2930
+ private getDropIndexFromPointer;
2931
+ private getDropIndexFromColumnPointer;
2932
+ private commitDrop;
2933
+ private handleBoardDragOver;
2934
+ private handleBoardDrop;
2935
+ private formatDueDate;
2936
+ private getInitials;
2937
+ private createTag;
2938
+ private createPriorityBadge;
2939
+ private createAssignee;
2940
+ private bindCardDrag;
2941
+ private createCard;
2942
+ private createColumn;
2943
+ private render;
2944
+ }
2945
+ declare global {
2946
+ interface HTMLElementTagNameMap {
2947
+ 'db-kanban': DbKanban;
2948
+ }
2949
+ }
2950
+
2951
+ type DbGanttAssignee = {
2952
+ name: string;
2953
+ initials?: string;
2954
+ avatar?: string;
2955
+ };
2956
+ type DbGanttItemStatus = 'on-track' | 'at-risk' | 'delayed' | 'completed';
2957
+ type DbGanttItem = {
2958
+ id: string;
2959
+ rowId: string;
2960
+ title: string;
2961
+ startDate: string;
2962
+ endDate: string;
2963
+ color?: string;
2964
+ assignee?: DbGanttAssignee;
2965
+ progress?: number;
2966
+ status?: DbGanttItemStatus;
2967
+ disabled?: boolean;
2968
+ };
2969
+ type DbGanttRow = {
2970
+ id: string;
2971
+ label: string;
2972
+ groupId?: string;
2973
+ };
2974
+ type DbGanttGroup = {
2975
+ id: string;
2976
+ title: string;
2977
+ color?: string;
2978
+ };
2979
+ declare class DbGantt extends HTMLElement {
2980
+ private collapsedGroups;
2981
+ private dragState;
2982
+ private reorderState;
2983
+ private reorderDropIndex;
2984
+ private suppressRender;
2985
+ private didDrag;
2986
+ static get observedAttributes(): string[];
2987
+ get groups(): DbGanttGroup[];
2988
+ set groups(value: DbGanttGroup[] | string);
2989
+ get rows(): DbGanttRow[];
2990
+ set rows(value: DbGanttRow[] | string);
2991
+ get items(): DbGanttItem[];
2992
+ set items(value: DbGanttItem[] | string);
2993
+ connectedCallback(): void;
2994
+ disconnectedCallback(): void;
2995
+ attributeChangedCallback(): void;
2996
+ private parseJson;
2997
+ private getBool;
2998
+ private getNumber;
2999
+ private getOption;
3000
+ private getLocale;
3001
+ private getWeekdays;
3002
+ private getViewRange;
3003
+ private getTodayDate;
3004
+ private getDateColumns;
3005
+ private getVisibleRows;
3006
+ private getMonthSegments;
3007
+ private getInitials;
3008
+ private updateItem;
3009
+ private emitItemsChange;
3010
+ private applyBarGeometry;
3011
+ private handlePointerMove;
3012
+ private handlePointerUp;
3013
+ private startBarDrag;
3014
+ private canReorder;
3015
+ private createDragHandle;
3016
+ private getGroupIndex;
3017
+ private getRowScope;
3018
+ private getRowIndexInScope;
3019
+ private getReorderTargets;
3020
+ private startReorderDrag;
3021
+ private updateReorderDropTarget;
3022
+ private clearReorderIndicators;
3023
+ private finishReorderDrag;
3024
+ private emitStructureChange;
3025
+ private reorderGroups;
3026
+ private reorderRows;
3027
+ private createGroupBadge;
3028
+ private createGroupChevron;
3029
+ private createAssignee;
3030
+ private createStatusIcon;
3031
+ private deriveSummaryColor;
3032
+ private getGroupSummary;
3033
+ private applyBarTone;
3034
+ private createGroupSummaryBar;
3035
+ private createBar;
3036
+ private toggleGroup;
3037
+ private render;
3038
+ }
3039
+ declare global {
3040
+ interface HTMLElementTagNameMap {
3041
+ 'db-gantt': DbGantt;
3042
+ }
3043
+ }
3044
+
2852
3045
  declare class DbResizablePanels extends HTMLElement {
2853
3046
  private container?;
2854
3047
  private contentEl?;
@@ -3205,8 +3398,8 @@ interface FeatureAction {
3205
3398
  declare class DbSectionFeature extends HTMLElement {
3206
3399
  static get observedAttributes(): string[];
3207
3400
  private built;
3208
- private sectionEl?;
3209
- private featureWrapEl?;
3401
+ private innerEl?;
3402
+ private contentEl?;
3210
3403
  private badgeEl?;
3211
3404
  private headlineEl?;
3212
3405
  private subtitleEl?;
@@ -3251,9 +3444,7 @@ declare global {
3251
3444
  declare class DbSectionContact extends HTMLElement {
3252
3445
  static get observedAttributes(): string[];
3253
3446
  private built;
3254
- private sectionEl?;
3255
- private wrapEl?;
3256
- private contactWrapEl?;
3447
+ private innerEl?;
3257
3448
  private titleEl?;
3258
3449
  private descriptionEl?;
3259
3450
  private actionEl?;
@@ -3280,8 +3471,6 @@ interface DownloadStore {
3280
3471
  declare class DbSectionAppDownload extends HTMLElement {
3281
3472
  static get observedAttributes(): string[];
3282
3473
  private built;
3283
- private sectionEl?;
3284
- private wrapEl?;
3285
3474
  private innerEl?;
3286
3475
  private titleEl?;
3287
3476
  private descriptionEl?;
@@ -3300,6 +3489,157 @@ declare global {
3300
3489
  }
3301
3490
  }
3302
3491
 
3492
+ declare class DbSectionCta extends HTMLElement {
3493
+ static get observedAttributes(): string[];
3494
+ private built;
3495
+ private wrapEl?;
3496
+ private headerEl?;
3497
+ private badgeEl?;
3498
+ private headlineEl?;
3499
+ private subtitleEl?;
3500
+ private descriptionEl?;
3501
+ private actionsEl?;
3502
+ connectedCallback(): void;
3503
+ attributeChangedCallback(): void;
3504
+ private parseBadge;
3505
+ private parseButtons;
3506
+ private build;
3507
+ private updateUI;
3508
+ }
3509
+ declare global {
3510
+ interface HTMLElementTagNameMap {
3511
+ 'db-section-cta': DbSectionCta;
3512
+ }
3513
+ }
3514
+
3515
+ declare class DbSectionTestimonials extends HTMLElement {
3516
+ static get observedAttributes(): string[];
3517
+ private built;
3518
+ private carouselIndex;
3519
+ private innerEl?;
3520
+ private headerEl?;
3521
+ private contentEl?;
3522
+ private carouselViewport?;
3523
+ private carouselTrack?;
3524
+ private carouselIndicator?;
3525
+ private resizeObserver?;
3526
+ connectedCallback(): void;
3527
+ disconnectedCallback(): void;
3528
+ attributeChangedCallback(): void;
3529
+ private parseItems;
3530
+ private parseBadge;
3531
+ private buildHeader;
3532
+ private build;
3533
+ private createTestimonialEl;
3534
+ private updateHeader;
3535
+ private clampCarouselIndex;
3536
+ private updateCarouselTransform;
3537
+ private goToCarouselSlide;
3538
+ private renderGrid;
3539
+ private renderCarousel;
3540
+ private updateUI;
3541
+ }
3542
+ declare global {
3543
+ interface HTMLElementTagNameMap {
3544
+ 'db-section-testimonials': DbSectionTestimonials;
3545
+ }
3546
+ }
3547
+
3548
+ declare class DbSectionFeatureGrid extends HTMLElement {
3549
+ static get observedAttributes(): string[];
3550
+ private built;
3551
+ private innerEl?;
3552
+ private headerEl?;
3553
+ private gridEl?;
3554
+ connectedCallback(): void;
3555
+ attributeChangedCallback(): void;
3556
+ private parseItems;
3557
+ private parseBadge;
3558
+ private build;
3559
+ private updateUI;
3560
+ }
3561
+ declare global {
3562
+ interface HTMLElementTagNameMap {
3563
+ 'db-section-feature-grid': DbSectionFeatureGrid;
3564
+ }
3565
+ }
3566
+
3567
+ declare class DbSectionLogoCloud extends HTMLElement {
3568
+ static get observedAttributes(): string[];
3569
+ private built;
3570
+ private innerEl?;
3571
+ private headerEl?;
3572
+ private contentEl?;
3573
+ connectedCallback(): void;
3574
+ attributeChangedCallback(): void;
3575
+ private parseLogos;
3576
+ private parseBadge;
3577
+ private build;
3578
+ private updateUI;
3579
+ }
3580
+ declare global {
3581
+ interface HTMLElementTagNameMap {
3582
+ 'db-section-logo-cloud': DbSectionLogoCloud;
3583
+ }
3584
+ }
3585
+
3586
+ declare class DbSectionStats extends HTMLElement {
3587
+ static get observedAttributes(): string[];
3588
+ private built;
3589
+ private innerEl?;
3590
+ private headerEl?;
3591
+ private gridEl?;
3592
+ connectedCallback(): void;
3593
+ attributeChangedCallback(): void;
3594
+ private parseItems;
3595
+ private parseBadge;
3596
+ private build;
3597
+ private updateUI;
3598
+ }
3599
+ declare global {
3600
+ interface HTMLElementTagNameMap {
3601
+ 'db-section-stats': DbSectionStats;
3602
+ }
3603
+ }
3604
+
3605
+ declare class DbSectionFaq extends HTMLElement {
3606
+ static get observedAttributes(): string[];
3607
+ private built;
3608
+ private innerEl?;
3609
+ private headerEl?;
3610
+ private accordionEl?;
3611
+ connectedCallback(): void;
3612
+ attributeChangedCallback(): void;
3613
+ private parseItems;
3614
+ private parseBadge;
3615
+ private build;
3616
+ private updateUI;
3617
+ }
3618
+ declare global {
3619
+ interface HTMLElementTagNameMap {
3620
+ 'db-section-faq': DbSectionFaq;
3621
+ }
3622
+ }
3623
+
3624
+ declare class DbSectionPricing extends HTMLElement {
3625
+ static get observedAttributes(): string[];
3626
+ private built;
3627
+ private innerEl?;
3628
+ private headerEl?;
3629
+ private gridEl?;
3630
+ connectedCallback(): void;
3631
+ attributeChangedCallback(): void;
3632
+ private parsePlans;
3633
+ private parseBadge;
3634
+ private build;
3635
+ private updateUI;
3636
+ }
3637
+ declare global {
3638
+ interface HTMLElementTagNameMap {
3639
+ 'db-section-pricing': DbSectionPricing;
3640
+ }
3641
+ }
3642
+
3303
3643
  declare class DbMarquee extends HTMLElement {
3304
3644
  static get observedAttributes(): string[];
3305
3645
  private built;
@@ -3851,5 +4191,5 @@ interface DbConfirmOptions {
3851
4191
  /** 확인 대화상자를 띄우고, 확인 시 true / 취소(ESC·배경 포함) 시 false 로 resolve 합니다. */
3852
4192
  declare function confirm(options: DbConfirmOptions): Promise<boolean>;
3853
4193
 
3854
- export { DbAccordion, DbAdBanner, DbAlert, DbAnimationBackground, DbAnimationText, DbAppBadge, DbAudioPlayer, DbAvatar, DbBackdrop, DbBadge, DbBanner, DbBottomNavigation, DbBottomSheet, DbBreadcrumbs, DbButton, DbCalendar, DbCard, DbCarousel, DbCheckbox, DbChip, DbCodeBlock, DbColorPicker, DbConfirm, DbContainer, DbContextMenu, DbCountdown, DbCursorFollower, DbDatePicker, DbDivider, DbDrawer, DbDropdown, DbDropzone, DbEmptyState, DbFileUploader, DbFloatingActionButton, DbFooter, DbForm, DbGradient, DbGrid, DbGridBackground, DbGridItem, DbImage, DbImageList, DbImagePlaceholder, DbIndicator, DbInput, DbLabel, DbLightbox, DbList, DbLogo, DbLottie, DbMarkdownEditor, DbMarquee, DbMasonry, DbMenuItem, DbModal, DbNavbar, DbOnboardingModal, DbPageHeader, DbPagination, DbPopover, DbProgress, DbProgressStep, DbProgressbar, DbRadio, DbRandomGradient, DbRangeSlider, DbRating, DbReorder, DbResizablePanels, DbScrollArea, DbSearchBar, DbSection, DbSectionAppDownload, DbSectionContact, DbSectionFeature, DbSectionHero, DbSegmentControl, DbSelect, DbShare, DbSidebar, DbSkeleton, DbSpinner, DbSplitView, DbStack, DbStat, DbStepper, DbTable, DbTabs, DbTestimonial, DbTextarea, DbTimePicker, DbTimeline, DbToast, DbToggle, DbToolbar, DbTooltip, DbTopBanner, DbTutorial, DbVideoPlayer, DbYouTubePlayer, confirm, confirm as dbConfirm, toast as dbToast, showToast, toast };
3855
- export type { CalendarEventData, CalendarEventType, DbAlertAction, DbBannerAction, DbBottomNavigationItem, DbConfirmOptions, DbConfirmVariant, DbFooterCompanyInfo, DbFooterFamilySite, DbFooterLink, DbFooterLinkColumn, DbFooterSocialLink, DbFormFieldData, DbImageListItem, DbLightboxImage, DbNavbarItem, DbNavbarUserProfile, DbPageHeaderTabItem, DbSharePlatform, DbShareVariant, DbSidebarItem, DbSidebarSection, DbSidebarUserProfile, DbStatChange, DbTimelineItem, DbToastApi, DbToastHandle, DbToastOptions, DbToastPosition, DbToastStatus };
4194
+ export { DbAccordion, DbAdBanner, DbAlert, DbAnimationBackground, DbAnimationText, DbAppBadge, DbAudioPlayer, DbAvatar, DbBackdrop, DbBadge, DbBanner, DbBottomNavigation, DbBottomSheet, DbBreadcrumbs, DbButton, DbCalendar, DbCard, DbCarousel, DbCheckbox, DbChip, DbCodeBlock, DbColorPicker, DbConfirm, DbContainer, DbContextMenu, DbCountdown, DbCursorFollower, DbDatePicker, DbDivider, DbDrawer, DbDropdown, DbDropzone, 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, DbPageHeader, DbPagination, 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, DbVideoPlayer, DbYouTubePlayer, confirm, confirm as dbConfirm, toast as dbToast, showToast, toast };
4195
+ export type { CalendarEventData, CalendarEventType, DbAlertAction, DbBannerAction, DbBottomNavigationItem, 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, DbSidebarSection, DbSidebarUserProfile, DbStatChange, DbTimelineItem, DbToastApi, DbToastHandle, DbToastOptions, DbToastPosition, DbToastStatus };