motionary 6.8.0 → 7.0.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/CHANGELOG.md +39 -0
- package/README.md +2 -2
- package/README_ja.md +2 -2
- package/README_zh.md +2 -2
- package/bin/usa-codemod-7.mjs +91 -0
- package/dist/chunks/{gpu-CsP2ZB3x.js → gpu-Bkw605Ds.js} +183 -5
- package/dist/chunks/gpu-Bkw605Ds.js.map +1 -0
- package/dist/chunks/{gpu-BBRLgEzM.cjs → gpu-Dx0H875w.cjs} +187 -4
- package/dist/chunks/gpu-Dx0H875w.cjs.map +1 -0
- package/dist/chunks/{index-tags-wv0R_vkO.cjs → index-tags-BTMwrfgV.cjs} +3 -3
- package/dist/chunks/index-tags-BTMwrfgV.cjs.map +1 -0
- package/dist/chunks/{index-tags-DucKMQr_.js → index-tags-C04JP8g4.js} +3 -3
- package/dist/chunks/index-tags-C04JP8g4.js.map +1 -0
- package/dist/chunks/player-C-TwEEy6.js +516 -0
- package/dist/chunks/player-C-TwEEy6.js.map +1 -0
- package/dist/chunks/player-PS6_FzNw.cjs +525 -0
- package/dist/chunks/player-PS6_FzNw.cjs.map +1 -0
- package/dist/components/a11y.cjs +1 -1
- package/dist/components/a11y.d.cts +2 -2
- package/dist/components/a11y.d.ts +2 -2
- package/dist/components/a11y.js +1 -1
- package/dist/components/angular.cjs +2 -2
- package/dist/components/angular.cjs.map +1 -1
- package/dist/components/angular.d.cts +5 -36
- package/dist/components/angular.d.ts +5 -36
- package/dist/components/angular.js +2 -2
- package/dist/components/angular.js.map +1 -1
- package/dist/components/effects.cjs +13 -522
- package/dist/components/effects.cjs.map +1 -1
- package/dist/components/effects.js +5 -513
- package/dist/components/effects.js.map +1 -1
- package/dist/components/fx-3d.cjs +2 -2
- package/dist/components/fx-3d.cjs.map +1 -1
- package/dist/components/fx-3d.d.cts +2 -2
- package/dist/components/fx-3d.d.ts +2 -2
- package/dist/components/fx-3d.js +2 -2
- package/dist/components/fx-3d.js.map +1 -1
- package/dist/components/fx-focus.cjs +125 -0
- package/dist/components/fx-focus.cjs.map +1 -0
- package/dist/components/fx-focus.d.cts +65 -0
- package/dist/components/fx-focus.d.ts +65 -0
- package/dist/components/fx-focus.js +122 -0
- package/dist/components/fx-focus.js.map +1 -0
- package/dist/components/fx-gpu.cjs +2 -2
- package/dist/components/fx-gpu.d.cts +2 -2
- package/dist/components/fx-gpu.d.ts +2 -2
- package/dist/components/fx-gpu.js +1 -1
- package/dist/components/fx-light.cjs +2 -2
- package/dist/components/fx-light.cjs.map +1 -1
- package/dist/components/fx-light.d.cts +2 -2
- package/dist/components/fx-light.d.ts +2 -2
- package/dist/components/fx-light.js +2 -2
- package/dist/components/fx-light.js.map +1 -1
- package/dist/components/fx-morph.cjs +2 -2
- package/dist/components/fx-morph.cjs.map +1 -1
- package/dist/components/fx-morph.d.cts +2 -2
- package/dist/components/fx-morph.d.ts +2 -2
- package/dist/components/fx-morph.js +2 -2
- package/dist/components/fx-morph.js.map +1 -1
- package/dist/components/fx-physics.cjs +2 -2
- package/dist/components/fx-physics.cjs.map +1 -1
- package/dist/components/fx-physics.d.cts +2 -2
- package/dist/components/fx-physics.d.ts +2 -2
- package/dist/components/fx-physics.js +2 -2
- package/dist/components/fx-physics.js.map +1 -1
- package/dist/components/fx-text.cjs +2 -2
- package/dist/components/fx-text.cjs.map +1 -1
- package/dist/components/fx-text.d.cts +2 -2
- package/dist/components/fx-text.d.ts +2 -2
- package/dist/components/fx-text.js +2 -2
- package/dist/components/fx-text.js.map +1 -1
- package/dist/components/fx-transitions.cjs +2 -2
- package/dist/components/fx-transitions.cjs.map +1 -1
- package/dist/components/fx-transitions.d.cts +2 -2
- package/dist/components/fx-transitions.d.ts +2 -2
- package/dist/components/fx-transitions.js +2 -2
- package/dist/components/fx-transitions.js.map +1 -1
- package/dist/components/fx-weather.cjs +2 -2
- package/dist/components/fx-weather.cjs.map +1 -1
- package/dist/components/fx-weather.d.cts +2 -2
- package/dist/components/fx-weather.d.ts +2 -2
- package/dist/components/fx-weather.js +2 -2
- package/dist/components/fx-weather.js.map +1 -1
- package/dist/components/fx2.cjs +37 -22
- package/dist/components/fx2.cjs.map +1 -1
- package/dist/components/fx2.d.cts +135 -14
- package/dist/components/fx2.d.ts +135 -14
- package/dist/components/fx2.js +25 -21
- package/dist/components/fx2.js.map +1 -1
- package/dist/components/interaction.cjs +11 -94
- package/dist/components/interaction.cjs.map +1 -1
- package/dist/components/interaction.css +0 -1
- package/dist/components/interaction.d.cts +3 -21
- package/dist/components/interaction.d.ts +3 -21
- package/dist/components/interaction.js +12 -94
- package/dist/components/interaction.js.map +1 -1
- package/dist/components/jsx.d.cts +2 -2
- package/dist/components/jsx.d.ts +2 -2
- package/dist/components/lazy.cjs +1 -1
- package/dist/components/lazy.d.cts +2 -2
- package/dist/components/lazy.d.ts +2 -2
- package/dist/components/lazy.js +1 -1
- package/dist/components/lite.cjs +115 -256
- package/dist/components/lite.cjs.map +1 -1
- package/dist/components/lite.js +116 -255
- package/dist/components/lite.js.map +1 -1
- package/dist/components/marketplace.cjs +82 -0
- package/dist/components/marketplace.cjs.map +1 -0
- package/dist/components/marketplace.d.cts +108 -0
- package/dist/components/marketplace.d.ts +108 -0
- package/dist/components/marketplace.js +77 -0
- package/dist/components/marketplace.js.map +1 -0
- package/dist/components/perf.cjs +1 -1
- package/dist/components/perf.d.cts +2 -2
- package/dist/components/perf.d.ts +2 -2
- package/dist/components/perf.js +1 -1
- package/dist/components/react.cjs +2 -2
- package/dist/components/react.cjs.map +1 -1
- package/dist/components/react.js +2 -2
- package/dist/components/react.js.map +1 -1
- package/dist/components/solid.cjs +2 -2
- package/dist/components/solid.cjs.map +1 -1
- package/dist/components/solid.d.cts +4 -35
- package/dist/components/solid.d.ts +4 -35
- package/dist/components/solid.js +2 -2
- package/dist/components/solid.js.map +1 -1
- package/dist/components/svelte.cjs +2 -2
- package/dist/components/svelte.cjs.map +1 -1
- package/dist/components/svelte.d.cts +5 -36
- package/dist/components/svelte.d.ts +5 -36
- package/dist/components/svelte.js +2 -2
- package/dist/components/svelte.js.map +1 -1
- package/dist/components/ui.cjs +16 -74
- package/dist/components/ui.cjs.map +1 -1
- package/dist/components/ui.css +0 -1
- package/dist/components/ui.d.cts +3 -18
- package/dist/components/ui.d.ts +3 -18
- package/dist/components/ui.js +17 -74
- package/dist/components/ui.js.map +1 -1
- package/dist/components/vue.cjs +2 -2
- package/dist/components/vue.cjs.map +1 -1
- package/dist/components/vue.d.cts +5 -36
- package/dist/components/vue.d.ts +5 -36
- package/dist/components/vue.js +2 -2
- package/dist/components/vue.js.map +1 -1
- package/dist/components/widgets.cjs +622 -53
- package/dist/components/widgets.cjs.map +1 -1
- package/dist/components/widgets.d.cts +106 -2
- package/dist/components/widgets.d.ts +106 -2
- package/dist/components/widgets.js +615 -54
- package/dist/components/widgets.js.map +1 -1
- package/dist/components.cjs +1 -3
- package/dist/components.cjs.map +1 -1
- package/dist/components.css +0 -2
- package/dist/components.d.cts +6 -39
- package/dist/components.d.ts +6 -39
- package/dist/components.js +3 -3
- package/dist/components.umd.js +2 -2
- package/dist/components.umd.js.map +1 -1
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/docs/ROADMAP.md +12 -12
- package/docs/accessibility.md +2 -2
- package/docs/components.md +41 -2
- package/docs/deprecations.md +4 -0
- package/docs/frameworks-ssr.md +4 -4
- package/docs/hybrid-apps.md +2 -2
- package/docs/upgrading-7.md +43 -0
- package/docs/windows-apps.md +1 -1
- package/package.json +133 -2
- package/dist/chunks/gpu-BBRLgEzM.cjs.map +0 -1
- package/dist/chunks/gpu-CsP2ZB3x.js.map +0 -1
- package/dist/chunks/index-tags-DucKMQr_.js.map +0 -1
- package/dist/chunks/index-tags-wv0R_vkO.cjs.map +0 -1
|
@@ -13,14 +13,14 @@ declare function adaptKeyframes(frames: Keyframe[], level?: MotionSensitivity):
|
|
|
13
13
|
declare const COMPONENT_CATEGORIES: {
|
|
14
14
|
readonly reveal: readonly ["usa-reveal", "usa-stagger", "usa-scroll-progress", "usa-scrolly"];
|
|
15
15
|
readonly text: readonly ["usa-typewriter", "usa-split-text", "usa-scramble", "usa-counter", "usa-shimmer-text", "usa-text-rotate", "usa-wave-text", "usa-glitch", "usa-gradient-text", "usa-handwriting", "usa-scroll-highlight"];
|
|
16
|
-
readonly interaction: readonly ["usa-ripple", "usa-magnetic", "usa-tilt", "usa-spotlight", "usa-press"
|
|
16
|
+
readonly interaction: readonly ["usa-ripple", "usa-magnetic", "usa-tilt", "usa-spotlight", "usa-press"];
|
|
17
17
|
readonly feedback: readonly ["usa-spinner", "usa-skeleton", "usa-progress", "usa-toaster", "usa-check"];
|
|
18
18
|
readonly background: readonly ["usa-aurora", "usa-particles", "usa-grain", "usa-marquee", "usa-acrylic", "usa-grid-glow", "usa-blobs", "usa-water-ripple", "usa-dot-network"];
|
|
19
19
|
readonly transitions: readonly ["usa-dialog", "usa-accordion", "usa-view-switch"];
|
|
20
20
|
readonly physics: readonly ["usa-spring", "usa-draggable", "usa-overscroll"];
|
|
21
21
|
readonly cards: readonly ["usa-card", "usa-card-stack", "usa-sticky-stack", "usa-carousel-3d"];
|
|
22
22
|
readonly click: readonly ["usa-click", "usa-button", "usa-icon-morph", "usa-like", "usa-hold", "usa-double-tap", "usa-checkbox"];
|
|
23
|
-
readonly ui: readonly ["usa-tabs", "usa-drawer", "usa-bottom-sheet", "usa-pull-refresh", "usa-fab", "usa-navbar", "usa-slider", "usa-rating", "usa-
|
|
23
|
+
readonly ui: readonly ["usa-tabs", "usa-drawer", "usa-bottom-sheet", "usa-pull-refresh", "usa-fab", "usa-navbar", "usa-slider", "usa-rating", "usa-popover", "usa-badge", "usa-avatar-stack"];
|
|
24
24
|
readonly page: readonly ["usa-cursor", "usa-fullpage", "usa-loading-bar", "usa-back-to-top", "usa-ambient", "usa-splash", "usa-auto-skeleton", "usa-motion-switch"];
|
|
25
25
|
readonly timeline: readonly ["usa-timeline"];
|
|
26
26
|
readonly gesture: readonly ["usa-swipeable", "usa-pinch-zoom"];
|
package/dist/components/a11y.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { x as deprecate, i as getMotionSensitivity, a as MOTION_SENSITIVITY_LEVELS, g as configureComponents, v as adoptStyles } from '../chunks/base-DchG4q_S.js';
|
|
2
2
|
export { d as adaptKeyframes } from '../chunks/base-DchG4q_S.js';
|
|
3
|
-
import { C as COMPONENT_CATEGORIES } from '../chunks/index-tags-
|
|
3
|
+
import { C as COMPONENT_CATEGORIES } from '../chunks/index-tags-C04JP8g4.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* 4.9 — the 5.0 modern-browser baseline. `baselineReport()` lists which
|
|
@@ -30,7 +30,7 @@ require('./packs.cjs');
|
|
|
30
30
|
require('./fx.cjs');
|
|
31
31
|
require('../chunks/registry-DehBVRDV.cjs');
|
|
32
32
|
require('./a11y.cjs');
|
|
33
|
-
require('../chunks/index-tags-
|
|
33
|
+
require('../chunks/index-tags-BTMwrfgV.cjs');
|
|
34
34
|
require('./perf.cjs');
|
|
35
35
|
require('./bridge.cjs');
|
|
36
36
|
|
|
@@ -49,7 +49,7 @@ require('./bridge.cjs');
|
|
|
49
49
|
* providers: [{ provide: APP_INITIALIZER, multi: true, useFactory: usaInitializer(['click', 'ui']) }]
|
|
50
50
|
*
|
|
51
51
|
* @Component({ standalone: true, schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
52
|
-
* template: `<usa-
|
|
52
|
+
* template: `<usa-switch [checked]="on" (usa:change)="on = $any($event).detail.checked"></usa-switch>` })
|
|
53
53
|
* ```
|
|
54
54
|
* `bindUsa(el, { props, on })` is available for directives that bind imperatively.
|
|
55
55
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular.cjs","sources":["../../src/components/frameworks/angular.ts"],"sourcesContent":["/**\n * motionary/components/angular — Angular integration (v3.8).\n * Angular renders `<usa-*>` tags once the component (or NgModule) allows\n * custom elements with `CUSTOM_ELEMENTS_SCHEMA`; property binding\n * `[checked]=\"on\"` and event binding `(usa:change)=\"…\"` then work as is.\n * This entry is framework-free (no `@angular/*` import):\n *\n * ```ts\n * import { CUSTOM_ELEMENTS_SCHEMA, Component, APP_INITIALIZER } from '@angular/core';\n * import { usaInitializer } from 'motionary/components/angular';\n *\n * // app.config.ts\n * providers: [{ provide: APP_INITIALIZER, multi: true, useFactory: usaInitializer(['click', 'ui']) }]\n *\n * @Component({ standalone: true, schemas: [CUSTOM_ELEMENTS_SCHEMA],\n * template: `<usa-
|
|
1
|
+
{"version":3,"file":"angular.cjs","sources":["../../src/components/frameworks/angular.ts"],"sourcesContent":["/**\n * motionary/components/angular — Angular integration (v3.8).\n * Angular renders `<usa-*>` tags once the component (or NgModule) allows\n * custom elements with `CUSTOM_ELEMENTS_SCHEMA`; property binding\n * `[checked]=\"on\"` and event binding `(usa:change)=\"…\"` then work as is.\n * This entry is framework-free (no `@angular/*` import):\n *\n * ```ts\n * import { CUSTOM_ELEMENTS_SCHEMA, Component, APP_INITIALIZER } from '@angular/core';\n * import { usaInitializer } from 'motionary/components/angular';\n *\n * // app.config.ts\n * providers: [{ provide: APP_INITIALIZER, multi: true, useFactory: usaInitializer(['click', 'ui']) }]\n *\n * @Component({ standalone: true, schemas: [CUSTOM_ELEMENTS_SCHEMA],\n * template: `<usa-switch [checked]=\"on\" (usa:change)=\"on = $any($event).detail.checked\"></usa-switch>` })\n * ```\n * `bindUsa(el, { props, on })` is available for directives that bind imperatively.\n */\nimport { defineComponents, type ComponentCategory } from '../index';\n\nexport { bindUsa, usaEventName } from './bind';\nexport type { UsaBinding } from './bind';\n\n/** `APP_INITIALIZER` factory: registers the elements in the browser (no-op during SSR). */\nexport function usaInitializer(categories?: ComponentCategory[]): () => () => void {\n return () => () => {\n if (typeof window !== 'undefined') defineComponents(categories);\n };\n}\n\n/** Register the elements directly (e.g. in `main.ts` before `bootstrapApplication`). */\nexport function defineUsa(categories?: ComponentCategory[]): void {\n if (typeof window !== 'undefined') defineComponents(categories);\n}\n\n/** Read `event.detail` from a `usa:*` event in a template handler: `(usa:change)=\"on = usaDetail($event).checked\"`. */\nexport const usaDetail = <T = any>(e: Event): T => (e as CustomEvent<T>).detail;\n"],"names":["defineComponents"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;AAkBG;AAMH;AACM,SAAU,cAAc,CAAC,UAAgC,EAAA;AAC7D,IAAA,OAAO,MAAM,MAAK;QAChB,IAAI,OAAO,MAAM,KAAK,WAAW;YAAEA,2BAAgB,CAAC,UAAU,CAAC;AACjE,IAAA,CAAC;AACH;AAEA;AACM,SAAU,SAAS,CAAC,UAAgC,EAAA;IACxD,IAAI,OAAO,MAAM,KAAK,WAAW;QAAEA,2BAAgB,CAAC,UAAU,CAAC;AACjE;AAEA;AACO,MAAM,SAAS,GAAG,CAAU,CAAQ,KAAS,CAAoB,CAAC;;;;;;;;"}
|
|
@@ -393,26 +393,10 @@ interface UsaPressElement extends UsaElement {
|
|
|
393
393
|
readonly pressed: boolean;
|
|
394
394
|
}
|
|
395
395
|
|
|
396
|
-
/**
|
|
397
|
-
* `<usa-toggle>` — an accessible switch whose knob stretches while pressed
|
|
398
|
-
* and glides across (the Windows 11 / iOS toggle). `role="switch"`,
|
|
399
|
-
* keyboard (Space / Enter), and form-associated where `ElementInternals`
|
|
400
|
-
* exists (submits `value`, default `"on"`, under `name` when checked).
|
|
401
|
-
*
|
|
402
|
-
* Attributes: `checked`, `disabled`, `name`, `value`, `label`
|
|
403
|
-
* (accessible name if there is no `aria-label` / `<label>`). Events:
|
|
404
|
-
* `change` and `usa:change` (`detail.checked`). Reduced motion: no glide.
|
|
405
|
-
*/
|
|
406
|
-
interface UsaToggleElement extends UsaElement {
|
|
407
|
-
checked: boolean;
|
|
408
|
-
disabled: boolean;
|
|
409
|
-
toggle(force?: boolean): void;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
396
|
/**
|
|
413
397
|
* motionary/components/interaction — micro-interactions.
|
|
414
398
|
* `<usa-ripple>`, `<usa-magnetic>`, `<usa-tilt>`, `<usa-spotlight>`,
|
|
415
|
-
* `<usa-press
|
|
399
|
+
* `<usa-press>`.
|
|
416
400
|
*/
|
|
417
401
|
|
|
418
402
|
declare global {
|
|
@@ -422,7 +406,6 @@ declare global {
|
|
|
422
406
|
'usa-tilt': UsaTiltElement;
|
|
423
407
|
'usa-spotlight': UsaSpotlightElement;
|
|
424
408
|
'usa-press': UsaPressElement;
|
|
425
|
-
'usa-toggle': UsaToggleElement;
|
|
426
409
|
}
|
|
427
410
|
}
|
|
428
411
|
|
|
@@ -1152,19 +1135,6 @@ interface UsaRatingElement extends UsaElement {
|
|
|
1152
1135
|
value: number;
|
|
1153
1136
|
}
|
|
1154
1137
|
|
|
1155
|
-
/**
|
|
1156
|
-
* `<usa-tooltip text="…">` — a tooltip for the element it wraps, shown on
|
|
1157
|
-
* hover (after `delay` ms, 300) and on keyboard focus, hidden on Esc / blur.
|
|
1158
|
-
* It springs in from its placement side and flips to stay on screen; the
|
|
1159
|
-
* trigger gets `aria-describedby`.
|
|
1160
|
-
* Attributes: `text`, `placement` (`top` default, `bottom`, `left`, `right`),
|
|
1161
|
-
* `delay`, `variant`. Reduced motion: fades only.
|
|
1162
|
-
*/
|
|
1163
|
-
interface UsaTooltipElement extends UsaElement {
|
|
1164
|
-
show(): void;
|
|
1165
|
-
hide(): void;
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
1138
|
/**
|
|
1169
1139
|
* `<usa-popover>` — a click-to-open popover: the first element child is the
|
|
1170
1140
|
* trigger, `[data-popover]` is the content. Springs open from the trigger,
|
|
@@ -1203,7 +1173,7 @@ interface UsaAvatarStackElement extends UsaElement {
|
|
|
1203
1173
|
* motionary/components/ui — animated UI components + style variants (v2.6).
|
|
1204
1174
|
* `<usa-tabs>`, `<usa-drawer>`, `<usa-bottom-sheet>`, `<usa-pull-refresh>`,
|
|
1205
1175
|
* `<usa-fab>`, `<usa-navbar>`, `<usa-slider>`, `<usa-rating>`,
|
|
1206
|
-
* `<usa-
|
|
1176
|
+
* `<usa-popover>`, `<usa-badge>`, `<usa-avatar-stack>`,
|
|
1207
1177
|
* and `variant="minimal | neon | glass | brutalist | fluent | material"`
|
|
1208
1178
|
* design tokens (`setVariant()`, `VARIANTS`).
|
|
1209
1179
|
*/
|
|
@@ -1218,7 +1188,6 @@ declare global {
|
|
|
1218
1188
|
'usa-navbar': UsaNavbarElement;
|
|
1219
1189
|
'usa-slider': UsaSliderElement;
|
|
1220
1190
|
'usa-rating': UsaRatingElement;
|
|
1221
|
-
'usa-tooltip': UsaTooltipElement;
|
|
1222
1191
|
'usa-popover': UsaPopoverElement;
|
|
1223
1192
|
'usa-badge': UsaBadgeElement;
|
|
1224
1193
|
'usa-avatar-stack': UsaAvatarStackElement;
|
|
@@ -1638,14 +1607,14 @@ declare global {
|
|
|
1638
1607
|
declare const COMPONENT_CATEGORIES: {
|
|
1639
1608
|
readonly reveal: readonly ["usa-reveal", "usa-stagger", "usa-scroll-progress", "usa-scrolly"];
|
|
1640
1609
|
readonly text: readonly ["usa-typewriter", "usa-split-text", "usa-scramble", "usa-counter", "usa-shimmer-text", "usa-text-rotate", "usa-wave-text", "usa-glitch", "usa-gradient-text", "usa-handwriting", "usa-scroll-highlight"];
|
|
1641
|
-
readonly interaction: readonly ["usa-ripple", "usa-magnetic", "usa-tilt", "usa-spotlight", "usa-press"
|
|
1610
|
+
readonly interaction: readonly ["usa-ripple", "usa-magnetic", "usa-tilt", "usa-spotlight", "usa-press"];
|
|
1642
1611
|
readonly feedback: readonly ["usa-spinner", "usa-skeleton", "usa-progress", "usa-toaster", "usa-check"];
|
|
1643
1612
|
readonly background: readonly ["usa-aurora", "usa-particles", "usa-grain", "usa-marquee", "usa-acrylic", "usa-grid-glow", "usa-blobs", "usa-water-ripple", "usa-dot-network"];
|
|
1644
1613
|
readonly transitions: readonly ["usa-dialog", "usa-accordion", "usa-view-switch"];
|
|
1645
1614
|
readonly physics: readonly ["usa-spring", "usa-draggable", "usa-overscroll"];
|
|
1646
1615
|
readonly cards: readonly ["usa-card", "usa-card-stack", "usa-sticky-stack", "usa-carousel-3d"];
|
|
1647
1616
|
readonly click: readonly ["usa-click", "usa-button", "usa-icon-morph", "usa-like", "usa-hold", "usa-double-tap", "usa-checkbox"];
|
|
1648
|
-
readonly ui: readonly ["usa-tabs", "usa-drawer", "usa-bottom-sheet", "usa-pull-refresh", "usa-fab", "usa-navbar", "usa-slider", "usa-rating", "usa-
|
|
1617
|
+
readonly ui: readonly ["usa-tabs", "usa-drawer", "usa-bottom-sheet", "usa-pull-refresh", "usa-fab", "usa-navbar", "usa-slider", "usa-rating", "usa-popover", "usa-badge", "usa-avatar-stack"];
|
|
1649
1618
|
readonly page: readonly ["usa-cursor", "usa-fullpage", "usa-loading-bar", "usa-back-to-top", "usa-ambient", "usa-splash", "usa-auto-skeleton", "usa-motion-switch"];
|
|
1650
1619
|
readonly timeline: readonly ["usa-timeline"];
|
|
1651
1620
|
readonly gesture: readonly ["usa-swipeable", "usa-pinch-zoom"];
|
|
@@ -1718,7 +1687,7 @@ declare function bindUsa(el: HTMLElement, binding?: UsaBinding): {
|
|
|
1718
1687
|
* providers: [{ provide: APP_INITIALIZER, multi: true, useFactory: usaInitializer(['click', 'ui']) }]
|
|
1719
1688
|
*
|
|
1720
1689
|
* @Component({ standalone: true, schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
1721
|
-
* template: `<usa-
|
|
1690
|
+
* template: `<usa-switch [checked]="on" (usa:change)="on = $any($event).detail.checked"></usa-switch>` })
|
|
1722
1691
|
* ```
|
|
1723
1692
|
* `bindUsa(el, { props, on })` is available for directives that bind imperatively.
|
|
1724
1693
|
*/
|
|
@@ -393,26 +393,10 @@ interface UsaPressElement extends UsaElement {
|
|
|
393
393
|
readonly pressed: boolean;
|
|
394
394
|
}
|
|
395
395
|
|
|
396
|
-
/**
|
|
397
|
-
* `<usa-toggle>` — an accessible switch whose knob stretches while pressed
|
|
398
|
-
* and glides across (the Windows 11 / iOS toggle). `role="switch"`,
|
|
399
|
-
* keyboard (Space / Enter), and form-associated where `ElementInternals`
|
|
400
|
-
* exists (submits `value`, default `"on"`, under `name` when checked).
|
|
401
|
-
*
|
|
402
|
-
* Attributes: `checked`, `disabled`, `name`, `value`, `label`
|
|
403
|
-
* (accessible name if there is no `aria-label` / `<label>`). Events:
|
|
404
|
-
* `change` and `usa:change` (`detail.checked`). Reduced motion: no glide.
|
|
405
|
-
*/
|
|
406
|
-
interface UsaToggleElement extends UsaElement {
|
|
407
|
-
checked: boolean;
|
|
408
|
-
disabled: boolean;
|
|
409
|
-
toggle(force?: boolean): void;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
396
|
/**
|
|
413
397
|
* motionary/components/interaction — micro-interactions.
|
|
414
398
|
* `<usa-ripple>`, `<usa-magnetic>`, `<usa-tilt>`, `<usa-spotlight>`,
|
|
415
|
-
* `<usa-press
|
|
399
|
+
* `<usa-press>`.
|
|
416
400
|
*/
|
|
417
401
|
|
|
418
402
|
declare global {
|
|
@@ -422,7 +406,6 @@ declare global {
|
|
|
422
406
|
'usa-tilt': UsaTiltElement;
|
|
423
407
|
'usa-spotlight': UsaSpotlightElement;
|
|
424
408
|
'usa-press': UsaPressElement;
|
|
425
|
-
'usa-toggle': UsaToggleElement;
|
|
426
409
|
}
|
|
427
410
|
}
|
|
428
411
|
|
|
@@ -1152,19 +1135,6 @@ interface UsaRatingElement extends UsaElement {
|
|
|
1152
1135
|
value: number;
|
|
1153
1136
|
}
|
|
1154
1137
|
|
|
1155
|
-
/**
|
|
1156
|
-
* `<usa-tooltip text="…">` — a tooltip for the element it wraps, shown on
|
|
1157
|
-
* hover (after `delay` ms, 300) and on keyboard focus, hidden on Esc / blur.
|
|
1158
|
-
* It springs in from its placement side and flips to stay on screen; the
|
|
1159
|
-
* trigger gets `aria-describedby`.
|
|
1160
|
-
* Attributes: `text`, `placement` (`top` default, `bottom`, `left`, `right`),
|
|
1161
|
-
* `delay`, `variant`. Reduced motion: fades only.
|
|
1162
|
-
*/
|
|
1163
|
-
interface UsaTooltipElement extends UsaElement {
|
|
1164
|
-
show(): void;
|
|
1165
|
-
hide(): void;
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
1138
|
/**
|
|
1169
1139
|
* `<usa-popover>` — a click-to-open popover: the first element child is the
|
|
1170
1140
|
* trigger, `[data-popover]` is the content. Springs open from the trigger,
|
|
@@ -1203,7 +1173,7 @@ interface UsaAvatarStackElement extends UsaElement {
|
|
|
1203
1173
|
* motionary/components/ui — animated UI components + style variants (v2.6).
|
|
1204
1174
|
* `<usa-tabs>`, `<usa-drawer>`, `<usa-bottom-sheet>`, `<usa-pull-refresh>`,
|
|
1205
1175
|
* `<usa-fab>`, `<usa-navbar>`, `<usa-slider>`, `<usa-rating>`,
|
|
1206
|
-
* `<usa-
|
|
1176
|
+
* `<usa-popover>`, `<usa-badge>`, `<usa-avatar-stack>`,
|
|
1207
1177
|
* and `variant="minimal | neon | glass | brutalist | fluent | material"`
|
|
1208
1178
|
* design tokens (`setVariant()`, `VARIANTS`).
|
|
1209
1179
|
*/
|
|
@@ -1218,7 +1188,6 @@ declare global {
|
|
|
1218
1188
|
'usa-navbar': UsaNavbarElement;
|
|
1219
1189
|
'usa-slider': UsaSliderElement;
|
|
1220
1190
|
'usa-rating': UsaRatingElement;
|
|
1221
|
-
'usa-tooltip': UsaTooltipElement;
|
|
1222
1191
|
'usa-popover': UsaPopoverElement;
|
|
1223
1192
|
'usa-badge': UsaBadgeElement;
|
|
1224
1193
|
'usa-avatar-stack': UsaAvatarStackElement;
|
|
@@ -1638,14 +1607,14 @@ declare global {
|
|
|
1638
1607
|
declare const COMPONENT_CATEGORIES: {
|
|
1639
1608
|
readonly reveal: readonly ["usa-reveal", "usa-stagger", "usa-scroll-progress", "usa-scrolly"];
|
|
1640
1609
|
readonly text: readonly ["usa-typewriter", "usa-split-text", "usa-scramble", "usa-counter", "usa-shimmer-text", "usa-text-rotate", "usa-wave-text", "usa-glitch", "usa-gradient-text", "usa-handwriting", "usa-scroll-highlight"];
|
|
1641
|
-
readonly interaction: readonly ["usa-ripple", "usa-magnetic", "usa-tilt", "usa-spotlight", "usa-press"
|
|
1610
|
+
readonly interaction: readonly ["usa-ripple", "usa-magnetic", "usa-tilt", "usa-spotlight", "usa-press"];
|
|
1642
1611
|
readonly feedback: readonly ["usa-spinner", "usa-skeleton", "usa-progress", "usa-toaster", "usa-check"];
|
|
1643
1612
|
readonly background: readonly ["usa-aurora", "usa-particles", "usa-grain", "usa-marquee", "usa-acrylic", "usa-grid-glow", "usa-blobs", "usa-water-ripple", "usa-dot-network"];
|
|
1644
1613
|
readonly transitions: readonly ["usa-dialog", "usa-accordion", "usa-view-switch"];
|
|
1645
1614
|
readonly physics: readonly ["usa-spring", "usa-draggable", "usa-overscroll"];
|
|
1646
1615
|
readonly cards: readonly ["usa-card", "usa-card-stack", "usa-sticky-stack", "usa-carousel-3d"];
|
|
1647
1616
|
readonly click: readonly ["usa-click", "usa-button", "usa-icon-morph", "usa-like", "usa-hold", "usa-double-tap", "usa-checkbox"];
|
|
1648
|
-
readonly ui: readonly ["usa-tabs", "usa-drawer", "usa-bottom-sheet", "usa-pull-refresh", "usa-fab", "usa-navbar", "usa-slider", "usa-rating", "usa-
|
|
1617
|
+
readonly ui: readonly ["usa-tabs", "usa-drawer", "usa-bottom-sheet", "usa-pull-refresh", "usa-fab", "usa-navbar", "usa-slider", "usa-rating", "usa-popover", "usa-badge", "usa-avatar-stack"];
|
|
1649
1618
|
readonly page: readonly ["usa-cursor", "usa-fullpage", "usa-loading-bar", "usa-back-to-top", "usa-ambient", "usa-splash", "usa-auto-skeleton", "usa-motion-switch"];
|
|
1650
1619
|
readonly timeline: readonly ["usa-timeline"];
|
|
1651
1620
|
readonly gesture: readonly ["usa-swipeable", "usa-pinch-zoom"];
|
|
@@ -1718,7 +1687,7 @@ declare function bindUsa(el: HTMLElement, binding?: UsaBinding): {
|
|
|
1718
1687
|
* providers: [{ provide: APP_INITIALIZER, multi: true, useFactory: usaInitializer(['click', 'ui']) }]
|
|
1719
1688
|
*
|
|
1720
1689
|
* @Component({ standalone: true, schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
1721
|
-
* template: `<usa-
|
|
1690
|
+
* template: `<usa-switch [checked]="on" (usa:change)="on = $any($event).detail.checked"></usa-switch>` })
|
|
1722
1691
|
* ```
|
|
1723
1692
|
* `bindUsa(el, { props, on })` is available for directives that bind imperatively.
|
|
1724
1693
|
*/
|
|
@@ -28,7 +28,7 @@ import './packs.js';
|
|
|
28
28
|
import './fx.js';
|
|
29
29
|
import '../chunks/registry-D23neB4M.js';
|
|
30
30
|
import './a11y.js';
|
|
31
|
-
import '../chunks/index-tags-
|
|
31
|
+
import '../chunks/index-tags-C04JP8g4.js';
|
|
32
32
|
import './perf.js';
|
|
33
33
|
import './bridge.js';
|
|
34
34
|
|
|
@@ -47,7 +47,7 @@ import './bridge.js';
|
|
|
47
47
|
* providers: [{ provide: APP_INITIALIZER, multi: true, useFactory: usaInitializer(['click', 'ui']) }]
|
|
48
48
|
*
|
|
49
49
|
* @Component({ standalone: true, schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
50
|
-
* template: `<usa-
|
|
50
|
+
* template: `<usa-switch [checked]="on" (usa:change)="on = $any($event).detail.checked"></usa-switch>` })
|
|
51
51
|
* ```
|
|
52
52
|
* `bindUsa(el, { props, on })` is available for directives that bind imperatively.
|
|
53
53
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular.js","sources":["../../src/components/frameworks/angular.ts"],"sourcesContent":["/**\n * motionary/components/angular — Angular integration (v3.8).\n * Angular renders `<usa-*>` tags once the component (or NgModule) allows\n * custom elements with `CUSTOM_ELEMENTS_SCHEMA`; property binding\n * `[checked]=\"on\"` and event binding `(usa:change)=\"…\"` then work as is.\n * This entry is framework-free (no `@angular/*` import):\n *\n * ```ts\n * import { CUSTOM_ELEMENTS_SCHEMA, Component, APP_INITIALIZER } from '@angular/core';\n * import { usaInitializer } from 'motionary/components/angular';\n *\n * // app.config.ts\n * providers: [{ provide: APP_INITIALIZER, multi: true, useFactory: usaInitializer(['click', 'ui']) }]\n *\n * @Component({ standalone: true, schemas: [CUSTOM_ELEMENTS_SCHEMA],\n * template: `<usa-
|
|
1
|
+
{"version":3,"file":"angular.js","sources":["../../src/components/frameworks/angular.ts"],"sourcesContent":["/**\n * motionary/components/angular — Angular integration (v3.8).\n * Angular renders `<usa-*>` tags once the component (or NgModule) allows\n * custom elements with `CUSTOM_ELEMENTS_SCHEMA`; property binding\n * `[checked]=\"on\"` and event binding `(usa:change)=\"…\"` then work as is.\n * This entry is framework-free (no `@angular/*` import):\n *\n * ```ts\n * import { CUSTOM_ELEMENTS_SCHEMA, Component, APP_INITIALIZER } from '@angular/core';\n * import { usaInitializer } from 'motionary/components/angular';\n *\n * // app.config.ts\n * providers: [{ provide: APP_INITIALIZER, multi: true, useFactory: usaInitializer(['click', 'ui']) }]\n *\n * @Component({ standalone: true, schemas: [CUSTOM_ELEMENTS_SCHEMA],\n * template: `<usa-switch [checked]=\"on\" (usa:change)=\"on = $any($event).detail.checked\"></usa-switch>` })\n * ```\n * `bindUsa(el, { props, on })` is available for directives that bind imperatively.\n */\nimport { defineComponents, type ComponentCategory } from '../index';\n\nexport { bindUsa, usaEventName } from './bind';\nexport type { UsaBinding } from './bind';\n\n/** `APP_INITIALIZER` factory: registers the elements in the browser (no-op during SSR). */\nexport function usaInitializer(categories?: ComponentCategory[]): () => () => void {\n return () => () => {\n if (typeof window !== 'undefined') defineComponents(categories);\n };\n}\n\n/** Register the elements directly (e.g. in `main.ts` before `bootstrapApplication`). */\nexport function defineUsa(categories?: ComponentCategory[]): void {\n if (typeof window !== 'undefined') defineComponents(categories);\n}\n\n/** Read `event.detail` from a `usa:*` event in a template handler: `(usa:change)=\"on = usaDetail($event).checked\"`. */\nexport const usaDetail = <T = any>(e: Event): T => (e as CustomEvent<T>).detail;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;AAkBG;AAMH;AACM,SAAU,cAAc,CAAC,UAAgC,EAAA;AAC7D,IAAA,OAAO,MAAM,MAAK;QAChB,IAAI,OAAO,MAAM,KAAK,WAAW;YAAE,gBAAgB,CAAC,UAAU,CAAC;AACjE,IAAA,CAAC;AACH;AAEA;AACM,SAAU,SAAS,CAAC,UAAgC,EAAA;IACxD,IAAI,OAAO,MAAM,KAAK,WAAW;QAAE,gBAAgB,CAAC,UAAU,CAAC;AACjE;AAEA;AACO,MAAM,SAAS,GAAG,CAAU,CAAQ,KAAS,CAAoB,CAAC;;;;"}
|