shadcn-extras 0.2.4 → 0.3.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/README.md CHANGED
@@ -53,7 +53,7 @@ The CLI automatically detects which package manager you're using based on lock f
53
53
 
54
54
  ## Available Components
55
55
 
56
- Motion Primitives offers a variety of beautiful and performant animated components, including:
56
+ Shadcn Extras offers a variety of beautiful and performant animated components, including:
57
57
 
58
58
  - **Animated UI Elements**: Accordion, Dialog, Text Effects, Carousels
59
59
  - **Interactive Animations**: Magnetic elements, Spotlights, Tilt effects
package/dist/index.js CHANGED
@@ -12,8 +12,8 @@ const node_fetch_1 = __importDefault(require("node-fetch"));
12
12
  const child_process_1 = require("child_process");
13
13
  // Read package.json for version info
14
14
  const packageJson = JSON.parse((0, fs_1.readFileSync)((0, path_1.join)(__dirname, '..', 'package.json'), 'utf8'));
15
- const MOTION_PRIMITIVES_REGISTRY_URL = 'https://raw.githubusercontent.com/nayanrdeveloper/shadcn-extras/dev/public/c/registry.json';
16
- const MOTION_PRIMITIVES_BASE_URL = 'https://raw.githubusercontent.com/nayanrdeveloper/shadcn-extras/dev/';
15
+ const SHADCN_EXTRAS_REGISTRY_URL = 'https://raw.githubusercontent.com/nayanrdeveloper/shadcn-extras/dev/public/c/registry.json';
16
+ const SHADCN_EXTRAS_BASE_URL = 'https://raw.githubusercontent.com/nayanrdeveloper/shadcn-extras/dev/';
17
17
  const TARGET_DIR = 'components/shadcn-extras';
18
18
  async function fetchRegistry(url) {
19
19
  const response = await (0, node_fetch_1.default)(url);
@@ -95,8 +95,8 @@ commander_1.program
95
95
  const spinner = (0, ora_1.default)(`Adding ${component}...`).start();
96
96
  try {
97
97
  // Fetch the shadcn-extras registry
98
- const motionPrimitivesRegistry = await fetchRegistry(MOTION_PRIMITIVES_REGISTRY_URL);
99
- const componentEntry = motionPrimitivesRegistry.items.find((item) => item.name === component);
98
+ const shacdcnExtrasRegistry = await fetchRegistry(SHADCN_EXTRAS_REGISTRY_URL);
99
+ const componentEntry = shacdcnExtrasRegistry.items.find((item) => item.name === component);
100
100
  if (!componentEntry) {
101
101
  spinner.fail(`Component "${component}" not found in shadcn-extras registry`);
102
102
  console.log('\nRun "npx shadcn-extras list" to see all available components');
@@ -108,7 +108,7 @@ commander_1.program
108
108
  // Process all files from registry.json
109
109
  for (const file of componentEntry.files) {
110
110
  const content = file.content ||
111
- (await fetchFile(`${MOTION_PRIMITIVES_BASE_URL}${file.path}`));
111
+ (await fetchFile(`${SHADCN_EXTRAS_BASE_URL}${file.path}`));
112
112
  const relPath = (0, path_1.normalize)(file.path);
113
113
  allFiles.push({ path: relPath, content });
114
114
  }
@@ -158,11 +158,11 @@ commander_1.program
158
158
  const spinner = (0, ora_1.default)('Fetching components...').start();
159
159
  try {
160
160
  // Fetch the shadcn-extras registry
161
- const motionPrimitivesRegistry = await fetchRegistry(MOTION_PRIMITIVES_REGISTRY_URL);
162
- spinner.succeed(`Found ${motionPrimitivesRegistry.items.length} components`);
161
+ const shacdcnExtrasRegistry = await fetchRegistry(SHADCN_EXTRAS_REGISTRY_URL);
162
+ spinner.succeed(`Found ${shacdcnExtrasRegistry.items.length} components`);
163
163
  console.log('\nAvailable components:');
164
164
  console.log('====================\n');
165
- motionPrimitivesRegistry.items.forEach((item) => {
165
+ shacdcnExtrasRegistry.items.forEach((item) => {
166
166
  console.log(`${item.name} - ${item.title}`);
167
167
  if (item.description) {
168
168
  console.log(` ${item.description}`);
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "shadcn-extras",
3
- "version": "0.2.4",
3
+ "version": "0.3.0",
4
4
  "description": "CLI to add shadcn-extras components to your app",
5
5
  "bin": {
6
6
  "shadcn-extras": "./dist/index.js"
7
7
  },
8
8
  "files": [
9
- "dist"
9
+ "dist",
10
+ "README.md",
11
+ "LICENSE.md"
10
12
  ],
11
13
  "type": "commonjs",
12
14
  "scripts": {
@@ -31,14 +33,22 @@
31
33
  "url": "https://github.com/nayanrdeveloper/shadcn-extras.git",
32
34
  "directory": "cli"
33
35
  },
36
+ "homepage": "https://nayanrdeveloper.github.io/shadcn-extras/",
37
+ "bugs": {
38
+ "url": "https://github.com/nayanrdeveloper/shadcn-extras/issues"
39
+ },
34
40
  "keywords": [
41
+ "shadcn",
42
+ "tailwindcss",
43
+ "motion",
35
44
  "animation",
36
45
  "components",
37
- "motion",
38
- "ui",
39
46
  "react",
40
47
  "cli"
41
48
  ],
42
- "author": "ibelick",
49
+ "publishConfig": {
50
+ "access": "public"
51
+ },
52
+ "author": "Nayan Radadiya",
43
53
  "license": "MIT"
44
54
  }