caplink-saas-ui-shared-component-library 1.7.0 → 1.9.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.
Files changed (35) hide show
  1. package/dist/components/alert/alert.d.ts +1 -1
  2. package/dist/components/alert/index.d.ts +1 -1
  3. package/dist/components/alert-banner/alert-banner.d.ts +1 -1
  4. package/dist/components/breadcrumb/breadcrumb.d.ts +20 -0
  5. package/dist/components/breadcrumb/breadcrumb.primitives.d.ts +19 -0
  6. package/dist/components/breadcrumb/index.d.ts +1 -0
  7. package/dist/components/button/button.d.ts +1 -1
  8. package/dist/components/button/index.d.ts +1 -1
  9. package/dist/components/dialog/dialog.d.ts +1 -1
  10. package/dist/components/icon-button/icon-button.d.ts +1 -1
  11. package/dist/components/icon-button/index.d.ts +1 -1
  12. package/dist/components/input-otp/index.d.ts +1 -0
  13. package/dist/components/input-otp/input-otp-primitives.d.ts +31 -0
  14. package/dist/components/input-otp/input-otp.d.ts +32 -0
  15. package/dist/components/sheet/sheet.d.ts +1 -1
  16. package/dist/components/sheet/{sheet-primitives.d.ts → sheet.primitives.d.ts} +1 -1
  17. package/dist/components/tabs/index.d.ts +1 -0
  18. package/dist/components/tabs/tabs.d.ts +7 -0
  19. package/dist/components/tabs/tabs.primitives.d.ts +7 -0
  20. package/dist/index.d.ts +35 -1
  21. package/dist/index.es.js +12875 -12228
  22. package/dist/index.es.js.map +1 -1
  23. package/dist/index.umd.js +85 -66
  24. package/dist/index.umd.js.map +1 -1
  25. package/dist/package.json +12 -10
  26. package/package.json +12 -10
  27. /package/dist/components/alert/{alert-variants.d.ts → alert.variants.d.ts} +0 -0
  28. /package/dist/components/button/{button-variants.d.ts → button.variants.d.ts} +0 -0
  29. /package/dist/components/dialog/{dialog-primitives.d.ts → dialog.primitives.d.ts} +0 -0
  30. /package/dist/components/icon-button/{icon-button-variants.d.ts → icon-button.variants.d.ts} +0 -0
  31. /package/dist/components/popover/{popover-primitives.d.ts → popover.primitives.d.ts} +0 -0
  32. /package/dist/components/radio-group/{radio-group-primitives.d.ts → radio-group.primitives.d.ts} +0 -0
  33. /package/dist/components/sheet/{sheet-variants.d.ts → sheet.variants.d.ts} +0 -0
  34. /package/dist/components/toast/{toast-variants.d.ts → toast.variants.d.ts} +0 -0
  35. /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-variants';
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-variants';
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-variants';
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-variants';
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-variants';
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-primitives';
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-variants';
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-variants';
1
+ export { iconButtonVariants } from './icon-button.variants';
2
2
  export { IconButton, type IconButtonProps } from './icon-button';
@@ -0,0 +1 @@
1
+ export { InputOTP } from './input-otp';
@@ -0,0 +1,31 @@
1
+ import * as React from 'react';
2
+ declare const InputOTPRoot: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "containerClassName" | "noScriptCSSFallback"> & {
3
+ value?: string | undefined;
4
+ onChange?: ((newValue: string) => unknown) | undefined;
5
+ maxLength: number;
6
+ textAlign?: "left" | "right" | "center" | undefined;
7
+ onComplete?: ((...args: any[]) => unknown) | undefined;
8
+ pushPasswordManagerStrategy?: "none" | "increase-width" | undefined;
9
+ containerClassName?: string | undefined;
10
+ noScriptCSSFallback?: string | null | undefined;
11
+ } & {
12
+ render: (props: import('input-otp').RenderProps) => React.ReactNode;
13
+ children?: undefined;
14
+ } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "containerClassName" | "noScriptCSSFallback"> & {
15
+ value?: string | undefined;
16
+ onChange?: ((newValue: string) => unknown) | undefined;
17
+ maxLength: number;
18
+ textAlign?: "left" | "right" | "center" | undefined;
19
+ onComplete?: ((...args: any[]) => unknown) | undefined;
20
+ pushPasswordManagerStrategy?: "none" | "increase-width" | undefined;
21
+ containerClassName?: string | undefined;
22
+ noScriptCSSFallback?: string | null | undefined;
23
+ } & {
24
+ render?: undefined;
25
+ children: React.ReactNode;
26
+ } & React.RefAttributes<HTMLInputElement>, "ref">) & React.RefAttributes<HTMLInputElement>>;
27
+ declare const InputOTPGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
28
+ declare const InputOTPSlot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
29
+ index: number;
30
+ } & React.RefAttributes<HTMLDivElement>>;
31
+ export { InputOTPRoot, InputOTPGroup, InputOTPSlot };
@@ -0,0 +1,32 @@
1
+ /// <reference types="react" />
2
+ export declare const InputOTP: {
3
+ Root: import('react').ForwardRefExoticComponent<(Omit<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "containerClassName" | "noScriptCSSFallback"> & {
4
+ value?: string | undefined;
5
+ onChange?: ((newValue: string) => unknown) | undefined;
6
+ maxLength: number;
7
+ textAlign?: "left" | "right" | "center" | undefined;
8
+ onComplete?: ((...args: any[]) => unknown) | undefined;
9
+ pushPasswordManagerStrategy?: "none" | "increase-width" | undefined;
10
+ containerClassName?: string | undefined;
11
+ noScriptCSSFallback?: string | null | undefined;
12
+ } & {
13
+ render: (props: import('input-otp').RenderProps) => import('react').ReactNode;
14
+ children?: undefined;
15
+ } & import('react').RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "containerClassName" | "noScriptCSSFallback"> & {
16
+ value?: string | undefined;
17
+ onChange?: ((newValue: string) => unknown) | undefined;
18
+ maxLength: number;
19
+ textAlign?: "left" | "right" | "center" | undefined;
20
+ onComplete?: ((...args: any[]) => unknown) | undefined;
21
+ pushPasswordManagerStrategy?: "none" | "increase-width" | undefined;
22
+ containerClassName?: string | undefined;
23
+ noScriptCSSFallback?: string | null | undefined;
24
+ } & {
25
+ render?: undefined;
26
+ children: import('react').ReactNode;
27
+ } & import('react').RefAttributes<HTMLInputElement>, "ref">) & import('react').RefAttributes<HTMLInputElement>>;
28
+ Group: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
29
+ Slot: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
30
+ index: number;
31
+ } & import('react').RefAttributes<HTMLDivElement>>;
32
+ };
@@ -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-primitives';
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-variants';
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';
@@ -11,6 +13,7 @@ import { CopyTextButton, CopyTextButtonProps } from './components/copy-text-butt
11
13
  import { Dialog, DialogProps, DialogContentProps } from './components/dialog';
12
14
  import { ToastProvider, Toaster, ToastFnProps, useToast } from './components/toast';
13
15
  import { IconButton, IconButtonProps, iconButtonVariants } from './components/icon-button';
16
+ import { InputOTP } from './components/input-otp';
14
17
  import { FileUploader, FileUploaderProps } from './components/file-uploader/ui';
15
18
  import { ImageUploader, ImageUploaderProps } from './components/image-uploader/ui';
16
19
  import { Spreadsheet } from './components/spreadsheet/ui';
@@ -31,7 +34,7 @@ import { CapLinkProvider } from './providers';
31
34
  import { IconTextButtonProps } from './shared/ui/icon-text-button';
32
35
  import { Badge, BadgeProps } from './shared/ui/badge';
33
36
  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, };
37
+ export { Tabs, Tooltip, InputOTP, Popover, Radio, Checkbox, Breadcrumb, Alert, alertVariants, ProgressBar, Button, buttonVariants, AlertBanner, Sheet, CopyTextButton, Dialog, ToastProvider, Toaster, useToast, IconButton, iconButtonVariants, };
35
38
  export type { AlertProps, ProgressBarProps, ButtonProps, AlertBannerProps, SheetProps, SheetContentProps, CopyTextButtonProps, DialogProps, DialogContentProps, ToastFnProps, IconButtonProps, };
36
39
  export declare const CapLink: {
37
40
  Spreadsheet: typeof Spreadsheet;
@@ -186,6 +189,37 @@ export declare const CapLink: {
186
189
  displayName: string;
187
190
  };
188
191
  IconTextButton: import('react').ForwardRefExoticComponent<IconTextButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
192
+ InputOTP: {
193
+ Root: import('react').ForwardRefExoticComponent<(Omit<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "containerClassName" | "noScriptCSSFallback"> & {
194
+ value?: string | undefined;
195
+ onChange?: ((newValue: string) => unknown) | undefined;
196
+ maxLength: number;
197
+ textAlign?: "left" | "right" | "center" | undefined;
198
+ onComplete?: ((...args: any[]) => unknown) | undefined;
199
+ pushPasswordManagerStrategy?: "none" | "increase-width" | undefined;
200
+ containerClassName?: string | undefined;
201
+ noScriptCSSFallback?: string | null | undefined;
202
+ } & {
203
+ render: (props: import('input-otp').RenderProps) => import('react').ReactNode;
204
+ children?: undefined;
205
+ } & import('react').RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "containerClassName" | "noScriptCSSFallback"> & {
206
+ value?: string | undefined;
207
+ onChange?: ((newValue: string) => unknown) | undefined;
208
+ maxLength: number;
209
+ textAlign?: "left" | "right" | "center" | undefined;
210
+ onComplete?: ((...args: any[]) => unknown) | undefined;
211
+ pushPasswordManagerStrategy?: "none" | "increase-width" | undefined;
212
+ containerClassName?: string | undefined;
213
+ noScriptCSSFallback?: string | null | undefined;
214
+ } & {
215
+ render?: undefined;
216
+ children: import('react').ReactNode;
217
+ } & import('react').RefAttributes<HTMLInputElement>, "ref">) & import('react').RefAttributes<HTMLInputElement>>;
218
+ Group: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
219
+ Slot: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
220
+ index: number;
221
+ } & import('react').RefAttributes<HTMLDivElement>>;
222
+ };
189
223
  };
190
224
  export { CapLinkProvider };
191
225
  export type { FileUploaderProps, ImageUploaderProps, MatrixTypes, SpreadsheetTypes, SearchNodeProps, FloatButtonProps, ContentSplitProps, SidebarProps, useGetAdjacentNodesProps, AdjacentNodesProps, ButtonChangeOrientationProps, FloatMenuProps, Connection, DagProps, DefaultNodeDataProps, Edge, EdgePosition, EdgeProps, Node, NodeProps, UseDagProps, Position, GetLayoutedElementsProps, BadgeProps, CustomPaginationProps, IconTextButtonProps, };