@banzamel/mineralui 0.7.0 → 0.9.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/README.md +81 -45
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +186 -3
- package/dist/index.js +3980 -2599
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -89,7 +89,6 @@ export { AppShell }
|
|
|
89
89
|
export { AppShell as MAppShell }
|
|
90
90
|
|
|
91
91
|
declare interface AppShellProps extends HTMLAttributes<HTMLDivElement> {
|
|
92
|
-
sidebar?: ReactNode;
|
|
93
92
|
children?: ReactNode;
|
|
94
93
|
}
|
|
95
94
|
export { AppShellProps }
|
|
@@ -170,7 +169,7 @@ declare type AvatarSize = 'sm' | 'md' | 'lg' | number;
|
|
|
170
169
|
export { AvatarSize }
|
|
171
170
|
export { AvatarSize as MAvatarSize }
|
|
172
171
|
|
|
173
|
-
declare function Badge({ color, size, fcolor, className, children, ...rest }: BadgeProps): JSX.Element;
|
|
172
|
+
declare function Badge({ color, size, fcolor, pulsing, className, children, ...rest }: BadgeProps): JSX.Element;
|
|
174
173
|
export { Badge }
|
|
175
174
|
export { Badge as MBadge }
|
|
176
175
|
|
|
@@ -178,6 +177,7 @@ declare interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
178
177
|
color?: MineralColor;
|
|
179
178
|
size?: MineralSize;
|
|
180
179
|
fcolor?: MineralFontColor;
|
|
180
|
+
pulsing?: boolean;
|
|
181
181
|
children?: ReactNode;
|
|
182
182
|
}
|
|
183
183
|
export { BadgeProps }
|
|
@@ -229,6 +229,7 @@ declare interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
229
229
|
startIcon?: ReactNode;
|
|
230
230
|
endIcon?: ReactNode;
|
|
231
231
|
clickEffect?: MineralClickEffect;
|
|
232
|
+
pulsing?: boolean;
|
|
232
233
|
rippleColor?: string;
|
|
233
234
|
className?: string;
|
|
234
235
|
style?: CSSProperties;
|
|
@@ -439,10 +440,100 @@ declare function CardBody({ className, children, ...rest }: CardSectionProps): J
|
|
|
439
440
|
export { CardBody }
|
|
440
441
|
export { CardBody as MCardBody }
|
|
441
442
|
|
|
443
|
+
declare function CardBusiness({ variant, name, title, avatar, address, contact, socials, online, lastActive, qrCode, qrValue, color, className, ...rest }: CardBusinessProps): JSX.Element;
|
|
444
|
+
export { CardBusiness }
|
|
445
|
+
export { CardBusiness as MCardBusiness }
|
|
446
|
+
|
|
447
|
+
declare interface CardBusinessAddress {
|
|
448
|
+
street?: string;
|
|
449
|
+
city?: string;
|
|
450
|
+
zip?: string;
|
|
451
|
+
country?: string;
|
|
452
|
+
}
|
|
453
|
+
export { CardBusinessAddress }
|
|
454
|
+
export { CardBusinessAddress as MCardBusinessAddress }
|
|
455
|
+
|
|
456
|
+
declare interface CardBusinessContact {
|
|
457
|
+
email?: string;
|
|
458
|
+
phone?: string;
|
|
459
|
+
website?: string;
|
|
460
|
+
}
|
|
461
|
+
export { CardBusinessContact }
|
|
462
|
+
export { CardBusinessContact as MCardBusinessContact }
|
|
463
|
+
|
|
464
|
+
declare interface CardBusinessProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
465
|
+
variant?: CardBusinessVariant;
|
|
466
|
+
name: string;
|
|
467
|
+
title?: string;
|
|
468
|
+
avatar?: string;
|
|
469
|
+
address?: CardBusinessAddress;
|
|
470
|
+
contact?: CardBusinessContact;
|
|
471
|
+
socials?: CardBusinessSocial[];
|
|
472
|
+
online?: boolean;
|
|
473
|
+
lastActive?: string;
|
|
474
|
+
qrCode?: string;
|
|
475
|
+
qrValue?: string;
|
|
476
|
+
color?: MineralColor;
|
|
477
|
+
}
|
|
478
|
+
export { CardBusinessProps }
|
|
479
|
+
export { CardBusinessProps as MCardBusinessProps }
|
|
480
|
+
|
|
481
|
+
declare interface CardBusinessSocial {
|
|
482
|
+
platform: string;
|
|
483
|
+
url: string;
|
|
484
|
+
icon?: ReactNode;
|
|
485
|
+
}
|
|
486
|
+
export { CardBusinessSocial }
|
|
487
|
+
export { CardBusinessSocial as MCardBusinessSocial }
|
|
488
|
+
|
|
489
|
+
declare type CardBusinessVariant = 'user' | 'company';
|
|
490
|
+
export { CardBusinessVariant }
|
|
491
|
+
export { CardBusinessVariant as MCardBusinessVariant }
|
|
492
|
+
|
|
442
493
|
declare function CardFooter({ className, children, ...rest }: CardSectionProps): JSX.Element;
|
|
443
494
|
export { CardFooter }
|
|
444
495
|
export { CardFooter as MCardFooter }
|
|
445
496
|
|
|
497
|
+
declare function CardGrid<T extends Record<string, unknown>>({ items, renderCard, searchable, searchKeys, searchPlaceholder, filterable, filterKeys, sortable, sortKeys, defaultSort, columns, gap, emptyMessage, className, style, ...rest }: CardGridProps<T>): JSX.Element;
|
|
498
|
+
export { CardGrid }
|
|
499
|
+
export { CardGrid as MCardGrid }
|
|
500
|
+
|
|
501
|
+
declare interface CardGridFilterKey<T> {
|
|
502
|
+
key: keyof T & string;
|
|
503
|
+
label: string;
|
|
504
|
+
options?: string[];
|
|
505
|
+
}
|
|
506
|
+
export { CardGridFilterKey }
|
|
507
|
+
export { CardGridFilterKey as MCardGridFilterKey }
|
|
508
|
+
|
|
509
|
+
declare interface CardGridProps<T> extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
510
|
+
items: T[];
|
|
511
|
+
renderCard: (item: T, index: number) => ReactNode;
|
|
512
|
+
searchable?: boolean;
|
|
513
|
+
searchKeys?: (keyof T & string)[];
|
|
514
|
+
searchPlaceholder?: string;
|
|
515
|
+
filterable?: boolean;
|
|
516
|
+
filterKeys?: CardGridFilterKey<T>[];
|
|
517
|
+
sortable?: boolean;
|
|
518
|
+
sortKeys?: CardGridSortKey<T>[];
|
|
519
|
+
defaultSort?: {
|
|
520
|
+
key: keyof T & string;
|
|
521
|
+
direction: 'asc' | 'desc';
|
|
522
|
+
};
|
|
523
|
+
columns?: number;
|
|
524
|
+
gap?: string;
|
|
525
|
+
emptyMessage?: ReactNode;
|
|
526
|
+
}
|
|
527
|
+
export { CardGridProps }
|
|
528
|
+
export { CardGridProps as MCardGridProps }
|
|
529
|
+
|
|
530
|
+
declare interface CardGridSortKey<T> {
|
|
531
|
+
key: keyof T & string;
|
|
532
|
+
label: string;
|
|
533
|
+
}
|
|
534
|
+
export { CardGridSortKey }
|
|
535
|
+
export { CardGridSortKey as MCardGridSortKey }
|
|
536
|
+
|
|
446
537
|
declare function CardHeader({ className, children, ...rest }: CardSectionProps): JSX.Element;
|
|
447
538
|
export { CardHeader }
|
|
448
539
|
export { CardHeader as MCardHeader }
|
|
@@ -484,6 +575,57 @@ declare interface CardSectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
484
575
|
children?: ReactNode;
|
|
485
576
|
}
|
|
486
577
|
|
|
578
|
+
declare function CardService({ variant, title, description, price, currency, duration, available, image, gallery, rating, reviewCount, favorite, onFavorite, menuItems, onAddToCart, icon, color, leader, participants, maxParticipants, quantity: controlledQty, onQuantityChange, className, ...rest }: CardServiceProps): JSX.Element;
|
|
579
|
+
export { CardService }
|
|
580
|
+
export { CardService as MCardService }
|
|
581
|
+
|
|
582
|
+
declare interface CardServiceMenuItem {
|
|
583
|
+
label: string;
|
|
584
|
+
onClick?: () => void;
|
|
585
|
+
icon?: ReactNode;
|
|
586
|
+
danger?: boolean;
|
|
587
|
+
}
|
|
588
|
+
export { CardServiceMenuItem }
|
|
589
|
+
export { CardServiceMenuItem as MCardServiceMenuItem }
|
|
590
|
+
|
|
591
|
+
declare interface CardServicePerson {
|
|
592
|
+
name: string;
|
|
593
|
+
avatar?: string;
|
|
594
|
+
}
|
|
595
|
+
export { CardServicePerson }
|
|
596
|
+
export { CardServicePerson as MCardServicePerson }
|
|
597
|
+
|
|
598
|
+
declare interface CardServiceProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
599
|
+
variant?: CardServiceVariant;
|
|
600
|
+
title: string;
|
|
601
|
+
description?: string;
|
|
602
|
+
price?: number | string;
|
|
603
|
+
currency?: string;
|
|
604
|
+
duration?: string;
|
|
605
|
+
available?: boolean | number;
|
|
606
|
+
image?: string;
|
|
607
|
+
gallery?: string[];
|
|
608
|
+
rating?: number;
|
|
609
|
+
reviewCount?: number;
|
|
610
|
+
favorite?: boolean;
|
|
611
|
+
onFavorite?: () => void;
|
|
612
|
+
menuItems?: CardServiceMenuItem[];
|
|
613
|
+
onAddToCart?: (quantity: number) => void;
|
|
614
|
+
icon?: ReactNode;
|
|
615
|
+
color?: MineralColor;
|
|
616
|
+
leader?: CardServicePerson;
|
|
617
|
+
participants?: CardServicePerson[];
|
|
618
|
+
maxParticipants?: number;
|
|
619
|
+
quantity?: number;
|
|
620
|
+
onQuantityChange?: (qty: number) => void;
|
|
621
|
+
}
|
|
622
|
+
export { CardServiceProps }
|
|
623
|
+
export { CardServiceProps as MCardServiceProps }
|
|
624
|
+
|
|
625
|
+
declare type CardServiceVariant = 'service' | 'course' | 'product';
|
|
626
|
+
export { CardServiceVariant }
|
|
627
|
+
export { CardServiceVariant as MCardServiceVariant }
|
|
628
|
+
|
|
487
629
|
declare function Carousel({ autoPlay, interval, showDots, showArrows, loop, draggable, transition, className, children, ...rest }: CarouselProps): JSX.Element | null;
|
|
488
630
|
export { Carousel }
|
|
489
631
|
export { Carousel as MCarousel }
|
|
@@ -2248,6 +2390,20 @@ declare interface ProgressBarProps extends Omit<HTMLAttributes<HTMLDivElement>,
|
|
|
2248
2390
|
export { ProgressBarProps as MProgressBarProps }
|
|
2249
2391
|
export { ProgressBarProps }
|
|
2250
2392
|
|
|
2393
|
+
declare function QrCode({ value, size, padding, fg, bg, className, style, ...rest }: QrCodeProps): JSX.Element | null;
|
|
2394
|
+
export { QrCode as MQrCode }
|
|
2395
|
+
export { QrCode }
|
|
2396
|
+
|
|
2397
|
+
declare interface QrCodeProps extends HTMLAttributes<HTMLDivElement> {
|
|
2398
|
+
value: string;
|
|
2399
|
+
size?: number;
|
|
2400
|
+
padding?: number;
|
|
2401
|
+
fg?: string;
|
|
2402
|
+
bg?: string;
|
|
2403
|
+
}
|
|
2404
|
+
export { QrCodeProps as MQrCodeProps }
|
|
2405
|
+
export { QrCodeProps }
|
|
2406
|
+
|
|
2251
2407
|
declare const Radio: ForwardRefExoticComponent<RadioProps & RefAttributes<HTMLInputElement>>;
|
|
2252
2408
|
export { Radio as MRadio }
|
|
2253
2409
|
export { Radio }
|
|
@@ -2736,6 +2892,7 @@ export { TooltipProps }
|
|
|
2736
2892
|
declare interface TreeNode {
|
|
2737
2893
|
id: string;
|
|
2738
2894
|
label: string;
|
|
2895
|
+
kind?: 'file' | 'folder';
|
|
2739
2896
|
children?: TreeNode[];
|
|
2740
2897
|
icon?: ReactNode;
|
|
2741
2898
|
disabled?: boolean;
|
|
@@ -2743,10 +2900,29 @@ declare interface TreeNode {
|
|
|
2743
2900
|
export { TreeNode as MTreeNode }
|
|
2744
2901
|
export { TreeNode }
|
|
2745
2902
|
|
|
2746
|
-
declare function TreeView({ items, expandable, selectable, defaultExpanded, expanded: controlledExpanded, onExpandChange, selected: controlledSelected, onSelect, indent, className, ...rest }: TreeViewProps): JSX.Element;
|
|
2903
|
+
declare function TreeView({ items, expandable, selectable, defaultExpanded, expanded: controlledExpanded, onExpandChange, selected: controlledSelected, onSelect, indent, showLines, fileIcons, draggable, canDrop, onMove, contextMenuItems, onContextMenuAction, className, ...rest }: TreeViewProps): JSX.Element;
|
|
2747
2904
|
export { TreeView as MTreeView }
|
|
2748
2905
|
export { TreeView }
|
|
2749
2906
|
|
|
2907
|
+
declare interface TreeViewContextMenuItem {
|
|
2908
|
+
id: string;
|
|
2909
|
+
label: ReactNode;
|
|
2910
|
+
icon?: ReactNode;
|
|
2911
|
+
color?: MineralColor;
|
|
2912
|
+
disabled?: boolean;
|
|
2913
|
+
}
|
|
2914
|
+
export { TreeViewContextMenuItem as MTreeViewContextMenuItem }
|
|
2915
|
+
export { TreeViewContextMenuItem }
|
|
2916
|
+
|
|
2917
|
+
declare interface TreeViewMoveEvent {
|
|
2918
|
+
draggedId: string;
|
|
2919
|
+
draggedNode: TreeNode;
|
|
2920
|
+
targetId: string;
|
|
2921
|
+
targetNode: TreeNode;
|
|
2922
|
+
}
|
|
2923
|
+
export { TreeViewMoveEvent as MTreeViewMoveEvent }
|
|
2924
|
+
export { TreeViewMoveEvent }
|
|
2925
|
+
|
|
2750
2926
|
declare interface TreeViewProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
2751
2927
|
items: TreeNode[];
|
|
2752
2928
|
expandable?: boolean;
|
|
@@ -2757,6 +2933,13 @@ declare interface TreeViewProps extends Omit<HTMLAttributes<HTMLDivElement>, 'on
|
|
|
2757
2933
|
selected?: string | null;
|
|
2758
2934
|
onSelect?: (id: string, node: TreeNode) => void;
|
|
2759
2935
|
indent?: number;
|
|
2936
|
+
showLines?: boolean;
|
|
2937
|
+
fileIcons?: boolean;
|
|
2938
|
+
draggable?: boolean;
|
|
2939
|
+
canDrop?: (draggedNode: TreeNode, targetNode: TreeNode) => boolean;
|
|
2940
|
+
onMove?: (event: TreeViewMoveEvent) => void;
|
|
2941
|
+
contextMenuItems?: (node: TreeNode) => TreeViewContextMenuItem[];
|
|
2942
|
+
onContextMenuAction?: (actionId: string, node: TreeNode) => void;
|
|
2760
2943
|
}
|
|
2761
2944
|
export { TreeViewProps as MTreeViewProps }
|
|
2762
2945
|
export { TreeViewProps }
|