@7onic-ui/react 0.2.0 → 0.2.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.
package/README.md CHANGED
@@ -24,7 +24,7 @@
24
24
  |:---:|---|---|
25
25
  | **🎯** | **Zero design-code drift** | Design and code from a single vision. No handoff, no drift — every component is pixel-verified against Figma. |
26
26
  | **📦** | **One JSON, every format** | `figma-tokens.json` auto-generates CSS, Tailwind v3, Tailwind v4, JS/TS, and JSON — all in sync. |
27
- | **🧩** | **shadcn freedom + MUI convenience** | Built-in `loading`, `leftIcon`, `pressEffect`, `Field` — no DIY. Override anything with `className`. |
27
+ | **🧩** | **shadcn freedom + MUI convenience** | Built-in `toast.promise()`, `pressEffect`, namespace patterns — no DIY. `npx 7onic add` or `npm install` — same components, your workflow. |
28
28
  | **🔀** | **Only Tailwind v3+v4 dual support** | The ecosystem's only design system supporting both Tailwind versions. Same tokens, same DX. |
29
29
  | **🎮** | **Built-in playground** | Interactive props editor + live code generation in docs. No Storybook setup needed. |
30
30
  | **🌗** | **Dark mode, zero config** | Light/dark themes built into tokens. System preference detection out of the box. |
@@ -38,7 +38,12 @@
38
38
  ## Get Started
39
39
 
40
40
  ```bash
41
+ # npm package
41
42
  npm install @7onic-ui/react @7onic-ui/tokens
43
+
44
+ # or CLI (local copy)
45
+ npx 7onic init
46
+ npx 7onic add button card input
42
47
  ```
43
48
 
44
49
  <details>
@@ -94,6 +99,7 @@ Use components:
94
99
 
95
100
  ```tsx
96
101
  import { Button, Card } from '@7onic-ui/react'
102
+ import { Chart, type ChartConfig } from '@7onic-ui/react/chart' // charts: separate entry
97
103
 
98
104
  <Button variant="solid" color="primary">Get Started</Button>
99
105
 
@@ -175,6 +181,9 @@ Breaking changes are auto-detected with diff visualization. Backward-compatible
175
181
  | `dist/index.js` | CJS | CommonJS for Node.js / require() |
176
182
  | `dist/index.mjs` | ESM | ES Modules for bundlers / import |
177
183
  | `dist/index.d.ts` | Types | TypeScript definitions |
184
+ | `dist/chart.js` | CJS | Chart components (separate entry — `@7onic-ui/react/chart`) |
185
+ | `dist/chart.mjs` | ESM | Chart components ESM |
186
+ | `dist/chart.d.ts` | Types | Chart TypeScript definitions |
178
187
  | `llms.txt` | Text | AI integration rules (llms.txt standard) |
179
188
 
180
189
  ### `@7onic-ui/tokens`
@@ -194,6 +203,14 @@ Breaking changes are auto-detected with diff visualization. Backward-compatible
194
203
  | `json/tokens.json` | Flat JSON for custom tooling |
195
204
  | `cli/sync.js` | `npx sync-tokens` CLI |
196
205
  | `figma-tokens.json` | SSOT — the only file you edit |
206
+ | `llms.txt` | AI integration rules for tokens |
207
+
208
+ ### `7onic` (CLI)
209
+
210
+ | File | Description |
211
+ |------|-------------|
212
+ | `dist/index.js` | Self-contained CLI bundle |
213
+ | `llms.txt` | AI integration — CLI command reference |
197
214
 
198
215
  </details>
199
216
 
@@ -239,10 +256,10 @@ Works with Claude Code, Cursor, GitHub Copilot, ChatGPT, and any AI tool that re
239
256
  - [x] Automated doc verification (8 checks, AST-powered, blocks publish on error)
240
257
  - [x] Automated component verification (7 checks — hardcoded colors, tokens, dark mode, dead code)
241
258
  - [x] Multilingual documentation — English, Japanese, Korean (powered by next-intl)
242
- - [x] npm package distribution — `@7onic-ui/react` + `@7onic-ui/tokens` v0.1.0
259
+ - [x] npm package distribution — `@7onic-ui/react` + `@7onic-ui/tokens` v0.2.0
243
260
  - [x] AI integration — `llms.txt` standard, setup guides for Claude Code / Cursor / Copilot / ChatGPT
244
261
  - [ ] Theme Customizer (live color preview)
245
- - [ ] `npx 7onic add` CLI (shadcn-style)
262
+ - [x] `npx 7onic add` CLI (shadcn-style) — source copy with dependency resolution
246
263
  - [ ] Figma UI Kit
247
264
  - [ ] Dashboard / landing templates
248
265
 
@@ -257,5 +274,5 @@ MIT
257
274
  <p align="center">
258
275
  <strong>One JSON, every format — from Figma to production.</strong><br>
259
276
  Independently built.<br>
260
- <sub>Last updated: 2026-04-08</sub>
277
+ <sub>Last updated: 2026-04-09</sub>
261
278
  </p>
package/dist/chart.d.mts CHANGED
@@ -74,7 +74,7 @@ type ChartTooltipContentProps = React.ComponentProps<'div'> & {
74
74
  labelKey?: string;
75
75
  };
76
76
  declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: ChartTooltipContentProps): React.JSX.Element | null;
77
- declare const ChartLegend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
77
+ declare const ChartLegend: typeof RechartsPrimitive.Legend;
78
78
  type LegendPayloadItem = {
79
79
  value?: string;
80
80
  type?: string;
@@ -150,7 +150,7 @@ declare const Chart: typeof ChartContainer & {
150
150
  Pie: typeof ChartPie;
151
151
  Tooltip: typeof ChartTooltip;
152
152
  TooltipContent: typeof ChartTooltipContent;
153
- Legend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
153
+ Legend: typeof RechartsPrimitive.Legend;
154
154
  LegendContent: typeof ChartLegendContent;
155
155
  XAxis: typeof ChartXAxis;
156
156
  YAxis: typeof ChartYAxis;
package/dist/chart.d.ts CHANGED
@@ -74,7 +74,7 @@ type ChartTooltipContentProps = React.ComponentProps<'div'> & {
74
74
  labelKey?: string;
75
75
  };
76
76
  declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: ChartTooltipContentProps): React.JSX.Element | null;
77
- declare const ChartLegend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
77
+ declare const ChartLegend: typeof RechartsPrimitive.Legend;
78
78
  type LegendPayloadItem = {
79
79
  value?: string;
80
80
  type?: string;
@@ -150,7 +150,7 @@ declare const Chart: typeof ChartContainer & {
150
150
  Pie: typeof ChartPie;
151
151
  Tooltip: typeof ChartTooltip;
152
152
  TooltipContent: typeof ChartTooltipContent;
153
- Legend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
153
+ Legend: typeof RechartsPrimitive.Legend;
154
154
  LegendContent: typeof ChartLegendContent;
155
155
  XAxis: typeof ChartXAxis;
156
156
  YAxis: typeof ChartYAxis;