@nqlib/nqui 0.4.4 → 0.4.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/INSTALLATION.md +21 -2
- package/README.md +7 -2
- package/dist/components/custom/enhanced-radio-group.d.ts.map +1 -1
- package/dist/components/ui/frosted-glass.d.ts.map +1 -1
- package/dist/{debug-panel-DHBfAc1V.cjs → debug-panel-CNKk-No5.cjs} +1 -1
- package/dist/{debug-panel-CG-vAN0L.js → debug-panel-pg39-6xw.js} +1 -6
- package/dist/debug.cjs.js +1 -1
- package/dist/debug.es.js +1 -1
- package/dist/nqui.cjs.js +2 -2
- package/dist/nqui.es.js +7 -4
- package/dist/styles.css +52 -10
- package/docs/components/README.md +2 -2
- package/docs/components/nqui-frosted-glass.md +83 -5
- package/docs/components/nqui-radio-group.md +2 -0
- package/docs/nqui-skills/SKILL.md +4 -0
- package/package.json +1 -1
- package/scripts/setup-helper.js +13 -1
package/INSTALLATION.md
CHANGED
|
@@ -129,7 +129,21 @@ Add the nqui import to your **main CSS file**:
|
|
|
129
129
|
|
|
130
130
|
**Option B:** Copy the **entire contents** of `nqui/nqui-setup.css` to the **very top** of your main CSS file.
|
|
131
131
|
|
|
132
|
-
### 2c.
|
|
132
|
+
### 2c. Vite + Tailwind v4
|
|
133
|
+
|
|
134
|
+
With `@tailwindcss/vite`, Tailwind usually scans your app files automatically. If **components look unstyled**, **spacing or button classes from `@nqlib/nqui` are missing**, or utilities used only inside the installed package do not appear in CSS, add these **`@source` lines after** `@import "@nqlib/nqui/styles";` in your main stylesheet (paths are relative to that CSS file — adjust if your entry is not `src/index.css`):
|
|
135
|
+
|
|
136
|
+
```css
|
|
137
|
+
@import "@nqlib/nqui/styles";
|
|
138
|
+
|
|
139
|
+
@source "./**/*.{js,ts,jsx,tsx,mdx}";
|
|
140
|
+
@source "../components/**/*.{js,ts,jsx,tsx,mdx}";
|
|
141
|
+
@source "../node_modules/@nqlib/nqui/dist/**/*.js";
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Example layout: `src/index.css` → `../components` is `src/components`, `../node_modules` is the project root `node_modules`.
|
|
145
|
+
|
|
146
|
+
### 2d. Next.js + Tailwind v4
|
|
133
147
|
|
|
134
148
|
Include these in your main CSS:
|
|
135
149
|
|
|
@@ -139,7 +153,7 @@ Include these in your main CSS:
|
|
|
139
153
|
@source "../node_modules/@nqlib/nqui/dist/**/*.js";
|
|
140
154
|
```
|
|
141
155
|
|
|
142
|
-
###
|
|
156
|
+
### 2e. Custom path
|
|
143
157
|
|
|
144
158
|
```bash
|
|
145
159
|
npx @nqlib/nqui init-css app/styles/nqui.css
|
|
@@ -205,6 +219,11 @@ To switch between a **local** (linked) build and the **published** npm package d
|
|
|
205
219
|
|
|
206
220
|
Your main CSS is missing the nqui import. Add `@import "@nqlib/nqui/styles";` or paste the contents of `nqui/nqui-setup.css` at the top of your main CSS.
|
|
207
221
|
|
|
222
|
+
**Vite: broken layout, missing spacing, or button styles**
|
|
223
|
+
|
|
224
|
+
1. Confirm `@import "@nqlib/nqui/styles";` is present and `@tailwindcss/vite` is in `vite.config.ts`.
|
|
225
|
+
2. Add the **`@source` directives** from [§2c Vite + Tailwind v4](#2c-vite--tailwind-v4) so Tailwind scans your app and `node_modules/@nqlib/nqui/dist`.
|
|
226
|
+
|
|
208
227
|
**Debug Panel not showing**
|
|
209
228
|
|
|
210
229
|
- Ensure `NODE_ENV !== 'production'`.
|
package/README.md
CHANGED
|
@@ -139,9 +139,14 @@ See [Troubleshooting](#troubleshooting).
|
|
|
139
139
|
@import "tailwindcss";
|
|
140
140
|
@import "tw-animate-css";
|
|
141
141
|
@import "@nqlib/nqui/styles";
|
|
142
|
+
|
|
143
|
+
/* Add if styles from @nqlib/nqui look missing (see INSTALLATION.md §2c) */
|
|
144
|
+
@source "./**/*.{js,ts,jsx,tsx,mdx}";
|
|
145
|
+
@source "../components/**/*.{js,ts,jsx,tsx,mdx}";
|
|
146
|
+
@source "../node_modules/@nqlib/nqui/dist/**/*.js";
|
|
142
147
|
```
|
|
143
148
|
|
|
144
|
-
Vite with `@tailwindcss/vite`
|
|
149
|
+
Vite with `@tailwindcss/vite` often works without `@source`; add the block above when utilities from the package do not show up in CSS.
|
|
145
150
|
|
|
146
151
|
2. **Components:**
|
|
147
152
|
|
|
@@ -268,7 +273,7 @@ Components are framework-agnostic for any React setup.
|
|
|
268
273
|
### `@source`: Next.js vs Vite
|
|
269
274
|
|
|
270
275
|
- **Next.js** needs `@source` lines so Tailwind sees app and `node_modules/@nqlib/nqui` — see the Quick Start block above.
|
|
271
|
-
- **Vite**
|
|
276
|
+
- **Vite** often works without extra `@source` lines; if components look unstyled, use the same three `@source` paths after `@import "@nqlib/nqui/styles";` ([INSTALLATION.md](./INSTALLATION.md) §2c).
|
|
272
277
|
|
|
273
278
|
### Module resolution (Next.js 16+, local packages)
|
|
274
279
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enhanced-radio-group.d.ts","sourceRoot":"","sources":["../../../src/components/custom/enhanced-radio-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAe5D,MAAM,WAAW,uBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC;IAC7D;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,SAAS,CAAA;IAChC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;;;;;;OASG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,QAAA,MAAM,kBAAkB,6GAsOtB,CAAA;AAIF,MAAM,WAAW,2BACf,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,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IAAI,cAAc,EAAE,CAAA;AACjI,YAAY,EAAE,uBAAuB,IAAI,eAAe,EAAE,2BAA2B,IAAI,mBAAmB,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frosted-glass.d.ts","sourceRoot":"","sources":["../../../src/components/ui/frosted-glass.tsx"],"names":[],"mappings":"AAGA,UAAU,iBAAiB;IACzB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;GAYG;AACH,iBAAS,YAAY,CAAC,EACpB,IAAS,EACT,YAAgB,EAChB,SAAS,GACV,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"frosted-glass.d.ts","sourceRoot":"","sources":["../../../src/components/ui/frosted-glass.tsx"],"names":[],"mappings":"AAGA,UAAU,iBAAiB;IACzB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;GAYG;AACH,iBAAS,YAAY,CAAC,EACpB,IAAS,EACT,YAAgB,EAChB,SAAS,GACV,EAAE,iBAAiB,2CA0DnB;AAED,OAAO,EAAE,YAAY,EAAE,CAAA;AACvB,YAAY,EAAE,iBAAiB,EAAE,CAAA"}
|