@unopsitg/ux 21.0.19 → 21.0.20
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 +15 -0
- package/fesm2022/unopsitg-ux.mjs +325 -310
- package/fesm2022/unopsitg-ux.mjs.map +1 -1
- package/package.json +1 -1
- package/types/unopsitg-ux.d.ts +6 -3
package/README.md
CHANGED
|
@@ -40,13 +40,28 @@ Reference library SCSS/Tailwind and copy bundled logos into your app output:
|
|
|
40
40
|
"styles": [
|
|
41
41
|
"node_modules/@unopsitg/ux/assets/styles.scss",
|
|
42
42
|
"node_modules/@unopsitg/ux/assets/tailwind.css",
|
|
43
|
+
"node_modules/primeicons/primeicons.css",
|
|
43
44
|
"src/styles.scss"
|
|
44
45
|
],
|
|
45
46
|
"assets": [
|
|
47
|
+
{ "glob": "**/*", "input": "public" },
|
|
46
48
|
{ "glob": "**/*", "input": "node_modules/@unopsitg/ux/assets/opp", "output": "assets/opp" }
|
|
47
49
|
]
|
|
48
50
|
```
|
|
49
51
|
|
|
52
|
+
### Critical: Tailwind content scan
|
|
53
|
+
|
|
54
|
+
Library components use Tailwind utility classes (`flex`, `items-center`, `gap-2`, `bg-surface-0`, etc.). Tailwind 4 only generates utilities for classes it finds in scanned sources. **You must add a `@source` directive** in your app's `styles.scss` so Tailwind scans the library:
|
|
55
|
+
|
|
56
|
+
```scss
|
|
57
|
+
/* src/styles.scss */
|
|
58
|
+
@source "../../node_modules/@unopsitg/ux";
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Adjust the relative path to match your folder depth. Without this, layout utilities like positioning, spacing, and backgrounds will be missing and the topbar/shell will render incorrectly.
|
|
62
|
+
|
|
63
|
+
**Verify:** after `ng serve`, check the compiled CSS for `.flex { display: flex }`. If missing, the `@source` path is wrong.
|
|
64
|
+
|
|
50
65
|
When developing **inside this monorepo**, use paths under `projects/unops-ux/src/assets/` instead of `node_modules`.
|
|
51
66
|
|
|
52
67
|
## Tokens
|