@7onic-ui/react 0.2.3 → 0.2.4
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 +13 -3
- package/dist/index.js +3 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
<p align="center">
|
|
8
8
|
<a href="https://www.npmjs.com/package/@7onic-ui/react"><img src="https://img.shields.io/npm/v/@7onic-ui/react?color=37D8E6&label=react" alt="npm react" /></a>
|
|
9
9
|
<a href="https://www.npmjs.com/package/@7onic-ui/tokens"><img src="https://img.shields.io/npm/v/@7onic-ui/tokens?color=37D8E6&label=tokens" alt="npm tokens" /></a>
|
|
10
|
+
<a href="https://www.npmjs.com/package/7onic"><img src="https://img.shields.io/npm/v/7onic?color=37D8E6&label=cli" alt="npm cli" /></a>
|
|
10
11
|
<a href="https://github.com/itonys/7onic/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT License" /></a>
|
|
11
12
|
<a href="https://7onic.design"><img src="https://img.shields.io/badge/docs-7onic.design-black" alt="Documentation" /></a>
|
|
12
13
|
</p>
|
|
@@ -262,15 +263,24 @@ Works with Claude Code, Cursor, GitHub Copilot, ChatGPT, and any AI tool that re
|
|
|
262
263
|
- [x] Automated doc verification (8 checks, AST-powered, blocks publish on error)
|
|
263
264
|
- [x] Automated component verification (7 checks — hardcoded colors, tokens, dark mode, dead code)
|
|
264
265
|
- [x] Multilingual documentation — English, Japanese, Korean (powered by next-intl)
|
|
265
|
-
- [x] npm package distribution — `@7onic-ui/react` + `@7onic-ui/tokens` v0.2.
|
|
266
|
+
- [x] npm package distribution — `@7onic-ui/react` + `@7onic-ui/tokens` v0.2.4
|
|
266
267
|
- [x] AI integration — `llms.txt` standard, setup guides for Claude Code / Cursor / Copilot / ChatGPT
|
|
267
268
|
- [x] `npx 7onic add` CLI (shadcn-style) — source copy with dependency resolution
|
|
268
|
-
- [
|
|
269
|
+
- [x] `npx 7onic init` Vite support — `tsconfig.app.json` detection, `@import "tailwindcss"` + `@source` auto-inject
|
|
270
|
+
- [ ] Theme Customizer — live palette preview + CSS variable export
|
|
269
271
|
- [ ] Figma UI Kit
|
|
270
272
|
- [ ] Dashboard / landing templates
|
|
271
273
|
|
|
272
274
|
---
|
|
273
275
|
|
|
276
|
+
## Contributing
|
|
277
|
+
|
|
278
|
+
Contributions are welcome! Please read [CONTRIBUTING.md](CONTRIBUTING.md) before submitting a PR.
|
|
279
|
+
|
|
280
|
+
> 7onic is a solo project — your star or kind word genuinely helps. ⭐
|
|
281
|
+
|
|
282
|
+
---
|
|
283
|
+
|
|
274
284
|
## License
|
|
275
285
|
|
|
276
286
|
MIT
|
|
@@ -280,5 +290,5 @@ MIT
|
|
|
280
290
|
<p align="center">
|
|
281
291
|
<strong>One JSON, every format — from Figma to production.</strong><br>
|
|
282
292
|
Independently built.<br>
|
|
283
|
-
<sub>Last updated: 2026-04-
|
|
293
|
+
<sub>Last updated: 2026-04-15</sub>
|
|
284
294
|
</p>
|
package/dist/index.js
CHANGED
|
@@ -4919,10 +4919,9 @@ var PaginationRoot = React26.forwardRef(
|
|
|
4919
4919
|
color = "default",
|
|
4920
4920
|
radius = "md",
|
|
4921
4921
|
disabled = false,
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
withEdges = false,
|
|
4925
|
-
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
4922
|
+
// Pre-declared API; conditional auto-rendering is tracked in COMPONENT-IMPROVEMENTS.md.
|
|
4923
|
+
withControls: _withControls = true,
|
|
4924
|
+
withEdges: _withEdges = false,
|
|
4926
4925
|
loop = false,
|
|
4927
4926
|
children,
|
|
4928
4927
|
...props
|
|
@@ -6222,7 +6221,6 @@ var ToastItem = React32.memo(function ToastItem2({
|
|
|
6222
6221
|
}) {
|
|
6223
6222
|
const [isExiting, setIsExiting] = React32.useState(false);
|
|
6224
6223
|
const [isEntered, setIsEntered] = React32.useState(false);
|
|
6225
|
-
const [isPaused, setIsPaused] = React32.useState(false);
|
|
6226
6224
|
const timerRef = React32.useRef(null);
|
|
6227
6225
|
const remainingRef = React32.useRef(0);
|
|
6228
6226
|
const startTimeRef = React32.useRef(0);
|
|
@@ -6261,7 +6259,6 @@ var ToastItem = React32.memo(function ToastItem2({
|
|
|
6261
6259
|
}, [duration, handleAutoClose]);
|
|
6262
6260
|
const handleMouseEnter = React32.useCallback(() => {
|
|
6263
6261
|
if (duration <= 0) return;
|
|
6264
|
-
setIsPaused(true);
|
|
6265
6262
|
if (timerRef.current) {
|
|
6266
6263
|
clearTimeout(timerRef.current);
|
|
6267
6264
|
remainingRef.current -= Date.now() - startTimeRef.current;
|
|
@@ -6269,7 +6266,6 @@ var ToastItem = React32.memo(function ToastItem2({
|
|
|
6269
6266
|
}, [duration]);
|
|
6270
6267
|
const handleMouseLeave = React32.useCallback(() => {
|
|
6271
6268
|
if (duration <= 0) return;
|
|
6272
|
-
setIsPaused(false);
|
|
6273
6269
|
startTimeRef.current = Date.now();
|
|
6274
6270
|
timerRef.current = setTimeout(handleAutoClose, Math.max(remainingRef.current, TOAST_MIN_RESUME_MS));
|
|
6275
6271
|
}, [duration, handleAutoClose]);
|