Skip to content

Commit 45a88eb

Browse files
authored
migrate:migrate v1 to react-zero-ui org (#11)
1 parent 5d060be commit 45a88eb

File tree

30 files changed

+136
-135
lines changed

30 files changed

+136
-135
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ What actually happened.
3838

3939
- **OS:** [e.g. macOS 14.5]
4040
- **Browser / Runtime:** [e.g. Chrome 125, Node 18.18.2]
41-
- **Package Version:** [`@austinserb/[email protected]`]
41+
- **Package Version:** [`@react-zero-ui/core@1.0.21`]
4242

4343
---
4444

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
5656
- name: Install Playwright browsers (if cache miss)
5757
if: steps.pw-cache.outputs.cache-hit != 'true'
58-
run: pnpm --filter @austinserb/react-zero-ui exec playwright install --with-deps
58+
run: pnpm --filter @react-zero-ui/core exec playwright install --with-deps
5959

6060
- name: Save Playwright cache
6161
if: steps.pw-cache.outputs.cache-hit != 'true'

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"packages": {
3-
"packages/core": { "package-name": "@austinserb/react-zero-ui", "release-type": "node" },
3+
"packages/core": { "package-name": "@react-zero-ui/core", "release-type": "node" },
44
"packages/cli": { "package-name": "create-zero-ui", "release-type": "node" }
55
},
66
"monorepo-tags": true,

AGENTS.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ const [staleValue, setValue] = useUI<'open' | 'closed'>('sidebar', 'closed');
3737
- ✅ Do **NOT** use the first value from `useUI()` for logic — it DOES NOT UPDATE.
3838
- ✅ You can call setters **from anywhere** in the app — no prop drilling or context needed.
3939
- ✅ Tailwind classes must use `key-value:` pattern:
40-
4140
- `theme-dark:bg-black`
4241
- `accent-blue:text-blue-500`
4342
- `sidebar-open:translate-x-0`

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Stay **pre-rendered, declarative, and brutally fast.**
2323

2424
```
2525
packages/
26-
├── core → @austinserb/react-zero-ui (library logic + postcss)
26+
├── core → @react-zero-ui/core (library logic + postcss)
2727
└── cli → create-zero-ui (npx installer)
2828
```
2929

@@ -43,11 +43,11 @@ pnpm test # runs all tests (unit + E2E)
4343

4444
## ✅ Contribution Flow
4545

46-
### 1. [Start a Discussion](https://github.com/Austin1serb/React-Zero-UI/discussions)
46+
### 1. [Start a Discussion](https://github.com/react-zero-ui/core/discussions)
4747

4848
For questions, proposals, or early feedback. Share ideas before building.
4949

50-
### 2. [Open an Issue](https://github.com/Austin1serb/React-Zero-UI/issues)
50+
### 2. [Open an Issue](https://github.com/react-zero-ui/core/issues)
5151

5252
Use the templates.
5353

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
Pre‑render your UI once, flip a `data-*` attribute to update — that's it.
66

7-
<a href="https://bundlephobia.com/package/@austinserb/[email protected]" target="_blank" rel="noopener noreferrer"><img src="https://badgen.net/bundlephobia/minzip/@austinserb/[email protected]" alt="npm version" /> </a><a href="https://www.npmjs.com/package/@austinserb/react-zero-ui" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/npm/v/@austinserb/react-zero-ui" alt="npm version" /></a> <a href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT" /></a> ![CI](https://github.com/austin1serb/react-zero-ui/actions/workflows/ci.yml/badge.svg?branch=main)
7+
<a href="https://bundlephobia.com/package/@austinserb/[email protected]" target="_blank" rel="noopener noreferrer"><img src="https://badgen.net/bundlephobia/minzip/@austinserb/[email protected]" alt="npm version" /> </a><a href="https://www.npmjs.com/package/@austinserb/react-zero-ui" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/npm/v/@austinserb/react-zero-ui" alt="npm version" /></a> <a href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT" /></a> ![CI](https://github.com/react-zero-ui/core/actions/workflows/ci.yml/badge.svg?branch=main)
88

99
---
1010

1111
## 📚 Quick Links
1212

1313
- [⚡️ Quick Start](#️-quick-start)
14-
- [🏄‍♂️ Usage](#-usage)
14+
- [🏄 Usage](#-usage)
1515
- [🧬 How it works](#-how-it-works)
1616
- [✅ Features](#-features)
1717
- [🏗 Best Practices](#-best-practices)
@@ -20,11 +20,11 @@ Pre‑render your UI once, flip a `data-*` attribute to update — that's it.
2020

2121
## 🚀 Live Demo
2222

23-
| Example | Link | What it shows | Link to Code |
24-
| --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
25-
| Interactive menu with render tracker | <a href="https://react-zero-ui.vercel.app/" target="_blank" rel="noopener noreferrer"><strong>Main Demo↗</strong></a> | Compare Zero‑UI vs. React side‑by‑side while toggling a menu. | <a href="https://github.com/Austin1serb/React-Zero-UI/tree/main/examples/demo" target="_blank" rel="noopener noreferrer">Github</a> |
26-
| React benchmark (10 000 nested nodes) | <a href="https://react-zero-ui.vercel.app/react" target="_blank" rel="noopener noreferrer"><strong>React 10k↗</strong></a> | How long the traditional React render path takes. | <a href="https://github.com/Austin1serb/React-Zero-UI/tree/main/examples/demo/src/app/react" target="_blank" rel="noopener noreferrer">Github</a> |
27-
| Zero‑UI benchmark (10 000 nested nodes) | <a href="https://react-zero-ui.vercel.app/zero-ui" target="_blank" rel="noopener noreferrer"><strong style="text-align: nowrap;">Zero‑UI 10k↗</strong></a> | Identical DOM, but powered by Zero‑UI's `data-*` switch. | <a href="https://github.com/Austin1serb/React-Zero-UI/tree/main/examples/demo/src/app/zero-ui" target="_blank" rel="noopener noreferrer">Github</a> |
23+
| Example | Link | What it shows | Link to Code |
24+
| --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
25+
| Interactive menu with render tracker | <a href="https://react-zero-ui.vercel.app/" target="_blank" rel="noopener noreferrer"><strong>Main Demo↗</strong></a> | Compare Zero‑UI vs. React side‑by‑side while toggling a menu. | <a href="https://github.com/react-zero-ui/core/tree/main/examples/demo" target="_blank" rel="noopener noreferrer">Github</a> |
26+
| React benchmark (10 000 nested nodes) | <a href="https://react-zero-ui.vercel.app/react" target="_blank" rel="noopener noreferrer"><strong>React 10k↗</strong></a> | How long the traditional React render path takes. | <a href="https://github.com/react-zero-ui/core/tree/main/examples/demo/src/app/react" target="_blank" rel="noopener noreferrer">Github</a> |
27+
| Zero‑UI benchmark (10 000 nested nodes) | <a href="https://react-zero-ui.vercel.app/zero-ui" target="_blank" rel="noopener noreferrer"><strong style="text-align: nowrap;">Zero‑UI 10k↗</strong></a> | Identical DOM, but powered by Zero‑UI's `data-*` switch. | <a href="https://github.com/react-zero-ui/core/tree/main/examples/demo/src/app/zero-ui" target="_blank" rel="noopener noreferrer">Github</a> |
2828

2929
---
3030

@@ -114,7 +114,7 @@ export default {
114114

115115
---
116116

117-
## 🏄‍♂️ Usage
117+
## 🏄 Usage
118118

119119
![react zero ui usage explained](docs/assets/useui-explained.webp)
120120

examples/demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"clean": "rm -rf .next"
1616
},
1717
"dependencies": {
18-
"@austinserb/react-zero-ui": "^1.0.21",
18+
"@react-zero-ui/core": "^0.1.0",
1919
"@vercel/analytics": "^1.5.0",
2020
"clsx": "^2.1.1",
2121
"motion": "^12.16.0",

examples/demo/postcss.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// postcss.config.mjs
22

3-
const config = { plugins: ['@austinserb/react-zero-ui/postcss', '@tailwindcss/postcss'] };
3+
const config = { plugins: ['@react-zero-ui/core/postcss', '@tailwindcss/postcss'] };
44

55
export default config;

examples/demo/src/app/(test)/ZeroState.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import useUI from '@austinserb/react-zero-ui';
3+
import useUI from '@react-zero-ui/core';
44
import { useRenderTracker } from './ReactTracker';
55

66
export function TestComponentZero() {

examples/demo/src/app/(test)/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { Icon } from '@/app/components/Icon';
44
import { TestComponentWithState } from './ReactState';
55
import { TestComponentZero } from './ZeroState';
6-
import { useUI } from '@austinserb/react-zero-ui';
6+
import { useUI } from '@react-zero-ui/core';
77

88
export default function Page() {
99
const [, setActive] = useUI<'react' | 'zero'>('active', 'zero');

0 commit comments

Comments
 (0)