@7onic-ui/react 0.2.3 → 0.2.5

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/llms.txt CHANGED
@@ -45,7 +45,7 @@ npm install @7onic-ui/react @7onic-ui/tokens lucide-react
45
45
 
46
46
  **New project (Tailwind v4):**
47
47
  ```css
48
- /* globals.css — ALL imports are required, do not skip any */
48
+ /* globals.css (Next.js) or src/index.css (Vite) — ALL imports are required, do not skip any */
49
49
  @import "tailwindcss";
50
50
  @import "@7onic-ui/tokens/css/variables.css";
51
51
  @import "@7onic-ui/tokens/css/themes/light.css";
@@ -53,6 +53,8 @@ npm install @7onic-ui/react @7onic-ui/tokens lucide-react
53
53
  @import "@7onic-ui/tokens/tailwind/v4-theme.css";
54
54
  ```
55
55
 
56
+ > **Vite + Tailwind v4**: `npx 7onic init` auto-injects `@import "tailwindcss"` if not present, and automatically configures the `@/` path alias (patches `tsconfig.app.json` + `vite.config.ts`, installs `@types/node`). `npx 7onic add` auto-injects `@source "./components/ui"` (or relative path) so Tailwind scans your component files. No manual setup needed.
57
+
56
58
  **Existing project with Tailwind v3** (detect from tailwind.config.js):
57
59
  ```css
58
60
  /* globals.css */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7onic-ui/react",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "private": false,
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -52,7 +52,8 @@
52
52
  "verify:i18n:html": "tsx scripts/verify-i18n-html.ts",
53
53
  "verify:components": "tsx scripts/verify-components.ts",
54
54
  "verify:publish": "tsx scripts/verify-publish.ts",
55
- "prepublishOnly": "npm run build:lib && npm run verify:publish"
55
+ "smoke": "bash scripts/smoke-test.sh",
56
+ "prepublishOnly": "npm run build:lib && npm run verify:publish && npm run smoke"
56
57
  },
57
58
  "dependencies": {
58
59
  "@radix-ui/react-accordion": "^1.2.0",