@jackbernnie/hiyf 0.1.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/LICENSE +191 -0
- package/NOTICE +12 -0
- package/README.md +47 -0
- package/dist/components/Accordion.d.ts +38 -0
- package/dist/components/Accordion.js +38 -0
- package/dist/components/Alert.d.ts +29 -0
- package/dist/components/Alert.js +39 -0
- package/dist/components/AlertDialog.d.ts +37 -0
- package/dist/components/AlertDialog.js +38 -0
- package/dist/components/AspectRatio.d.ts +15 -0
- package/dist/components/AspectRatio.js +15 -0
- package/dist/components/Avatar.d.ts +26 -0
- package/dist/components/Avatar.js +13 -0
- package/dist/components/Badge.d.ts +18 -0
- package/dist/components/Badge.js +17 -0
- package/dist/components/Box.d.ts +13 -0
- package/dist/components/Box.js +52 -0
- package/dist/components/Breadcrumb.d.ts +33 -0
- package/dist/components/Breadcrumb.js +16 -0
- package/dist/components/Button.d.ts +40 -0
- package/dist/components/Button.js +33 -0
- package/dist/components/ButtonGroup.d.ts +18 -0
- package/dist/components/ButtonGroup.js +8 -0
- package/dist/components/Card.d.ts +46 -0
- package/dist/components/Card.js +24 -0
- package/dist/components/Carousel.d.ts +27 -0
- package/dist/components/Carousel.js +13 -0
- package/dist/components/Chart.d.ts +17 -0
- package/dist/components/Chart.js +94 -0
- package/dist/components/Checkbox.d.ts +26 -0
- package/dist/components/Checkbox.js +9 -0
- package/dist/components/Collapsible.d.ts +27 -0
- package/dist/components/Collapsible.js +26 -0
- package/dist/components/Combobox.d.ts +36 -0
- package/dist/components/Combobox.js +41 -0
- package/dist/components/Command.d.ts +37 -0
- package/dist/components/Command.js +32 -0
- package/dist/components/ContextMenu.d.ts +34 -0
- package/dist/components/ContextMenu.js +23 -0
- package/dist/components/Dialog.d.ts +20 -0
- package/dist/components/Dialog.js +34 -0
- package/dist/components/Drawer.d.ts +28 -0
- package/dist/components/Drawer.js +25 -0
- package/dist/components/DropdownMenu.d.ts +42 -0
- package/dist/components/DropdownMenu.js +32 -0
- package/dist/components/Empty.d.ts +28 -0
- package/dist/components/Empty.js +15 -0
- package/dist/components/Field.d.ts +30 -0
- package/dist/components/Field.js +13 -0
- package/dist/components/Grid.d.ts +32 -0
- package/dist/components/Grid.js +37 -0
- package/dist/components/GridItem.d.ts +30 -0
- package/dist/components/GridItem.js +40 -0
- package/dist/components/HoverCard.d.ts +22 -0
- package/dist/components/HoverCard.js +12 -0
- package/dist/components/Input.d.ts +34 -0
- package/dist/components/Input.js +8 -0
- package/dist/components/InputGroup.d.ts +28 -0
- package/dist/components/InputGroup.js +13 -0
- package/dist/components/InputOTP.d.ts +26 -0
- package/dist/components/InputOTP.js +25 -0
- package/dist/components/Kbd.d.ts +26 -0
- package/dist/components/Kbd.js +11 -0
- package/dist/components/Label.d.ts +20 -0
- package/dist/components/Label.js +17 -0
- package/dist/components/Menubar.d.ts +35 -0
- package/dist/components/Menubar.js +19 -0
- package/dist/components/NativeSelect.d.ts +33 -0
- package/dist/components/NativeSelect.js +37 -0
- package/dist/components/NavigationMenu.d.ts +32 -0
- package/dist/components/NavigationMenu.js +14 -0
- package/dist/components/Pagination.d.ts +28 -0
- package/dist/components/Pagination.js +62 -0
- package/dist/components/Popover.d.ts +28 -0
- package/dist/components/Popover.js +19 -0
- package/dist/components/Progress.d.ts +25 -0
- package/dist/components/Progress.js +37 -0
- package/dist/components/RadioGroup.d.ts +35 -0
- package/dist/components/RadioGroup.js +44 -0
- package/dist/components/Resizable.d.ts +31 -0
- package/dist/components/Resizable.js +17 -0
- package/dist/components/ScrollArea.d.ts +8 -0
- package/dist/components/ScrollArea.js +14 -0
- package/dist/components/Select.d.ts +35 -0
- package/dist/components/Select.js +33 -0
- package/dist/components/Separator.d.ts +10 -0
- package/dist/components/Separator.js +30 -0
- package/dist/components/Sheet.d.ts +31 -0
- package/dist/components/Sheet.js +26 -0
- package/dist/components/Sidebar.d.ts +52 -0
- package/dist/components/Sidebar.js +96 -0
- package/dist/components/Skeleton.d.ts +40 -0
- package/dist/components/Skeleton.js +42 -0
- package/dist/components/Slider.d.ts +26 -0
- package/dist/components/Slider.js +9 -0
- package/dist/components/Spinner.d.ts +7 -0
- package/dist/components/Spinner.js +13 -0
- package/dist/components/Status.d.ts +30 -0
- package/dist/components/Status.js +27 -0
- package/dist/components/Switch.d.ts +27 -0
- package/dist/components/Switch.js +9 -0
- package/dist/components/Table.d.ts +39 -0
- package/dist/components/Table.js +22 -0
- package/dist/components/Tabs.d.ts +32 -0
- package/dist/components/Tabs.js +21 -0
- package/dist/components/Text.d.ts +2 -0
- package/dist/components/Text.js +5 -0
- package/dist/components/Textarea.d.ts +32 -0
- package/dist/components/Textarea.js +15 -0
- package/dist/components/Toaster.d.ts +30 -0
- package/dist/components/Toaster.js +9 -0
- package/dist/components/Toggle.d.ts +34 -0
- package/dist/components/Toggle.js +31 -0
- package/dist/components/ToggleGroup.d.ts +46 -0
- package/dist/components/ToggleGroup.js +26 -0
- package/dist/components/Tooltip.d.ts +25 -0
- package/dist/components/Tooltip.js +12 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/accordion.js +81 -0
- package/dist/components/ui/alert-dialog.d.ts +18 -0
- package/dist/components/ui/alert-dialog.js +154 -0
- package/dist/components/ui/alert.d.ts +10 -0
- package/dist/components/ui/alert.js +64 -0
- package/dist/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/components/ui/aspect-ratio.js +11 -0
- package/dist/components/ui/avatar.d.ts +11 -0
- package/dist/components/ui/avatar.js +57 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/badge.js +42 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/breadcrumb.js +87 -0
- package/dist/components/ui/button-group.d.ts +11 -0
- package/dist/components/ui/button-group.js +37 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/button.js +55 -0
- package/dist/components/ui/card.d.ts +11 -0
- package/dist/components/ui/card.js +82 -0
- package/dist/components/ui/carousel.d.ts +28 -0
- package/dist/components/ui/carousel.js +196 -0
- package/dist/components/ui/chart.d.ts +44 -0
- package/dist/components/ui/chart.js +198 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/checkbox.js +33 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/collapsible.js +33 -0
- package/dist/components/ui/combobox.d.ts +24 -0
- package/dist/components/ui/combobox.js +160 -0
- package/dist/components/ui/command.d.ts +18 -0
- package/dist/components/ui/command.js +142 -0
- package/dist/components/ui/context-menu.d.ts +31 -0
- package/dist/components/ui/context-menu.js +73 -0
- package/dist/components/ui/dialog.d.ts +17 -0
- package/dist/components/ui/dialog.js +138 -0
- package/dist/components/ui/direction.d.ts +7 -0
- package/dist/components/ui/direction.js +14 -0
- package/dist/components/ui/drawer.d.ts +13 -0
- package/dist/components/ui/drawer.js +101 -0
- package/dist/components/ui/dropdown-menu.d.ts +29 -0
- package/dist/components/ui/dropdown-menu.js +98 -0
- package/dist/components/ui/empty.d.ts +11 -0
- package/dist/components/ui/empty.js +97 -0
- package/dist/components/ui/field.d.ts +24 -0
- package/dist/components/ui/field.js +110 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/hover-card.js +37 -0
- package/dist/components/ui/input-group.d.ts +16 -0
- package/dist/components/ui/input-group.js +111 -0
- package/dist/components/ui/input-otp.d.ts +11 -0
- package/dist/components/ui/input-otp.js +66 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/input.js +19 -0
- package/dist/components/ui/item.d.ts +23 -0
- package/dist/components/ui/item.js +181 -0
- package/dist/components/ui/kbd.d.ts +3 -0
- package/dist/components/ui/kbd.js +28 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/label.js +23 -0
- package/dist/components/ui/menubar.d.ts +30 -0
- package/dist/components/ui/menubar.js +119 -0
- package/dist/components/ui/native-select.d.ts +8 -0
- package/dist/components/ui/native-select.js +49 -0
- package/dist/components/ui/navigation-menu.d.ts +14 -0
- package/dist/components/ui/navigation-menu.js +139 -0
- package/dist/components/ui/pagination.d.ts +17 -0
- package/dist/components/ui/pagination.js +120 -0
- package/dist/components/ui/popover.d.ts +10 -0
- package/dist/components/ui/popover.js +37 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/radio-group.js +44 -0
- package/dist/components/ui/resizable.d.ts +7 -0
- package/dist/components/ui/resizable.js +44 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/scroll-area.js +59 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/select.js +131 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/separator.js +27 -0
- package/dist/components/ui/sheet.d.ts +14 -0
- package/dist/components/ui/sheet.js +113 -0
- package/dist/components/ui/sidebar.d.ts +69 -0
- package/dist/components/ui/sidebar.js +459 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/slider.js +60 -0
- package/dist/components/ui/sonner.d.ts +3 -0
- package/dist/components/ui/sonner.js +38 -0
- package/dist/components/ui/spinner.d.ts +2 -0
- package/dist/components/ui/spinner.js +13 -0
- package/dist/components/ui/switch.d.ts +6 -0
- package/dist/components/ui/switch.js +32 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/table.js +95 -0
- package/dist/components/ui/tabs.d.ts +11 -0
- package/dist/components/ui/tabs.js +87 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/textarea.js +18 -0
- package/dist/components/ui/toggle-group.d.ts +10 -0
- package/dist/components/ui/toggle-group.js +76 -0
- package/dist/components/ui/toggle.d.ts +9 -0
- package/dist/components/ui/toggle.js +43 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/components/ui/tooltip.js +53 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.js +18 -0
- package/dist/index.d.ts +122 -0
- package/dist/index.js +61 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.js +8 -0
- package/dist/primitives/createText.d.ts +103 -0
- package/dist/primitives/createText.js +183 -0
- package/dist/primitives/resolveProperties.d.ts +17 -0
- package/dist/stylex.css +1450 -0
- package/dist/tokens/animations.d.ts +126 -0
- package/dist/tokens/animations.js +61 -0
- package/dist/tokens/tokens.stylex.d.ts +85 -0
- package/dist/tokens/tokens.stylex.js +81 -0
- package/dist/utils/box-styles.d.ts +1117 -0
- package/dist/utils/box-styles.js +1455 -0
- package/dist/utils/grid.d.ts +4 -0
- package/dist/utils/resolvers.d.ts +10 -0
- package/dist/utils/resolvers.js +356 -0
- package/dist/utils/types.d.ts +133 -0
- package/package.json +80 -0
- package/src/theme.css +206 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { cn } from '../../lib/utils.js';
|
|
4
|
+
|
|
5
|
+
function Table({ className, ...props }) {
|
|
6
|
+
return /* @__PURE__ */ jsx(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
"data-slot": "table-container",
|
|
10
|
+
className: "relative w-full overflow-x-auto",
|
|
11
|
+
children: /* @__PURE__ */ jsx(
|
|
12
|
+
"table",
|
|
13
|
+
{
|
|
14
|
+
"data-slot": "table",
|
|
15
|
+
className: cn("w-full caption-bottom text-sm", className),
|
|
16
|
+
...props
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
function TableHeader({ className, ...props }) {
|
|
23
|
+
return /* @__PURE__ */ jsx(
|
|
24
|
+
"thead",
|
|
25
|
+
{
|
|
26
|
+
"data-slot": "table-header",
|
|
27
|
+
className: cn("[&_tr]:border-b", className),
|
|
28
|
+
...props
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
function TableBody({ className, ...props }) {
|
|
33
|
+
return /* @__PURE__ */ jsx(
|
|
34
|
+
"tbody",
|
|
35
|
+
{
|
|
36
|
+
"data-slot": "table-body",
|
|
37
|
+
className: cn("[&_tr:last-child]:border-0", className),
|
|
38
|
+
...props
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
function TableRow({ className, ...props }) {
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
44
|
+
"tr",
|
|
45
|
+
{
|
|
46
|
+
"data-slot": "table-row",
|
|
47
|
+
className: cn(
|
|
48
|
+
"border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",
|
|
49
|
+
className
|
|
50
|
+
),
|
|
51
|
+
...props
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
function TableHead({ className, ...props }) {
|
|
56
|
+
return /* @__PURE__ */ jsx(
|
|
57
|
+
"th",
|
|
58
|
+
{
|
|
59
|
+
"data-slot": "table-head",
|
|
60
|
+
className: cn(
|
|
61
|
+
"h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",
|
|
62
|
+
className
|
|
63
|
+
),
|
|
64
|
+
...props
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
function TableCell({ className, ...props }) {
|
|
69
|
+
return /* @__PURE__ */ jsx(
|
|
70
|
+
"td",
|
|
71
|
+
{
|
|
72
|
+
"data-slot": "table-cell",
|
|
73
|
+
className: cn(
|
|
74
|
+
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",
|
|
75
|
+
className
|
|
76
|
+
),
|
|
77
|
+
...props
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
function TableCaption({
|
|
82
|
+
className,
|
|
83
|
+
...props
|
|
84
|
+
}) {
|
|
85
|
+
return /* @__PURE__ */ jsx(
|
|
86
|
+
"caption",
|
|
87
|
+
{
|
|
88
|
+
"data-slot": "table-caption",
|
|
89
|
+
className: cn("mt-4 text-sm text-muted-foreground", className),
|
|
90
|
+
...props
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
import { Tabs as TabsPrimitive } from "radix-ui";
|
|
4
|
+
declare function Tabs({ className, orientation, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): React.JSX.Element;
|
|
5
|
+
declare const tabsListVariants: (props?: ({
|
|
6
|
+
variant?: "default" | "line" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
declare function TabsList({ className, variant, ...props }: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): React.JSX.Element;
|
|
9
|
+
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): React.JSX.Element;
|
|
10
|
+
declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): React.JSX.Element;
|
|
11
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
|
+
import { Tabs as Tabs$1 } from 'radix-ui';
|
|
5
|
+
import { cn } from '../../lib/utils.js';
|
|
6
|
+
|
|
7
|
+
function Tabs({
|
|
8
|
+
className,
|
|
9
|
+
orientation = "horizontal",
|
|
10
|
+
...props
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ jsx(
|
|
13
|
+
Tabs$1.Root,
|
|
14
|
+
{
|
|
15
|
+
"data-slot": "tabs",
|
|
16
|
+
"data-orientation": orientation,
|
|
17
|
+
className: cn(
|
|
18
|
+
"group/tabs flex gap-2 data-horizontal:flex-col",
|
|
19
|
+
className
|
|
20
|
+
),
|
|
21
|
+
...props
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
const tabsListVariants = cva(
|
|
26
|
+
"group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-9 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",
|
|
27
|
+
{
|
|
28
|
+
variants: {
|
|
29
|
+
variant: {
|
|
30
|
+
default: "bg-muted",
|
|
31
|
+
line: "gap-1 bg-transparent"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
defaultVariants: {
|
|
35
|
+
variant: "default"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
function TabsList({
|
|
40
|
+
className,
|
|
41
|
+
variant = "default",
|
|
42
|
+
...props
|
|
43
|
+
}) {
|
|
44
|
+
return /* @__PURE__ */ jsx(
|
|
45
|
+
Tabs$1.List,
|
|
46
|
+
{
|
|
47
|
+
"data-slot": "tabs-list",
|
|
48
|
+
"data-variant": variant,
|
|
49
|
+
className: cn(tabsListVariants({ variant }), className),
|
|
50
|
+
...props
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
function TabsTrigger({
|
|
55
|
+
className,
|
|
56
|
+
...props
|
|
57
|
+
}) {
|
|
58
|
+
return /* @__PURE__ */ jsx(
|
|
59
|
+
Tabs$1.Trigger,
|
|
60
|
+
{
|
|
61
|
+
"data-slot": "tabs-trigger",
|
|
62
|
+
className: cn(
|
|
63
|
+
"relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
64
|
+
"group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent",
|
|
65
|
+
"data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground",
|
|
66
|
+
"after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",
|
|
67
|
+
className
|
|
68
|
+
),
|
|
69
|
+
...props
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
function TabsContent({
|
|
74
|
+
className,
|
|
75
|
+
...props
|
|
76
|
+
}) {
|
|
77
|
+
return /* @__PURE__ */ jsx(
|
|
78
|
+
Tabs$1.Content,
|
|
79
|
+
{
|
|
80
|
+
"data-slot": "tabs-content",
|
|
81
|
+
className: cn("flex-1 text-sm outline-none", className),
|
|
82
|
+
...props
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger, tabsListVariants };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { cn } from '../../lib/utils.js';
|
|
3
|
+
|
|
4
|
+
function Textarea({ className, ...props }) {
|
|
5
|
+
return /* @__PURE__ */ jsx(
|
|
6
|
+
"textarea",
|
|
7
|
+
{
|
|
8
|
+
"data-slot": "textarea",
|
|
9
|
+
className: cn(
|
|
10
|
+
"flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
|
|
11
|
+
className
|
|
12
|
+
),
|
|
13
|
+
...props
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { Textarea };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui";
|
|
4
|
+
import { toggleVariants } from "./toggle";
|
|
5
|
+
declare function ToggleGroup({ className, variant, size, spacing, orientation, children, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants> & {
|
|
6
|
+
spacing?: number;
|
|
7
|
+
orientation?: "horizontal" | "vertical";
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
declare function ToggleGroupItem({ className, children, variant, size, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): React.JSX.Element;
|
|
10
|
+
export { ToggleGroup, ToggleGroupItem };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ToggleGroup as ToggleGroup$1 } from 'radix-ui';
|
|
5
|
+
import { cn } from '../../lib/utils.js';
|
|
6
|
+
import { toggleVariants } from './toggle.js';
|
|
7
|
+
|
|
8
|
+
const ToggleGroupContext = React.createContext({
|
|
9
|
+
size: "default",
|
|
10
|
+
variant: "default",
|
|
11
|
+
spacing: 2,
|
|
12
|
+
orientation: "horizontal"
|
|
13
|
+
});
|
|
14
|
+
function ToggleGroup({
|
|
15
|
+
className,
|
|
16
|
+
variant,
|
|
17
|
+
size,
|
|
18
|
+
spacing = 2,
|
|
19
|
+
orientation = "horizontal",
|
|
20
|
+
children,
|
|
21
|
+
...props
|
|
22
|
+
}) {
|
|
23
|
+
return /* @__PURE__ */ jsx(
|
|
24
|
+
ToggleGroup$1.Root,
|
|
25
|
+
{
|
|
26
|
+
"data-slot": "toggle-group",
|
|
27
|
+
"data-variant": variant,
|
|
28
|
+
"data-size": size,
|
|
29
|
+
"data-spacing": spacing,
|
|
30
|
+
"data-orientation": orientation,
|
|
31
|
+
style: { "--gap": spacing },
|
|
32
|
+
className: cn(
|
|
33
|
+
"group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=0]:data-[variant=outline]:shadow-xs data-vertical:flex-col data-vertical:items-stretch",
|
|
34
|
+
className
|
|
35
|
+
),
|
|
36
|
+
...props,
|
|
37
|
+
children: /* @__PURE__ */ jsx(
|
|
38
|
+
ToggleGroupContext.Provider,
|
|
39
|
+
{
|
|
40
|
+
value: { variant, size, spacing, orientation },
|
|
41
|
+
children
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
function ToggleGroupItem({
|
|
48
|
+
className,
|
|
49
|
+
children,
|
|
50
|
+
variant = "default",
|
|
51
|
+
size = "default",
|
|
52
|
+
...props
|
|
53
|
+
}) {
|
|
54
|
+
const context = React.useContext(ToggleGroupContext);
|
|
55
|
+
return /* @__PURE__ */ jsx(
|
|
56
|
+
ToggleGroup$1.Item,
|
|
57
|
+
{
|
|
58
|
+
"data-slot": "toggle-group-item",
|
|
59
|
+
"data-variant": context.variant || variant,
|
|
60
|
+
"data-size": context.size || size,
|
|
61
|
+
"data-spacing": context.spacing,
|
|
62
|
+
className: cn(
|
|
63
|
+
"shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 group-data-[spacing=0]/toggle-group:shadow-none focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-md group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-md group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-md group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-md data-[state=on]:bg-muted group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",
|
|
64
|
+
toggleVariants({
|
|
65
|
+
variant: context.variant || variant,
|
|
66
|
+
size: context.size || size
|
|
67
|
+
}),
|
|
68
|
+
className
|
|
69
|
+
),
|
|
70
|
+
...props,
|
|
71
|
+
children
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { ToggleGroup, ToggleGroupItem };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
import { Toggle as TogglePrimitive } from "radix-ui";
|
|
4
|
+
declare const toggleVariants: (props?: ({
|
|
5
|
+
variant?: "default" | "outline" | null | undefined;
|
|
6
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): React.JSX.Element;
|
|
9
|
+
export { Toggle, toggleVariants };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
|
+
import { Toggle as Toggle$1 } from 'radix-ui';
|
|
5
|
+
import { cn } from '../../lib/utils.js';
|
|
6
|
+
|
|
7
|
+
const toggleVariants = cva(
|
|
8
|
+
"group/toggle inline-flex items-center justify-center gap-1 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
default: "bg-transparent",
|
|
13
|
+
outline: "border border-input bg-transparent shadow-xs hover:bg-muted"
|
|
14
|
+
},
|
|
15
|
+
size: {
|
|
16
|
+
default: "h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
|
17
|
+
sm: "h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
|
|
18
|
+
lg: "h-10 min-w-10 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: {
|
|
22
|
+
variant: "default",
|
|
23
|
+
size: "default"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
function Toggle({
|
|
28
|
+
className,
|
|
29
|
+
variant = "default",
|
|
30
|
+
size = "default",
|
|
31
|
+
...props
|
|
32
|
+
}) {
|
|
33
|
+
return /* @__PURE__ */ jsx(
|
|
34
|
+
Toggle$1.Root,
|
|
35
|
+
{
|
|
36
|
+
"data-slot": "toggle",
|
|
37
|
+
className: cn(toggleVariants({ variant, size, className })),
|
|
38
|
+
...props
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { Toggle, toggleVariants };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Tooltip as TooltipPrimitive } from "radix-ui";
|
|
3
|
+
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): React.JSX.Element;
|
|
4
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): React.JSX.Element;
|
|
5
|
+
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): React.JSX.Element;
|
|
6
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): React.JSX.Element;
|
|
7
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { Tooltip as Tooltip$1 } from 'radix-ui';
|
|
4
|
+
import { cn } from '../../lib/utils.js';
|
|
5
|
+
|
|
6
|
+
function TooltipProvider({
|
|
7
|
+
delayDuration = 0,
|
|
8
|
+
...props
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ jsx(
|
|
11
|
+
Tooltip$1.Provider,
|
|
12
|
+
{
|
|
13
|
+
"data-slot": "tooltip-provider",
|
|
14
|
+
delayDuration,
|
|
15
|
+
...props
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
function Tooltip({
|
|
20
|
+
...props
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ jsx(Tooltip$1.Root, { "data-slot": "tooltip", ...props });
|
|
23
|
+
}
|
|
24
|
+
function TooltipTrigger({
|
|
25
|
+
...props
|
|
26
|
+
}) {
|
|
27
|
+
return /* @__PURE__ */ jsx(Tooltip$1.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
28
|
+
}
|
|
29
|
+
function TooltipContent({
|
|
30
|
+
className,
|
|
31
|
+
sideOffset = 0,
|
|
32
|
+
children,
|
|
33
|
+
...props
|
|
34
|
+
}) {
|
|
35
|
+
return /* @__PURE__ */ jsx(Tooltip$1.Portal, { children: /* @__PURE__ */ jsxs(
|
|
36
|
+
Tooltip$1.Content,
|
|
37
|
+
{
|
|
38
|
+
"data-slot": "tooltip-content",
|
|
39
|
+
sideOffset,
|
|
40
|
+
className: cn(
|
|
41
|
+
"z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
42
|
+
className
|
|
43
|
+
),
|
|
44
|
+
...props,
|
|
45
|
+
children: [
|
|
46
|
+
children,
|
|
47
|
+
/* @__PURE__ */ jsx(Tooltip$1.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" })
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
) });
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useIsMobile(): boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
const MOBILE_BREAKPOINT = 768;
|
|
4
|
+
function useIsMobile() {
|
|
5
|
+
const [isMobile, setIsMobile] = React.useState(void 0);
|
|
6
|
+
React.useEffect(() => {
|
|
7
|
+
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
8
|
+
const onChange = () => {
|
|
9
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
10
|
+
};
|
|
11
|
+
mql.addEventListener("change", onChange);
|
|
12
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
13
|
+
return () => mql.removeEventListener("change", onChange);
|
|
14
|
+
}, []);
|
|
15
|
+
return !!isMobile;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { useIsMobile };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
export { Box } from './components/Box';
|
|
2
|
+
export type { BoxProps } from './components/Box';
|
|
3
|
+
export { Text } from './components/Text';
|
|
4
|
+
export type { TextColor, TextStyleProps, TextVariant } from './components/Text';
|
|
5
|
+
export { Grid } from './components/Grid';
|
|
6
|
+
export type { GridProps } from './components/Grid';
|
|
7
|
+
export { GridItem } from './components/GridItem';
|
|
8
|
+
export type { GridItemProps } from './components/GridItem';
|
|
9
|
+
export type { GridLine, GridPlacement } from './utils/grid';
|
|
10
|
+
export { createText } from './primitives/createText';
|
|
11
|
+
export { Button } from './components/Button';
|
|
12
|
+
export type { ButtonProps, ButtonIntent, ButtonSize } from './components/Button';
|
|
13
|
+
export { ButtonGroup } from './components/ButtonGroup';
|
|
14
|
+
export type { ButtonGroupProps } from './components/ButtonGroup';
|
|
15
|
+
export { Input } from './components/Input';
|
|
16
|
+
export type { InputProps } from './components/Input';
|
|
17
|
+
export { InputGroup } from './components/InputGroup';
|
|
18
|
+
export type { InputGroupProps } from './components/InputGroup';
|
|
19
|
+
export { InputOTP } from './components/InputOTP';
|
|
20
|
+
export type { InputOTPProps } from './components/InputOTP';
|
|
21
|
+
export { Textarea } from './components/Textarea';
|
|
22
|
+
export type { TextareaProps } from './components/Textarea';
|
|
23
|
+
export { Select } from './components/Select';
|
|
24
|
+
export type { SelectProps, SelectOption } from './components/Select';
|
|
25
|
+
export { NativeSelect } from './components/NativeSelect';
|
|
26
|
+
export type { NativeSelectProps, NativeSelectOption } from './components/NativeSelect';
|
|
27
|
+
export { Combobox } from './components/Combobox';
|
|
28
|
+
export type { ComboboxProps, ComboboxOption } from './components/Combobox';
|
|
29
|
+
export { Checkbox } from './components/Checkbox';
|
|
30
|
+
export type { CheckboxProps } from './components/Checkbox';
|
|
31
|
+
export { Switch } from './components/Switch';
|
|
32
|
+
export type { SwitchProps } from './components/Switch';
|
|
33
|
+
export { Slider } from './components/Slider';
|
|
34
|
+
export type { SliderProps } from './components/Slider';
|
|
35
|
+
export { Toggle } from './components/Toggle';
|
|
36
|
+
export type { ToggleProps, ToggleSize } from './components/Toggle';
|
|
37
|
+
export { ToggleGroup } from './components/ToggleGroup';
|
|
38
|
+
export type { ToggleGroupProps, ToggleGroupOption, ToggleGroupSize } from './components/ToggleGroup';
|
|
39
|
+
export { RadioGroup, RadioGroupItem } from './components/RadioGroup';
|
|
40
|
+
export type { RadioGroupProps, RadioGroupItemProps } from './components/RadioGroup';
|
|
41
|
+
export { Label } from './components/Label';
|
|
42
|
+
export type { LabelProps } from './components/Label';
|
|
43
|
+
export { Field } from './components/Field';
|
|
44
|
+
export type { FieldProps } from './components/Field';
|
|
45
|
+
export { Status } from './components/Status';
|
|
46
|
+
export type { StatusColor, StatusProps } from './components/Status';
|
|
47
|
+
export { Badge } from './components/Badge';
|
|
48
|
+
export type { BadgeProps, BadgeTone } from './components/Badge';
|
|
49
|
+
export { Alert } from './components/Alert';
|
|
50
|
+
export type { AlertProps, AlertTone } from './components/Alert';
|
|
51
|
+
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from './components/Card';
|
|
52
|
+
export type { CardProps } from './components/Card';
|
|
53
|
+
export { Progress } from './components/Progress';
|
|
54
|
+
export type { ProgressProps, ProgressTone } from './components/Progress';
|
|
55
|
+
export { Skeleton } from './components/Skeleton';
|
|
56
|
+
export type { SkeletonProps, SkeletonWidth, SkeletonHeight, SkeletonShape } from './components/Skeleton';
|
|
57
|
+
export { Spinner } from './components/Spinner';
|
|
58
|
+
export type { SpinnerProps } from './components/Spinner';
|
|
59
|
+
export { Avatar } from './components/Avatar';
|
|
60
|
+
export type { AvatarProps } from './components/Avatar';
|
|
61
|
+
export { Kbd } from './components/Kbd';
|
|
62
|
+
export type { KbdProps } from './components/Kbd';
|
|
63
|
+
export { Empty } from './components/Empty';
|
|
64
|
+
export type { EmptyProps } from './components/Empty';
|
|
65
|
+
export { Toaster } from './components/Toaster';
|
|
66
|
+
export type { ToasterProps } from './components/Toaster';
|
|
67
|
+
export { Separator } from './components/Separator';
|
|
68
|
+
export type { SeparatorProps, SeparatorSpacing, SeparatorOrientation } from './components/Separator';
|
|
69
|
+
export { AspectRatio } from './components/AspectRatio';
|
|
70
|
+
export type { AspectRatioProps } from './components/AspectRatio';
|
|
71
|
+
export { ScrollArea } from './components/ScrollArea';
|
|
72
|
+
export type { ScrollAreaProps } from './components/ScrollArea';
|
|
73
|
+
export { Table } from './components/Table';
|
|
74
|
+
export type { TableProps, TableColumn } from './components/Table';
|
|
75
|
+
export { Carousel } from './components/Carousel';
|
|
76
|
+
export type { CarouselProps } from './components/Carousel';
|
|
77
|
+
export { Tabs } from './components/Tabs';
|
|
78
|
+
export type { TabsProps, TabItem } from './components/Tabs';
|
|
79
|
+
export { Accordion } from './components/Accordion';
|
|
80
|
+
export type { AccordionProps, AccordionItem } from './components/Accordion';
|
|
81
|
+
export { Collapsible } from './components/Collapsible';
|
|
82
|
+
export type { CollapsibleProps } from './components/Collapsible';
|
|
83
|
+
export { Breadcrumb } from './components/Breadcrumb';
|
|
84
|
+
export type { BreadcrumbProps, BreadcrumbItemDef } from './components/Breadcrumb';
|
|
85
|
+
export { Pagination } from './components/Pagination';
|
|
86
|
+
export type { PaginationProps } from './components/Pagination';
|
|
87
|
+
export { Dialog } from './components/Dialog';
|
|
88
|
+
export type { DialogProps } from './components/Dialog';
|
|
89
|
+
export { AlertDialog } from './components/AlertDialog';
|
|
90
|
+
export type { AlertDialogProps } from './components/AlertDialog';
|
|
91
|
+
export { Sheet } from './components/Sheet';
|
|
92
|
+
export type { SheetProps } from './components/Sheet';
|
|
93
|
+
export { Drawer } from './components/Drawer';
|
|
94
|
+
export type { DrawerProps } from './components/Drawer';
|
|
95
|
+
export { Popover } from './components/Popover';
|
|
96
|
+
export type { PopoverProps } from './components/Popover';
|
|
97
|
+
export { HoverCard } from './components/HoverCard';
|
|
98
|
+
export type { HoverCardProps } from './components/HoverCard';
|
|
99
|
+
export { Tooltip } from './components/Tooltip';
|
|
100
|
+
export type { TooltipProps } from './components/Tooltip';
|
|
101
|
+
export { DropdownMenu } from './components/DropdownMenu';
|
|
102
|
+
export type { DropdownMenuProps, DropdownMenuItem } from './components/DropdownMenu';
|
|
103
|
+
export { ContextMenu } from './components/ContextMenu';
|
|
104
|
+
export type { ContextMenuProps, ContextMenuItemDef } from './components/ContextMenu';
|
|
105
|
+
export { Command } from './components/Command';
|
|
106
|
+
export type { CommandProps, CommandGroup, CommandItemDef } from './components/Command';
|
|
107
|
+
export { NavigationMenu } from './components/NavigationMenu';
|
|
108
|
+
export type { NavigationMenuProps, NavItem } from './components/NavigationMenu';
|
|
109
|
+
export { Menubar } from './components/Menubar';
|
|
110
|
+
export type { MenubarProps, MenuDef, MenubarItemDef } from './components/Menubar';
|
|
111
|
+
export { Sidebar } from './components/Sidebar';
|
|
112
|
+
export type { SidebarProps, SidebarNavGroup, SidebarNavItem, SidebarNavSubItem, SidebarBrand, SidebarUser, } from './components/Sidebar';
|
|
113
|
+
export { Resizable } from './components/Resizable';
|
|
114
|
+
export type { ResizableProps } from './components/Resizable';
|
|
115
|
+
export { Chart } from './components/Chart';
|
|
116
|
+
export type { ChartProps } from './components/Chart';
|
|
117
|
+
export { animationDelays, animations } from './tokens/animations';
|
|
118
|
+
export type { AnimationDelay, AnimationEasing, AnimationName, AnimationProperties, AnimationToken } from './tokens/animations';
|
|
119
|
+
export type { DurationToken, EasingToken } from './tokens/tokens.stylex';
|
|
120
|
+
export type { TransitionProperty } from './utils/types';
|
|
121
|
+
export * from './components/ui/direction';
|
|
122
|
+
export * from './components/ui/item';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export { Box } from './components/Box.js';
|
|
2
|
+
export { Text } from './components/Text.js';
|
|
3
|
+
export { Grid } from './components/Grid.js';
|
|
4
|
+
export { GridItem } from './components/GridItem.js';
|
|
5
|
+
export { createText } from './primitives/createText.js';
|
|
6
|
+
export { Button } from './components/Button.js';
|
|
7
|
+
export { ButtonGroup } from './components/ButtonGroup.js';
|
|
8
|
+
export { Input } from './components/Input.js';
|
|
9
|
+
export { InputGroup } from './components/InputGroup.js';
|
|
10
|
+
export { InputOTP } from './components/InputOTP.js';
|
|
11
|
+
export { Textarea } from './components/Textarea.js';
|
|
12
|
+
export { Select } from './components/Select.js';
|
|
13
|
+
export { NativeSelect } from './components/NativeSelect.js';
|
|
14
|
+
export { Combobox } from './components/Combobox.js';
|
|
15
|
+
export { Checkbox } from './components/Checkbox.js';
|
|
16
|
+
export { Switch } from './components/Switch.js';
|
|
17
|
+
export { Slider } from './components/Slider.js';
|
|
18
|
+
export { Toggle } from './components/Toggle.js';
|
|
19
|
+
export { ToggleGroup } from './components/ToggleGroup.js';
|
|
20
|
+
export { RadioGroup, RadioGroupItem } from './components/RadioGroup.js';
|
|
21
|
+
export { Label } from './components/Label.js';
|
|
22
|
+
export { Field } from './components/Field.js';
|
|
23
|
+
export { Status } from './components/Status.js';
|
|
24
|
+
export { Badge } from './components/Badge.js';
|
|
25
|
+
export { Alert } from './components/Alert.js';
|
|
26
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './components/Card.js';
|
|
27
|
+
export { Progress } from './components/Progress.js';
|
|
28
|
+
export { Skeleton } from './components/Skeleton.js';
|
|
29
|
+
export { Spinner } from './components/Spinner.js';
|
|
30
|
+
export { Avatar } from './components/Avatar.js';
|
|
31
|
+
export { Kbd } from './components/Kbd.js';
|
|
32
|
+
export { Empty } from './components/Empty.js';
|
|
33
|
+
export { Toaster } from './components/Toaster.js';
|
|
34
|
+
export { Separator } from './components/Separator.js';
|
|
35
|
+
export { AspectRatio } from './components/AspectRatio.js';
|
|
36
|
+
export { ScrollArea } from './components/ScrollArea.js';
|
|
37
|
+
export { Table } from './components/Table.js';
|
|
38
|
+
export { Carousel } from './components/Carousel.js';
|
|
39
|
+
export { Tabs } from './components/Tabs.js';
|
|
40
|
+
export { Accordion } from './components/Accordion.js';
|
|
41
|
+
export { Collapsible } from './components/Collapsible.js';
|
|
42
|
+
export { Breadcrumb } from './components/Breadcrumb.js';
|
|
43
|
+
export { Pagination } from './components/Pagination.js';
|
|
44
|
+
export { Dialog } from './components/Dialog.js';
|
|
45
|
+
export { AlertDialog } from './components/AlertDialog.js';
|
|
46
|
+
export { Sheet } from './components/Sheet.js';
|
|
47
|
+
export { Drawer } from './components/Drawer.js';
|
|
48
|
+
export { Popover } from './components/Popover.js';
|
|
49
|
+
export { HoverCard } from './components/HoverCard.js';
|
|
50
|
+
export { Tooltip } from './components/Tooltip.js';
|
|
51
|
+
export { DropdownMenu } from './components/DropdownMenu.js';
|
|
52
|
+
export { ContextMenu } from './components/ContextMenu.js';
|
|
53
|
+
export { Command } from './components/Command.js';
|
|
54
|
+
export { NavigationMenu } from './components/NavigationMenu.js';
|
|
55
|
+
export { Menubar } from './components/Menubar.js';
|
|
56
|
+
export { Sidebar } from './components/Sidebar.js';
|
|
57
|
+
export { Resizable } from './components/Resizable.js';
|
|
58
|
+
export { Chart } from './components/Chart.js';
|
|
59
|
+
export { animationDelays, animations } from './tokens/animations.js';
|
|
60
|
+
export { DirectionProvider, useDirection } from './components/ui/direction.js';
|
|
61
|
+
export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle } from './components/ui/item.js';
|