@designbasekorea/ui-wc 0.4.0 → 0.5.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/dist/esm/components/db-menu-item.d.ts +2 -1
- package/dist/esm/components/db-menu-item.js +1 -1
- package/dist/esm/components/db-page-header.d.ts +2 -0
- package/dist/esm/components/db-page-header.js +1 -1
- package/dist/esm/components/db-sidebar.d.ts +54 -2
- package/dist/esm/components/db-sidebar.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +58 -3
- package/dist/index.esm.js +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.d.ts +80 -3
- package/dist/react/index.esm.js +1 -1
- package/package.json +1 -1
- /package/dist/chunks/{lottie-3b3dac01.js → lottie-6d5d4f33.js} +0 -0
package/dist/react/index.d.ts
CHANGED
|
@@ -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
|
|
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 {
|
|
@@ -2037,6 +2090,8 @@ declare class DbPageHeader extends HTMLElement {
|
|
|
2037
2090
|
private handleBack;
|
|
2038
2091
|
private handleTabChange;
|
|
2039
2092
|
private collectActions;
|
|
2093
|
+
private collectMeta;
|
|
2094
|
+
private renderMinimalAside;
|
|
2040
2095
|
private collectDescriptionSlot;
|
|
2041
2096
|
private renderTitleBlock;
|
|
2042
2097
|
private render;
|
|
@@ -5640,12 +5695,34 @@ type SidebarUserProfile = {
|
|
|
5640
5695
|
email?: string;
|
|
5641
5696
|
avatar?: string;
|
|
5642
5697
|
};
|
|
5698
|
+
type SidebarProject = {
|
|
5699
|
+
id: string;
|
|
5700
|
+
label: string;
|
|
5701
|
+
icon?: string;
|
|
5702
|
+
color?: string;
|
|
5703
|
+
href?: string;
|
|
5704
|
+
};
|
|
5705
|
+
type SidebarPromoBanner = {
|
|
5706
|
+
title: string;
|
|
5707
|
+
description?: string;
|
|
5708
|
+
ctaLabel?: string;
|
|
5709
|
+
ctaHref?: string;
|
|
5710
|
+
icon?: string;
|
|
5711
|
+
};
|
|
5643
5712
|
type SidebarProps = WebComponentProps & {
|
|
5644
5713
|
items?: SidebarItem[] | string;
|
|
5645
5714
|
sections?: SidebarSection[] | string;
|
|
5646
5715
|
userMenuItems?: SidebarItem[] | string;
|
|
5647
5716
|
userProfile?: SidebarUserProfile | string;
|
|
5648
5717
|
defaultExpandedIds?: string[] | string;
|
|
5718
|
+
projects?: SidebarProject[] | string;
|
|
5719
|
+
selectedProjectId?: string;
|
|
5720
|
+
projectManageLabel?: string;
|
|
5721
|
+
projectManageHref?: string;
|
|
5722
|
+
projectSectionLabel?: string;
|
|
5723
|
+
bottomItems?: SidebarItem[] | string;
|
|
5724
|
+
bottomSections?: SidebarSection[] | string;
|
|
5725
|
+
promoBanner?: SidebarPromoBanner | string;
|
|
5649
5726
|
size?: 's' | 'm' | 'l';
|
|
5650
5727
|
variant?: 'default' | 'dark' | 'light';
|
|
5651
5728
|
position?: 'left' | 'right';
|
|
@@ -7787,4 +7864,4 @@ declare const TimePicker: react.ForwardRefExoticComponent<Omit<TimePickerProps,
|
|
|
7787
7864
|
declare const Calendar: react.ForwardRefExoticComponent<Omit<CalendarProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
7788
7865
|
|
|
7789
7866
|
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 };
|
|
7867
|
+
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 };
|