@apcrda/ui 0.4.7 → 0.4.9

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,5 @@
1
+ import type { AlertProps } from './Alert.types';
2
+ export declare function Alert({ variant, title, icon, dismissible, onDismiss, className, children, ...props }: AlertProps): import("react").JSX.Element;
3
+ export declare namespace Alert {
4
+ var displayName: string;
5
+ }
@@ -0,0 +1,9 @@
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+ export type AlertVariant = 'info' | 'success' | 'warning' | 'error' | 'neutral';
3
+ export interface AlertProps extends HTMLAttributes<HTMLDivElement> {
4
+ readonly variant?: AlertVariant;
5
+ readonly title?: string;
6
+ readonly icon?: ReactNode;
7
+ readonly dismissible?: boolean;
8
+ readonly onDismiss?: () => void;
9
+ }
@@ -0,0 +1,2 @@
1
+ export { Alert } from './Alert';
2
+ export type { AlertProps, AlertVariant } from './Alert.types';
@@ -1,5 +1,5 @@
1
1
  export declare const badgeVariants: (props?: ({
2
- variant?: "warning" | "info" | "error" | "neutral" | "primary" | "secondary" | "success" | null | undefined;
2
+ variant?: "info" | "success" | "warning" | "error" | "neutral" | "primary" | "secondary" | null | undefined;
3
3
  size?: "sm" | "md" | null | undefined;
4
4
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
5
  export declare const Badge: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & {
@@ -1,6 +1,6 @@
1
1
  export declare const buttonVariants: (props?: ({
2
- variant?: "destructive" | "primary" | "secondary" | "success" | "outline" | "ghost" | null | undefined;
3
- size?: "sm" | "md" | "lg" | "icon" | null | undefined;
2
+ variant?: "success" | "destructive" | "primary" | "secondary" | "outline" | "ghost" | null | undefined;
3
+ size?: "icon" | "sm" | "md" | "lg" | null | undefined;
4
4
  fullWidth?: boolean | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  export declare const Button: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
@@ -0,0 +1,5 @@
1
+ import type { FormFieldProps } from './FormField.types';
2
+ export declare function FormField({ label, htmlFor, required, hint, error, className, children, ...props }: FormFieldProps): import("react").JSX.Element;
3
+ export declare namespace FormField {
4
+ var displayName: string;
5
+ }
@@ -0,0 +1,9 @@
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+ export interface FormFieldProps extends HTMLAttributes<HTMLDivElement> {
3
+ readonly label?: string;
4
+ readonly htmlFor?: string;
5
+ readonly required?: boolean;
6
+ readonly hint?: string;
7
+ readonly error?: string;
8
+ readonly children?: ReactNode;
9
+ }
@@ -0,0 +1,2 @@
1
+ export { FormField } from './FormField';
2
+ export type { FormFieldProps } from './FormField.types';
@@ -0,0 +1,5 @@
1
+ import type { StatCardProps } from './StatCard.types';
2
+ export declare function StatCard({ label, value, icon, trend, trendLabel, description, className, ...props }: StatCardProps): import("react").JSX.Element;
3
+ export declare namespace StatCard {
4
+ var displayName: string;
5
+ }
@@ -0,0 +1,9 @@
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+ export interface StatCardProps extends HTMLAttributes<HTMLDivElement> {
3
+ readonly label: string;
4
+ readonly value: string | number;
5
+ readonly icon?: ReactNode;
6
+ readonly trend?: number;
7
+ readonly trendLabel?: string;
8
+ readonly description?: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ export { StatCard } from './StatCard';
2
+ export type { StatCardProps } from './StatCard.types';
@@ -0,0 +1,5 @@
1
+ import type { StepperProps } from './Stepper.types';
2
+ export declare function Stepper({ steps, activeStep, orientation, completedSteps, errorSteps, className, ...props }: StepperProps): import("react").JSX.Element;
3
+ export declare namespace Stepper {
4
+ var displayName: string;
5
+ }
@@ -0,0 +1,14 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ export interface StepItem {
3
+ readonly id: string | number;
4
+ readonly label: string;
5
+ readonly description?: string;
6
+ }
7
+ export type StepStatus = 'completed' | 'active' | 'pending' | 'error';
8
+ export interface StepperProps extends HTMLAttributes<HTMLDivElement> {
9
+ readonly steps: StepItem[];
10
+ readonly activeStep: number;
11
+ readonly orientation?: 'horizontal' | 'vertical';
12
+ readonly completedSteps?: number[];
13
+ readonly errorSteps?: number[];
14
+ }
@@ -0,0 +1,2 @@
1
+ export { Stepper } from './Stepper';
2
+ export type { StepItem, StepperProps, StepStatus } from './Stepper.types';
@@ -1,4 +1,5 @@
1
1
  export * from './Accordion';
2
+ export * from './Alert';
2
3
  export * from './AlertDialog';
3
4
  export * from './Autocomplete';
4
5
  export * from './Avatar';
@@ -17,6 +18,7 @@ export * from './Dialog';
17
18
  export * from './Divider';
18
19
  export * from './Drawer';
19
20
  export * from './FileUpload';
21
+ export * from './FormField';
20
22
  export * from './Input';
21
23
  export * from './Label';
22
24
  export * from './MultiSelect';
@@ -26,6 +28,8 @@ export * from './Popover';
26
28
  export * from './RadioGroup';
27
29
  export * from './Select';
28
30
  export * from './Sidebar';
31
+ export * from './StatCard';
32
+ export * from './Stepper';
29
33
  export * from './Switch';
30
34
  export * from './Table';
31
35
  export * from './Tabs';