@heroui-pro/react 1.0.0-alpha.9 → 1.0.0-beta.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/README.md CHANGED
@@ -1 +1,84 @@
1
- ## HeroUI React Pro
1
+ # [HeroUI React Pro](https://heroui.pro/)
2
+
3
+ [Premium composable components that extend HeroUI — built for production web apps](https://heroui.pro/)
4
+
5
+ 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.
6
+
7
+ ## What’s included
8
+
9
+ - **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
10
+ - **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)`)
11
+ - **Templates** — Production-ready dashboards, mail, chat, and finance apps
12
+ - **Premium themes** — Brutalism, Glass, and more. Switch aesthetics in one import
13
+ - **Theme Builder** — Create custom themes visually, preview live in the docs, and export the CSS
14
+ - **Figma** — Design files for all Pro components + a theme variables sync plugin
15
+ - **AI tooling** — MCP server, agent skills, and design taste for AI-assisted development
16
+ - **Priority support** — Fast support, prioritized issues, private Discord, and a VIP badge
17
+ - **Teams & Enterprise** — Shared themes, centralized billing, SSO, and dedicated support
18
+
19
+ ## Requirements
20
+
21
+ - [React 19+](https://react.dev/)
22
+ - [Tailwind CSS v4](https://tailwindcss.com/docs/installation/framework-guides)
23
+ - [HeroUI OSS](https://heroui.com/docs/react/getting-started/quick-start) (`@heroui/react` + `@heroui/styles`)
24
+
25
+ If you have not set up HeroUI OSS yet, follow the [HeroUI quick start](https://heroui.com/docs/react/getting-started/quick-start) first.
26
+
27
+ ## Installation
28
+
29
+ ### 1. Log in
30
+
31
+ ```sh
32
+ npx heroui-pro login
33
+ ```
34
+
35
+ You can use `bunx heroui-pro login` or `pnpm heroui-pro login` instead.
36
+
37
+ ### 2. Install
38
+
39
+ ```sh
40
+ npx heroui-pro install
41
+ ```
42
+
43
+ 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.
44
+
45
+ Run `npx heroui-pro` with no arguments for the interactive menu.
46
+
47
+ ### 3. Import styles
48
+
49
+ In your main CSS (e.g. `globals.css`), keep this order:
50
+
51
+ ```css
52
+ @import 'tailwindcss';
53
+ @import '@heroui/styles';
54
+ @import '@heroui-pro/react/css';
55
+ ```
56
+
57
+ ### 4. CI / automated installs
58
+
59
+ 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.
60
+
61
+ See the full guide: [Installation](https://heroui.pro/docs/react/getting-started/installation).
62
+
63
+ ## CLI (quick reference)
64
+
65
+ | Command | Description |
66
+ | ------------------------------ | ----------------------------------------------- |
67
+ | `heroui-pro login` | Log in with GitHub |
68
+ | `heroui-pro install` | Add Pro packages, peers, and PM config |
69
+ | `heroui-pro install --yes` | Non-interactive install |
70
+ | `heroui-pro install --dry-run` | Preview installs |
71
+ | `heroui-pro status` | Login and installed products |
72
+ | `heroui-pro logout` | Sign out |
73
+ | `heroui-pro docs` | Open [heroui.pro/docs](https://heroui.pro/docs) |
74
+
75
+ ## Next steps
76
+
77
+ - [Installation & troubleshooting](https://heroui.pro/docs/react/getting-started/installation)
78
+ - [Browse components](https://heroui.pro/docs/react/components/area-chart)
79
+ - [Theme Builder](https://heroui.pro/dashboard/themes)
80
+ - [Pro UI for agents (MCP)](https://heroui.pro/docs/react/getting-started/mcp-server)
81
+
82
+ ## License
83
+
84
+ See [LICENSE](./LICENSE).
@@ -0,0 +1,22 @@
1
+ import{Chalk as t}from"chalk";import{dirname as s,join as a}from"node:path";import{fileURLToPath as d}from"node:url";import{HEROUI_AUTH_TOKEN as r,PRODUCTS as c,HEROUI_WEB_URL as l,HELP_EMAIL as m}from"heroui-pro/consts";import{downloadFromCI as p,downloadFromCLI as u}from"heroui-pro/cdn";import{getCredentials as g}from"heroui-pro/auth/keyring";import{getCIToken as f}from"heroui-pro/auth/ci";const h=s(d(import.meta.url)),e=a(h,"../../");e.includes("node_modules")||process.exit(0);const o=c.react,n=new t({level:3}),b=()=>{console.log(n.yellow.bold(`
2
+ Sign in to finish installing ${o.name}.
3
+ `)),console.log(n.yellow(`Run:
4
+
5
+ ${n.bold("npx heroui-pro login")}
6
+
7
+ Then re-run install, or:
8
+
9
+ ${n.bold("npx heroui-pro install")}
10
+
11
+ For CI/CD, set the ${n.bold.underline(r)} environment variable.
12
+ Need a license? Visit ${n.bold.underline(l)}.
13
+ `))},C=async()=>{if(f())return await p(o,e);if(await g())return await u(o,e);b(),process.exit(0)};C().catch(i=>{console.log(n.red.bold(`Access denied: You don't have permission to install ${o.name}.
14
+ `)),console.log(n.red(`To get a license, visit ${n.bold.underline(l)}.
15
+ If you already have one, run:
16
+
17
+ ${n.bold("npx heroui-pro login")}
18
+
19
+ For CI/CD environments, ensure the ${n.bold.underline(r)} environment variable is set.
20
+
21
+ Need help? Contact ${n.bold.underline(m)} for assistance.
22
+ `)),console.log(n.gray(i.message)),process.exit(1)});
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@heroui-pro/react",
3
- "version": "1.0.0-alpha.9",
3
+ "version": "1.0.0-beta.10",
4
4
  "description": "HeroUI React",
5
5
  "license": "UNLICENSED",
6
6
  "author": "HeroUI",
7
7
  "files": [
8
- "pre",
8
+ "dist",
9
9
  "README.md",
10
10
  "LICENSE"
11
11
  ],
@@ -14,7 +14,7 @@
14
14
  "access": "public"
15
15
  },
16
16
  "scripts": {
17
- "postinstall": "node ./pre/postinstall/index.js"
17
+ "postinstall": "node ./dist/postinstall/index.js"
18
18
  },
19
19
  "dependencies": {
20
20
  "chalk": "5.6.2",
@@ -1,70 +0,0 @@
1
- import { Chalk } from 'chalk';
2
- import { dirname, join } from 'node:path';
3
- import { fileURLToPath } from 'node:url';
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
-
9
- const __dirname = dirname(fileURLToPath(import.meta.url));
10
- const PKG_ROOT = join(__dirname, '../../');
11
-
12
- // Skip postinstall in development workspace
13
- if (!PKG_ROOT.includes('node_modules')) {
14
- process.exit(0);
15
- }
16
-
17
- const product = PRODUCTS.react;
18
- const chalk = new Chalk({ level: 3 });
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
-
34
- const main = async () => {
35
- const ciToken = getCIToken();
36
-
37
- if (ciToken) {
38
- return await downloadFromCI(product, PKG_ROOT);
39
- }
40
-
41
- const creds = await getCredentials();
42
-
43
- if (creds) {
44
- return await downloadFromCLI(product, PKG_ROOT);
45
- }
46
-
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);
51
- };
52
-
53
- main().catch(error => {
54
- console.log(
55
- chalk.red.bold(`Access denied: You don't have permission to install ${product.name}.\n`),
56
- );
57
- console.log(
58
- chalk.red(
59
- `To get a license, visit ${chalk.bold.underline(HEROUI_WEB_URL)}.\n` +
60
- `If you already have one, run:\n\n` +
61
- `${chalk.bold('npx heroui-pro login')}\n\n` +
62
- `For CI/CD environments, ensure the ${chalk.bold.underline(HEROUI_AUTH_TOKEN)} environment variable is set.\n\n` +
63
- `Need help? Contact ${chalk.bold.underline(HELP_EMAIL)} for assistance.\n`,
64
- ),
65
- );
66
-
67
- console.log(chalk.gray(error.message));
68
-
69
- process.exit(1);
70
- });