@7onic-ui/react 0.3.0 → 0.3.2

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.
Files changed (3) hide show
  1. package/README.md +11 -16
  2. package/llms.txt +340 -417
  3. package/package.json +4 -2
package/README.md CHANGED
@@ -28,6 +28,7 @@
28
28
  | **🧩** | **shadcn freedom + MUI convenience** | shadcn's customization with none of its missing features. MUI's built-in power with none of its styling constraints. Both, by design. |
29
29
  | **⚡** | **npm or CLI — your choice** | `npm install` for packages, `npx 7onic add` for local copy. Same components, two workflows. |
30
30
  | **🔀** | **Only Tailwind v3+v4 dual support** | The ecosystem's only design system supporting both Tailwind versions. Same tokens, same DX. |
31
+ | **🪄** | **Framework-aware setup** | Next.js 15 works out of the box. `npx 7onic init` auto-cleans Vite template boilerplate (or delete a few blocks manually). No Provider wrapper, no `globals.css` replacement, no body class setup. |
31
32
  | **🎮** | **Built-in playground** | Interactive props editor + live code generation in docs. No Storybook setup needed. |
32
33
  | **🌗** | **Dark mode, zero config** | Light/dark themes built into tokens. System preference detection out of the box. |
33
34
  | **🔓** | **Framework-agnostic tokens** | Tokens ship as pure CSS variables. Use with Vue, Angular, Svelte, or vanilla CSS — no React required. |
@@ -96,25 +97,19 @@ module.exports = {
96
97
  ```
97
98
  </details>
98
99
 
99
- Apply base theme colors to `<body>` — enables dark mode and consistent backgrounds:
100
-
101
- ```html
102
- <body class="bg-background text-foreground">
103
- ```
104
-
105
100
  Use components:
106
101
 
107
102
  ```tsx
108
- import { Button, Card } from '@7onic-ui/react'
103
+ import { Button, Card, CardHeader, CardTitle, CardContent } from '@7onic-ui/react'
109
104
  import { Chart, type ChartConfig } from '@7onic-ui/react/chart' // charts: separate entry
110
105
 
111
106
  <Button variant="solid" color="primary">Get Started</Button>
112
107
 
113
108
  <Card>
114
- <Card.Header>
115
- <Card.Title>Settings</Card.Title>
116
- </Card.Header>
117
- <Card.Content>...</Card.Content>
109
+ <CardHeader>
110
+ <CardTitle>Settings</CardTitle>
111
+ </CardHeader>
112
+ <CardContent>...</CardContent>
118
113
  </Card>
119
114
  ```
120
115
 
@@ -133,7 +128,7 @@ import { Chart, type ChartConfig } from '@7onic-ui/react/chart' // charts: sepa
133
128
  | **Navigation** | Breadcrumb, NavigationMenu, Pagination | 3 |
134
129
  | **AI** | TypingIndicator, QuickReply, ChatInput, ChatMessage | 4 |
135
130
 
136
- **42 components** — all with CVA variants, controlled + uncontrolled modes, `forwardRef`, and **Named exports** (`CardHeader`, `ModalContent`, `TabsList`, ...). If you prefer dot-notation (`<Card.Header>`), drop in the 5-line [Compound Recipe wrapper](docs/decisions/NAMED-PRIMARY-MIGRATION.md) — opt-in, Client Components only.
131
+ **42 components** — all with CVA variants, controlled + uncontrolled modes, `forwardRef`, and **Named exports** (`CardHeader`, `ModalContent`, `TabsList`, ...). If you prefer dot-notation (`<Card.Header>`), drop in a [Compound Recipe wrapper](docs/decisions/NAMED-PRIMARY-MIGRATION.md) — opt-in, Client Components only.
137
132
 
138
133
  ---
139
134
 
@@ -165,7 +160,7 @@ figma-tokens.json ← SSOT (the only file you edit)
165
160
  │
166
161
  │ npx sync-tokens
167
162
  │
168
- ├── css/variables.css ← CSS variables (all primitives)
163
+ ├── css/variables.css ← CSS variables + framework baseline (html body reset)
169
164
  ├── css/themes/light.css ← Light theme semantics
170
165
  ├── css/themes/dark.css ← Dark theme semantics
171
166
  ├── css/all.css ← All-in-one bundle
@@ -199,7 +194,7 @@ Breaking changes are auto-detected with diff visualization. Backward-compatible
199
194
  | File | Description |
200
195
  |------|-------------|
201
196
  | `css/all.css` | All-in-one bundle (variables + light + dark) |
202
- | `css/variables.css` | Primitive tokens only |
197
+ | `css/variables.css` | Primitive tokens + framework baseline (`html body` reset) |
203
198
  | `css/themes/light.css` | Light theme semantics |
204
199
  | `css/themes/dark.css` | Dark theme semantics |
205
200
  | `tailwind/v4.css` | All-in-one Tailwind v4 |
@@ -264,7 +259,7 @@ Works with Claude Code, Cursor, GitHub Copilot, ChatGPT, and any AI tool that re
264
259
  - [x] Automated doc verification (8 checks, AST-powered, blocks publish on error)
265
260
  - [x] Automated component verification (7 checks — hardcoded colors, tokens, dark mode, dead code)
266
261
  - [x] Multilingual documentation — English, Japanese, Korean (powered by next-intl)
267
- - [x] npm package distribution — `@7onic-ui/react` + `@7onic-ui/tokens` v0.2.7
262
+ - [x] npm package distribution — `@7onic-ui/react` + `@7onic-ui/tokens` v0.3.2
268
263
  - [x] AI integration — `llms.txt` standard, setup guides for Claude Code / Cursor / Copilot / ChatGPT
269
264
  - [x] `npx 7onic add` CLI (shadcn-style) — source copy with dependency resolution
270
265
  - [x] `npx 7onic init` Vite support — `tsconfig.app.json` detection, `@import "tailwindcss"` + `@source` auto-inject, `@/` path alias auto-configure
@@ -293,5 +288,5 @@ MIT
293
288
  <p align="center">
294
289
  <strong>One JSON, every format — from Figma to production.</strong><br>
295
290
  Independently built.<br>
296
- <sub>Last updated: 2026-04-16 (v0.2.7)</sub>
291
+ <sub>Last updated: 2026-04-23 (v0.3.2)</sub>
297
292
  </p>