nitrowind-native 0.1.0 → 0.1.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/CHANGELOG.md +6 -0
- package/README.md +4 -0
- package/package.json +3 -3
- package/src/index.ts +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Optional native companion package for [`nitrowind`](https://github.com/Aris-ngoy/nitroui-libraries/blob/main/packages/nitrowind/docs/quick-start/jsx.mdx). Adds OS reduced-motion variants (`motion-reduce:` / `motion-safe:`) and animated theme transitions (`fade`, `circle`, `slide`, `blur`) to NitroUI apps.
|
|
4
4
|
|
|
5
|
+
<p align="center">
|
|
6
|
+
<img src="https://raw.githubusercontent.com/Aris-ngoy/nitroui-libraries/main/packages/nitrowind-native/docs/images/theme-transitions.gif" alt="Native animated theme transitions" width="240" />
|
|
7
|
+
</p>
|
|
8
|
+
|
|
5
9
|
## Install
|
|
6
10
|
|
|
7
11
|
Add `nitrowind-native` as a direct dependency of your NitroUI app (required for NitroUI autolinking), then run `nitro-ui prepare`:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitrowind-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Optional native capabilities for NitroWind: reduced-motion variants and animated theme transitions.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Aristote Ngoy",
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"nitro-ui-renderer": "0.2.1",
|
|
56
|
-
"nitrowind": "0.1.
|
|
56
|
+
"nitrowind": "0.1.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"nitrogen": "1.0.0-alpha.nightly.137.gd4793c40b8b8",
|
|
60
|
-
"nitrowind": "0.1.
|
|
60
|
+
"nitrowind": "0.1.1",
|
|
61
61
|
"typescript": "7.0.2"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
package/src/index.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { CaptureCoverOptions, NitroWindNative, Unsubscribe } from 'nitrowin
|
|
|
2
2
|
import { ReducedMotion } from './specs/ReducedMotion.nitro'
|
|
3
3
|
import { type CoverRequest, ThemeCover } from './specs/ThemeCover.nitro'
|
|
4
4
|
|
|
5
|
-
const VERSION = '0.1.
|
|
5
|
+
const VERSION = '0.1.1'
|
|
6
6
|
|
|
7
7
|
let reducedMotionInstance: ReducedMotion | undefined
|
|
8
8
|
let themeCoverInstance: ThemeCover | undefined
|