@engrate/components 0.1.4 → 0.1.6
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/components/ui/Accordion/Accordion.d.ts +38 -0
- package/dist/components/ui/Accordion/index.d.ts +2 -0
- package/dist/components/ui/AlertDialog/AlertDialog.d.ts +2 -2
- package/dist/components/ui/Banner/Banner.d.ts +31 -0
- package/dist/components/ui/Banner/index.d.ts +2 -0
- package/dist/components/ui/BarChart/BarChart.d.ts +1 -1
- package/dist/components/ui/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/components/ui/Button/Button.d.ts +1 -1
- package/dist/components/ui/Card/Card.d.ts +2 -2
- package/dist/components/ui/ContextMenu/ContextMenu.d.ts +1 -1
- package/dist/components/ui/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/components/ui/Eyebrow/Eyebrow.d.ts +2 -2
- package/dist/components/ui/Grid/Grid.d.ts +1 -1
- package/dist/components/ui/Label/Label.d.ts +1 -1
- package/dist/components/ui/LineChart/LineChart.d.ts +1 -1
- package/dist/components/ui/Link/Link.d.ts +1 -1
- package/dist/components/ui/Modal/Modal.d.ts +2 -2
- package/dist/components/ui/Pagination/Pagination.d.ts +38 -0
- package/dist/components/ui/Pagination/index.d.ts +2 -0
- package/dist/components/ui/PieChart/PieChart.d.ts +1 -1
- package/dist/components/ui/ProgressIndicator/ProgressIndicator.d.ts +2 -2
- package/dist/components/ui/Spinner/Spinner.d.ts +1 -1
- package/dist/components/ui/Stack/Stack.d.ts +1 -1
- package/dist/components/ui/TabList/TabList.d.ts +2 -2
- package/dist/components/ui/Textarea/Textarea.d.ts +1 -1
- package/dist/components/ui/Toast/Toast.d.ts +2 -2
- package/dist/components/ui/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/ui/index.d.ts +3 -0
- package/dist/index.cjs.js +34 -34
- package/dist/index.es.js +10173 -9533
- package/dist/styles.css +1 -1
- package/package.json +7 -2
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const accordionVariants: (props?: ({
|
|
5
|
+
variant?: "default" | "bordered" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
type AccordionSingleProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root> & VariantProps<typeof accordionVariants> & {
|
|
8
|
+
type: 'single';
|
|
9
|
+
collapsible?: boolean;
|
|
10
|
+
};
|
|
11
|
+
type AccordionMultipleProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root> & VariantProps<typeof accordionVariants> & {
|
|
12
|
+
type: 'multiple';
|
|
13
|
+
};
|
|
14
|
+
type AccordionProps = AccordionSingleProps | AccordionMultipleProps;
|
|
15
|
+
declare const Accordion: React.ForwardRefExoticComponent<((Omit<AccordionPrimitive.AccordionSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
|
|
16
|
+
variant?: "default" | "bordered" | null | undefined;
|
|
17
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & {
|
|
18
|
+
type: "single";
|
|
19
|
+
collapsible?: boolean;
|
|
20
|
+
}) | (Omit<AccordionPrimitive.AccordionMultipleProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
|
|
21
|
+
variant?: "default" | "bordered" | null | undefined;
|
|
22
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & {
|
|
23
|
+
type: "multiple";
|
|
24
|
+
})) & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
interface AccordionItemProps extends React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item> {
|
|
26
|
+
}
|
|
27
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
declare const accordionTriggerVariants: (props?: ({
|
|
29
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
30
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
31
|
+
interface AccordionTriggerProps extends React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>, VariantProps<typeof accordionTriggerVariants> {
|
|
32
|
+
}
|
|
33
|
+
declare const AccordionTrigger: React.ForwardRefExoticComponent<AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
34
|
+
interface AccordionContentProps extends React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content> {
|
|
35
|
+
}
|
|
36
|
+
declare const AccordionContent: React.ForwardRefExoticComponent<AccordionContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, accordionVariants, accordionTriggerVariants, };
|
|
38
|
+
export type { AccordionProps, AccordionItemProps, AccordionTriggerProps, AccordionContentProps, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { buttonVariants } from '../Button';
|
|
3
|
-
import * as React from 'react';
|
|
4
3
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
6
6
|
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
7
|
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
@@ -9,7 +9,7 @@ interface AlertDialogOverlayProps extends React.ComponentPropsWithoutRef<typeof
|
|
|
9
9
|
}
|
|
10
10
|
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
declare const alertDialogContentVariants: (props?: ({
|
|
12
|
-
size?: "
|
|
12
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
13
13
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
14
14
|
interface AlertDialogContentProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>, VariantProps<typeof alertDialogContentVariants> {
|
|
15
15
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const bannerVariants: (props?: ({
|
|
4
|
+
variant?: "error" | "info" | "success" | "warning" | "neutral" | null | undefined;
|
|
5
|
+
align?: "left" | "center" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
interface BannerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof bannerVariants> {
|
|
8
|
+
/** Render as a child component (for use with custom wrappers) */
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
/** Optional icon to display before the content */
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
/** Optional action element (button, link, etc.) to display at the end */
|
|
13
|
+
action?: React.ReactNode;
|
|
14
|
+
/** Called when the dismiss button is clicked */
|
|
15
|
+
onDismiss?: () => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Banner component for displaying important messages, announcements, or alerts.
|
|
19
|
+
* Typically used at the top of a page or section to convey critical information.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* <Banner variant="info">New feature available!</Banner>
|
|
24
|
+
* <Banner variant="success" onDismiss={() => {}}>Your changes have been saved.</Banner>
|
|
25
|
+
* <Banner variant="warning" icon={<WarningIcon />}>Please review your settings.</Banner>
|
|
26
|
+
* <Banner variant="error" action={<Button size="sm">Retry</Button>}>Connection failed.</Banner>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
export { Banner, bannerVariants };
|
|
31
|
+
export type { BannerProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const barChartVariants: (props?: ({
|
|
4
|
-
size?: "
|
|
4
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
/** A single data point for the bar chart */
|
|
7
7
|
interface BarChartDataPoint {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const breadcrumbsVariants: (props?: ({
|
|
4
|
-
size?: "
|
|
4
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
declare const breadcrumbItemVariants: (props?: ({
|
|
7
7
|
isCurrentPage?: boolean | null | undefined;
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "primary" | "secondary" | "ghost" | null | undefined;
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
8
|
/** Render as a child component (for use with Next.js Link, etc.) */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const cardVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
5
|
-
padding?: "
|
|
4
|
+
variant?: "default" | "ghost" | "elevated" | null | undefined;
|
|
5
|
+
padding?: "default" | "none" | "sm" | "lg" | null | undefined;
|
|
6
6
|
bg?: "contrast" | "main" | "sunflower" | "lemon-meringue" | "vanilla" | "eggshell" | "warm-purple" | "cool-purple" | "electric-blue" | "deep-blue" | "error" | "transparent" | "card" | "alt" | "sunflower-hover" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const ContextMenu: React.FC<ContextMenuPrimitive.ContextMenuProps>;
|
|
4
4
|
declare const ContextMenuTrigger: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
5
5
|
declare const ContextMenuGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
4
4
|
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const eyebrowVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
5
|
-
size?: "
|
|
4
|
+
variant?: "default" | "primary" | "secondary" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export interface EyebrowProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof eyebrowVariants> {
|
|
8
8
|
asChild?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
declare const gridVariants: (props?: ({
|
|
3
3
|
cols?: 1 | 2 | 3 | 4 | 5 | 12 | 6 | null | undefined;
|
|
4
|
-
gap?: "
|
|
4
|
+
gap?: "none" | "sm" | "lg" | "md" | "xl" | "xs" | "2xl" | null | undefined;
|
|
5
5
|
align?: "end" | "start" | "center" | "stretch" | "baseline" | null | undefined;
|
|
6
6
|
justify?: "end" | "start" | "center" | "stretch" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare const labelVariants: (props?: ({
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "default" | "sm" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
interface LabelProps extends React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>, VariantProps<typeof labelVariants> {
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const lineChartVariants: (props?: ({
|
|
4
|
-
size?: "
|
|
4
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
/** A single data point for the chart */
|
|
7
7
|
interface DataPoint {
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const linkVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "nav" | "muted" | null | undefined;
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement>, VariantProps<typeof linkVariants> {
|
|
8
8
|
/** Render as a child component (for use with Next.js Link, etc.) */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from 'react';
|
|
3
2
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
|
+
import * as React from 'react';
|
|
4
4
|
declare const Modal: React.FC<DialogPrimitive.DialogProps>;
|
|
5
5
|
declare const ModalTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
declare const ModalPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
@@ -9,7 +9,7 @@ interface ModalOverlayProps extends React.ComponentPropsWithoutRef<typeof Dialog
|
|
|
9
9
|
}
|
|
10
10
|
declare const ModalOverlay: React.ForwardRefExoticComponent<ModalOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
declare const modalContentVariants: (props?: ({
|
|
12
|
-
size?: "
|
|
12
|
+
size?: "default" | "sm" | "lg" | "full" | null | undefined;
|
|
13
13
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
14
14
|
interface ModalContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof modalContentVariants> {
|
|
15
15
|
/** Whether to show the default close button in the top-right corner */
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const paginationVariants: (props?: ({
|
|
4
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
declare const paginationItemVariants: (props?: ({
|
|
7
|
+
variant?: "default" | "active" | "ellipsis" | null | undefined;
|
|
8
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
+
interface PaginationProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof paginationVariants> {
|
|
11
|
+
/** Current page number (1-indexed) */
|
|
12
|
+
page: number;
|
|
13
|
+
/** Total number of pages */
|
|
14
|
+
totalPages: number;
|
|
15
|
+
/** Callback when page changes */
|
|
16
|
+
onPageChange?: (page: number) => void;
|
|
17
|
+
/** Number of sibling pages to show on each side of current page */
|
|
18
|
+
siblingCount?: number;
|
|
19
|
+
}
|
|
20
|
+
interface PaginationItemProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof paginationItemVariants> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Navigation component for paginated content.
|
|
24
|
+
* Features numbered page buttons with ellipsis for large page counts.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```tsx
|
|
28
|
+
* <Pagination
|
|
29
|
+
* page={currentPage}
|
|
30
|
+
* totalPages={10}
|
|
31
|
+
* onPageChange={setCurrentPage}
|
|
32
|
+
* />
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>>;
|
|
36
|
+
declare const PaginationItem: React.ForwardRefExoticComponent<PaginationItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
37
|
+
export { Pagination, paginationVariants, paginationItemVariants, PaginationItem, };
|
|
38
|
+
export type { PaginationProps, PaginationItemProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const pieChartVariants: (props?: ({
|
|
4
|
-
size?: "
|
|
4
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
/** A single data point for the pie chart */
|
|
7
7
|
interface PieChartDataPoint {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const progressIndicatorVariants: (props?: ({
|
|
4
|
-
size?: "
|
|
4
|
+
size?: "default" | "sm" | "lg" | "xl" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
declare const progressBarVariants: (props?: ({
|
|
7
|
-
variant?: "default" | "
|
|
7
|
+
variant?: "default" | "success" | "muted" | null | undefined;
|
|
8
8
|
animated?: boolean | null | undefined;
|
|
9
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
10
|
interface ProgressIndicatorProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof progressIndicatorVariants>, VariantProps<typeof progressBarVariants> {
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const spinnerVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "muted" | "inverted" | null | undefined;
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "default" | "sm" | "lg" | "xl" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
interface SpinnerProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof spinnerVariants> {
|
|
8
8
|
/** Accessible label for screen readers */
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const stackVariants: (props?: ({
|
|
4
4
|
direction?: "horizontal" | "vertical" | null | undefined;
|
|
5
|
-
gap?: "
|
|
5
|
+
gap?: "none" | "sm" | "lg" | "md" | "xl" | "xs" | "2xl" | null | undefined;
|
|
6
6
|
align?: "end" | "start" | "center" | "stretch" | "baseline" | null | undefined;
|
|
7
7
|
justify?: "end" | "start" | "center" | "between" | "around" | "evenly" | null | undefined;
|
|
8
8
|
wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
|
|
@@ -36,7 +36,7 @@ interface TabListProps extends React.HTMLAttributes<HTMLDivElement>, VariantProp
|
|
|
36
36
|
declare const TabList: React.ForwardRefExoticComponent<TabListProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
37
|
declare const tabTriggerVariants: (props?: ({
|
|
38
38
|
variant?: "default" | "pills" | null | undefined;
|
|
39
|
-
size?: "
|
|
39
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
40
40
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
41
41
|
interface TabTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof tabTriggerVariants> {
|
|
42
42
|
/** Unique value identifying this tab */
|
|
@@ -47,7 +47,7 @@ interface TabTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
47
47
|
*/
|
|
48
48
|
declare const TabTrigger: React.ForwardRefExoticComponent<TabTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
49
49
|
declare const tabContentVariants: (props?: ({
|
|
50
|
-
size?: "
|
|
50
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
51
51
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
52
52
|
interface TabContentProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof tabContentVariants> {
|
|
53
53
|
/** Value matching the TabTrigger this content belongs to */
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const textareaVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "error" | null | undefined;
|
|
5
|
-
resize?: "none" | "
|
|
5
|
+
resize?: "none" | "horizontal" | "vertical" | "both" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textareaVariants> {
|
|
8
8
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from 'react';
|
|
3
2
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
3
|
+
import * as React from 'react';
|
|
4
4
|
declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
|
|
5
5
|
interface ToastViewportProps extends React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport> {
|
|
6
6
|
}
|
|
7
7
|
declare const ToastViewport: React.ForwardRefExoticComponent<ToastViewportProps & React.RefAttributes<HTMLOListElement>>;
|
|
8
8
|
declare const toastVariants: (props?: ({
|
|
9
|
-
variant?: "default" | "error" | "
|
|
9
|
+
variant?: "default" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
10
10
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
11
|
interface ToastProps extends React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root>, VariantProps<typeof toastVariants> {
|
|
12
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from 'react';
|
|
3
2
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
|
+
import * as React from 'react';
|
|
4
4
|
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
5
5
|
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
6
6
|
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
export * from './Accordion';
|
|
1
2
|
export * from './AlertDialog';
|
|
2
3
|
export * from './Badge';
|
|
4
|
+
export * from './Banner';
|
|
3
5
|
export * from './BarChart';
|
|
4
6
|
export * from './Breadcrumbs';
|
|
5
7
|
export * from './Button';
|
|
@@ -20,6 +22,7 @@ export * from './Label';
|
|
|
20
22
|
export * from './LineChart';
|
|
21
23
|
export * from './Link';
|
|
22
24
|
export * from './Modal';
|
|
25
|
+
export * from './Pagination';
|
|
23
26
|
export * from './PieChart';
|
|
24
27
|
export * from './ProgressIndicator';
|
|
25
28
|
export * from './Radio';
|