@bl33dz/fa814698dcde12f86a37ac31dd3aedf9 1.0.0 → 1.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.
@@ -0,0 +1,88 @@
1
+ module.exports = {
2
+ theme: {
3
+ extend: {
4
+ colors: {
5
+ background: "hsl(var(--background))",
6
+ foreground: "hsl(var(--foreground))",
7
+ card: {
8
+ DEFAULT: "hsl(var(--card))",
9
+ foreground: "hsl(var(--card-foreground))",
10
+ },
11
+ popover: {
12
+ DEFAULT: "hsl(var(--popover))",
13
+ foreground: "hsl(var(--popover-foreground))",
14
+ },
15
+ primary: {
16
+ DEFAULT: "hsl(var(--primary))",
17
+ foreground: "hsl(var(--primary-foreground))",
18
+ },
19
+ secondary: {
20
+ DEFAULT: "hsl(var(--secondary))",
21
+ foreground: "hsl(var(--secondary-foreground))",
22
+ },
23
+ muted: {
24
+ DEFAULT: "hsl(var(--muted))",
25
+ foreground: "hsl(var(--muted-foreground))",
26
+ },
27
+ accent: {
28
+ DEFAULT: "hsl(var(--accent))",
29
+ foreground: "hsl(var(--accent-foreground))",
30
+ },
31
+ destructive: {
32
+ DEFAULT: "hsl(var(--destructive))",
33
+ foreground: "hsl(var(--destructive-foreground))",
34
+ },
35
+ border: "hsl(var(--border))",
36
+ input: "hsl(var(--input))",
37
+ ring: "hsl(var(--ring))",
38
+
39
+ // semantic statuses
40
+ success: {
41
+ DEFAULT: "hsl(var(--success))",
42
+ foreground: "hsl(var(--success-foreground))",
43
+ },
44
+ warning: {
45
+ DEFAULT: "hsl(var(--warning))",
46
+ foreground: "hsl(var(--warning-foreground))",
47
+ },
48
+ error: {
49
+ DEFAULT: "hsl(var(--error))",
50
+ foreground: "hsl(var(--error-foreground))",
51
+ },
52
+ info: {
53
+ DEFAULT: "hsl(var(--info))",
54
+ foreground: "hsl(var(--info-foreground))",
55
+ },
56
+ },
57
+
58
+ borderRadius: {
59
+ lg: "var(--radius)",
60
+ md: "calc(var(--radius) - 2px)",
61
+ sm: "calc(var(--radius) - 4px)",
62
+ },
63
+
64
+ fontSize: {
65
+ h1: "var(--text-h1)",
66
+ h2: "var(--text-h2)",
67
+ h3: "var(--text-h3)",
68
+ h4: "var(--text-h4)",
69
+ h5: "var(--text-h5)",
70
+ h6: "var(--text-h6)",
71
+ bodylg: "var(--text-body-lg)",
72
+ body: "var(--text-body)",
73
+ bodysm: "var(--text-body-sm)",
74
+ bodyxs: "var(--text-body-xs)",
75
+ },
76
+
77
+ boxShadow: {
78
+ elevation0: "var(--elevation-0)",
79
+ elevation1: "var(--elevation-1)",
80
+ elevation2: "var(--elevation-2)",
81
+ elevation3: "var(--elevation-3)",
82
+ elevation4: "var(--elevation-4)",
83
+ elevation5: "var(--elevation-5)",
84
+ },
85
+ },
86
+ },
87
+ };
88
+
package/fix_imports.sh DELETED
@@ -1,38 +0,0 @@
1
- #!/bin/bash
2
-
3
- echo "🔧 Fixing imports for shadcn and custom UI..."
4
-
5
- FILES=$(find src -type f \( -name "*.vue" -o -name "*.ts" \))
6
-
7
- for file in $FILES; do
8
-
9
- # --- 1️⃣ Fix imports: components/ui → shadcn
10
- sed -i -E \
11
- -e "s|\.\./\.\./\.\./components/ui|@/shadcn|g" \
12
- -e "s|\.\./\.\./components/ui|@/shadcn|g" \
13
- -e "s|\.\./components/ui|@/shadcn|g" \
14
- -e "s|components/ui|@/shadcn|g" \
15
- "$file"
16
-
17
- # --- 2️⃣ Fix imports: src/components/ui → ui
18
- sed -i -E \
19
- -e "s|\.\./\.\./\.\./src/components/ui|@/ui|g" \
20
- -e "s|\.\./\.\./src/components/ui|@/ui|g" \
21
- -e "s|\.\./src/components/ui|@/ui|g" \
22
- -e "s|src/components/ui|@/ui|g" \
23
- "$file"
24
-
25
- # --- 3️⃣ Fix cn/utils → lib/utils
26
- sed -i -E \
27
- -e "s|\.\./\.\./\.\./lib/utils|@/lib/utils|g" \
28
- -e "s|\.\./\.\./lib/utils|@/lib/utils|g" \
29
- -e "s|\.\./lib/utils|@/lib/utils|g" \
30
- -e "s|lib/utils|@/lib/utils|g" \
31
- -e "s|\.\./@/lib/utils|@/lib/utils|g" \
32
- -e "s|../../..//lib/utils|@/lib/utils|g" \
33
- "$file"
34
-
35
- done
36
-
37
- echo "✨ Import rewrite completed!"
38
-
@@ -1,52 +0,0 @@
1
- // generate_index.cjs
2
- const fs = require("fs");
3
- const path = require("path");
4
-
5
- function pascalCase(str) {
6
- return str
7
- .replace(/[-_]/g, " ")
8
- .replace(/\s+./g, (c) => c.trim().toUpperCase())
9
- .replace(/^\w/, (c) => c.toUpperCase())
10
- .replace(/\s/g, "");
11
- }
12
-
13
- function walk(dir, list = []) {
14
- const files = fs.readdirSync(dir);
15
- for (const file of files) {
16
- const full = path.join(dir, file);
17
- const stat = fs.statSync(full);
18
-
19
- if (stat.isDirectory()) {
20
- walk(full, list);
21
- } else if (file.endsWith(".vue")) {
22
- list.push(full);
23
- }
24
- }
25
- return list;
26
- }
27
-
28
- const UI_DIR = path.resolve("src/ui");
29
- const OUTPUT = path.resolve("src/index.ts");
30
-
31
- // Collect all .vue files
32
- const files = walk(UI_DIR);
33
-
34
- // Build lines
35
- const exportLines = files.map((file) => {
36
- const rel = "./" + path.relative("src", file).replace(/\\/g, "/");
37
- const base = path.basename(file, ".vue");
38
- const name = pascalCase(base);
39
-
40
- return `export { default as ${name} } from '${rel}';`;
41
- });
42
-
43
- // Write result
44
- fs.writeFileSync(
45
- OUTPUT,
46
- "// Auto-generated — DO NOT EDIT MANUALLY\n" +
47
- exportLines.join("\n") +
48
- "\n"
49
- );
50
-
51
- console.log(`✔ index.ts generated with ${exportLines.length} components.`);
52
-
package/package.json.bak DELETED
@@ -1,42 +0,0 @@
1
- {
2
- "name": "@perisai/ui",
3
- "version": "1.0.2",
4
- "main": "dist/perisai-ui.umd.js",
5
- "module": "dist/perisai-ui.es.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1",
8
- "generate": "node generate_index.cjs",
9
- "build": "vite build"
10
- },
11
- "keywords": [],
12
- "author": "",
13
- "license": "ISC",
14
- "devDependencies": {
15
- "@vitejs/plugin-vue": "^6.0.2",
16
- "typescript": "^5.9.3",
17
- "vite": "^7.2.4",
18
- "vue": "^3.5.24"
19
- },
20
- "dependencies": {
21
- "class-variance-authority": "^0.7.1",
22
- "clsx": "^2.1.1",
23
- "csstype": "^3.2.3",
24
- "entities": "^4.5.0",
25
- "esbuild": "^0.25.12",
26
- "estree-walker": "^2.0.2",
27
- "fdir": "^6.5.0",
28
- "input-otp": "^1.4.2",
29
- "lucide-vue-next": "^0.554.0",
30
- "magic-string": "^0.30.21",
31
- "nanoid": "^3.3.11",
32
- "picocolors": "^1.1.1",
33
- "picomatch": "^4.0.3",
34
- "postcss": "^8.5.6",
35
- "rollup": "^4.53.3",
36
- "source-map-js": "^1.2.1",
37
- "tailwind-merge": "^3.4.0",
38
- "tinyglobby": "^0.2.15",
39
- "vaul-vue": "^0.4.1"
40
- },
41
- "description": ""
42
- }