rei-kit 2.1.0 → 2.3.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 +77 -25
- package/dist/format-BEvBK1SJ.js +80 -0
- package/dist/format-BEvBK1SJ.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -53
- package/dist/index.js.map +1 -1
- package/dist/mobile.css +28 -0
- package/dist/motion/BaseMarquee.vue.d.ts +37 -0
- package/dist/motion/BaseReveal.vue.d.ts +34 -0
- package/dist/motion/CountUp.vue.d.ts +28 -0
- package/dist/motion/NumberTicker.vue.d.ts +33 -0
- package/dist/motion/TextRotate.vue.d.ts +24 -0
- package/dist/motion/TypeWriter.vue.d.ts +30 -0
- package/dist/motion/environment.d.ts +21 -0
- package/dist/motion/index.d.ts +15 -0
- package/dist/motion.css +119 -0
- package/dist/motion.js +434 -0
- package/dist/motion.js.map +1 -0
- package/dist/styles.css +162 -8
- package/dist/utils/format.d.ts +16 -0
- package/dist/web.css +28 -0
- package/dist/web.js +3 -3
- package/dist/web.js.map +1 -1
- package/package.json +9 -2
package/dist/motion.js
ADDED
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
import { n as formatNumber } from "./format-BEvBK1SJ.js";
|
|
2
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.js";
|
|
3
|
+
import { Fragment, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, useTemplateRef, watch, withCtx } from "vue";
|
|
4
|
+
//#region src/motion/environment.ts
|
|
5
|
+
/**
|
|
6
|
+
* What every moving part asks before it moves.
|
|
7
|
+
*
|
|
8
|
+
* Kept in one place so the answers cannot drift apart: a counter that honoured
|
|
9
|
+
* reduced motion beside a marquee that did not would be worse than neither.
|
|
10
|
+
* Each is safe to call on a server, where the answer is "do not move" — the
|
|
11
|
+
* server renders the final state, and that is what a reader without
|
|
12
|
+
* JavaScript should see.
|
|
13
|
+
*/
|
|
14
|
+
/** Whether the reader has asked the operating system for less motion. */
|
|
15
|
+
function prefersReducedMotion() {
|
|
16
|
+
if (typeof window === "undefined" || typeof window.matchMedia !== "function") return true;
|
|
17
|
+
return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
18
|
+
}
|
|
19
|
+
/** One frame from now, or the nearest thing to it where frames do not exist. */
|
|
20
|
+
function nextFrame(callback) {
|
|
21
|
+
if (typeof requestAnimationFrame === "function") {
|
|
22
|
+
const id = requestAnimationFrame(callback);
|
|
23
|
+
return () => cancelAnimationFrame(id);
|
|
24
|
+
}
|
|
25
|
+
const id = setTimeout(callback, 16);
|
|
26
|
+
return () => clearTimeout(id);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Calls `callback` with whether `element` is on screen, each time that
|
|
30
|
+
* changes. Returns the function that stops watching.
|
|
31
|
+
*
|
|
32
|
+
* Without `IntersectionObserver` the element counts as visible straight away:
|
|
33
|
+
* an animation that never starts is a missing number, not a missing flourish.
|
|
34
|
+
*/
|
|
35
|
+
function watchVisibility(element, callback, threshold = .25) {
|
|
36
|
+
if (typeof IntersectionObserver === "undefined") {
|
|
37
|
+
callback(true);
|
|
38
|
+
return () => {};
|
|
39
|
+
}
|
|
40
|
+
const observer = new IntersectionObserver((entries) => {
|
|
41
|
+
for (const entry of entries) callback(entry.isIntersecting);
|
|
42
|
+
}, { threshold });
|
|
43
|
+
observer.observe(element);
|
|
44
|
+
return () => observer.disconnect();
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/motion/NumberTicker.vue?vue&type=script&setup=true&lang.ts
|
|
48
|
+
var _hoisted_1$3 = { class: "rk-ticker" };
|
|
49
|
+
var _hoisted_2$3 = { class: "sr-only" };
|
|
50
|
+
var _hoisted_3$2 = {
|
|
51
|
+
class: "rk-ticker-track",
|
|
52
|
+
"aria-hidden": "true"
|
|
53
|
+
};
|
|
54
|
+
var _hoisted_4 = {
|
|
55
|
+
key: 1,
|
|
56
|
+
class: "rk-ticker-char"
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/motion/NumberTicker.vue
|
|
60
|
+
var NumberTicker_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
61
|
+
__name: "NumberTicker",
|
|
62
|
+
props: {
|
|
63
|
+
value: {},
|
|
64
|
+
from: { default: () => void 0 },
|
|
65
|
+
format: { default: () => void 0 },
|
|
66
|
+
locale: { default: () => void 0 }
|
|
67
|
+
},
|
|
68
|
+
setup(__props) {
|
|
69
|
+
const shown = ref(__props.from ?? __props.value);
|
|
70
|
+
const text = (n) => __props.locale === void 0 ? formatNumber(n, __props.format) : formatNumber(n, __props.format, __props.locale);
|
|
71
|
+
/** What a screen reader hears: the destination, never a digit mid-roll. */
|
|
72
|
+
const label = computed(() => text(__props.value));
|
|
73
|
+
const columns = computed(() => {
|
|
74
|
+
const chars = Array.from(text(shown.value));
|
|
75
|
+
return chars.map((char, index) => ({
|
|
76
|
+
key: chars.length - index,
|
|
77
|
+
char,
|
|
78
|
+
digit: /[0-9]/.test(char) ? Number(char) : null
|
|
79
|
+
}));
|
|
80
|
+
});
|
|
81
|
+
let cancel = null;
|
|
82
|
+
onMounted(() => {
|
|
83
|
+
if (__props.from === void 0) return;
|
|
84
|
+
cancel = nextFrame(() => {
|
|
85
|
+
cancel = nextFrame(() => shown.value = __props.value);
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
watch(() => __props.value, (next) => {
|
|
89
|
+
cancel?.();
|
|
90
|
+
shown.value = next;
|
|
91
|
+
});
|
|
92
|
+
onBeforeUnmount(() => cancel?.());
|
|
93
|
+
return (_ctx, _cache) => {
|
|
94
|
+
return openBlock(), createElementBlock("span", _hoisted_1$3, [createElementVNode("span", _hoisted_2$3, toDisplayString(label.value), 1), createElementVNode("span", _hoisted_3$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(columns.value, (column) => {
|
|
95
|
+
return openBlock(), createElementBlock(Fragment, { key: column.key }, [column.digit !== null ? (openBlock(), createElementBlock("span", {
|
|
96
|
+
key: 0,
|
|
97
|
+
class: "rk-ticker-digit",
|
|
98
|
+
style: normalizeStyle({ "--rk-ticker-order": column.key })
|
|
99
|
+
}, [createElementVNode("span", {
|
|
100
|
+
class: "rk-ticker-strip",
|
|
101
|
+
style: normalizeStyle({ transform: `translateY(${column.digit * -10}%)` })
|
|
102
|
+
}, [(openBlock(), createElementBlock(Fragment, null, renderList(10, (n) => {
|
|
103
|
+
return createElementVNode("span", { key: n }, toDisplayString(n - 1), 1);
|
|
104
|
+
}), 64))], 4)], 4)) : (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(column.char), 1))], 64);
|
|
105
|
+
}), 128))])]);
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
}), [["__scopeId", "data-v-e2db153c"]]);
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region src/motion/CountUp.vue?vue&type=script&setup=true&lang.ts
|
|
111
|
+
var _hoisted_1$2 = { class: "sr-only" };
|
|
112
|
+
var _hoisted_2$2 = { "aria-hidden": "true" };
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/motion/CountUp.vue
|
|
115
|
+
var CountUp_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
116
|
+
__name: "CountUp",
|
|
117
|
+
props: {
|
|
118
|
+
value: {},
|
|
119
|
+
from: { default: 0 },
|
|
120
|
+
duration: { default: 1600 },
|
|
121
|
+
format: { default: () => void 0 },
|
|
122
|
+
locale: { default: () => void 0 }
|
|
123
|
+
},
|
|
124
|
+
setup(__props) {
|
|
125
|
+
const root = useTemplateRef("root");
|
|
126
|
+
const shown = ref(__props.value);
|
|
127
|
+
const text = (n) => __props.locale === void 0 ? formatNumber(n, __props.format) : formatNumber(n, __props.format, __props.locale);
|
|
128
|
+
const display = computed(() => text(shown.value));
|
|
129
|
+
const label = computed(() => text(__props.value));
|
|
130
|
+
let cancelFrame = null;
|
|
131
|
+
let stopWatching = null;
|
|
132
|
+
let started = false;
|
|
133
|
+
const easeOut = (t) => 1 - (1 - t) ** 3;
|
|
134
|
+
function countTo(target) {
|
|
135
|
+
cancelFrame?.();
|
|
136
|
+
const start = shown.value;
|
|
137
|
+
const began = performance.now();
|
|
138
|
+
const step = () => {
|
|
139
|
+
const progress = Math.min(1, (performance.now() - began) / __props.duration);
|
|
140
|
+
shown.value = start + (target - start) * easeOut(progress);
|
|
141
|
+
cancelFrame = progress < 1 ? nextFrame(step) : null;
|
|
142
|
+
};
|
|
143
|
+
cancelFrame = nextFrame(step);
|
|
144
|
+
}
|
|
145
|
+
onMounted(() => {
|
|
146
|
+
if (prefersReducedMotion() || __props.duration <= 0 || !root.value) {
|
|
147
|
+
started = true;
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
shown.value = __props.from;
|
|
151
|
+
stopWatching = watchVisibility(root.value, (visible) => {
|
|
152
|
+
if (!visible || started) return;
|
|
153
|
+
started = true;
|
|
154
|
+
stopWatching?.();
|
|
155
|
+
countTo(__props.value);
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
watch(() => __props.value, (next) => {
|
|
159
|
+
if (!started) return;
|
|
160
|
+
if (prefersReducedMotion() || __props.duration <= 0) shown.value = next;
|
|
161
|
+
else countTo(next);
|
|
162
|
+
});
|
|
163
|
+
onBeforeUnmount(() => {
|
|
164
|
+
cancelFrame?.();
|
|
165
|
+
stopWatching?.();
|
|
166
|
+
});
|
|
167
|
+
return (_ctx, _cache) => {
|
|
168
|
+
return openBlock(), createElementBlock("span", {
|
|
169
|
+
ref_key: "root",
|
|
170
|
+
ref: root,
|
|
171
|
+
class: "rk-count"
|
|
172
|
+
}, [createElementVNode("span", _hoisted_1$2, toDisplayString(label.value), 1), createElementVNode("span", _hoisted_2$2, toDisplayString(display.value), 1)], 512);
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
}), [["__scopeId", "data-v-3cefce6f"]]);
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region src/motion/TextRotate.vue
|
|
178
|
+
var TextRotate_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
179
|
+
__name: "TextRotate",
|
|
180
|
+
props: {
|
|
181
|
+
words: {},
|
|
182
|
+
interval: { default: 2400 },
|
|
183
|
+
paused: {
|
|
184
|
+
type: Boolean,
|
|
185
|
+
default: false
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
setup(__props) {
|
|
189
|
+
const index = ref(0);
|
|
190
|
+
const held = ref(false);
|
|
191
|
+
const current = computed(() => __props.words[index.value % Math.max(__props.words.length, 1)] ?? "");
|
|
192
|
+
let timer = null;
|
|
193
|
+
function stop() {
|
|
194
|
+
if (timer !== null) clearInterval(timer);
|
|
195
|
+
timer = null;
|
|
196
|
+
}
|
|
197
|
+
function start() {
|
|
198
|
+
stop();
|
|
199
|
+
if (__props.paused || held.value || __props.words.length < 2 || prefersReducedMotion()) return;
|
|
200
|
+
timer = setInterval(() => {
|
|
201
|
+
index.value = (index.value + 1) % __props.words.length;
|
|
202
|
+
}, __props.interval);
|
|
203
|
+
}
|
|
204
|
+
onMounted(start);
|
|
205
|
+
onBeforeUnmount(stop);
|
|
206
|
+
watch([
|
|
207
|
+
() => __props.paused,
|
|
208
|
+
held,
|
|
209
|
+
() => __props.words.length,
|
|
210
|
+
() => __props.interval
|
|
211
|
+
], start);
|
|
212
|
+
return (_ctx, _cache) => {
|
|
213
|
+
return openBlock(), createElementBlock("span", {
|
|
214
|
+
class: "rk-rotate",
|
|
215
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event) => held.value = true),
|
|
216
|
+
onMouseleave: _cache[1] || (_cache[1] = ($event) => held.value = false),
|
|
217
|
+
onFocusin: _cache[2] || (_cache[2] = ($event) => held.value = true),
|
|
218
|
+
onFocusout: _cache[3] || (_cache[3] = ($event) => held.value = false)
|
|
219
|
+
}, [createVNode(Transition, {
|
|
220
|
+
name: "rk-rotate",
|
|
221
|
+
mode: "out-in"
|
|
222
|
+
}, {
|
|
223
|
+
default: withCtx(() => [(openBlock(), createElementBlock("span", {
|
|
224
|
+
key: current.value,
|
|
225
|
+
class: "rk-rotate-word"
|
|
226
|
+
}, toDisplayString(current.value), 1))]),
|
|
227
|
+
_: 1
|
|
228
|
+
})], 32);
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
}), [["__scopeId", "data-v-2ca5182f"]]);
|
|
232
|
+
//#endregion
|
|
233
|
+
//#region src/motion/TypeWriter.vue?vue&type=script&setup=true&lang.ts
|
|
234
|
+
var _hoisted_1$1 = { class: "sr-only" };
|
|
235
|
+
var _hoisted_2$1 = { "aria-hidden": "true" };
|
|
236
|
+
var _hoisted_3$1 = {
|
|
237
|
+
key: 0,
|
|
238
|
+
class: "rk-type-cursor",
|
|
239
|
+
"aria-hidden": "true"
|
|
240
|
+
};
|
|
241
|
+
//#endregion
|
|
242
|
+
//#region src/motion/TypeWriter.vue
|
|
243
|
+
var TypeWriter_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
244
|
+
__name: "TypeWriter",
|
|
245
|
+
props: {
|
|
246
|
+
text: {},
|
|
247
|
+
speed: { default: 45 },
|
|
248
|
+
deleteSpeed: { default: 25 },
|
|
249
|
+
hold: { default: 1800 },
|
|
250
|
+
loop: {
|
|
251
|
+
type: Boolean,
|
|
252
|
+
default: true
|
|
253
|
+
},
|
|
254
|
+
cursor: {
|
|
255
|
+
type: Boolean,
|
|
256
|
+
default: true
|
|
257
|
+
},
|
|
258
|
+
paused: {
|
|
259
|
+
type: Boolean,
|
|
260
|
+
default: false
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
setup(__props) {
|
|
264
|
+
const lines = computed(() => typeof __props.text === "string" ? [__props.text] : [...__props.text]);
|
|
265
|
+
const line = ref(0);
|
|
266
|
+
const current = computed(() => lines.value[line.value % Math.max(lines.value.length, 1)] ?? "");
|
|
267
|
+
const typed = ref(current.value.length);
|
|
268
|
+
const deleting = ref(false);
|
|
269
|
+
const held = ref(false);
|
|
270
|
+
const visible = computed(() => current.value.slice(0, typed.value));
|
|
271
|
+
let timer = null;
|
|
272
|
+
function stop() {
|
|
273
|
+
if (timer !== null) clearTimeout(timer);
|
|
274
|
+
timer = null;
|
|
275
|
+
}
|
|
276
|
+
function tick() {
|
|
277
|
+
const full = current.value.length;
|
|
278
|
+
if (!deleting.value && typed.value < full) {
|
|
279
|
+
typed.value += 1;
|
|
280
|
+
return schedule(__props.speed);
|
|
281
|
+
}
|
|
282
|
+
if (!deleting.value) {
|
|
283
|
+
const last = line.value === lines.value.length - 1;
|
|
284
|
+
if (lines.value.length < 2 || last && !__props.loop) return;
|
|
285
|
+
deleting.value = true;
|
|
286
|
+
return schedule(__props.hold);
|
|
287
|
+
}
|
|
288
|
+
if (typed.value > 0) {
|
|
289
|
+
typed.value -= 1;
|
|
290
|
+
return schedule(__props.deleteSpeed);
|
|
291
|
+
}
|
|
292
|
+
deleting.value = false;
|
|
293
|
+
line.value = (line.value + 1) % lines.value.length;
|
|
294
|
+
schedule(__props.speed);
|
|
295
|
+
}
|
|
296
|
+
function schedule(delay) {
|
|
297
|
+
stop();
|
|
298
|
+
if (__props.paused || held.value) return;
|
|
299
|
+
timer = setTimeout(tick, delay);
|
|
300
|
+
}
|
|
301
|
+
onMounted(() => {
|
|
302
|
+
if (prefersReducedMotion()) return;
|
|
303
|
+
typed.value = 0;
|
|
304
|
+
schedule(__props.speed);
|
|
305
|
+
});
|
|
306
|
+
watch([() => __props.paused, held], () => {
|
|
307
|
+
if (prefersReducedMotion()) return;
|
|
308
|
+
schedule(__props.speed);
|
|
309
|
+
});
|
|
310
|
+
watch(lines, () => {
|
|
311
|
+
stop();
|
|
312
|
+
line.value = 0;
|
|
313
|
+
deleting.value = false;
|
|
314
|
+
typed.value = prefersReducedMotion() ? current.value.length : 0;
|
|
315
|
+
if (!prefersReducedMotion()) schedule(__props.speed);
|
|
316
|
+
});
|
|
317
|
+
onBeforeUnmount(stop);
|
|
318
|
+
return (_ctx, _cache) => {
|
|
319
|
+
return openBlock(), createElementBlock("span", {
|
|
320
|
+
class: "rk-type",
|
|
321
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event) => held.value = true),
|
|
322
|
+
onMouseleave: _cache[1] || (_cache[1] = ($event) => held.value = false),
|
|
323
|
+
onFocusin: _cache[2] || (_cache[2] = ($event) => held.value = true),
|
|
324
|
+
onFocusout: _cache[3] || (_cache[3] = ($event) => held.value = false)
|
|
325
|
+
}, [
|
|
326
|
+
createElementVNode("span", _hoisted_1$1, toDisplayString(current.value), 1),
|
|
327
|
+
createElementVNode("span", _hoisted_2$1, toDisplayString(visible.value), 1),
|
|
328
|
+
__props.cursor ? (openBlock(), createElementBlock("span", _hoisted_3$1)) : createCommentVNode("", true)
|
|
329
|
+
], 32);
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
}), [["__scopeId", "data-v-05f176ab"]]);
|
|
333
|
+
//#endregion
|
|
334
|
+
//#region src/motion/BaseReveal.vue
|
|
335
|
+
var BaseReveal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
336
|
+
__name: "BaseReveal",
|
|
337
|
+
props: {
|
|
338
|
+
effect: { default: "rise" },
|
|
339
|
+
delay: { default: 0 },
|
|
340
|
+
once: {
|
|
341
|
+
type: Boolean,
|
|
342
|
+
default: true
|
|
343
|
+
},
|
|
344
|
+
as: { default: "div" }
|
|
345
|
+
},
|
|
346
|
+
setup(__props) {
|
|
347
|
+
const root = useTemplateRef("root");
|
|
348
|
+
const hidden = ref(false);
|
|
349
|
+
let stop = null;
|
|
350
|
+
onMounted(() => {
|
|
351
|
+
if (prefersReducedMotion() || !root.value) return;
|
|
352
|
+
stop = watchVisibility(root.value, (visible) => {
|
|
353
|
+
hidden.value = !visible;
|
|
354
|
+
if (visible && __props.once) {
|
|
355
|
+
stop?.();
|
|
356
|
+
stop = null;
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
});
|
|
360
|
+
onBeforeUnmount(() => stop?.());
|
|
361
|
+
return (_ctx, _cache) => {
|
|
362
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.as), {
|
|
363
|
+
ref_key: "root",
|
|
364
|
+
ref: root,
|
|
365
|
+
class: normalizeClass(["rk-reveal", [`rk-reveal-${__props.effect}`, { "is-hidden": hidden.value }]]),
|
|
366
|
+
style: normalizeStyle({ "--rk-reveal-delay": `${__props.delay}ms` })
|
|
367
|
+
}, {
|
|
368
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
369
|
+
_: 3
|
|
370
|
+
}, 8, ["class", "style"]);
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
}), [["__scopeId", "data-v-c8b25508"]]);
|
|
374
|
+
//#endregion
|
|
375
|
+
//#region src/motion/BaseMarquee.vue?vue&type=script&setup=true&lang.ts
|
|
376
|
+
var _hoisted_1 = { class: "rk-marquee-track" };
|
|
377
|
+
var _hoisted_2 = { class: "rk-marquee-group" };
|
|
378
|
+
var _hoisted_3 = {
|
|
379
|
+
class: "rk-marquee-group",
|
|
380
|
+
"aria-hidden": "true",
|
|
381
|
+
inert: ""
|
|
382
|
+
};
|
|
383
|
+
//#endregion
|
|
384
|
+
//#region src/motion/BaseMarquee.vue
|
|
385
|
+
var BaseMarquee_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
386
|
+
__name: "BaseMarquee",
|
|
387
|
+
props: {
|
|
388
|
+
duration: { default: 30 },
|
|
389
|
+
reverse: {
|
|
390
|
+
type: Boolean,
|
|
391
|
+
default: false
|
|
392
|
+
},
|
|
393
|
+
paused: {
|
|
394
|
+
type: Boolean,
|
|
395
|
+
default: false
|
|
396
|
+
},
|
|
397
|
+
fade: {
|
|
398
|
+
type: Boolean,
|
|
399
|
+
default: true
|
|
400
|
+
},
|
|
401
|
+
gap: { default: "2rem" }
|
|
402
|
+
},
|
|
403
|
+
setup(__props) {
|
|
404
|
+
/**
|
|
405
|
+
* A row that scrolls sideways without end: logos, testimonials, a ticker.
|
|
406
|
+
*
|
|
407
|
+
* The content is rendered twice and the track moves by exactly one copy, so
|
|
408
|
+
* the loop has no seam and no measuring. The second copy is `inert` and
|
|
409
|
+
* hidden from assistive tech — a keyboard or screen-reader user meets each
|
|
410
|
+
* item once.
|
|
411
|
+
*
|
|
412
|
+
* It stops while hovered or focused, and on `paused`. For a reader who asked
|
|
413
|
+
* for less motion it does not move at all: it becomes a row that scrolls by
|
|
414
|
+
* hand, so nothing in it is out of reach.
|
|
415
|
+
*/
|
|
416
|
+
return (_ctx, _cache) => {
|
|
417
|
+
return openBlock(), createElementBlock("div", {
|
|
418
|
+
class: normalizeClass(["rk-marquee", {
|
|
419
|
+
"is-reverse": __props.reverse,
|
|
420
|
+
"is-paused": __props.paused,
|
|
421
|
+
"is-faded": __props.fade
|
|
422
|
+
}]),
|
|
423
|
+
style: normalizeStyle({
|
|
424
|
+
"--rk-marquee-duration": `${__props.duration}s`,
|
|
425
|
+
"--rk-marquee-gap": __props.gap
|
|
426
|
+
})
|
|
427
|
+
}, [createElementVNode("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]), createElementVNode("div", _hoisted_3, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])])], 6);
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
}), [["__scopeId", "data-v-9a25b43d"]]);
|
|
431
|
+
//#endregion
|
|
432
|
+
export { BaseMarquee_default as BaseMarquee, BaseReveal_default as BaseReveal, CountUp_default as CountUp, NumberTicker_default as NumberTicker, TextRotate_default as TextRotate, TypeWriter_default as TypeWriter };
|
|
433
|
+
|
|
434
|
+
//# sourceMappingURL=motion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion.js","names":[],"sources":["../src/motion/environment.ts","../src/motion/NumberTicker.vue","../src/motion/NumberTicker.vue","../src/motion/CountUp.vue","../src/motion/CountUp.vue","../src/motion/TextRotate.vue","../src/motion/TextRotate.vue","../src/motion/TypeWriter.vue","../src/motion/TypeWriter.vue","../src/motion/BaseReveal.vue","../src/motion/BaseReveal.vue","../src/motion/BaseMarquee.vue","../src/motion/BaseMarquee.vue"],"sourcesContent":["/**\n * What every moving part asks before it moves.\n *\n * Kept in one place so the answers cannot drift apart: a counter that honoured\n * reduced motion beside a marquee that did not would be worse than neither.\n * Each is safe to call on a server, where the answer is \"do not move\" — the\n * server renders the final state, and that is what a reader without\n * JavaScript should see.\n */\n\n/** Whether the reader has asked the operating system for less motion. */\nexport function prefersReducedMotion(): boolean {\n if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') return true\n\n return window.matchMedia('(prefers-reduced-motion: reduce)').matches\n}\n\n/** One frame from now, or the nearest thing to it where frames do not exist. */\nexport function nextFrame(callback: () => void): () => void {\n if (typeof requestAnimationFrame === 'function') {\n const id = requestAnimationFrame(callback)\n\n return () => cancelAnimationFrame(id)\n }\n\n const id = setTimeout(callback, 16)\n\n return () => clearTimeout(id)\n}\n\n/**\n * Calls `callback` with whether `element` is on screen, each time that\n * changes. Returns the function that stops watching.\n *\n * Without `IntersectionObserver` the element counts as visible straight away:\n * an animation that never starts is a missing number, not a missing flourish.\n */\nexport function watchVisibility(\n element: Element,\n callback: (visible: boolean) => void,\n threshold = 0.25,\n): () => void {\n if (typeof IntersectionObserver === 'undefined') {\n callback(true)\n\n return () => {}\n }\n\n const observer = new IntersectionObserver(\n (entries) => {\n for (const entry of entries) callback(entry.isIntersecting)\n },\n { threshold },\n )\n observer.observe(element)\n\n return () => observer.disconnect()\n}\n","<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'\n\nimport { formatNumber } from '../utils/format'\nimport { nextFrame } from './environment'\n\n/**\n * A number whose digits roll to their new value, like an odometer or a note\n * counter.\n *\n * Each digit is a column of 0–9 moved into place, so going from 19 to 20\n * turns the tens over rather than redrawing the whole number — the eye\n * follows what changed. Positions are counted from the right, which keeps the\n * units column the units column when the number grows a digit, and keeps a\n * thousands separator where it was.\n *\n * Formatting is `Intl.NumberFormat`, so currency, percent, grouping and\n * decimals are the locale's, and change with it. A screen reader hears the\n * value once, as formatted text; the rolling columns are hidden from it.\n *\n * On a server, and for a reader who asked for less motion, it is the number\n * and nothing else.\n */\nconst {\n value,\n from = undefined,\n format = undefined,\n locale = undefined,\n} = defineProps<{\n /** The number to show. Change it and the digits roll to the new one. */\n value: number\n /**\n * Where the digits start when the component mounts, so a count can roll up\n * as the page opens. Unset, the first frame is already the value.\n */\n from?: number | undefined\n /** Passed to `Intl.NumberFormat`: `{ style: 'currency', currency: 'TRY' }`, decimals, grouping. */\n format?: Intl.NumberFormatOptions | undefined\n /** A BCP 47 tag. Unset, the kit's active formatting locale. */\n locale?: string | undefined\n}>()\n\nconst shown = ref(from ?? value)\n\nconst text = (n: number) =>\n locale === undefined ? formatNumber(n, format) : formatNumber(n, format, locale)\n\n/** What a screen reader hears: the destination, never a digit mid-roll. */\nconst label = computed(() => text(value))\n\nconst columns = computed(() => {\n const chars = Array.from(text(shown.value))\n\n return chars.map((char, index) => ({\n // From the right: the units stay the units when a digit is added in front.\n key: chars.length - index,\n char,\n digit: /[0-9]/.test(char) ? Number(char) : null,\n }))\n})\n\nlet cancel: (() => void) | null = null\n\nonMounted(() => {\n if (from === undefined) return\n // Two frames: the first paints `from`, so the second has somewhere to roll from.\n cancel = nextFrame(() => {\n cancel = nextFrame(() => (shown.value = value))\n })\n})\n\nwatch(\n () => value,\n (next) => {\n cancel?.()\n shown.value = next\n },\n)\n\nonBeforeUnmount(() => cancel?.())\n</script>\n\n<template>\n <span class=\"rk-ticker\">\n <span class=\"sr-only\">{{ label }}</span>\n <span class=\"rk-ticker-track\" aria-hidden=\"true\">\n <template v-for=\"column in columns\" :key=\"column.key\">\n <span\n v-if=\"column.digit !== null\"\n class=\"rk-ticker-digit\"\n :style=\"{ '--rk-ticker-order': column.key }\"\n >\n <span\n class=\"rk-ticker-strip\"\n :style=\"{ transform: `translateY(${column.digit * -10}%)` }\"\n >\n <span v-for=\"n in 10\" :key=\"n\">{{ n - 1 }}</span>\n </span>\n </span>\n <span v-else class=\"rk-ticker-char\">{{ column.char }}</span>\n </template>\n </span>\n </span>\n</template>\n\n<style scoped>\n/* A line height of its own, so a column is exactly one digit tall without\n depending on `lh` units or on whatever line height the parent set. */\n.rk-ticker {\n display: inline-flex;\n line-height: 1.15;\n font-variant-numeric: tabular-nums;\n}\n\n.rk-ticker-track {\n display: inline-flex;\n white-space: pre;\n}\n\n.rk-ticker-digit {\n display: inline-block;\n height: 1.15em;\n overflow: hidden;\n}\n\n/* Twice the slowest token: a roll is read, not glanced at. The small delay\n per column, units first, is what makes it feel mechanical rather than\n swapped. Both are tokens, so reduced motion takes them to zero. */\n.rk-ticker-strip {\n display: flex;\n flex-direction: column;\n transition: transform calc(var(--duration-slower) * 2) var(--ease-standard);\n transition-delay: calc(var(--duration-fast) / 5 * (var(--rk-ticker-order) - 1));\n}\n\n.rk-ticker-strip > span {\n height: 1.15em;\n}\n</style>\n","<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'\n\nimport { formatNumber } from '../utils/format'\nimport { nextFrame } from './environment'\n\n/**\n * A number whose digits roll to their new value, like an odometer or a note\n * counter.\n *\n * Each digit is a column of 0–9 moved into place, so going from 19 to 20\n * turns the tens over rather than redrawing the whole number — the eye\n * follows what changed. Positions are counted from the right, which keeps the\n * units column the units column when the number grows a digit, and keeps a\n * thousands separator where it was.\n *\n * Formatting is `Intl.NumberFormat`, so currency, percent, grouping and\n * decimals are the locale's, and change with it. A screen reader hears the\n * value once, as formatted text; the rolling columns are hidden from it.\n *\n * On a server, and for a reader who asked for less motion, it is the number\n * and nothing else.\n */\nconst {\n value,\n from = undefined,\n format = undefined,\n locale = undefined,\n} = defineProps<{\n /** The number to show. Change it and the digits roll to the new one. */\n value: number\n /**\n * Where the digits start when the component mounts, so a count can roll up\n * as the page opens. Unset, the first frame is already the value.\n */\n from?: number | undefined\n /** Passed to `Intl.NumberFormat`: `{ style: 'currency', currency: 'TRY' }`, decimals, grouping. */\n format?: Intl.NumberFormatOptions | undefined\n /** A BCP 47 tag. Unset, the kit's active formatting locale. */\n locale?: string | undefined\n}>()\n\nconst shown = ref(from ?? value)\n\nconst text = (n: number) =>\n locale === undefined ? formatNumber(n, format) : formatNumber(n, format, locale)\n\n/** What a screen reader hears: the destination, never a digit mid-roll. */\nconst label = computed(() => text(value))\n\nconst columns = computed(() => {\n const chars = Array.from(text(shown.value))\n\n return chars.map((char, index) => ({\n // From the right: the units stay the units when a digit is added in front.\n key: chars.length - index,\n char,\n digit: /[0-9]/.test(char) ? Number(char) : null,\n }))\n})\n\nlet cancel: (() => void) | null = null\n\nonMounted(() => {\n if (from === undefined) return\n // Two frames: the first paints `from`, so the second has somewhere to roll from.\n cancel = nextFrame(() => {\n cancel = nextFrame(() => (shown.value = value))\n })\n})\n\nwatch(\n () => value,\n (next) => {\n cancel?.()\n shown.value = next\n },\n)\n\nonBeforeUnmount(() => cancel?.())\n</script>\n\n<template>\n <span class=\"rk-ticker\">\n <span class=\"sr-only\">{{ label }}</span>\n <span class=\"rk-ticker-track\" aria-hidden=\"true\">\n <template v-for=\"column in columns\" :key=\"column.key\">\n <span\n v-if=\"column.digit !== null\"\n class=\"rk-ticker-digit\"\n :style=\"{ '--rk-ticker-order': column.key }\"\n >\n <span\n class=\"rk-ticker-strip\"\n :style=\"{ transform: `translateY(${column.digit * -10}%)` }\"\n >\n <span v-for=\"n in 10\" :key=\"n\">{{ n - 1 }}</span>\n </span>\n </span>\n <span v-else class=\"rk-ticker-char\">{{ column.char }}</span>\n </template>\n </span>\n </span>\n</template>\n\n<style scoped>\n/* A line height of its own, so a column is exactly one digit tall without\n depending on `lh` units or on whatever line height the parent set. */\n.rk-ticker {\n display: inline-flex;\n line-height: 1.15;\n font-variant-numeric: tabular-nums;\n}\n\n.rk-ticker-track {\n display: inline-flex;\n white-space: pre;\n}\n\n.rk-ticker-digit {\n display: inline-block;\n height: 1.15em;\n overflow: hidden;\n}\n\n/* Twice the slowest token: a roll is read, not glanced at. The small delay\n per column, units first, is what makes it feel mechanical rather than\n swapped. Both are tokens, so reduced motion takes them to zero. */\n.rk-ticker-strip {\n display: flex;\n flex-direction: column;\n transition: transform calc(var(--duration-slower) * 2) var(--ease-standard);\n transition-delay: calc(var(--duration-fast) / 5 * (var(--rk-ticker-order) - 1));\n}\n\n.rk-ticker-strip > span {\n height: 1.15em;\n}\n</style>\n","<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref, useTemplateRef, watch } from 'vue'\n\nimport { formatNumber } from '../utils/format'\nimport { nextFrame, prefersReducedMotion, watchVisibility } from './environment'\n\n/**\n * A number that counts up to its value once it scrolls into view.\n *\n * Where `NumberTicker` rolls digits, this passes through every value on the\n * way — the right choice for a statistic a reader should watch grow, and for\n * decimals, where rolling columns would spin without meaning anything.\n *\n * It waits until it is on screen, so a count below the fold is not over\n * before anyone sees it. It eases out: fast at first, settling on the value,\n * which reads as arriving rather than stopping. A screen reader hears the\n * final value only. On a server, and for a reader who asked for less motion,\n * it is the value from the start.\n */\nconst {\n value,\n from = 0,\n duration = 1600,\n format = undefined,\n locale = undefined,\n} = defineProps<{\n /** The number to count to. Change it and it counts on from where it is. */\n value: number\n /** Where the first count starts. */\n from?: number | undefined\n /** How long a count takes, in milliseconds. */\n duration?: number | undefined\n /** Passed to `Intl.NumberFormat`. Set `maximumFractionDigits` to count in decimals. */\n format?: Intl.NumberFormatOptions | undefined\n /** A BCP 47 tag. Unset, the kit's active formatting locale. */\n locale?: string | undefined\n}>()\n\nconst root = useTemplateRef<HTMLElement>('root')\n\n/* The value first, so a server render — and the frame before mount — shows\n the real number rather than a zero that means nothing. */\nconst shown = ref(value)\n\nconst text = (n: number) =>\n locale === undefined ? formatNumber(n, format) : formatNumber(n, format, locale)\n\nconst display = computed(() => text(shown.value))\nconst label = computed(() => text(value))\n\nlet cancelFrame: (() => void) | null = null\nlet stopWatching: (() => void) | null = null\nlet started = false\n\nconst easeOut = (t: number) => 1 - (1 - t) ** 3\n\nfunction countTo(target: number) {\n cancelFrame?.()\n\n const start = shown.value\n const began = performance.now()\n\n const step = () => {\n const progress = Math.min(1, (performance.now() - began) / duration)\n shown.value = start + (target - start) * easeOut(progress)\n cancelFrame = progress < 1 ? nextFrame(step) : null\n }\n\n cancelFrame = nextFrame(step)\n}\n\nonMounted(() => {\n if (prefersReducedMotion() || duration <= 0 || !root.value) {\n started = true\n return\n }\n\n shown.value = from\n stopWatching = watchVisibility(root.value, (visible) => {\n if (!visible || started) return\n started = true\n stopWatching?.()\n countTo(value)\n })\n})\n\nwatch(\n () => value,\n (next) => {\n // Before the first count, the new value is simply where it will go.\n if (!started) return\n if (prefersReducedMotion() || duration <= 0) shown.value = next\n else countTo(next)\n },\n)\n\nonBeforeUnmount(() => {\n cancelFrame?.()\n stopWatching?.()\n})\n</script>\n\n<template>\n <span ref=\"root\" class=\"rk-count\">\n <span class=\"sr-only\">{{ label }}</span>\n <span aria-hidden=\"true\">{{ display }}</span>\n </span>\n</template>\n\n<style scoped>\n/* Tabular figures, so the number does not shake sideways as it counts. */\n.rk-count {\n font-variant-numeric: tabular-nums;\n}\n</style>\n","<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref, useTemplateRef, watch } from 'vue'\n\nimport { formatNumber } from '../utils/format'\nimport { nextFrame, prefersReducedMotion, watchVisibility } from './environment'\n\n/**\n * A number that counts up to its value once it scrolls into view.\n *\n * Where `NumberTicker` rolls digits, this passes through every value on the\n * way — the right choice for a statistic a reader should watch grow, and for\n * decimals, where rolling columns would spin without meaning anything.\n *\n * It waits until it is on screen, so a count below the fold is not over\n * before anyone sees it. It eases out: fast at first, settling on the value,\n * which reads as arriving rather than stopping. A screen reader hears the\n * final value only. On a server, and for a reader who asked for less motion,\n * it is the value from the start.\n */\nconst {\n value,\n from = 0,\n duration = 1600,\n format = undefined,\n locale = undefined,\n} = defineProps<{\n /** The number to count to. Change it and it counts on from where it is. */\n value: number\n /** Where the first count starts. */\n from?: number | undefined\n /** How long a count takes, in milliseconds. */\n duration?: number | undefined\n /** Passed to `Intl.NumberFormat`. Set `maximumFractionDigits` to count in decimals. */\n format?: Intl.NumberFormatOptions | undefined\n /** A BCP 47 tag. Unset, the kit's active formatting locale. */\n locale?: string | undefined\n}>()\n\nconst root = useTemplateRef<HTMLElement>('root')\n\n/* The value first, so a server render — and the frame before mount — shows\n the real number rather than a zero that means nothing. */\nconst shown = ref(value)\n\nconst text = (n: number) =>\n locale === undefined ? formatNumber(n, format) : formatNumber(n, format, locale)\n\nconst display = computed(() => text(shown.value))\nconst label = computed(() => text(value))\n\nlet cancelFrame: (() => void) | null = null\nlet stopWatching: (() => void) | null = null\nlet started = false\n\nconst easeOut = (t: number) => 1 - (1 - t) ** 3\n\nfunction countTo(target: number) {\n cancelFrame?.()\n\n const start = shown.value\n const began = performance.now()\n\n const step = () => {\n const progress = Math.min(1, (performance.now() - began) / duration)\n shown.value = start + (target - start) * easeOut(progress)\n cancelFrame = progress < 1 ? nextFrame(step) : null\n }\n\n cancelFrame = nextFrame(step)\n}\n\nonMounted(() => {\n if (prefersReducedMotion() || duration <= 0 || !root.value) {\n started = true\n return\n }\n\n shown.value = from\n stopWatching = watchVisibility(root.value, (visible) => {\n if (!visible || started) return\n started = true\n stopWatching?.()\n countTo(value)\n })\n})\n\nwatch(\n () => value,\n (next) => {\n // Before the first count, the new value is simply where it will go.\n if (!started) return\n if (prefersReducedMotion() || duration <= 0) shown.value = next\n else countTo(next)\n },\n)\n\nonBeforeUnmount(() => {\n cancelFrame?.()\n stopWatching?.()\n})\n</script>\n\n<template>\n <span ref=\"root\" class=\"rk-count\">\n <span class=\"sr-only\">{{ label }}</span>\n <span aria-hidden=\"true\">{{ display }}</span>\n </span>\n</template>\n\n<style scoped>\n/* Tabular figures, so the number does not shake sideways as it counts. */\n.rk-count {\n font-variant-numeric: tabular-nums;\n}\n</style>\n","<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'\n\nimport { prefersReducedMotion } from './environment'\n\n/**\n * One word in a sentence that changes on its own: \"Build it *glass*\",\n * then *brutal*, then *soft*.\n *\n * It stops while the pointer rests on it or it holds focus, and an app can\n * stop it with `paused`. That is not a courtesy: content that moves on its\n * own for more than five seconds needs a way to stop it, and hovering is\n * where a reader's attention already is.\n *\n * For a reader who asked for less motion it does not rotate at all — the\n * first word stands, which is a complete sentence. On a server it is the\n * first word too.\n */\nconst {\n words,\n interval = 2400,\n paused = false,\n} = defineProps<{\n /** The words, in order. The first is the one a server and a still page show. */\n words: readonly string[]\n /** How long each word stays, in milliseconds. */\n interval?: number | undefined\n /** Holds the current word. For a pause button, or a section out of view. */\n paused?: boolean | undefined\n}>()\n\nconst index = ref(0)\nconst held = ref(false)\nconst current = computed(() => words[index.value % Math.max(words.length, 1)] ?? '')\n\nlet timer: ReturnType<typeof setInterval> | null = null\n\nfunction stop() {\n if (timer !== null) clearInterval(timer)\n timer = null\n}\n\nfunction start() {\n stop()\n if (paused || held.value || words.length < 2 || prefersReducedMotion()) return\n\n timer = setInterval(() => {\n index.value = (index.value + 1) % words.length\n }, interval)\n}\n\nonMounted(start)\nonBeforeUnmount(stop)\nwatch([() => paused, held, () => words.length, () => interval], start)\n</script>\n\n<template>\n <span\n class=\"rk-rotate\"\n @mouseenter=\"held = true\"\n @mouseleave=\"held = false\"\n @focusin=\"held = true\"\n @focusout=\"held = false\"\n >\n <Transition name=\"rk-rotate\" mode=\"out-in\">\n <span :key=\"current\" class=\"rk-rotate-word\">{{ current }}</span>\n </Transition>\n </span>\n</template>\n\n<style scoped>\n.rk-rotate {\n display: inline-block;\n vertical-align: bottom;\n}\n\n.rk-rotate-word {\n display: inline-block;\n}\n\n.rk-rotate-enter-active,\n.rk-rotate-leave-active {\n transition:\n opacity var(--duration-base) var(--ease-standard),\n transform var(--duration-base) var(--ease-standard),\n filter var(--duration-base) var(--ease-standard);\n}\n\n.rk-rotate-enter-from {\n opacity: 0;\n transform: translateY(40%);\n filter: blur(4px);\n}\n\n.rk-rotate-leave-to {\n opacity: 0;\n transform: translateY(-40%);\n filter: blur(4px);\n}\n</style>\n","<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'\n\nimport { prefersReducedMotion } from './environment'\n\n/**\n * One word in a sentence that changes on its own: \"Build it *glass*\",\n * then *brutal*, then *soft*.\n *\n * It stops while the pointer rests on it or it holds focus, and an app can\n * stop it with `paused`. That is not a courtesy: content that moves on its\n * own for more than five seconds needs a way to stop it, and hovering is\n * where a reader's attention already is.\n *\n * For a reader who asked for less motion it does not rotate at all — the\n * first word stands, which is a complete sentence. On a server it is the\n * first word too.\n */\nconst {\n words,\n interval = 2400,\n paused = false,\n} = defineProps<{\n /** The words, in order. The first is the one a server and a still page show. */\n words: readonly string[]\n /** How long each word stays, in milliseconds. */\n interval?: number | undefined\n /** Holds the current word. For a pause button, or a section out of view. */\n paused?: boolean | undefined\n}>()\n\nconst index = ref(0)\nconst held = ref(false)\nconst current = computed(() => words[index.value % Math.max(words.length, 1)] ?? '')\n\nlet timer: ReturnType<typeof setInterval> | null = null\n\nfunction stop() {\n if (timer !== null) clearInterval(timer)\n timer = null\n}\n\nfunction start() {\n stop()\n if (paused || held.value || words.length < 2 || prefersReducedMotion()) return\n\n timer = setInterval(() => {\n index.value = (index.value + 1) % words.length\n }, interval)\n}\n\nonMounted(start)\nonBeforeUnmount(stop)\nwatch([() => paused, held, () => words.length, () => interval], start)\n</script>\n\n<template>\n <span\n class=\"rk-rotate\"\n @mouseenter=\"held = true\"\n @mouseleave=\"held = false\"\n @focusin=\"held = true\"\n @focusout=\"held = false\"\n >\n <Transition name=\"rk-rotate\" mode=\"out-in\">\n <span :key=\"current\" class=\"rk-rotate-word\">{{ current }}</span>\n </Transition>\n </span>\n</template>\n\n<style scoped>\n.rk-rotate {\n display: inline-block;\n vertical-align: bottom;\n}\n\n.rk-rotate-word {\n display: inline-block;\n}\n\n.rk-rotate-enter-active,\n.rk-rotate-leave-active {\n transition:\n opacity var(--duration-base) var(--ease-standard),\n transform var(--duration-base) var(--ease-standard),\n filter var(--duration-base) var(--ease-standard);\n}\n\n.rk-rotate-enter-from {\n opacity: 0;\n transform: translateY(40%);\n filter: blur(4px);\n}\n\n.rk-rotate-leave-to {\n opacity: 0;\n transform: translateY(-40%);\n filter: blur(4px);\n}\n</style>\n","<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'\n\nimport { prefersReducedMotion } from './environment'\n\n/**\n * Text that types itself out, and — given several lines — deletes each one\n * and types the next.\n *\n * A screen reader hears the whole line, never a half-typed word: the typing\n * is hidden from it and the full text sits beside it. The server and a\n * reader who asked for less motion get the first line, complete.\n *\n * It stops while hovered or focused, and on `paused`, for the same reason\n * `TextRotate` does.\n */\nconst {\n text,\n speed = 45,\n deleteSpeed = 25,\n hold = 1800,\n loop = true,\n cursor = true,\n paused = false,\n} = defineProps<{\n /** One line to type, or several to type in turn. */\n text: string | readonly string[]\n /** Milliseconds per character typed. */\n speed?: number | undefined\n /** Milliseconds per character deleted. */\n deleteSpeed?: number | undefined\n /** How long a finished line stays before it is deleted, in milliseconds. */\n hold?: number | undefined\n /** With several lines, start again after the last. With one, it is typed once. */\n loop?: boolean | undefined\n /** Show a blinking caret after the text. */\n cursor?: boolean | undefined\n /** Stops where it is. */\n paused?: boolean | undefined\n}>()\n\nconst lines = computed(() => (typeof text === 'string' ? [text] : [...text]))\n\nconst line = ref(0)\nconst current = computed(() => lines.value[line.value % Math.max(lines.value.length, 1)] ?? '')\n\n/* The whole first line until mount: that is what a server renders and what a\n page without JavaScript keeps. */\nconst typed = ref(current.value.length)\nconst deleting = ref(false)\nconst held = ref(false)\n\nconst visible = computed(() => current.value.slice(0, typed.value))\n\nlet timer: ReturnType<typeof setTimeout> | null = null\n\nfunction stop() {\n if (timer !== null) clearTimeout(timer)\n timer = null\n}\n\nfunction tick() {\n const full = current.value.length\n\n if (!deleting.value && typed.value < full) {\n typed.value += 1\n return schedule(speed)\n }\n\n if (!deleting.value) {\n // Finished a line. One line, or the last without loop: stay.\n const last = line.value === lines.value.length - 1\n if (lines.value.length < 2 || (last && !loop)) return\n deleting.value = true\n return schedule(hold)\n }\n\n if (typed.value > 0) {\n typed.value -= 1\n return schedule(deleteSpeed)\n }\n\n deleting.value = false\n line.value = (line.value + 1) % lines.value.length\n schedule(speed)\n}\n\nfunction schedule(delay: number) {\n stop()\n if (paused || held.value) return\n timer = setTimeout(tick, delay)\n}\n\nonMounted(() => {\n if (prefersReducedMotion()) return\n typed.value = 0\n schedule(speed)\n})\n\nwatch([() => paused, held], () => {\n if (prefersReducedMotion()) return\n schedule(speed)\n})\n\nwatch(lines, () => {\n stop()\n line.value = 0\n deleting.value = false\n typed.value = prefersReducedMotion() ? current.value.length : 0\n if (!prefersReducedMotion()) schedule(speed)\n})\n\nonBeforeUnmount(stop)\n</script>\n\n<template>\n <span\n class=\"rk-type\"\n @mouseenter=\"held = true\"\n @mouseleave=\"held = false\"\n @focusin=\"held = true\"\n @focusout=\"held = false\"\n >\n <span class=\"sr-only\">{{ current }}</span>\n <span aria-hidden=\"true\">{{ visible }}</span>\n <span v-if=\"cursor\" class=\"rk-type-cursor\" aria-hidden=\"true\" />\n </span>\n</template>\n\n<style scoped>\n.rk-type {\n white-space: pre-wrap;\n}\n\n/* A bar the height of the text, in its colour. */\n.rk-type-cursor {\n display: inline-block;\n width: 0.08em;\n height: 1em;\n margin-left: 0.06em;\n vertical-align: -0.12em;\n background: currentColor;\n animation: rk-type-blink 1s steps(1) infinite;\n}\n\n@keyframes rk-type-blink {\n 50% {\n opacity: 0;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .rk-type-cursor {\n animation: none;\n }\n}\n</style>\n","<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'\n\nimport { prefersReducedMotion } from './environment'\n\n/**\n * Text that types itself out, and — given several lines — deletes each one\n * and types the next.\n *\n * A screen reader hears the whole line, never a half-typed word: the typing\n * is hidden from it and the full text sits beside it. The server and a\n * reader who asked for less motion get the first line, complete.\n *\n * It stops while hovered or focused, and on `paused`, for the same reason\n * `TextRotate` does.\n */\nconst {\n text,\n speed = 45,\n deleteSpeed = 25,\n hold = 1800,\n loop = true,\n cursor = true,\n paused = false,\n} = defineProps<{\n /** One line to type, or several to type in turn. */\n text: string | readonly string[]\n /** Milliseconds per character typed. */\n speed?: number | undefined\n /** Milliseconds per character deleted. */\n deleteSpeed?: number | undefined\n /** How long a finished line stays before it is deleted, in milliseconds. */\n hold?: number | undefined\n /** With several lines, start again after the last. With one, it is typed once. */\n loop?: boolean | undefined\n /** Show a blinking caret after the text. */\n cursor?: boolean | undefined\n /** Stops where it is. */\n paused?: boolean | undefined\n}>()\n\nconst lines = computed(() => (typeof text === 'string' ? [text] : [...text]))\n\nconst line = ref(0)\nconst current = computed(() => lines.value[line.value % Math.max(lines.value.length, 1)] ?? '')\n\n/* The whole first line until mount: that is what a server renders and what a\n page without JavaScript keeps. */\nconst typed = ref(current.value.length)\nconst deleting = ref(false)\nconst held = ref(false)\n\nconst visible = computed(() => current.value.slice(0, typed.value))\n\nlet timer: ReturnType<typeof setTimeout> | null = null\n\nfunction stop() {\n if (timer !== null) clearTimeout(timer)\n timer = null\n}\n\nfunction tick() {\n const full = current.value.length\n\n if (!deleting.value && typed.value < full) {\n typed.value += 1\n return schedule(speed)\n }\n\n if (!deleting.value) {\n // Finished a line. One line, or the last without loop: stay.\n const last = line.value === lines.value.length - 1\n if (lines.value.length < 2 || (last && !loop)) return\n deleting.value = true\n return schedule(hold)\n }\n\n if (typed.value > 0) {\n typed.value -= 1\n return schedule(deleteSpeed)\n }\n\n deleting.value = false\n line.value = (line.value + 1) % lines.value.length\n schedule(speed)\n}\n\nfunction schedule(delay: number) {\n stop()\n if (paused || held.value) return\n timer = setTimeout(tick, delay)\n}\n\nonMounted(() => {\n if (prefersReducedMotion()) return\n typed.value = 0\n schedule(speed)\n})\n\nwatch([() => paused, held], () => {\n if (prefersReducedMotion()) return\n schedule(speed)\n})\n\nwatch(lines, () => {\n stop()\n line.value = 0\n deleting.value = false\n typed.value = prefersReducedMotion() ? current.value.length : 0\n if (!prefersReducedMotion()) schedule(speed)\n})\n\nonBeforeUnmount(stop)\n</script>\n\n<template>\n <span\n class=\"rk-type\"\n @mouseenter=\"held = true\"\n @mouseleave=\"held = false\"\n @focusin=\"held = true\"\n @focusout=\"held = false\"\n >\n <span class=\"sr-only\">{{ current }}</span>\n <span aria-hidden=\"true\">{{ visible }}</span>\n <span v-if=\"cursor\" class=\"rk-type-cursor\" aria-hidden=\"true\" />\n </span>\n</template>\n\n<style scoped>\n.rk-type {\n white-space: pre-wrap;\n}\n\n/* A bar the height of the text, in its colour. */\n.rk-type-cursor {\n display: inline-block;\n width: 0.08em;\n height: 1em;\n margin-left: 0.06em;\n vertical-align: -0.12em;\n background: currentColor;\n animation: rk-type-blink 1s steps(1) infinite;\n}\n\n@keyframes rk-type-blink {\n 50% {\n opacity: 0;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .rk-type-cursor {\n animation: none;\n }\n}\n</style>\n","<script setup lang=\"ts\">\nimport { onBeforeUnmount, onMounted, ref, useTemplateRef } from 'vue'\n\nimport { prefersReducedMotion, watchVisibility } from './environment'\n\n/**\n * Content that fades or rises into place as it scrolls into view.\n *\n * Visible by default and hidden only once it has mounted and found itself\n * below the fold, so a page rendered on a server, or read without\n * JavaScript, never has content stuck at zero opacity. For a reader who\n * asked for less motion it is never hidden at all.\n *\n * For a staggered list, give each item a growing `delay`:\n * `:delay=\"index * 60\"`.\n */\nconst {\n effect = 'rise',\n delay = 0,\n once = true,\n as = 'div',\n} = defineProps<{\n /** How it arrives: fading in, rising a little as it does, or growing to size. */\n effect?: 'fade' | 'rise' | 'scale' | undefined\n /** Milliseconds to wait once it is in view — the stagger in a list. */\n delay?: number | undefined\n /** Reveal once and stay. Off, it hides again each time it leaves the screen. */\n once?: boolean | undefined\n /** The element to render. */\n as?: string | undefined\n}>()\n\ndefineSlots<{\n /** What is revealed. */\n default: () => unknown\n}>()\n\nconst root = useTemplateRef<HTMLElement>('root')\nconst hidden = ref(false)\n\nlet stop: (() => void) | null = null\n\nonMounted(() => {\n if (prefersReducedMotion() || !root.value) return\n\n stop = watchVisibility(root.value, (visible) => {\n hidden.value = !visible\n if (visible && once) {\n stop?.()\n stop = null\n }\n })\n})\n\nonBeforeUnmount(() => stop?.())\n</script>\n\n<template>\n <component\n :is=\"as\"\n ref=\"root\"\n class=\"rk-reveal\"\n :class=\"[`rk-reveal-${effect}`, { 'is-hidden': hidden }]\"\n :style=\"{ '--rk-reveal-delay': `${delay}ms` }\"\n >\n <slot />\n </component>\n</template>\n\n<style scoped>\n.rk-reveal {\n transition:\n opacity var(--duration-slower) var(--ease-standard),\n transform var(--duration-slower) var(--ease-standard);\n transition-delay: var(--rk-reveal-delay);\n}\n\n/* Hiding is instant; only arriving is animated. Otherwise an item leaving the\n screen would fade out where nobody is looking and waste the frames. */\n.rk-reveal.is-hidden {\n opacity: 0;\n transition-duration: 0s;\n transition-delay: 0s;\n}\n\n.rk-reveal-rise.is-hidden {\n transform: translateY(1rem);\n}\n\n.rk-reveal-scale.is-hidden {\n transform: scale(0.96);\n}\n</style>\n","<script setup lang=\"ts\">\nimport { onBeforeUnmount, onMounted, ref, useTemplateRef } from 'vue'\n\nimport { prefersReducedMotion, watchVisibility } from './environment'\n\n/**\n * Content that fades or rises into place as it scrolls into view.\n *\n * Visible by default and hidden only once it has mounted and found itself\n * below the fold, so a page rendered on a server, or read without\n * JavaScript, never has content stuck at zero opacity. For a reader who\n * asked for less motion it is never hidden at all.\n *\n * For a staggered list, give each item a growing `delay`:\n * `:delay=\"index * 60\"`.\n */\nconst {\n effect = 'rise',\n delay = 0,\n once = true,\n as = 'div',\n} = defineProps<{\n /** How it arrives: fading in, rising a little as it does, or growing to size. */\n effect?: 'fade' | 'rise' | 'scale' | undefined\n /** Milliseconds to wait once it is in view — the stagger in a list. */\n delay?: number | undefined\n /** Reveal once and stay. Off, it hides again each time it leaves the screen. */\n once?: boolean | undefined\n /** The element to render. */\n as?: string | undefined\n}>()\n\ndefineSlots<{\n /** What is revealed. */\n default: () => unknown\n}>()\n\nconst root = useTemplateRef<HTMLElement>('root')\nconst hidden = ref(false)\n\nlet stop: (() => void) | null = null\n\nonMounted(() => {\n if (prefersReducedMotion() || !root.value) return\n\n stop = watchVisibility(root.value, (visible) => {\n hidden.value = !visible\n if (visible && once) {\n stop?.()\n stop = null\n }\n })\n})\n\nonBeforeUnmount(() => stop?.())\n</script>\n\n<template>\n <component\n :is=\"as\"\n ref=\"root\"\n class=\"rk-reveal\"\n :class=\"[`rk-reveal-${effect}`, { 'is-hidden': hidden }]\"\n :style=\"{ '--rk-reveal-delay': `${delay}ms` }\"\n >\n <slot />\n </component>\n</template>\n\n<style scoped>\n.rk-reveal {\n transition:\n opacity var(--duration-slower) var(--ease-standard),\n transform var(--duration-slower) var(--ease-standard);\n transition-delay: var(--rk-reveal-delay);\n}\n\n/* Hiding is instant; only arriving is animated. Otherwise an item leaving the\n screen would fade out where nobody is looking and waste the frames. */\n.rk-reveal.is-hidden {\n opacity: 0;\n transition-duration: 0s;\n transition-delay: 0s;\n}\n\n.rk-reveal-rise.is-hidden {\n transform: translateY(1rem);\n}\n\n.rk-reveal-scale.is-hidden {\n transform: scale(0.96);\n}\n</style>\n","<script setup lang=\"ts\">\n/**\n * A row that scrolls sideways without end: logos, testimonials, a ticker.\n *\n * The content is rendered twice and the track moves by exactly one copy, so\n * the loop has no seam and no measuring. The second copy is `inert` and\n * hidden from assistive tech — a keyboard or screen-reader user meets each\n * item once.\n *\n * It stops while hovered or focused, and on `paused`. For a reader who asked\n * for less motion it does not move at all: it becomes a row that scrolls by\n * hand, so nothing in it is out of reach.\n */\nconst {\n duration = 30,\n reverse = false,\n paused = false,\n fade = true,\n gap = '2rem',\n} = defineProps<{\n /** Seconds for one full pass. Longer is slower; the speed does not change with the content's length. */\n duration?: number | undefined\n /** Move left to right instead. */\n reverse?: boolean | undefined\n /** Holds it still. */\n paused?: boolean | undefined\n /** Fade the content out at both edges instead of cutting it. */\n fade?: boolean | undefined\n /** Space between items, and between the end of one pass and the start of the next. Any CSS length. */\n gap?: string | undefined\n}>()\n\ndefineSlots<{\n /** The items. Rendered twice, the second copy inert. */\n default: () => unknown\n}>()\n</script>\n\n<template>\n <div\n class=\"rk-marquee\"\n :class=\"{ 'is-reverse': reverse, 'is-paused': paused, 'is-faded': fade }\"\n :style=\"{ '--rk-marquee-duration': `${duration}s`, '--rk-marquee-gap': gap }\"\n >\n <div class=\"rk-marquee-track\">\n <div class=\"rk-marquee-group\">\n <slot />\n </div>\n <div class=\"rk-marquee-group\" aria-hidden=\"true\" inert>\n <slot />\n </div>\n </div>\n </div>\n</template>\n\n<style scoped>\n.rk-marquee {\n display: flex;\n overflow: hidden;\n}\n\n.rk-marquee.is-faded {\n mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);\n}\n\n.rk-marquee-track {\n display: flex;\n width: max-content;\n animation: rk-marquee var(--rk-marquee-duration) linear infinite;\n}\n\n.rk-marquee.is-reverse .rk-marquee-track {\n animation-direction: reverse;\n}\n\n.rk-marquee.is-paused .rk-marquee-track,\n.rk-marquee:hover .rk-marquee-track,\n.rk-marquee:focus-within .rk-marquee-track {\n animation-play-state: paused;\n}\n\n/* Each group ends in the gap, so moving by exactly half the track lands the\n second copy where the first began. */\n.rk-marquee-group {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n gap: var(--rk-marquee-gap);\n padding-inline-end: var(--rk-marquee-gap);\n}\n\n@keyframes rk-marquee {\n to {\n transform: translateX(-50%);\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .rk-marquee {\n overflow-x: auto;\n mask-image: none;\n }\n\n .rk-marquee-track {\n animation: none;\n }\n\n .rk-marquee-group[aria-hidden='true'] {\n display: none;\n }\n}\n</style>\n","<script setup lang=\"ts\">\n/**\n * A row that scrolls sideways without end: logos, testimonials, a ticker.\n *\n * The content is rendered twice and the track moves by exactly one copy, so\n * the loop has no seam and no measuring. The second copy is `inert` and\n * hidden from assistive tech — a keyboard or screen-reader user meets each\n * item once.\n *\n * It stops while hovered or focused, and on `paused`. For a reader who asked\n * for less motion it does not move at all: it becomes a row that scrolls by\n * hand, so nothing in it is out of reach.\n */\nconst {\n duration = 30,\n reverse = false,\n paused = false,\n fade = true,\n gap = '2rem',\n} = defineProps<{\n /** Seconds for one full pass. Longer is slower; the speed does not change with the content's length. */\n duration?: number | undefined\n /** Move left to right instead. */\n reverse?: boolean | undefined\n /** Holds it still. */\n paused?: boolean | undefined\n /** Fade the content out at both edges instead of cutting it. */\n fade?: boolean | undefined\n /** Space between items, and between the end of one pass and the start of the next. Any CSS length. */\n gap?: string | undefined\n}>()\n\ndefineSlots<{\n /** The items. Rendered twice, the second copy inert. */\n default: () => unknown\n}>()\n</script>\n\n<template>\n <div\n class=\"rk-marquee\"\n :class=\"{ 'is-reverse': reverse, 'is-paused': paused, 'is-faded': fade }\"\n :style=\"{ '--rk-marquee-duration': `${duration}s`, '--rk-marquee-gap': gap }\"\n >\n <div class=\"rk-marquee-track\">\n <div class=\"rk-marquee-group\">\n <slot />\n </div>\n <div class=\"rk-marquee-group\" aria-hidden=\"true\" inert>\n <slot />\n </div>\n </div>\n </div>\n</template>\n\n<style scoped>\n.rk-marquee {\n display: flex;\n overflow: hidden;\n}\n\n.rk-marquee.is-faded {\n mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);\n}\n\n.rk-marquee-track {\n display: flex;\n width: max-content;\n animation: rk-marquee var(--rk-marquee-duration) linear infinite;\n}\n\n.rk-marquee.is-reverse .rk-marquee-track {\n animation-direction: reverse;\n}\n\n.rk-marquee.is-paused .rk-marquee-track,\n.rk-marquee:hover .rk-marquee-track,\n.rk-marquee:focus-within .rk-marquee-track {\n animation-play-state: paused;\n}\n\n/* Each group ends in the gap, so moving by exactly half the track lands the\n second copy where the first began. */\n.rk-marquee-group {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n gap: var(--rk-marquee-gap);\n padding-inline-end: var(--rk-marquee-gap);\n}\n\n@keyframes rk-marquee {\n to {\n transform: translateX(-50%);\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .rk-marquee {\n overflow-x: auto;\n mask-image: none;\n }\n\n .rk-marquee-track {\n animation: none;\n }\n\n .rk-marquee-group[aria-hidden='true'] {\n display: none;\n }\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;AAWA,SAAgB,uBAAgC;CAC9C,IAAI,OAAO,WAAW,eAAe,OAAO,OAAO,eAAe,YAAY,OAAO;CAErF,OAAO,OAAO,WAAW,kCAAkC,CAAC,CAAC;AAC/D;;AAGA,SAAgB,UAAU,UAAkC;CAC1D,IAAI,OAAO,0BAA0B,YAAY;EAC/C,MAAM,KAAK,sBAAsB,QAAQ;EAEzC,aAAa,qBAAqB,EAAE;CACtC;CAEA,MAAM,KAAK,WAAW,UAAU,EAAE;CAElC,aAAa,aAAa,EAAE;AAC9B;;;;;;;;AASA,SAAgB,gBACd,SACA,UACA,YAAY,KACA;CACZ,IAAI,OAAO,yBAAyB,aAAa;EAC/C,SAAS,IAAI;EAEb,aAAa,CAAC;CAChB;CAEA,MAAM,WAAW,IAAI,sBAClB,YAAY;EACX,KAAK,MAAM,SAAS,SAAS,SAAS,MAAM,cAAc;CAC5D,GACA,EAAE,UAAU,CACd;CACA,SAAS,QAAQ,OAAO;CAExB,aAAa,SAAS,WAAW;AACnC;;;;;;;;;;;;;;;;;;;;;;;;ECfA,MAAM,QAAQ,IA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