@crewlethq/tokens 0.57.2 → 0.59.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/README.md CHANGED
@@ -83,6 +83,10 @@ nearestContrastShade('#00baba', '#f6f7fb', WCAG_CONTRAST.aaLarge); // '#00a0a0',
83
83
 
84
84
  Show the ratio of the value it returns, measured with `contrast`, rather than the floor it was asked for.
85
85
 
86
+ ## Changed in 0.58.0: the working ring's own pace
87
+
88
+ `--motion-duration-turn` (1000ms, `motion.duration.turn`) and `--motion-duration-sweep` (1500ms, `motion.duration.sweep`) are new. They are PERIODS, like `--motion-duration-breath`: one full rotation of a working ring, and one round of its arc lengthening and shortening. `@crewlethq/ui`'s `Spinner` turned once per `--motion-duration-slow` (300ms), a transition step, which is more than three turns a second. Nothing to change: no token is renamed or removed, and a stylesheet of your own that spins a mark reads `--motion-duration-turn` rather than a transition step.
89
+
86
90
  ## Changed in 0.50.0: the nearest shade that clears a floor
87
91
 
88
92
  | What changed | What to change | Details |
@@ -518,6 +522,8 @@ No token is renamed or removed here; values moved to the approved design, and se
518
522
  | `--motion-duration-moderate` | 200ms | A rail row's hover, a bar's background |
519
523
  | `--motion-duration-slow` | 300ms | A dialog entering, a drawer sliding |
520
524
  | `--motion-duration-breath` | 2200ms | The PERIOD of a mark saying work is still happening: one full round, out and back, 0.45 cycles a second. Not a transition. A pulsing `StatusDot` breathes one round of it |
525
+ | `--motion-duration-turn` | 1000ms | The PERIOD of one full rotation of a working ring (`Spinner`), linear. Not a transition |
526
+ | `--motion-duration-sweep` | 1500ms | The PERIOD of a working ring's arc lengthening and shortening, out and back. Not a whole number of turns, so the arc's longest reach lands somewhere new each round. Not a transition |
521
527
 
522
528
  A component that moves stops every motion it starts in the same stylesheet, naming the rule's selector again, after it, inside `@media (prefers-reduced-motion: reduce)`, which is what `crewlet-css-check` in `@crewlethq/ui` holds it to; and `@crewlethq/tokens/css/base` collapses motion for the whole document under `prefers-reduced-motion: reduce`.
523
529
 
@@ -142,6 +142,8 @@
142
142
  --motion-duration-moderate: 200ms; /** Nav hover, topbar background changes. */
143
143
  --motion-duration-slow: 300ms; /** Modal enter, drawer slide. */
144
144
  --motion-duration-breath: 2200ms; /** The PERIOD of a mark saying that work is still happening: one full round, out and back. 0.45 cycles a second, the approved design's 2.2s, slow enough to read as breathing rather than as an alert and far under the three flashes a second that are a seizure risk. A PERIOD rather than a transition: nothing uses it to move a surface from one place to another. */
145
+ --motion-duration-turn: 1000ms; /** The PERIOD of one full rotation of the working ring (Spinner), linear. One turn a second reads as steady work rather than as urgency: the ring turned once per slow step (300ms), more than three turns a second, and read as frantic. A PERIOD rather than a transition. */
146
+ --motion-duration-sweep: 1500ms; /** The PERIOD of the working ring's arc lengthening and shortening, out and back. Deliberately not a multiple of the turn, so the arc's longest reach lands at a different angle each round and the motion never reads as a loop. A PERIOD rather than a transition. */
145
147
  --motion-easing-default: ease;
146
148
  --motion-easing-out: ease-out;
147
149
  --motion-easing-in-out: ease-in-out;
package/dist/index.d.ts CHANGED
@@ -201,6 +201,8 @@ export declare const motion: {
201
201
  readonly moderate: "200ms";
202
202
  readonly slow: "300ms";
203
203
  readonly breath: "2200ms";
204
+ readonly turn: "1000ms";
205
+ readonly sweep: "1500ms";
204
206
  };
205
207
  readonly easing: {
206
208
  readonly default: "ease";
package/dist/index.js CHANGED
@@ -201,7 +201,9 @@ export const motion = {
201
201
  "base": "150ms",
202
202
  "moderate": "200ms",
203
203
  "slow": "300ms",
204
- "breath": "2200ms"
204
+ "breath": "2200ms",
205
+ "turn": "1000ms",
206
+ "sweep": "1500ms"
205
207
  },
206
208
  "easing": {
207
209
  "default": "ease",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/tokens",
3
- "version": "0.57.2",
3
+ "version": "0.59.0",
4
4
  "description": "Crewlet design tokens. Single JSON source compiled to CSS variables and typed JS modules.",
5
5
  "license": "MIT AND OFL-1.1",
6
6
  "repository": {