@n1kname/components 0.47.0 → 0.48.0

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": "@n1kname/components",
3
- "version": "0.47.0",
3
+ "version": "0.48.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -36,7 +36,7 @@
36
36
  "@n1kname/charts": "0.15.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "@n1kname/tokens": "^0.8.0",
39
+ "@n1kname/tokens": "^0.9.0",
40
40
  "astro": "^7.4.4"
41
41
  },
42
42
  "publishConfig": {
@@ -363,9 +363,9 @@ const labelledby = [`${uid}-title`, text && `${uid}-text`, overline && `${uid}-o
363
363
  0 1px 2px rgb(0 0 0 / 0.2),
364
364
  0 30px 60px -16px rgb(0 0 0 / 0.5);
365
365
  transition:
366
- transform 600ms var(--ease-soft, cubic-bezier(0.16, 1, 0.3, 1)),
367
- translate 900ms var(--ease-soft, cubic-bezier(0.16, 1, 0.3, 1)),
368
- opacity 700ms ease-out;
366
+ transform var(--motion-grow, 700ms) var(--ease-soft, cubic-bezier(0.16, 1, 0.3, 1)),
367
+ translate var(--motion-reveal, 900ms) var(--ease-soft, cubic-bezier(0.16, 1, 0.3, 1)),
368
+ opacity var(--motion-grow, 700ms) var(--ease-out, ease-out);
369
369
  }
370
370
 
371
371
  .screen :global(img) {
@@ -387,9 +387,9 @@ const labelledby = [`${uid}-title`, text && `${uid}-text`, overline && `${uid}-o
387
387
  --lift: 0px;
388
388
  transform: translateY(var(--lift));
389
389
  transition:
390
- transform 700ms var(--ease-soft, cubic-bezier(0.16, 1, 0.3, 1)),
391
- translate 900ms var(--ease-soft, cubic-bezier(0.16, 1, 0.3, 1)),
392
- opacity 700ms ease-out;
390
+ transform var(--motion-grow, 700ms) var(--ease-soft, cubic-bezier(0.16, 1, 0.3, 1)),
391
+ translate var(--motion-reveal, 900ms) var(--ease-soft, cubic-bezier(0.16, 1, 0.3, 1)),
392
+ opacity var(--motion-grow, 700ms) var(--ease-out, ease-out);
393
393
  transition-delay: 0ms, calc(var(--i) * 90ms), calc(var(--i) * 90ms);
394
394
  }
395
395
 
@@ -496,7 +496,9 @@ const labelledby = [`${uid}-title`, text && `${uid}-text`, overline && `${uid}-o
496
496
  * and the arrival instead of replacing them. */
497
497
  @media (prefers-reduced-motion: no-preference) {
498
498
  .layer.float :global(img) {
499
- animation: layer-float 6s ease-in-out infinite;
499
+ /* Three slow breaths, then still: anything moving on its own for more than five seconds
500
+ * next to other content needs to stop (WCAG 2.2.2). */
501
+ animation: layer-float var(--motion-float, 6s) ease-in-out 3;
500
502
  }
501
503
  }
502
504
 
@@ -253,7 +253,7 @@ const fit = (img: ImageMetadata) => [...new Set(widths.filter((w) => w <= img.wi
253
253
  position: absolute;
254
254
  --lift: 0px;
255
255
  transform: translate(calc(var(--px) * var(--depth) * 16px), calc(var(--py) * var(--depth) * 12px + var(--lift)));
256
- transition: transform 700ms var(--ease-soft, cubic-bezier(0.16, 1, 0.3, 1));
256
+ transition: transform var(--motion-grow, 700ms) var(--ease-soft, cubic-bezier(0.16, 1, 0.3, 1));
257
257
  }
258
258
 
259
259
  .layer :global(img) {
@@ -296,7 +296,7 @@ const fit = (img: ImageMetadata) => [...new Set(widths.filter((w) => w <= img.wi
296
296
  box-shadow:
297
297
  0 1px 2px rgb(0 0 0 / 0.18),
298
298
  0 24px 60px -12px rgb(0 0 0 / 0.45);
299
- transition: transform 700ms var(--ease-soft, cubic-bezier(0.16, 1, 0.3, 1));
299
+ transition: transform var(--motion-grow, 700ms) var(--ease-soft, cubic-bezier(0.16, 1, 0.3, 1));
300
300
  }
301
301
 
302
302
  .screen :global(img) {
@@ -429,7 +429,9 @@ const fit = (img: ImageMetadata) => [...new Set(widths.filter((w) => w <= img.wi
429
429
  * and the arrival instead of replacing them. */
430
430
  @media (prefers-reduced-motion: no-preference) {
431
431
  .layer.float :global(img) {
432
- animation: layer-float 6s ease-in-out infinite;
432
+ /* Three slow breaths, then still: anything moving on its own for more than five seconds
433
+ * next to other content needs to stop (WCAG 2.2.2). */
434
+ animation: layer-float var(--motion-float, 6s) ease-in-out 3;
433
435
  }
434
436
  }
435
437