@alquimia-ai/ui 1.2.1 → 1.2.3
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/package.json +32 -52
- package/src/components/atoms/index.ts +0 -32
- package/src/components/atoms/ui/alert.tsx +0 -59
- package/src/components/atoms/ui/aspect-ratio.tsx +0 -7
- package/src/components/atoms/ui/avatar.tsx +0 -50
- package/src/components/atoms/ui/badge.tsx +0 -36
- package/src/components/atoms/ui/breadcrumb.tsx +0 -120
- package/src/components/atoms/ui/button.tsx +0 -56
- package/src/components/atoms/ui/card.tsx +0 -87
- package/src/components/atoms/ui/checkbox.tsx +0 -31
- package/src/components/atoms/ui/command.tsx +0 -155
- package/src/components/atoms/ui/dialog.tsx +0 -125
- package/src/components/atoms/ui/drawer.tsx +0 -119
- package/src/components/atoms/ui/input.tsx +0 -26
- package/src/components/atoms/ui/label.tsx +0 -26
- package/src/components/atoms/ui/loader.tsx +0 -52
- package/src/components/atoms/ui/popover.tsx +0 -31
- package/src/components/atoms/ui/rich-text.tsx +0 -19
- package/src/components/atoms/ui/scroll-area.tsx +0 -48
- package/src/components/atoms/ui/select.tsx +0 -160
- package/src/components/atoms/ui/skeleton.tsx +0 -15
- package/src/components/atoms/ui/slider.tsx +0 -29
- package/src/components/atoms/ui/switch.tsx +0 -30
- package/src/components/atoms/ui/table.tsx +0 -118
- package/src/components/atoms/ui/tabs.tsx +0 -56
- package/src/components/atoms/ui/text-area/index.tsx +0 -24
- package/src/components/atoms/ui/textarea.tsx +0 -25
- package/src/components/atoms/ui/think-indicator.tsx +0 -103
- package/src/components/atoms/ui/toast.tsx +0 -129
- package/src/components/atoms/ui/toaster.tsx +0 -38
- package/src/components/atoms/ui/toggle.tsx +0 -45
- package/src/components/atoms/ui/typography/index.tsx +0 -30
- package/src/components/hooks/index.ts +0 -4
- package/src/components/hooks/use-document.tsx +0 -44
- package/src/components/hooks/use-resize-observer.ts +0 -28
- package/src/components/hooks/use-text-streaming.ts +0 -63
- package/src/components/hooks/use-toast.ts +0 -194
- package/src/components/index.ts +0 -1
- package/src/components/molecules/alert-dialog.tsx +0 -141
- package/src/components/molecules/assistant-button.tsx +0 -148
- package/src/components/molecules/call-out.tsx +0 -163
- package/src/components/molecules/carousel.tsx +0 -262
- package/src/components/molecules/documents/document-selector.tsx +0 -79
- package/src/components/molecules/documents/document-viewer.tsx +0 -85
- package/src/components/molecules/documents/index.ts +0 -2
- package/src/components/molecules/index.ts +0 -11
- package/src/components/molecules/navigation-menu.tsx +0 -128
- package/src/components/molecules/page-container.tsx +0 -17
- package/src/components/molecules/rating-comment.tsx +0 -93
- package/src/components/molecules/rating-stars.tsx +0 -136
- package/src/components/molecules/rating-thumbs.tsx +0 -90
- package/src/components/molecules/sidebar.tsx +0 -107
- package/src/components/molecules/sonner.tsx +0 -30
- package/src/components/molecules/viewers/index.ts +0 -2
- package/src/components/molecules/viewers/pdf-viewer.tsx +0 -138
- package/src/components/molecules/viewers/plain-text-viewer.tsx +0 -40
- package/src/components/organisms/assistant.tsx +0 -271
- package/src/components/organisms/index.ts +0 -6
- package/src/components/organisms/rating-dialog.tsx +0 -104
- package/src/components/organisms/speechToText.tsx +0 -92
- package/src/components/organisms/whisper.tsx +0 -106
- package/src/components/templates/cards/index.ts +0 -2
- package/src/components/templates/cards/with-image-heading-description-avatar.tsx +0 -94
- package/src/components/templates/cards/with-image-heading-description.tsx +0 -63
- package/src/components/templates/hero/index.tsx +0 -39
- package/src/components/templates/index.ts +0 -4
- package/src/components/templates/messages-window.tsx +0 -15
- package/src/components/templates/query-box.tsx +0 -13
- package/src/components/ui/input.tsx +0 -25
- package/src/components/ui/select.tsx +0 -163
- package/src/index.ts +0 -7
- package/src/lib/index.ts +0 -1
- package/src/lib/utils.ts +0 -34
- package/src/styles/call-out.css +0 -153
- package/src/styles/drawer.css +0 -28
- package/src/styles/globals.css +0 -69
- package/src/styles/prose.css +0 -51
- package/src/styles/ratings.css +0 -27
- package/src/styles/themes/base-alquimia.css +0 -95
- package/src/styles/themes/base-nordic.css +0 -83
- package/src/styles/themes/base-primary.css +0 -85
- package/src/styles/themes/base.css +0 -8
- package/src/types/index.ts +0 -1
- package/src/types/type.ts +0 -76
package/package.json
CHANGED
|
@@ -1,81 +1,61 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alquimia-ai/ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"author": "Alquimia AI",
|
|
5
5
|
"description": "UI components for Alquimia SDK",
|
|
6
6
|
"private": false,
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"types": "./
|
|
11
|
-
"import": "./
|
|
12
|
-
"require": "./dist/index.js"
|
|
13
|
-
"development": "./src/index.ts",
|
|
14
|
-
"production": "./dist/index.js"
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.js"
|
|
15
13
|
},
|
|
16
14
|
"./styles.css": "./dist/styles.css",
|
|
17
15
|
"./components/atoms": {
|
|
18
|
-
"types": "./
|
|
19
|
-
"import": "./
|
|
20
|
-
"require": "./dist/components/atoms/index.js"
|
|
21
|
-
"development": "./src/components/atoms/index.ts",
|
|
22
|
-
"production": "./dist/components/atoms/index.js"
|
|
16
|
+
"types": "./dist/components/atoms/index.d.ts",
|
|
17
|
+
"import": "./dist/components/atoms/index.mjs",
|
|
18
|
+
"require": "./dist/components/atoms/index.js"
|
|
23
19
|
},
|
|
24
20
|
"./components/templates": {
|
|
25
|
-
"types": "./
|
|
26
|
-
"import": "./
|
|
27
|
-
"require": "./dist/components/templates/index.js"
|
|
28
|
-
"development": "./src/components/templates/index.ts",
|
|
29
|
-
"production": "./dist/components/templates/index.js"
|
|
21
|
+
"types": "./dist/components/templates/index.d.ts",
|
|
22
|
+
"import": "./dist/components/templates/index.mjs",
|
|
23
|
+
"require": "./dist/components/templates/index.js"
|
|
30
24
|
},
|
|
31
25
|
"./components/organisms": {
|
|
32
|
-
"types": "./
|
|
33
|
-
"import": "./
|
|
34
|
-
"require": "./dist/components/organisms/index.js"
|
|
35
|
-
"development": "./src/components/organisms/index.ts",
|
|
36
|
-
"production": "./dist/components/organisms/index.js"
|
|
26
|
+
"types": "./dist/components/organisms/index.d.ts",
|
|
27
|
+
"import": "./dist/components/organisms/index.mjs",
|
|
28
|
+
"require": "./dist/components/organisms/index.js"
|
|
37
29
|
},
|
|
38
30
|
"./components/molecules": {
|
|
39
|
-
"types": "./
|
|
40
|
-
"import": "./
|
|
41
|
-
"require": "./dist/components/molecules/index.js"
|
|
42
|
-
"development": "./src/components/molecules/index.ts",
|
|
43
|
-
"production": "./dist/components/molecules/index.js"
|
|
31
|
+
"types": "./dist/components/molecules/index.d.ts",
|
|
32
|
+
"import": "./dist/components/molecules/index.mjs",
|
|
33
|
+
"require": "./dist/components/molecules/index.js"
|
|
44
34
|
},
|
|
45
35
|
"./components/hooks": {
|
|
46
|
-
"types": "./
|
|
47
|
-
"import": "./
|
|
48
|
-
"require": "./dist/components/hooks/index.js"
|
|
49
|
-
"development": "./src/components/hooks/index.ts",
|
|
50
|
-
"production": "./dist/components/hooks/index.js"
|
|
36
|
+
"types": "./dist/components/hooks/index.d.ts",
|
|
37
|
+
"import": "./dist/components/hooks/index.mjs",
|
|
38
|
+
"require": "./dist/components/hooks/index.js"
|
|
51
39
|
},
|
|
52
40
|
"./components/molecules/viewers": {
|
|
53
|
-
"types": "./
|
|
54
|
-
"import": "./
|
|
55
|
-
"require": "./dist/components/molecules/viewers/index.js"
|
|
56
|
-
"development": "./src/components/molecules/viewers/index.ts",
|
|
57
|
-
"production": "./dist/components/molecules/viewers/index.js"
|
|
41
|
+
"types": "./dist/components/molecules/viewers/index.d.ts",
|
|
42
|
+
"import": "./dist/components/molecules/viewers/index.mjs",
|
|
43
|
+
"require": "./dist/components/molecules/viewers/index.js"
|
|
58
44
|
},
|
|
59
45
|
"./components/molecules/documents": {
|
|
60
|
-
"types": "./
|
|
61
|
-
"import": "./
|
|
62
|
-
"require": "./dist/components/molecules/documents/index.js"
|
|
63
|
-
"development": "./src/components/molecules/documents/index.ts",
|
|
64
|
-
"production": "./dist/components/molecules/documents/index.js"
|
|
46
|
+
"types": "./dist/components/molecules/documents/index.d.ts",
|
|
47
|
+
"import": "./dist/components/molecules/documents/index.mjs",
|
|
48
|
+
"require": "./dist/components/molecules/documents/index.js"
|
|
65
49
|
},
|
|
66
50
|
"./lib/utils": {
|
|
67
|
-
"types": "./
|
|
68
|
-
"import": "./
|
|
69
|
-
"require": "./dist/lib/index.js"
|
|
70
|
-
"development": "./src/lib/index.ts",
|
|
71
|
-
"production": "./dist/lib/index.js"
|
|
51
|
+
"types": "./dist/lib/index.d.ts",
|
|
52
|
+
"import": "./dist/lib/index.mjs",
|
|
53
|
+
"require": "./dist/lib/index.js"
|
|
72
54
|
},
|
|
73
55
|
"./types": {
|
|
74
|
-
"types": "./
|
|
75
|
-
"import": "./
|
|
76
|
-
"require": "./dist/types/index.js"
|
|
77
|
-
"development": "./src/types/index.ts",
|
|
78
|
-
"production": "./dist/types/index.js"
|
|
56
|
+
"types": "./dist/types/index.d.ts",
|
|
57
|
+
"import": "./dist/types/index.mjs",
|
|
58
|
+
"require": "./dist/types/index.js"
|
|
79
59
|
},
|
|
80
60
|
"./styles/*": {
|
|
81
61
|
"import": "./dist/styles/*",
|
|
@@ -91,11 +71,11 @@
|
|
|
91
71
|
"prebuild": "cd ../tools && npm run build",
|
|
92
72
|
"build": "tsup src/index.ts src/**/index.ts src/**/**/index.ts src/**/**/**/index.ts --format esm,cjs --target es2020 && cpx \"src/styles/**/*\" dist/styles",
|
|
93
73
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
|
74
|
+
"dev": "tsup src/index.ts src/**/index.ts src/**/**/index.ts src/**/**/**/index.ts --format esm,cjs --target es2020 --watch",
|
|
94
75
|
"genversion": "genversion --es6 --semi ./version.js"
|
|
95
76
|
},
|
|
96
77
|
"files": [
|
|
97
78
|
"dist/**",
|
|
98
|
-
"src/**",
|
|
99
79
|
"README.md",
|
|
100
80
|
"package.json"
|
|
101
81
|
],
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export * from "./ui/button";
|
|
2
|
-
export * from "./ui/textarea";
|
|
3
|
-
export * from "./ui/input";
|
|
4
|
-
export * from "./ui/select";
|
|
5
|
-
export * from "./ui/avatar";
|
|
6
|
-
export * from "./ui/scroll-area";
|
|
7
|
-
export * from "./ui/rich-text";
|
|
8
|
-
export * from "./ui/skeleton";
|
|
9
|
-
export * from "./ui/card";
|
|
10
|
-
export * from "./ui/drawer";
|
|
11
|
-
export * from "./ui/typography";
|
|
12
|
-
export * from "./ui/badge";
|
|
13
|
-
export * from "./ui/alert";
|
|
14
|
-
export * from "./ui/input";
|
|
15
|
-
export * from "./ui/label";
|
|
16
|
-
export * from "./ui/checkbox";
|
|
17
|
-
export * from "./ui/toggle";
|
|
18
|
-
export * from "./ui/select";
|
|
19
|
-
export * from "./ui/slider";
|
|
20
|
-
export * from "./ui/switch";
|
|
21
|
-
export * from "./ui/tabs";
|
|
22
|
-
export * from "./ui/aspect-ratio";
|
|
23
|
-
export * from "./ui/table";
|
|
24
|
-
export * from "./ui/breadcrumb";
|
|
25
|
-
export * from "../molecules/alert-dialog";
|
|
26
|
-
export * from "./ui/popover";
|
|
27
|
-
export * from "./ui/command";
|
|
28
|
-
export * from "./ui/dialog";
|
|
29
|
-
export * from "./ui/toast";
|
|
30
|
-
export * from "./ui/loader";
|
|
31
|
-
export * from "./ui/toaster";
|
|
32
|
-
export * from "./ui/think-indicator";
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
3
|
-
|
|
4
|
-
import { cn } from "../../../lib/utils";
|
|
5
|
-
|
|
6
|
-
const alertVariants = cva(
|
|
7
|
-
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
8
|
-
{
|
|
9
|
-
variants: {
|
|
10
|
-
variant: {
|
|
11
|
-
default: "bg-background text-foreground",
|
|
12
|
-
destructive:
|
|
13
|
-
"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
defaultVariants: {
|
|
17
|
-
variant: "default",
|
|
18
|
-
},
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
const Alert = React.forwardRef<
|
|
23
|
-
HTMLDivElement,
|
|
24
|
-
React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>
|
|
25
|
-
>(({ className, variant, ...props }, ref) => (
|
|
26
|
-
<div
|
|
27
|
-
ref={ref}
|
|
28
|
-
role="alert"
|
|
29
|
-
className={cn(alertVariants({ variant }), className)}
|
|
30
|
-
{...props}
|
|
31
|
-
/>
|
|
32
|
-
));
|
|
33
|
-
Alert.displayName = "Alert";
|
|
34
|
-
|
|
35
|
-
const AlertTitle = React.forwardRef<
|
|
36
|
-
HTMLParagraphElement,
|
|
37
|
-
React.HTMLAttributes<HTMLHeadingElement>
|
|
38
|
-
>(({ className, ...props }, ref) => (
|
|
39
|
-
<h5
|
|
40
|
-
ref={ref}
|
|
41
|
-
className={cn("mb-1 font-medium leading-none tracking-tight", className)}
|
|
42
|
-
{...props}
|
|
43
|
-
/>
|
|
44
|
-
));
|
|
45
|
-
AlertTitle.displayName = "AlertTitle";
|
|
46
|
-
|
|
47
|
-
const AlertDescription = React.forwardRef<
|
|
48
|
-
HTMLParagraphElement,
|
|
49
|
-
React.HTMLAttributes<HTMLParagraphElement>
|
|
50
|
-
>(({ className, ...props }, ref) => (
|
|
51
|
-
<div
|
|
52
|
-
ref={ref}
|
|
53
|
-
className={cn("text-sm [&_p]:leading-relaxed", className)}
|
|
54
|
-
{...props}
|
|
55
|
-
/>
|
|
56
|
-
));
|
|
57
|
-
AlertDescription.displayName = "AlertDescription";
|
|
58
|
-
|
|
59
|
-
export { Alert, AlertTitle, AlertDescription };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import * as React from "react"
|
|
4
|
-
import * as AvatarPrimitive from "@radix-ui/react-avatar"
|
|
5
|
-
|
|
6
|
-
import { cn } from "../../../lib/utils";
|
|
7
|
-
|
|
8
|
-
const Avatar = React.forwardRef<
|
|
9
|
-
React.ElementRef<typeof AvatarPrimitive.Root>,
|
|
10
|
-
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>
|
|
11
|
-
>(({ className, ...props }, ref) => (
|
|
12
|
-
<AvatarPrimitive.Root
|
|
13
|
-
ref={ref}
|
|
14
|
-
className={cn(
|
|
15
|
-
"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
|
|
16
|
-
className
|
|
17
|
-
)}
|
|
18
|
-
{...props}
|
|
19
|
-
/>
|
|
20
|
-
))
|
|
21
|
-
Avatar.displayName = AvatarPrimitive.Root.displayName
|
|
22
|
-
|
|
23
|
-
const AvatarImage = React.forwardRef<
|
|
24
|
-
React.ElementRef<typeof AvatarPrimitive.Image>,
|
|
25
|
-
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>
|
|
26
|
-
>(({ className, ...props }, ref) => (
|
|
27
|
-
<AvatarPrimitive.Image
|
|
28
|
-
ref={ref}
|
|
29
|
-
className={cn("aspect-square h-full w-full", className)}
|
|
30
|
-
{...props}
|
|
31
|
-
/>
|
|
32
|
-
))
|
|
33
|
-
AvatarImage.displayName = AvatarPrimitive.Image.displayName
|
|
34
|
-
|
|
35
|
-
const AvatarFallback = React.forwardRef<
|
|
36
|
-
React.ElementRef<typeof AvatarPrimitive.Fallback>,
|
|
37
|
-
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>
|
|
38
|
-
>(({ className, ...props }, ref) => (
|
|
39
|
-
<AvatarPrimitive.Fallback
|
|
40
|
-
ref={ref}
|
|
41
|
-
className={cn(
|
|
42
|
-
"flex h-full w-full items-center justify-center rounded-full bg-muted",
|
|
43
|
-
className
|
|
44
|
-
)}
|
|
45
|
-
{...props}
|
|
46
|
-
/>
|
|
47
|
-
))
|
|
48
|
-
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName
|
|
49
|
-
|
|
50
|
-
export { Avatar, AvatarImage, AvatarFallback }
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
import { cva, type VariantProps } from "class-variance-authority"
|
|
3
|
-
|
|
4
|
-
import { cn } from "../../../lib/utils";
|
|
5
|
-
|
|
6
|
-
const badgeVariants = cva(
|
|
7
|
-
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
8
|
-
{
|
|
9
|
-
variants: {
|
|
10
|
-
variant: {
|
|
11
|
-
default:
|
|
12
|
-
"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
|
13
|
-
secondary:
|
|
14
|
-
"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
15
|
-
destructive:
|
|
16
|
-
"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
17
|
-
outline: "text-foreground",
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
defaultVariants: {
|
|
21
|
-
variant: "default",
|
|
22
|
-
},
|
|
23
|
-
}
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
export interface BadgeProps
|
|
27
|
-
extends React.HTMLAttributes<HTMLDivElement>,
|
|
28
|
-
VariantProps<typeof badgeVariants> {}
|
|
29
|
-
|
|
30
|
-
function Badge({ className, variant, ...props }: BadgeProps) {
|
|
31
|
-
return (
|
|
32
|
-
<div className={cn(badgeVariants({ variant }), className, "alq--badge")} {...props} />
|
|
33
|
-
)
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export { Badge, badgeVariants }
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
-
import { ChevronRight, MoreHorizontal } from "lucide-react";
|
|
4
|
-
|
|
5
|
-
import { cn } from "../../../lib/utils";
|
|
6
|
-
interface BreadcrumbItemProps {
|
|
7
|
-
label: string;
|
|
8
|
-
href?: string;
|
|
9
|
-
current?: boolean;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const Breadcrumb = React.forwardRef<
|
|
13
|
-
HTMLElement,
|
|
14
|
-
React.ComponentPropsWithoutRef<"nav"> & {
|
|
15
|
-
separator?: React.ReactNode;
|
|
16
|
-
}
|
|
17
|
-
>(({ ...props }, ref) => <nav ref={ref} aria-label="breadcrumb" {...props} />);
|
|
18
|
-
Breadcrumb.displayName = "Breadcrumb";
|
|
19
|
-
|
|
20
|
-
const BreadcrumbList = React.forwardRef<
|
|
21
|
-
HTMLOListElement,
|
|
22
|
-
React.ComponentPropsWithoutRef<"ol">
|
|
23
|
-
>(({ className, ...props }, ref) => (
|
|
24
|
-
<ol
|
|
25
|
-
ref={ref}
|
|
26
|
-
className={cn(
|
|
27
|
-
"flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
|
|
28
|
-
className
|
|
29
|
-
)}
|
|
30
|
-
{...props}
|
|
31
|
-
/>
|
|
32
|
-
));
|
|
33
|
-
BreadcrumbList.displayName = "BreadcrumbList";
|
|
34
|
-
|
|
35
|
-
const BreadcrumbItem = React.forwardRef<
|
|
36
|
-
HTMLLIElement,
|
|
37
|
-
React.ComponentPropsWithoutRef<"li">
|
|
38
|
-
>(({ className, ...props }, ref) => (
|
|
39
|
-
<li
|
|
40
|
-
ref={ref}
|
|
41
|
-
className={cn("inline-flex items-center gap-1.5", className)}
|
|
42
|
-
{...props}
|
|
43
|
-
/>
|
|
44
|
-
));
|
|
45
|
-
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
46
|
-
|
|
47
|
-
const BreadcrumbLink = React.forwardRef<
|
|
48
|
-
HTMLAnchorElement,
|
|
49
|
-
React.ComponentPropsWithoutRef<"a"> & {
|
|
50
|
-
asChild?: boolean;
|
|
51
|
-
}
|
|
52
|
-
>(({ asChild, className, ...props }, ref) => {
|
|
53
|
-
const Comp = asChild ? Slot : "a";
|
|
54
|
-
|
|
55
|
-
return (
|
|
56
|
-
<Comp
|
|
57
|
-
ref={ref}
|
|
58
|
-
className={cn("transition-colors hover:text-foreground", className)}
|
|
59
|
-
{...props}
|
|
60
|
-
/>
|
|
61
|
-
);
|
|
62
|
-
});
|
|
63
|
-
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
64
|
-
|
|
65
|
-
const BreadcrumbPage = React.forwardRef<
|
|
66
|
-
HTMLSpanElement,
|
|
67
|
-
React.ComponentPropsWithoutRef<"span">
|
|
68
|
-
>(({ className, ...props }, ref) => (
|
|
69
|
-
<span
|
|
70
|
-
ref={ref}
|
|
71
|
-
role="link"
|
|
72
|
-
aria-disabled="true"
|
|
73
|
-
aria-current="page"
|
|
74
|
-
className={cn("font-normal text-foreground", className)}
|
|
75
|
-
{...props}
|
|
76
|
-
/>
|
|
77
|
-
));
|
|
78
|
-
BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
79
|
-
|
|
80
|
-
const BreadcrumbSeparator = ({
|
|
81
|
-
children,
|
|
82
|
-
className,
|
|
83
|
-
...props
|
|
84
|
-
}: React.ComponentProps<"li">) => (
|
|
85
|
-
<li
|
|
86
|
-
role="presentation"
|
|
87
|
-
aria-hidden="true"
|
|
88
|
-
className={cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className)}
|
|
89
|
-
{...props}
|
|
90
|
-
>
|
|
91
|
-
{children ?? <ChevronRight />}
|
|
92
|
-
</li>
|
|
93
|
-
);
|
|
94
|
-
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
95
|
-
|
|
96
|
-
const BreadcrumbEllipsis = ({
|
|
97
|
-
className,
|
|
98
|
-
...props
|
|
99
|
-
}: React.ComponentProps<"span">) => (
|
|
100
|
-
<span
|
|
101
|
-
role="presentation"
|
|
102
|
-
aria-hidden="true"
|
|
103
|
-
className={cn("flex h-9 w-9 items-center justify-center", className)}
|
|
104
|
-
{...props}
|
|
105
|
-
>
|
|
106
|
-
<MoreHorizontal className="h-4 w-4" />
|
|
107
|
-
<span className="sr-only">More</span>
|
|
108
|
-
</span>
|
|
109
|
-
);
|
|
110
|
-
BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
111
|
-
|
|
112
|
-
export {
|
|
113
|
-
Breadcrumb,
|
|
114
|
-
BreadcrumbList,
|
|
115
|
-
BreadcrumbItem,
|
|
116
|
-
BreadcrumbLink,
|
|
117
|
-
BreadcrumbPage,
|
|
118
|
-
BreadcrumbSeparator,
|
|
119
|
-
BreadcrumbEllipsis,
|
|
120
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
4
|
-
|
|
5
|
-
import { cn } from "../../../lib/utils";
|
|
6
|
-
|
|
7
|
-
const buttonVariants = cva(
|
|
8
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
9
|
-
{
|
|
10
|
-
variants: {
|
|
11
|
-
variant: {
|
|
12
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
13
|
-
destructive:
|
|
14
|
-
"bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
15
|
-
outline:
|
|
16
|
-
"border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
17
|
-
secondary:
|
|
18
|
-
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
19
|
-
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
20
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
21
|
-
},
|
|
22
|
-
size: {
|
|
23
|
-
default: "h-10 px-4 py-2",
|
|
24
|
-
sm: "h-9 rounded-md px-3",
|
|
25
|
-
lg: "h-11 rounded-md px-8",
|
|
26
|
-
icon: "h-10 w-10",
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
defaultVariants: {
|
|
30
|
-
variant: "default",
|
|
31
|
-
size: "default",
|
|
32
|
-
},
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
export interface ButtonProps
|
|
37
|
-
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
38
|
-
VariantProps<typeof buttonVariants> {
|
|
39
|
-
asChild?: boolean;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
43
|
-
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
44
|
-
const Comp = asChild ? Slot : "button";
|
|
45
|
-
return (
|
|
46
|
-
<Comp
|
|
47
|
-
className={cn(buttonVariants({ variant, size, className }))}
|
|
48
|
-
ref={ref}
|
|
49
|
-
{...props}
|
|
50
|
-
/>
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
);
|
|
54
|
-
Button.displayName = "Button";
|
|
55
|
-
|
|
56
|
-
export { Button, buttonVariants };
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
import { cn } from "../../../lib/utils";
|
|
4
|
-
|
|
5
|
-
const Card = React.forwardRef<
|
|
6
|
-
HTMLDivElement,
|
|
7
|
-
React.HTMLAttributes<HTMLDivElement>
|
|
8
|
-
>(({ className, ...props }, ref) => (
|
|
9
|
-
<div
|
|
10
|
-
ref={ref}
|
|
11
|
-
className={cn(
|
|
12
|
-
"rounded-lg",
|
|
13
|
-
" border",
|
|
14
|
-
"bg-card",
|
|
15
|
-
"text-card-foreground",
|
|
16
|
-
"shadow-raised",
|
|
17
|
-
className
|
|
18
|
-
)}
|
|
19
|
-
{...props}
|
|
20
|
-
/>
|
|
21
|
-
));
|
|
22
|
-
Card.displayName = "Card";
|
|
23
|
-
|
|
24
|
-
const CardHeader = React.forwardRef<
|
|
25
|
-
HTMLDivElement,
|
|
26
|
-
React.HTMLAttributes<HTMLDivElement>
|
|
27
|
-
>(({ className, ...props }, ref) => (
|
|
28
|
-
<div
|
|
29
|
-
ref={ref}
|
|
30
|
-
className={cn("flex flex-col space-y-1.5 p-6", className)}
|
|
31
|
-
{...props}
|
|
32
|
-
/>
|
|
33
|
-
));
|
|
34
|
-
CardHeader.displayName = "CardHeader";
|
|
35
|
-
|
|
36
|
-
const CardTitle = React.forwardRef<
|
|
37
|
-
HTMLParagraphElement,
|
|
38
|
-
React.HTMLAttributes<HTMLHeadingElement>
|
|
39
|
-
>(({ className, ...props }, ref) => (
|
|
40
|
-
<h3
|
|
41
|
-
ref={ref}
|
|
42
|
-
className={cn("alq--typography-heading4", className)}
|
|
43
|
-
{...props}
|
|
44
|
-
/>
|
|
45
|
-
));
|
|
46
|
-
CardTitle.displayName = "CardTitle";
|
|
47
|
-
|
|
48
|
-
const CardDescription = React.forwardRef<
|
|
49
|
-
HTMLParagraphElement,
|
|
50
|
-
React.HTMLAttributes<HTMLParagraphElement>
|
|
51
|
-
>(({ className, ...props }, ref) => (
|
|
52
|
-
<p
|
|
53
|
-
ref={ref}
|
|
54
|
-
className={cn("text-sm text-muted-foreground", className)}
|
|
55
|
-
{...props}
|
|
56
|
-
/>
|
|
57
|
-
));
|
|
58
|
-
CardDescription.displayName = "CardDescription";
|
|
59
|
-
|
|
60
|
-
const CardContent = React.forwardRef<
|
|
61
|
-
HTMLDivElement,
|
|
62
|
-
React.HTMLAttributes<HTMLDivElement>
|
|
63
|
-
>(({ className, ...props }, ref) => (
|
|
64
|
-
<div ref={ref} className={cn("p-6 pt-0", className)} {...props} />
|
|
65
|
-
));
|
|
66
|
-
CardContent.displayName = "CardContent";
|
|
67
|
-
|
|
68
|
-
const CardFooter = React.forwardRef<
|
|
69
|
-
HTMLDivElement,
|
|
70
|
-
React.HTMLAttributes<HTMLDivElement>
|
|
71
|
-
>(({ className, ...props }, ref) => (
|
|
72
|
-
<div
|
|
73
|
-
ref={ref}
|
|
74
|
-
className={cn("flex items-center p-6 pt-0", className)}
|
|
75
|
-
{...props}
|
|
76
|
-
/>
|
|
77
|
-
));
|
|
78
|
-
CardFooter.displayName = "CardFooter";
|
|
79
|
-
|
|
80
|
-
export {
|
|
81
|
-
Card,
|
|
82
|
-
CardHeader,
|
|
83
|
-
CardFooter,
|
|
84
|
-
CardTitle,
|
|
85
|
-
CardDescription,
|
|
86
|
-
CardContent,
|
|
87
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
5
|
-
import { Check } from "lucide-react";
|
|
6
|
-
|
|
7
|
-
import { cn } from "../../../lib/utils";
|
|
8
|
-
|
|
9
|
-
const Checkbox = React.forwardRef<
|
|
10
|
-
React.ElementRef<typeof CheckboxPrimitive.Root>,
|
|
11
|
-
React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>
|
|
12
|
-
>(({ className, ...props }, ref) => (
|
|
13
|
-
<CheckboxPrimitive.Root
|
|
14
|
-
ref={ref}
|
|
15
|
-
className={cn(
|
|
16
|
-
"peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
|
|
17
|
-
className,
|
|
18
|
-
"alq--checkbox"
|
|
19
|
-
)}
|
|
20
|
-
{...props}
|
|
21
|
-
>
|
|
22
|
-
<CheckboxPrimitive.Indicator
|
|
23
|
-
className={cn("flex items-center justify-center text-current")}
|
|
24
|
-
>
|
|
25
|
-
<Check className="h-4 w-4" />
|
|
26
|
-
</CheckboxPrimitive.Indicator>
|
|
27
|
-
</CheckboxPrimitive.Root>
|
|
28
|
-
));
|
|
29
|
-
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
30
|
-
|
|
31
|
-
export { Checkbox };
|