@designbasekorea/ui-wc 0.4.0 → 0.5.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.
@@ -1211,9 +1211,10 @@ declare class DbMenuItem extends HTMLElement {
1211
1211
  get expanded(): boolean;
1212
1212
  set expanded(value: boolean);
1213
1213
  connectedCallback(): void;
1214
- attributeChangedCallback(): void;
1215
1214
  private iconSize;
1216
1215
  private render;
1216
+ attributeChangedCallback(name: string): void;
1217
+ private syncExpandedState;
1217
1218
  }
1218
1219
  declare global {
1219
1220
  interface HTMLElementTagNameMap {
@@ -1667,9 +1668,26 @@ interface DbSidebarUserProfile {
1667
1668
  email?: string;
1668
1669
  avatar?: string;
1669
1670
  }
1671
+ interface DbSidebarProject {
1672
+ id: string;
1673
+ label: string;
1674
+ icon?: string;
1675
+ color?: string;
1676
+ href?: string;
1677
+ }
1678
+ interface DbSidebarPromoBanner {
1679
+ title: string;
1680
+ description?: string;
1681
+ ctaLabel?: string;
1682
+ ctaHref?: string;
1683
+ icon?: string;
1684
+ }
1670
1685
  declare class DbSidebar extends HTMLElement {
1671
1686
  private expandedItems;
1672
1687
  private userMenuOpen;
1688
+ private projectMenuOpen;
1689
+ private flyoutItemId;
1690
+ private flyoutCloseTimer;
1673
1691
  private outsideHandler;
1674
1692
  static get observedAttributes(): string[];
1675
1693
  connectedCallback(): void;
@@ -1684,17 +1702,52 @@ declare class DbSidebar extends HTMLElement {
1684
1702
  set userMenuItems(value: DbSidebarItem[] | string);
1685
1703
  get userProfile(): DbSidebarUserProfile | null;
1686
1704
  set userProfile(value: DbSidebarUserProfile | string | null);
1705
+ get projects(): DbSidebarProject[];
1706
+ set projects(value: DbSidebarProject[] | string);
1707
+ get selectedProjectId(): string;
1708
+ set selectedProjectId(value: string);
1709
+ get projectManageLabel(): string;
1710
+ set projectManageLabel(value: string);
1711
+ get projectManageHref(): string;
1712
+ set projectManageHref(value: string);
1713
+ get projectSectionLabel(): string;
1714
+ set projectSectionLabel(value: string);
1715
+ get bottomItems(): DbSidebarItem[];
1716
+ set bottomItems(value: DbSidebarItem[] | string);
1717
+ get bottomSections(): DbSidebarSection[];
1718
+ set bottomSections(value: DbSidebarSection[] | string);
1719
+ get promoBanner(): DbSidebarPromoBanner | null;
1720
+ set promoBanner(value: DbSidebarPromoBanner | string | null);
1687
1721
  private parseSections;
1688
1722
  private parseUserMenuItems;
1689
1723
  private parseUserProfile;
1724
+ private parseProjects;
1725
+ private parseBottomItems;
1726
+ private parseBottomSections;
1727
+ private parsePromoBanner;
1728
+ private getSelectedProject;
1690
1729
  private bindOutsideClick;
1730
+ private closeOverlayMenus;
1731
+ private syncExclusiveAccordion;
1691
1732
  private unbindOutsideClick;
1733
+ private cancelFlyoutClose;
1734
+ private showFlyout;
1735
+ private scheduleFlyoutClose;
1692
1736
  private syncHostClasses;
1693
1737
  private dispatchItemClick;
1694
1738
  private dispatchUserMenuItemClick;
1695
- private updateUserMenuVisibility;
1739
+ private dispatchProjectChange;
1740
+ private dispatchProjectManage;
1741
+ private dispatchPromoCtaClick;
1742
+ private createProjectAvatar;
1743
+ private createProjectSelector;
1744
+ private createFlyout;
1696
1745
  private createSidebarMenuItem;
1746
+ private renderSectionList;
1697
1747
  private renderNav;
1748
+ private renderBottomNav;
1749
+ private createUserDropdown;
1750
+ private createPromoBanner;
1698
1751
  private render;
1699
1752
  }
1700
1753
  declare global {
@@ -5640,12 +5693,34 @@ type SidebarUserProfile = {
5640
5693
  email?: string;
5641
5694
  avatar?: string;
5642
5695
  };
5696
+ type SidebarProject = {
5697
+ id: string;
5698
+ label: string;
5699
+ icon?: string;
5700
+ color?: string;
5701
+ href?: string;
5702
+ };
5703
+ type SidebarPromoBanner = {
5704
+ title: string;
5705
+ description?: string;
5706
+ ctaLabel?: string;
5707
+ ctaHref?: string;
5708
+ icon?: string;
5709
+ };
5643
5710
  type SidebarProps = WebComponentProps & {
5644
5711
  items?: SidebarItem[] | string;
5645
5712
  sections?: SidebarSection[] | string;
5646
5713
  userMenuItems?: SidebarItem[] | string;
5647
5714
  userProfile?: SidebarUserProfile | string;
5648
5715
  defaultExpandedIds?: string[] | string;
5716
+ projects?: SidebarProject[] | string;
5717
+ selectedProjectId?: string;
5718
+ projectManageLabel?: string;
5719
+ projectManageHref?: string;
5720
+ projectSectionLabel?: string;
5721
+ bottomItems?: SidebarItem[] | string;
5722
+ bottomSections?: SidebarSection[] | string;
5723
+ promoBanner?: SidebarPromoBanner | string;
5649
5724
  size?: 's' | 'm' | 'l';
5650
5725
  variant?: 'default' | 'dark' | 'light';
5651
5726
  position?: 'left' | 'right';
@@ -7787,4 +7862,4 @@ declare const TimePicker: react.ForwardRefExoticComponent<Omit<TimePickerProps,
7787
7862
  declare const Calendar: react.ForwardRefExoticComponent<Omit<CalendarProps, "ref"> & react.RefAttributes<HTMLElement>>;
7788
7863
 
7789
7864
  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, Footer, Form, Gantt, Gradient, Grid, GridBackground, GridItem, Image, ImageList, ImagePlaceholder, Indicator, Input, Kanban, 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, SectionCta, SectionFaq, SectionFeature, SectionFeatureGrid, SectionHero, SectionLogoCloud, SectionPricing, SectionStats, SectionTestimonials, 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 };
7790
- export type { AccordionItemConfig, AccordionProps, AdBannerProps, AlertAction, AlertProps, AnimationBackgroundProps, AnimationTextProps, AppBadgeProps, AudioPlayerProps, AvatarProps, BackdropProps, BadgeProps, BannerAction, BannerProps, BottomNavigationItem, BottomNavigationProps, BottomSheetProps, BreadcrumbItemConfig, BreadcrumbMenuItemConfig, 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, FooterCompanyInfo, FooterFamilySite, FooterLink, FooterLinkColumn, FooterProps, FooterSocialLink, FormFieldData, FormProps, GanttAssignee, GanttGroup, GanttItem, GanttProps, GanttRow, GradientColor, GradientProps, GradientScheme, GradientTone, GridBackgroundProps, ImageListItem, ImageListProps, ImagePlaceholderProps, ImageProps, IndicatorProps, InputProps, KanbanAssignee, KanbanCard, KanbanColumn, KanbanProps, KanbanTag, LabelProps, LightboxImage, LightboxProps, ListItemConfig, ListProps, LogoProps, LottieProps, MarkdownEditorProps, MarqueeImageItem, 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, SectionBlockBadge, SectionContactAction, SectionContactProps, SectionCtaButton, SectionCtaProps, SectionFaqItem, SectionFaqProps, SectionFeatureAction, SectionFeatureBadge, SectionFeatureGridItem, SectionFeatureGridProps, SectionFeatureProps, SectionHeroButton, SectionHeroProps, SectionLogoCloudItem, SectionLogoCloudProps, SectionPricingCta, SectionPricingPlan, SectionPricingProps, SectionProps, SectionStatItem, SectionStatsProps, SectionTestimonialItem, SectionTestimonialsProps, 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 };
7865
+ export type { AccordionItemConfig, AccordionProps, AdBannerProps, AlertAction, AlertProps, AnimationBackgroundProps, AnimationTextProps, AppBadgeProps, AudioPlayerProps, AvatarProps, BackdropProps, BadgeProps, BannerAction, BannerProps, BottomNavigationItem, BottomNavigationProps, BottomSheetProps, BreadcrumbItemConfig, BreadcrumbMenuItemConfig, 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, FooterCompanyInfo, FooterFamilySite, FooterLink, FooterLinkColumn, FooterProps, FooterSocialLink, FormFieldData, FormProps, GanttAssignee, GanttGroup, GanttItem, GanttProps, GanttRow, GradientColor, GradientProps, GradientScheme, GradientTone, GridBackgroundProps, ImageListItem, ImageListProps, ImagePlaceholderProps, ImageProps, IndicatorProps, InputProps, KanbanAssignee, KanbanCard, KanbanColumn, KanbanProps, KanbanTag, LabelProps, LightboxImage, LightboxProps, ListItemConfig, ListProps, LogoProps, LottieProps, MarkdownEditorProps, MarqueeImageItem, 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, SectionBlockBadge, SectionContactAction, SectionContactProps, SectionCtaButton, SectionCtaProps, SectionFaqItem, SectionFaqProps, SectionFeatureAction, SectionFeatureBadge, SectionFeatureGridItem, SectionFeatureGridProps, SectionFeatureProps, SectionHeroButton, SectionHeroProps, SectionLogoCloudItem, SectionLogoCloudProps, SectionPricingCta, SectionPricingPlan, SectionPricingProps, SectionProps, SectionStatItem, SectionStatsProps, SectionTestimonialItem, SectionTestimonialsProps, SegmentControlProps, SelectProps, SelectionProps, SharePlatform, ShareProps, SidebarItem, SidebarProject, SidebarPromoBanner, 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 };