@clarlabs/ui 0.1.6 → 0.1.8
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.d.ts +110 -3
- package/dist/index.js +20 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2990 -2648
- package/dist/index.mjs.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -377,13 +377,16 @@ export declare interface DataListProps {
|
|
|
377
377
|
|
|
378
378
|
export declare type DataListSize = 'sm' | 'md' | 'lg';
|
|
379
379
|
|
|
380
|
-
export declare function DatePicker({ value, onChange, minDate, maxDate, className, ...props }: DatePickerProps): default_2.JSX.Element;
|
|
380
|
+
export declare function DatePicker({ value, onChange, minDate, maxDate, placeholder, disabled, variant, className, ...props }: DatePickerProps): default_2.JSX.Element;
|
|
381
381
|
|
|
382
|
-
export declare interface DatePickerProps extends Omit<default_2.
|
|
382
|
+
export declare interface DatePickerProps extends Omit<default_2.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
383
383
|
value?: Date;
|
|
384
384
|
onChange?: (date: Date | null) => void;
|
|
385
385
|
minDate?: Date;
|
|
386
386
|
maxDate?: Date;
|
|
387
|
+
placeholder?: string;
|
|
388
|
+
disabled?: boolean;
|
|
389
|
+
variant?: 'default' | 'minimal' | 'modern';
|
|
387
390
|
}
|
|
388
391
|
|
|
389
392
|
export declare interface DateRange {
|
|
@@ -391,7 +394,7 @@ export declare interface DateRange {
|
|
|
391
394
|
end: Date | null;
|
|
392
395
|
}
|
|
393
396
|
|
|
394
|
-
export declare function DateRangePicker({ value, onChange, minDate, maxDate, className }: DateRangePickerProps): default_2.JSX.Element;
|
|
397
|
+
export declare function DateRangePicker({ value, onChange, minDate, maxDate, className, placeholder, disabled, variant }: DateRangePickerProps): default_2.JSX.Element;
|
|
395
398
|
|
|
396
399
|
export declare interface DateRangePickerProps {
|
|
397
400
|
value?: DateRange;
|
|
@@ -399,6 +402,9 @@ export declare interface DateRangePickerProps {
|
|
|
399
402
|
minDate?: Date;
|
|
400
403
|
maxDate?: Date;
|
|
401
404
|
className?: string;
|
|
405
|
+
placeholder?: string;
|
|
406
|
+
disabled?: boolean;
|
|
407
|
+
variant?: 'default' | 'minimal' | 'modern';
|
|
402
408
|
}
|
|
403
409
|
|
|
404
410
|
export declare function Divider({ orientation, variant, label, className }: DividerProps): default_2.JSX.Element;
|
|
@@ -452,6 +458,44 @@ export declare interface FilePickerProps {
|
|
|
452
458
|
|
|
453
459
|
export declare type FileStatus = 'idle' | 'processing' | 'uploaded' | 'failed';
|
|
454
460
|
|
|
461
|
+
export declare function Footer({ variant, brandName, brandLogo, brandDescription, sections, socialLinks, copyright, showYear, bottomLinks, children, className, ...props }: FooterProps): default_2.JSX.Element;
|
|
462
|
+
|
|
463
|
+
export declare interface FooterLink {
|
|
464
|
+
label: string;
|
|
465
|
+
href: string;
|
|
466
|
+
external?: boolean;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
export declare interface FooterProps extends Omit<default_2.HTMLAttributes<HTMLElement>, 'title'> {
|
|
470
|
+
/** Footer variant style */
|
|
471
|
+
variant?: FooterVariant;
|
|
472
|
+
/** Company or brand name */
|
|
473
|
+
brandName?: string;
|
|
474
|
+
/** Brand logo */
|
|
475
|
+
brandLogo?: default_2.ReactNode;
|
|
476
|
+
/** Brand description or tagline */
|
|
477
|
+
brandDescription?: string;
|
|
478
|
+
/** Footer sections with links */
|
|
479
|
+
sections?: FooterSection[];
|
|
480
|
+
/** Social media links */
|
|
481
|
+
socialLinks?: SocialLink[];
|
|
482
|
+
/** Copyright text */
|
|
483
|
+
copyright?: string;
|
|
484
|
+
/** Show current year in copyright */
|
|
485
|
+
showYear?: boolean;
|
|
486
|
+
/** Bottom links (Privacy, Terms, etc) */
|
|
487
|
+
bottomLinks?: FooterLink[];
|
|
488
|
+
/** Additional content */
|
|
489
|
+
children?: default_2.ReactNode;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export declare interface FooterSection {
|
|
493
|
+
title: string;
|
|
494
|
+
links: FooterLink[];
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
export declare type FooterVariant = 'default' | 'minimal' | 'centered' | 'stacked';
|
|
498
|
+
|
|
455
499
|
export declare interface GalleryImage {
|
|
456
500
|
/** Unique identifier */
|
|
457
501
|
id: string;
|
|
@@ -591,6 +635,53 @@ export declare interface HeaderProps {
|
|
|
591
635
|
className?: string;
|
|
592
636
|
}
|
|
593
637
|
|
|
638
|
+
export declare function Hero({ variant, size, alignment, title, subtitle, backgroundImage, backgroundVideo, overlayOpacity, primaryAction, secondaryAction, children, image, imageAlt, imagePosition, className, style, ...props }: HeroProps): default_2.JSX.Element;
|
|
639
|
+
|
|
640
|
+
export declare type HeroAlignment = 'left' | 'center' | 'right';
|
|
641
|
+
|
|
642
|
+
export declare interface HeroProps extends Omit<default_2.HTMLAttributes<HTMLElement>, 'title'> {
|
|
643
|
+
/** Hero variant style */
|
|
644
|
+
variant?: HeroVariant;
|
|
645
|
+
/** Hero size */
|
|
646
|
+
size?: HeroSize;
|
|
647
|
+
/** Content alignment */
|
|
648
|
+
alignment?: HeroAlignment;
|
|
649
|
+
/** Hero title */
|
|
650
|
+
title?: default_2.ReactNode;
|
|
651
|
+
/** Hero subtitle or description */
|
|
652
|
+
subtitle?: default_2.ReactNode;
|
|
653
|
+
/** Background image URL */
|
|
654
|
+
backgroundImage?: string;
|
|
655
|
+
/** Background video URL */
|
|
656
|
+
backgroundVideo?: string;
|
|
657
|
+
/** Background overlay opacity (0-1) */
|
|
658
|
+
overlayOpacity?: number;
|
|
659
|
+
/** Primary action button */
|
|
660
|
+
primaryAction?: {
|
|
661
|
+
label: string;
|
|
662
|
+
onClick?: () => void;
|
|
663
|
+
href?: string;
|
|
664
|
+
};
|
|
665
|
+
/** Secondary action button */
|
|
666
|
+
secondaryAction?: {
|
|
667
|
+
label: string;
|
|
668
|
+
onClick?: () => void;
|
|
669
|
+
href?: string;
|
|
670
|
+
};
|
|
671
|
+
/** Additional content to render in the hero */
|
|
672
|
+
children?: default_2.ReactNode;
|
|
673
|
+
/** Image to display (for split variant) */
|
|
674
|
+
image?: string;
|
|
675
|
+
/** Image alt text */
|
|
676
|
+
imageAlt?: string;
|
|
677
|
+
/** Image position (for split variant) */
|
|
678
|
+
imagePosition?: 'left' | 'right';
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
export declare type HeroSize = 'small' | 'medium' | 'large' | 'fullscreen';
|
|
682
|
+
|
|
683
|
+
export declare type HeroVariant = 'default' | 'gradient' | 'image' | 'video' | 'split' | 'centered' | 'minimal';
|
|
684
|
+
|
|
594
685
|
export declare function ImageGallery({ images, variant, size, initialIndex, showThumbnails, showCaptions, autoPlay, columns, gap, lightbox, className, onImageClick, onIndexChange, showArrows, showIndicators, infinite }: ImageGalleryProps): default_2.JSX.Element;
|
|
595
686
|
|
|
596
687
|
export declare interface ImageGalleryProps {
|
|
@@ -972,6 +1063,12 @@ export declare function SkeletonText({ lines, ...props }: Omit<SkeletonProps, 'v
|
|
|
972
1063
|
|
|
973
1064
|
export declare type SkeletonVariant = 'text' | 'circular' | 'rectangular' | 'rounded';
|
|
974
1065
|
|
|
1066
|
+
export declare interface SocialLink {
|
|
1067
|
+
platform: string;
|
|
1068
|
+
href: string;
|
|
1069
|
+
icon?: default_2.ReactNode;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
975
1072
|
export declare function Spacer({ size, axis, spacing, className }: SpacerProps): default_2.JSX.Element;
|
|
976
1073
|
|
|
977
1074
|
export declare type SpacerAxis = 'horizontal' | 'vertical' | 'both';
|
|
@@ -1242,6 +1339,16 @@ export declare interface TimelineProps {
|
|
|
1242
1339
|
className?: string;
|
|
1243
1340
|
}
|
|
1244
1341
|
|
|
1342
|
+
export declare function Title({ children, subtitle, level, align, className }: TitleProps): default_2.JSX.Element;
|
|
1343
|
+
|
|
1344
|
+
export declare interface TitleProps {
|
|
1345
|
+
children: default_2.ReactNode;
|
|
1346
|
+
subtitle?: string;
|
|
1347
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
1348
|
+
align?: 'left' | 'center' | 'right';
|
|
1349
|
+
className?: string;
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1245
1352
|
declare interface ToastContextValue {
|
|
1246
1353
|
showToast: (message: string, options?: ToastOptions) => void;
|
|
1247
1354
|
}
|