caplink-saas-ui-shared-component-library 1.7.0 → 1.8.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/components/alert/alert.d.ts +1 -1
- package/dist/components/alert/index.d.ts +1 -1
- package/dist/components/alert-banner/alert-banner.d.ts +1 -1
- package/dist/components/breadcrumb/breadcrumb.d.ts +20 -0
- package/dist/components/breadcrumb/breadcrumb.primitives.d.ts +19 -0
- package/dist/components/breadcrumb/index.d.ts +1 -0
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/dialog/dialog.d.ts +1 -1
- package/dist/components/icon-button/icon-button.d.ts +1 -1
- package/dist/components/icon-button/index.d.ts +1 -1
- package/dist/components/sheet/sheet.d.ts +1 -1
- package/dist/components/sheet/{sheet-primitives.d.ts → sheet.primitives.d.ts} +1 -1
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/tabs.d.ts +7 -0
- package/dist/components/tabs/tabs.primitives.d.ts +7 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.es.js +9360 -8949
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +63 -63
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +11 -10
- package/package.json +11 -10
- /package/dist/components/alert/{alert-variants.d.ts → alert.variants.d.ts} +0 -0
- /package/dist/components/button/{button-variants.d.ts → button.variants.d.ts} +0 -0
- /package/dist/components/dialog/{dialog-primitives.d.ts → dialog.primitives.d.ts} +0 -0
- /package/dist/components/icon-button/{icon-button-variants.d.ts → icon-button.variants.d.ts} +0 -0
- /package/dist/components/popover/{popover-primitives.d.ts → popover.primitives.d.ts} +0 -0
- /package/dist/components/radio-group/{radio-group-primitives.d.ts → radio-group.primitives.d.ts} +0 -0
- /package/dist/components/sheet/{sheet-variants.d.ts → sheet.variants.d.ts} +0 -0
- /package/dist/components/toast/{toast-variants.d.ts → toast.variants.d.ts} +0 -0
- /package/dist/components/tooltip/{tooltip-primitives.d.ts → tooltip.primitives.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { alertVariants } from './alert
|
|
2
|
+
import { alertVariants } from './alert.variants';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
export type AlertProps = PropsWithChildren<{
|
|
5
5
|
customIconElement?: ReactNode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { alertVariants } from './alert
|
|
1
|
+
export { alertVariants } from './alert.variants';
|
|
2
2
|
export { Alert, type AlertProps } from './alert';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { alertVariants } from '../alert/alert
|
|
2
|
+
import { alertVariants } from '../alert/alert.variants';
|
|
3
3
|
import { HTMLAttributes, ForwardedRef, PropsWithChildren, ReactNode } from 'react';
|
|
4
4
|
export type AlertBannerProps = PropsWithChildren<{
|
|
5
5
|
title?: ReactNode;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Breadcrumb: {
|
|
3
|
+
Root: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
4
|
+
separator?: import('react').ReactNode;
|
|
5
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
6
|
+
List: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & import('react').RefAttributes<HTMLOListElement>>;
|
|
7
|
+
Item: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import('react').RefAttributes<HTMLLIElement>>;
|
|
8
|
+
Link: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
9
|
+
asChild?: boolean | undefined;
|
|
10
|
+
} & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
11
|
+
Page: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
12
|
+
Separator: {
|
|
13
|
+
({ children, className, ...props }: import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
Ellipsis: {
|
|
17
|
+
({ className, ...props }: import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const BreadcrumbRoot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
3
|
+
separator?: React.ReactNode;
|
|
4
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
5
|
+
declare const BreadcrumbList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
6
|
+
declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
7
|
+
declare const BreadcrumbLink: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
8
|
+
asChild?: boolean | undefined;
|
|
9
|
+
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
10
|
+
declare const BreadcrumbPage: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
11
|
+
declare const BreadcrumbSeparator: {
|
|
12
|
+
({ children, className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
declare const BreadcrumbEllipsis: {
|
|
16
|
+
({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
export { BreadcrumbRoot, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Breadcrumb } from './breadcrumb';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { buttonVariants } from './button
|
|
3
|
+
import { buttonVariants } from './button.variants';
|
|
4
4
|
export type ButtonProps = {
|
|
5
5
|
asChild?: boolean;
|
|
6
6
|
leftAdornment?: ReactNode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { buttonVariants } from './button
|
|
1
|
+
export { buttonVariants } from './button.variants';
|
|
2
2
|
export { Button, type ButtonProps } from './button';
|
|
@@ -8,4 +8,4 @@ export declare const Dialog: {
|
|
|
8
8
|
contentDescription: import('react').ReactNode;
|
|
9
9
|
} & Omit<import('@radix-ui/react-dialog').DialogContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
10
|
};
|
|
11
|
-
export type { DialogContentProps, DialogProps } from './dialog
|
|
11
|
+
export type { DialogContentProps, DialogProps } from './dialog.primitives';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes } from 'react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { iconButtonVariants } from './icon-button
|
|
3
|
+
import { iconButtonVariants } from './icon-button.variants';
|
|
4
4
|
export type IconButtonProps = {
|
|
5
5
|
asChild?: boolean;
|
|
6
6
|
} & ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof iconButtonVariants>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { iconButtonVariants } from './icon-button
|
|
1
|
+
export { iconButtonVariants } from './icon-button.variants';
|
|
2
2
|
export { IconButton, type IconButtonProps } from './icon-button';
|
|
@@ -10,4 +10,4 @@ export declare const Sheet: {
|
|
|
10
10
|
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
11
11
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
12
|
};
|
|
13
|
-
export type { SheetContentProps, SheetProps } from './sheet
|
|
13
|
+
export type { SheetContentProps, SheetProps } from './sheet.primitives';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { sheetVariants } from './sheet
|
|
2
|
+
import { sheetVariants } from './sheet.variants';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
5
5
|
export type SheetProps = SheetPrimitive.DialogProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tabs } from './tabs';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Tabs: {
|
|
3
|
+
Root: import('react').ForwardRefExoticComponent<import('@radix-ui/react-tabs').TabsProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
4
|
+
List: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-tabs').TabsListProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
|
+
Trigger: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-tabs').TabsTriggerProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
Content: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-tabs').TabsContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
3
|
+
declare const TabsRoot: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { TabsRoot, TabsList, TabsTrigger, TabsContent };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Tabs } from './components/tabs';
|
|
1
2
|
import { Tooltip } from './components/tooltip';
|
|
2
3
|
import { Popover } from './components/popover';
|
|
3
4
|
import { Radio } from './components/radio-group';
|
|
4
5
|
import { Checkbox } from './components/checkbox';
|
|
6
|
+
import { Breadcrumb } from './components/breadcrumb';
|
|
5
7
|
import { Alert, AlertProps, alertVariants } from './components/alert';
|
|
6
8
|
import { ProgressBar, ProgressBarProps } from './components/progress-bar';
|
|
7
9
|
import { Button, ButtonProps, buttonVariants } from './components/button';
|
|
@@ -31,7 +33,7 @@ import { CapLinkProvider } from './providers';
|
|
|
31
33
|
import { IconTextButtonProps } from './shared/ui/icon-text-button';
|
|
32
34
|
import { Badge, BadgeProps } from './shared/ui/badge';
|
|
33
35
|
import { CustomPaginationProps } from './components/pagination';
|
|
34
|
-
export { Tooltip, Popover, Radio, Checkbox, Alert, alertVariants, ProgressBar, Button, buttonVariants, AlertBanner, Sheet, CopyTextButton, Dialog, ToastProvider, Toaster, useToast, IconButton, iconButtonVariants, };
|
|
36
|
+
export { Tabs, Tooltip, Popover, Radio, Checkbox, Breadcrumb, Alert, alertVariants, ProgressBar, Button, buttonVariants, AlertBanner, Sheet, CopyTextButton, Dialog, ToastProvider, Toaster, useToast, IconButton, iconButtonVariants, };
|
|
35
37
|
export type { AlertProps, ProgressBarProps, ButtonProps, AlertBannerProps, SheetProps, SheetContentProps, CopyTextButtonProps, DialogProps, DialogContentProps, ToastFnProps, IconButtonProps, };
|
|
36
38
|
export declare const CapLink: {
|
|
37
39
|
Spreadsheet: typeof Spreadsheet;
|