@nivaro/react 0.1.91 → 0.1.93

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nivaro/react",
3
- "version": "0.1.91",
3
+ "version": "0.1.93",
4
4
  "description": "React hooks and components for Nivaro CMS forms",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/styles.css CHANGED
@@ -150,3 +150,46 @@ tr.nvr-row-flash > td {
150
150
  background-color: hsl(var(--card));
151
151
  color: hsl(var(--foreground));
152
152
  }
153
+
154
+ /* ─── Motion system (#317) — tokens + shared keyframes ─────────────────────
155
+ All sprint animations draw from these; reduced-motion collapses them. */
156
+ :root {
157
+ --nvr-dur-fast: 120ms;
158
+ --nvr-dur-base: 200ms;
159
+ --nvr-dur-slow: 320ms;
160
+ --nvr-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
161
+ --nvr-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
162
+ }
163
+ @keyframes nvr-glow-sweep {
164
+ 0% { box-shadow: 0 0 0 0 rgba(0, 206, 255, 0.45); }
165
+ 60% { box-shadow: 0 0 0 5px rgba(0, 206, 255, 0.12); }
166
+ 100% { box-shadow: 0 0 0 0 rgba(0, 206, 255, 0); }
167
+ }
168
+ .nvr-saved-glow {
169
+ animation: nvr-glow-sweep 900ms var(--nvr-ease-out) 1;
170
+ border-radius: 8px;
171
+ }
172
+ @keyframes nvr-pop {
173
+ 0% { transform: scale(0.6); opacity: 0; }
174
+ 60% { transform: scale(1.12); opacity: 1; }
175
+ 100% { transform: scale(1); opacity: 1; }
176
+ }
177
+ .nvr-pop { animation: nvr-pop var(--nvr-dur-slow) var(--nvr-ease-out-expo) 1; }
178
+ @keyframes nvr-state-pulse {
179
+ 0% { transform: scale(0.92); filter: brightness(1.25); }
180
+ 100% { transform: scale(1); filter: brightness(1); }
181
+ }
182
+ .nvr-state-pulse { animation: nvr-state-pulse 480ms var(--nvr-ease-out-expo) 1; }
183
+ @keyframes nvr-fill-sweep {
184
+ from { transform: scale(0); }
185
+ to { transform: scale(1); }
186
+ }
187
+ .nvr-fill-sweep { animation: nvr-fill-sweep var(--nvr-dur-slow) var(--nvr-ease-out) 1; transform-origin: center; }
188
+ @keyframes nvr-rise-in {
189
+ from { opacity: 0; transform: translateY(4px); }
190
+ to { opacity: 1; transform: none; }
191
+ }
192
+ .nvr-rise-in { animation: nvr-rise-in var(--nvr-dur-base) var(--nvr-ease-out) 1; }
193
+ @media (prefers-reduced-motion: reduce) {
194
+ .nvr-saved-glow, .nvr-pop, .nvr-state-pulse, .nvr-fill-sweep, .nvr-rise-in { animation: none; }
195
+ }