@tioelvis/next-template 2.2.7 → 2.2.9

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@tioelvis/next-template",
3
- "version": "2.2.7",
3
+ "version": "2.2.9",
4
4
  "description": "CLI to scaffold a Next.js + Tailwind project using shadcn/ui components",
5
5
  "type": "module",
6
6
  "bin": {
@@ -44,6 +44,8 @@
44
44
  "@radix-ui/react-label": "^2.1.7",
45
45
  "@radix-ui/react-menubar": "^1.1.15",
46
46
  "@radix-ui/react-navigation-menu": "^1.2.13",
47
+ "@radix-ui/react-popover": "^1.1.14",
48
+ "@radix-ui/react-progress": "^1.1.7",
47
49
  "@radix-ui/react-slot": "^1.2.3",
48
50
  "@tailwindcss/postcss": "^4.1.11",
49
51
  "@tanstack/react-query": "^5.83.0",
@@ -1,6 +1,6 @@
1
1
  {
2
- "dependencies": [""],
2
+ "dependencies": ["@radix-ui/react-popover"],
3
3
  "dev_dependence": [],
4
4
  "hooks": [],
5
- "supports": ["button"]
5
+ "supports": []
6
6
  }
@@ -0,0 +1,6 @@
1
+ {
2
+ "dependencies": ["@radix-ui/react-progress"],
3
+ "dev_dependence": [],
4
+ "hooks": [],
5
+ "supports": []
6
+ }
@@ -0,0 +1,30 @@
1
+ "use client";
2
+
3
+ import * as React from "react";
4
+ import * as ProgressPrimitive from "@radix-ui/react-progress";
5
+
6
+ import { cn } from "@/lib/utils";
7
+
8
+ function Progress({
9
+ className,
10
+ value,
11
+ ...props
12
+ }: React.ComponentProps<typeof ProgressPrimitive.Root>) {
13
+ return (
14
+ <ProgressPrimitive.Root
15
+ data-slot="progress"
16
+ className={cn(
17
+ "bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",
18
+ className
19
+ )}
20
+ {...props}>
21
+ <ProgressPrimitive.Indicator
22
+ data-slot="progress-indicator"
23
+ className="bg-primary h-full w-full flex-1 transition-all"
24
+ style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
25
+ />
26
+ </ProgressPrimitive.Root>
27
+ );
28
+ }
29
+
30
+ export { Progress };
package/src/constants.js CHANGED
@@ -65,6 +65,8 @@ const COMPONENTS = [
65
65
  "menubar",
66
66
  "navigation-menu",
67
67
  "pagination",
68
+ "popover",
69
+ "progress",
68
70
  ];
69
71
 
70
72
  export {