canx-ui 1.0.2 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.d.ts +2 -0
- package/dist/bin/registry.d.ts +7 -0
- package/dist/components/ActionButton.d.ts +9 -0
- package/dist/components/Alert.d.ts +8 -0
- package/dist/components/AnimatedGradientText.d.ts +7 -0
- package/dist/components/ApplicationLogo.d.ts +1 -0
- package/dist/components/AuroraBackground.d.ts +5 -0
- package/dist/components/Badge.d.ts +9 -0
- package/dist/components/Button.d.ts +11 -0
- package/dist/components/Card.d.ts +8 -0
- package/dist/components/Checkbox.d.ts +8 -0
- package/dist/components/DataTable.d.ts +20 -0
- package/dist/components/GlowCard.d.ts +8 -0
- package/dist/components/GridPattern.d.ts +6 -0
- package/dist/components/Input.d.ts +5 -0
- package/dist/components/InputLabel.d.ts +8 -0
- package/dist/components/Label.d.ts +4 -0
- package/dist/components/Modal.d.ts +12 -0
- package/dist/components/PrimaryButton.d.ts +8 -0
- package/dist/components/ShimmerButton.d.ts +6 -0
- package/dist/components/SpotlightCard.d.ts +7 -0
- package/dist/components/Table.d.ts +10 -0
- package/dist/components/TextInput.d.ts +13 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +2125 -100
- package/dist/lib/utils.d.ts +5 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +49 -33
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface ActionButtonProps {
|
|
2
|
+
onClick?: () => void;
|
|
3
|
+
href?: string;
|
|
4
|
+
icon?: string;
|
|
5
|
+
variant?: 'primary' | 'danger' | 'neutral';
|
|
6
|
+
label?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function ActionButton({ onClick, href, icon, variant, label }: ActionButtonProps): string;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
7
|
+
declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
8
|
+
export { Alert, AlertTitle, AlertDescription };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ApplicationLogo(props: Record<string, any>): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "outline" | "default" | "destructive" | "secondary" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
|
+
}
|
|
8
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): string;
|
|
9
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "link" | "outline" | "default" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "icon" | "default" | "sm" | "lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
5
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
6
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
interface Column<T> {
|
|
2
|
+
header: string;
|
|
3
|
+
accessor: keyof T | ((item: T) => any);
|
|
4
|
+
align?: 'left' | 'center' | 'right';
|
|
5
|
+
render?: (item: T) => any;
|
|
6
|
+
}
|
|
7
|
+
interface DataTableProps<T> {
|
|
8
|
+
data: T[];
|
|
9
|
+
columns: Column<T>[];
|
|
10
|
+
actions?: (item: T) => any;
|
|
11
|
+
title?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
primaryAction?: {
|
|
14
|
+
label: string;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
href?: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare function DataTable<T>({ data, columns, actions, title, description, primaryAction }: DataTableProps<T>): string;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface GlowCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
hoverEffect?: "lift" | "glow" | "both";
|
|
6
|
+
}
|
|
7
|
+
export declare function GlowCard({ children, className, hoverEffect, ...props }: GlowCardProps): string;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const Label: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLLabelElement> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
4
|
+
export { Label };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ModalProps {
|
|
2
|
+
id: string;
|
|
3
|
+
title?: string;
|
|
4
|
+
children: any;
|
|
5
|
+
className?: string;
|
|
6
|
+
triggerLabel?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Native HTML Dialog Modal.
|
|
10
|
+
* Use `(document.getElementById(id) as HTMLDialogElement).showModal()` to open.
|
|
11
|
+
*/
|
|
12
|
+
export declare function Modal({ id, title, children, className, triggerLabel }: ModalProps): string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface ShimmerButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
2
|
+
href?: string;
|
|
3
|
+
variant?: "primary" | "outline";
|
|
4
|
+
}
|
|
5
|
+
export declare function ShimmerButton({ children, className, href, type, disabled, variant, ...props }: ShimmerButtonProps): string;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface SpotlightCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function SpotlightCard({ children, className, ...props }: SpotlightCardProps): string;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
3
|
+
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
4
|
+
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
5
|
+
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
6
|
+
declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
7
|
+
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
8
|
+
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
9
|
+
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
10
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface TextInputProps {
|
|
2
|
+
id?: string;
|
|
3
|
+
type?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
autoFocus?: boolean;
|
|
10
|
+
autoComplete?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function TextInput({ id, type, name, value, className, placeholder, required, autoFocus, autoComplete, }: TextInputProps): string;
|
|
13
|
+
export {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./components/ActionButton";
|
|
2
|
+
export * from "./components/AnimatedGradientText";
|
|
3
|
+
export * from "./components/ApplicationLogo";
|
|
4
|
+
export * from "./components/AuroraBackground";
|
|
5
|
+
export * from "./components/Checkbox";
|
|
6
|
+
export * from "./components/DataTable";
|
|
7
|
+
export * from "./components/GlowCard";
|
|
8
|
+
export * from "./components/GridPattern";
|
|
9
|
+
export * from "./components/InputLabel";
|
|
10
|
+
export * from "./components/PrimaryButton";
|
|
11
|
+
export * from "./components/ShimmerButton";
|
|
12
|
+
export * from "./components/SpotlightCard";
|
|
13
|
+
export * from "./components/TextInput";
|
|
14
|
+
export * from "./lib/utils";
|