@nice2dev/ui-display 1.0.11 → 1.0.14

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.
Files changed (2) hide show
  1. package/README.md +14 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -16,6 +16,20 @@ npm install @nice2dev/ui-display
16
16
  import {} from /* component(s) */ '@nice2dev/ui-display';
17
17
  ```
18
18
 
19
+ ## Styling
20
+
21
+ This package ships unstyled component logic. Import the shared CSS bundle once at your app entrypoint:
22
+
23
+ ```tsx
24
+ import '@nice2dev/ui/style.css';
25
+ ```
26
+
27
+ Optional: opt into the legacy shorthand token aliases (`--bg-*`, `--text-*`, `--border-*`, ...) when migrating from a custom design-token system:
28
+
29
+ ```tsx
30
+ import '@nice2dev/ui/css/legacy-bg-text-aliases.css';
31
+ ```
32
+
19
33
  ## What's inside
20
34
 
21
35
  - **1** source file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/ui-display",
3
- "version": "1.0.11",
3
+ "version": "1.0.14",
4
4
  "description": "Nice2Dev UI Display — Badge, Avatar, Progress, Skeleton, Timeline, Carousel, Buttons, QRCode, Barcode",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -27,12 +27,12 @@
27
27
  "prepublishOnly": "npm run build"
28
28
  },
29
29
  "peerDependencies": {
30
- "@nice2dev/ui": "1.0.11",
30
+ "@nice2dev/ui": "^1.0.14",
31
31
  "react": ">=17.0.0",
32
32
  "react-dom": ">=17.0.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@nice2dev/ui": "1.0.11",
35
+ "@nice2dev/ui": "^1.0.14",
36
36
  "@types/react": "^18.2.0",
37
37
  "@types/react-dom": "^18.2.0",
38
38
  "@vitejs/plugin-react": "^4.3.0",