@codefast/ui 0.3.10 → 0.3.11-canary.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/CHANGELOG.md +19 -0
- package/README.md +277 -167
- package/dist/components/accordion.cjs +5 -5
- package/dist/components/accordion.d.ts +4 -4
- package/dist/components/accordion.js +5 -5
- package/dist/components/alert-dialog.cjs +9 -9
- package/dist/components/alert-dialog.d.ts +11 -11
- package/dist/components/alert-dialog.js +9 -9
- package/dist/components/alert.cjs +5 -5
- package/dist/components/alert.d.ts +5 -5
- package/dist/components/alert.js +5 -5
- package/dist/components/aspect-ratio.d.ts +2 -2
- package/dist/components/avatar.cjs +3 -3
- package/dist/components/avatar.d.ts +2 -2
- package/dist/components/avatar.js +3 -3
- package/dist/components/badge.cjs +7 -7
- package/dist/components/badge.d.ts +3 -3
- package/dist/components/badge.js +7 -7
- package/dist/components/breadcrumb.cjs +6 -8
- package/dist/components/breadcrumb.d.ts +8 -8
- package/dist/components/breadcrumb.js +6 -8
- package/dist/components/button-group.cjs +8 -8
- package/dist/components/button-group.d.ts +5 -5
- package/dist/components/button-group.js +8 -8
- package/dist/components/button.cjs +17 -17
- package/dist/components/button.d.ts +6 -6
- package/dist/components/button.js +17 -17
- package/dist/components/calendar.cjs +35 -35
- package/dist/components/calendar.d.ts +5 -5
- package/dist/components/calendar.js +35 -35
- package/dist/components/card.cjs +7 -7
- package/dist/components/card.d.ts +8 -8
- package/dist/components/card.js +7 -7
- package/dist/components/carousel.cjs +20 -20
- package/dist/components/carousel.d.ts +10 -10
- package/dist/components/carousel.js +20 -20
- package/dist/components/chart.cjs +42 -42
- package/dist/components/chart.d.ts +12 -11
- package/dist/components/chart.js +42 -42
- package/dist/components/checkbox-cards.cjs +2 -2
- package/dist/components/checkbox-cards.d.ts +2 -2
- package/dist/components/checkbox-cards.js +2 -2
- package/dist/components/checkbox-group.cjs +2 -2
- package/dist/components/checkbox-group.d.ts +2 -2
- package/dist/components/checkbox-group.js +2 -2
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/collapsible.d.ts +2 -2
- package/dist/components/command.cjs +10 -10
- package/dist/components/command.d.ts +4 -4
- package/dist/components/command.js +10 -10
- package/dist/components/context-menu.cjs +10 -10
- package/dist/components/context-menu.d.ts +4 -4
- package/dist/components/context-menu.js +10 -10
- package/dist/components/dialog.cjs +12 -12
- package/dist/components/dialog.d.ts +10 -10
- package/dist/components/dialog.js +12 -12
- package/dist/components/drawer.cjs +9 -9
- package/dist/components/drawer.d.ts +9 -9
- package/dist/components/drawer.js +9 -9
- package/dist/components/dropdown-menu.cjs +10 -10
- package/dist/components/dropdown-menu.d.ts +4 -4
- package/dist/components/dropdown-menu.js +10 -10
- package/dist/components/empty.cjs +10 -10
- package/dist/components/empty.d.ts +9 -9
- package/dist/components/empty.js +10 -10
- package/dist/components/field.cjs +17 -17
- package/dist/components/field.d.ts +14 -14
- package/dist/components/field.js +17 -17
- package/dist/components/form.cjs +8 -8
- package/dist/components/form.d.ts +10 -10
- package/dist/components/form.js +8 -8
- package/dist/components/hover-card.cjs +3 -3
- package/dist/components/hover-card.d.ts +2 -2
- package/dist/components/hover-card.js +3 -3
- package/dist/components/input-group.cjs +20 -20
- package/dist/components/input-group.d.ts +15 -15
- package/dist/components/input-group.js +20 -20
- package/dist/components/input-number.cjs +7 -7
- package/dist/components/input-number.d.ts +2 -2
- package/dist/components/input-number.js +7 -7
- package/dist/components/input-otp.cjs +4 -4
- package/dist/components/input-otp.d.ts +6 -6
- package/dist/components/input-otp.js +4 -4
- package/dist/components/input-password.cjs +6 -6
- package/dist/components/input-password.d.ts +3 -3
- package/dist/components/input-password.js +6 -6
- package/dist/components/input-search.cjs +4 -4
- package/dist/components/input-search.d.ts +3 -3
- package/dist/components/input-search.js +4 -4
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.d.ts +2 -2
- package/dist/components/input.js +1 -1
- package/dist/components/item.cjs +23 -23
- package/dist/components/item.d.ts +12 -12
- package/dist/components/item.js +23 -23
- package/dist/components/kbd.cjs +2 -2
- package/dist/components/kbd.d.ts +3 -3
- package/dist/components/kbd.js +2 -2
- package/dist/components/label.cjs +1 -1
- package/dist/components/label.d.ts +2 -2
- package/dist/components/label.js +1 -1
- package/dist/components/menubar.cjs +13 -13
- package/dist/components/menubar.d.ts +4 -4
- package/dist/components/menubar.js +13 -13
- package/dist/components/native-select.cjs +2 -2
- package/dist/components/native-select.d.ts +4 -4
- package/dist/components/native-select.js +2 -2
- package/dist/components/navigation-menu.cjs +10 -10
- package/dist/components/navigation-menu.d.ts +2 -2
- package/dist/components/navigation-menu.js +10 -10
- package/dist/components/pagination.cjs +6 -6
- package/dist/components/pagination.d.ts +10 -10
- package/dist/components/pagination.js +6 -6
- package/dist/components/popover.cjs +3 -3
- package/dist/components/popover.d.ts +3 -3
- package/dist/components/popover.js +3 -3
- package/dist/components/progress-circle.cjs +22 -22
- package/dist/components/progress-circle.d.ts +5 -5
- package/dist/components/progress-circle.js +22 -22
- package/dist/components/progress.cjs +2 -2
- package/dist/components/progress.d.ts +2 -2
- package/dist/components/progress.js +2 -2
- package/dist/components/radio-cards.cjs +3 -3
- package/dist/components/radio-cards.d.ts +2 -2
- package/dist/components/radio-cards.js +3 -3
- package/dist/components/radio-group.cjs +3 -3
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +3 -3
- package/dist/components/radio.cjs +1 -1
- package/dist/components/radio.d.ts +2 -2
- package/dist/components/radio.js +1 -1
- package/dist/components/resizable.cjs +3 -3
- package/dist/components/resizable.d.ts +2 -2
- package/dist/components/resizable.js +3 -3
- package/dist/components/scroll-area.cjs +31 -31
- package/dist/components/scroll-area.d.ts +5 -5
- package/dist/components/scroll-area.js +31 -31
- package/dist/components/select.cjs +9 -9
- package/dist/components/select.d.ts +5 -5
- package/dist/components/select.js +9 -9
- package/dist/components/separator.cjs +9 -9
- package/dist/components/separator.d.ts +5 -5
- package/dist/components/separator.js +9 -9
- package/dist/components/sheet.cjs +17 -17
- package/dist/components/sheet.d.ts +9 -9
- package/dist/components/sheet.js +17 -17
- package/dist/components/sidebar.cjs +65 -65
- package/dist/components/sidebar.d.ts +31 -31
- package/dist/components/sidebar.js +65 -65
- package/dist/components/skeleton.cjs +1 -1
- package/dist/components/skeleton.d.ts +2 -2
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.cjs +4 -4
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +4 -4
- package/dist/components/sonner.cjs +4 -4
- package/dist/components/sonner.d.ts +3 -3
- package/dist/components/sonner.js +4 -4
- package/dist/components/spinner.cjs +5 -5
- package/dist/components/spinner.d.ts +2 -2
- package/dist/components/spinner.js +5 -5
- package/dist/components/switch.cjs +2 -2
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/switch.js +2 -2
- package/dist/components/table.cjs +8 -8
- package/dist/components/table.d.ts +9 -9
- package/dist/components/table.js +8 -8
- package/dist/components/tabs.cjs +4 -4
- package/dist/components/tabs.d.ts +2 -2
- package/dist/components/tabs.js +4 -4
- package/dist/components/textarea.cjs +1 -1
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/textarea.js +1 -1
- package/dist/components/toggle-group.cjs +5 -5
- package/dist/components/toggle-group.d.ts +4 -4
- package/dist/components/toggle-group.js +5 -5
- package/dist/components/toggle.cjs +8 -8
- package/dist/components/toggle.d.ts +3 -3
- package/dist/components/toggle.js +8 -8
- package/dist/components/tooltip.cjs +2 -2
- package/dist/components/tooltip.d.ts +3 -3
- package/dist/components/tooltip.js +2 -2
- package/dist/css/preset.css +4 -4
- package/dist/css/style.css +3 -3
- package/dist/hooks/use-copy-to-clipboard.cjs +1 -1
- package/dist/hooks/use-copy-to-clipboard.d.ts +1 -1
- package/dist/hooks/use-copy-to-clipboard.js +1 -1
- package/dist/hooks/use-media-query.cjs +3 -3
- package/dist/hooks/use-media-query.js +3 -3
- package/dist/hooks/use-mutation-observer.d.ts +1 -1
- package/dist/hooks/use-pagination.cjs +1 -1
- package/dist/hooks/use-pagination.js +1 -1
- package/dist/index.d.ts +130 -130
- package/dist/primitives/checkbox-group.cjs +3 -3
- package/dist/primitives/checkbox-group.d.ts +11 -11
- package/dist/primitives/checkbox-group.js +3 -3
- package/dist/primitives/input-number.cjs +46 -46
- package/dist/primitives/input-number.d.ts +8 -8
- package/dist/primitives/input-number.js +46 -46
- package/dist/primitives/input.cjs +7 -7
- package/dist/primitives/input.d.ts +4 -4
- package/dist/primitives/input.js +7 -7
- package/dist/primitives/progress-circle.cjs +8 -8
- package/dist/primitives/progress-circle.d.ts +7 -7
- package/dist/primitives/progress-circle.js +8 -8
- package/package.json +38 -42
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* <button onClick={() => copyToClipboard("Hello")}>{isCopied ? "Copied" : "Copy"}</button>
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
export declare function useCopyToClipboard({ onCopy, timeout }?: {
|
|
18
|
+
export declare function useCopyToClipboard({ onCopy, timeout, }?: {
|
|
19
19
|
onCopy?: () => void;
|
|
20
20
|
timeout?: number;
|
|
21
21
|
}): {
|
|
@@ -3,7 +3,7 @@ import { useState } from "react";
|
|
|
3
3
|
function useCopyToClipboard({ onCopy, timeout = 2000 } = {}) {
|
|
4
4
|
const [isCopied, setIsCopied] = useState(false);
|
|
5
5
|
const copyToClipboard = async (value)=>{
|
|
6
|
-
if ("u" < typeof window || !(
|
|
6
|
+
if ("u" < typeof window || !("clipboard" in navigator) || "function" != typeof navigator.clipboard.writeText) return;
|
|
7
7
|
if (!value) return;
|
|
8
8
|
try {
|
|
9
9
|
await navigator.clipboard.writeText(value);
|
|
@@ -30,7 +30,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
30
30
|
const external_react_namespaceObject = require("react");
|
|
31
31
|
function useMediaQuery(query) {
|
|
32
32
|
const [matches, setMatches] = (0, external_react_namespaceObject.useState)(()=>{
|
|
33
|
-
if ("u" > typeof window &&
|
|
33
|
+
if ("u" > typeof window && "function" == typeof window.matchMedia) return window.matchMedia(query).matches;
|
|
34
34
|
return false;
|
|
35
35
|
});
|
|
36
36
|
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
@@ -39,9 +39,9 @@ function useMediaQuery(query) {
|
|
|
39
39
|
const onChange = (event)=>{
|
|
40
40
|
setMatches(event.matches);
|
|
41
41
|
};
|
|
42
|
-
mediaQueryList.addEventListener(
|
|
42
|
+
mediaQueryList.addEventListener("change", onChange);
|
|
43
43
|
return ()=>{
|
|
44
|
-
mediaQueryList.removeEventListener(
|
|
44
|
+
mediaQueryList.removeEventListener("change", onChange);
|
|
45
45
|
};
|
|
46
46
|
}, [
|
|
47
47
|
query
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
3
|
function useMediaQuery(query) {
|
|
4
4
|
const [matches, setMatches] = useState(()=>{
|
|
5
|
-
if ("u" > typeof window &&
|
|
5
|
+
if ("u" > typeof window && "function" == typeof window.matchMedia) return window.matchMedia(query).matches;
|
|
6
6
|
return false;
|
|
7
7
|
});
|
|
8
8
|
useEffect(()=>{
|
|
@@ -11,9 +11,9 @@ function useMediaQuery(query) {
|
|
|
11
11
|
const onChange = (event)=>{
|
|
12
12
|
setMatches(event.matches);
|
|
13
13
|
};
|
|
14
|
-
mediaQueryList.addEventListener(
|
|
14
|
+
mediaQueryList.addEventListener("change", onChange);
|
|
15
15
|
return ()=>{
|
|
16
|
-
mediaQueryList.removeEventListener(
|
|
16
|
+
mediaQueryList.removeEventListener("change", onChange);
|
|
17
17
|
};
|
|
18
18
|
}, [
|
|
19
19
|
query
|
|
@@ -29,7 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
usePagination: ()=>usePagination
|
|
30
30
|
});
|
|
31
31
|
const external_react_namespaceObject = require("react");
|
|
32
|
-
const ELLIPSIS =
|
|
32
|
+
const ELLIPSIS = "•••";
|
|
33
33
|
const createRange = (start, end)=>{
|
|
34
34
|
const length = end - start + 1;
|
|
35
35
|
return Array.from({
|
package/dist/index.d.ts
CHANGED
|
@@ -1,130 +1,130 @@
|
|
|
1
|
-
export { Accordion, AccordionContent, AccordionIcon, AccordionItem, AccordionTrigger } from
|
|
2
|
-
export type { AccordionContentProps, AccordionIconProps, AccordionItemProps, AccordionProps, AccordionTriggerProps, } from
|
|
3
|
-
export { Alert, AlertDescription, AlertTitle, alertVariants } from
|
|
4
|
-
export type { AlertDescriptionProps, AlertProps, AlertTitleProps } from
|
|
5
|
-
export { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from
|
|
6
|
-
export type { AlertDialogActionProps, AlertDialogBodyProps, AlertDialogCancelProps, AlertDialogContentProps, AlertDialogDescriptionProps, AlertDialogFooterProps, AlertDialogHeaderProps, AlertDialogProps, AlertDialogTitleProps, AlertDialogTriggerProps, } from
|
|
7
|
-
export { AspectRatio } from
|
|
8
|
-
export type { AspectRatioProps } from
|
|
9
|
-
export { Avatar, AvatarFallback, AvatarImage } from
|
|
10
|
-
export type { AvatarFallbackProps, AvatarImageProps, AvatarProps } from
|
|
11
|
-
export { Badge, badgeVariants } from
|
|
12
|
-
export type { BadgeProps } from
|
|
13
|
-
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants } from
|
|
14
|
-
export type { ButtonGroupProps, ButtonGroupSeparatorProps, ButtonGroupTextProps } from
|
|
15
|
-
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from
|
|
16
|
-
export type { BreadcrumbEllipsisProps, BreadcrumbItemProps, BreadcrumbLinkProps, BreadcrumbListProps, BreadcrumbPageProps, BreadcrumbProps, BreadcrumbSeparatorProps, } from
|
|
17
|
-
export { Button, buttonVariants } from
|
|
18
|
-
export type { ButtonProps } from
|
|
19
|
-
export { Calendar, CalendarDayButton } from
|
|
20
|
-
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from
|
|
21
|
-
export type { CardActionProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, } from
|
|
22
|
-
export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, createCarouselScope, } from
|
|
23
|
-
export type { CarouselApi, CarouselContentProps, CarouselItemProps, CarouselNextProps, CarouselPreviousProps, CarouselProps, } from
|
|
24
|
-
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, createChartScope, } from
|
|
25
|
-
export type { ChartConfig, ChartContainerProps, ChartLegendContentProps, ChartLegendProps, ChartStyleProps, ChartTooltipContentProps, ChartTooltipProps, } from
|
|
26
|
-
export { Checkbox } from
|
|
27
|
-
export type { CheckboxProps } from
|
|
28
|
-
export { CheckboxCards, CheckboxCardsItem } from
|
|
29
|
-
export type { CheckboxCardsItemProps, CheckboxCardsProps } from
|
|
30
|
-
export { CheckboxGroup, CheckboxGroupItem } from
|
|
31
|
-
export type { CheckboxGroupItemProps, CheckboxGroupProps } from
|
|
32
|
-
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from
|
|
33
|
-
export type { CollapsibleContentProps, CollapsibleProps, CollapsibleTriggerProps } from
|
|
34
|
-
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, } from
|
|
35
|
-
export type { CommandDialogProps, CommandEmptyProps, CommandGroupProps, CommandInputProps, CommandItemProps, CommandListProps, CommandLoadingProps, CommandProps, CommandSeparatorProps, CommandShortcutProps, } from
|
|
36
|
-
export { ContextMenu, ContextMenuArrow, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, } from
|
|
37
|
-
export type { ContextMenuArrowProps, ContextMenuCheckboxItemProps, ContextMenuContentProps, ContextMenuGroupProps, ContextMenuItemProps, ContextMenuLabelProps, ContextMenuProps, ContextMenuRadioGroupProps, ContextMenuRadioItemProps, ContextMenuSeparatorProps, ContextMenuShortcutProps, ContextMenuSubContentProps, ContextMenuSubProps, ContextMenuSubTriggerProps, ContextMenuTriggerProps, } from
|
|
38
|
-
export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from
|
|
39
|
-
export type { DialogBodyProps, DialogCloseProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogProps, DialogTitleProps, DialogTriggerProps, } from
|
|
40
|
-
export { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, } from
|
|
41
|
-
export type { DrawerBodyProps, DrawerCloseProps, DrawerContentProps, DrawerDescriptionProps, DrawerFooterProps, DrawerHeaderProps, DrawerProps, DrawerTitleProps, DrawerTriggerProps, } from
|
|
42
|
-
export { DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from
|
|
43
|
-
export type { DropdownMenuArrowProps, DropdownMenuCheckboxItemProps, DropdownMenuContentProps, DropdownMenuGroupProps, DropdownMenuItemProps, DropdownMenuLabelProps, DropdownMenuProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuSeparatorProps, DropdownMenuShortcutProps, DropdownMenuSubContentProps, DropdownMenuSubProps, DropdownMenuSubTriggerProps, DropdownMenuTriggerProps, } from
|
|
44
|
-
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, emptyMediaVariants, EmptyTitle, } from
|
|
45
|
-
export type { EmptyContentProps, EmptyDescriptionProps, EmptyHeaderProps, EmptyMediaProps, EmptyProps, EmptyTitleProps, } from
|
|
46
|
-
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, fieldVariants, } from
|
|
47
|
-
export type { FieldContentProps, FieldDescriptionProps, FieldErrorProps, FieldGroupProps, FieldLabelProps, FieldLegendProps, FieldProps, FieldSeparatorProps, FieldSetProps, FieldTitleProps, } from
|
|
48
|
-
export { createFormFieldScope, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, } from
|
|
49
|
-
export type { FormControlProps, FormDescriptionProps, FormFieldProps, FormItemProps, FormLabelProps, FormMessageProps, FormProps, } from
|
|
50
|
-
export { HoverCard, HoverCardArrow, HoverCardContent, HoverCardTrigger } from
|
|
51
|
-
export type { HoverCardArrowProps, HoverCardContentProps, HoverCardProps, HoverCardTriggerProps, } from
|
|
52
|
-
export { Input } from
|
|
53
|
-
export type { InputProps } from
|
|
54
|
-
export { InputGroup, InputGroupAddon, inputGroupAddonVariants, InputGroupButton, inputGroupButtonVariants, InputGroupInput, InputGroupText, InputGroupTextarea, inputGroupVariants, } from
|
|
55
|
-
export type { InputGroupAddonProps, InputGroupButtonProps, InputGroupInputProps, InputGroupProps, InputGroupTextareaProps, InputGroupTextProps, } from
|
|
56
|
-
export { InputNumber } from
|
|
57
|
-
export type { InputNumberProps } from
|
|
58
|
-
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, } from
|
|
59
|
-
export type { InputOTPGroupProps, InputOTPProps, InputOTPSeparatorProps, InputOTPSlotProps, } from
|
|
60
|
-
export { InputPassword } from
|
|
61
|
-
export type { InputPasswordProps } from
|
|
62
|
-
export { InputSearch } from
|
|
63
|
-
export type { InputSearchProps } from
|
|
64
|
-
export { Kbd, KbdGroup } from
|
|
65
|
-
export type { KbdGroupProps, KbdProps } from
|
|
66
|
-
export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, itemMediaVariants, ItemSeparator, ItemTitle, itemVariants, } from
|
|
67
|
-
export type { ItemActionsProps, ItemContentProps, ItemDescriptionProps, ItemFooterProps, ItemGroupProps, ItemHeaderProps, ItemMediaProps, ItemProps, ItemSeparatorProps, ItemTitleProps, } from
|
|
68
|
-
export { Label } from
|
|
69
|
-
export type { LabelProps } from
|
|
70
|
-
export { Menubar, MenubarArrow, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, } from
|
|
71
|
-
export type { MenubarArrowProps, MenubarCheckboxItemProps, MenubarContentProps, MenubarGroupProps, MenubarItemProps, MenubarLabelProps, MenubarMenuProps, MenubarProps, MenubarRadioGroupProps, MenubarRadioItemProps, MenubarSeparatorProps, MenubarShortcutProps, MenubarSubContentProps, MenubarSubProps, MenubarSubTriggerProps, MenubarTriggerProps, } from
|
|
72
|
-
export { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, navigationMenuTriggerVariants, } from
|
|
73
|
-
export type { NavigationMenuContentProps, NavigationMenuItemProps, NavigationMenuLinkProps, NavigationMenuListProps, NavigationMenuProps, NavigationMenuTriggerProps, } from
|
|
74
|
-
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from
|
|
75
|
-
export type { NativeSelectOptGroupProps, NativeSelectOptionProps, NativeSelectProps } from
|
|
76
|
-
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from
|
|
77
|
-
export type { PaginationContentProps, PaginationEllipsisProps, PaginationItemProps, PaginationLinkProps, PaginationNextProps, PaginationPreviousProps, PaginationProps, } from
|
|
78
|
-
export { Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger } from
|
|
79
|
-
export type { PopoverAnchorProps, PopoverArrowProps, PopoverContentProps, PopoverProps, PopoverTriggerProps, } from
|
|
80
|
-
export { Progress } from
|
|
81
|
-
export type { ProgressProps } from
|
|
82
|
-
export { ProgressCircle, progressCircleVariants } from
|
|
83
|
-
export type { ProgressCircleProps } from
|
|
84
|
-
export { Radio } from
|
|
85
|
-
export type { RadioProps } from
|
|
86
|
-
export { RadioCards, RadioCardsItem } from
|
|
87
|
-
export type { RadioCardsItemProps, RadioCardsProps } from
|
|
88
|
-
export { RadioGroup, RadioGroupItem } from
|
|
89
|
-
export type { RadioGroupItemProps, RadioGroupProps } from
|
|
90
|
-
export { ResizableGroup, ResizablePanel, ResizableSeparator } from
|
|
91
|
-
export type { ResizableGroupProps, ResizablePanelProps, ResizableSeparatorProps } from
|
|
92
|
-
export { ScrollArea, ScrollAreaScrollbar, scrollAreaScrollbarVariants } from
|
|
93
|
-
export type { ScrollAreaProps, ScrollAreaScrollbarProps } from
|
|
94
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, } from
|
|
95
|
-
export type { SelectContentProps, SelectGroupProps, SelectItemProps, SelectLabelProps, SelectProps, SelectScrollDownButtonProps, SelectScrollUpButtonProps, SelectSeparatorProps, SelectTriggerProps, SelectValueProps, } from
|
|
96
|
-
export { Separator, SeparatorItem, separatorVariants } from
|
|
97
|
-
export type { SeparatorItemProps, SeparatorProps } from
|
|
98
|
-
export { Sheet, SheetBody, SheetClose, SheetContent, sheetContentVariants, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, } from
|
|
99
|
-
export type { SheetBodyProps, SheetCloseProps, SheetContentProps, SheetDescriptionProps, SheetFooterProps, SheetHeaderProps, SheetProps, SheetTitleProps, SheetTriggerProps, } from
|
|
100
|
-
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, sidebarMenuButtonVariants, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, } from
|
|
101
|
-
export type { SidebarContentProps, SidebarFooterProps, SidebarGroupActionProps, SidebarGroupContentProps, SidebarGroupLabelProps, SidebarGroupProps, SidebarHeaderProps, SidebarInputProps, SidebarInsetProps, SidebarMenuActionProps, SidebarMenuBadgeProps, SidebarMenuButtonProps, SidebarMenuItemProps, SidebarMenuProps, SidebarMenuSkeletonProps, SidebarMenuSubButtonProps, SidebarMenuSubItemProps, SidebarMenuSubProps, SidebarProps, SidebarProviderProps, SidebarRailProps, SidebarSeparatorProps, SidebarTriggerProps, } from
|
|
102
|
-
export { Skeleton } from
|
|
103
|
-
export type { SkeletonProps } from
|
|
104
|
-
export { Slider } from
|
|
105
|
-
export type { SliderProps } from
|
|
106
|
-
export { toast, Toaster, useSonner } from
|
|
107
|
-
export type { ToasterProps } from
|
|
108
|
-
export { Spinner } from
|
|
109
|
-
export type { SpinnerProps } from
|
|
110
|
-
export { Switch } from
|
|
111
|
-
export type { SwitchProps } from
|
|
112
|
-
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from
|
|
113
|
-
export type { TableBodyProps, TableCaptionProps, TableCellProps, TableFooterProps, TableHeaderProps, TableHeadProps, TableProps, TableRowProps, } from
|
|
114
|
-
export { Tabs, TabsContent, TabsList, TabsTrigger } from
|
|
115
|
-
export type { TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps } from
|
|
116
|
-
export { Textarea } from
|
|
117
|
-
export type { TextareaProps } from
|
|
118
|
-
export { Toggle, toggleVariants } from
|
|
119
|
-
export type { ToggleProps, ToggleVariants } from
|
|
120
|
-
export { ToggleGroup, ToggleGroupItem } from
|
|
121
|
-
export type { ToggleGroupItemProps, ToggleGroupProps } from
|
|
122
|
-
export { Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger } from
|
|
123
|
-
export type { TooltipArrowProps, TooltipContentProps, TooltipProps, TooltipProviderProps, TooltipTriggerProps, } from
|
|
124
|
-
export { useAnimatedValue } from
|
|
125
|
-
export { useCopyToClipboard } from
|
|
126
|
-
export { useIsMobile } from
|
|
127
|
-
export { useMediaQuery } from
|
|
128
|
-
export { useMutationObserver } from
|
|
129
|
-
export { ELLIPSIS, usePagination } from
|
|
130
|
-
export type { UsePaginationProps } from
|
|
1
|
+
export { Accordion, AccordionContent, AccordionIcon, AccordionItem, AccordionTrigger, } from "./components/accordion";
|
|
2
|
+
export type { AccordionContentProps, AccordionIconProps, AccordionItemProps, AccordionProps, AccordionTriggerProps, } from "./components/accordion";
|
|
3
|
+
export { Alert, AlertDescription, AlertTitle, alertVariants } from "./components/alert";
|
|
4
|
+
export type { AlertDescriptionProps, AlertProps, AlertTitleProps } from "./components/alert";
|
|
5
|
+
export { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "./components/alert-dialog";
|
|
6
|
+
export type { AlertDialogActionProps, AlertDialogBodyProps, AlertDialogCancelProps, AlertDialogContentProps, AlertDialogDescriptionProps, AlertDialogFooterProps, AlertDialogHeaderProps, AlertDialogProps, AlertDialogTitleProps, AlertDialogTriggerProps, } from "./components/alert-dialog";
|
|
7
|
+
export { AspectRatio } from "./components/aspect-ratio";
|
|
8
|
+
export type { AspectRatioProps } from "./components/aspect-ratio";
|
|
9
|
+
export { Avatar, AvatarFallback, AvatarImage } from "./components/avatar";
|
|
10
|
+
export type { AvatarFallbackProps, AvatarImageProps, AvatarProps } from "./components/avatar";
|
|
11
|
+
export { Badge, badgeVariants } from "./components/badge";
|
|
12
|
+
export type { BadgeProps } from "./components/badge";
|
|
13
|
+
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants, } from "./components/button-group";
|
|
14
|
+
export type { ButtonGroupProps, ButtonGroupSeparatorProps, ButtonGroupTextProps, } from "./components/button-group";
|
|
15
|
+
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "./components/breadcrumb";
|
|
16
|
+
export type { BreadcrumbEllipsisProps, BreadcrumbItemProps, BreadcrumbLinkProps, BreadcrumbListProps, BreadcrumbPageProps, BreadcrumbProps, BreadcrumbSeparatorProps, } from "./components/breadcrumb";
|
|
17
|
+
export { Button, buttonVariants } from "./components/button";
|
|
18
|
+
export type { ButtonProps } from "./components/button";
|
|
19
|
+
export { Calendar, CalendarDayButton } from "./components/calendar";
|
|
20
|
+
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "./components/card";
|
|
21
|
+
export type { CardActionProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, } from "./components/card";
|
|
22
|
+
export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, createCarouselScope, } from "./components/carousel";
|
|
23
|
+
export type { CarouselApi, CarouselContentProps, CarouselItemProps, CarouselNextProps, CarouselPreviousProps, CarouselProps, } from "./components/carousel";
|
|
24
|
+
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, createChartScope, } from "./components/chart";
|
|
25
|
+
export type { ChartConfig, ChartContainerProps, ChartLegendContentProps, ChartLegendProps, ChartStyleProps, ChartTooltipContentProps, ChartTooltipProps, } from "./components/chart";
|
|
26
|
+
export { Checkbox } from "./components/checkbox";
|
|
27
|
+
export type { CheckboxProps } from "./components/checkbox";
|
|
28
|
+
export { CheckboxCards, CheckboxCardsItem } from "./components/checkbox-cards";
|
|
29
|
+
export type { CheckboxCardsItemProps, CheckboxCardsProps } from "./components/checkbox-cards";
|
|
30
|
+
export { CheckboxGroup, CheckboxGroupItem } from "./components/checkbox-group";
|
|
31
|
+
export type { CheckboxGroupItemProps, CheckboxGroupProps } from "./components/checkbox-group";
|
|
32
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./components/collapsible";
|
|
33
|
+
export type { CollapsibleContentProps, CollapsibleProps, CollapsibleTriggerProps, } from "./components/collapsible";
|
|
34
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, } from "./components/command";
|
|
35
|
+
export type { CommandDialogProps, CommandEmptyProps, CommandGroupProps, CommandInputProps, CommandItemProps, CommandListProps, CommandLoadingProps, CommandProps, CommandSeparatorProps, CommandShortcutProps, } from "./components/command";
|
|
36
|
+
export { ContextMenu, ContextMenuArrow, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, } from "./components/context-menu";
|
|
37
|
+
export type { ContextMenuArrowProps, ContextMenuCheckboxItemProps, ContextMenuContentProps, ContextMenuGroupProps, ContextMenuItemProps, ContextMenuLabelProps, ContextMenuProps, ContextMenuRadioGroupProps, ContextMenuRadioItemProps, ContextMenuSeparatorProps, ContextMenuShortcutProps, ContextMenuSubContentProps, ContextMenuSubProps, ContextMenuSubTriggerProps, ContextMenuTriggerProps, } from "./components/context-menu";
|
|
38
|
+
export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from "./components/dialog";
|
|
39
|
+
export type { DialogBodyProps, DialogCloseProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogProps, DialogTitleProps, DialogTriggerProps, } from "./components/dialog";
|
|
40
|
+
export { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, } from "./components/drawer";
|
|
41
|
+
export type { DrawerBodyProps, DrawerCloseProps, DrawerContentProps, DrawerDescriptionProps, DrawerFooterProps, DrawerHeaderProps, DrawerProps, DrawerTitleProps, DrawerTriggerProps, } from "./components/drawer";
|
|
42
|
+
export { DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from "./components/dropdown-menu";
|
|
43
|
+
export type { DropdownMenuArrowProps, DropdownMenuCheckboxItemProps, DropdownMenuContentProps, DropdownMenuGroupProps, DropdownMenuItemProps, DropdownMenuLabelProps, DropdownMenuProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuSeparatorProps, DropdownMenuShortcutProps, DropdownMenuSubContentProps, DropdownMenuSubProps, DropdownMenuSubTriggerProps, DropdownMenuTriggerProps, } from "./components/dropdown-menu";
|
|
44
|
+
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, emptyMediaVariants, EmptyTitle, } from "./components/empty";
|
|
45
|
+
export type { EmptyContentProps, EmptyDescriptionProps, EmptyHeaderProps, EmptyMediaProps, EmptyProps, EmptyTitleProps, } from "./components/empty";
|
|
46
|
+
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, fieldVariants, } from "./components/field";
|
|
47
|
+
export type { FieldContentProps, FieldDescriptionProps, FieldErrorProps, FieldGroupProps, FieldLabelProps, FieldLegendProps, FieldProps, FieldSeparatorProps, FieldSetProps, FieldTitleProps, } from "./components/field";
|
|
48
|
+
export { createFormFieldScope, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, } from "./components/form";
|
|
49
|
+
export type { FormControlProps, FormDescriptionProps, FormFieldProps, FormItemProps, FormLabelProps, FormMessageProps, FormProps, } from "./components/form";
|
|
50
|
+
export { HoverCard, HoverCardArrow, HoverCardContent, HoverCardTrigger, } from "./components/hover-card";
|
|
51
|
+
export type { HoverCardArrowProps, HoverCardContentProps, HoverCardProps, HoverCardTriggerProps, } from "./components/hover-card";
|
|
52
|
+
export { Input } from "./components/input";
|
|
53
|
+
export type { InputProps } from "./components/input";
|
|
54
|
+
export { InputGroup, InputGroupAddon, inputGroupAddonVariants, InputGroupButton, inputGroupButtonVariants, InputGroupInput, InputGroupText, InputGroupTextarea, inputGroupVariants, } from "./components/input-group";
|
|
55
|
+
export type { InputGroupAddonProps, InputGroupButtonProps, InputGroupInputProps, InputGroupProps, InputGroupTextareaProps, InputGroupTextProps, } from "./components/input-group";
|
|
56
|
+
export { InputNumber } from "./components/input-number";
|
|
57
|
+
export type { InputNumberProps } from "./components/input-number";
|
|
58
|
+
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, } from "./components/input-otp";
|
|
59
|
+
export type { InputOTPGroupProps, InputOTPProps, InputOTPSeparatorProps, InputOTPSlotProps, } from "./components/input-otp";
|
|
60
|
+
export { InputPassword } from "./components/input-password";
|
|
61
|
+
export type { InputPasswordProps } from "./components/input-password";
|
|
62
|
+
export { InputSearch } from "./components/input-search";
|
|
63
|
+
export type { InputSearchProps } from "./components/input-search";
|
|
64
|
+
export { Kbd, KbdGroup } from "./components/kbd";
|
|
65
|
+
export type { KbdGroupProps, KbdProps } from "./components/kbd";
|
|
66
|
+
export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, itemMediaVariants, ItemSeparator, ItemTitle, itemVariants, } from "./components/item";
|
|
67
|
+
export type { ItemActionsProps, ItemContentProps, ItemDescriptionProps, ItemFooterProps, ItemGroupProps, ItemHeaderProps, ItemMediaProps, ItemProps, ItemSeparatorProps, ItemTitleProps, } from "./components/item";
|
|
68
|
+
export { Label } from "./components/label";
|
|
69
|
+
export type { LabelProps } from "./components/label";
|
|
70
|
+
export { Menubar, MenubarArrow, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, } from "./components/menubar";
|
|
71
|
+
export type { MenubarArrowProps, MenubarCheckboxItemProps, MenubarContentProps, MenubarGroupProps, MenubarItemProps, MenubarLabelProps, MenubarMenuProps, MenubarProps, MenubarRadioGroupProps, MenubarRadioItemProps, MenubarSeparatorProps, MenubarShortcutProps, MenubarSubContentProps, MenubarSubProps, MenubarSubTriggerProps, MenubarTriggerProps, } from "./components/menubar";
|
|
72
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, navigationMenuTriggerVariants, } from "./components/navigation-menu";
|
|
73
|
+
export type { NavigationMenuContentProps, NavigationMenuItemProps, NavigationMenuLinkProps, NavigationMenuListProps, NavigationMenuProps, NavigationMenuTriggerProps, } from "./components/navigation-menu";
|
|
74
|
+
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from "./components/native-select";
|
|
75
|
+
export type { NativeSelectOptGroupProps, NativeSelectOptionProps, NativeSelectProps, } from "./components/native-select";
|
|
76
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from "./components/pagination";
|
|
77
|
+
export type { PaginationContentProps, PaginationEllipsisProps, PaginationItemProps, PaginationLinkProps, PaginationNextProps, PaginationPreviousProps, PaginationProps, } from "./components/pagination";
|
|
78
|
+
export { Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, } from "./components/popover";
|
|
79
|
+
export type { PopoverAnchorProps, PopoverArrowProps, PopoverContentProps, PopoverProps, PopoverTriggerProps, } from "./components/popover";
|
|
80
|
+
export { Progress } from "./components/progress";
|
|
81
|
+
export type { ProgressProps } from "./components/progress";
|
|
82
|
+
export { ProgressCircle, progressCircleVariants } from "./components/progress-circle";
|
|
83
|
+
export type { ProgressCircleProps } from "./components/progress-circle";
|
|
84
|
+
export { Radio } from "./components/radio";
|
|
85
|
+
export type { RadioProps } from "./components/radio";
|
|
86
|
+
export { RadioCards, RadioCardsItem } from "./components/radio-cards";
|
|
87
|
+
export type { RadioCardsItemProps, RadioCardsProps } from "./components/radio-cards";
|
|
88
|
+
export { RadioGroup, RadioGroupItem } from "./components/radio-group";
|
|
89
|
+
export type { RadioGroupItemProps, RadioGroupProps } from "./components/radio-group";
|
|
90
|
+
export { ResizableGroup, ResizablePanel, ResizableSeparator } from "./components/resizable";
|
|
91
|
+
export type { ResizableGroupProps, ResizablePanelProps, ResizableSeparatorProps, } from "./components/resizable";
|
|
92
|
+
export { ScrollArea, ScrollAreaScrollbar, scrollAreaScrollbarVariants, } from "./components/scroll-area";
|
|
93
|
+
export type { ScrollAreaProps, ScrollAreaScrollbarProps } from "./components/scroll-area";
|
|
94
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, } from "./components/select";
|
|
95
|
+
export type { SelectContentProps, SelectGroupProps, SelectItemProps, SelectLabelProps, SelectProps, SelectScrollDownButtonProps, SelectScrollUpButtonProps, SelectSeparatorProps, SelectTriggerProps, SelectValueProps, } from "./components/select";
|
|
96
|
+
export { Separator, SeparatorItem, separatorVariants } from "./components/separator";
|
|
97
|
+
export type { SeparatorItemProps, SeparatorProps } from "./components/separator";
|
|
98
|
+
export { Sheet, SheetBody, SheetClose, SheetContent, sheetContentVariants, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, } from "./components/sheet";
|
|
99
|
+
export type { SheetBodyProps, SheetCloseProps, SheetContentProps, SheetDescriptionProps, SheetFooterProps, SheetHeaderProps, SheetProps, SheetTitleProps, SheetTriggerProps, } from "./components/sheet";
|
|
100
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, sidebarMenuButtonVariants, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, } from "./components/sidebar";
|
|
101
|
+
export type { SidebarContentProps, SidebarFooterProps, SidebarGroupActionProps, SidebarGroupContentProps, SidebarGroupLabelProps, SidebarGroupProps, SidebarHeaderProps, SidebarInputProps, SidebarInsetProps, SidebarMenuActionProps, SidebarMenuBadgeProps, SidebarMenuButtonProps, SidebarMenuItemProps, SidebarMenuProps, SidebarMenuSkeletonProps, SidebarMenuSubButtonProps, SidebarMenuSubItemProps, SidebarMenuSubProps, SidebarProps, SidebarProviderProps, SidebarRailProps, SidebarSeparatorProps, SidebarTriggerProps, } from "./components/sidebar";
|
|
102
|
+
export { Skeleton } from "./components/skeleton";
|
|
103
|
+
export type { SkeletonProps } from "./components/skeleton";
|
|
104
|
+
export { Slider } from "./components/slider";
|
|
105
|
+
export type { SliderProps } from "./components/slider";
|
|
106
|
+
export { toast, Toaster, useSonner } from "./components/sonner";
|
|
107
|
+
export type { ToasterProps } from "./components/sonner";
|
|
108
|
+
export { Spinner } from "./components/spinner";
|
|
109
|
+
export type { SpinnerProps } from "./components/spinner";
|
|
110
|
+
export { Switch } from "./components/switch";
|
|
111
|
+
export type { SwitchProps } from "./components/switch";
|
|
112
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from "./components/table";
|
|
113
|
+
export type { TableBodyProps, TableCaptionProps, TableCellProps, TableFooterProps, TableHeaderProps, TableHeadProps, TableProps, TableRowProps, } from "./components/table";
|
|
114
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger } from "./components/tabs";
|
|
115
|
+
export type { TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps, } from "./components/tabs";
|
|
116
|
+
export { Textarea } from "./components/textarea";
|
|
117
|
+
export type { TextareaProps } from "./components/textarea";
|
|
118
|
+
export { Toggle, toggleVariants } from "./components/toggle";
|
|
119
|
+
export type { ToggleProps, ToggleVariants } from "./components/toggle";
|
|
120
|
+
export { ToggleGroup, ToggleGroupItem } from "./components/toggle-group";
|
|
121
|
+
export type { ToggleGroupItemProps, ToggleGroupProps } from "./components/toggle-group";
|
|
122
|
+
export { Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, } from "./components/tooltip";
|
|
123
|
+
export type { TooltipArrowProps, TooltipContentProps, TooltipProps, TooltipProviderProps, TooltipTriggerProps, } from "./components/tooltip";
|
|
124
|
+
export { useAnimatedValue } from "./hooks/use-animated-value";
|
|
125
|
+
export { useCopyToClipboard } from "./hooks/use-copy-to-clipboard";
|
|
126
|
+
export { useIsMobile } from "./hooks/use-is-mobile";
|
|
127
|
+
export { useMediaQuery } from "./hooks/use-media-query";
|
|
128
|
+
export { useMutationObserver } from "./hooks/use-mutation-observer";
|
|
129
|
+
export { ELLIPSIS, usePagination } from "./hooks/use-pagination";
|
|
130
|
+
export type { UsePaginationProps } from "./hooks/use-pagination";
|
|
@@ -39,7 +39,7 @@ const react_direction_namespaceObject = require("@radix-ui/react-direction");
|
|
|
39
39
|
const react_roving_focus_namespaceObject = require("@radix-ui/react-roving-focus");
|
|
40
40
|
const react_use_controllable_state_namespaceObject = require("@radix-ui/react-use-controllable-state");
|
|
41
41
|
const external_react_namespaceObject = require("react");
|
|
42
|
-
const CHECKBOX_GROUP_NAME =
|
|
42
|
+
const CHECKBOX_GROUP_NAME = "CheckboxGroup";
|
|
43
43
|
const [createCheckboxGroupContext, createCheckboxGroupScope] = (0, react_context_namespaceObject.createContextScope)(CHECKBOX_GROUP_NAME, [
|
|
44
44
|
react_roving_focus_namespaceObject.createRovingFocusGroupScope,
|
|
45
45
|
react_checkbox_namespaceObject.createCheckboxScope
|
|
@@ -88,7 +88,7 @@ function CheckboxGroup({ __scopeCheckboxGroup, defaultValue, dir, disabled = fal
|
|
|
88
88
|
loop: loop,
|
|
89
89
|
orientation: orientation,
|
|
90
90
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
91
|
-
"data-disabled": disabled ?
|
|
91
|
+
"data-disabled": disabled ? "" : void 0,
|
|
92
92
|
dir: direction,
|
|
93
93
|
role: "group",
|
|
94
94
|
...props
|
|
@@ -96,7 +96,7 @@ function CheckboxGroup({ __scopeCheckboxGroup, defaultValue, dir, disabled = fal
|
|
|
96
96
|
})
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
const ITEM_NAME =
|
|
99
|
+
const ITEM_NAME = "CheckboxGroupItem";
|
|
100
100
|
function CheckboxGroupItem({ __scopeCheckboxGroup, disabled, ...props }) {
|
|
101
101
|
const context = useCheckboxGroupContext(ITEM_NAME, __scopeCheckboxGroup);
|
|
102
102
|
const isDisabled = context.disabled || disabled;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Scope } from
|
|
2
|
-
import type { ComponentProps, JSX } from
|
|
3
|
-
import * as CheckboxPrimitive from
|
|
4
|
-
import * as RovingFocusGroup from
|
|
1
|
+
import type { Scope } from "@radix-ui/react-context";
|
|
2
|
+
import type { ComponentProps, JSX } from "react";
|
|
3
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
4
|
+
import * as RovingFocusGroup from "@radix-ui/react-roving-focus";
|
|
5
5
|
/**
|
|
6
6
|
* Type for components that can be scoped within the CheckboxGroup context
|
|
7
7
|
*/
|
|
@@ -54,7 +54,7 @@ interface CheckboxGroupBaseProps {
|
|
|
54
54
|
/**
|
|
55
55
|
* Direction for roving focus navigation
|
|
56
56
|
*/
|
|
57
|
-
dir?: RovingFocusGroup.RovingFocusGroupProps[
|
|
57
|
+
dir?: RovingFocusGroup.RovingFocusGroupProps["dir"];
|
|
58
58
|
/**
|
|
59
59
|
* Whether the entire checkbox group is disabled
|
|
60
60
|
*/
|
|
@@ -62,11 +62,11 @@ interface CheckboxGroupBaseProps {
|
|
|
62
62
|
/**
|
|
63
63
|
* Whether focus should loop to the start/end when reaching the boundaries
|
|
64
64
|
*/
|
|
65
|
-
loop?: RovingFocusGroup.RovingFocusGroupProps[
|
|
65
|
+
loop?: RovingFocusGroup.RovingFocusGroupProps["loop"];
|
|
66
66
|
/**
|
|
67
67
|
* Name attribute for the checkbox group form field
|
|
68
68
|
*/
|
|
69
|
-
name?: CheckboxGroupContextValue[
|
|
69
|
+
name?: CheckboxGroupContextValue["name"];
|
|
70
70
|
/**
|
|
71
71
|
* Callback fired when the selected values change
|
|
72
72
|
* @param value - The new array of selected values
|
|
@@ -75,7 +75,7 @@ interface CheckboxGroupBaseProps {
|
|
|
75
75
|
/**
|
|
76
76
|
* Orientation of the checkbox group (horizontal or vertical)
|
|
77
77
|
*/
|
|
78
|
-
orientation?: RovingFocusGroup.RovingFocusGroupProps[
|
|
78
|
+
orientation?: RovingFocusGroup.RovingFocusGroupProps["orientation"];
|
|
79
79
|
/**
|
|
80
80
|
* Whether at least one checkbox must be selected
|
|
81
81
|
*/
|
|
@@ -83,12 +83,12 @@ interface CheckboxGroupBaseProps {
|
|
|
83
83
|
/**
|
|
84
84
|
* Controlled values for the checkbox group
|
|
85
85
|
*/
|
|
86
|
-
value?: CheckboxGroupContextValue[
|
|
86
|
+
value?: CheckboxGroupContextValue["value"];
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
89
|
* Props for the CheckboxGroup component
|
|
90
90
|
*/
|
|
91
|
-
type CheckboxGroupProps = CheckboxGroupBaseProps & ComponentProps<
|
|
91
|
+
type CheckboxGroupProps = CheckboxGroupBaseProps & ComponentProps<"div">;
|
|
92
92
|
/**
|
|
93
93
|
* CheckboxGroup component that manages a group of checkboxes with roving focus
|
|
94
94
|
*/
|
|
@@ -96,7 +96,7 @@ declare function CheckboxGroup({ __scopeCheckboxGroup, defaultValue, dir, disabl
|
|
|
96
96
|
/**
|
|
97
97
|
* Props for the CheckboxGroupItem component
|
|
98
98
|
*/
|
|
99
|
-
interface CheckboxGroupItemProps extends Omit<ComponentProps<typeof CheckboxPrimitive.Root>,
|
|
99
|
+
interface CheckboxGroupItemProps extends Omit<ComponentProps<typeof CheckboxPrimitive.Root>, "checked" | "defaultChecked" | "name" | "onCheckedChange"> {
|
|
100
100
|
/**
|
|
101
101
|
* Value of the checkbox item, used to identify the item within the group
|
|
102
102
|
*/
|
|
@@ -5,7 +5,7 @@ import { useDirection } from "@radix-ui/react-direction";
|
|
|
5
5
|
import { Item, Root as react_roving_focus_Root, createRovingFocusGroupScope } from "@radix-ui/react-roving-focus";
|
|
6
6
|
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
7
7
|
import { useCallback } from "react";
|
|
8
|
-
const CHECKBOX_GROUP_NAME =
|
|
8
|
+
const CHECKBOX_GROUP_NAME = "CheckboxGroup";
|
|
9
9
|
const [createCheckboxGroupContext, createCheckboxGroupScope] = createContextScope(CHECKBOX_GROUP_NAME, [
|
|
10
10
|
createRovingFocusGroupScope,
|
|
11
11
|
createCheckboxScope
|
|
@@ -54,7 +54,7 @@ function CheckboxGroup({ __scopeCheckboxGroup, defaultValue, dir, disabled = fal
|
|
|
54
54
|
loop: loop,
|
|
55
55
|
orientation: orientation,
|
|
56
56
|
children: /*#__PURE__*/ jsx("div", {
|
|
57
|
-
"data-disabled": disabled ?
|
|
57
|
+
"data-disabled": disabled ? "" : void 0,
|
|
58
58
|
dir: direction,
|
|
59
59
|
role: "group",
|
|
60
60
|
...props
|
|
@@ -62,7 +62,7 @@ function CheckboxGroup({ __scopeCheckboxGroup, defaultValue, dir, disabled = fal
|
|
|
62
62
|
})
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
const ITEM_NAME =
|
|
65
|
+
const ITEM_NAME = "CheckboxGroupItem";
|
|
66
66
|
function CheckboxGroupItem({ __scopeCheckboxGroup, disabled, ...props }) {
|
|
67
67
|
const context = useCheckboxGroupContext(ITEM_NAME, __scopeCheckboxGroup);
|
|
68
68
|
const isDisabled = context.disabled || disabled;
|