shadcn-ui-react 0.0.2 → 0.0.3
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/components.json +17 -0
- package/lib/index.cjs +7215 -0
- package/lib/index.css +1962 -0
- package/lib/{index.d.ts → index.d.cts} +12 -12
- package/package.json +26 -20
- package/postcss.config.js +6 -0
- package/tailwind.config.js +74 -0
- package/tsconfig.json +2 -2
- package/lib/index.js +0 -20115
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
6
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
7
7
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
@@ -51,7 +51,7 @@ declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<CheckboxPrimitive
|
|
|
51
51
|
|
|
52
52
|
declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
53
53
|
variant?: "default" | "destructive" | null | undefined;
|
|
54
|
-
} &
|
|
54
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
55
55
|
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
56
56
|
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
57
57
|
|
|
@@ -63,7 +63,7 @@ declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimi
|
|
|
63
63
|
|
|
64
64
|
declare const badgeVariants: (props?: ({
|
|
65
65
|
variant?: "default" | "destructive" | "secondary" | "outline" | null | undefined;
|
|
66
|
-
} &
|
|
66
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
67
67
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
68
68
|
}
|
|
69
69
|
declare function Badge({ className, variant, ...props }: BadgeProps): React$1.JSX.Element;
|
|
@@ -89,7 +89,7 @@ declare const BreadcrumbEllipsis: {
|
|
|
89
89
|
declare const buttonVariants: (props?: ({
|
|
90
90
|
variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
91
91
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
92
|
-
} &
|
|
92
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
93
93
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
94
94
|
asChild?: boolean;
|
|
95
95
|
}
|
|
@@ -388,7 +388,7 @@ interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
|
388
388
|
}
|
|
389
389
|
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
390
390
|
|
|
391
|
-
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?:
|
|
391
|
+
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
392
392
|
|
|
393
393
|
declare const MenubarMenu: {
|
|
394
394
|
(props: MenubarPrimitive.MenubarMenuProps & {
|
|
@@ -434,7 +434,7 @@ declare const Modal: React$1.FC<ModalProps>;
|
|
|
434
434
|
declare const NavigationMenu: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
435
435
|
declare const NavigationMenuList: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React$1.RefAttributes<HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
436
436
|
declare const NavigationMenuItem: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
437
|
-
declare const navigationMenuTriggerStyle: (props?:
|
|
437
|
+
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
438
438
|
declare const NavigationMenuTrigger: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
439
439
|
declare const NavigationMenuContent: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
440
440
|
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -530,7 +530,7 @@ declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
|
530
530
|
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
531
531
|
declare const sheetVariants: (props?: ({
|
|
532
532
|
side?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
533
|
-
} &
|
|
533
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
534
534
|
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
535
535
|
}
|
|
536
536
|
declare const SheetContent: React$1.ForwardRefExoticComponent<SheetContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -576,7 +576,7 @@ declare const ToastProvider: React$1.FC<ToastPrimitives.ToastProviderProps>;
|
|
|
576
576
|
declare const ToastViewport: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React$1.RefAttributes<HTMLOListElement>, "ref"> & React$1.RefAttributes<HTMLOListElement>>;
|
|
577
577
|
declare const Toast$1: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React$1.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
578
578
|
variant?: "default" | "destructive" | null | undefined;
|
|
579
|
-
} &
|
|
579
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLLIElement>>;
|
|
580
580
|
declare const ToastAction: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
581
581
|
declare const ToastClose: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
582
582
|
declare const ToastTitle: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -587,20 +587,20 @@ type ToastActionElement = React$1.ReactElement<typeof ToastAction>;
|
|
|
587
587
|
declare const ToggleGroup: React$1.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React$1.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
588
588
|
variant?: "default" | "outline" | null | undefined;
|
|
589
589
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
590
|
-
} &
|
|
590
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>) & React$1.RefAttributes<HTMLDivElement>>;
|
|
591
591
|
declare const ToggleGroupItem: React$1.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
592
592
|
variant?: "default" | "outline" | null | undefined;
|
|
593
593
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
594
|
-
} &
|
|
594
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
595
595
|
|
|
596
596
|
declare const toggleVariants: (props?: ({
|
|
597
597
|
variant?: "default" | "outline" | null | undefined;
|
|
598
598
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
599
|
-
} &
|
|
599
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
600
600
|
declare const Toggle: React$1.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
601
601
|
variant?: "default" | "outline" | null | undefined;
|
|
602
602
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
603
|
-
} &
|
|
603
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
604
604
|
|
|
605
605
|
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
606
606
|
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shadcn-ui-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Blencm",
|
|
6
6
|
"description": "React UI library for ShadCN",
|
|
7
|
+
"type": "module",
|
|
7
8
|
"main": "lib/index.js",
|
|
9
|
+
"module": "lib/index.js",
|
|
8
10
|
"types": "lib/index.d.ts",
|
|
9
11
|
"keywords": [
|
|
10
12
|
"react",
|
|
@@ -32,6 +34,29 @@
|
|
|
32
34
|
"devDependencies": {
|
|
33
35
|
"@eslint/config-array": "^0.19.2",
|
|
34
36
|
"@eslint/object-schema": "^2.1.6",
|
|
37
|
+
"@tailwindcss/postcss": "^4.0.8",
|
|
38
|
+
"@types/node": "^22.13.5",
|
|
39
|
+
"@types/react": "^19.0.10",
|
|
40
|
+
"@types/react-dom": "^19.0.4",
|
|
41
|
+
"autoprefixer": "^10.4.20",
|
|
42
|
+
"cross-env": "^7.0.3",
|
|
43
|
+
"react": "^19.0.0",
|
|
44
|
+
"react-day-picker": "^9.5.1",
|
|
45
|
+
"react-dom": "^19.0.0",
|
|
46
|
+
"react-test-renderer": "^19.0.0",
|
|
47
|
+
"rimraf": "^6.0.1",
|
|
48
|
+
"tailwindcss": "^4.0.8",
|
|
49
|
+
"tsup": "^8.3.6",
|
|
50
|
+
"typescript": "^5.7.3"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"react": "^17.0.0 || ^18.3.1 || ^19.0.0",
|
|
54
|
+
"react-dom": "^17.0.0 || ^18.3.1 || ^19.0.0"
|
|
55
|
+
},
|
|
56
|
+
"publishConfig": {
|
|
57
|
+
"access": "public"
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
35
60
|
"@hookform/resolvers": "^4.1.1",
|
|
36
61
|
"@radix-ui/react-accordion": "^1.2.3",
|
|
37
62
|
"@radix-ui/react-alert-dialog": "^1.1.6",
|
|
@@ -61,25 +86,6 @@
|
|
|
61
86
|
"@radix-ui/react-toggle": "^1.1.2",
|
|
62
87
|
"@radix-ui/react-toggle-group": "^1.1.2",
|
|
63
88
|
"@radix-ui/react-tooltip": "^1.1.8",
|
|
64
|
-
"@types/react": "^19.0.10",
|
|
65
|
-
"@types/react-dom": "^19.0.4",
|
|
66
|
-
"cross-env": "^7.0.3",
|
|
67
|
-
"react": "^19.0.0",
|
|
68
|
-
"react-day-picker": "^9.5.1",
|
|
69
|
-
"react-dom": "^19.0.0",
|
|
70
|
-
"react-test-renderer": "^19.0.0",
|
|
71
|
-
"rimraf": "^6.0.1",
|
|
72
|
-
"tsup": "^8.3.6",
|
|
73
|
-
"typescript": "^5.7.3"
|
|
74
|
-
},
|
|
75
|
-
"peerDependencies": {
|
|
76
|
-
"react": "^17.0.0 || ^18.3.1 || ^19.0.0",
|
|
77
|
-
"react-dom": "^17.0.0 || ^18.3.1 || ^19.0.0"
|
|
78
|
-
},
|
|
79
|
-
"publishConfig": {
|
|
80
|
-
"access": "public"
|
|
81
|
-
},
|
|
82
|
-
"dependencies": {
|
|
83
89
|
"class-variance-authority": "^0.7.1",
|
|
84
90
|
"clsx": "^2.1.1",
|
|
85
91
|
"cmdk": "^1.0.4",
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/** @type {import('tailwindcss').Config} */
|
|
2
|
+
module.exports = {
|
|
3
|
+
darkMode: ['class'],
|
|
4
|
+
content: [
|
|
5
|
+
'./src/**/*.{ts,tsx}'
|
|
6
|
+
],
|
|
7
|
+
prefix: '',
|
|
8
|
+
theme: {
|
|
9
|
+
container: {
|
|
10
|
+
center: true,
|
|
11
|
+
padding: '2rem',
|
|
12
|
+
screens: {
|
|
13
|
+
'2xl': '1400px'
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
extend: {
|
|
17
|
+
colors: {
|
|
18
|
+
border: 'hsl(var(--border))',
|
|
19
|
+
input: 'hsl(var(--input))',
|
|
20
|
+
ring: 'hsl(var(--ring))',
|
|
21
|
+
background: 'hsl(var(--background))',
|
|
22
|
+
foreground: 'hsl(var(--foreground))',
|
|
23
|
+
primary: {
|
|
24
|
+
DEFAULT: 'hsl(var(--primary))',
|
|
25
|
+
foreground: 'hsl(var(--primary-foreground))'
|
|
26
|
+
},
|
|
27
|
+
secondary: {
|
|
28
|
+
DEFAULT: 'hsl(var(--secondary))',
|
|
29
|
+
foreground: 'hsl(var(--secondary-foreground))'
|
|
30
|
+
},
|
|
31
|
+
destructive: {
|
|
32
|
+
DEFAULT: 'hsl(var(--destructive))',
|
|
33
|
+
foreground: 'hsl(var(--destructive-foreground))'
|
|
34
|
+
},
|
|
35
|
+
muted: {
|
|
36
|
+
DEFAULT: 'hsl(var(--muted))',
|
|
37
|
+
foreground: 'hsl(var(--muted-foreground))'
|
|
38
|
+
},
|
|
39
|
+
accent: {
|
|
40
|
+
DEFAULT: 'hsl(var(--accent))',
|
|
41
|
+
foreground: 'hsl(var(--accent-foreground))'
|
|
42
|
+
},
|
|
43
|
+
popover: {
|
|
44
|
+
DEFAULT: 'hsl(var(--popover))',
|
|
45
|
+
foreground: 'hsl(var(--popover-foreground))'
|
|
46
|
+
},
|
|
47
|
+
card: {
|
|
48
|
+
DEFAULT: 'hsl(var(--card))',
|
|
49
|
+
foreground: 'hsl(var(--card-foreground))'
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
borderRadius: {
|
|
53
|
+
lg: 'var(--radius)',
|
|
54
|
+
md: 'calc(var(--radius) - 2px)',
|
|
55
|
+
sm: 'calc(var(--radius) - 4px)'
|
|
56
|
+
},
|
|
57
|
+
keyframes: {
|
|
58
|
+
'accordion-down': {
|
|
59
|
+
from: { height: '0' },
|
|
60
|
+
to: { height: 'var(--radix-accordion-content-height)' }
|
|
61
|
+
},
|
|
62
|
+
'accordion-up': {
|
|
63
|
+
from: { height: 'var(--radix-accordion-content-height)' },
|
|
64
|
+
to: { height: '0' }
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
animation: {
|
|
68
|
+
'accordion-down': 'accordion-down 0.2s ease-out',
|
|
69
|
+
'accordion-up': 'accordion-up 0.2s ease-out'
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
plugins: [require('tailwindcss-animate')]
|
|
74
|
+
};
|
package/tsconfig.json
CHANGED
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"noFallthroughCasesInSwitch": true,
|
|
14
14
|
|
|
15
15
|
"declaration": true,
|
|
16
|
-
"moduleResolution": "
|
|
16
|
+
"moduleResolution": "bundler",
|
|
17
17
|
"resolveJsonModule": true,
|
|
18
18
|
"isolatedModules": true,
|
|
19
19
|
"noEmit": true,
|
|
20
20
|
"jsx": "react"
|
|
21
21
|
},
|
|
22
22
|
|
|
23
|
-
"include": ["src
|
|
23
|
+
"include": ["src"],
|
|
24
24
|
}
|