use-scroll-animate 6.3.0 → 6.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 (42) hide show
  1. package/CHANGELOG.md +19 -2
  2. package/README.md +2 -2
  3. package/README_ja.md +2 -2
  4. package/README_zh.md +2 -2
  5. package/dist/chunks/{generative-BRUZaIsX.js → generative-2LhxG5BJ.js} +2 -2
  6. package/dist/chunks/{generative-BRUZaIsX.js.map → generative-2LhxG5BJ.js.map} +1 -1
  7. package/dist/chunks/{gpu-XHWzeNb5.js → gpu-EjV49FQk.js} +3 -3
  8. package/dist/chunks/{gpu-XHWzeNb5.js.map → gpu-EjV49FQk.js.map} +1 -1
  9. package/dist/chunks/{shared-eweTlzxv.js → shared-CkKHWrtJ.js} +2 -2
  10. package/dist/chunks/{shared-eweTlzxv.js.map → shared-CkKHWrtJ.js.map} +1 -1
  11. package/dist/components/effects.js +3 -3
  12. package/dist/components/fx-gpu.js +3 -3
  13. package/dist/components/fx-light.cjs +221 -0
  14. package/dist/components/fx-light.cjs.map +1 -0
  15. package/dist/components/fx-light.d.cts +72 -0
  16. package/dist/components/fx-light.d.ts +72 -0
  17. package/dist/components/fx-light.js +217 -0
  18. package/dist/components/fx-light.js.map +1 -0
  19. package/dist/components/fx-text.js +1 -1
  20. package/dist/components/fx2.cjs +6 -0
  21. package/dist/components/fx2.cjs.map +1 -1
  22. package/dist/components/fx2.d.cts +29 -1
  23. package/dist/components/fx2.d.ts +29 -1
  24. package/dist/components/fx2.js +9 -5
  25. package/dist/components/fx2.js.map +1 -1
  26. package/dist/components/widgets.cjs +519 -14
  27. package/dist/components/widgets.cjs.map +1 -1
  28. package/dist/components/widgets.d.cts +67 -2
  29. package/dist/components/widgets.d.ts +67 -2
  30. package/dist/components/widgets.js +514 -15
  31. package/dist/components/widgets.js.map +1 -1
  32. package/dist/index.cjs +1 -1
  33. package/dist/index.cjs.map +1 -1
  34. package/dist/index.js +1 -1
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.umd.js +1 -1
  37. package/dist/index.umd.js.map +1 -1
  38. package/dist/widgets.umd.js +1 -1
  39. package/dist/widgets.umd.js.map +1 -1
  40. package/docs/ROADMAP.md +1 -1
  41. package/docs/components.md +29 -1
  42. package/package.json +14 -4
@@ -170,6 +170,67 @@ interface UsaMenuElement extends UsaElement {
170
170
  declare const MENU_EFFECTS: readonly ["scale", "fold", "slide"];
171
171
  declare function defineMenu(tag?: string): CustomElementConstructor | undefined;
172
172
 
173
+ /**
174
+ * 6.4 meters: `<usa-progress-ring>` and `<usa-odometer>`.
175
+ *
176
+ * `<usa-progress-ring value="64" max="100">` — a ring, `bar` or `semi`
177
+ * (semicircle gauge) `variant`; the arc eases (with a little overshoot) to
178
+ * each new value while the centre label counts; `gradient="#a,#b"`;
179
+ * no `value` = indeterminate (spinning arc). `role="progressbar"`.
180
+ * Event `usa:complete` when it reaches max.
181
+ *
182
+ * `<usa-odometer value="1234">` — rolling digit wheels: every digit column
183
+ * spins to its new digit (lower digits travel further), columns slide in /
184
+ * out when the length changes; `locale` grouping via Intl.NumberFormat,
185
+ * `decimals`, `prefix` / `suffix`, `duration`. The accessible name is the
186
+ * formatted number.
187
+ *
188
+ * Reduced motion: values switch without animation.
189
+ */
190
+ interface UsaProgressRingElement extends UsaElement {
191
+ value: number | null;
192
+ max: number;
193
+ }
194
+ interface UsaOdometerElement extends UsaElement {
195
+ value: number;
196
+ readonly text: string;
197
+ }
198
+ declare const PROGRESS_VARIANTS: readonly ["ring", "bar", "semi"];
199
+ declare function defineProgressRing(tag?: string): CustomElementConstructor | undefined;
200
+ declare function defineOdometer(tag?: string): CustomElementConstructor | undefined;
201
+
202
+ /**
203
+ * `<usa-skeleton-reveal loading>` (6.4) — a skeleton generated from the
204
+ * real content: while `loading`, every text line, image and marked block
205
+ * (`[data-skeleton]`) of the children is measured and covered by a
206
+ * placeholder with one synchronized shimmer (`variant="wave | pulse |
207
+ * glow"`). Remove `loading` (or call `reveal()`) and the placeholders
208
+ * dissolve top-to-bottom while the content fades in from a blur.
209
+ *
210
+ * `aria-busy` follows `loading`. Event `usa:reveal`. Reduced motion: no
211
+ * shimmer, a plain crossfade.
212
+ */
213
+ interface UsaSkeletonRevealElement extends UsaElement {
214
+ loading: boolean;
215
+ reveal(): Promise<void>;
216
+ }
217
+ declare const SKELETON_VARIANTS: readonly ["wave", "pulse", "glow"];
218
+ declare function defineSkeletonReveal(tag?: string): CustomElementConstructor | undefined;
219
+
220
+ /**
221
+ * `<usa-star-rating value="3.5">` (6.4) — rating stars 2.0: the fill
222
+ * follows the pointer (hover preview, `step="0.5"` half stars), a click
223
+ * pops the chosen star and throws a small sparkle burst, the other stars
224
+ * ripple in sequence. `max`, `step` (`1` · `0.5`), `readonly`, `label`,
225
+ * `icon` (`star` · `heart`). Keyboard: it is a `role="slider"` — arrows,
226
+ * Home / End. Event `usa:change` (`{ value }`). Reduced motion: no pop,
227
+ * burst or ripple.
228
+ */
229
+ interface UsaStarRatingElement extends UsaElement {
230
+ value: number;
231
+ }
232
+ declare function defineStarRating(tag?: string): CustomElementConstructor | undefined;
233
+
173
234
  /**
174
235
  * motionary/components/widgets — the 6.x animated UI widgets, in their own
175
236
  * entry so `motionary/components` and `components/lite` keep their size
@@ -199,8 +260,12 @@ declare global {
199
260
  'usa-modal': UsaModalElement;
200
261
  'usa-sheet': UsaSheetElement;
201
262
  'usa-menu': UsaMenuElement;
263
+ 'usa-progress-ring': UsaProgressRingElement;
264
+ 'usa-odometer': UsaOdometerElement;
265
+ 'usa-skeleton-reveal': UsaSkeletonRevealElement;
266
+ 'usa-star-rating': UsaStarRatingElement;
202
267
  }
203
268
  }
204
269
 
205
- export { CAROUSEL_EFFECTS, MENU_EFFECTS, MODAL_EFFECTS, SHEET_SIDES, TAB_INDICATORS, TOAST_POSITIONS, WIDGETS, WIDGET_TAGS, defineCarousel, defineDisclosure, defineMenu, defineModal, defineSheet, defineStories, defineTabBar, defineToastStack, defineWidgets, stackToast };
206
- export type { StackToastOptions, UsaCarouselElement, UsaDisclosureElement, UsaMenuElement, UsaModalElement, UsaSheetElement, UsaStoriesElement, UsaTabBarElement, UsaToastStackElement };
270
+ export { CAROUSEL_EFFECTS, MENU_EFFECTS, MODAL_EFFECTS, PROGRESS_VARIANTS, SHEET_SIDES, SKELETON_VARIANTS, TAB_INDICATORS, TOAST_POSITIONS, WIDGETS, WIDGET_TAGS, defineCarousel, defineDisclosure, defineMenu, defineModal, defineOdometer, defineProgressRing, defineSheet, defineSkeletonReveal, defineStarRating, defineStories, defineTabBar, defineToastStack, defineWidgets, stackToast };
271
+ export type { StackToastOptions, UsaCarouselElement, UsaDisclosureElement, UsaMenuElement, UsaModalElement, UsaOdometerElement, UsaProgressRingElement, UsaSheetElement, UsaSkeletonRevealElement, UsaStarRatingElement, UsaStoriesElement, UsaTabBarElement, UsaToastStackElement };
@@ -170,6 +170,67 @@ interface UsaMenuElement extends UsaElement {
170
170
  declare const MENU_EFFECTS: readonly ["scale", "fold", "slide"];
171
171
  declare function defineMenu(tag?: string): CustomElementConstructor | undefined;
172
172
 
173
+ /**
174
+ * 6.4 meters: `<usa-progress-ring>` and `<usa-odometer>`.
175
+ *
176
+ * `<usa-progress-ring value="64" max="100">` — a ring, `bar` or `semi`
177
+ * (semicircle gauge) `variant`; the arc eases (with a little overshoot) to
178
+ * each new value while the centre label counts; `gradient="#a,#b"`;
179
+ * no `value` = indeterminate (spinning arc). `role="progressbar"`.
180
+ * Event `usa:complete` when it reaches max.
181
+ *
182
+ * `<usa-odometer value="1234">` — rolling digit wheels: every digit column
183
+ * spins to its new digit (lower digits travel further), columns slide in /
184
+ * out when the length changes; `locale` grouping via Intl.NumberFormat,
185
+ * `decimals`, `prefix` / `suffix`, `duration`. The accessible name is the
186
+ * formatted number.
187
+ *
188
+ * Reduced motion: values switch without animation.
189
+ */
190
+ interface UsaProgressRingElement extends UsaElement {
191
+ value: number | null;
192
+ max: number;
193
+ }
194
+ interface UsaOdometerElement extends UsaElement {
195
+ value: number;
196
+ readonly text: string;
197
+ }
198
+ declare const PROGRESS_VARIANTS: readonly ["ring", "bar", "semi"];
199
+ declare function defineProgressRing(tag?: string): CustomElementConstructor | undefined;
200
+ declare function defineOdometer(tag?: string): CustomElementConstructor | undefined;
201
+
202
+ /**
203
+ * `<usa-skeleton-reveal loading>` (6.4) — a skeleton generated from the
204
+ * real content: while `loading`, every text line, image and marked block
205
+ * (`[data-skeleton]`) of the children is measured and covered by a
206
+ * placeholder with one synchronized shimmer (`variant="wave | pulse |
207
+ * glow"`). Remove `loading` (or call `reveal()`) and the placeholders
208
+ * dissolve top-to-bottom while the content fades in from a blur.
209
+ *
210
+ * `aria-busy` follows `loading`. Event `usa:reveal`. Reduced motion: no
211
+ * shimmer, a plain crossfade.
212
+ */
213
+ interface UsaSkeletonRevealElement extends UsaElement {
214
+ loading: boolean;
215
+ reveal(): Promise<void>;
216
+ }
217
+ declare const SKELETON_VARIANTS: readonly ["wave", "pulse", "glow"];
218
+ declare function defineSkeletonReveal(tag?: string): CustomElementConstructor | undefined;
219
+
220
+ /**
221
+ * `<usa-star-rating value="3.5">` (6.4) — rating stars 2.0: the fill
222
+ * follows the pointer (hover preview, `step="0.5"` half stars), a click
223
+ * pops the chosen star and throws a small sparkle burst, the other stars
224
+ * ripple in sequence. `max`, `step` (`1` · `0.5`), `readonly`, `label`,
225
+ * `icon` (`star` · `heart`). Keyboard: it is a `role="slider"` — arrows,
226
+ * Home / End. Event `usa:change` (`{ value }`). Reduced motion: no pop,
227
+ * burst or ripple.
228
+ */
229
+ interface UsaStarRatingElement extends UsaElement {
230
+ value: number;
231
+ }
232
+ declare function defineStarRating(tag?: string): CustomElementConstructor | undefined;
233
+
173
234
  /**
174
235
  * motionary/components/widgets — the 6.x animated UI widgets, in their own
175
236
  * entry so `motionary/components` and `components/lite` keep their size
@@ -199,8 +260,12 @@ declare global {
199
260
  'usa-modal': UsaModalElement;
200
261
  'usa-sheet': UsaSheetElement;
201
262
  'usa-menu': UsaMenuElement;
263
+ 'usa-progress-ring': UsaProgressRingElement;
264
+ 'usa-odometer': UsaOdometerElement;
265
+ 'usa-skeleton-reveal': UsaSkeletonRevealElement;
266
+ 'usa-star-rating': UsaStarRatingElement;
202
267
  }
203
268
  }
204
269
 
205
- export { CAROUSEL_EFFECTS, MENU_EFFECTS, MODAL_EFFECTS, SHEET_SIDES, TAB_INDICATORS, TOAST_POSITIONS, WIDGETS, WIDGET_TAGS, defineCarousel, defineDisclosure, defineMenu, defineModal, defineSheet, defineStories, defineTabBar, defineToastStack, defineWidgets, stackToast };
206
- export type { StackToastOptions, UsaCarouselElement, UsaDisclosureElement, UsaMenuElement, UsaModalElement, UsaSheetElement, UsaStoriesElement, UsaTabBarElement, UsaToastStackElement };
270
+ export { CAROUSEL_EFFECTS, MENU_EFFECTS, MODAL_EFFECTS, PROGRESS_VARIANTS, SHEET_SIDES, SKELETON_VARIANTS, TAB_INDICATORS, TOAST_POSITIONS, WIDGETS, WIDGET_TAGS, defineCarousel, defineDisclosure, defineMenu, defineModal, defineOdometer, defineProgressRing, defineSheet, defineSkeletonReveal, defineStarRating, defineStories, defineTabBar, defineToastStack, defineWidgets, stackToast };
271
+ export type { StackToastOptions, UsaCarouselElement, UsaDisclosureElement, UsaMenuElement, UsaModalElement, UsaOdometerElement, UsaProgressRingElement, UsaSheetElement, UsaSkeletonRevealElement, UsaStarRatingElement, UsaStoriesElement, UsaTabBarElement, UsaToastStackElement };