@neynar/ui 0.1.1 → 0.1.2
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/components/ui/accordion.d.ts +1 -25
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +240 -46
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert.d.ts +73 -11
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/aspect-ratio.d.ts +44 -10
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/components/ui/avatar.d.ts +117 -33
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/badge.d.ts +50 -71
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +231 -49
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts +189 -71
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/calendar.d.ts +197 -40
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/card.d.ts +7 -22
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/carousel.d.ts +369 -99
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/chart.d.ts.map +1 -1
- package/dist/components/ui/checkbox.d.ts +110 -38
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/collapsible.d.ts +246 -61
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/combobox.d.ts +207 -159
- package/dist/components/ui/combobox.d.ts.map +1 -1
- package/dist/components/ui/command.d.ts +336 -67
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/container.d.ts +159 -64
- package/dist/components/ui/container.d.ts.map +1 -1
- package/dist/components/ui/context-menu.d.ts +321 -39
- package/dist/components/ui/context-menu.d.ts.map +1 -1
- package/dist/components/ui/date-picker.d.ts +113 -86
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/dialog.d.ts +106 -25
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/drawer.d.ts +388 -59
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +521 -74
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/empty-state.d.ts +148 -76
- package/dist/components/ui/empty-state.d.ts.map +1 -1
- package/dist/components/ui/hover-card.d.ts +253 -34
- package/dist/components/ui/hover-card.d.ts.map +1 -1
- package/dist/components/ui/input.d.ts +143 -44
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/label.d.ts +0 -8
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/menubar.d.ts +288 -46
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu.d.ts +444 -127
- package/dist/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/pagination.d.ts +342 -66
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/popover.d.ts +0 -8
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/progress.d.ts +88 -30
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/radio-group.d.ts +189 -45
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/resizable.d.ts +178 -62
- package/dist/components/ui/resizable.d.ts.map +1 -1
- package/dist/components/ui/scroll-area.d.ts +180 -21
- package/dist/components/ui/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/select.d.ts +382 -60
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/separator.d.ts +52 -39
- package/dist/components/ui/separator.d.ts.map +1 -1
- package/dist/components/ui/sheet.d.ts +144 -27
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sidebar.d.ts +81 -31
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/skeleton.d.ts +94 -32
- package/dist/components/ui/skeleton.d.ts.map +1 -1
- package/dist/components/ui/slider.d.ts +37 -31
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/sonner.d.ts +280 -46
- package/dist/components/ui/sonner.d.ts.map +1 -1
- package/dist/components/ui/stack.d.ts +289 -148
- package/dist/components/ui/stack.d.ts.map +1 -1
- package/dist/components/ui/stories/aspect-ratio.stories.d.ts +1 -2
- package/dist/components/ui/stories/aspect-ratio.stories.d.ts.map +1 -1
- package/dist/components/ui/stories/container.stories.d.ts +2 -3
- package/dist/components/ui/stories/container.stories.d.ts.map +1 -1
- package/dist/components/ui/stories/empty-state.stories.d.ts +2 -2
- package/dist/components/ui/stories/scroll-area.stories.d.ts +1 -2
- package/dist/components/ui/stories/scroll-area.stories.d.ts.map +1 -1
- package/dist/components/ui/stories/stack.stories.d.ts +1 -1
- package/dist/components/ui/stories/text-field.stories.d.ts +7 -1
- package/dist/components/ui/stories/text-field.stories.d.ts.map +1 -1
- package/dist/components/ui/switch.d.ts +44 -38
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/table.d.ts +33 -0
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/tabs.d.ts +4 -22
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/text-field.d.ts +170 -84
- package/dist/components/ui/text-field.d.ts.map +1 -1
- package/dist/components/ui/textarea.d.ts +106 -29
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/theme-toggle.d.ts +190 -65
- package/dist/components/ui/theme-toggle.d.ts.map +1 -1
- package/dist/components/ui/theme.d.ts +107 -23
- package/dist/components/ui/theme.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.d.ts +143 -67
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle.d.ts +118 -30
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/tooltip.d.ts +152 -28
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/typography.d.ts +452 -134
- package/dist/components/ui/typography.d.ts.map +1 -1
- package/dist/index.js +9388 -8281
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/llms.txt +173 -3
- package/package.json +5 -2
- package/src/components/ui/accordion.tsx +112 -27
- package/src/components/ui/alert-dialog.tsx +401 -46
- package/src/components/ui/alert.tsx +114 -11
- package/src/components/ui/aspect-ratio.tsx +69 -14
- package/src/components/ui/avatar.tsx +179 -33
- package/src/components/ui/badge.tsx +74 -75
- package/src/components/ui/breadcrumb.tsx +335 -50
- package/src/components/ui/button.tsx +198 -90
- package/src/components/ui/calendar.tsx +867 -43
- package/src/components/ui/card.tsx +140 -33
- package/src/components/ui/carousel.tsx +529 -98
- package/src/components/ui/chart.tsx +222 -1
- package/src/components/ui/checkbox.tsx +176 -38
- package/src/components/ui/collapsible.tsx +321 -67
- package/src/components/ui/combobox.tsx +284 -83
- package/src/components/ui/command.tsx +527 -67
- package/src/components/ui/container.tsx +217 -65
- package/src/components/ui/context-menu.tsx +716 -51
- package/src/components/ui/date-picker.tsx +228 -38
- package/src/components/ui/dialog.tsx +270 -33
- package/src/components/ui/drawer.tsx +546 -67
- package/src/components/ui/dropdown-menu.tsx +657 -74
- package/src/components/ui/empty-state.tsx +241 -82
- package/src/components/ui/hover-card.tsx +328 -39
- package/src/components/ui/input.tsx +207 -44
- package/src/components/ui/label.tsx +98 -8
- package/src/components/ui/menubar.tsx +587 -54
- package/src/components/ui/navigation-menu.tsx +557 -128
- package/src/components/ui/pagination.tsx +561 -79
- package/src/components/ui/popover.tsx +119 -8
- package/src/components/ui/progress.tsx +131 -29
- package/src/components/ui/radio-group.tsx +260 -51
- package/src/components/ui/resizable.tsx +289 -63
- package/src/components/ui/scroll-area.tsx +377 -66
- package/src/components/ui/select.tsx +545 -60
- package/src/components/ui/separator.tsx +146 -40
- package/src/components/ui/sheet.tsx +348 -31
- package/src/components/ui/sidebar.tsx +471 -29
- package/src/components/ui/skeleton.tsx +114 -32
- package/src/components/ui/slider.tsx +77 -31
- package/src/components/ui/sonner.tsx +574 -46
- package/src/components/ui/stack.tsx +423 -101
- package/src/components/ui/switch.tsx +78 -39
- package/src/components/ui/table.tsx +170 -4
- package/src/components/ui/tabs.tsx +108 -22
- package/src/components/ui/text-field.tsx +226 -81
- package/src/components/ui/textarea.tsx +180 -29
- package/src/components/ui/theme-toggle.tsx +313 -65
- package/src/components/ui/theme.tsx +117 -23
- package/src/components/ui/toggle-group.tsx +280 -69
- package/src/components/ui/toggle.tsx +124 -35
- package/src/components/ui/tooltip.tsx +239 -29
- package/src/components/ui/typography.tsx +1115 -165
|
@@ -129,11 +129,12 @@ declare function useSidebar(): SidebarContextProps;
|
|
|
129
129
|
* @see {@link Sidebar} - Main sidebar component
|
|
130
130
|
* @since 1.0.0
|
|
131
131
|
*/
|
|
132
|
-
declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }:
|
|
132
|
+
declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: {
|
|
133
133
|
defaultOpen?: boolean;
|
|
134
134
|
open?: boolean;
|
|
135
135
|
onOpenChange?: (open: boolean) => void;
|
|
136
|
-
|
|
136
|
+
children?: React.ReactNode;
|
|
137
|
+
} & React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
137
138
|
/**
|
|
138
139
|
* Flexible and responsive navigation sidebar component
|
|
139
140
|
*
|
|
@@ -259,11 +260,13 @@ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: se
|
|
|
259
260
|
* @see {@link https://ui.shadcn.com/docs/components/sidebar} - shadcn/ui Sidebar documentation
|
|
260
261
|
* @since 1.0.0
|
|
261
262
|
*/
|
|
262
|
-
declare function Sidebar({ side, variant, collapsible, className, children, ...props }:
|
|
263
|
+
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: {
|
|
263
264
|
side?: "left" | "right";
|
|
264
265
|
variant?: "sidebar" | "floating" | "inset";
|
|
265
266
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
266
|
-
|
|
267
|
+
className?: string;
|
|
268
|
+
children?: React.ReactNode;
|
|
269
|
+
} & React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
267
270
|
/**
|
|
268
271
|
* Interactive button component for toggling sidebar visibility
|
|
269
272
|
*
|
|
@@ -307,7 +310,10 @@ declare function Sidebar({ side, variant, collapsible, className, children, ...p
|
|
|
307
310
|
* @see {@link SidebarProvider} - Required context provider
|
|
308
311
|
* @since 1.0.0
|
|
309
312
|
*/
|
|
310
|
-
declare function SidebarTrigger({ className, onClick, ...props }:
|
|
313
|
+
declare function SidebarTrigger({ className, onClick, ...props }: {
|
|
314
|
+
className?: string;
|
|
315
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
316
|
+
} & Omit<React.ComponentProps<typeof Button>, "onClick">): import("react/jsx-runtime").JSX.Element;
|
|
311
317
|
/**
|
|
312
318
|
* Interactive rail component for sidebar edge interaction
|
|
313
319
|
*
|
|
@@ -340,7 +346,9 @@ declare function SidebarTrigger({ className, onClick, ...props }: React.Componen
|
|
|
340
346
|
* @see {@link SidebarTrigger} - Alternative toggle button
|
|
341
347
|
* @since 1.0.0
|
|
342
348
|
*/
|
|
343
|
-
declare function SidebarRail({ className, ...props }:
|
|
349
|
+
declare function SidebarRail({ className, ...props }: {
|
|
350
|
+
className?: string;
|
|
351
|
+
} & React.ComponentProps<"button">): import("react/jsx-runtime").JSX.Element;
|
|
344
352
|
/**
|
|
345
353
|
* Main content container that adapts to sidebar layout
|
|
346
354
|
*
|
|
@@ -392,7 +400,9 @@ declare function SidebarRail({ className, ...props }: React.ComponentProps<"butt
|
|
|
392
400
|
* @see {@link SidebarProvider} - Required context provider
|
|
393
401
|
* @since 1.0.0
|
|
394
402
|
*/
|
|
395
|
-
declare function SidebarInset({ className, ...props }:
|
|
403
|
+
declare function SidebarInset({ className, ...props }: {
|
|
404
|
+
className?: string;
|
|
405
|
+
} & React.ComponentProps<"main">): import("react/jsx-runtime").JSX.Element;
|
|
396
406
|
/**
|
|
397
407
|
* Input component optimized for sidebar usage
|
|
398
408
|
*
|
|
@@ -435,7 +445,9 @@ declare function SidebarInset({ className, ...props }: React.ComponentProps<"mai
|
|
|
435
445
|
* @see {@link Input} - Base input component
|
|
436
446
|
* @since 1.0.0
|
|
437
447
|
*/
|
|
438
|
-
declare function SidebarInput({ className, ...props }:
|
|
448
|
+
declare function SidebarInput({ className, ...props }: {
|
|
449
|
+
className?: string;
|
|
450
|
+
} & React.ComponentProps<typeof Input>): import("react/jsx-runtime").JSX.Element;
|
|
439
451
|
/**
|
|
440
452
|
* Header section container for sidebar content
|
|
441
453
|
*
|
|
@@ -497,7 +509,9 @@ declare function SidebarInput({ className, ...props }: React.ComponentProps<type
|
|
|
497
509
|
* @see {@link SidebarContent} - Main scrollable content area
|
|
498
510
|
* @since 1.0.0
|
|
499
511
|
*/
|
|
500
|
-
declare function SidebarHeader({ className, ...props }:
|
|
512
|
+
declare function SidebarHeader({ className, ...props }: {
|
|
513
|
+
className?: string;
|
|
514
|
+
} & React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
501
515
|
/**
|
|
502
516
|
* Footer section container for sidebar content
|
|
503
517
|
*
|
|
@@ -550,7 +564,9 @@ declare function SidebarHeader({ className, ...props }: React.ComponentProps<"di
|
|
|
550
564
|
* @see {@link SidebarContent} - Main content area
|
|
551
565
|
* @since 1.0.0
|
|
552
566
|
*/
|
|
553
|
-
declare function SidebarFooter({ className, ...props }:
|
|
567
|
+
declare function SidebarFooter({ className, ...props }: {
|
|
568
|
+
className?: string;
|
|
569
|
+
} & React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
554
570
|
/**
|
|
555
571
|
* Visual separator for organizing sidebar sections
|
|
556
572
|
*
|
|
@@ -602,7 +618,9 @@ declare function SidebarFooter({ className, ...props }: React.ComponentProps<"di
|
|
|
602
618
|
* @see {@link Separator} - Base separator component
|
|
603
619
|
* @since 1.0.0
|
|
604
620
|
*/
|
|
605
|
-
declare function SidebarSeparator({ className, ...props }:
|
|
621
|
+
declare function SidebarSeparator({ className, ...props }: {
|
|
622
|
+
className?: string;
|
|
623
|
+
} & React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
|
|
606
624
|
/**
|
|
607
625
|
* Scrollable main content area of the sidebar
|
|
608
626
|
*
|
|
@@ -667,7 +685,9 @@ declare function SidebarSeparator({ className, ...props }: React.ComponentProps<
|
|
|
667
685
|
* @see {@link SidebarMenu} - Menu container component
|
|
668
686
|
* @since 1.0.0
|
|
669
687
|
*/
|
|
670
|
-
declare function SidebarContent({ className, ...props }:
|
|
688
|
+
declare function SidebarContent({ className, ...props }: {
|
|
689
|
+
className?: string;
|
|
690
|
+
} & React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
671
691
|
/**
|
|
672
692
|
* Container for organizing related sidebar navigation items
|
|
673
693
|
*
|
|
@@ -718,7 +738,9 @@ declare function SidebarContent({ className, ...props }: React.ComponentProps<"d
|
|
|
718
738
|
* @see {@link SidebarGroupContent} - Group content container
|
|
719
739
|
* @since 1.0.0
|
|
720
740
|
*/
|
|
721
|
-
declare function SidebarGroup({ className, ...props }:
|
|
741
|
+
declare function SidebarGroup({ className, ...props }: {
|
|
742
|
+
className?: string;
|
|
743
|
+
} & React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
722
744
|
/**
|
|
723
745
|
* Label component for sidebar groups
|
|
724
746
|
*
|
|
@@ -766,9 +788,10 @@ declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div
|
|
|
766
788
|
* @see {@link SidebarGroupAction} - Associated action button
|
|
767
789
|
* @since 1.0.0
|
|
768
790
|
*/
|
|
769
|
-
declare function SidebarGroupLabel({ className, asChild, ...props }:
|
|
791
|
+
declare function SidebarGroupLabel({ className, asChild, ...props }: {
|
|
792
|
+
className?: string;
|
|
770
793
|
asChild?: boolean;
|
|
771
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
794
|
+
} & React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
772
795
|
/**
|
|
773
796
|
* Action button positioned within sidebar groups
|
|
774
797
|
*
|
|
@@ -822,9 +845,10 @@ declare function SidebarGroupLabel({ className, asChild, ...props }: React.Compo
|
|
|
822
845
|
* @see {@link SidebarGroupLabel} - Associated group label
|
|
823
846
|
* @since 1.0.0
|
|
824
847
|
*/
|
|
825
|
-
declare function SidebarGroupAction({ className, asChild, ...props }:
|
|
848
|
+
declare function SidebarGroupAction({ className, asChild, ...props }: {
|
|
849
|
+
className?: string;
|
|
826
850
|
asChild?: boolean;
|
|
827
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
851
|
+
} & React.ComponentProps<"button">): import("react/jsx-runtime").JSX.Element;
|
|
828
852
|
/**
|
|
829
853
|
* Content container for sidebar group items
|
|
830
854
|
*
|
|
@@ -882,7 +906,9 @@ declare function SidebarGroupAction({ className, asChild, ...props }: React.Comp
|
|
|
882
906
|
* @see {@link SidebarMenu} - Menu container component
|
|
883
907
|
* @since 1.0.0
|
|
884
908
|
*/
|
|
885
|
-
declare function SidebarGroupContent({ className, ...props }:
|
|
909
|
+
declare function SidebarGroupContent({ className, ...props }: {
|
|
910
|
+
className?: string;
|
|
911
|
+
} & React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
886
912
|
/**
|
|
887
913
|
* Navigation menu container for organizing sidebar items
|
|
888
914
|
*
|
|
@@ -946,7 +972,9 @@ declare function SidebarGroupContent({ className, ...props }: React.ComponentPro
|
|
|
946
972
|
* @see {@link SidebarMenuButton} - Interactive menu button
|
|
947
973
|
* @since 1.0.0
|
|
948
974
|
*/
|
|
949
|
-
declare function SidebarMenu({ className, ...props }:
|
|
975
|
+
declare function SidebarMenu({ className, ...props }: {
|
|
976
|
+
className?: string;
|
|
977
|
+
} & React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
950
978
|
/**
|
|
951
979
|
* Individual menu item container for sidebar navigation
|
|
952
980
|
*
|
|
@@ -1019,7 +1047,19 @@ declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">
|
|
|
1019
1047
|
* @see {@link SidebarMenuBadge} - Badge indicator component
|
|
1020
1048
|
* @since 1.0.0
|
|
1021
1049
|
*/
|
|
1022
|
-
declare function SidebarMenuItem({ className, ...props }:
|
|
1050
|
+
declare function SidebarMenuItem({ className, ...props }: {
|
|
1051
|
+
className?: string;
|
|
1052
|
+
} & React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
1053
|
+
/**
|
|
1054
|
+
* SidebarMenuButton variant configuration for visual appearances and sizes
|
|
1055
|
+
*
|
|
1056
|
+
* @variant default - Standard menu button with subtle hover states
|
|
1057
|
+
* @variant outline - Button with border background that highlights on interaction
|
|
1058
|
+
*
|
|
1059
|
+
* @size default - Standard button height (h-8) with text-sm
|
|
1060
|
+
* @size sm - Compact button height (h-7) with text-xs for dense layouts
|
|
1061
|
+
* @size lg - Large button height (h-12) with text-sm, collapses to icon padding when sidebar is collapsed
|
|
1062
|
+
*/
|
|
1023
1063
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
1024
1064
|
variant?: "default" | "outline" | null | undefined;
|
|
1025
1065
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
@@ -1120,11 +1160,12 @@ declare const sidebarMenuButtonVariants: (props?: ({
|
|
|
1120
1160
|
* @see {@link useSidebar} - Hook for sidebar state
|
|
1121
1161
|
* @since 1.0.0
|
|
1122
1162
|
*/
|
|
1123
|
-
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }:
|
|
1163
|
+
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: {
|
|
1124
1164
|
asChild?: boolean;
|
|
1125
1165
|
isActive?: boolean;
|
|
1126
1166
|
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
1127
|
-
|
|
1167
|
+
className?: string;
|
|
1168
|
+
} & VariantProps<typeof sidebarMenuButtonVariants> & React.ComponentProps<"button">): import("react/jsx-runtime").JSX.Element;
|
|
1128
1169
|
/**
|
|
1129
1170
|
* Secondary action button for sidebar menu items
|
|
1130
1171
|
*
|
|
@@ -1199,10 +1240,11 @@ declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip,
|
|
|
1199
1240
|
* @see {@link SidebarMenuButton} - Primary menu button
|
|
1200
1241
|
* @since 1.0.0
|
|
1201
1242
|
*/
|
|
1202
|
-
declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }:
|
|
1243
|
+
declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: {
|
|
1244
|
+
className?: string;
|
|
1203
1245
|
asChild?: boolean;
|
|
1204
1246
|
showOnHover?: boolean;
|
|
1205
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
1247
|
+
} & React.ComponentProps<"button">): import("react/jsx-runtime").JSX.Element;
|
|
1206
1248
|
/**
|
|
1207
1249
|
* Badge indicator component for menu items
|
|
1208
1250
|
*
|
|
@@ -1268,7 +1310,9 @@ declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }
|
|
|
1268
1310
|
* @see {@link SidebarMenuButton} - Associated menu button
|
|
1269
1311
|
* @since 1.0.0
|
|
1270
1312
|
*/
|
|
1271
|
-
declare function SidebarMenuBadge({ className, ...props }:
|
|
1313
|
+
declare function SidebarMenuBadge({ className, ...props }: {
|
|
1314
|
+
className?: string;
|
|
1315
|
+
} & React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
1272
1316
|
/**
|
|
1273
1317
|
* Loading skeleton placeholder for menu items
|
|
1274
1318
|
*
|
|
@@ -1341,9 +1385,10 @@ declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<
|
|
|
1341
1385
|
* @see {@link Skeleton} - Base skeleton component
|
|
1342
1386
|
* @since 1.0.0
|
|
1343
1387
|
*/
|
|
1344
|
-
declare function SidebarMenuSkeleton({ className, showIcon, ...props }:
|
|
1388
|
+
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: {
|
|
1389
|
+
className?: string;
|
|
1345
1390
|
showIcon?: boolean;
|
|
1346
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
1391
|
+
} & React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
1347
1392
|
/**
|
|
1348
1393
|
* Submenu container for hierarchical navigation
|
|
1349
1394
|
*
|
|
@@ -1423,7 +1468,9 @@ declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.Co
|
|
|
1423
1468
|
* @see {@link SidebarMenuItem} - Parent menu item
|
|
1424
1469
|
* @since 1.0.0
|
|
1425
1470
|
*/
|
|
1426
|
-
declare function SidebarMenuSub({ className, ...props }:
|
|
1471
|
+
declare function SidebarMenuSub({ className, ...props }: {
|
|
1472
|
+
className?: string;
|
|
1473
|
+
} & React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
1427
1474
|
/**
|
|
1428
1475
|
* Individual item container within submenu navigation
|
|
1429
1476
|
*
|
|
@@ -1470,7 +1517,9 @@ declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"u
|
|
|
1470
1517
|
* @see {@link SidebarMenuSubButton} - Interactive button component
|
|
1471
1518
|
* @since 1.0.0
|
|
1472
1519
|
*/
|
|
1473
|
-
declare function SidebarMenuSubItem({ className, ...props }:
|
|
1520
|
+
declare function SidebarMenuSubItem({ className, ...props }: {
|
|
1521
|
+
className?: string;
|
|
1522
|
+
} & React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
1474
1523
|
/**
|
|
1475
1524
|
* Interactive button component for submenu navigation
|
|
1476
1525
|
*
|
|
@@ -1552,10 +1601,11 @@ declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProp
|
|
|
1552
1601
|
* @see {@link SidebarMenuButton} - Parent menu button
|
|
1553
1602
|
* @since 1.0.0
|
|
1554
1603
|
*/
|
|
1555
|
-
declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }:
|
|
1604
|
+
declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: {
|
|
1556
1605
|
asChild?: boolean;
|
|
1557
1606
|
size?: "sm" | "md";
|
|
1558
1607
|
isActive?: boolean;
|
|
1559
|
-
|
|
1608
|
+
className?: string;
|
|
1609
|
+
} & React.ComponentProps<"a">): import("react/jsx-runtime").JSX.Element;
|
|
1560
1610
|
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };
|
|
1561
1611
|
//# sourceMappingURL=sidebar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAStD,OAAO,EAEL,cAAc,EAGf,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;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,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,2CAoB5B;AAED,OAAO,EACL,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,UAAU,GACX,CAAC"}
|
|
@@ -1,64 +1,126 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Skeleton - Animated loading placeholder that improves perceived performance
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* of content
|
|
6
|
-
* state
|
|
4
|
+
* A lightweight component that creates animated placeholders mimicking the structure
|
|
5
|
+
* and layout of content being loaded. Features a subtle pulse animation to indicate
|
|
6
|
+
* loading state while maintaining layout stability during data fetching operations.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
* and can be shaped to match any content structure using
|
|
8
|
+
* Built on standard HTML div element with Tailwind CSS animations. Designed to be
|
|
9
|
+
* highly composable and can be shaped to match any content structure using className.
|
|
10
|
+
* The component uses semantic presentation role by default for optimal accessibility.
|
|
10
11
|
*
|
|
11
12
|
* @example
|
|
12
13
|
* ```tsx
|
|
13
|
-
* // Basic
|
|
14
|
+
* // Basic text content placeholder
|
|
14
15
|
* <Skeleton className="h-4 w-[250px]" />
|
|
15
16
|
* ```
|
|
16
17
|
*
|
|
17
18
|
* @example
|
|
18
19
|
* ```tsx
|
|
19
|
-
* // Avatar
|
|
20
|
-
* <Skeleton className="h-12 w-12 rounded-full" />
|
|
20
|
+
* // Avatar placeholder - circular skeleton
|
|
21
|
+
* <Skeleton className="h-12 w-12 rounded-full" aria-label="Loading user avatar" />
|
|
21
22
|
* ```
|
|
22
23
|
*
|
|
23
24
|
* @example
|
|
24
25
|
* ```tsx
|
|
25
|
-
* //
|
|
26
|
-
* <
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
26
|
+
* // Button placeholder with proper dimensions
|
|
27
|
+
* <Skeleton className="h-10 w-24 rounded-md" aria-label="Loading action button" />
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```tsx
|
|
32
|
+
* // Image placeholder with aspect ratio
|
|
33
|
+
* <Skeleton className="h-48 w-full rounded-lg" aria-label="Loading featured image" />
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```tsx
|
|
38
|
+
* // Card content structure - multiple related skeletons
|
|
39
|
+
* <div className="space-y-3" aria-busy="true" aria-label="Loading article content">
|
|
40
|
+
* <Skeleton className="h-6 w-3/4" /> // Title
|
|
41
|
+
* <Skeleton className="h-4 w-full" /> // First line
|
|
42
|
+
* <Skeleton className="h-4 w-5/6" /> // Second line
|
|
43
|
+
* <Skeleton className="h-4 w-4/5" /> // Third line
|
|
30
44
|
* </div>
|
|
31
45
|
* ```
|
|
32
46
|
*
|
|
33
47
|
* @example
|
|
34
48
|
* ```tsx
|
|
35
|
-
* // Complex
|
|
36
|
-
* <Card>
|
|
37
|
-
* <
|
|
38
|
-
* <
|
|
39
|
-
*
|
|
40
|
-
* <
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* </div>
|
|
49
|
+
* // Complex user profile layout
|
|
50
|
+
* <Card className="p-6">
|
|
51
|
+
* <div className="flex items-center gap-4 mb-4">
|
|
52
|
+
* <Skeleton className="h-16 w-16 rounded-full" aria-label="Loading profile picture" />
|
|
53
|
+
* <div className="space-y-2">
|
|
54
|
+
* <Skeleton className="h-5 w-32" /> // Name
|
|
55
|
+
* <Skeleton className="h-4 w-24" /> // Title
|
|
56
|
+
* <Skeleton className="h-3 w-20" /> // Status
|
|
44
57
|
* </div>
|
|
45
|
-
* </
|
|
46
|
-
* <
|
|
58
|
+
* </div>
|
|
59
|
+
* <div className="space-y-3">
|
|
47
60
|
* <Skeleton className="h-4 w-full" />
|
|
48
61
|
* <Skeleton className="h-4 w-4/5" />
|
|
49
|
-
*
|
|
62
|
+
* <Skeleton className="h-32 w-full rounded-md" /> // Content area
|
|
63
|
+
* </div>
|
|
50
64
|
* </Card>
|
|
51
65
|
* ```
|
|
52
66
|
*
|
|
53
|
-
* @
|
|
54
|
-
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```tsx
|
|
69
|
+
* // Data table loading state
|
|
70
|
+
* <div className="space-y-2" aria-busy="true" aria-label="Loading table data">
|
|
71
|
+
* {Array.from({ length: 5 }).map((_, index) => (
|
|
72
|
+
* <div key={index} className="flex items-center gap-4 p-2">
|
|
73
|
+
* <Skeleton className="h-8 w-8 rounded-full" />
|
|
74
|
+
* <Skeleton className="h-4 w-32" />
|
|
75
|
+
* <Skeleton className="h-4 w-24" />
|
|
76
|
+
* <Skeleton className="h-4 w-16" />
|
|
77
|
+
* <div className="ml-auto">
|
|
78
|
+
* <Skeleton className="h-8 w-20 rounded-md" />
|
|
79
|
+
* </div>
|
|
80
|
+
* </div>
|
|
81
|
+
* ))}
|
|
82
|
+
* </div>
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```tsx
|
|
87
|
+
* // Navigation menu loading
|
|
88
|
+
* <nav className="space-y-2" aria-label="Loading navigation">
|
|
89
|
+
* {Array.from({ length: 4 }).map((_, index) => (
|
|
90
|
+
* <div key={index} className="flex items-center gap-3 p-2">
|
|
91
|
+
* <Skeleton className="h-5 w-5 rounded" /> // Icon
|
|
92
|
+
* <Skeleton className="h-4 w-20" /> // Label
|
|
93
|
+
* </div>
|
|
94
|
+
* ))}
|
|
95
|
+
* </nav>
|
|
96
|
+
* ```
|
|
55
97
|
*
|
|
56
98
|
* @accessibility
|
|
57
|
-
*
|
|
58
|
-
* layout
|
|
59
|
-
*
|
|
99
|
+
* - Uses pulse animation to indicate loading state without being distracting
|
|
100
|
+
* - Maintains layout dimensions to prevent content jumping when real content loads
|
|
101
|
+
* - Supports ARIA labels for screen reader context when representing specific content
|
|
102
|
+
* - Consider wrapping multiple related skeletons in containers with aria-busy="true"
|
|
103
|
+
* - Respects prefers-reduced-motion user preference through Tailwind's animate-pulse
|
|
104
|
+
* - Use meaningful aria-label values to describe what content is being loaded
|
|
105
|
+
* - Group related skeletons with appropriate ARIA landmarks for better navigation
|
|
106
|
+
*
|
|
107
|
+
* @performance
|
|
108
|
+
* - Lightweight implementation with minimal DOM overhead
|
|
109
|
+
* - CSS-based pulse animation is GPU-accelerated and performant
|
|
110
|
+
* - No JavaScript animations or intervals for optimal battery life
|
|
111
|
+
* - Optimized for SSR and hydration without layout shifts
|
|
112
|
+
*
|
|
113
|
+
* @styling
|
|
114
|
+
* - Base classes: bg-accent animate-pulse rounded-md
|
|
115
|
+
* - Highly customizable via className prop with Tailwind utilities
|
|
116
|
+
* - Common patterns: h-4 w-[200px] (text), h-12 w-12 rounded-full (avatar)
|
|
117
|
+
* - Responsive sizing: w-full md:w-1/2 lg:w-1/3 for adaptive layouts
|
|
118
|
+
* - Shape variants: rounded-none (rectangular), rounded-full (circular), rounded-lg (images)
|
|
60
119
|
*
|
|
61
|
-
* @see {@link https://ui.shadcn.com/docs/components/skeleton} shadcn/ui Skeleton
|
|
120
|
+
* @see {@link https://ui.shadcn.com/docs/components/skeleton} shadcn/ui Skeleton Documentation
|
|
121
|
+
* @see {@link Card} Often used within card layouts for structured content loading
|
|
122
|
+
* @see {@link Avatar} Use with Avatar components for profile loading states
|
|
123
|
+
* @see {@link Button} Match button dimensions for interactive element placeholders
|
|
62
124
|
* @since 1.0.0
|
|
63
125
|
*/
|
|
64
126
|
declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ui/skeleton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ui/skeleton.tsx"],"names":[],"mappings":"AAsBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4HG;AACH,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQrE;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
3
3
|
/**
|
|
4
|
-
* Slider
|
|
4
|
+
* Slider - Range input control for selecting numeric values
|
|
5
5
|
*
|
|
6
6
|
* A versatile range input control built on Radix UI Slider primitives that allows users
|
|
7
7
|
* to select single or multiple values by dragging thumbs along a track. Supports both
|
|
8
|
-
* horizontal and vertical orientations, custom ranges, step intervals, and
|
|
9
|
-
* features for keyboard and touch interaction.
|
|
8
|
+
* horizontal and vertical orientations, custom ranges, step intervals, and comprehensive
|
|
9
|
+
* accessibility features for keyboard and touch interaction.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* The component automatically renders the appropriate number of thumbs based on the
|
|
12
|
+
* number of values provided, supporting both single-value and multi-value range selection.
|
|
13
|
+
* Built with enhanced styling and smooth animations for an optimal user experience.
|
|
12
14
|
*
|
|
13
15
|
* @example
|
|
14
16
|
* ```tsx
|
|
15
17
|
* // Basic single-value slider
|
|
16
|
-
* <Slider defaultValue={[
|
|
18
|
+
* <Slider defaultValue={[50]} max={100} step={1} />
|
|
17
19
|
* ```
|
|
18
20
|
*
|
|
19
21
|
* @example
|
|
20
22
|
* ```tsx
|
|
21
|
-
* // Controlled slider with state
|
|
23
|
+
* // Controlled slider with state management
|
|
22
24
|
* const [value, setValue] = useState([25])
|
|
23
25
|
*
|
|
24
26
|
* <Slider
|
|
@@ -31,7 +33,7 @@ import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
|
31
33
|
*
|
|
32
34
|
* @example
|
|
33
35
|
* ```tsx
|
|
34
|
-
* // Range slider with two thumbs
|
|
36
|
+
* // Range slider with two thumbs for selecting a range
|
|
35
37
|
* <Slider
|
|
36
38
|
* defaultValue={[25, 75]}
|
|
37
39
|
* max={100}
|
|
@@ -42,7 +44,7 @@ import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
|
42
44
|
*
|
|
43
45
|
* @example
|
|
44
46
|
* ```tsx
|
|
45
|
-
* // Vertical orientation
|
|
47
|
+
* // Vertical orientation for space-constrained layouts
|
|
46
48
|
* <Slider
|
|
47
49
|
* defaultValue={[50]}
|
|
48
50
|
* max={100}
|
|
@@ -53,7 +55,7 @@ import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
|
53
55
|
*
|
|
54
56
|
* @example
|
|
55
57
|
* ```tsx
|
|
56
|
-
* // Custom range and step
|
|
58
|
+
* // Custom range and step intervals for precise control
|
|
57
59
|
* <Slider
|
|
58
60
|
* defaultValue={[500]}
|
|
59
61
|
* min={0}
|
|
@@ -62,34 +64,38 @@ import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
|
62
64
|
* />
|
|
63
65
|
* ```
|
|
64
66
|
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```tsx
|
|
69
|
+
* // Form integration with name and onValueCommit
|
|
70
|
+
* <form>
|
|
71
|
+
* <Slider
|
|
72
|
+
* name="volume"
|
|
73
|
+
* defaultValue={[75]}
|
|
74
|
+
* max={100}
|
|
75
|
+
* onValueCommit={(value) => console.log('Final value:', value)}
|
|
76
|
+
* />
|
|
77
|
+
* </form>
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
65
80
|
* @accessibility
|
|
66
81
|
* - Implements WAI-ARIA slider pattern with proper roles and properties
|
|
67
|
-
* -
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* -
|
|
82
|
+
* - Full keyboard navigation support:
|
|
83
|
+
* - Arrow keys adjust value by step amount (Left/Down decrease, Right/Up increase)
|
|
84
|
+
* - Page Up/Page Down adjust by larger increments (typically 10 × step)
|
|
85
|
+
* - Shift + Arrow keys for larger adjustments
|
|
86
|
+
* - Home/End keys jump to minimum/maximum values
|
|
87
|
+
* - Focus management with visible focus indicators and ring styling
|
|
88
|
+
* - Touch and mouse interaction fully supported with proper pointer events
|
|
89
|
+
* - Screen reader announcements for value changes and state updates
|
|
73
90
|
* - Disabled state properly communicated to assistive technologies
|
|
91
|
+
* - Automatic form integration with proper name/value pairs
|
|
92
|
+
* - RTL (right-to-left) text direction support
|
|
74
93
|
*
|
|
75
|
-
* @see {@link https://ui.shadcn.com/docs/components/slider}
|
|
76
|
-
* @see {@link https://www.radix-ui.com/docs/primitives/components/slider}
|
|
77
|
-
*
|
|
94
|
+
* @see {@link https://ui.shadcn.com/docs/components/slider} shadcn/ui Slider Documentation
|
|
95
|
+
* @see {@link https://www.radix-ui.com/docs/primitives/components/slider} Radix UI Slider API Reference
|
|
96
|
+
* @see {@link https://www.w3.org/WAI/ARIA/apg/patterns/slider/} WAI-ARIA Slider Pattern
|
|
78
97
|
* @since 1.0.0
|
|
79
98
|
*/
|
|
80
|
-
/**
|
|
81
|
-
* @param className - Additional CSS classes for styling customization
|
|
82
|
-
* @param defaultValue - The default value(s) of the slider (uncontrolled)
|
|
83
|
-
* @param value - The controlled value(s) of the slider
|
|
84
|
-
* @param min - The minimum value of the slider (default: 0)
|
|
85
|
-
* @param max - The maximum value of the slider (default: 100)
|
|
86
|
-
* @param step - The step interval for value changes (default: 1)
|
|
87
|
-
* @param orientation - The orientation of the slider ("horizontal" | "vertical")
|
|
88
|
-
* @param disabled - Whether the slider is disabled
|
|
89
|
-
* @param onValueChange - Callback fired when the value changes
|
|
90
|
-
* @param minStepsBetweenThumbs - Minimum steps between thumbs in range mode
|
|
91
|
-
* @param ...props - Additional props passed to the underlying Radix Slider Root
|
|
92
|
-
*/
|
|
93
99
|
declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
94
100
|
export { Slider };
|
|
95
101
|
//# sourceMappingURL=slider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../src/components/ui/slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../src/components/ui/slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AA4C1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+FG;AACH,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,YAAY,EACZ,KAAK,EACL,GAAO,EACP,GAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CA0CnD;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
|