@tioelvis/next-template 1.0.6 → 1.0.7

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/package.json CHANGED
@@ -1,57 +1,57 @@
1
- {
2
- "name": "@tioelvis/next-template",
3
- "version": "1.0.6",
4
- "description": "CLI to scaffold a Next.js + Tailwind project using shadcn/ui components",
5
- "type": "module",
6
- "bin": {
7
- "next-template": "./src/main.js"
8
- },
9
- "keywords": [
10
- "cli",
11
- "nextjs",
12
- "shadcn",
13
- "tailwind",
14
- "ui",
15
- "project-generator",
16
- "scaffolding"
17
- ],
18
- "author": {
19
- "name": "Ti0Elvis",
20
- "email": "elvis.veramijares@gmail.com"
21
- },
22
- "license": "MIT",
23
- "repository": {
24
- "type": "git",
25
- "url": "https://github.com/Ti0Elvis/next-template"
26
- },
27
- "dependencies": {
28
- "chalk": "^5.4.1",
29
- "prompts": "^2.4.2"
30
- },
31
- "devDependencies": {
32
- "@eslint/eslintrc": "^3.3.1",
33
- "@radix-ui/react-accordion": "^1.2.11",
34
- "@tailwindcss/postcss": "^4.1.11",
35
- "@tanstack/react-query": "^5.83.0",
36
- "@types/node": "^24.1.0",
37
- "@types/react": "^19.1.8",
38
- "@types/react-dom": "^19.1.6",
39
- "axios": "^1.11.0",
40
- "class-variance-authority": "^0.7.1",
41
- "clsx": "^2.1.1",
42
- "cookies-next": "^6.1.0",
43
- "date-fns": "^4.1.0",
44
- "eslint": "^9.32.0",
45
- "eslint-config-next": "^15.4.4",
46
- "lucide-react": "^0.532.0",
47
- "next": "^15.4.4",
48
- "next-auth": "^4.24.11",
49
- "next-themes": "^0.4.6",
50
- "react": "^19.1.0",
51
- "react-dom": "^19.1.0",
52
- "tailwind-merge": "^3.3.1",
53
- "tailwindcss": "^4.1.11",
54
- "tw-animate-css": "^1.3.6",
55
- "typescript": "^5.8.3"
56
- }
57
- }
1
+ {
2
+ "name": "@tioelvis/next-template",
3
+ "version": "1.0.7",
4
+ "description": "CLI to scaffold a Next.js + Tailwind project using shadcn/ui components",
5
+ "type": "module",
6
+ "bin": {
7
+ "next-template": "./src/main.js"
8
+ },
9
+ "keywords": [
10
+ "cli",
11
+ "nextjs",
12
+ "shadcn",
13
+ "tailwind",
14
+ "ui",
15
+ "project-generator",
16
+ "scaffolding"
17
+ ],
18
+ "author": {
19
+ "name": "Ti0Elvis",
20
+ "email": "elvis.veramijares@gmail.com"
21
+ },
22
+ "license": "MIT",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/Ti0Elvis/next-template"
26
+ },
27
+ "dependencies": {
28
+ "chalk": "^5.4.1",
29
+ "prompts": "^2.4.2"
30
+ },
31
+ "devDependencies": {
32
+ "@eslint/eslintrc": "^3.3.1",
33
+ "@radix-ui/react-accordion": "^1.2.11",
34
+ "@tailwindcss/postcss": "^4.1.11",
35
+ "@tanstack/react-query": "^5.83.0",
36
+ "@types/node": "^24.1.0",
37
+ "@types/react": "^19.1.8",
38
+ "@types/react-dom": "^19.1.6",
39
+ "axios": "^1.11.0",
40
+ "class-variance-authority": "^0.7.1",
41
+ "clsx": "^2.1.1",
42
+ "cookies-next": "^6.1.0",
43
+ "date-fns": "^4.1.0",
44
+ "eslint": "^9.32.0",
45
+ "eslint-config-next": "^15.4.4",
46
+ "lucide-react": "^0.532.0",
47
+ "next": "^15.4.4",
48
+ "next-auth": "^4.24.11",
49
+ "next-themes": "^0.4.6",
50
+ "react": "^19.1.0",
51
+ "react-dom": "^19.1.0",
52
+ "tailwind-merge": "^3.3.1",
53
+ "tailwindcss": "^4.1.11",
54
+ "tw-animate-css": "^1.3.6",
55
+ "typescript": "^5.8.3"
56
+ }
57
+ }
package/src/lib/utils.js CHANGED
@@ -38,7 +38,10 @@ export async function get_prompts() {
38
38
  name: "components",
39
39
  message: "Which components do you want to install?",
40
40
  instructions: false,
41
- choices: [{ title: "Accordion", value: "accordion" }],
41
+ choices: [
42
+ { title: "Accordion", value: "accordion" },
43
+ { title: "Alert", value: "alert" },
44
+ ],
42
45
  },
43
46
  {
44
47
  onCancel: () => {
package/src/main.js CHANGED
File without changes
@@ -0,0 +1 @@
1
+ []
@@ -0,0 +1,66 @@
1
+ import * as React from "react";
2
+ import { cva, type VariantProps } from "class-variance-authority";
3
+
4
+ import { cn } from "@/lib/utils";
5
+
6
+ const alertVariants = cva(
7
+ "relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
8
+ {
9
+ variants: {
10
+ variant: {
11
+ default: "bg-card text-card-foreground",
12
+ destructive:
13
+ "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",
14
+ },
15
+ },
16
+ defaultVariants: {
17
+ variant: "default",
18
+ },
19
+ }
20
+ );
21
+
22
+ function Alert({
23
+ className,
24
+ variant,
25
+ ...props
26
+ }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>) {
27
+ return (
28
+ <div
29
+ data-slot="alert"
30
+ role="alert"
31
+ className={cn(alertVariants({ variant }), className)}
32
+ {...props}
33
+ />
34
+ );
35
+ }
36
+
37
+ function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {
38
+ return (
39
+ <div
40
+ data-slot="alert-title"
41
+ className={cn(
42
+ "col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
43
+ className
44
+ )}
45
+ {...props}
46
+ />
47
+ );
48
+ }
49
+
50
+ function AlertDescription({
51
+ className,
52
+ ...props
53
+ }: React.ComponentProps<"div">) {
54
+ return (
55
+ <div
56
+ data-slot="alert-description"
57
+ className={cn(
58
+ "text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
59
+ className
60
+ )}
61
+ {...props}
62
+ />
63
+ );
64
+ }
65
+
66
+ export { Alert, AlertTitle, AlertDescription };