@szum-tech/design-system 2.0.3 → 2.1.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/chunk-463KEXY6.cjs +79 -0
- package/dist/chunk-4YZSPNLW.cjs +42 -0
- package/dist/chunk-5EN2HNFU.js +50 -0
- package/dist/chunk-5ENMEB5L.cjs +341 -0
- package/dist/chunk-AO4TMCYJ.js +88 -0
- package/dist/chunk-C5YRMEKV.js +319 -0
- package/dist/chunk-H2BWO3SI.cjs +0 -1
- package/dist/chunk-HFHADY43.js +36 -0
- package/dist/chunk-HIWVHD4V.js +56 -0
- package/dist/chunk-HXC3EALP.js +39 -0
- package/dist/chunk-IFBQNWVG.js +70 -0
- package/dist/chunk-INJBKPIE.js +88 -0
- package/dist/chunk-J264N6AZ.js +22 -0
- package/dist/chunk-J56UDYA3.js +70 -0
- package/dist/chunk-KPB3CBHE.cjs +40 -0
- package/dist/chunk-LI7IHIOM.cjs +30 -0
- package/dist/chunk-LND2W67K.cjs +17 -0
- package/dist/chunk-N7DXGCBJ.cjs +30 -0
- package/dist/chunk-PB3EGVTV.cjs +116 -0
- package/dist/chunk-QRSQCHBO.cjs +59 -0
- package/dist/chunk-RF5YR553.cjs +24 -0
- package/dist/chunk-TD2KDWNP.js +57 -0
- package/dist/chunk-TSN5DAKH.cjs +99 -0
- package/dist/chunk-US32J7DK.js +15 -0
- package/dist/chunk-UZBZFCWX.js +28 -0
- package/dist/chunk-V4POHGAW.cjs +60 -0
- package/dist/chunk-VFRIU5CV.cjs +16 -0
- package/dist/chunk-VQMM75HD.cjs +66 -0
- package/dist/chunk-WTVBTZ3P.js +29 -0
- package/dist/chunk-XGA2F5GG.cjs +72 -0
- package/dist/chunk-XPM62WMM.js +23 -0
- package/dist/chunk-YHU2OW52.js +14 -0
- package/dist/chunk-YXTTED5V.cjs +31 -0
- package/dist/chunk-ZD2QRAOX.js +0 -1
- package/dist/components/alert-dialog/index.cjs +43 -0
- package/dist/components/alert-dialog/index.d.cts +32 -0
- package/dist/components/alert-dialog/index.d.ts +32 -0
- package/dist/components/alert-dialog/index.js +2 -0
- package/dist/components/avatar/index.cjs +19 -0
- package/dist/components/avatar/index.d.cts +28 -0
- package/dist/components/avatar/index.d.ts +28 -0
- package/dist/components/avatar/index.js +2 -0
- package/dist/components/button/index.cjs +11 -0
- package/dist/components/button/index.d.cts +64 -0
- package/dist/components/button/index.d.ts +64 -0
- package/dist/components/button/index.js +2 -0
- package/dist/components/card/index.cjs +30 -0
- package/dist/components/card/index.d.cts +22 -0
- package/dist/components/card/index.d.ts +22 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/dialog/index.cjs +38 -0
- package/dist/components/dialog/index.d.cts +40 -0
- package/dist/components/dialog/index.d.ts +40 -0
- package/dist/components/dialog/index.js +1 -0
- package/dist/components/form/index.cjs +50 -0
- package/dist/components/form/index.d.cts +32 -0
- package/dist/components/form/index.d.ts +32 -0
- package/dist/components/form/index.js +17 -0
- package/dist/components/header/index.cjs +10 -0
- package/dist/components/header/index.d.cts +9 -0
- package/dist/components/header/index.d.ts +9 -0
- package/dist/components/header/index.js +1 -0
- package/dist/components/helper-text/index.cjs +10 -0
- package/dist/components/helper-text/index.d.cts +18 -0
- package/dist/components/helper-text/index.d.ts +18 -0
- package/dist/components/helper-text/index.js +1 -0
- package/dist/components/index.cjs +230 -0
- package/dist/components/index.d.cts +22 -0
- package/dist/components/index.d.ts +22 -0
- package/dist/components/index.js +17 -0
- package/dist/components/input/index.cjs +11 -0
- package/dist/components/input/index.d.cts +11 -0
- package/dist/components/input/index.d.ts +11 -0
- package/dist/components/input/index.js +2 -0
- package/dist/components/label/index.cjs +10 -0
- package/dist/components/label/index.d.cts +8 -0
- package/dist/components/label/index.d.ts +8 -0
- package/dist/components/label/index.js +1 -0
- package/dist/components/select/index.cjs +14 -0
- package/dist/components/select/index.d.cts +15 -0
- package/dist/components/select/index.d.ts +15 -0
- package/dist/components/select/index.js +1 -0
- package/dist/components/separator/index.cjs +11 -0
- package/dist/components/separator/index.d.cts +8 -0
- package/dist/components/separator/index.d.ts +8 -0
- package/dist/components/separator/index.js +2 -0
- package/dist/components/sheet/index.cjs +38 -0
- package/dist/components/sheet/index.d.cts +40 -0
- package/dist/components/sheet/index.d.ts +40 -0
- package/dist/components/sheet/index.js +1 -0
- package/dist/components/textarea/index.cjs +10 -0
- package/dist/components/textarea/index.d.cts +9 -0
- package/dist/components/textarea/index.d.ts +9 -0
- package/dist/components/textarea/index.js +1 -0
- package/dist/components/tooltip/index.cjs +14 -0
- package/dist/components/tooltip/index.d.cts +20 -0
- package/dist/components/tooltip/index.d.ts +20 -0
- package/dist/components/tooltip/index.js +1 -0
- package/dist/icons/index.cjs +22 -0
- package/dist/icons/index.js +1 -0
- package/dist/{utils.cjs → utils/index.cjs} +1 -1
- package/dist/utils/index.js +1 -0
- package/package.json +50 -38
- package/dist/chunk-EKHM64CK.js +0 -7290
- package/dist/chunk-G4TX2R77.cjs +0 -7613
- package/dist/icons.cjs +0 -1294
- package/dist/icons.js +0 -1
- package/dist/index.cjs +0 -906
- package/dist/index.d.cts +0 -285
- package/dist/index.d.ts +0 -285
- package/dist/index.js +0 -830
- package/dist/utils.js +0 -1
- package/dist/{icons.d.ts → icons/index.d.cts} +1 -1
- package/dist/{icons.d.cts → icons/index.d.ts} +1 -1
- /package/dist/{utils.d.cts → utils/index.d.cts} +0 -0
- /package/dist/{utils.d.ts → utils/index.d.ts} +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { Avatar, AvatarFallback, AvatarFallbackProps, AvatarImage, AvatarImageProps, AvatarProps, AvatarSizeType } from './avatar/index.js';
|
|
2
|
+
export { Button, ButtonColorType, ButtonProps, ButtonSizeType, ButtonVariantType } from './button/index.js';
|
|
3
|
+
export { Input, InputProps } from './input/index.js';
|
|
4
|
+
export { Tooltip, TooltipProps, TooltipProvider, TooltipProviderProps } from './tooltip/index.js';
|
|
5
|
+
export { Textarea, TextareaProps } from './textarea/index.js';
|
|
6
|
+
export { Select, SelectItem, SelectItemProps, SelectProps } from './select/index.js';
|
|
7
|
+
export { Card, CardContent, CardContentProps, CardDescription, CardDescriptionProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardProps, CardTitle, CardTitleProps } from './card/index.js';
|
|
8
|
+
export { Sheet, SheetClose, SheetCloseProps, SheetContent, SheetContentProps, SheetContentSide, SheetDescription, SheetDescriptionProps, SheetFooter, SheetFooterProps, SheetHeader, SheetHeaderProps, SheetProps, SheetTitle, SheetTitleProps, SheetTrigger, SheetTriggerProps } from './sheet/index.js';
|
|
9
|
+
export { Separator, SeparatorProps } from './separator/index.js';
|
|
10
|
+
export { Header, HeaderProps } from './header/index.js';
|
|
11
|
+
export { Dialog, DialogClose, DialogCloseProps, DialogContent, DialogContentProps, DialogContentWidth, DialogDescription, DialogDescriptionProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogProps, DialogTitle, DialogTitleProps, DialogTrigger, DialogTriggerProps } from './dialog/index.js';
|
|
12
|
+
export { Form, FormControl, FormControlProps, FormDescription, FormDescriptionProps, FormField, FormItem, FormItemProps, FormLabel, FormLabelProps, FormMessage, FormMessageProps, FormProps } from './form/index.js';
|
|
13
|
+
export { HelperText, HelperTextProps, HelperTextType } from './helper-text/index.js';
|
|
14
|
+
export { Label, LabelProps } from './label/index.js';
|
|
15
|
+
export { AlertDialog, AlertDialogAction, AlertDialogActionProps, AlertDialogCancel, AlertDialogCancelProps, AlertDialogContent, AlertDialogContentProps, AlertDialogDescription, AlertDialogDescriptionProps, AlertDialogFooter, AlertDialogFooterProps, AlertDialogHeader, AlertDialogHeaderProps, AlertDialogProps, AlertDialogTitle, AlertDialogTitleProps, AlertDialogTrigger, AlertDialogTriggerProps } from './alert-dialog/index.js';
|
|
16
|
+
import 'react/jsx-runtime';
|
|
17
|
+
import 'react';
|
|
18
|
+
import 'radix-ui';
|
|
19
|
+
import 'class-variance-authority';
|
|
20
|
+
import 'class-variance-authority/dist/types';
|
|
21
|
+
import 'react-hook-form';
|
|
22
|
+
import '@radix-ui/react-slot';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '../chunk-AO4TMCYJ.js';
|
|
2
|
+
export { Textarea } from '../chunk-UZBZFCWX.js';
|
|
3
|
+
export { Tooltip, TooltipProvider } from '../chunk-HXC3EALP.js';
|
|
4
|
+
export { Header } from '../chunk-YHU2OW52.js';
|
|
5
|
+
export { HelperText } from '../chunk-WTVBTZ3P.js';
|
|
6
|
+
export { Input } from '../chunk-IFBQNWVG.js';
|
|
7
|
+
export { Label } from '../chunk-US32J7DK.js';
|
|
8
|
+
export { Select, SelectItem } from '../chunk-HIWVHD4V.js';
|
|
9
|
+
export { Separator } from '../chunk-J264N6AZ.js';
|
|
10
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from '../chunk-TD2KDWNP.js';
|
|
11
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from '../chunk-5EN2HNFU.js';
|
|
12
|
+
export { Avatar, AvatarFallback, AvatarImage } from '../chunk-HFHADY43.js';
|
|
13
|
+
import '../chunk-ZD2QRAOX.js';
|
|
14
|
+
export { Button } from '../chunk-C5YRMEKV.js';
|
|
15
|
+
import '../chunk-INJBKPIE.js';
|
|
16
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '../chunk-XPM62WMM.js';
|
|
17
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from '../chunk-J56UDYA3.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
type InputProps = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
|
|
5
|
+
invalid?: boolean;
|
|
6
|
+
startIcon?: React.ReactElement | string;
|
|
7
|
+
endIcon?: React.ReactElement | string;
|
|
8
|
+
};
|
|
9
|
+
declare function Input({ invalid, startIcon, endIcon, disabled, className, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
10
|
+
|
|
11
|
+
export { Input, type InputProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
type InputProps = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
|
|
5
|
+
invalid?: boolean;
|
|
6
|
+
startIcon?: React.ReactElement | string;
|
|
7
|
+
endIcon?: React.ReactElement | string;
|
|
8
|
+
};
|
|
9
|
+
declare function Input({ invalid, startIcon, endIcon, disabled, className, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
10
|
+
|
|
11
|
+
export { Input, type InputProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Label as Label$1 } from 'radix-ui';
|
|
4
|
+
|
|
5
|
+
type LabelProps = React.ComponentProps<typeof Label$1.Root>;
|
|
6
|
+
declare function Label({ className, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { Label, type LabelProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Label as Label$1 } from 'radix-ui';
|
|
4
|
+
|
|
5
|
+
type LabelProps = React.ComponentProps<typeof Label$1.Root>;
|
|
6
|
+
declare function Label({ className, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { Label, type LabelProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Label } from '../../chunk-US32J7DK.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkQRSQCHBO_cjs = require('../../chunk-QRSQCHBO.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "Select", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkQRSQCHBO_cjs.Select; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "SelectItem", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkQRSQCHBO_cjs.SelectItem; }
|
|
14
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Select as Select$1 } from 'radix-ui';
|
|
4
|
+
|
|
5
|
+
type SelectProps = Select$1.SelectProps & {
|
|
6
|
+
ref?: React.ComponentProps<typeof Select$1.Trigger>["ref"];
|
|
7
|
+
placeholder?: React.ReactNode;
|
|
8
|
+
invalid?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare function Select({ children, placeholder, invalid, ref, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
11
|
+
|
|
12
|
+
type SelectItemProps = React.ComponentProps<typeof Select$1.Item>;
|
|
13
|
+
declare function SelectItem({ children, ...props }: SelectItemProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
|
|
15
|
+
export { Select, SelectItem, type SelectItemProps, type SelectProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Select as Select$1 } from 'radix-ui';
|
|
4
|
+
|
|
5
|
+
type SelectProps = Select$1.SelectProps & {
|
|
6
|
+
ref?: React.ComponentProps<typeof Select$1.Trigger>["ref"];
|
|
7
|
+
placeholder?: React.ReactNode;
|
|
8
|
+
invalid?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare function Select({ children, placeholder, invalid, ref, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
11
|
+
|
|
12
|
+
type SelectItemProps = React.ComponentProps<typeof Select$1.Item>;
|
|
13
|
+
declare function SelectItem({ children, ...props }: SelectItemProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
|
|
15
|
+
export { Select, SelectItem, type SelectItemProps, type SelectProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Select, SelectItem } from '../../chunk-HIWVHD4V.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Separator as Separator$1 } from 'radix-ui';
|
|
4
|
+
|
|
5
|
+
type SeparatorProps = React.ComponentProps<typeof Separator$1.Root>;
|
|
6
|
+
declare function Separator({ className, orientation, decorative, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { Separator, type SeparatorProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Separator as Separator$1 } from 'radix-ui';
|
|
4
|
+
|
|
5
|
+
type SeparatorProps = React.ComponentProps<typeof Separator$1.Root>;
|
|
6
|
+
declare function Separator({ className, orientation, decorative, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { Separator, type SeparatorProps };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkVQMM75HD_cjs = require('../../chunk-VQMM75HD.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "Sheet", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkVQMM75HD_cjs.Sheet; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "SheetClose", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkVQMM75HD_cjs.SheetClose; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "SheetContent", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkVQMM75HD_cjs.SheetContent; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "SheetDescription", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkVQMM75HD_cjs.SheetDescription; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "SheetFooter", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkVQMM75HD_cjs.SheetFooter; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "SheetHeader", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkVQMM75HD_cjs.SheetHeader; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "SheetTitle", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkVQMM75HD_cjs.SheetTitle; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "SheetTrigger", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkVQMM75HD_cjs.SheetTrigger; }
|
|
38
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Dialog } from 'radix-ui';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
6
|
+
|
|
7
|
+
type SheetProps = Dialog.DialogProps;
|
|
8
|
+
declare const Sheet: React.FC<Dialog.DialogProps>;
|
|
9
|
+
|
|
10
|
+
type SheetTriggerProps = Dialog.DialogTriggerProps;
|
|
11
|
+
declare const SheetTrigger: React.ForwardRefExoticComponent<Dialog.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
|
|
13
|
+
type SheetCloseProps = Dialog.DialogCloseProps;
|
|
14
|
+
declare const SheetClose: React.ForwardRefExoticComponent<Dialog.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
|
|
16
|
+
type SheetContentProps = React.ComponentProps<typeof Dialog.Content> & {
|
|
17
|
+
side?: SheetContentSide;
|
|
18
|
+
};
|
|
19
|
+
declare function SheetContent({ side, className, children, ...props }: SheetContentProps): react_jsx_runtime.JSX.Element;
|
|
20
|
+
|
|
21
|
+
declare const sheetContentStyles: (props?: ({
|
|
22
|
+
side?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
23
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
24
|
+
|
|
25
|
+
type SheetContentCvaProps = VariantProps<typeof sheetContentStyles>;
|
|
26
|
+
type SheetContentSide = NonNullable<SheetContentCvaProps["side"]>;
|
|
27
|
+
|
|
28
|
+
type SheetHeaderProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
29
|
+
declare function SheetHeader({ className, ...props }: SheetHeaderProps): react_jsx_runtime.JSX.Element;
|
|
30
|
+
|
|
31
|
+
type SheetFooterProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
32
|
+
declare function SheetFooter({ className, ...props }: SheetFooterProps): react_jsx_runtime.JSX.Element;
|
|
33
|
+
|
|
34
|
+
type SheetTitleProps = React.ComponentProps<typeof Dialog.Title>;
|
|
35
|
+
declare function SheetTitle({ className, ...props }: SheetTitleProps): react_jsx_runtime.JSX.Element;
|
|
36
|
+
|
|
37
|
+
type SheetDescriptionProps = React.ComponentProps<typeof Dialog.Description>;
|
|
38
|
+
declare function SheetDescription({ className, ...props }: SheetDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
export { Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, type SheetContentSide, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, type SheetProps, SheetTitle, type SheetTitleProps, SheetTrigger, type SheetTriggerProps };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Dialog } from 'radix-ui';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
6
|
+
|
|
7
|
+
type SheetProps = Dialog.DialogProps;
|
|
8
|
+
declare const Sheet: React.FC<Dialog.DialogProps>;
|
|
9
|
+
|
|
10
|
+
type SheetTriggerProps = Dialog.DialogTriggerProps;
|
|
11
|
+
declare const SheetTrigger: React.ForwardRefExoticComponent<Dialog.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
|
|
13
|
+
type SheetCloseProps = Dialog.DialogCloseProps;
|
|
14
|
+
declare const SheetClose: React.ForwardRefExoticComponent<Dialog.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
|
|
16
|
+
type SheetContentProps = React.ComponentProps<typeof Dialog.Content> & {
|
|
17
|
+
side?: SheetContentSide;
|
|
18
|
+
};
|
|
19
|
+
declare function SheetContent({ side, className, children, ...props }: SheetContentProps): react_jsx_runtime.JSX.Element;
|
|
20
|
+
|
|
21
|
+
declare const sheetContentStyles: (props?: ({
|
|
22
|
+
side?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
23
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
24
|
+
|
|
25
|
+
type SheetContentCvaProps = VariantProps<typeof sheetContentStyles>;
|
|
26
|
+
type SheetContentSide = NonNullable<SheetContentCvaProps["side"]>;
|
|
27
|
+
|
|
28
|
+
type SheetHeaderProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
29
|
+
declare function SheetHeader({ className, ...props }: SheetHeaderProps): react_jsx_runtime.JSX.Element;
|
|
30
|
+
|
|
31
|
+
type SheetFooterProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
32
|
+
declare function SheetFooter({ className, ...props }: SheetFooterProps): react_jsx_runtime.JSX.Element;
|
|
33
|
+
|
|
34
|
+
type SheetTitleProps = React.ComponentProps<typeof Dialog.Title>;
|
|
35
|
+
declare function SheetTitle({ className, ...props }: SheetTitleProps): react_jsx_runtime.JSX.Element;
|
|
36
|
+
|
|
37
|
+
type SheetDescriptionProps = React.ComponentProps<typeof Dialog.Description>;
|
|
38
|
+
declare function SheetDescription({ className, ...props }: SheetDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
export { Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, type SheetContentSide, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, type SheetProps, SheetTitle, type SheetTitleProps, SheetTrigger, type SheetTriggerProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from '../../chunk-TD2KDWNP.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
type TextareaProps = React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> & {
|
|
5
|
+
invalid?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare function Textarea({ invalid, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { Textarea, type TextareaProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
type TextareaProps = React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> & {
|
|
5
|
+
invalid?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare function Textarea({ invalid, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { Textarea, type TextareaProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Textarea } from '../../chunk-UZBZFCWX.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk4YZSPNLW_cjs = require('../../chunk-4YZSPNLW.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "Tooltip", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunk4YZSPNLW_cjs.Tooltip; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "TooltipProvider", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunk4YZSPNLW_cjs.TooltipProvider; }
|
|
14
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Tooltip as Tooltip$1 } from 'radix-ui';
|
|
4
|
+
|
|
5
|
+
type TooltipProps = Tooltip$1.TooltipContentProps & {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
defaultOpen?: boolean;
|
|
8
|
+
open?: boolean;
|
|
9
|
+
onOpenChange?: (open: boolean) => void;
|
|
10
|
+
content?: React.ReactNode;
|
|
11
|
+
collisionPadding?: number;
|
|
12
|
+
};
|
|
13
|
+
declare function Tooltip({ defaultOpen, content, open, onOpenChange, children, side, align, collisionPadding, sideOffset, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
|
|
15
|
+
type TooltipProviderProps = {
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
};
|
|
18
|
+
declare function TooltipProvider({ children }: TooltipProviderProps): react_jsx_runtime.JSX.Element;
|
|
19
|
+
|
|
20
|
+
export { Tooltip, type TooltipProps, TooltipProvider, type TooltipProviderProps };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Tooltip as Tooltip$1 } from 'radix-ui';
|
|
4
|
+
|
|
5
|
+
type TooltipProps = Tooltip$1.TooltipContentProps & {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
defaultOpen?: boolean;
|
|
8
|
+
open?: boolean;
|
|
9
|
+
onOpenChange?: (open: boolean) => void;
|
|
10
|
+
content?: React.ReactNode;
|
|
11
|
+
collisionPadding?: number;
|
|
12
|
+
};
|
|
13
|
+
declare function Tooltip({ defaultOpen, content, open, onOpenChange, children, side, align, collisionPadding, sideOffset, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
|
|
15
|
+
type TooltipProviderProps = {
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
};
|
|
18
|
+
declare function TooltipProvider({ children }: TooltipProviderProps): react_jsx_runtime.JSX.Element;
|
|
19
|
+
|
|
20
|
+
export { Tooltip, type TooltipProps, TooltipProvider, type TooltipProviderProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tooltip, TooltipProvider } from '../../chunk-HXC3EALP.js';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkTSN5DAKH_cjs = require('../chunk-TSN5DAKH.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "Auth0LogoIcon", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkTSN5DAKH_cjs.Auth0LogoIcon; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "GoogleLogoIcon", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkTSN5DAKH_cjs.GoogleLogoIcon; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "LoadingIcon", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkTSN5DAKH_cjs.LoadingIcon; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "XLogoIcon", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkTSN5DAKH_cjs.XLogoIcon; }
|
|
22
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Auth0LogoIcon, GoogleLogoIcon, LoadingIcon, XLogoIcon } from '../chunk-INJBKPIE.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cn } from '../chunk-ZD2QRAOX.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@szum-tech/design-system",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Szum-Tech design system with tailwindcss support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"szum-tech",
|
|
@@ -30,32 +30,42 @@
|
|
|
30
30
|
"exports": {
|
|
31
31
|
".": {
|
|
32
32
|
"import": {
|
|
33
|
-
"types": "./dist/index.d.ts",
|
|
34
|
-
"import": "./dist/index.js"
|
|
33
|
+
"types": "./dist/components/index.d.ts",
|
|
34
|
+
"import": "./dist/components/index.js"
|
|
35
35
|
},
|
|
36
36
|
"require": {
|
|
37
|
-
"types": "./dist/index.d.cts",
|
|
38
|
-
"require": "./dist/index.cjs"
|
|
37
|
+
"types": "./dist/components/index.d.cts",
|
|
38
|
+
"require": "./dist/components/index.cjs"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"./componnents/*": {
|
|
42
|
+
"import": {
|
|
43
|
+
"types": "./dist/components/*/index.d.ts",
|
|
44
|
+
"import": "./dist/components/*/index.js"
|
|
45
|
+
},
|
|
46
|
+
"require": {
|
|
47
|
+
"types": "./dist/components/*/index.d.cts",
|
|
48
|
+
"require": "./dist/components/*/index.cjs"
|
|
39
49
|
}
|
|
40
50
|
},
|
|
41
51
|
"./icons": {
|
|
42
52
|
"import": {
|
|
43
|
-
"types": "./dist/icons.d.ts",
|
|
44
|
-
"import": "./dist/icons.js"
|
|
53
|
+
"types": "./dist/icons/index.d.ts",
|
|
54
|
+
"import": "./dist/icons/index.js"
|
|
45
55
|
},
|
|
46
56
|
"require": {
|
|
47
|
-
"types": "./dist/icons.d.cts",
|
|
48
|
-
"require": "./dist/icons.cjs"
|
|
57
|
+
"types": "./dist/icons/index.d.cts",
|
|
58
|
+
"require": "./dist/icons/index.cjs"
|
|
49
59
|
}
|
|
50
60
|
},
|
|
51
61
|
"./utils": {
|
|
52
62
|
"import": {
|
|
53
|
-
"types": "./dist/utils.d.ts",
|
|
54
|
-
"import": "./dist/utils.js"
|
|
63
|
+
"types": "./dist/utils/index.d.ts",
|
|
64
|
+
"import": "./dist/utils/index.js"
|
|
55
65
|
},
|
|
56
66
|
"require": {
|
|
57
|
-
"types": "./dist/utils.d.cts",
|
|
58
|
-
"require": "./dist/utils.cjs"
|
|
67
|
+
"types": "./dist/utils/index.d.cts",
|
|
68
|
+
"require": "./dist/utils/index.cjs"
|
|
59
69
|
}
|
|
60
70
|
},
|
|
61
71
|
"./tailwind/*.css": "./tailwind/*.css",
|
|
@@ -82,11 +92,14 @@
|
|
|
82
92
|
"test": "vitest",
|
|
83
93
|
"test:ci": "CI=true vitest",
|
|
84
94
|
"test:coverage": "vitest --coverage",
|
|
95
|
+
"test:storybook": "vitest --project=storybook --coverage",
|
|
85
96
|
"test:ui": "vitest --ui",
|
|
97
|
+
"test:unit": "vitest --project=unit",
|
|
86
98
|
"test:watch": "vitest --watch",
|
|
87
99
|
"type-check": "tsc --noEmit"
|
|
88
100
|
},
|
|
89
101
|
"dependencies": {
|
|
102
|
+
"@radix-ui/react-icons": "^1.3.2",
|
|
90
103
|
"class-variance-authority": "^0.7.1",
|
|
91
104
|
"clsx": "^2.1.1",
|
|
92
105
|
"radix-ui": "^1.1.3",
|
|
@@ -94,48 +107,47 @@
|
|
|
94
107
|
"tailwindcss-animate": "^1.0.7"
|
|
95
108
|
},
|
|
96
109
|
"devDependencies": {
|
|
97
|
-
"@hookform/resolvers": "^4.1.
|
|
98
|
-
"@
|
|
99
|
-
"@storybook/addon-
|
|
100
|
-
"@storybook/addon-
|
|
101
|
-
"@storybook/
|
|
102
|
-
"@storybook/
|
|
103
|
-
"@storybook/
|
|
104
|
-
"@
|
|
105
|
-
"@
|
|
106
|
-
"@szum-tech/
|
|
107
|
-
"@
|
|
108
|
-
"@szum-tech/semantic-release-config": "^2.2.2",
|
|
109
|
-
"@tailwindcss/postcss": "^4.0.9",
|
|
110
|
+
"@hookform/resolvers": "^4.1.3",
|
|
111
|
+
"@storybook/addon-essentials": "^8.6.9",
|
|
112
|
+
"@storybook/addon-links": "^8.6.9",
|
|
113
|
+
"@storybook/experimental-addon-test": "^8.6.9",
|
|
114
|
+
"@storybook/react": "^8.6.9",
|
|
115
|
+
"@storybook/react-vite": "^8.6.9",
|
|
116
|
+
"@storybook/theming": "^8.6.9",
|
|
117
|
+
"@szum-tech/eslint-config": "^2.1.6",
|
|
118
|
+
"@szum-tech/prettier-config": "^1.6.1",
|
|
119
|
+
"@szum-tech/semantic-release-config": "^2.3.0",
|
|
120
|
+
"@tailwindcss/postcss": "^4.0.16",
|
|
110
121
|
"@testing-library/dom": "^10.4.0",
|
|
111
122
|
"@testing-library/jest-dom": "^6.6.3",
|
|
112
123
|
"@testing-library/react": "^16.2.0",
|
|
113
124
|
"@testing-library/user-event": "^14.6.1",
|
|
114
|
-
"@types/node": "^22.13.
|
|
115
|
-
"@types/react": "^19.0.
|
|
125
|
+
"@types/node": "^22.13.13",
|
|
126
|
+
"@types/react": "^19.0.12",
|
|
116
127
|
"@types/react-dom": "^19.0.4",
|
|
117
128
|
"@vitejs/plugin-react": "^4.3.4",
|
|
118
|
-
"@vitest/
|
|
119
|
-
"@vitest/
|
|
129
|
+
"@vitest/browser": "^3.0.9",
|
|
130
|
+
"@vitest/coverage-v8": "^3.0.9",
|
|
131
|
+
"@vitest/ui": "^3.0.9",
|
|
120
132
|
"cpy-cli": "^5.0.0",
|
|
121
|
-
"eslint": "^9.
|
|
122
|
-
"
|
|
133
|
+
"eslint": "^9.23.0",
|
|
134
|
+
"playwright": "^1.51.1",
|
|
123
135
|
"postcss": "^8.5.3",
|
|
124
|
-
"prettier": "^3.5.
|
|
136
|
+
"prettier": "^3.5.3",
|
|
125
137
|
"react": "^19.0.0",
|
|
126
138
|
"react-docgen-typescript": "^2.2.2",
|
|
127
139
|
"react-dom": "^19.0.0",
|
|
128
140
|
"react-hook-form": "^7.54.2",
|
|
129
141
|
"semantic-release": "^24.2.3",
|
|
130
142
|
"serve": "^14.2.4",
|
|
131
|
-
"storybook": "^8.
|
|
143
|
+
"storybook": "^8.6.9",
|
|
132
144
|
"storybook-dark-mode": "^4.0.2",
|
|
133
|
-
"tailwindcss": "^4.0.
|
|
145
|
+
"tailwindcss": "^4.0.16",
|
|
134
146
|
"tsup": "^8.4.0",
|
|
135
|
-
"typescript": "^5.
|
|
136
|
-
"vite": "^6.2.
|
|
147
|
+
"typescript": "^5.8.2",
|
|
148
|
+
"vite": "^6.2.3",
|
|
137
149
|
"vite-tsconfig-paths": "^5.1.4",
|
|
138
|
-
"vitest": "^3.0.
|
|
150
|
+
"vitest": "^3.0.9",
|
|
139
151
|
"zod": "^3.24.2"
|
|
140
152
|
},
|
|
141
153
|
"peerDependencies": {
|