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.
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1,7 @@
1
+ export namespace registry {
2
+ let utils: string;
3
+ let button: string;
4
+ let input: string;
5
+ let modal: string;
6
+ let cssVars: string;
7
+ }
@@ -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,7 @@
1
+ interface AnimatedGradientTextProps {
2
+ children: any;
3
+ className?: string;
4
+ as?: "h1" | "h2" | "h3" | "p" | "span";
5
+ }
6
+ export declare function AnimatedGradientText({ children, className, as: Tag }: AnimatedGradientTextProps): string;
7
+ export {};
@@ -0,0 +1 @@
1
+ export declare function ApplicationLogo(props: Record<string, any>): string;
@@ -0,0 +1,5 @@
1
+ interface AuroraBackgroundProps extends React.HTMLAttributes<HTMLDivElement> {
2
+ children?: React.ReactNode;
3
+ }
4
+ export declare function AuroraBackground({ children, className, ...props }: AuroraBackgroundProps): string;
5
+ export {};
@@ -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,8 @@
1
+ interface CheckboxProps {
2
+ name?: string;
3
+ value?: string;
4
+ checked?: boolean;
5
+ className?: string;
6
+ }
7
+ export declare function Checkbox({ name, value, checked, className }: CheckboxProps): string;
8
+ export {};
@@ -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,6 @@
1
+ interface GridPatternProps {
2
+ className?: string;
3
+ variant?: "grid" | "dots";
4
+ }
5
+ export declare function GridPattern({ className, variant }: GridPatternProps): string;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
+ }
4
+ declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
5
+ export { Input };
@@ -0,0 +1,8 @@
1
+ interface InputLabelProps {
2
+ htmlFor?: string;
3
+ value?: string;
4
+ className?: string;
5
+ children?: any;
6
+ }
7
+ export declare function InputLabel({ htmlFor, value, className, children }: InputLabelProps): 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,8 @@
1
+ interface PrimaryButtonProps {
2
+ type?: "button" | "submit" | "reset";
3
+ className?: string;
4
+ disabled?: boolean;
5
+ children?: any;
6
+ }
7
+ export declare function PrimaryButton({ type, className, disabled, children }: PrimaryButtonProps): string;
8
+ export {};
@@ -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 {};
@@ -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";