@nivaro/react 0.1.186 → 0.1.187

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 (4) hide show
  1. package/dist/full.css +53 -2
  2. package/dist/index.js +22431 -21775
  3. package/package.json +1 -1
  4. package/styles.css +52 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nivaro/react",
3
- "version": "0.1.186",
3
+ "version": "0.1.187",
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
@@ -225,6 +225,57 @@ tr.nvr-row-flash > td {
225
225
  @keyframes nvr-fade-in { from { opacity: 0; } to { opacity: 1; } }
226
226
  .nvr-fade-in { animation: nvr-fade-in 160ms ease-out both; }
227
227
 
228
+ /* Item editor polish, round 2 */
229
+ /* Pinned header lifts once the body has scrolled under it. */
230
+ [data-nvr-header-row] { transition: box-shadow 220ms var(--nvr-ease-out), padding 200ms var(--nvr-ease-out); }
231
+ [data-nvr-header-row][data-nvr-condensed] { box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 8px 18px -14px rgba(15, 23, 42, 0.45); }
232
+ .dark [data-nvr-header-row][data-nvr-condensed] { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 18px -14px rgba(0, 0, 0, 0.8); }
233
+ /* A field a rule / autofill just wrote for the user: one cyan sweep. */
234
+ @keyframes nvr-autofill-glow {
235
+ 0% { box-shadow: 0 0 0 0 rgba(0, 206, 255, 0.55); }
236
+ 55% { box-shadow: 0 0 0 4px rgba(0, 206, 255, 0.16); }
237
+ 100% { box-shadow: 0 0 0 0 rgba(0, 206, 255, 0); }
238
+ }
239
+ .nvr-autofill-glow { animation: nvr-autofill-glow 900ms var(--nvr-ease-out) 1; border-radius: 6px; }
240
+ /* Floating panels (relation dropdowns) scale in from their anchor. */
241
+ @keyframes nvr-pop-in {
242
+ from { opacity: 0; transform: translateY(-2px) scale(0.985); }
243
+ to { opacity: 1; transform: none; }
244
+ }
245
+ .nvr-pop-in { animation: nvr-pop-in 130ms var(--nvr-ease-out) both; transform-origin: top center; }
246
+ /* A header-strip value that changed while the record is open. */
247
+ @keyframes nvr-value-pulse {
248
+ 0% { color: #00b8e0; }
249
+ 100% { color: inherit; }
250
+ }
251
+ .nvr-value-pulse { animation: nvr-value-pulse 1100ms ease-out 1; }
252
+
253
+ /* Item editor polish, round 3 */
254
+ .nvr-stagger-direct > .nvr-section-enter:nth-child(2) { animation-delay: 35ms; }
255
+ .nvr-stagger-direct > .nvr-section-enter:nth-child(3) { animation-delay: 70ms; }
256
+ .nvr-stagger-direct > .nvr-section-enter:nth-child(4) { animation-delay: 105ms; }
257
+ .nvr-stagger-direct > .nvr-section-enter:nth-child(5) { animation-delay: 140ms; }
258
+ .nvr-stagger-direct > .nvr-section-enter:nth-child(n+6) { animation-delay: 175ms; }
259
+
260
+ /* Item editor polish, round 5 */
261
+ /* Sliding underline under the active tab. */
262
+ .nvr-tab-indicator { transition: left 220ms var(--nvr-ease-out-expo), width 220ms var(--nvr-ease-out-expo); }
263
+ /* The unsaved-changes dot breathes once every few seconds once edits have sat unsaved for a while. */
264
+ @keyframes nvr-idle-breathe {
265
+ 0%, 85%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
266
+ 92% { box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.28); }
267
+ }
268
+ .nvr-idle-breathe { animation: nvr-idle-breathe 6s ease-out infinite; }
269
+ @keyframes nvr-value-pulse-bg {
270
+ 0% { background-color: rgba(0, 206, 255, 0.22); }
271
+ 100% { background-color: rgba(0, 206, 255, 0); }
272
+ }
273
+ .nvr-value-pulse-bg { animation: nvr-value-pulse-bg 1100ms ease-out 1; }
274
+
275
+
276
+
277
+
278
+
228
279
  @media (prefers-reduced-motion: reduce) {
229
- .nvr-saved-glow, .nvr-pop, .nvr-state-pulse, .nvr-fill-sweep, .nvr-rise-in, .nvr-section-enter, .nvr-tab-enter, .nvr-expand-in, .nvr-shake, .nvr-fade-in { animation: none; }
280
+ .nvr-saved-glow, .nvr-pop, .nvr-state-pulse, .nvr-fill-sweep, .nvr-rise-in, .nvr-section-enter, .nvr-tab-enter, .nvr-expand-in, .nvr-shake, .nvr-fade-in, .nvr-autofill-glow, .nvr-pop-in, .nvr-value-pulse, .nvr-value-pulse-bg, .nvr-idle-breathe { animation: none; }
230
281
  }