@ataraui/ataraui-react 0.4.0 → 0.6.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/dist/index.d.ts CHANGED
@@ -262,4 +262,145 @@ interface PopoverProps {
262
262
  }
263
263
  declare const Popover: React.FC<PopoverProps>;
264
264
 
265
- export { Avatar, type AvatarProps, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, Drawer, DrawerBody, DrawerDescription, DrawerFooter, DrawerHeader, type DrawerHeaderProps, type DrawerProps, DrawerTitle, Input, type InputProps, Modal, ModalBody, ModalDescription, ModalFooter, ModalHeader, type ModalHeaderProps, type ModalProps, ModalTitle, Popover, type PopoverProps, RadioGroup, type RadioGroupProps, type RadioOption, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, Spinner, type SpinnerProps, Switch, type SwitchProps, Tooltip, type TooltipProps, avatarVariants, badgeVariants, buttonVariants, cardVariants, cn, colors, drawerVariants, fontSize, inputVariants, modalVariants, radius, selectVariants, separatorVariants, spinnerVariants };
265
+ type ToastVariant = 'default' | 'success' | 'warning' | 'destructive';
266
+ type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
267
+ interface ToastItem {
268
+ id: string;
269
+ title?: string;
270
+ description?: string;
271
+ variant?: ToastVariant;
272
+ duration?: number;
273
+ icon?: React.ReactNode;
274
+ action?: {
275
+ label: string;
276
+ onClick: () => void;
277
+ };
278
+ }
279
+ type ToastInput = Omit<ToastItem, 'id'>;
280
+ interface ToastContextValue {
281
+ toasts: ToastItem[];
282
+ toast: (input: ToastInput) => string;
283
+ dismiss: (id: string) => void;
284
+ dismissAll: () => void;
285
+ }
286
+ declare const ToastProvider: React.FC<{
287
+ children: React.ReactNode;
288
+ }>;
289
+ declare const useToast: () => ToastContextValue;
290
+ declare const toastVariants: (props?: ({
291
+ variant?: "destructive" | "default" | "success" | "warning" | null | undefined;
292
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
293
+ interface ToasterProps {
294
+ position?: ToastPosition;
295
+ defaultDuration?: number;
296
+ className?: string;
297
+ }
298
+ declare const Toaster: React.FC<ToasterProps>;
299
+
300
+ declare const alertVariants: (props?: ({
301
+ variant?: "destructive" | "default" | "success" | "warning" | null | undefined;
302
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
303
+ interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
304
+ icon?: React.ReactNode;
305
+ onClose?: () => void;
306
+ }
307
+ declare const Alert: React.FC<AlertProps>;
308
+ declare const AlertTitle: React.FC<React.HTMLAttributes<HTMLParagraphElement>>;
309
+ declare const AlertDescription: React.FC<React.HTMLAttributes<HTMLParagraphElement>>;
310
+
311
+ declare const progressVariants: (props?: ({
312
+ size?: "sm" | "md" | "lg" | null | undefined;
313
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
314
+ interface ProgressProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof progressVariants> {
315
+ /** Value between 0–100. Omit for indeterminate. */
316
+ value?: number;
317
+ label?: string;
318
+ showLabel?: boolean;
319
+ }
320
+ declare const Progress: React.FC<ProgressProps>;
321
+
322
+ declare const skeletonVariants: (props?: ({
323
+ variant?: "text" | "circle" | "rect" | null | undefined;
324
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
325
+ interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof skeletonVariants> {
326
+ width?: string | number;
327
+ height?: string | number;
328
+ }
329
+ declare const Skeleton: React.FC<SkeletonProps>;
330
+
331
+ declare const tabsListVariants: (props?: ({
332
+ variant?: "outline" | "default" | "pills" | null | undefined;
333
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
334
+ declare const tabsTriggerVariants: (props?: ({
335
+ variant?: "outline" | "default" | "pills" | null | undefined;
336
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
337
+ interface TabsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>, VariantProps<typeof tabsListVariants> {
338
+ value?: string;
339
+ defaultValue?: string;
340
+ onChange?: (value: string) => void;
341
+ }
342
+ interface TabsListProps extends React.HTMLAttributes<HTMLDivElement> {
343
+ }
344
+ interface TabsTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
345
+ value: string;
346
+ }
347
+ interface TabsContentProps extends React.HTMLAttributes<HTMLDivElement> {
348
+ value: string;
349
+ }
350
+ declare const Tabs: React.FC<TabsProps>;
351
+ declare const TabsList: React.FC<TabsListProps>;
352
+ declare const TabsTrigger: React.FC<TabsTriggerProps>;
353
+ declare const TabsContent: React.FC<TabsContentProps>;
354
+
355
+ declare const accordionVariants: (props?: ({
356
+ variant?: "ghost" | "default" | "outlined" | null | undefined;
357
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
358
+ type AccordionType = 'single' | 'multiple';
359
+ interface AccordionProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>, VariantProps<typeof accordionVariants> {
360
+ type?: AccordionType;
361
+ value?: string | string[];
362
+ defaultValue?: string | string[];
363
+ onChange?: (value: string | string[]) => void;
364
+ }
365
+ interface AccordionItemProps extends React.HTMLAttributes<HTMLDivElement> {
366
+ value: string;
367
+ disabled?: boolean;
368
+ }
369
+ interface AccordionTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
370
+ }
371
+ interface AccordionContentProps extends React.HTMLAttributes<HTMLDivElement> {
372
+ }
373
+ declare const Accordion: React.FC<AccordionProps>;
374
+ declare const AccordionItem: React.FC<AccordionItemProps>;
375
+ declare const AccordionTrigger: React.FC<AccordionTriggerProps>;
376
+ declare const AccordionContent: React.FC<AccordionContentProps>;
377
+
378
+ declare const tableVariants: (props?: ({
379
+ variant?: "default" | "striped" | "bordered" | null | undefined;
380
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
381
+ interface TableProps extends React.HTMLAttributes<HTMLTableElement>, VariantProps<typeof tableVariants> {
382
+ }
383
+ interface TableHeaderProps extends React.HTMLAttributes<HTMLTableSectionElement> {
384
+ }
385
+ interface TableBodyProps extends React.HTMLAttributes<HTMLTableSectionElement> {
386
+ }
387
+ interface TableFooterProps extends React.HTMLAttributes<HTMLTableSectionElement> {
388
+ }
389
+ interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
390
+ }
391
+ interface TableHeadProps extends React.ThHTMLAttributes<HTMLTableCellElement> {
392
+ }
393
+ interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
394
+ }
395
+ interface TableCaptionProps extends React.HTMLAttributes<HTMLTableCaptionElement> {
396
+ }
397
+ declare const Table: React.FC<TableProps>;
398
+ declare const TableHeader: React.FC<TableHeaderProps>;
399
+ declare const TableBody: React.FC<TableBodyProps>;
400
+ declare const TableFooter: React.FC<TableFooterProps>;
401
+ declare const TableRow: React.FC<TableRowProps>;
402
+ declare const TableHead: React.FC<TableHeadProps>;
403
+ declare const TableCell: React.FC<TableCellProps>;
404
+ declare const TableCaption: React.FC<TableCaptionProps>;
405
+
406
+ export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDescription, type AlertProps, AlertTitle, Avatar, type AvatarProps, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, Drawer, DrawerBody, DrawerDescription, DrawerFooter, DrawerHeader, type DrawerHeaderProps, type DrawerProps, DrawerTitle, Input, type InputProps, Modal, ModalBody, ModalDescription, ModalFooter, ModalHeader, type ModalHeaderProps, type ModalProps, ModalTitle, Popover, type PopoverProps, Progress, type ProgressProps, RadioGroup, type RadioGroupProps, type RadioOption, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, type ToastInput, type ToastItem, type ToastPosition, ToastProvider, type ToastVariant, Toaster, type ToasterProps, Tooltip, type TooltipProps, accordionVariants, alertVariants, avatarVariants, badgeVariants, buttonVariants, cardVariants, cn, colors, drawerVariants, fontSize, inputVariants, modalVariants, progressVariants, radius, selectVariants, separatorVariants, skeletonVariants, spinnerVariants, tableVariants, tabsListVariants, tabsTriggerVariants, toastVariants, useToast };