@jobber/components 8.8.0 → 8.8.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.
Files changed (2) hide show
  1. package/dist/styles.css +65 -35
  2. package/package.json +2 -2
package/dist/styles.css CHANGED
@@ -9,6 +9,14 @@
9
9
  * 3. The active <circle>'s stroke-dasharray expands and contracts so the
10
10
  * visible arc length grows and shrinks (Layer 3); stroke-dashoffset
11
11
  * slides the arc around the ring across the cycle.
12
+ *
13
+ * Durations are Material's spec scaled by 1.15× for a calmer pace
14
+ * (Material: 1568 / 5332 / 1333). The cycle:arc ratio is held at exactly
15
+ * 4:1 (6132 = 4 × 1533) so the four blooms per rotation stay evenly spaced.
16
+ *
17
+ * The `small` variant uses only Layer 1 — a fixed-length arc spun at a
18
+ * constant speed (~1.8× faster than base) — because the layered
19
+ * expand/rotate motion reads as too busy at the smaller size.
12
20
  */
13
21
 
14
22
  .YST686vLR3c- {
@@ -43,24 +51,14 @@
43
51
  height: var(--space-base);
44
52
  }
45
53
 
46
- /*
47
- * Layer 1 — continuous linear rotation on the SVG.
48
- *
49
- * The three indicator durations (1568ms outer rotation, 5332ms inner
50
- * 8-phase cycle, 1333ms arc expand/contract) are taken from Material
51
- * Web's published progress-motion spec. They are tuned against each
52
- * other to produce the canonical Material rhythm and are intentionally
53
- * inlined as literals because no other component currently consumes
54
- * them; promote them to design tokens once a second consumer (e.g. a
55
- * future `ProgressIndicator`) needs the same values.
56
- */
54
+ /* Layer 1 — continuous linear rotation on the SVG. */
57
55
 
58
56
  .Av9z-aLocss- {
59
57
  display: block;
60
58
  width: 100%;
61
59
  height: 100%;
62
- -webkit-animation: WvHFS--Nm80- 1568ms linear infinite;
63
- animation: WvHFS--Nm80- 1568ms linear infinite;
60
+ -webkit-animation: WvHFS--Nm80- 1803ms linear infinite;
61
+ animation: WvHFS--Nm80- 1803ms linear infinite;
64
62
  will-change: transform;
65
63
  }
66
64
 
@@ -78,14 +76,12 @@
78
76
  }
79
77
 
80
78
  /*
81
- * Layer 2 + 3 — the active arc.
79
+ * Layer 2 + 3 — the active arc. The circle has circumference 2π·20 ≈ 125.66
80
+ * (SVG units); the "200" gap exceeds it so only one segment shows at a time.
81
+ * stroke-linecap: round gives the soft pill-shaped tips.
82
82
  *
83
- * The circle has circumference 2π·20 125.66 (SVG units). The dasharray
84
- * (visible, gap) interpolates so the visible portion grows from ~1 unit to
85
- * ~95 units, while the dashoffset slides the arc around the ring. The
86
- * combined cycle is the canonical Material rhythm.
87
- *
88
- * stroke-linecap: round produces the soft pill-shaped tips on the arc.
83
+ * The expand animation is delayed by half its period so it starts fully
84
+ * bloomed and its phase is offset from the rotation start.
89
85
  */
90
86
 
91
87
  ._9XO0290QNCY- {
@@ -96,16 +92,35 @@
96
92
  stroke-linecap: round;
97
93
  -webkit-transform-origin: center;
98
94
  transform-origin: center;
99
- -webkit-animation:
100
- SHHICknKvqA- 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,
101
- _0m0Nzc5awnA- 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
102
- animation:
103
- SHHICknKvqA- 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,
104
- _0m0Nzc5awnA- 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
95
+ -webkit-animation: SHHICknKvqA- 6132ms cubic-bezier(0.4, 0, 0.2, 1) infinite
96
+ both,
97
+ _0m0Nzc5awnA- 1533ms linear infinite both;
98
+ animation: SHHICknKvqA- 6132ms cubic-bezier(0.4, 0, 0.2, 1) infinite
99
+ both,
100
+ _0m0Nzc5awnA- 1533ms linear infinite both;
101
+ -webkit-animation-delay: 0s, -766.5ms;
102
+ animation-delay: 0s, -766.5ms;
103
+ }
104
+
105
+ /*
106
+ * Small renders as a simple fixed-length arc spun only by the SVG
107
+ * (Layer 1). The 8-phase rotation (Layer 2) and the tail-chasing expand
108
+ * (Layer 3) read as too busy at this size, so both are disabled and the
109
+ * arc is given a constant length instead. It also spins ~1.8× faster
110
+ * (1803ms ÷ 1.8 ≈ 1000ms) so the simpler single arc still feels lively.
111
+ */
112
+
113
+ ._888S5Y2IeZ8- .Av9z-aLocss- {
114
+ -webkit-animation-duration: 1000ms;
115
+ animation-duration: 1000ms;
105
116
  }
106
117
 
107
118
  ._888S5Y2IeZ8- ._9XO0290QNCY- {
108
119
  stroke-width: 6;
120
+ stroke-dasharray: 40, 200;
121
+ stroke-dashoffset: 0;
122
+ -webkit-animation: none;
123
+ animation: none;
109
124
  }
110
125
 
111
126
  @-webkit-keyframes WvHFS--Nm80- {
@@ -196,38 +211,53 @@
196
211
 
197
212
  /*
198
213
  * Layer 3 — expand/contract the visible arc length via stroke-dasharray
199
- * while shifting it around the ring via stroke-dashoffset. The "200" gap
200
- * value exceeds the circle's circumference, ensuring only one stroke
201
- * segment is visible at a time.
214
+ * while sliding it around the ring via stroke-dashoffset.
215
+ *
216
+ * Rhythm (cycle = 4 × arc, so one breath = two rotation phases):
217
+ * - bloom open 0 → 50% (one full rotation phase)
218
+ * - deflate 50 → 80% (tail catches the head)
219
+ * - hold 80 → 100% (a beat before re-blooming)
220
+ *
221
+ * The minimum length stays at 8 (not ~0) so the arc never pinches to a dot,
222
+ * and the 100% keyframe matches 0% with the offset advanced one full
223
+ * circumference (≈125.66) so the loop is seamless — no catch-up blink.
202
224
  */
203
225
 
204
226
  @-webkit-keyframes _0m0Nzc5awnA- {
205
227
  0% {
206
- stroke-dasharray: 1, 200;
228
+ stroke-dasharray: 8, 200;
207
229
  stroke-dashoffset: 0;
208
230
  }
209
231
  50% {
210
232
  stroke-dasharray: 90, 200;
211
233
  stroke-dashoffset: -35;
212
234
  }
235
+ 80% {
236
+ stroke-dasharray: 8, 200;
237
+ stroke-dashoffset: -125.66;
238
+ }
213
239
  100% {
214
- stroke-dasharray: 90, 200;
215
- stroke-dashoffset: -125;
240
+ stroke-dasharray: 8, 200;
241
+ stroke-dashoffset: -125.66;
216
242
  }
217
243
  }
218
244
 
219
245
  @keyframes _0m0Nzc5awnA- {
220
246
  0% {
221
- stroke-dasharray: 1, 200;
247
+ stroke-dasharray: 8, 200;
222
248
  stroke-dashoffset: 0;
223
249
  }
224
250
  50% {
225
251
  stroke-dasharray: 90, 200;
226
252
  stroke-dashoffset: -35;
227
253
  }
254
+ 80% {
255
+ stroke-dasharray: 8, 200;
256
+ stroke-dashoffset: -125.66;
257
+ }
228
258
  100% {
229
- stroke-dasharray: 90, 200;
230
- stroke-dashoffset: -125;
259
+ stroke-dasharray: 8, 200;
260
+ stroke-dashoffset: -125.66;
231
261
  }
232
262
  }
233
263
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "8.8.0",
3
+ "version": "8.8.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -556,5 +556,5 @@
556
556
  "> 1%",
557
557
  "IE 10"
558
558
  ],
559
- "gitHead": "954f61ec1d4a5015f706979a120c55af6115a711"
559
+ "gitHead": "0bea341f82566e833ac0fe3486e829dc706918fe"
560
560
  }