kuinetic 0.2.4 → 0.4.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.
Files changed (99) hide show
  1. package/README.md +2 -2
  2. package/dist/esm/advanced/index.mjs +1 -1
  3. package/dist/esm/{chunk-FASAEQDR.mjs → chunk-CG37RODK.mjs} +1232 -277
  4. package/dist/esm/{chunk-AEQGC2KM.mjs → chunk-EDFJTT5B.mjs} +2 -1
  5. package/dist/esm/{chunk-MZQG2VMG.mjs → chunk-W7U4A2NK.mjs} +708 -610
  6. package/dist/esm/{chunk-EHS45PIK.mjs → chunk-Y2FP56K5.mjs} +9228 -4275
  7. package/dist/esm/core/index.mjs +3 -3
  8. package/dist/esm/effects/index.mjs +3 -3
  9. package/dist/esm/index.mjs +4 -4
  10. package/dist/esm/notes/index.mjs +347 -9
  11. package/dist/kuinetic.advanced.js +2 -1
  12. package/dist/kuinetic.advanced.min.js +1 -1
  13. package/dist/kuinetic.all.js +9099 -3152
  14. package/dist/kuinetic.all.min.js +4 -2
  15. package/dist/kuinetic.css +2408 -161
  16. package/dist/kuinetic.js +9098 -3151
  17. package/dist/kuinetic.min.css +1 -1
  18. package/dist/kuinetic.min.js +3 -1
  19. package/dist/kuinetic.notes.js +1 -1
  20. package/dist/types/advanced/shaders.d.ts +1 -1
  21. package/dist/types/core/animator.d.ts +61 -2
  22. package/dist/types/core/attrs.d.ts +0 -2
  23. package/dist/types/core/auto-motion.d.ts +139 -0
  24. package/dist/types/core/cadence.d.ts +90 -0
  25. package/dist/types/core/channels.d.ts +5 -1
  26. package/dist/types/core/compile.d.ts +14 -2
  27. package/dist/types/core/deck-viewer.d.ts +2 -0
  28. package/dist/types/core/declarations.d.ts +6 -0
  29. package/dist/types/core/derived/group-gate.d.ts +18 -4
  30. package/dist/types/core/describe.d.ts +1 -1
  31. package/dist/types/core/easing.d.ts +9 -0
  32. package/dist/types/core/effect-context.d.ts +5 -0
  33. package/dist/types/core/element-config.d.ts +5 -4
  34. package/dist/types/core/flip.d.ts +25 -1
  35. package/dist/types/core/gesture.d.ts +5 -0
  36. package/dist/types/core/image-flight.d.ts +23 -0
  37. package/dist/types/core/instances.d.ts +27 -3
  38. package/dist/types/core/js-effect-preparer.d.ts +3 -1
  39. package/dist/types/core/owned-styles.d.ts +2 -1
  40. package/dist/types/core/params.d.ts +2 -3
  41. package/dist/types/core/parse.d.ts +21 -1
  42. package/dist/types/core/pause-scope.d.ts +40 -0
  43. package/dist/types/core/play.d.ts +2 -2
  44. package/dist/types/core/registry.d.ts +17 -2
  45. package/dist/types/core/repeat.d.ts +6 -4
  46. package/dist/types/core/sequence.d.ts +10 -0
  47. package/dist/types/core/stagger-config.d.ts +23 -101
  48. package/dist/types/core/stagger-keys.d.ts +2 -4
  49. package/dist/types/core/stagger.d.ts +12 -21
  50. package/dist/types/core/types.d.ts +76 -19
  51. package/dist/types/effects/auto-motion.d.ts +22 -117
  52. package/dist/types/effects/carousel/archive.d.ts +18 -0
  53. package/dist/types/effects/carousel/coast.d.ts +7 -0
  54. package/dist/types/effects/carousel/deck.d.ts +31 -2
  55. package/dist/types/effects/carousel/drag.d.ts +24 -7
  56. package/dist/types/effects/carousel/glide.d.ts +89 -0
  57. package/dist/types/effects/carousel/line.d.ts +10 -0
  58. package/dist/types/effects/carousel/row-copies.d.ts +13 -0
  59. package/dist/types/effects/carousel/row.d.ts +3 -0
  60. package/dist/types/effects/carousel/shape-fit.d.ts +54 -0
  61. package/dist/types/effects/carousel/sources.d.ts +26 -0
  62. package/dist/types/effects/carousel/sphere.d.ts +23 -0
  63. package/dist/types/effects/carousel/stack.d.ts +2 -1
  64. package/dist/types/effects/catalog/confetti.d.ts +2 -0
  65. package/dist/types/effects/catalog/cursor-trail.d.ts +2 -0
  66. package/dist/types/effects/catalog/curtains.d.ts +2 -0
  67. package/dist/types/effects/catalog/feedback.d.ts +1 -1
  68. package/dist/types/effects/catalog/image-flight.d.ts +2 -0
  69. package/dist/types/effects/catalog/line-boil.d.ts +2 -0
  70. package/dist/types/effects/catalog/media-shared.d.ts +10 -0
  71. package/dist/types/effects/catalog/number-tokens.d.ts +5 -0
  72. package/dist/types/effects/catalog/numbers-shared.d.ts +3 -4
  73. package/dist/types/effects/catalog/pause-scope.d.ts +20 -0
  74. package/dist/types/effects/catalog/text-shared.d.ts +17 -6
  75. package/dist/types/effects/catalog/typewriter-scatter.d.ts +5 -0
  76. package/dist/types/effects/catalog/view-transitions.d.ts +32 -1
  77. package/dist/types/effects/catalog/wobble.d.ts +2 -0
  78. package/dist/types/effects/gestures/drag-options.d.ts +17 -0
  79. package/dist/types/effects/layout/departures.d.ts +21 -0
  80. package/dist/types/effects/motion-path/fit.d.ts +4 -0
  81. package/dist/types/effects/scroll-mechanics/progress-output.d.ts +9 -0
  82. package/dist/types/effects/scroll-mechanics/snap-autoplay.d.ts +20 -0
  83. package/dist/types/effects/step-index.d.ts +19 -1
  84. package/dist/types/effects/step-marking.d.ts +7 -4
  85. package/dist/types/effects/svg/morph-loop.d.ts +7 -0
  86. package/dist/types/effects/svg/text-path.d.ts +2 -0
  87. package/dist/types/effects/three-d/cube.d.ts +2 -0
  88. package/dist/types/effects/tween/index.d.ts +2 -1
  89. package/dist/types/effects/tween/properties.d.ts +1 -1
  90. package/dist/types/effects/tween/toggle.d.ts +6 -0
  91. package/dist/types/effects/tween/waypoints.d.ts +1 -1
  92. package/dist/types/notes/effects.d.ts +1 -0
  93. package/dist/types/notes/index.d.ts +11 -0
  94. package/dist/types/notes/showcase.d.ts +1 -0
  95. package/dist/types/showcase/lightbox-flight.d.ts +11 -0
  96. package/dist/types/showcase/media-source.d.ts +1 -0
  97. package/dist/types/showcase/modal-shell.d.ts +5 -0
  98. package/dist/types/showcase/youtube.d.ts +3 -0
  99. package/package.json +1 -1
@@ -1,5 +1,37 @@
1
1
  // src/notes/catalog.ts
2
2
  var CATALOG_NOTES = {
3
+ "line-boil.amount": "How far a line can wander, in pixels; 3 is a gentle wiggle.",
4
+ "line-boil.fps": "How many new drawings play each second; 8 to 12 looks hand-animated.",
5
+ "image-flight.image": "Find this image inside the button\u2019s closest data-kui-flight-source wrapper, without moving the original.",
6
+ "image-flight.destination": "Fly toward the first page element matching this selector, while the app owns basket state.",
7
+ "image-flight.lift": "How far the flight lifts above its straight path, in absolute length units such as pixels.",
8
+ "number-tokens.attribute": "Read the app-formatted string from this attribute and animate matching characters when it changes.",
9
+ "curtain.controls": "Selector for the element whose state changes; defaults to aria-controls, as view-swap does.",
10
+ "curtain.attribute": "Attribute to change only after the colour panel fully covers.",
11
+ "curtain.value": "Destination value, or next to advance through values; omit to toggle attribute presence.",
12
+ "curtain.values": "Quoted space-separated destination order, shared with view-swap.",
13
+ "curtain.cover": "Shape bringing the colour in, including a shuffled grid with pixels.",
14
+ "curtain.reveal": "Shape removing the colour after commit, including pixels.",
15
+ "curtain.color": "Fallback panel colour; defaults to var(--accent).",
16
+ "curtain.colors": "Quoted space-separated value=colour pairs; colours must contain no whitespace.",
17
+ "curtain.origin": "Use click for an iris centred on the pointer; keyboard activation uses centre.",
18
+ "curtain.scope": "Keep the curtain inside the controlled element, following its rounded corners.",
19
+ "curtain.duration": "Duration of each cover and reveal phase; zero commits synchronously.",
20
+ "feedback-wobble.y": "Vertical displacement on the first wobble; negative values reverse its vertical direction.",
21
+ "feedback-wobble.direction": "Use pointer entry to choose the wobble direction.",
22
+ "feedback-burst.pieces": "Create up to 96 decorative strips and dots instead of the five gradient particles.",
23
+ "media-mask.direction": "Direction the soft reveal edge travels: right by default, or left.",
24
+ "media-mask.edges": "Fade both horizontal scroll edges by this width and remove each fade at its matching end.",
25
+ "media-wipe.start-inset": "Set the horizontal inset at the start of curtain-reveal.",
26
+ "media-wipe.start-size": "Open curtain-reveal from a centred crop of this size before scaling.",
27
+ "pause-scope.pause": {
28
+ why: "Which button pauses and resumes motion inside this section.",
29
+ whenOmitted: "No pause button is connected."
30
+ },
31
+ "pause-scope.paused": {
32
+ why: "Set to true to start with motion paused inside this section.",
33
+ whenOmitted: "The section starts unpaused."
34
+ },
3
35
  "ambient-float.duration": "How long one full up-and-down drift takes, repeating forever.",
4
36
  "ambient-float.distance": "How far the element drifts up and down.",
5
37
  "ambient-gradient.duration": "How long one full colour drift takes, repeating forever.",
@@ -102,6 +134,8 @@ var CATALOG_NOTES = {
102
134
  why: "The marker added or removed on that element each time the control is clicked.",
103
135
  whenOmitted: "Uses data-open."
104
136
  },
137
+ "view-swap.value": "Set this attribute value instead of toggling presence; repeated selection does nothing.",
138
+ "view-swap.values": "Quoted, space-separated values in travel order, such as home activity more; value must occur in the list if supplied.",
105
139
  "view-swap.type": {
106
140
  why: "Names the transition motion to run, like kui-page-slide; a browser without that feature cross-fades.",
107
141
  whenOmitted: "The browser\u2019s default cross-fade, or an instant swap where view transitions are missing."
@@ -135,6 +169,7 @@ var CATALOG_CORE_NOTES = {
135
169
  "desaturate.to": "How grey the element is at the end of the scroll range.",
136
170
  "feedback-burst.scale": "How much the element swells at the peak of the pop.",
137
171
  "feedback-burst.distance": "How far the confetti flies, as a size or a share of the element.",
172
+ "feedback-burst.origin": "Start the confetti at the pointer or at the centre of the element.",
138
173
  "feedback-burst.fan": "How wide the confetti spreads sideways; 0 is a narrow fountain.",
139
174
  "feedback-burst.size": "How big each confetti speck is.",
140
175
  "feedback-burst.spill": "How far past the element the confetti is allowed to show.",
@@ -151,6 +186,7 @@ var CATALOG_CORE_NOTES = {
151
186
  "feedback-progress-track.duration": "How long the bar takes to sweep across once, repeating forever.",
152
187
  "feedback-pull.distance": "How far the element is pulled down before it springs back.",
153
188
  "feedback-ripple.extent": "How many times larger the ripple grows than the element.",
189
+ "feedback-ripple.origin": "Start the ripple where the pointer clicks instead of at the centre.",
154
190
  "feedback-ripple.color": { why: "Colour of the ripple disc.", whenOmitted: "Uses the element's own text colour." },
155
191
  "feedback-ripple.strength": "How solid the ripple looks at its brightest, from 0 to 1.",
156
192
  "feedback-ripple.startScale": "How big the ripple begins, as a share of the element.",
@@ -160,9 +196,9 @@ var CATALOG_CORE_NOTES = {
160
196
  "flip-3d.angle": "How far turned away the element starts, before it flips flat.",
161
197
  "flip-3d.perspective": "How strong the 3D depth looks; smaller is more dramatic.",
162
198
  "parallax.distance": "How far the element drifts against the scroll.",
163
- "parallax-rotate.angle": "How far the element has turned by the end of the scroll range.",
199
+ "parallax-rotate.to": "How far the element has turned by the end of the scroll range. The old angle key is an alias.",
164
200
  "parallax-rotate.from": "How far turned the element is at the start of the scroll range.",
165
- "parallax-scale.scale": "How big the element is at the end of the scroll range.",
201
+ "parallax-scale.to": "How big the element is at the end of the scroll range. The old scale key is an alias.",
166
202
  "parallax-scale.from": "How big the element is at the start of the scroll range.",
167
203
  "progress-stroke.length": {
168
204
  why: "The total length of the line being drawn, so it draws exactly to the end.",
@@ -180,8 +216,145 @@ var CATALOG_CORE_NOTES = {
180
216
  "scroll-fade.opacity": "How see-through the element is at the start of the scroll range."
181
217
  };
182
218
 
219
+ // src/notes/effects.ts
220
+ function fromEntriesOf(names, bullets) {
221
+ return Object.fromEntries(names.map((name) => [name, bullets(name)]));
222
+ }
223
+ var OWN_CHILDREN_PRESETS = [
224
+ "hamburger-to-x",
225
+ "play-to-pause",
226
+ "video-scrub",
227
+ "label-float",
228
+ "strength-meter",
229
+ "toggle-morph",
230
+ "checkbox-draw",
231
+ "radio-fill",
232
+ "step-progress",
233
+ "group-dim",
234
+ "group-expand"
235
+ ];
236
+ function onOwnChildren(name) {
237
+ return [
238
+ `${name} works on its own children, so target: doesn't apply here.`,
239
+ "If you add target:, the library warns and ignores it. The effect stays on the box you put data-kui on."
240
+ ];
241
+ }
242
+ var EXIT_TOWARD = [
243
+ "fade-out-left",
244
+ "fade-out-right",
245
+ "fade-out-up",
246
+ "fade-out-down",
247
+ "slide-out-left",
248
+ "slide-out-right",
249
+ "slide-out-up",
250
+ "slide-out-down"
251
+ ];
252
+ var WIPES_HORIZONTAL = ["wipe-left", "wipe-right"];
253
+ var WIPES_VERTICAL = ["wipe-up", "wipe-down"];
254
+ var CURSOR_DOT_PRESETS = ["cursor-follow", "cursor-lag", "cursor-label", "cursor-invert"];
255
+ function exitToward(name) {
256
+ const direction = name.slice(name.lastIndexOf("-") + 1);
257
+ return [`The direction in the name is where it heads. ${name} moves ${direction} as it leaves.`];
258
+ }
259
+ function wipeHorizontal(name) {
260
+ const left = name.endsWith("left");
261
+ return [`${name} reveals the box starting from its ${left ? "left" : "right"} edge, sweeping ${left ? "right" : "left"}.`];
262
+ }
263
+ function wipeVertical(name) {
264
+ const up = name.endsWith("up");
265
+ return [`${name} reveals the box starting from its ${up ? "bottom" : "top"} edge, sweeping ${up ? "up" : "down"}.`];
266
+ }
267
+ var CURSOR_DOT_LINES = {
268
+ "cursor-follow": "The dot follows the pointer closely.",
269
+ "cursor-lag": "The dot trails a little behind the pointer on purpose.",
270
+ "cursor-label": "The dot is a small pill of text. Set the words with label: (the default is View).",
271
+ "cursor-invert": "The dot flips the colours of whatever it passes over."
272
+ };
273
+ function cursorDot(name) {
274
+ return [
275
+ `${name} adds a small dot to the page that follows the pointer. The box you put data-kui on doesn't move.`,
276
+ CURSOR_DOT_LINES[name],
277
+ "The dot only shows while the pointer is over the box, or when the box has keyboard focus. It is skipped on touch screens."
278
+ ];
279
+ }
280
+ var EFFECT_NOTES = {
281
+ "line-boil": [
282
+ "Makes the lines of a still drawing wiggle a few times a second, like hand-drawn animation. It works best on bold line art and flat colour.",
283
+ "It uses the filter property, so it replaces any filter on the same box. It pauses off screen and is skipped under reduced motion."
284
+ ],
285
+ "image-flight": [
286
+ "Put this on the trigger button inside data-kui-flight-source; the app owns purchases and basket state.",
287
+ "image: searches the closest source wrapper and destination: searches the page; target: would relocate the effect."
288
+ ],
289
+ "number-formatting": ["The app writes the formatted string to data-value; matching characters keep their identity without rolling digits."],
290
+ "text-path": ["Put text-path on an SVG textPath to drive startOffset on scroll or a native SVG timer."],
291
+ "carousel-loop": [
292
+ "Mixed-width slides loop horizontally; give each direct child a width in CSS.",
293
+ "A short row stays a static, locally scrollable strip until it can cover the viewport while recycling.",
294
+ "shape:line uses constant yaw with rise and depth per measured stride and fades before recycling."
295
+ ],
296
+ "drop-open": ["Parent data-open, open or popover-open opens its direct children."],
297
+ curtain: [
298
+ "Covers with a solid colour, commits one attribute change, then reveals. Cover and reveal shapes are independent.",
299
+ "Controls of the same target share one inert panel. Latest request wins; hidden tabs and reduced motion commit immediately."
300
+ ],
301
+ "flip-card": [
302
+ "flip-card turns its first two child elements into the front and back faces, and flips between them. No special classes needed.",
303
+ "Already using kui-face-front / kui-face-back classes? Those still work, and they win over the first-two-children rule.",
304
+ "A button with aria-pressed directly inside the card becomes the flip control. With no button, the card adds one.",
305
+ ...onOwnChildren("flip-card")
306
+ ],
307
+ ...fromEntriesOf(OWN_CHILDREN_PRESETS, (name) => onOwnChildren(name)),
308
+ ...fromEntriesOf(EXIT_TOWARD, (name) => exitToward(name)),
309
+ ...fromEntriesOf(WIPES_HORIZONTAL, (name) => wipeHorizontal(name)),
310
+ ...fromEntriesOf(WIPES_VERTICAL, (name) => wipeVertical(name)),
311
+ ...fromEntriesOf(CURSOR_DOT_PRESETS, (name) => cursorDot(name)),
312
+ "cursor-spotlight": [
313
+ "cursor-spotlight lights up the box with a soft glow that follows the pointer. No extra dot is added.",
314
+ "The box itself stays where it is. Only the glow moves, and that is normal.",
315
+ "The glow only shows while the pointer is over the box, or when the box has keyboard focus.",
316
+ "gradient:flashlight darkens the box and lights a circle round the pointer; it stays dark at rest, and on a touch screen the box stays fully lit."
317
+ ],
318
+ "carousel-warp": [
319
+ "Each step jumps like a ship going to hyperspace: star streaks burst out, the old slide flies past and the new one rushes in.",
320
+ "Set --kui-warp-origin on the slideshow to put the burst on your picture; it is the centre by default.",
321
+ "Any slideshow can do this with transition:warp. With reduced motion the jump becomes a short fade."
322
+ ],
323
+ carousel: [
324
+ "target: names the slides and the dots together, like target:'.slide, .dot'. Any value with a comma or a space needs quotes.",
325
+ "next: and prev: are the arrow buttons. jump: is the row of dots, and each dot jumps to the slide in the same position.",
326
+ "Past the last slide it wraps back to the first. With no next:, prev: or jump:, clicking the carousel moves it forward."
327
+ ],
328
+ "horizontal-scroll": [
329
+ "target: names the strip that slides sideways. The outer box stays put while you scroll down.",
330
+ "Only the first match is used, so point target: at one strip.",
331
+ "Without a target:, the box with data-kui is the strip, and it just slides sideways as you scroll."
332
+ ]
333
+ };
334
+
183
335
  // src/notes/interaction.ts
184
336
  var INTERACTION_NOTES = {
337
+ "cursor-trail.images": "Which source images inside the host supply the decorative trail.",
338
+ "cursor-trail.spacing": "Distance between successive photographs along the pointer path.",
339
+ "group-expand.grow": "How many shares of the row the hovered or focused card takes, compared with each neighbour.",
340
+ "cursor-follow.over": "Which descendants supply the hovered shape and content.",
341
+ "cursor-follow.match": "Keep the dot size, fit the target box, or match its text height.",
342
+ "cursor-follow.snap": "Follow the pointer or spring to the hovered target centre.",
343
+ "cursor-follow.dot-class": "Extra style classes on this follower, for size, paint or rich content.",
344
+ "cursor-lag.over": "Which descendants supply the hovered shape and content.",
345
+ "cursor-lag.match": "Keep the dot size, fit the target box, or match its text height.",
346
+ "cursor-lag.snap": "Follow the pointer or spring to the hovered target centre.",
347
+ "cursor-lag.dot-class": "Extra style classes on this follower, for size, paint or rich content.",
348
+ "cursor-label.over": "Which descendants supply the hovered shape and content.",
349
+ "cursor-label.match": "Keep the dot size, fit the target box, or match its text height.",
350
+ "cursor-label.snap": "Follow the pointer or spring to the hovered target centre.",
351
+ "cursor-label.dot-class": "Extra style classes on this follower, for size, paint or rich content.",
352
+ "cursor-invert.over": "Which descendants supply the hovered shape and content.",
353
+ "cursor-invert.match": "Keep the dot size, fit the target box, or match its text height.",
354
+ "cursor-invert.snap": "Follow the pointer or spring to the hovered target centre.",
355
+ "cursor-invert.dot-class": "Extra style classes on this follower, for size, paint or rich content.",
356
+ "pop.press": "Scale while pressed, including during hover; release returns to the hover or focus scale.",
357
+ "cursor-spotlight.gradient": "Choose a soft glow, conic sectors set by --kui-spotlight-colors, or a flashlight that lights only the pointer area.",
185
358
  "anchored-preview.distance": "How far the preview travels as it pops in.",
186
359
  "anchored-preview.gap": "How much space is left between the preview and what it points at.",
187
360
  "anchored-preview.scale": "How small the preview starts before it grows to full size.",
@@ -278,6 +451,7 @@ var INTERACTION_NOTES = {
278
451
  "label-swap.distance": {
279
452
  why: "How far each label slides as it swaps; 100% is a full label height."
280
453
  },
454
+ "label-swap.stagger": "The pause between rolling letters; zero moves each whole label.",
281
455
  "lift.distance": "How far the element rises on hover.",
282
456
  "lift-shadow.distance": "How far the element rises on hover.",
283
457
  "pop.scale": "How much bigger the element grows on hover; 1 is no change.",
@@ -347,14 +521,22 @@ var KEY_NOTES = {
347
521
  why: "What starts it: scrolling into view, a hover, a click, or any event name.",
348
522
  whenOmitted: "Each effect picks: most start in view, hover and drag ones are ready on load."
349
523
  },
524
+ "data-kui.via": {
525
+ why: "Which other elements can send the event that starts the effect.",
526
+ whenOmitted: "The effect listens for events on its own element."
527
+ },
350
528
  "data-kui.actions": {
351
529
  why: "What to do each time it scrolls in, out, back in and back out.",
352
530
  whenOmitted: "It plays on the way in and nothing else."
353
531
  },
354
532
  "data-kui.timeline": {
355
- why: "What drives it: the clock, or the scroll position so it moves as you scroll.",
533
+ why: "Choose time, view or scroll, optionally followed by an axis and a CSS timeline name inside quotes.",
356
534
  whenOmitted: "It plays over time, at its own speed."
357
535
  },
536
+ "data-kui.range": {
537
+ why: "Where the effect starts and ends along a scroll or view timeline.",
538
+ whenOmitted: "It uses the full timeline unless timeline sets a range."
539
+ },
358
540
  "data-kui.threshold": {
359
541
  why: "How much of the element must be in view before it starts.",
360
542
  whenOmitted: "It starts as soon as any part of it shows."
@@ -387,10 +569,22 @@ var KEY_NOTES = {
387
569
  why: "The name of a page function to call when the effects finish.",
388
570
  whenOmitted: "Nothing is called."
389
571
  },
572
+ "data-kui.every": {
573
+ why: "How often this element starts, cycles or replays its effects, with a minimum of two seconds.",
574
+ whenOmitted: "The element has no automatic replay timer."
575
+ },
390
576
  "data-kui.at": {
391
577
  why: "Start this step relative to the one before: with it, after it, or a time off.",
392
578
  whenOmitted: "It starts at the same moment as the other steps."
393
579
  },
580
+ "data-kui.split": {
581
+ why: "Split text into characters or words, or slice an image into tiles that crop unless you set fit:stretch.",
582
+ whenOmitted: "The step runs without splitting its subject into pieces."
583
+ },
584
+ "data-kui.rows": {
585
+ why: "How many rows of tiles to make when splitting an image.",
586
+ whenOmitted: "Tiles are not generated without a row count."
587
+ },
394
588
  "data-kui.above": {
395
589
  why: "Only run this step when the screen is at least this wide.",
396
590
  whenOmitted: "It runs at every screen width."
@@ -411,6 +605,10 @@ var KEY_NOTES = {
411
605
  why: "How many times this step plays, or infinite to keep going.",
412
606
  whenOmitted: "It plays once."
413
607
  },
608
+ "data-kui.repeat-delay": {
609
+ why: "How long to hold the end of one play before starting the next.",
610
+ whenOmitted: "The next play starts without a wait."
611
+ },
414
612
  "data-kui.yoyo": {
415
613
  why: "Play every other repeat backwards, so it swings back and forth.",
416
614
  whenOmitted: "Every repeat plays forwards."
@@ -419,6 +617,24 @@ var KEY_NOTES = {
419
617
 
420
618
  // src/notes/mechanics.ts
421
619
  var MECHANICS_NOTES = {
620
+ "text-path.curve": "The SVG path data that sets the curve for plain text to follow.",
621
+ "text-path.from": "The starting offset of the lettering along its SVG path.",
622
+ "text-path.to": "The ending offset, using the same unit as from.",
623
+ "text-path.duration": "How long timed lettering takes to travel along its path.",
624
+ "text-path.delay": "How long timed lettering waits before moving.",
625
+ "text-path.ease": "How timed lettering accelerates and slows along its path.",
626
+ "text-path.loop": "Repeats timed lettering continuously when true.",
627
+ "text-path.distance": "How much scrolling moves the lettering from its starting offset to its ending offset.",
628
+ "flip-container.attribute": "Also animate layout changes when this attribute changes on the host or its descendants.",
629
+ "flip-container.nested": "Include the host and descendants with corrected inherited translation and scale.",
630
+ "flip-container.leave": "Fade marked direct children out of flow and emit kui:leave-end so the app can remove each row.",
631
+ "auto-height.axis": "Animate height or width from its displayed size when interrupted.",
632
+ "tween.toggle": "Click to transition between the resting style and a scalar destination.",
633
+ "tween-from.toggle": "Use toggle on tween to transition between two positions.",
634
+ "tween.border-radius": "How round the corners become, with optional waypoint values.",
635
+ "tween-from.border-radius": "How round the corners start before returning to rest.",
636
+ "tween.border-radius-ease": "The curve used only for the corner rounding.",
637
+ "tween-from.border-radius-ease": "The curve used only for the corner rounding.",
422
638
  "auto-height.attribute": {
423
639
  why: "Which attribute changing tells the panel it opened or closed, so it can animate its height.",
424
640
  whenOmitted: "Watches data-open."
@@ -436,12 +652,17 @@ var MECHANICS_NOTES = {
436
652
  "draggable.damping": "How quickly the spring wobble dies out; lower wobbles longer.",
437
653
  "draggable.mass": "How heavy it feels; higher is slower and swingier.",
438
654
  "draggable.axis": "Limit dragging to sideways only, up and down only, or both.",
655
+ "draggable.publish": "Publish signed pixel numbers as --kui-drag-x and --kui-drag-y during dragging and settling.",
656
+ "draggable.detents": "Set space-separated pixel stops for the nearest release position on each enabled axis.",
657
+ "draggable.limits": "Use parent or a box selector for uneven elastic edges, measured at pickup and resize.",
658
+ "draggable.lock": "Choose dominant to freeze the stronger axis after the drag threshold, with ties choosing sideways.",
659
+ "draggable.wrap": "One or two positive pixel periods wrap the final offset while the author repeats the content.",
439
660
  "draggable.bounds": {
440
661
  why: "The furthest, in pixels, it can be pulled from its start; it gets stiffer near the limit.",
441
662
  whenOmitted: "No limit."
442
663
  },
443
664
  "draggable.return": {
444
- why: "Spring back to the starting spot when you let go.",
665
+ why: "Use true to spring home, or edge with limits to return to the nearest valid offset without momentum.",
445
666
  whenOmitted: "Off: it stays where you drop it."
446
667
  },
447
668
  "draggable.inertia": {
@@ -464,6 +685,8 @@ var MECHANICS_NOTES = {
464
685
  },
465
686
  "flip-face.angle": "How far the face turns, in degrees; 180deg is a full flip.",
466
687
  "flip-face.perspective": "How deep the 3D looks while turning; smaller is more dramatic.",
688
+ "flip-face.parts": "Use six authored faces to form a cube on cube-rotate.",
689
+ "flip-face.tumble": "Turn a six-faced cube continuously around all three axes.",
467
690
  "flip-indicator.follow": {
468
691
  why: "Which element the indicator slides to, such as the active tab; the first match on the page.",
469
692
  whenOmitted: "Nothing to follow, so the indicator stays put.",
@@ -474,6 +697,7 @@ var MECHANICS_NOTES = {
474
697
  whenOmitted: "Watches aria-selected."
475
698
  },
476
699
  "icon-toggle.delay": "Wait this long before opening; closing is never delayed.",
700
+ "icon-toggle.parts": "Use dots on hamburger-to-x to stretch four decorative dots into two crossing strokes.",
477
701
  "magnetic.stiffness": "How firmly it springs toward the pointer; higher follows tighter.",
478
702
  "magnetic.damping": "How quickly the spring wobble dies out; lower wobbles longer.",
479
703
  "magnetic.mass": "How heavy it feels; higher is slower and swingier.",
@@ -492,6 +716,7 @@ var MECHANICS_NOTES = {
492
716
  whenOmitted: "Its top-left corner."
493
717
  },
494
718
  "motion-path.from": "Where along the path it starts, as a percentage of the length.",
719
+ "motion-path.viewbox": "Source coordinate bounds for fitting the path into its parent.",
495
720
  "motion-path.to": "Where along the path it stops, as a percentage of the length.",
496
721
  "page-reveal.distance": "How far the page slides as it fades in. Only the slide version moves.",
497
722
  "page-fade.distance": "Does nothing here: page-fade only fades. Use page-slide to move as well.",
@@ -499,17 +724,21 @@ var MECHANICS_NOTES = {
499
724
  why: "The total length of the line, so it draws fully; match it to your shape.",
500
725
  whenOmitted: "Assumes 100."
501
726
  },
727
+ "shape-fill.outline": "Set to true to keep a still outline behind the animated fill on an SVG path.",
502
728
  "path-morph.from": {
503
729
  why: "The starting shape, as SVG path data.",
504
730
  whenOmitted: "Uses the path's own shape."
505
731
  },
506
732
  "path-morph.to": {
507
- why: "The shape it morphs into, as SVG path data.",
733
+ why: "Use SVG path data or IDs like #rounded, with a pipe-separated list of either form when looping.",
508
734
  whenOmitted: "Nothing to morph into: a warning, and the shape never changes.",
509
735
  required: true
510
736
  },
511
737
  "path-morph.delay": "Wait this long after the pointer arrives before morphing; moving away is never delayed.",
738
+ "path-morph.loop": "Loop through the starting path and each destination, pausing while the tab is hidden.",
739
+ "path-morph.colors": "With loop enabled, blend pipe-separated fill colors with one color for every shape including the start.",
512
740
  "pressable.duration": "How long you must hold before it counts as a press.",
741
+ "pressable.held": "Mark the host while a pointer is held and clear it on cancellation.",
513
742
  "rotate.angle": "How far it is turned at the start, before straightening up.",
514
743
  "scale.scale": "How small it starts before growing to full size; 1 means no size change.",
515
744
  "skew.from": "The tilt at the start of the scroll range.",
@@ -673,6 +902,8 @@ var SCROLL_NAV_FORMS_NOTES = {
673
902
  "range-fill.delay": "No visible effect; the fill timing is fixed in the stylesheet.",
674
903
  "range-fill.ease": "No visible effect; the fill timing is fixed in the stylesheet.",
675
904
  "scroll-progress.distance": "How much scrolling it takes to go from 0 to 100 percent.",
905
+ "scroll-progress.smooth": "Lets visual progress settle with a spring while step marks follow scrolling directly.",
906
+ "scroll-progress.page": "Tracks the whole document from top to bottom instead of the element distance.",
676
907
  "scroll-progress.steps": {
677
908
  why: "Split the scroll into this many numbered steps your styles can react to.",
678
909
  whenOmitted: "0: only a smooth progress value is published, no steps."
@@ -696,6 +927,18 @@ var SCROLL_NAV_FORMS_NOTES = {
696
927
  why: "Whether the snap items are looked for only inside this element or anywhere on the page.",
697
928
  whenOmitted: "Looks only inside this element."
698
929
  },
930
+ "scroll-snap.autoplay": {
931
+ why: "How long to wait between items, at least two seconds, with negative times stepping backwards.",
932
+ whenOmitted: "The strip moves only when scrolled."
933
+ },
934
+ "scroll-snap.pause": {
935
+ why: "Which button pauses and resumes autoplay.",
936
+ whenOmitted: "No pause button is connected."
937
+ },
938
+ "scroll-snap.hover": {
939
+ why: "Set to none to keep autoplay moving while the pointer rests on the strip.",
940
+ whenOmitted: "Hovering pauses autoplay."
941
+ },
699
942
  "scroll-spy.distance": {
700
943
  why: "How much scrolling this section counts as being the current one.",
701
944
  whenOmitted: "One screen height. Ignored when sections is set."
@@ -730,6 +973,8 @@ var SCROLL_NAV_FORMS_NOTES = {
730
973
 
731
974
  // src/notes/shared.ts
732
975
  var SHARED_NOTES = {
976
+ "*.backdrop": "Tint the native dialog or popover backdrop; transparent leaves it clear.",
977
+ "*.backdrop-blur": "Blur the page behind a native dialog or popover.",
733
978
  "*.duration": "How long the motion takes from start to finish.",
734
979
  "*.delay": "Wait this long after the trigger before starting.",
735
980
  "*.ease": "The speed curve: slow start, slow finish, or a bounce.",
@@ -740,7 +985,29 @@ var SHARED_NOTES = {
740
985
  };
741
986
 
742
987
  // src/notes/showcase.ts
988
+ var DECK_CONTROLS_NOTE = "Which buttons to add: dots, arrows, both (auto), thumbnails, pause only, or none.";
743
989
  var SHOWCASE_NOTES = {
990
+ "spatial-ring.controls": DECK_CONTROLS_NOTE,
991
+ "spatial-ring.copies": "How many sets of the direct images to lay out around a full ring in the screen plane.",
992
+ "spatial-ring.shape": "Places cards on the usual ring, an outward vertical helix or a sphere.",
993
+ "spatial-ring.drag-axis": "Lets a drag also tumble a sphere vertically when set to both.",
994
+ "spatial-ring.rise": "The vertical distance between neighboring cards when shape is helix.",
995
+ "spatial-ring.distance": "How much scrolling moves the deck through one full cycle on a scroll timeline.",
996
+ "spatial-ring.speed": "Publishes signed movement speed in pixels per second when true.",
997
+ "spatial-stack.distance": "How much scrolling moves the deck through one full cycle on a scroll timeline.",
998
+ "spatial-stack.controls": DECK_CONTROLS_NOTE,
999
+ "spatial-stack.speed": "Publishes signed movement speed in pixels per second when true.",
1000
+ "spatial-row.copies": "Adds inert image copies to fill a short row when set to auto.",
1001
+ "spatial-row.release": "Lets a dragged row coast freely instead of snapping when set to free.",
1002
+ "spatial-row.shape": "Places the row flat or along a diagonal depth line.",
1003
+ "spatial-row.rise": "The vertical distance per card stride along the line.",
1004
+ "spatial-row.depth": "The distance away from the camera per card stride along the line.",
1005
+ "spatial-row.yaw": "Turns every line card by the same angle.",
1006
+ "spatial-row.perspective": "How close the camera is to the line.",
1007
+ "spatial-row.attribute": "Host attribute whose value column moves the line into a bounded column.",
1008
+ "spatial-ring.timer": "Publishes how far the current autoplay wait has elapsed, from zero to one, when true.",
1009
+ "spatial-stack.timer": "Publishes how far the current autoplay wait has elapsed, from zero to one, when true.",
1010
+ "slideshow.enter-delay": "Extra wait before a fade arrives; match duration for out-then-in order. Slide and warp modes do not use it.",
744
1011
  "compare.position": "Where the divider starts between two images, as a share of the width.",
745
1012
  "compare.positions": {
746
1013
  why: "Where each divider starts when comparing three or more images, as one quoted list.",
@@ -767,6 +1034,8 @@ var SHOWCASE_NOTES = {
767
1034
  why: "How rounded the corners of the screen inside the device are.",
768
1035
  whenOmitted: "The screen follows the outer corners, less the bezel, and is always at least a little rounded."
769
1036
  },
1037
+ "youtube.id": { why: "The 11-character YouTube video ID, not the whole link.", required: true },
1038
+ "youtube.title": "The video name read by screen readers on the poster, play button and player.",
770
1039
  "hotspots.target": {
771
1040
  why: "Which elements are the notes, one marker each.",
772
1041
  whenOmitted: "Uses the items of the list directly inside it."
@@ -786,6 +1055,7 @@ var SHOWCASE_NOTES = {
786
1055
  whenOmitted: "Looks only inside this element."
787
1056
  },
788
1057
  "lightbox.scale": "How small the picture starts as it grows into the viewer; 1 means no zoom.",
1058
+ "lightbox.flight": "Fly a fitted image from its thumbnail and back, with a short decode wait and plain fallback.",
789
1059
  "lightbox.loop": {
790
1060
  why: "Whether the arrows wrap from the last item back to the first.",
791
1061
  whenOmitted: "On: it wraps around."
@@ -838,7 +1108,11 @@ var SHOWCASE_NOTES = {
838
1108
  why: "How long each slide shows before moving on by itself; 2s at least.",
839
1109
  whenOmitted: "Off. It also stays off with controls:none or your own next, prev or jump buttons."
840
1110
  },
841
- "slideshow.transition": "Whether slides cross-fade or slide sideways.",
1111
+ "slideshow.hover": {
1112
+ why: "Whether resting the mouse on the slideshow pauses autoplay. none keeps it moving.",
1113
+ whenOmitted: "Hovering pauses it. Keyboard focus and the pause button always pause."
1114
+ },
1115
+ "slideshow.transition": "Whether slides cross-fade, slide sideways, or warp through a burst of star streaks.",
842
1116
  "slideshow.swipe": "Whether a left or right swipe changes the slide.",
843
1117
  "slideshow.mute": {
844
1118
  why: "Your own button, inside the slideshow, that mutes and unmutes the video on the current slide.",
@@ -898,8 +1172,12 @@ var SHOWCASE_NOTES = {
898
1172
  "spatial-ring.perspective": "How close the camera is; smaller values make the 3D look more dramatic.",
899
1173
  "spatial-ring.facing": "Whether cards turn outward with the ring or always face you so text stays readable.",
900
1174
  "spatial-ring.plane": "Whether the ring turns toward you in depth, or lies flat like a clock face.",
1175
+ "spatial-ring.axis": "Whether the ring turns like a carousel (y), or like a drum with the next card waiting at the top (x).",
901
1176
  "spatial-stack.grab": "Whether people can drag the stack with a finger or mouse.",
902
- "spatial-stack.travel": "How many pixels of dragging move the stack by one card.",
1177
+ "spatial-stack.travel": {
1178
+ why: "Pointer pixels per card. With leave:swipe, auto uses the magnitude of a pixel leave-x of at least 1px.",
1179
+ whenOmitted: "220 pixels per card, also used if auto cannot resolve."
1180
+ },
903
1181
  "spatial-stack.target": {
904
1182
  why: "Which elements are the cards.",
905
1183
  whenOmitted: "Uses its direct children."
@@ -945,8 +1223,18 @@ var SHOWCASE_NOTES = {
945
1223
  "spatial-stack.shrink": "How much smaller each card behind gets, per place back.",
946
1224
  "spatial-stack.blur": "How much blurrier each card behind gets, per place back.",
947
1225
  "spatial-stack.fade": "How much fainter each card behind gets, per place back.",
1226
+ "spatial-stack.pile": "Use flat to zero out shift, rise, shrink, blur and fade unless you set them explicitly.",
948
1227
  "spatial-stack.depth": "How many cards show behind the front one; the rest wait hidden.",
1228
+ "spatial-stack.leave": "Use swipe for a sideways exit that advances one card when dragged either way.",
1229
+ "spatial-stack.leave-x": "How far the leaving card moves sideways, multiplied by the swipe direction.",
1230
+ "spatial-stack.leave-rotate": "How far the leaving card rotates, multiplied by the swipe direction.",
1231
+ "spatial-stack.leave-fade": {
1232
+ why: "Opacity lost over one leaving place; 0 keeps the card opaque until the step ends.",
1233
+ whenOmitted: "A swiped card fades as it goes."
1234
+ },
1235
+ "spatial-stack.rest-rotate": "Alternate resting card angles by stable card index using this angle.",
949
1236
  "step-progress.duration": "Passed to your slide styles; autoplay also waits this long after someone moves it.",
1237
+ "step-progress.controls": DECK_CONTROLS_NOTE,
950
1238
  "step-progress.delay": "Passed to your slide styles to use as a start wait; the library adds no pause itself.",
951
1239
  "step-progress.ease": "Passed to your slide styles to use as their speed curve.",
952
1240
  "step-progress.steps": {
@@ -993,9 +1281,42 @@ var SHOWCASE_NOTES = {
993
1281
  whenOmitted: "Looks anywhere on the page, except under the carousel name, which looks inside."
994
1282
  }
995
1283
  };
1284
+ var STACK_ONLY_PARAMS = /* @__PURE__ */ new Set([
1285
+ "travel",
1286
+ "pile",
1287
+ "shift",
1288
+ "rise",
1289
+ "shrink",
1290
+ "blur",
1291
+ "fade",
1292
+ "depth",
1293
+ "leave",
1294
+ "leave-x",
1295
+ "leave-rotate",
1296
+ "leave-fade",
1297
+ "rest-rotate"
1298
+ ]);
1299
+ var ROW_NOTES = Object.fromEntries(
1300
+ Object.entries(SHOWCASE_NOTES).filter(([key]) => {
1301
+ const [owner, parameter] = key.split(".");
1302
+ return owner === "spatial-stack" && !STACK_ONLY_PARAMS.has(parameter);
1303
+ }).map(([key, note]) => [
1304
+ key.replace("spatial-stack.", "spatial-row."),
1305
+ typeof note === "string" ? note.replace("stack", "row") : {
1306
+ why: note.why.replace("stack", "row"),
1307
+ whenOmitted: note.whenOmitted.replace("stack", "row")
1308
+ }
1309
+ ])
1310
+ );
996
1311
 
997
1312
  // src/notes/text.ts
998
1313
  var TEXT_NOTES = {
1314
+ "split-text.hold": "Keep the split and light each piece using inherited scroll progress until teardown.",
1315
+ "text-gradient-sweep.fill": "Fill dim glyphs with a hard edge from left to right, using the existing sweep animation.",
1316
+ "fade-open.enter-delay": "Extra wait only when opening; match the outgoing duration for out-then-in order.",
1317
+ "fade-open.shape": "Reveal through a circle or rounded inset in both directions; none keeps the ordinary fade.",
1318
+ "fade-open.origin": "Circle centre: center, top, bottom, left, right, or a quoted corner such as top left.",
1319
+ "fade-open.radius": "Corner radius throughout an inset reveal.",
999
1320
  "count.from": "The number the counter starts at.",
1000
1321
  "count.to": "The number the counter ends on.",
1001
1322
  "count.decimals": "How many digits to show after the decimal point; ignored by compact, which shows at most one.",
@@ -1009,7 +1330,11 @@ var TEXT_NOTES = {
1009
1330
  },
1010
1331
  "count-odometer.from": "The number the rolling digits start at; whole numbers from 0 up, so -5 counts as 0.",
1011
1332
  "count-odometer.to": "The number the rolling digits land on; whole numbers from 0 up, so 2.5 rounds to 3.",
1333
+ "count-odometer.attribute": "Watch this host attribute for a live number instead of playing a fixed count.",
1012
1334
  "drop-open.distance": "How far the element drops down into place as it opens.",
1335
+ "drop-open.radius": "Distance from the group centre; use distance:0px to fan out from that centre.",
1336
+ "drop-open.angle": "Angle of the first item, with -90deg pointing up. Existing cascade: assigns each child its index and stagger.",
1337
+ "drop-open.step": "Angle between items: 60deg gives six items a ring; a smaller step gives an arc.",
1013
1338
  "meter-bar.from": {
1014
1339
  why: "How full the bar is when it starts, from 0 (empty) to 1 (full).",
1015
1340
  whenOmitted: "Starts empty and grows to its full width."
@@ -1026,7 +1351,10 @@ var TEXT_NOTES = {
1026
1351
  "slide-open-up.distance": "How far the element slides in from below.",
1027
1352
  "split-text.stagger": "Wait between each piece, so letters or words arrive one by one.",
1028
1353
  "split-text.unit": "What the text is cut into: single letters, whole words, or lines.",
1029
- "split-text.direction": "How each piece arrives: fade, slide up, slide down, or rise from a mask.",
1354
+ "split-text.direction": {
1355
+ why: "How pieces arrive: fade, up/down, a mask wipe, or rise-mask sliding up 120% behind a still clip.",
1356
+ whenOmitted: "Uses the preset's direction; --kui-mask-bleed adds room for letters above and below a mask's edge."
1357
+ },
1030
1358
  "split-text-motion.stagger": "Offset between neighbouring letters, which shapes the wave or jitter.",
1031
1359
  "split-text-motion.motion": "The style of letter movement: a smooth wave or a nervous jitter.",
1032
1360
  "text-3d-extrude.angle": "How far the text is turned at the start before it straightens; negative turns it anticlockwise.",
@@ -1041,7 +1369,12 @@ var TEXT_NOTES = {
1041
1369
  why: "The colour of the highlight bar or underline.",
1042
1370
  whenOmitted: "Uses the text's own colour; the highlight preset uses gold."
1043
1371
  },
1372
+ "text-sweep.position": "Place the underline vertically, with 50% drawing a strike through the text.",
1044
1373
  "typewriter.step": "How long each typed letter takes; ignored when a total duration is given.",
1374
+ "typewriter.words": "The words to type and fully delete in turn, separated by |.",
1375
+ "typewriter.interval": "How long each whole word stays before it deletes.",
1376
+ "typewriter.erase": "Use scatter to drift and fade typed letters away before the next word.",
1377
+ "typewriter.rhythm": "Use natural for modestly uneven typing with longer pauses after punctuation.",
1045
1378
  "typewriter.loop": {
1046
1379
  why: "Delete the text and type it again, over and over.",
1047
1380
  whenOmitted: "Off: it types once and stops."
@@ -1062,7 +1395,10 @@ var TEXT_NOTES = {
1062
1395
  why: 'The words to cycle through, separated by | and quoted, like "fast|simple|bold".',
1063
1396
  required: true
1064
1397
  },
1065
- "word-cycler.interval": "How long each word stays before the next one swaps in."
1398
+ "word-cycler.interval": "How long each word stays before the next one swaps in.",
1399
+ "word-cycler.swap": "Whether words fade or scramble into the next word.",
1400
+ "word-cycler.from": "Where letters start scrambling and returning: start, end, centre or edges.",
1401
+ "word-cycler.step": "The pause between scramble steps."
1066
1402
  };
1067
1403
 
1068
1404
  // src/notes/index.ts
@@ -1076,8 +1412,10 @@ var PARAM_NOTES = {
1076
1412
  ...SCROLL_NAV_FORMS_NOTES,
1077
1413
  ...MECHANICS_NOTES,
1078
1414
  ...SHOWCASE_NOTES,
1415
+ ...ROW_NOTES,
1079
1416
  ...KEY_NOTES
1080
1417
  };
1081
1418
  export {
1419
+ EFFECT_NOTES,
1082
1420
  PARAM_NOTES
1083
1421
  };
@@ -811,7 +811,7 @@ void main() {
811
811
  `;
812
812
 
813
813
  // src/core/owned-styles.ts
814
- function createStyleLedger(el) {
814
+ function createStyleLedger(el, restoreProperty) {
815
815
  const style = el.style;
816
816
  const previous = /* @__PURE__ */ new Map();
817
817
  const authoredStyleAttribute = el.hasAttribute("style");
@@ -831,6 +831,7 @@ void main() {
831
831
  claim: remember,
832
832
  restore() {
833
833
  for (const [property, previousValue] of previous) {
834
+ if (restoreProperty && !restoreProperty(property)) continue;
834
835
  if (previousValue === void 0) style.removeProperty(property);
835
836
  else style.setProperty(property, previousValue.value, previousValue.priority);
836
837
  }