elseware-ui 2.30.1 → 2.31.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.
- package/dist/index.css +1688 -501
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +122 -60
- package/dist/index.d.ts +122 -60
- package/dist/index.js +735 -377
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +732 -377
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -32,10 +32,10 @@ type Size$1 = "xs" | "sm" | "md" | "lg" | "xl";
|
|
|
32
32
|
type Appearance = "solid" | "lite" | "ghost";
|
|
33
33
|
type TextDecoration = "underline" | "overline" | "lineThrough" | "noUnderline";
|
|
34
34
|
type HyperRefTarget = "blank" | "self" | "parent" | "top";
|
|
35
|
-
type
|
|
36
|
-
type
|
|
37
|
-
type CardinalPosition =
|
|
38
|
-
type CornerPosition = `${
|
|
35
|
+
type VerticalPosition = "top" | "bottom";
|
|
36
|
+
type HorizontalPosition = "left" | "right";
|
|
37
|
+
type CardinalPosition = VerticalPosition | HorizontalPosition;
|
|
38
|
+
type CornerPosition = `${VerticalPosition}-${HorizontalPosition}`;
|
|
39
39
|
type OctilePosition = CardinalPosition | CornerPosition;
|
|
40
40
|
type TitleBannerLevel = 1 | 2;
|
|
41
41
|
type ListBulletType = "dot" | "diamond" | "number" | "none";
|
|
@@ -48,26 +48,27 @@ interface AvatarProps extends BaseComponentProps {
|
|
|
48
48
|
alt?: string;
|
|
49
49
|
icon?: ReactNode;
|
|
50
50
|
variant?: Variant$1;
|
|
51
|
+
appearance?: Appearance;
|
|
51
52
|
shape?: Shape$1;
|
|
52
53
|
size?: Size$1;
|
|
53
54
|
src?: string;
|
|
54
|
-
borderVariant?: boolean;
|
|
55
55
|
children?: ReactNode;
|
|
56
56
|
}
|
|
57
|
-
declare const Avatar: ({ alt, icon, children, variant, shape, size, src,
|
|
57
|
+
declare const Avatar: ({ alt, icon, children, variant, appearance, shape, size, src, className, ...rest }: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
58
58
|
|
|
59
59
|
interface BadgeProps extends BaseComponentProps {
|
|
60
60
|
offset?: [number, number];
|
|
61
61
|
dot?: boolean;
|
|
62
62
|
count?: number;
|
|
63
63
|
variant?: Variant$1;
|
|
64
|
+
appearance?: Appearance;
|
|
64
65
|
shape?: Shape$1;
|
|
65
66
|
size?: Size$1;
|
|
66
67
|
showZero?: boolean;
|
|
67
68
|
position?: OctilePosition;
|
|
68
69
|
children?: ReactNode;
|
|
69
70
|
}
|
|
70
|
-
declare const Badge: ({ children, offset, dot, count, variant, shape, size, showZero, position, className, ...rest }: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
71
|
+
declare const Badge: ({ children, offset, dot, count, variant, appearance, shape, size, showZero, position, className, ...rest }: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
71
72
|
|
|
72
73
|
interface TitleBannerProps extends BaseComponentProps {
|
|
73
74
|
title: string;
|
|
@@ -103,11 +104,11 @@ declare const PieChart: React$1.FC<PieChartProps>;
|
|
|
103
104
|
interface ChipProps extends BaseComponentProps {
|
|
104
105
|
label?: string;
|
|
105
106
|
variant?: Variant$1;
|
|
107
|
+
appearance?: Appearance;
|
|
106
108
|
shape?: Shape$1;
|
|
107
|
-
ghost?: boolean;
|
|
108
109
|
size?: Size$1;
|
|
109
110
|
}
|
|
110
|
-
declare const Chip: ({ label, variant,
|
|
111
|
+
declare const Chip: ({ label, variant, appearance, shape, size, className, ...rest }: ChipProps) => react_jsx_runtime.JSX.Element;
|
|
111
112
|
|
|
112
113
|
type SortConfig<T, K extends keyof T = keyof T> = {
|
|
113
114
|
key: K;
|
|
@@ -349,38 +350,72 @@ interface ListItemProps {
|
|
|
349
350
|
declare const ListItem: ({ content, TypographyComponent, bulletType, renderBullet, index, align, className, }: ListItemProps) => react_jsx_runtime.JSX.Element;
|
|
350
351
|
|
|
351
352
|
interface PriceTagProps extends BaseComponentProps {
|
|
352
|
-
discount?: number;
|
|
353
353
|
price: number;
|
|
354
|
+
discount?: number;
|
|
354
355
|
code?: CurrencyCode;
|
|
356
|
+
variant?: Variant$1;
|
|
357
|
+
appearance?: Appearance;
|
|
358
|
+
shape?: Shape$1;
|
|
359
|
+
size?: Size$1;
|
|
360
|
+
decimals?: number;
|
|
361
|
+
showCurrencyCode?: boolean;
|
|
362
|
+
currencyAsSubscript?: boolean;
|
|
363
|
+
showFreeLabel?: boolean;
|
|
355
364
|
}
|
|
356
|
-
declare function PriceTag({
|
|
365
|
+
declare function PriceTag({ price, discount, code, variant, appearance, shape, size, decimals, showCurrencyCode, currencyAsSubscript, showFreeLabel, className, ...rest }: PriceTagProps): react_jsx_runtime.JSX.Element;
|
|
357
366
|
|
|
358
367
|
interface ProgressBarProps extends BaseComponentProps {
|
|
359
368
|
value: number;
|
|
369
|
+
max?: number;
|
|
370
|
+
min?: number;
|
|
360
371
|
variant?: Variant$1;
|
|
372
|
+
appearance?: Appearance;
|
|
361
373
|
size?: Size$1;
|
|
374
|
+
shape?: Shape$1;
|
|
375
|
+
striped?: boolean;
|
|
376
|
+
animated?: boolean;
|
|
362
377
|
showLabel?: boolean;
|
|
363
378
|
label?: string;
|
|
364
|
-
labelPlacement?: "top" | "overlay";
|
|
379
|
+
labelPlacement?: "top" | "overlay" | "bottom";
|
|
380
|
+
showPercentage?: boolean;
|
|
381
|
+
startContent?: ReactNode;
|
|
382
|
+
endContent?: ReactNode;
|
|
383
|
+
trackClassName?: string;
|
|
384
|
+
barClassName?: string;
|
|
365
385
|
}
|
|
366
|
-
declare
|
|
386
|
+
declare function ProgressBar({ value, min, max, variant, appearance, size, shape, striped, animated, showLabel, label, labelPlacement, showPercentage, startContent, endContent, trackClassName, barClassName, className, ...rest }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
367
387
|
|
|
368
|
-
interface
|
|
388
|
+
interface NumericRatingProps extends BaseComponentProps {
|
|
369
389
|
rating: number;
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
390
|
+
totalReviews?: number;
|
|
391
|
+
size?: Size$1;
|
|
392
|
+
showStars?: boolean;
|
|
393
|
+
showReviewCount?: boolean;
|
|
394
|
+
reviewLabel?: string;
|
|
373
395
|
}
|
|
374
|
-
declare function
|
|
396
|
+
declare function NumericRating({ rating, totalReviews, size, showStars, showReviewCount, reviewLabel, className, ...rest }: NumericRatingProps): react_jsx_runtime.JSX.Element;
|
|
375
397
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
398
|
+
interface ProgressBarRatingProps extends BaseComponentProps {
|
|
399
|
+
star: number;
|
|
400
|
+
percentage: number;
|
|
401
|
+
variant?: Variant$1;
|
|
402
|
+
appearance?: Appearance;
|
|
403
|
+
shape?: Shape$1;
|
|
404
|
+
size?: Size$1;
|
|
405
|
+
animated?: boolean;
|
|
406
|
+
striped?: boolean;
|
|
407
|
+
}
|
|
408
|
+
declare function ProgressBarRating({ star, percentage, variant, appearance, shape, size, animated, striped, className, ...rest }: ProgressBarRatingProps): react_jsx_runtime.JSX.Element;
|
|
409
|
+
|
|
410
|
+
interface StarRatingProps extends BaseComponentProps {
|
|
411
|
+
rating: number;
|
|
412
|
+
max?: number;
|
|
413
|
+
size?: Size$1;
|
|
414
|
+
showValue?: boolean;
|
|
415
|
+
valuePosition?: "start" | "end";
|
|
416
|
+
iconClassName?: string;
|
|
417
|
+
}
|
|
418
|
+
declare function StarRating({ rating, max, size, showValue, valuePosition, iconClassName, className, ...rest }: StarRatingProps): react_jsx_runtime.JSX.Element;
|
|
384
419
|
|
|
385
420
|
interface TableColumnConfig<T> {
|
|
386
421
|
key: keyof T | string;
|
|
@@ -514,6 +549,39 @@ interface WorldMapProps extends BaseComponentProps {
|
|
|
514
549
|
}
|
|
515
550
|
declare function WorldMap({ data, title, bubbleColor, bubbleStroke, bubbleScale, minBubble, disableCountryHover, disableCountrySelect, className, ...rest }: WorldMapProps): react_jsx_runtime.JSX.Element;
|
|
516
551
|
|
|
552
|
+
interface ButtonProps extends BaseComponentProps<HTMLButtonElement> {
|
|
553
|
+
type?: "button" | "submit" | "reset";
|
|
554
|
+
icon?: ReactNode;
|
|
555
|
+
text?: string;
|
|
556
|
+
children?: ReactNode;
|
|
557
|
+
loading?: boolean;
|
|
558
|
+
disabled?: boolean;
|
|
559
|
+
block?: boolean;
|
|
560
|
+
variant?: Variant$1;
|
|
561
|
+
appearance?: Appearance;
|
|
562
|
+
shape?: Shape$1;
|
|
563
|
+
size?: Size$1;
|
|
564
|
+
}
|
|
565
|
+
declare function Button({ type, icon, text, children, loading, disabled, block, variant, appearance, shape, size, className, onMouseMove, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
566
|
+
|
|
567
|
+
interface CheckboxOption {
|
|
568
|
+
label: string;
|
|
569
|
+
value: string;
|
|
570
|
+
}
|
|
571
|
+
interface BaseCheckboxProps extends BaseComponentProps {
|
|
572
|
+
placeholder?: string;
|
|
573
|
+
variant?: Variant$1;
|
|
574
|
+
shape?: Shape$1;
|
|
575
|
+
}
|
|
576
|
+
interface SingleCheckboxProps extends BaseCheckboxProps {
|
|
577
|
+
options?: never;
|
|
578
|
+
}
|
|
579
|
+
interface MultiCheckboxProps extends BaseCheckboxProps {
|
|
580
|
+
options: CheckboxOption[];
|
|
581
|
+
}
|
|
582
|
+
type CheckboxProps = (SingleCheckboxProps & FieldHookConfig<boolean>) | (MultiCheckboxProps & FieldHookConfig<string[]>);
|
|
583
|
+
declare function Checkbox({ placeholder, variant, shape, className, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
584
|
+
|
|
517
585
|
declare enum Variant {
|
|
518
586
|
default = "default",
|
|
519
587
|
primary = "primary",
|
|
@@ -562,39 +630,6 @@ declare enum Target {
|
|
|
562
630
|
top = "top"
|
|
563
631
|
}
|
|
564
632
|
|
|
565
|
-
interface ButtonProps {
|
|
566
|
-
type?: "button" | "submit";
|
|
567
|
-
icon?: ReactNode;
|
|
568
|
-
text?: string;
|
|
569
|
-
children?: ReactNode;
|
|
570
|
-
loading?: boolean;
|
|
571
|
-
disabled?: boolean;
|
|
572
|
-
ghost?: boolean;
|
|
573
|
-
block?: boolean;
|
|
574
|
-
variant?: keyof typeof Variant;
|
|
575
|
-
shape?: keyof typeof Shape;
|
|
576
|
-
size?: keyof typeof Size;
|
|
577
|
-
styles?: string;
|
|
578
|
-
onClick?: () => void;
|
|
579
|
-
}
|
|
580
|
-
declare const Button: ({ type, icon, text, children, loading, disabled, ghost, block, variant, shape, size, styles, onClick, }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
581
|
-
|
|
582
|
-
interface CheckboxOption {
|
|
583
|
-
label: string;
|
|
584
|
-
value: string;
|
|
585
|
-
}
|
|
586
|
-
interface BaseCheckboxProps {
|
|
587
|
-
placeholder: string;
|
|
588
|
-
}
|
|
589
|
-
interface SingleCheckboxProps extends BaseCheckboxProps {
|
|
590
|
-
options?: never;
|
|
591
|
-
}
|
|
592
|
-
interface MultiCheckboxProps extends BaseCheckboxProps {
|
|
593
|
-
options: CheckboxOption[];
|
|
594
|
-
}
|
|
595
|
-
type CheckboxProps = (SingleCheckboxProps & FieldHookConfig<boolean>) | (MultiCheckboxProps & FieldHookConfig<string[]>);
|
|
596
|
-
declare const Checkbox: React$1.FC<CheckboxProps>;
|
|
597
|
-
|
|
598
633
|
type DateSelectorProps = FieldHookConfig<string> & {
|
|
599
634
|
name: string;
|
|
600
635
|
placeholder: string;
|
|
@@ -1358,6 +1393,24 @@ interface SliderProps {
|
|
|
1358
1393
|
}
|
|
1359
1394
|
declare function Slider({ isLoading, isSuccess, coverArt, screenshots }: SliderProps): react_jsx_runtime.JSX.Element;
|
|
1360
1395
|
|
|
1396
|
+
interface RatingDistributionItem {
|
|
1397
|
+
star: number;
|
|
1398
|
+
count: number;
|
|
1399
|
+
}
|
|
1400
|
+
interface StarRatingDistributionProps extends BaseComponentProps {
|
|
1401
|
+
numericRating?: boolean;
|
|
1402
|
+
progressBarsRating?: boolean;
|
|
1403
|
+
ratingDistribution?: RatingDistributionItem[];
|
|
1404
|
+
variant?: Variant$1;
|
|
1405
|
+
appearance?: Appearance;
|
|
1406
|
+
shape?: Shape$1;
|
|
1407
|
+
size?: Size$1;
|
|
1408
|
+
animated?: boolean;
|
|
1409
|
+
striped?: boolean;
|
|
1410
|
+
showReviewCount?: boolean;
|
|
1411
|
+
}
|
|
1412
|
+
declare function StarRatingDistribution({ numericRating, progressBarsRating, ratingDistribution, variant, appearance, shape, size, animated, striped, showReviewCount, className, ...rest }: StarRatingDistributionProps): react_jsx_runtime.JSX.Element;
|
|
1413
|
+
|
|
1361
1414
|
interface WorldMapCountryTableProps {
|
|
1362
1415
|
title?: string;
|
|
1363
1416
|
data: WorldMapPoint[];
|
|
@@ -1558,4 +1611,13 @@ declare const enumValues: <T extends Record<string, string>>(enumObject: T) => s
|
|
|
1558
1611
|
declare const normalize: (path?: string) => string;
|
|
1559
1612
|
declare const isMatch: (itemPath?: string, currentPath?: string) => boolean;
|
|
1560
1613
|
|
|
1561
|
-
|
|
1614
|
+
interface ResolveAppearanceStylesProps {
|
|
1615
|
+
appearance?: Appearance;
|
|
1616
|
+
variant: Variant$1;
|
|
1617
|
+
solid: Record<string, string>;
|
|
1618
|
+
lite: Record<string, string>;
|
|
1619
|
+
ghost: Record<string, string>;
|
|
1620
|
+
}
|
|
1621
|
+
declare function resolveAppearanceStyles({ appearance, variant, solid, lite, ghost, }: ResolveAppearanceStylesProps): string;
|
|
1622
|
+
|
|
1623
|
+
export { Accordion, type AnimationComponentProps, type AnimationVariant, type Appearance, AsyncComponentWrapper, Avatar, Backdrop, Badge, BarChart, type BaseAnimationConfig, type BaseComponentProps, type BaseMenuNode, type BaseOverlayConfig, type BaseTopNavNode, type BlobAnimationConfig, Block, BlockGroup, BoxNav, BoxNavItem, Brand, Breadcrumb, BreadcrumbItem, Button, Caption, Card, CardContent, CardFooter, CardHeader, type CardinalPosition, Chapter, Checkbox, Chip, type CloudinaryConfig, CloudinaryImage, CloudinaryProvider, type CloudinaryProviderProps, CloudinaryVideo, Code, Content, ContentArea, type CornerPosition, type CurrencyCode, DataView, DataViewTable, DateSelector, DefaultLayout, type DefaultMenuElements, Display, DocumentationPanel, Drawer, DrawerToggler, type EUIComponentDefaults, type EUIConfigs, EUIDevLayout, EUIProvider, type EUIRoute, Flag, Flex, FlexCol, FlexRow, Footer, FooterNav, FooterNavGroup, FooterNavItem, FooterNavItemContext, FooterNavItemTitle, Form, FormResponse, GenericLayout, GlowWrapper, type GradientAnimationConfig, Graph, type GraphData, GraphEdge, type GraphEdgeType, type GraphLayoutType, GraphNode, type GraphNodeType, type GraphProps, GraphRenderer, Grid, Header, HeaderNav, HeaderNavGroup, HeaderNavItem, HeaderNavItemContext, HeaderNavItemTitle, HomeLayout, type HorizontalPosition, type HyperRefTarget, Image, ImageInput, Info, Input, InputFile, InputLabel, InputList, InputListGroup, InputResponse, Label, Layout, type LayoutContext, type LayoutExecutor, Lead, LineChart, Link, List, type ListAlign, type ListBulletType, type ListDirection, ListItem, type ListItemData, MarkdownEditor, MarkdownProvider, MarkdownTOC, MarkdownViewer, Menu, type MenuElementType, MenuGroup, type MenuGroupNode, MenuItem, type MenuItemNode, MenuItemTitle, type MenuNode, type MenuProps, type MenuTitleNode, type MeshAnimationConfig, Modal, MotionSurface, MultiImageInput, type NavItem, NumericRating, type OctilePosition, type OverlayVariant, Overline, Paragraph, PieChart, PriceTag, ProgressBar, type ProgressBarProps, ProgressBarRating, Quote, Radio, RouteTab, type RouteTabMode, RouteTabs, ScrollToTop, Section, Select, type Shape$1 as Shape, ShapeSwitch, ShowMore, Sidebar, SidebarLayout, SidemenuLayout, type Size$1 as Size, Skeleton, Slider, StarRating, StarRatingDistribution, StarRatingInput, Switch, TNDropdown, TNDropdownItem, TNDropdownTitle, TNGroup, Table, Tag, Tags, TextArea, type TextDecoration, ThemeContext, ThemeProvider, ThemeSwitch, TitleBanner, type TitleBannerLevel, Toast, Tooltip, TopNav, type TopNavComponents, type TopNavGroupNode, type TopNavItemNode, type TopNavNode, type TopNavProps, type TopNavTitleNode, Transition, TransitionDropdown, TransitionFadeIn, Typography, UnderConstructionBanner, ValueBadge, type Variant$1 as Variant, type VerticalPosition, WorldMap, WorldMapCountryTable, YoutubeVideo as YoutubeVideoPlayer, cn, createForceLayout, createGridLayout, createTreeLayout, enumValues, getCurrencySymbol, getLayout, isMatch, isRenderFn, normalize, registerLayout, resolveAppearanceStyles, resolveWithGlobal, sendToast, useClickOutside, useCloudinaryConfig, useCurrentTheme, useDrawer, useEUIConfig, useIsMobile, useModal, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -32,10 +32,10 @@ type Size$1 = "xs" | "sm" | "md" | "lg" | "xl";
|
|
|
32
32
|
type Appearance = "solid" | "lite" | "ghost";
|
|
33
33
|
type TextDecoration = "underline" | "overline" | "lineThrough" | "noUnderline";
|
|
34
34
|
type HyperRefTarget = "blank" | "self" | "parent" | "top";
|
|
35
|
-
type
|
|
36
|
-
type
|
|
37
|
-
type CardinalPosition =
|
|
38
|
-
type CornerPosition = `${
|
|
35
|
+
type VerticalPosition = "top" | "bottom";
|
|
36
|
+
type HorizontalPosition = "left" | "right";
|
|
37
|
+
type CardinalPosition = VerticalPosition | HorizontalPosition;
|
|
38
|
+
type CornerPosition = `${VerticalPosition}-${HorizontalPosition}`;
|
|
39
39
|
type OctilePosition = CardinalPosition | CornerPosition;
|
|
40
40
|
type TitleBannerLevel = 1 | 2;
|
|
41
41
|
type ListBulletType = "dot" | "diamond" | "number" | "none";
|
|
@@ -48,26 +48,27 @@ interface AvatarProps extends BaseComponentProps {
|
|
|
48
48
|
alt?: string;
|
|
49
49
|
icon?: ReactNode;
|
|
50
50
|
variant?: Variant$1;
|
|
51
|
+
appearance?: Appearance;
|
|
51
52
|
shape?: Shape$1;
|
|
52
53
|
size?: Size$1;
|
|
53
54
|
src?: string;
|
|
54
|
-
borderVariant?: boolean;
|
|
55
55
|
children?: ReactNode;
|
|
56
56
|
}
|
|
57
|
-
declare const Avatar: ({ alt, icon, children, variant, shape, size, src,
|
|
57
|
+
declare const Avatar: ({ alt, icon, children, variant, appearance, shape, size, src, className, ...rest }: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
58
58
|
|
|
59
59
|
interface BadgeProps extends BaseComponentProps {
|
|
60
60
|
offset?: [number, number];
|
|
61
61
|
dot?: boolean;
|
|
62
62
|
count?: number;
|
|
63
63
|
variant?: Variant$1;
|
|
64
|
+
appearance?: Appearance;
|
|
64
65
|
shape?: Shape$1;
|
|
65
66
|
size?: Size$1;
|
|
66
67
|
showZero?: boolean;
|
|
67
68
|
position?: OctilePosition;
|
|
68
69
|
children?: ReactNode;
|
|
69
70
|
}
|
|
70
|
-
declare const Badge: ({ children, offset, dot, count, variant, shape, size, showZero, position, className, ...rest }: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
71
|
+
declare const Badge: ({ children, offset, dot, count, variant, appearance, shape, size, showZero, position, className, ...rest }: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
71
72
|
|
|
72
73
|
interface TitleBannerProps extends BaseComponentProps {
|
|
73
74
|
title: string;
|
|
@@ -103,11 +104,11 @@ declare const PieChart: React$1.FC<PieChartProps>;
|
|
|
103
104
|
interface ChipProps extends BaseComponentProps {
|
|
104
105
|
label?: string;
|
|
105
106
|
variant?: Variant$1;
|
|
107
|
+
appearance?: Appearance;
|
|
106
108
|
shape?: Shape$1;
|
|
107
|
-
ghost?: boolean;
|
|
108
109
|
size?: Size$1;
|
|
109
110
|
}
|
|
110
|
-
declare const Chip: ({ label, variant,
|
|
111
|
+
declare const Chip: ({ label, variant, appearance, shape, size, className, ...rest }: ChipProps) => react_jsx_runtime.JSX.Element;
|
|
111
112
|
|
|
112
113
|
type SortConfig<T, K extends keyof T = keyof T> = {
|
|
113
114
|
key: K;
|
|
@@ -349,38 +350,72 @@ interface ListItemProps {
|
|
|
349
350
|
declare const ListItem: ({ content, TypographyComponent, bulletType, renderBullet, index, align, className, }: ListItemProps) => react_jsx_runtime.JSX.Element;
|
|
350
351
|
|
|
351
352
|
interface PriceTagProps extends BaseComponentProps {
|
|
352
|
-
discount?: number;
|
|
353
353
|
price: number;
|
|
354
|
+
discount?: number;
|
|
354
355
|
code?: CurrencyCode;
|
|
356
|
+
variant?: Variant$1;
|
|
357
|
+
appearance?: Appearance;
|
|
358
|
+
shape?: Shape$1;
|
|
359
|
+
size?: Size$1;
|
|
360
|
+
decimals?: number;
|
|
361
|
+
showCurrencyCode?: boolean;
|
|
362
|
+
currencyAsSubscript?: boolean;
|
|
363
|
+
showFreeLabel?: boolean;
|
|
355
364
|
}
|
|
356
|
-
declare function PriceTag({
|
|
365
|
+
declare function PriceTag({ price, discount, code, variant, appearance, shape, size, decimals, showCurrencyCode, currencyAsSubscript, showFreeLabel, className, ...rest }: PriceTagProps): react_jsx_runtime.JSX.Element;
|
|
357
366
|
|
|
358
367
|
interface ProgressBarProps extends BaseComponentProps {
|
|
359
368
|
value: number;
|
|
369
|
+
max?: number;
|
|
370
|
+
min?: number;
|
|
360
371
|
variant?: Variant$1;
|
|
372
|
+
appearance?: Appearance;
|
|
361
373
|
size?: Size$1;
|
|
374
|
+
shape?: Shape$1;
|
|
375
|
+
striped?: boolean;
|
|
376
|
+
animated?: boolean;
|
|
362
377
|
showLabel?: boolean;
|
|
363
378
|
label?: string;
|
|
364
|
-
labelPlacement?: "top" | "overlay";
|
|
379
|
+
labelPlacement?: "top" | "overlay" | "bottom";
|
|
380
|
+
showPercentage?: boolean;
|
|
381
|
+
startContent?: ReactNode;
|
|
382
|
+
endContent?: ReactNode;
|
|
383
|
+
trackClassName?: string;
|
|
384
|
+
barClassName?: string;
|
|
365
385
|
}
|
|
366
|
-
declare
|
|
386
|
+
declare function ProgressBar({ value, min, max, variant, appearance, size, shape, striped, animated, showLabel, label, labelPlacement, showPercentage, startContent, endContent, trackClassName, barClassName, className, ...rest }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
367
387
|
|
|
368
|
-
interface
|
|
388
|
+
interface NumericRatingProps extends BaseComponentProps {
|
|
369
389
|
rating: number;
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
390
|
+
totalReviews?: number;
|
|
391
|
+
size?: Size$1;
|
|
392
|
+
showStars?: boolean;
|
|
393
|
+
showReviewCount?: boolean;
|
|
394
|
+
reviewLabel?: string;
|
|
373
395
|
}
|
|
374
|
-
declare function
|
|
396
|
+
declare function NumericRating({ rating, totalReviews, size, showStars, showReviewCount, reviewLabel, className, ...rest }: NumericRatingProps): react_jsx_runtime.JSX.Element;
|
|
375
397
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
398
|
+
interface ProgressBarRatingProps extends BaseComponentProps {
|
|
399
|
+
star: number;
|
|
400
|
+
percentage: number;
|
|
401
|
+
variant?: Variant$1;
|
|
402
|
+
appearance?: Appearance;
|
|
403
|
+
shape?: Shape$1;
|
|
404
|
+
size?: Size$1;
|
|
405
|
+
animated?: boolean;
|
|
406
|
+
striped?: boolean;
|
|
407
|
+
}
|
|
408
|
+
declare function ProgressBarRating({ star, percentage, variant, appearance, shape, size, animated, striped, className, ...rest }: ProgressBarRatingProps): react_jsx_runtime.JSX.Element;
|
|
409
|
+
|
|
410
|
+
interface StarRatingProps extends BaseComponentProps {
|
|
411
|
+
rating: number;
|
|
412
|
+
max?: number;
|
|
413
|
+
size?: Size$1;
|
|
414
|
+
showValue?: boolean;
|
|
415
|
+
valuePosition?: "start" | "end";
|
|
416
|
+
iconClassName?: string;
|
|
417
|
+
}
|
|
418
|
+
declare function StarRating({ rating, max, size, showValue, valuePosition, iconClassName, className, ...rest }: StarRatingProps): react_jsx_runtime.JSX.Element;
|
|
384
419
|
|
|
385
420
|
interface TableColumnConfig<T> {
|
|
386
421
|
key: keyof T | string;
|
|
@@ -514,6 +549,39 @@ interface WorldMapProps extends BaseComponentProps {
|
|
|
514
549
|
}
|
|
515
550
|
declare function WorldMap({ data, title, bubbleColor, bubbleStroke, bubbleScale, minBubble, disableCountryHover, disableCountrySelect, className, ...rest }: WorldMapProps): react_jsx_runtime.JSX.Element;
|
|
516
551
|
|
|
552
|
+
interface ButtonProps extends BaseComponentProps<HTMLButtonElement> {
|
|
553
|
+
type?: "button" | "submit" | "reset";
|
|
554
|
+
icon?: ReactNode;
|
|
555
|
+
text?: string;
|
|
556
|
+
children?: ReactNode;
|
|
557
|
+
loading?: boolean;
|
|
558
|
+
disabled?: boolean;
|
|
559
|
+
block?: boolean;
|
|
560
|
+
variant?: Variant$1;
|
|
561
|
+
appearance?: Appearance;
|
|
562
|
+
shape?: Shape$1;
|
|
563
|
+
size?: Size$1;
|
|
564
|
+
}
|
|
565
|
+
declare function Button({ type, icon, text, children, loading, disabled, block, variant, appearance, shape, size, className, onMouseMove, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
566
|
+
|
|
567
|
+
interface CheckboxOption {
|
|
568
|
+
label: string;
|
|
569
|
+
value: string;
|
|
570
|
+
}
|
|
571
|
+
interface BaseCheckboxProps extends BaseComponentProps {
|
|
572
|
+
placeholder?: string;
|
|
573
|
+
variant?: Variant$1;
|
|
574
|
+
shape?: Shape$1;
|
|
575
|
+
}
|
|
576
|
+
interface SingleCheckboxProps extends BaseCheckboxProps {
|
|
577
|
+
options?: never;
|
|
578
|
+
}
|
|
579
|
+
interface MultiCheckboxProps extends BaseCheckboxProps {
|
|
580
|
+
options: CheckboxOption[];
|
|
581
|
+
}
|
|
582
|
+
type CheckboxProps = (SingleCheckboxProps & FieldHookConfig<boolean>) | (MultiCheckboxProps & FieldHookConfig<string[]>);
|
|
583
|
+
declare function Checkbox({ placeholder, variant, shape, className, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
584
|
+
|
|
517
585
|
declare enum Variant {
|
|
518
586
|
default = "default",
|
|
519
587
|
primary = "primary",
|
|
@@ -562,39 +630,6 @@ declare enum Target {
|
|
|
562
630
|
top = "top"
|
|
563
631
|
}
|
|
564
632
|
|
|
565
|
-
interface ButtonProps {
|
|
566
|
-
type?: "button" | "submit";
|
|
567
|
-
icon?: ReactNode;
|
|
568
|
-
text?: string;
|
|
569
|
-
children?: ReactNode;
|
|
570
|
-
loading?: boolean;
|
|
571
|
-
disabled?: boolean;
|
|
572
|
-
ghost?: boolean;
|
|
573
|
-
block?: boolean;
|
|
574
|
-
variant?: keyof typeof Variant;
|
|
575
|
-
shape?: keyof typeof Shape;
|
|
576
|
-
size?: keyof typeof Size;
|
|
577
|
-
styles?: string;
|
|
578
|
-
onClick?: () => void;
|
|
579
|
-
}
|
|
580
|
-
declare const Button: ({ type, icon, text, children, loading, disabled, ghost, block, variant, shape, size, styles, onClick, }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
581
|
-
|
|
582
|
-
interface CheckboxOption {
|
|
583
|
-
label: string;
|
|
584
|
-
value: string;
|
|
585
|
-
}
|
|
586
|
-
interface BaseCheckboxProps {
|
|
587
|
-
placeholder: string;
|
|
588
|
-
}
|
|
589
|
-
interface SingleCheckboxProps extends BaseCheckboxProps {
|
|
590
|
-
options?: never;
|
|
591
|
-
}
|
|
592
|
-
interface MultiCheckboxProps extends BaseCheckboxProps {
|
|
593
|
-
options: CheckboxOption[];
|
|
594
|
-
}
|
|
595
|
-
type CheckboxProps = (SingleCheckboxProps & FieldHookConfig<boolean>) | (MultiCheckboxProps & FieldHookConfig<string[]>);
|
|
596
|
-
declare const Checkbox: React$1.FC<CheckboxProps>;
|
|
597
|
-
|
|
598
633
|
type DateSelectorProps = FieldHookConfig<string> & {
|
|
599
634
|
name: string;
|
|
600
635
|
placeholder: string;
|
|
@@ -1358,6 +1393,24 @@ interface SliderProps {
|
|
|
1358
1393
|
}
|
|
1359
1394
|
declare function Slider({ isLoading, isSuccess, coverArt, screenshots }: SliderProps): react_jsx_runtime.JSX.Element;
|
|
1360
1395
|
|
|
1396
|
+
interface RatingDistributionItem {
|
|
1397
|
+
star: number;
|
|
1398
|
+
count: number;
|
|
1399
|
+
}
|
|
1400
|
+
interface StarRatingDistributionProps extends BaseComponentProps {
|
|
1401
|
+
numericRating?: boolean;
|
|
1402
|
+
progressBarsRating?: boolean;
|
|
1403
|
+
ratingDistribution?: RatingDistributionItem[];
|
|
1404
|
+
variant?: Variant$1;
|
|
1405
|
+
appearance?: Appearance;
|
|
1406
|
+
shape?: Shape$1;
|
|
1407
|
+
size?: Size$1;
|
|
1408
|
+
animated?: boolean;
|
|
1409
|
+
striped?: boolean;
|
|
1410
|
+
showReviewCount?: boolean;
|
|
1411
|
+
}
|
|
1412
|
+
declare function StarRatingDistribution({ numericRating, progressBarsRating, ratingDistribution, variant, appearance, shape, size, animated, striped, showReviewCount, className, ...rest }: StarRatingDistributionProps): react_jsx_runtime.JSX.Element;
|
|
1413
|
+
|
|
1361
1414
|
interface WorldMapCountryTableProps {
|
|
1362
1415
|
title?: string;
|
|
1363
1416
|
data: WorldMapPoint[];
|
|
@@ -1558,4 +1611,13 @@ declare const enumValues: <T extends Record<string, string>>(enumObject: T) => s
|
|
|
1558
1611
|
declare const normalize: (path?: string) => string;
|
|
1559
1612
|
declare const isMatch: (itemPath?: string, currentPath?: string) => boolean;
|
|
1560
1613
|
|
|
1561
|
-
|
|
1614
|
+
interface ResolveAppearanceStylesProps {
|
|
1615
|
+
appearance?: Appearance;
|
|
1616
|
+
variant: Variant$1;
|
|
1617
|
+
solid: Record<string, string>;
|
|
1618
|
+
lite: Record<string, string>;
|
|
1619
|
+
ghost: Record<string, string>;
|
|
1620
|
+
}
|
|
1621
|
+
declare function resolveAppearanceStyles({ appearance, variant, solid, lite, ghost, }: ResolveAppearanceStylesProps): string;
|
|
1622
|
+
|
|
1623
|
+
export { Accordion, type AnimationComponentProps, type AnimationVariant, type Appearance, AsyncComponentWrapper, Avatar, Backdrop, Badge, BarChart, type BaseAnimationConfig, type BaseComponentProps, type BaseMenuNode, type BaseOverlayConfig, type BaseTopNavNode, type BlobAnimationConfig, Block, BlockGroup, BoxNav, BoxNavItem, Brand, Breadcrumb, BreadcrumbItem, Button, Caption, Card, CardContent, CardFooter, CardHeader, type CardinalPosition, Chapter, Checkbox, Chip, type CloudinaryConfig, CloudinaryImage, CloudinaryProvider, type CloudinaryProviderProps, CloudinaryVideo, Code, Content, ContentArea, type CornerPosition, type CurrencyCode, DataView, DataViewTable, DateSelector, DefaultLayout, type DefaultMenuElements, Display, DocumentationPanel, Drawer, DrawerToggler, type EUIComponentDefaults, type EUIConfigs, EUIDevLayout, EUIProvider, type EUIRoute, Flag, Flex, FlexCol, FlexRow, Footer, FooterNav, FooterNavGroup, FooterNavItem, FooterNavItemContext, FooterNavItemTitle, Form, FormResponse, GenericLayout, GlowWrapper, type GradientAnimationConfig, Graph, type GraphData, GraphEdge, type GraphEdgeType, type GraphLayoutType, GraphNode, type GraphNodeType, type GraphProps, GraphRenderer, Grid, Header, HeaderNav, HeaderNavGroup, HeaderNavItem, HeaderNavItemContext, HeaderNavItemTitle, HomeLayout, type HorizontalPosition, type HyperRefTarget, Image, ImageInput, Info, Input, InputFile, InputLabel, InputList, InputListGroup, InputResponse, Label, Layout, type LayoutContext, type LayoutExecutor, Lead, LineChart, Link, List, type ListAlign, type ListBulletType, type ListDirection, ListItem, type ListItemData, MarkdownEditor, MarkdownProvider, MarkdownTOC, MarkdownViewer, Menu, type MenuElementType, MenuGroup, type MenuGroupNode, MenuItem, type MenuItemNode, MenuItemTitle, type MenuNode, type MenuProps, type MenuTitleNode, type MeshAnimationConfig, Modal, MotionSurface, MultiImageInput, type NavItem, NumericRating, type OctilePosition, type OverlayVariant, Overline, Paragraph, PieChart, PriceTag, ProgressBar, type ProgressBarProps, ProgressBarRating, Quote, Radio, RouteTab, type RouteTabMode, RouteTabs, ScrollToTop, Section, Select, type Shape$1 as Shape, ShapeSwitch, ShowMore, Sidebar, SidebarLayout, SidemenuLayout, type Size$1 as Size, Skeleton, Slider, StarRating, StarRatingDistribution, StarRatingInput, Switch, TNDropdown, TNDropdownItem, TNDropdownTitle, TNGroup, Table, Tag, Tags, TextArea, type TextDecoration, ThemeContext, ThemeProvider, ThemeSwitch, TitleBanner, type TitleBannerLevel, Toast, Tooltip, TopNav, type TopNavComponents, type TopNavGroupNode, type TopNavItemNode, type TopNavNode, type TopNavProps, type TopNavTitleNode, Transition, TransitionDropdown, TransitionFadeIn, Typography, UnderConstructionBanner, ValueBadge, type Variant$1 as Variant, type VerticalPosition, WorldMap, WorldMapCountryTable, YoutubeVideo as YoutubeVideoPlayer, cn, createForceLayout, createGridLayout, createTreeLayout, enumValues, getCurrencySymbol, getLayout, isMatch, isRenderFn, normalize, registerLayout, resolveAppearanceStyles, resolveWithGlobal, sendToast, useClickOutside, useCloudinaryConfig, useCurrentTheme, useDrawer, useEUIConfig, useIsMobile, useModal, useTheme };
|