@octabits-io/nuxt-ui-kit 0.3.0 → 0.3.1
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 -0
- package/package.json +3 -1
- package/src/styles.css +17 -0
package/README.md
CHANGED
|
@@ -72,6 +72,19 @@ code. Register them under your app's own names with one-line re-exports:
|
|
|
72
72
|
export { default } from '@octabits-io/nuxt-ui-kit/components/SubSidebar.vue'
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
+
**Tailwind setup (required):** the kit's SFCs live in `node_modules`, which
|
|
76
|
+
Tailwind v4's automatic source detection skips — utility classes used only in
|
|
77
|
+
kit markup (e.g. `SubSidebar`'s default `w-[240px]`) would silently be missing
|
|
78
|
+
from your build. Import the kit's stylesheet, which registers the components
|
|
79
|
+
via `@source` (same mechanism `@nuxt/ui` uses):
|
|
80
|
+
|
|
81
|
+
```css
|
|
82
|
+
/* app/assets/css/main.css */
|
|
83
|
+
@import "tailwindcss";
|
|
84
|
+
@import "@nuxt/ui";
|
|
85
|
+
@import "@octabits-io/nuxt-ui-kit/styles.css";
|
|
86
|
+
```
|
|
87
|
+
|
|
75
88
|
## Wiring examples (Nuxt)
|
|
76
89
|
|
|
77
90
|
### Auth + API client
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octabits-io/nuxt-ui-kit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Frontend kit for Nuxt/Vue admin SPAs: OIDC session harness (oidc-client-ts), Eden Treaty client factory, auth/org store cores, and a route-guard builder — factory-style seams the app wires into its own plugins, stores, and middleware",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -45,11 +45,13 @@
|
|
|
45
45
|
"import": "./dist/ai/index.js",
|
|
46
46
|
"default": "./dist/ai/index.js"
|
|
47
47
|
},
|
|
48
|
+
"./styles.css": "./src/styles.css",
|
|
48
49
|
"./components/*": "./src/components/*"
|
|
49
50
|
},
|
|
50
51
|
"files": [
|
|
51
52
|
"dist",
|
|
52
53
|
"src/components",
|
|
54
|
+
"src/styles.css",
|
|
53
55
|
"README.md",
|
|
54
56
|
"LICENSE"
|
|
55
57
|
],
|
package/src/styles.css
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Tailwind v4 source registration for the kit's source-shipped SFCs.
|
|
3
|
+
*
|
|
4
|
+
* The kit's components live in the consumer's node_modules, which Tailwind's
|
|
5
|
+
* automatic source detection skips — so utility classes that appear only in
|
|
6
|
+
* kit markup (e.g. SubSidebar's default `w-[240px]`) would be missing from
|
|
7
|
+
* the consumer's CSS build. Importing this file registers them:
|
|
8
|
+
*
|
|
9
|
+
* @import "tailwindcss";
|
|
10
|
+
* @import "@nuxt/ui";
|
|
11
|
+
* @import "@octabits-io/nuxt-ui-kit/styles.css";
|
|
12
|
+
*
|
|
13
|
+
* The @source path resolves relative to THIS file (same mechanism @nuxt/ui
|
|
14
|
+
* uses in its own shipped CSS), so consumers never hardcode node_modules
|
|
15
|
+
* paths.
|
|
16
|
+
*/
|
|
17
|
+
@source "./components";
|