@designbasekorea/ui-wc 0.1.0 → 0.1.4
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/README.md +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +93 -9
- package/dist/index.esm.js +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.d.ts +130 -10
- package/dist/react/index.esm.js +1 -1
- package/package.json +5 -2
- package/dist/chunks/prism-10c2500e.js +0 -1
- package/dist/react/chunks/prism-0e153489.js +0 -1
- /package/dist/chunks/{lottie-aaf17dfb.js → lottie-815c92e9.js} +0 -0
package/dist/react/index.d.ts
CHANGED
|
@@ -32,6 +32,9 @@ declare class DbButton extends HTMLElement {
|
|
|
32
32
|
attributeChangedCallback(): void;
|
|
33
33
|
private handleClick;
|
|
34
34
|
private handleKeyDown;
|
|
35
|
+
private handleKeyUp;
|
|
36
|
+
private handlePointerDown;
|
|
37
|
+
private handlePointerUp;
|
|
35
38
|
private syncAttributes;
|
|
36
39
|
private getIconSize;
|
|
37
40
|
private resolveIconName;
|
|
@@ -413,7 +416,6 @@ declare class DbDropdown extends HTMLElement {
|
|
|
413
416
|
attributeChangedCallback(name: string): void;
|
|
414
417
|
private resolvedSize;
|
|
415
418
|
private resolvedPlacement;
|
|
416
|
-
private triggerButtonIconSize;
|
|
417
419
|
private menuItemIconSize;
|
|
418
420
|
private triggerLabel;
|
|
419
421
|
private enabledItems;
|
|
@@ -655,6 +657,7 @@ declare class DbTextarea extends HTMLElement {
|
|
|
655
657
|
private get characterCountPosition();
|
|
656
658
|
private build;
|
|
657
659
|
private handleInput;
|
|
660
|
+
private handleChange;
|
|
658
661
|
private syncState;
|
|
659
662
|
private updateCharacterCount;
|
|
660
663
|
private escape;
|
|
@@ -707,6 +710,9 @@ declare class DbPagination extends HTMLElement {
|
|
|
707
710
|
attributeChangedCallback(): void;
|
|
708
711
|
private iconSize;
|
|
709
712
|
private render;
|
|
713
|
+
private getPageSizeOptions;
|
|
714
|
+
private getTotalLabel;
|
|
715
|
+
private createPageSizeSelector;
|
|
710
716
|
private getPageNumbers;
|
|
711
717
|
private createPageButton;
|
|
712
718
|
private createIconButton;
|
|
@@ -1788,12 +1794,18 @@ declare class DbSection extends HTMLElement {
|
|
|
1788
1794
|
private contentEl?;
|
|
1789
1795
|
private footerEl?;
|
|
1790
1796
|
private actionsHostEl?;
|
|
1797
|
+
private tabsEl?;
|
|
1791
1798
|
private contentId;
|
|
1792
1799
|
private internalExpanded;
|
|
1800
|
+
private internalTabId;
|
|
1793
1801
|
private observer?;
|
|
1794
1802
|
connectedCallback(): void;
|
|
1795
1803
|
disconnectedCallback(): void;
|
|
1796
1804
|
attributeChangedCallback(name: string): void;
|
|
1805
|
+
private syncDefaultTab;
|
|
1806
|
+
private parseTabs;
|
|
1807
|
+
private getActiveTabId;
|
|
1808
|
+
private hasHeaderTabs;
|
|
1797
1809
|
private isCollapsible;
|
|
1798
1810
|
private isExpanded;
|
|
1799
1811
|
private isUserNode;
|
|
@@ -1805,6 +1817,7 @@ declare class DbSection extends HTMLElement {
|
|
|
1805
1817
|
private createTitleArea;
|
|
1806
1818
|
private createChevron;
|
|
1807
1819
|
private handleToggle;
|
|
1820
|
+
private handleTabChange;
|
|
1808
1821
|
private renderHeader;
|
|
1809
1822
|
private syncHostClasses;
|
|
1810
1823
|
private syncCollapsibleState;
|
|
@@ -2245,14 +2258,26 @@ declare global {
|
|
|
2245
2258
|
|
|
2246
2259
|
declare class DbRating extends HTMLElement {
|
|
2247
2260
|
private hoverValue;
|
|
2261
|
+
private starsEl;
|
|
2248
2262
|
static get observedAttributes(): string[];
|
|
2249
2263
|
connectedCallback(): void;
|
|
2264
|
+
disconnectedCallback(): void;
|
|
2250
2265
|
attributeChangedCallback(): void;
|
|
2251
2266
|
private getNumberAttr;
|
|
2252
2267
|
private getBooleanAttr;
|
|
2253
2268
|
private getOption;
|
|
2269
|
+
private normalizeSize;
|
|
2270
|
+
private getStarIconSize;
|
|
2271
|
+
private supportsHalfSteps;
|
|
2272
|
+
private isInteractive;
|
|
2273
|
+
private getStarFill;
|
|
2274
|
+
private getPointerValue;
|
|
2254
2275
|
private formatRating;
|
|
2255
|
-
private
|
|
2276
|
+
private updateStarElement;
|
|
2277
|
+
private refreshStars;
|
|
2278
|
+
private handlePointerMove;
|
|
2279
|
+
private handlePointerLeave;
|
|
2280
|
+
private handleClick;
|
|
2256
2281
|
private render;
|
|
2257
2282
|
}
|
|
2258
2283
|
declare global {
|
|
@@ -2347,17 +2372,74 @@ declare class DbColorPicker extends HTMLElement {
|
|
|
2347
2372
|
private a;
|
|
2348
2373
|
private open;
|
|
2349
2374
|
private format;
|
|
2375
|
+
private colorInput;
|
|
2376
|
+
private alphaInput;
|
|
2377
|
+
private isCopied;
|
|
2378
|
+
private tempColor;
|
|
2379
|
+
private dragging;
|
|
2380
|
+
private mounted;
|
|
2381
|
+
private copiedTimer;
|
|
2382
|
+
private debounceTimer;
|
|
2383
|
+
private lastEmittedHex;
|
|
2384
|
+
private suppressNextValueSync;
|
|
2385
|
+
private didMount;
|
|
2386
|
+
private triggerInputFocused;
|
|
2387
|
+
private panelInputFocused;
|
|
2388
|
+
private panelAlphaInputFocused;
|
|
2389
|
+
private triggerEl?;
|
|
2390
|
+
private colorBoxEl?;
|
|
2391
|
+
private triggerInputEl?;
|
|
2392
|
+
private triggerCopyBtn?;
|
|
2393
|
+
private toggleBtn?;
|
|
2394
|
+
private dropdownEl?;
|
|
2395
|
+
private colorFieldEl?;
|
|
2396
|
+
private colorPointerEl?;
|
|
2397
|
+
private hueSliderEl?;
|
|
2398
|
+
private alphaSliderEl?;
|
|
2399
|
+
private alphaSliderWrapEl?;
|
|
2400
|
+
private eyedropperBtnEl?;
|
|
2401
|
+
private formatSelectEl?;
|
|
2402
|
+
private panelValueInputEl?;
|
|
2403
|
+
private panelAlphaWrapEl?;
|
|
2404
|
+
private panelAlphaInputEl?;
|
|
2405
|
+
private panelCopyBtnEl?;
|
|
2406
|
+
private modalEl?;
|
|
2407
|
+
private modalBodyEl?;
|
|
2408
|
+
private selectorEl?;
|
|
2350
2409
|
static get observedAttributes(): string[];
|
|
2351
2410
|
connectedCallback(): void;
|
|
2352
2411
|
disconnectedCallback(): void;
|
|
2353
2412
|
attributeChangedCallback(name: string): void;
|
|
2354
|
-
private handleOutsideClick;
|
|
2355
2413
|
private getBool;
|
|
2356
2414
|
private getOption;
|
|
2357
|
-
private
|
|
2358
|
-
private
|
|
2359
|
-
private
|
|
2360
|
-
private
|
|
2415
|
+
private getIconSize;
|
|
2416
|
+
private getRgb;
|
|
2417
|
+
private getHex;
|
|
2418
|
+
private getHsl;
|
|
2419
|
+
private getUiFormatted;
|
|
2420
|
+
private getOutward;
|
|
2421
|
+
private syncFromValueAttr;
|
|
2422
|
+
private actuallyEmit;
|
|
2423
|
+
private scheduleEmit;
|
|
2424
|
+
private onColorStateChanged;
|
|
2425
|
+
private updateFromArea;
|
|
2426
|
+
private getInputValue;
|
|
2427
|
+
private setInputValue;
|
|
2428
|
+
private getPanelControlSize;
|
|
2429
|
+
private commitColorInput;
|
|
2430
|
+
private commitAlphaInput;
|
|
2431
|
+
private onCopy;
|
|
2432
|
+
private onEyedrop;
|
|
2433
|
+
private handleOutsideClick;
|
|
2434
|
+
private handleDocumentMouseMove;
|
|
2435
|
+
private handleDocumentMouseUp;
|
|
2436
|
+
private toggleOpen;
|
|
2437
|
+
private handleModalCancel;
|
|
2438
|
+
private handleModalApply;
|
|
2439
|
+
private mount;
|
|
2440
|
+
private updateCopyButtons;
|
|
2441
|
+
private updateVisuals;
|
|
2442
|
+
private update;
|
|
2361
2443
|
}
|
|
2362
2444
|
declare global {
|
|
2363
2445
|
interface HTMLElementTagNameMap {
|
|
@@ -2618,7 +2700,7 @@ declare class DbCodeBlock extends HTMLElement {
|
|
|
2618
2700
|
private toCssSize;
|
|
2619
2701
|
private handleCopy;
|
|
2620
2702
|
private render;
|
|
2621
|
-
private
|
|
2703
|
+
private renderNow;
|
|
2622
2704
|
}
|
|
2623
2705
|
declare global {
|
|
2624
2706
|
interface HTMLElementTagNameMap {
|
|
@@ -3987,6 +4069,20 @@ type InputProps = WebComponentProps & {
|
|
|
3987
4069
|
value: string;
|
|
3988
4070
|
}>;
|
|
3989
4071
|
};
|
|
4072
|
+
type TextareaProps = WebComponentProps & {
|
|
4073
|
+
onChange?: DbEventHandler<{
|
|
4074
|
+
value: string;
|
|
4075
|
+
}>;
|
|
4076
|
+
onInput?: DbEventHandler<{
|
|
4077
|
+
value: string;
|
|
4078
|
+
}>;
|
|
4079
|
+
onDbInput?: DbEventHandler<{
|
|
4080
|
+
value: string;
|
|
4081
|
+
}>;
|
|
4082
|
+
onDbChange?: DbEventHandler<{
|
|
4083
|
+
value: string;
|
|
4084
|
+
}>;
|
|
4085
|
+
};
|
|
3990
4086
|
type ToggleProps = WebComponentProps & {
|
|
3991
4087
|
onChange?: DbEventHandler<{
|
|
3992
4088
|
checked: boolean;
|
|
@@ -4349,12 +4445,25 @@ type SectionProps = WebComponentProps & {
|
|
|
4349
4445
|
fullWidth?: boolean;
|
|
4350
4446
|
fullHeight?: boolean;
|
|
4351
4447
|
overflowVisible?: boolean;
|
|
4448
|
+
tabs?: Array<{
|
|
4449
|
+
id: string;
|
|
4450
|
+
label: string;
|
|
4451
|
+
disabled?: boolean;
|
|
4452
|
+
}> | string;
|
|
4453
|
+
selectedTabId?: string;
|
|
4454
|
+
defaultSelectedTabId?: string;
|
|
4352
4455
|
onExpandedChange?: DbEventHandler<{
|
|
4353
4456
|
expanded: boolean;
|
|
4354
4457
|
}>;
|
|
4355
4458
|
onDbExpandedChange?: DbEventHandler<{
|
|
4356
4459
|
expanded: boolean;
|
|
4357
4460
|
}>;
|
|
4461
|
+
onTabChange?: DbEventHandler<{
|
|
4462
|
+
tabId: string;
|
|
4463
|
+
}>;
|
|
4464
|
+
onDbTabChange?: DbEventHandler<{
|
|
4465
|
+
tabId: string;
|
|
4466
|
+
}>;
|
|
4358
4467
|
};
|
|
4359
4468
|
type FloatingActionButtonProps = WebComponentProps & {
|
|
4360
4469
|
size?: 's' | 'm' | 'l';
|
|
@@ -5082,11 +5191,16 @@ type BreadcrumbsProps = WebComponentProps & {
|
|
|
5082
5191
|
type PaginationProps = WebComponentProps & {
|
|
5083
5192
|
currentPage?: number;
|
|
5084
5193
|
totalPages?: number;
|
|
5194
|
+
totalItems?: number;
|
|
5195
|
+
pageSize?: number;
|
|
5196
|
+
pageSizeOptions?: number[] | string;
|
|
5085
5197
|
size?: 's' | 'm' | 'l';
|
|
5086
5198
|
variant?: 'default' | 'outlined' | 'minimal';
|
|
5087
5199
|
alignment?: 'left' | 'center' | 'right';
|
|
5088
5200
|
showFirstLast?: boolean;
|
|
5089
5201
|
showPreviousNext?: boolean;
|
|
5202
|
+
showPageSizeSelector?: boolean;
|
|
5203
|
+
showTotal?: boolean;
|
|
5090
5204
|
siblingCount?: number;
|
|
5091
5205
|
boundaryCount?: number;
|
|
5092
5206
|
disabled?: boolean;
|
|
@@ -5100,6 +5214,12 @@ type PaginationProps = WebComponentProps & {
|
|
|
5100
5214
|
onDbChange?: DbEventHandler<{
|
|
5101
5215
|
page: number;
|
|
5102
5216
|
}>;
|
|
5217
|
+
onPageSizeChange?: DbEventHandler<{
|
|
5218
|
+
pageSize: number;
|
|
5219
|
+
}>;
|
|
5220
|
+
onDbPageSizeChange?: DbEventHandler<{
|
|
5221
|
+
pageSize: number;
|
|
5222
|
+
}>;
|
|
5103
5223
|
};
|
|
5104
5224
|
type ListItemConfig = {
|
|
5105
5225
|
id: string;
|
|
@@ -6305,7 +6425,7 @@ declare const Stack: react.ForwardRefExoticComponent<Omit<WebComponentProps, "re
|
|
|
6305
6425
|
declare const Stepper: react.ForwardRefExoticComponent<Omit<StepperProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
6306
6426
|
declare const Table: react.ForwardRefExoticComponent<Omit<TableProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
6307
6427
|
declare const Tabs: react.ForwardRefExoticComponent<Omit<TabsProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
6308
|
-
declare const Textarea: react.ForwardRefExoticComponent<Omit<
|
|
6428
|
+
declare const Textarea: react.ForwardRefExoticComponent<Omit<TextareaProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
6309
6429
|
declare const Toast: react.ForwardRefExoticComponent<Omit<ToastProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
6310
6430
|
declare const Toggle: react.ForwardRefExoticComponent<Omit<ToggleProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
6311
6431
|
declare const Toolbar: react.ForwardRefExoticComponent<Omit<WebComponentProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
@@ -6352,4 +6472,4 @@ declare const TimePicker: react.ForwardRefExoticComponent<Omit<TimePickerProps,
|
|
|
6352
6472
|
declare const Calendar: react.ForwardRefExoticComponent<Omit<CalendarProps, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
6353
6473
|
|
|
6354
6474
|
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, Form, Gradient, Grid, GridItem, Image, ImageList, ImagePlaceholder, Indicator, Input, 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, SectionFeature, SectionHero, 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 };
|
|
6355
|
-
export type { AccordionItemConfig, AccordionProps, AdBannerProps, AlertAction, AlertProps, AnimationBackgroundProps, AnimationTextProps, AppBadgeProps, AudioPlayerProps, AvatarProps, BackdropProps, BadgeProps, BannerAction, BannerProps, BottomNavigationItem, BottomNavigationProps, BottomSheetProps, BreadcrumbItemConfig, 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, FormFieldData, FormProps, GradientColor, GradientProps, ImageListItem, ImageListProps, ImagePlaceholderProps, ImageProps, IndicatorProps, InputProps, LabelProps, LightboxImage, LightboxProps, ListItemConfig, ListProps, LogoProps, LottieProps, MarkdownEditorProps, 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, SectionContactAction, SectionContactProps, SectionFeatureAction, SectionFeatureBadge, SectionFeatureProps, SectionHeroButton, SectionHeroProps, SectionProps, SegmentControlProps, SelectProps, SelectionProps, SharePlatform, ShareProps, SidebarItem, SidebarProps, SidebarSection, SidebarUserProfile, SkeletonProps, SpinnerProps, SplitViewProps, StatChange, StatProps, StepperProps, TabItemConfig, TableColumn, TableProps, TabsProps, TestimonialProps, TimePickerProps, TimelineItem, TimelineProps, ToastProps, ToggleProps, TooltipProps, TopBannerProps, TutorialProps, TutorialStep, UseContextMenuReturn, VideoPlayerProps, WebComponentProps, YouTubePlayerProps };
|
|
6475
|
+
export type { AccordionItemConfig, AccordionProps, AdBannerProps, AlertAction, AlertProps, AnimationBackgroundProps, AnimationTextProps, AppBadgeProps, AudioPlayerProps, AvatarProps, BackdropProps, BadgeProps, BannerAction, BannerProps, BottomNavigationItem, BottomNavigationProps, BottomSheetProps, BreadcrumbItemConfig, 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, FormFieldData, FormProps, GradientColor, GradientProps, ImageListItem, ImageListProps, ImagePlaceholderProps, ImageProps, IndicatorProps, InputProps, LabelProps, LightboxImage, LightboxProps, ListItemConfig, ListProps, LogoProps, LottieProps, MarkdownEditorProps, 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, SectionContactAction, SectionContactProps, SectionFeatureAction, SectionFeatureBadge, SectionFeatureProps, SectionHeroButton, SectionHeroProps, SectionProps, 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 };
|