@marcoschwartz/lite-ui 0.10.0 → 0.15.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.d.mts +273 -7
- package/dist/index.d.ts +273 -7
- package/dist/index.js +3811 -414
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3770 -420
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -2
package/dist/index.d.mts
CHANGED
|
@@ -26,6 +26,8 @@ interface SelectProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'size'
|
|
|
26
26
|
label?: string;
|
|
27
27
|
error?: string;
|
|
28
28
|
helperText?: string;
|
|
29
|
+
searchable?: boolean;
|
|
30
|
+
searchPlaceholder?: string;
|
|
29
31
|
}
|
|
30
32
|
declare const Select: React.FC<SelectProps>;
|
|
31
33
|
|
|
@@ -142,10 +144,11 @@ interface ActionMenuProps {
|
|
|
142
144
|
items: ActionMenuItem[];
|
|
143
145
|
trigger?: React.ReactNode;
|
|
144
146
|
position?: 'left' | 'right';
|
|
147
|
+
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
145
148
|
}
|
|
146
149
|
declare const ActionMenu: React.FC<ActionMenuProps>;
|
|
147
150
|
|
|
148
|
-
interface CardProps {
|
|
151
|
+
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
149
152
|
children: React.ReactNode;
|
|
150
153
|
className?: string;
|
|
151
154
|
padding?: 'none' | 'sm' | 'md' | 'lg';
|
|
@@ -310,6 +313,10 @@ interface SliderProps {
|
|
|
310
313
|
showValue?: boolean;
|
|
311
314
|
label?: string;
|
|
312
315
|
className?: string;
|
|
316
|
+
range?: boolean;
|
|
317
|
+
rangeValue?: [number, number];
|
|
318
|
+
defaultRangeValue?: [number, number];
|
|
319
|
+
onRangeChange?: (value: [number, number]) => void;
|
|
313
320
|
}
|
|
314
321
|
declare const Slider: React.FC<SliderProps>;
|
|
315
322
|
|
|
@@ -333,6 +340,20 @@ interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaEl
|
|
|
333
340
|
}
|
|
334
341
|
declare const Textarea: React.FC<TextareaProps>;
|
|
335
342
|
|
|
343
|
+
interface RichTextEditorProps {
|
|
344
|
+
value?: string;
|
|
345
|
+
onChange?: (html: string) => void;
|
|
346
|
+
placeholder?: string;
|
|
347
|
+
className?: string;
|
|
348
|
+
minHeight?: string;
|
|
349
|
+
maxHeight?: string;
|
|
350
|
+
disabled?: boolean;
|
|
351
|
+
label?: string;
|
|
352
|
+
error?: string;
|
|
353
|
+
helperText?: string;
|
|
354
|
+
}
|
|
355
|
+
declare const RichTextEditor: React.FC<RichTextEditorProps>;
|
|
356
|
+
|
|
336
357
|
interface Toast {
|
|
337
358
|
id: string;
|
|
338
359
|
message: string;
|
|
@@ -408,6 +429,170 @@ interface FileUploadProps {
|
|
|
408
429
|
}
|
|
409
430
|
declare const FileUpload: React.FC<FileUploadProps>;
|
|
410
431
|
|
|
432
|
+
interface Chapter {
|
|
433
|
+
title: string;
|
|
434
|
+
startTime: number;
|
|
435
|
+
}
|
|
436
|
+
interface AudioPlayerProps {
|
|
437
|
+
src: string;
|
|
438
|
+
title?: string;
|
|
439
|
+
artist?: string;
|
|
440
|
+
album?: string;
|
|
441
|
+
coverArt?: string;
|
|
442
|
+
variant?: 'default' | 'compact' | 'mini';
|
|
443
|
+
autoPlay?: boolean;
|
|
444
|
+
loop?: boolean;
|
|
445
|
+
preload?: 'none' | 'metadata' | 'auto';
|
|
446
|
+
onPlay?: () => void;
|
|
447
|
+
onPause?: () => void;
|
|
448
|
+
onEnded?: () => void;
|
|
449
|
+
onTimeUpdate?: (currentTime: number) => void;
|
|
450
|
+
className?: string;
|
|
451
|
+
showSkipButtons?: boolean;
|
|
452
|
+
onSkipBack?: () => void;
|
|
453
|
+
onSkipForward?: () => void;
|
|
454
|
+
chapters?: Chapter[];
|
|
455
|
+
showChapters?: boolean;
|
|
456
|
+
onChapterChange?: (chapter: Chapter) => void;
|
|
457
|
+
}
|
|
458
|
+
declare const AudioPlayer: React.FC<AudioPlayerProps>;
|
|
459
|
+
|
|
460
|
+
interface VideoPlayerProps {
|
|
461
|
+
src: string;
|
|
462
|
+
poster?: string;
|
|
463
|
+
title?: string;
|
|
464
|
+
variant?: 'default' | 'compact';
|
|
465
|
+
autoPlay?: boolean;
|
|
466
|
+
loop?: boolean;
|
|
467
|
+
muted?: boolean;
|
|
468
|
+
controls?: boolean;
|
|
469
|
+
preload?: 'none' | 'metadata' | 'auto';
|
|
470
|
+
width?: string | number;
|
|
471
|
+
height?: string | number;
|
|
472
|
+
aspectRatio?: '16:9' | '4:3' | '21:9' | '1:1';
|
|
473
|
+
onPlay?: () => void;
|
|
474
|
+
onPause?: () => void;
|
|
475
|
+
onEnded?: () => void;
|
|
476
|
+
onTimeUpdate?: (currentTime: number) => void;
|
|
477
|
+
className?: string;
|
|
478
|
+
showControls?: boolean;
|
|
479
|
+
chapters?: Chapter[];
|
|
480
|
+
showChapters?: boolean;
|
|
481
|
+
onChapterChange?: (chapter: Chapter) => void;
|
|
482
|
+
}
|
|
483
|
+
declare const VideoPlayer: React.FC<VideoPlayerProps>;
|
|
484
|
+
|
|
485
|
+
interface LineChartDataPoint {
|
|
486
|
+
x: string | number;
|
|
487
|
+
y: number;
|
|
488
|
+
}
|
|
489
|
+
interface LineChartSeries {
|
|
490
|
+
name: string;
|
|
491
|
+
data: LineChartDataPoint[];
|
|
492
|
+
color?: string;
|
|
493
|
+
}
|
|
494
|
+
interface LineChartProps {
|
|
495
|
+
data: LineChartSeries[];
|
|
496
|
+
width?: number;
|
|
497
|
+
height?: number;
|
|
498
|
+
aspectRatio?: number;
|
|
499
|
+
responsive?: boolean;
|
|
500
|
+
showGrid?: boolean;
|
|
501
|
+
showXAxis?: boolean;
|
|
502
|
+
showYAxis?: boolean;
|
|
503
|
+
showLegend?: boolean;
|
|
504
|
+
showTooltip?: boolean;
|
|
505
|
+
showDots?: boolean;
|
|
506
|
+
curved?: boolean;
|
|
507
|
+
strokeWidth?: number;
|
|
508
|
+
className?: string;
|
|
509
|
+
xAxisLabel?: string;
|
|
510
|
+
yAxisLabel?: string;
|
|
511
|
+
}
|
|
512
|
+
declare const LineChart: React.FC<LineChartProps>;
|
|
513
|
+
|
|
514
|
+
interface BarChartDataPoint {
|
|
515
|
+
x: string | number;
|
|
516
|
+
y: number;
|
|
517
|
+
}
|
|
518
|
+
interface BarChartSeries {
|
|
519
|
+
name: string;
|
|
520
|
+
data: BarChartDataPoint[];
|
|
521
|
+
color?: string;
|
|
522
|
+
}
|
|
523
|
+
interface BarChartProps {
|
|
524
|
+
data: BarChartSeries[];
|
|
525
|
+
width?: number;
|
|
526
|
+
height?: number;
|
|
527
|
+
aspectRatio?: number;
|
|
528
|
+
responsive?: boolean;
|
|
529
|
+
showGrid?: boolean;
|
|
530
|
+
showXAxis?: boolean;
|
|
531
|
+
showYAxis?: boolean;
|
|
532
|
+
showLegend?: boolean;
|
|
533
|
+
showTooltip?: boolean;
|
|
534
|
+
showValues?: boolean;
|
|
535
|
+
stacked?: boolean;
|
|
536
|
+
horizontal?: boolean;
|
|
537
|
+
barWidth?: number;
|
|
538
|
+
className?: string;
|
|
539
|
+
xAxisLabel?: string;
|
|
540
|
+
yAxisLabel?: string;
|
|
541
|
+
}
|
|
542
|
+
declare const BarChart: React.FC<BarChartProps>;
|
|
543
|
+
|
|
544
|
+
interface AreaChartDataPoint {
|
|
545
|
+
x: string | number;
|
|
546
|
+
y: number;
|
|
547
|
+
}
|
|
548
|
+
interface AreaChartSeries {
|
|
549
|
+
name: string;
|
|
550
|
+
data: AreaChartDataPoint[];
|
|
551
|
+
color?: string;
|
|
552
|
+
}
|
|
553
|
+
interface AreaChartProps {
|
|
554
|
+
data: AreaChartSeries[];
|
|
555
|
+
width?: number;
|
|
556
|
+
height?: number;
|
|
557
|
+
aspectRatio?: number;
|
|
558
|
+
responsive?: boolean;
|
|
559
|
+
showGrid?: boolean;
|
|
560
|
+
showXAxis?: boolean;
|
|
561
|
+
showYAxis?: boolean;
|
|
562
|
+
showLegend?: boolean;
|
|
563
|
+
showTooltip?: boolean;
|
|
564
|
+
showDots?: boolean;
|
|
565
|
+
curved?: boolean;
|
|
566
|
+
stacked?: boolean;
|
|
567
|
+
fillOpacity?: number;
|
|
568
|
+
strokeWidth?: number;
|
|
569
|
+
className?: string;
|
|
570
|
+
xAxisLabel?: string;
|
|
571
|
+
yAxisLabel?: string;
|
|
572
|
+
}
|
|
573
|
+
declare const AreaChart: React.FC<AreaChartProps>;
|
|
574
|
+
|
|
575
|
+
interface PieChartDataPoint {
|
|
576
|
+
label: string;
|
|
577
|
+
value: number;
|
|
578
|
+
color?: string;
|
|
579
|
+
}
|
|
580
|
+
interface PieChartProps {
|
|
581
|
+
data: PieChartDataPoint[];
|
|
582
|
+
width?: number;
|
|
583
|
+
height?: number;
|
|
584
|
+
aspectRatio?: number;
|
|
585
|
+
responsive?: boolean;
|
|
586
|
+
showLegend?: boolean;
|
|
587
|
+
showLabels?: boolean;
|
|
588
|
+
showValues?: boolean;
|
|
589
|
+
showPercentages?: boolean;
|
|
590
|
+
donut?: boolean;
|
|
591
|
+
donutWidth?: number;
|
|
592
|
+
className?: string;
|
|
593
|
+
}
|
|
594
|
+
declare const PieChart: React.FC<PieChartProps>;
|
|
595
|
+
|
|
411
596
|
type ThemeName = 'default' | 'minimalistic';
|
|
412
597
|
interface ButtonTheme {
|
|
413
598
|
primary: string;
|
|
@@ -451,6 +636,7 @@ interface ThemeContextValue {
|
|
|
451
636
|
setTheme: (themeName: ThemeName) => void;
|
|
452
637
|
colorMode: ColorMode;
|
|
453
638
|
setColorMode: (mode: ColorMode) => void;
|
|
639
|
+
toggleColorMode: () => void;
|
|
454
640
|
resolvedColorMode: 'light' | 'dark';
|
|
455
641
|
}
|
|
456
642
|
declare function useTheme(): ThemeContextValue;
|
|
@@ -492,33 +678,113 @@ declare const MenuIcon: IconComponent;
|
|
|
492
678
|
|
|
493
679
|
declare const CloseIcon: IconComponent;
|
|
494
680
|
|
|
681
|
+
declare const PlusIcon: IconComponent;
|
|
682
|
+
|
|
683
|
+
declare const ArrowLeftIcon: IconComponent;
|
|
684
|
+
|
|
685
|
+
declare const ArrowRightIcon: IconComponent;
|
|
686
|
+
|
|
687
|
+
declare const ArrowUpIcon: IconComponent;
|
|
688
|
+
|
|
689
|
+
declare const ArrowDownIcon: IconComponent;
|
|
690
|
+
|
|
495
691
|
declare const ChevronDownIcon: IconComponent;
|
|
496
692
|
|
|
693
|
+
declare const ChevronUpIcon: IconComponent;
|
|
694
|
+
|
|
695
|
+
declare const ChevronLeftIcon: IconComponent;
|
|
696
|
+
|
|
497
697
|
declare const ChevronRightIcon: IconComponent;
|
|
498
698
|
|
|
699
|
+
declare const ExternalLinkIcon: IconComponent;
|
|
700
|
+
|
|
499
701
|
declare const CheckIcon: IconComponent;
|
|
500
702
|
|
|
501
|
-
declare const
|
|
703
|
+
declare const CheckCircleIcon: IconComponent;
|
|
704
|
+
|
|
705
|
+
declare const AlertCircleIcon: IconComponent;
|
|
706
|
+
|
|
707
|
+
declare const InfoCircleIcon: IconComponent;
|
|
502
708
|
|
|
503
709
|
declare const TrashIcon: IconComponent;
|
|
504
710
|
|
|
505
711
|
declare const EditIcon: IconComponent;
|
|
506
712
|
|
|
713
|
+
declare const CopyIcon: IconComponent;
|
|
714
|
+
|
|
715
|
+
declare const SaveIcon: IconComponent;
|
|
716
|
+
|
|
717
|
+
declare const DownloadIcon: IconComponent;
|
|
718
|
+
|
|
719
|
+
declare const UploadIcon: IconComponent;
|
|
720
|
+
|
|
721
|
+
declare const RefreshIcon: IconComponent;
|
|
722
|
+
|
|
723
|
+
declare const EyeIcon: IconComponent;
|
|
724
|
+
|
|
725
|
+
declare const EyeOffIcon: IconComponent;
|
|
726
|
+
|
|
727
|
+
declare const PlayIcon: IconComponent;
|
|
728
|
+
|
|
729
|
+
declare const PauseIcon: IconComponent;
|
|
730
|
+
|
|
731
|
+
declare const StopIcon: IconComponent;
|
|
732
|
+
|
|
733
|
+
declare const SkipBackIcon: IconComponent;
|
|
734
|
+
|
|
735
|
+
declare const SkipForwardIcon: IconComponent;
|
|
736
|
+
|
|
737
|
+
declare const VolumeUpIcon: IconComponent;
|
|
738
|
+
|
|
739
|
+
declare const VolumeOffIcon: IconComponent;
|
|
740
|
+
|
|
741
|
+
declare const FullscreenIcon: IconComponent;
|
|
742
|
+
|
|
743
|
+
declare const FullscreenExitIcon: IconComponent;
|
|
744
|
+
|
|
507
745
|
declare const MailIcon: IconComponent;
|
|
508
746
|
|
|
747
|
+
declare const ChatIcon: IconComponent;
|
|
748
|
+
|
|
509
749
|
declare const StarIcon: IconComponent;
|
|
510
750
|
|
|
511
751
|
declare const HeartIcon: IconComponent;
|
|
512
752
|
|
|
513
|
-
declare const
|
|
753
|
+
declare const CameraIcon: IconComponent;
|
|
514
754
|
|
|
515
|
-
declare const
|
|
755
|
+
declare const CalendarIcon: IconComponent;
|
|
516
756
|
|
|
517
|
-
declare const
|
|
757
|
+
declare const BookIcon: IconComponent;
|
|
758
|
+
|
|
759
|
+
declare const FileIcon: IconComponent;
|
|
760
|
+
|
|
761
|
+
declare const FolderIcon: IconComponent;
|
|
762
|
+
|
|
763
|
+
declare const ImageIcon: IconComponent;
|
|
764
|
+
|
|
765
|
+
declare const CodeIcon: IconComponent;
|
|
766
|
+
|
|
767
|
+
declare const TerminalIcon: IconComponent;
|
|
768
|
+
|
|
769
|
+
declare const DatabaseIcon: IconComponent;
|
|
770
|
+
|
|
771
|
+
declare const CloudIcon: IconComponent;
|
|
772
|
+
|
|
773
|
+
declare const PlugIcon: IconComponent;
|
|
774
|
+
|
|
775
|
+
declare const KeyIcon: IconComponent;
|
|
518
776
|
|
|
519
777
|
declare const LockIcon: IconComponent;
|
|
520
778
|
|
|
521
|
-
declare const
|
|
779
|
+
declare const ShieldIcon: IconComponent;
|
|
780
|
+
|
|
781
|
+
declare const SparklesIcon: IconComponent;
|
|
782
|
+
|
|
783
|
+
declare const BrainIcon: IconComponent;
|
|
784
|
+
|
|
785
|
+
declare const GlobeIcon: IconComponent;
|
|
786
|
+
|
|
787
|
+
declare const BeakerIcon: IconComponent;
|
|
522
788
|
|
|
523
789
|
declare const GoogleIcon: IconComponent;
|
|
524
790
|
|
|
@@ -536,4 +802,4 @@ declare const YouTubeIcon: IconComponent;
|
|
|
536
802
|
|
|
537
803
|
declare const SlackIcon: IconComponent;
|
|
538
804
|
|
|
539
|
-
export { ActionMenu, type ActionMenuItem, type ActionMenuProps, Alert, type AlertProps, AppShell, type AppShellProps, AppleIcon, Avatar, type AvatarProps, Badge, type BadgeProps, BellIcon, Button, type ButtonProps, type ButtonTheme, Calendar, CalendarIcon, type CalendarProps, CameraIcon, Card, type CardProps, CheckIcon, Checkbox, type CheckboxProps, ChevronDownIcon, ChevronRightIcon, CloseIcon, type ColorMode, type Column, DatePicker, type DatePickerProps, DateTimePicker, type DateTimePickerProps, Divider, type DividerProps, DownloadIcon, Drawer, type DrawerProps, EditIcon, FacebookIcon, FileUpload, type FileUploadProps, GitHubIcon, GoogleIcon, HeartIcon, HomeIcon, type IconComponent, type IconProps, LinkedInIcon, LockIcon, MailIcon, MenuIcon, Modal, type ModalProps, Navbar, type NavbarProps, NumberInput, type NumberInputProps, Pagination, type PaginationProps, PlusIcon, ProgressBar, type ProgressBarProps, Radio, type RadioOption, type RadioProps, SearchIcon, Select, type SelectOption, type SelectProps, type SelectTheme, SettingsIcon, Sidebar, type SidebarContextValue, type SidebarProps, SidebarProvider, type SidebarProviderProps, SlackIcon, Slider, type SliderProps, Spinner, type SpinnerProps, StarIcon, type Step, Stepper, type StepperProps, type Tab, Table, type TableProps, Tabs, type TabsProps, TextInput, type TextInputProps, Textarea, type TextareaProps, type Theme, type ThemeName, ThemeProvider, TimePicker, type TimePickerProps, type Toast, ToastProvider, type ToastProviderProps, Toggle, type ToggleProps, TrashIcon, TwitterIcon, UploadIcon, UserIcon, YouTubeIcon, getThemeScript, themeScript, themes, toast, useSidebar, useTheme, useToast };
|
|
805
|
+
export { ActionMenu, type ActionMenuItem, type ActionMenuProps, Alert, AlertCircleIcon, type AlertProps, AppShell, type AppShellProps, AppleIcon, AreaChart, type AreaChartDataPoint, type AreaChartProps, type AreaChartSeries, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AudioPlayer, type AudioPlayerProps, Avatar, type AvatarProps, Badge, type BadgeProps, BarChart, type BarChartDataPoint, type BarChartProps, type BarChartSeries, BeakerIcon, BellIcon, BookIcon, BrainIcon, Button, type ButtonProps, type ButtonTheme, Calendar, CalendarIcon, type CalendarProps, CameraIcon, Card, type CardProps, type Chapter, ChatIcon, CheckCircleIcon, CheckIcon, Checkbox, type CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CloudIcon, CodeIcon, type ColorMode, type Column, CopyIcon, DatabaseIcon, DatePicker, type DatePickerProps, DateTimePicker, type DateTimePickerProps, Divider, type DividerProps, DownloadIcon, Drawer, type DrawerProps, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FacebookIcon, FileIcon, FileUpload, type FileUploadProps, FolderIcon, FullscreenExitIcon, FullscreenIcon, GitHubIcon, GlobeIcon, GoogleIcon, HeartIcon, HomeIcon, type IconComponent, type IconProps, ImageIcon, InfoCircleIcon, KeyIcon, LineChart, type LineChartDataPoint, type LineChartProps, type LineChartSeries, LinkedInIcon, LockIcon, MailIcon, MenuIcon, Modal, type ModalProps, Navbar, type NavbarProps, NumberInput, type NumberInputProps, Pagination, type PaginationProps, PauseIcon, PieChart, type PieChartDataPoint, type PieChartProps, PlayIcon, PlugIcon, PlusIcon, ProgressBar, type ProgressBarProps, Radio, type RadioOption, type RadioProps, RefreshIcon, RichTextEditor, type RichTextEditorProps, SaveIcon, SearchIcon, Select, type SelectOption, type SelectProps, type SelectTheme, SettingsIcon, ShieldIcon, Sidebar, type SidebarContextValue, type SidebarProps, SidebarProvider, type SidebarProviderProps, SkipBackIcon, SkipForwardIcon, SlackIcon, Slider, type SliderProps, SparklesIcon, Spinner, type SpinnerProps, StarIcon, type Step, Stepper, type StepperProps, StopIcon, type Tab, Table, type TableProps, Tabs, type TabsProps, TerminalIcon, TextInput, type TextInputProps, Textarea, type TextareaProps, type Theme, type ThemeName, ThemeProvider, TimePicker, type TimePickerProps, type Toast, ToastProvider, type ToastProviderProps, Toggle, type ToggleProps, TrashIcon, TwitterIcon, UploadIcon, UserIcon, VideoPlayer, type VideoPlayerProps, VolumeOffIcon, VolumeUpIcon, YouTubeIcon, getThemeScript, themeScript, themes, toast, useSidebar, useTheme, useToast };
|