@heroui-pro/react 1.0.0-alpha.0 → 1.0.0-alpha.10

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/LICENSE CHANGED
@@ -1 +1,39 @@
1
- TODO
1
+ HeroUI Pro License Agreement
2
+
3
+ 1. Ownership
4
+ All code and related assets included in this package remain the exclusive property of NextUI Inc.
5
+ Licensed users are granted the right to integrate this package into their own software projects. All resulting applications, including their design, logic, and functionality, are the exclusive property of the license holder.
6
+
7
+ The underlying HeroUI Pro code and related assets remain the intellectual property of NextUI Inc. Using HeroUI Pro in a project does not transfer ownership of this code or grant any right to extract, resell, or distribute it outside the licensed project.
8
+
9
+ 2. License Grant
10
+ A valid and active HeroUI Pro license is required for any use of this software.
11
+ Each individual actively working with or accessing the HeroUI Pro codebase must have a valid license.
12
+ After project development is complete, only one active license is required to continue receiving updates or installing new versions of HeroUI Pro.
13
+
14
+ The license permits building, publishing, and distributing an unlimited number of commercial, internal, or open applications, provided that the license is active at the time of development and distribution.
15
+
16
+ 3. Restrictions
17
+ You may not:
18
+
19
+ Share, publish, redistribute, or sub-license the package or any part of its source code.
20
+
21
+ Use the package, in whole or in part, to create or distribute a tool, library, or service that competes with HeroUI Pro or any related NextUI Inc. products.
22
+
23
+ Reverse-engineer, decompile, or modify the package for redistribution.
24
+
25
+ Expose or share CI/CD tokens, authentication credentials, or license keys publicly or with unauthorized parties.
26
+
27
+ 4. Term and Termination
28
+ This license remains valid while your subscription or seat license is active and in compliance with these terms.
29
+ NextUI Inc. may terminate the license immediately if these terms are violated. Upon termination, you must cease using and distributing the software.
30
+
31
+ 5. Warranty Disclaimer
32
+ The software is provided "as is," without warranties of any kind, whether express or implied, including but not limited to fitness for a particular purpose or non-infringement.
33
+ In no event shall NextUI Inc. or its contributors be liable for any damages or losses arising from the use or inability to use this software.
34
+
35
+ 6. General Terms
36
+ By installing or using HeroUI Pro, you acknowledge that you have read, understood, and agreed to these terms.
37
+ For licensing inquiries or additional permissions, contact support@heroui.pro.
38
+
39
+ Copyright (c) 2026 NextUI Inc. All rights reserved.
package/README.md CHANGED
@@ -1 +1,92 @@
1
- ## HeroUI React
1
+ <div align="center">
2
+ <p align="center">
3
+ <a href="https://heroui.pro/"><img alt="HeroUI Pro" src="https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/heroui-pro@2x.jpg"></a>
4
+ <a href="https://heroui.pro/" target="_blank">
5
+ <h1 align="center">HeroUI React Pro</h1>
6
+ <span>Premium composable components that extend HeroUI — built for production web apps</span>
7
+ </a>
8
+ </p>
9
+ </div>
10
+
11
+ <br />
12
+
13
+ HeroUI Pro is a premium extension of [HeroUI OSS](https://heroui.com) — production-ready, fully composable components that follow the same patterns you already know from HeroUI OSS. New components, themes, and fixes ship regularly as package updates.
14
+
15
+ ## What’s included
16
+
17
+ - **46+ React components** with **390+ examples** — Command Palette, Data Grid, Sheet, Sidebar, Emoji Picker, Charts, File Tree, KPI cards, and more — each with full documentation
18
+ - **React Native** — The same design system with a similar API across iOS and Android ([`heroui-native-pro`](https://www.npmjs.com/package/heroui-native-pro))
19
+ - **Templates** — Production-ready dashboards, mail, chat, and finance apps
20
+ - **Premium themes** — Brutalism, Glass, and more. Switch aesthetics in one import
21
+ - **Theme Builder** — Create custom themes visually, preview live in the docs, and export the CSS
22
+ - **Figma** — Design files for all Pro components + a theme variables sync plugin
23
+ - **AI tooling** — MCP server, agent skills, and design taste for AI-assisted development
24
+ - **Priority support** — Fast support, prioritized issues, private Discord, and a VIP badge
25
+ - **Teams & Enterprise** — Shared themes, centralized billing, SSO, and dedicated support
26
+
27
+ ## Requirements
28
+
29
+ - [React 19+](https://react.dev/)
30
+ - [Tailwind CSS v4](https://tailwindcss.com/docs/installation/framework-guides)
31
+ - [HeroUI OSS](https://heroui.com/docs/react/getting-started/quick-start) (`@heroui/react` + `@heroui/styles`)
32
+
33
+ If you have not set up HeroUI OSS yet, follow the [HeroUI quick start](https://heroui.com/docs/react/getting-started/quick-start) first.
34
+
35
+ ## Installation
36
+
37
+ ### 1. Log in
38
+
39
+ ```sh
40
+ npx heroui-pro login
41
+ ```
42
+
43
+ You can use `bunx heroui-pro login` or `pnpm heroui-pro login` instead.
44
+
45
+ ### 2. Install
46
+
47
+ ```sh
48
+ npx heroui-pro install
49
+ ```
50
+
51
+ The CLI adds **`@heroui-pro/react`** (and **`heroui-pro`** as needed), downloads Pro artifacts, installs missing peer dependencies, and can configure **pnpm** / **bun** so postinstall scripts stay trusted.
52
+
53
+ Run `npx heroui-pro` with no arguments for the interactive menu.
54
+
55
+ ### 3. Import styles
56
+
57
+ In your main CSS (e.g. `globals.css`), keep this order:
58
+
59
+ ```css
60
+ @import 'tailwindcss';
61
+ @import '@heroui/styles';
62
+ @import '@heroui-pro/react/css';
63
+ ```
64
+
65
+ ### 4. CI / automated installs
66
+
67
+ For GitHub Actions, Vercel, Netlify, and similar, set **`HEROUI_AUTH_TOKEN`** from a CI/CD token in the [HeroUI dashboard](https://heroui.pro/dashboard). With that env var set, `npm install` (or your PM’s equivalent) can download Pro artifacts without interactive login.
68
+
69
+ See the full guide: [Installation](https://heroui.pro/docs/react/getting-started/installation).
70
+
71
+ ## CLI (quick reference)
72
+
73
+ | Command | Description |
74
+ | ------------------------------ | ----------------------------------------------- |
75
+ | `heroui-pro login` | Log in with GitHub |
76
+ | `heroui-pro install` | Add Pro packages, peers, and PM config |
77
+ | `heroui-pro install --yes` | Non-interactive install |
78
+ | `heroui-pro install --dry-run` | Preview installs |
79
+ | `heroui-pro status` | Login and installed products |
80
+ | `heroui-pro logout` | Sign out |
81
+ | `heroui-pro docs` | Open [heroui.pro/docs](https://heroui.pro/docs) |
82
+
83
+ ## Next steps
84
+
85
+ - [Installation & troubleshooting](https://heroui.pro/docs/react/getting-started/installation)
86
+ - [Browse components](https://heroui.pro/docs/react/components/area-chart)
87
+ - [Theme Builder](https://heroui.pro/dashboard/themes)
88
+ - [Pro UI for agents (MCP)](https://heroui.pro/docs/react/getting-started/mcp-server)
89
+
90
+ ## License
91
+
92
+ See [LICENSE](./LICENSE).
package/package.json CHANGED
@@ -1,29 +1,23 @@
1
1
  {
2
- "name": "@heroui-pro/react",
3
- "version": "1.0.0-alpha.0",
4
- "description": "HeroUI React",
5
- "license": "UNLICENSED",
6
- "author": "HeroUI",
7
- "bin": {
8
- "heroui-pro": "pre/bin.js"
9
- },
10
- "files": [
11
- "pre",
12
- "README.md",
13
- "LICENSE"
14
- ],
15
- "type": "module",
16
- "scripts": {
17
- "postinstall": "node ./pre/postinstall/index.js"
18
- },
19
- "dependencies": {
20
- "chalk": "5.6.2",
21
- "heroui-cli-pro": "workspace:*"
22
- },
23
- "bundledDependencies": [
24
- "heroui-cli-pro"
25
- ],
26
- "publishConfig": {
27
- "access": "public"
28
- }
2
+ "name": "@heroui-pro/react",
3
+ "version": "1.0.0-alpha.10",
4
+ "description": "HeroUI React",
5
+ "license": "UNLICENSED",
6
+ "author": "HeroUI",
7
+ "files": [
8
+ "pre",
9
+ "README.md",
10
+ "LICENSE"
11
+ ],
12
+ "type": "module",
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "scripts": {
17
+ "postinstall": "node ./pre/postinstall/index.js"
18
+ },
19
+ "dependencies": {
20
+ "chalk": "5.6.2",
21
+ "heroui-pro": "^1.0.0-alpha.1"
22
+ }
29
23
  }
@@ -1,10 +1,10 @@
1
1
  import { Chalk } from 'chalk';
2
2
  import { dirname, join } from 'node:path';
3
3
  import { fileURLToPath } from 'node:url';
4
- import { HEROUI_AUTH_TOKEN, PRODUCTS, HEROUI_WEB_URL, HELP_EMAIL } from 'heroui-cli-pro/consts';
5
- import { downloadFromCI, downloadFromCLI } from 'heroui-cli-pro/cdn';
6
- import { getCredentials } from 'heroui-cli-pro/auth/keyring';
7
- import { getCIToken } from 'heroui-cli-pro/auth/ci';
4
+ import { HEROUI_AUTH_TOKEN, PRODUCTS, HEROUI_WEB_URL, HELP_EMAIL } from 'heroui-pro/consts';
5
+ import { downloadFromCI, downloadFromCLI } from 'heroui-pro/cdn';
6
+ import { getCredentials } from 'heroui-pro/auth/keyring';
7
+ import { getCIToken } from 'heroui-pro/auth/ci';
8
8
 
9
9
  const __dirname = dirname(fileURLToPath(import.meta.url));
10
10
  const PKG_ROOT = join(__dirname, '../../');
@@ -17,6 +17,20 @@ if (!PKG_ROOT.includes('node_modules')) {
17
17
  const product = PRODUCTS.react;
18
18
  const chalk = new Chalk({ level: 3 });
19
19
 
20
+ const printLoginPrompt = () => {
21
+ console.log(chalk.yellow.bold(`\nSign in to finish installing ${product.name}.\n`));
22
+ console.log(
23
+ chalk.yellow(
24
+ `Run:\n\n` +
25
+ ` ${chalk.bold('npx heroui-pro login')}\n\n` +
26
+ `Then re-run install, or:\n\n` +
27
+ ` ${chalk.bold('npx heroui-pro install')}\n\n` +
28
+ `For CI/CD, set the ${chalk.bold.underline(HEROUI_AUTH_TOKEN)} environment variable.\n` +
29
+ `Need a license? Visit ${chalk.bold.underline(HEROUI_WEB_URL)}.\n`,
30
+ ),
31
+ );
32
+ };
33
+
20
34
  const main = async () => {
21
35
  const ciToken = getCIToken();
22
36
 
@@ -30,7 +44,10 @@ const main = async () => {
30
44
  return await downloadFromCLI(product, PKG_ROOT);
31
45
  }
32
46
 
33
- throw new Error('No credentials found');
47
+ // No credentials yet — expected first-run state. Exit cleanly so `npm install`
48
+ // succeeds and the user can run `npx heroui-pro login` to finish setup.
49
+ printLoginPrompt();
50
+ process.exit(0);
34
51
  };
35
52
 
36
53
  main().catch(error => {
@@ -41,7 +58,7 @@ main().catch(error => {
41
58
  chalk.red(
42
59
  `To get a license, visit ${chalk.bold.underline(HEROUI_WEB_URL)}.\n` +
43
60
  `If you already have one, run:\n\n` +
44
- `${chalk.bold('heroui-pro login')}\n\n` +
61
+ `${chalk.bold('npx heroui-pro login')}\n\n` +
45
62
  `For CI/CD environments, ensure the ${chalk.bold.underline(HEROUI_AUTH_TOKEN)} environment variable is set.\n\n` +
46
63
  `Need help? Contact ${chalk.bold.underline(HELP_EMAIL)} for assistance.\n`,
47
64
  ),
package/pre/bin.js DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import 'heroui-cli-pro/cli';