motionary 17.2.0 → 17.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/AGENTS.md +7 -5
- package/CHANGELOG.md +69 -0
- package/README.md +25 -22
- package/README_ja.md +20 -17
- package/README_zh.md +20 -17
- package/bin/mo-codemod.mjs +68 -3
- package/bin/motionary-mcp.mjs +4 -3
- package/dist/chunks/{anim-image-BSCjDYzT.js → anim-image-C2E-0IHe.js} +2 -2
- package/dist/chunks/{anim-image-DbsE4UOO.cjs → anim-image-DUp41p_J.cjs} +2 -2
- package/dist/chunks/{audio-D0LwPShE.cjs → audio-BYC54FVb.cjs} +4 -4
- package/dist/chunks/{audio-AtLkHgFE.js → audio-C1nRN28K.js} +4 -4
- package/dist/chunks/{badge-wall-Cl_xT9TD.js → badge-wall-CHVGI6ZX.js} +2 -2
- package/dist/chunks/{badge-wall-CITexuW7.cjs → badge-wall-nHmls1DJ.cjs} +2 -2
- package/dist/chunks/{base-BQmWYlDq.js → base-DRZOlKiI.js} +25 -8
- package/dist/chunks/{base-BvH4nAcv.cjs → base-DzZEJhQB.cjs} +24 -7
- package/dist/chunks/{bg-generator-DoLaSG2a.js → bg-generator-BceRQLoK.js} +2 -2
- package/dist/chunks/{bg-generator-CML8tPN8.cjs → bg-generator-D4ssmvZk.cjs} +2 -2
- package/dist/chunks/bind-B_CTL6Qn.js +1 -1
- package/dist/chunks/bind-Ui43-n2d.cjs +1 -1
- package/dist/chunks/{builtins-BYmVxuUA.js → builtins-BIFIhepe.js} +3 -3
- package/dist/chunks/{builtins-fp4MVfE-.cjs → builtins-Cp5v4424.cjs} +3 -3
- package/dist/chunks/{carousel-DU3rHTq0.cjs → carousel-CtzI1LxO.cjs} +2 -2
- package/dist/chunks/{carousel-Cl5uOQMI.js → carousel-DeCCp97t.js} +2 -2
- package/dist/chunks/{cart-drawer-DYcTBtqX.js → cart-drawer-CdVTa9ic.js} +2 -2
- package/dist/chunks/{cart-drawer-CkFMKMhx.cjs → cart-drawer-DSPlj8F4.cjs} +2 -2
- package/dist/chunks/category-for-tag-D_QJPwpZ.cjs +16 -0
- package/dist/chunks/category-for-tag-WK7MtB-K.js +14 -0
- package/dist/chunks/{code-export-F5ajFBWV.js → code-export-BAYvizw5.js} +2 -2
- package/dist/chunks/{code-export-PdGSl9WE.cjs → code-export-ZWiwLw-H.cjs} +2 -2
- package/dist/chunks/{color-picker-B_xWVH8H.cjs → color-picker-8N-NOvcQ.cjs} +2 -2
- package/dist/chunks/{color-picker-DfAShjuU.js → color-picker-DL8WAdgj.js} +2 -2
- package/dist/chunks/{command-palette-B_sdGBkB.cjs → command-palette-CF3b-53a.cjs} +2 -2
- package/dist/chunks/{command-palette-D3BLEWg1.js → command-palette-CmYGwCis.js} +2 -2
- package/dist/chunks/core-BjcOCpJt.cjs +1 -1
- package/dist/chunks/{core-DbAYRKnS.cjs → core-CLKnlWY8.cjs} +2 -2
- package/dist/chunks/{core-DjjKLmZ6.cjs → core-D6--jjZC.cjs} +2 -2
- package/dist/chunks/{core-DISdVBH1.js → core-D9fzpWWF.js} +2 -2
- package/dist/chunks/core-Dj6iomdc.js +1 -1
- package/dist/chunks/{core-CxbMpBNZ.js → core-cXxctm3i.js} +2 -2
- package/dist/chunks/{countdown-RQViryt7.cjs → countdown-B3c7zXfX.cjs} +2 -2
- package/dist/chunks/{countdown-Bx3drDeE.js → countdown-DkX9uSX8.js} +2 -2
- package/dist/chunks/{date-picker-BgApzPNn.cjs → date-picker-DBlxYEY6.cjs} +2 -2
- package/dist/chunks/{date-picker-zwkly5SQ.js → date-picker-DJw-F-Wb.js} +2 -2
- package/dist/chunks/ease-HwYZnZat.cjs +1 -1
- package/dist/chunks/ease-XN8_0sXu.js +1 -1
- package/dist/chunks/{equalizer-DUDHQUHB.js → equalizer-3UOx6J5X.js} +2 -2
- package/dist/chunks/{equalizer-_eD_ZdCl.cjs → equalizer-DbABxC9W.cjs} +2 -2
- package/dist/chunks/{festival-banner-Bs18K0MJ.cjs → festival-banner-DOMDAkz8.cjs} +2 -2
- package/dist/chunks/{festival-banner-BhdjV0fp.js → festival-banner-ixk-a3W6.js} +2 -2
- package/dist/chunks/{field-BTSpoQcd.js → field-BSfzSa6C.js} +2 -2
- package/dist/chunks/{field-Dwq8-CLN.cjs → field-C_ODaCJ5.cjs} +2 -2
- package/dist/chunks/{format-b5fQz-vc.cjs → format-CcfR6-Jx.cjs} +2 -2
- package/dist/chunks/{format-CI6Vx9Ui.js → format-CqOIfdW_.js} +2 -2
- package/dist/chunks/{fx-DEhvlMn6.cjs → fx-BLAi-SpO.cjs} +2 -2
- package/dist/chunks/{fx-C9Bq8hdA.js → fx-BSLLiegk.js} +2 -2
- package/dist/chunks/{generative-BFR11LSL.js → generative-CMp5pE9Y.js} +2 -2
- package/dist/chunks/{generative-BKoxWOSP.cjs → generative-DkuaIgER.cjs} +2 -2
- package/dist/chunks/{gl-scene-C7iUre0C.cjs → gl-scene-C9pBV4jG.cjs} +3 -3
- package/dist/chunks/{gl-scene-HWJADmzS.js → gl-scene-CMC04FGd.js} +3 -3
- package/dist/chunks/{globe-DA0jyb6s.cjs → globe-BMVmAz1A.cjs} +2 -2
- package/dist/chunks/{globe-B6GMkhIi.js → globe-M_ojLZnP.js} +2 -2
- package/dist/chunks/{gpu-C2C6iBQC.cjs → gpu-B7egA-fl.cjs} +4 -4
- package/dist/chunks/{gpu-Bl7ZKR8x.js → gpu-gejIQCMt.js} +4 -4
- package/dist/chunks/{gpu-particles-dIxou1C7.js → gpu-particles-CquYk8lp.js} +2 -2
- package/dist/chunks/{gpu-particles-wEO_rds1.cjs → gpu-particles-DGwFsyz_.cjs} +2 -2
- package/dist/chunks/{history-DtNn2Q0g.js → history-CTLhjhlC.js} +2 -2
- package/dist/chunks/{history-B0Ml40k1.cjs → history-rim_8RCX.cjs} +2 -2
- package/dist/chunks/{index-C9_FEsfz.cjs → index-Ci8k-y1X.cjs} +4 -4
- package/dist/chunks/{index-C0j-oCw2.js → index-Cx-NVSlj.js} +4 -4
- package/dist/chunks/index-tags-B-JBecYg.js +1 -1
- package/dist/chunks/index-tags-hLIF2Clq.cjs +1 -1
- package/dist/chunks/key-click-BLm3BI8_.js +1 -1
- package/dist/chunks/key-click-v7I4K5Sr.cjs +1 -1
- package/dist/chunks/{keyframes-CUDTmxhE.cjs → keyframes-C38Ftq1B.cjs} +2 -2
- package/dist/chunks/{keyframes-CXCp1w7x.js → keyframes-CwhOVuO5.js} +2 -2
- package/dist/chunks/{leaderboard-CfgRxbeu.js → leaderboard-CbjrxexL.js} +2 -2
- package/dist/chunks/{leaderboard-DvSSQ8o3.cjs → leaderboard-DAxGz-Bv.cjs} +2 -2
- package/dist/chunks/{location-card-BP7JLDLo.js → location-card-BqWM1-UQ.js} +2 -2
- package/dist/chunks/{location-card-DSPTApUe.cjs → location-card-ChfmioKU.cjs} +2 -2
- package/dist/chunks/{lottie-icon-BxIqK7q7.js → lottie-icon-BYzLLASp.js} +2 -2
- package/dist/chunks/{lottie-icon-BoxkukMd.cjs → lottie-icon-tbOmn1bQ.cjs} +2 -2
- package/dist/chunks/{lottie-player-CaVEpHLo.js → lottie-player-BdgHpKiX.js} +3 -3
- package/dist/chunks/{lottie-player-C-dq35tB.cjs → lottie-player-kQ9J05on.cjs} +3 -3
- package/dist/chunks/{lyrics-D4zARPqR.js → lyrics-C4G2M58i.js} +2 -2
- package/dist/chunks/{lyrics-CRB7dA1j.cjs → lyrics-CchUHmvY.cjs} +2 -2
- package/dist/chunks/{manifest-EZTGWMQl.js → manifest-C-95Gckp.js} +2 -2
- package/dist/chunks/{manifest-xr3WET80.cjs → manifest-DWZv7bHQ.cjs} +2 -2
- package/dist/chunks/{menu-CZ1zHTT9.cjs → menu-9GcThZZr.cjs} +2 -2
- package/dist/chunks/{menu-EOQH7vNp.js → menu-D0jo561j.js} +2 -2
- package/dist/chunks/{menu-toggle-DGXN4VsN.cjs → menu-toggle-DcMQeRDt.cjs} +2 -2
- package/dist/chunks/{menu-toggle-BaP8UQtW.js → menu-toggle-DfImd7GH.js} +2 -2
- package/dist/chunks/mo-name-DR9ysd5S.cjs +18 -0
- package/dist/chunks/mo-name-DT5wwaGR.js +16 -0
- package/dist/chunks/nav-flyout-BklGeZ6_.js +254 -0
- package/dist/chunks/nav-flyout-CrLUC54W.cjs +257 -0
- package/dist/chunks/{nav-morph-Bl7rQGXg.js → nav-morph-DbPrhAZe.js} +2 -2
- package/dist/chunks/{nav-morph-C4rD3wrU.cjs → nav-morph-DuNCH5WQ.cjs} +2 -2
- package/dist/chunks/{otp-CImvDHhN.js → otp-BicHkNV7.js} +2 -2
- package/dist/chunks/{otp-DUyEWYMi.cjs → otp-W5drE539.cjs} +2 -2
- package/dist/chunks/{pagination-DHmYZZU9.cjs → pagination-BH2ngIJB.cjs} +2 -2
- package/dist/chunks/{pagination-D8OldTKt.js → pagination-YhHT5Tu2.js} +2 -2
- package/dist/chunks/{physics-playground-DvIxPvKr.js → physics-playground-Cxcj4i13.js} +3 -3
- package/dist/chunks/{physics-playground-dCRNiqlX.cjs → physics-playground-m9zHsri6.cjs} +3 -3
- package/dist/chunks/{play-U4-l22wu.js → play-B1V6ejr7.js} +2 -2
- package/dist/chunks/{play-D9Utt9rO.cjs → play-CTz93Nas.cjs} +2 -2
- package/dist/chunks/{player-core-S0Fqtlfd.js → player-core-BeC-5HSm.js} +4 -4
- package/dist/chunks/{player-core-wSp7kDYd.cjs → player-core-CqR6WVaL.cjs} +4 -4
- package/dist/chunks/{presence-DAthlALi.cjs → presence-DKDktgSJ.cjs} +2 -2
- package/dist/chunks/{presence-DKAp51JY.js → presence-DP4MWxbz.js} +2 -2
- package/dist/chunks/presets-BYBVJVeP.js +1 -1
- package/dist/chunks/presets-CUHys3sK.cjs +1 -1
- package/dist/chunks/{preview-DW0zh_0c.js → preview-C0sWbNsF.js} +3 -3
- package/dist/chunks/{preview-kiMCBqSF.cjs → preview-DGpXA2hJ.cjs} +3 -3
- package/dist/chunks/{prize-wheel-CYG2gNtL.js → prize-wheel-CQdle8sb.js} +2 -2
- package/dist/chunks/{prize-wheel-emDopI5c.cjs → prize-wheel-W_4Wvldc.cjs} +2 -2
- package/dist/chunks/{product-gallery-CKtSVhZk.cjs → product-gallery-B5ra4XHf.cjs} +8 -3
- package/dist/chunks/{product-gallery-Dn7yr7N9.js → product-gallery-DkLx-GA5.js} +8 -3
- package/dist/chunks/{progress-ring-DfUcJbXm.js → progress-ring-BBsjkFf2.js} +2 -2
- package/dist/chunks/{progress-ring-C75O4MUi.cjs → progress-ring-YtKPU2jM.cjs} +2 -2
- package/dist/chunks/{project-DiTOvzic.cjs → project-DIZ0UqvG.cjs} +4 -4
- package/dist/chunks/{project-9WDl1Fyq.js → project-Sa13fIXw.js} +4 -4
- package/dist/chunks/{prop-panel-DFqga6H5.cjs → prop-panel-CaR91ZOI.cjs} +2 -2
- package/dist/chunks/{prop-panel-DvkXyt8q.js → prop-panel-DlHuRGMl.js} +2 -2
- package/dist/chunks/{radar-D-bZRrgs.cjs → radar-CGKx_0Ug.cjs} +2 -2
- package/dist/chunks/{radar-D7LzLQJX.js → radar-CPk16rh6.js} +2 -2
- package/dist/chunks/{reactions-BL2iO8iy.cjs → reactions-C8aoxmBM.cjs} +2 -2
- package/dist/chunks/{reactions-S_dsxBY8.js → reactions-CgytEgcC.js} +2 -2
- package/dist/chunks/{registry-BKfDmsly.js → registry-CWI1ob40.js} +2 -2
- package/dist/chunks/{registry-B9sONDgb.cjs → registry-CYm_Tb0w.cjs} +2 -2
- package/dist/chunks/{registry-BdSDdeL7.js → registry-Di_8M2Md.js} +2 -2
- package/dist/chunks/{registry-CibnX7Ui.cjs → registry-_XKU28ZC.cjs} +2 -2
- package/dist/chunks/{retro-button-DrrBZ6w8.cjs → retro-button-CFu0VcvW.cjs} +2 -2
- package/dist/chunks/{retro-button-2x9sOTBI.js → retro-button-DZmsOnQZ.js} +2 -2
- package/dist/chunks/{rive-wdC-DTmT.js → rive-CuQrXqPv.js} +2 -2
- package/dist/chunks/{rive-D6X4J0Mi.cjs → rive-xzduMxFp.cjs} +2 -2
- package/dist/chunks/{runtime-link-Q3WPKh5c.js → runtime-link-BepzGCtu.js} +2 -2
- package/dist/chunks/{runtime-link-Bxd7d4mb.cjs → runtime-link-CdvAFKsO.cjs} +2 -2
- package/dist/chunks/{scene-U2YkjCm0.cjs → scene-C_jNHfn4.cjs} +2 -2
- package/dist/chunks/{scene-WZLES-B0.js → scene-DWRlvQ00.js} +2 -2
- package/dist/chunks/scroll-driven-CQbwzCdn.cjs +1 -1
- package/dist/chunks/scroll-driven-LghshrWq.js +1 -1
- package/dist/chunks/{scroll-scene-ek9FIiX6.js → scroll-scene-B9TSwnRw.js} +4 -4
- package/dist/chunks/{scroll-scene-a22qUFEw.cjs → scroll-scene-BRnibjdP.cjs} +4 -4
- package/dist/chunks/{segmented-BCajObgE.js → segmented-DV3fsjZA.js} +2 -2
- package/dist/chunks/{segmented-CpB4mKIn.cjs → segmented-JA4E5-4e.cjs} +2 -2
- package/dist/chunks/{shader-backdrop-BodjXMhw.cjs → shader-backdrop-Ct8UIKNL.cjs} +2 -2
- package/dist/chunks/{shader-backdrop-Ccg25dLQ.js → shader-backdrop-DCUYQZs4.js} +2 -2
- package/dist/chunks/shared-Bf72wLyt.cjs +1 -1
- package/dist/chunks/shared-CkKHWrtJ.js +1 -1
- package/dist/chunks/shared-jkgRH-Hx.cjs +1 -1
- package/dist/chunks/shared-o9CtwHmi.js +1 -1
- package/dist/chunks/{sheet-B38ylIEW.cjs → sheet-BzJEwGbk.cjs} +2 -2
- package/dist/chunks/{sheet-B2r33Isp.js → sheet-syGvz3gI.js} +2 -2
- package/dist/chunks/sign-DvZ1jHxE.js +1 -1
- package/dist/chunks/sign-RAkQIWrM.cjs +1 -1
- package/dist/chunks/{skeleton-reveal-Dsd3Wp0n.cjs → skeleton-reveal-04UV72HA.cjs} +2 -2
- package/dist/chunks/{skeleton-reveal-D2uMxKHC.js → skeleton-reveal-B3MJyXtU.js} +2 -2
- package/dist/chunks/{sparkline-C3SGIIax.js → sparkline-B6i28zLO.js} +2 -2
- package/dist/chunks/{sparkline-DeKhZpVo.cjs → sparkline-b6jIA0JR.cjs} +2 -2
- package/dist/chunks/{spring-BOKyL1Rj.js → spring-Ddhxb3nO.js} +2 -2
- package/dist/chunks/{spring-XEl_diDJ.cjs → spring-DoapHVAk.cjs} +2 -2
- package/dist/chunks/stagger-B9sKPwQB.js +1 -1
- package/dist/chunks/stagger-DFKwqOQG.cjs +1 -1
- package/dist/chunks/{suggestion-chips-FMxruJG4.js → suggestion-chips-BSTTrsXU.js} +2 -2
- package/dist/chunks/{suggestion-chips-CAcbFTr4.cjs → suggestion-chips-a0-diVWW.cjs} +2 -2
- package/dist/chunks/{switch-BdGuLQpo.js → switch-B5ACriSq.js} +2 -2
- package/dist/chunks/{switch-DiTlApGd.cjs → switch-Cs6mszUY.cjs} +2 -2
- package/dist/chunks/{tab-bar-rGOs5uh4.js → tab-bar-B9EIsSde.js} +2 -2
- package/dist/chunks/{tab-bar-BBlVAqbq.cjs → tab-bar-BvRhwu_Z.cjs} +2 -2
- package/dist/chunks/{ticker-Bc_N1JDx.js → ticker-CEWigMxm.js} +2 -2
- package/dist/chunks/{ticker-2mNR0uuF.cjs → ticker-D22gBWhA.cjs} +2 -2
- package/dist/chunks/{tip-VGS3qAUm.cjs → tip-C4ZmZX3u.cjs} +2 -2
- package/dist/chunks/{tip-VhV9WI93.js → tip-L4bEg80R.js} +2 -2
- package/dist/chunks/{toast-stack-BMStleeh.js → toast-stack-BAZcQeG8.js} +3 -3
- package/dist/chunks/{toast-stack-DprisNp_.cjs → toast-stack-CvhLNj0o.cjs} +3 -3
- package/dist/chunks/{tween-CGJiteOq.cjs → tween-C0Vcrivp.cjs} +2 -2
- package/dist/chunks/{tween-DICAJ3jm.js → tween-DBr6c0Np.js} +2 -2
- package/dist/chunks/{upload-progress-5FPam2SV.js → upload-progress-DHuh8F0L.js} +2 -2
- package/dist/chunks/{upload-progress-CEAWkP-p.cjs → upload-progress-Dw3IXtf8.cjs} +2 -2
- package/dist/chunks/{v2-BN000nHo.js → v2-BGAJ5peo.js} +3 -3
- package/dist/chunks/{v2-El9dfBqV.cjs → v2-Z2M3Ef0Y.cjs} +3 -3
- package/dist/chunks/v3-read-BNhrN3tL.cjs +1 -1
- package/dist/chunks/v3-read-BqgIjLQP.js +1 -1
- package/dist/chunks/{variants-DWeKzYPo.js → variants-DGFs5iIp.js} +2 -2
- package/dist/chunks/{variants-BtqEJuki.cjs → variants-OGnKHKwT.cjs} +2 -2
- package/dist/chunks/viewport-BAXHhZLV.js +1 -1
- package/dist/chunks/viewport-EFYGqMNa.cjs +1 -1
- package/dist/chunks/{voice-button-BsYkfXZ8.js → voice-button-B_ursjZX.js} +2 -2
- package/dist/chunks/{voice-button-9UauxvT9.cjs → voice-button-CjB9Skfp.cjs} +2 -2
- package/dist/chunks/{weather-card-B5ZBoxiD.js → weather-card-Bro03MyD.js} +4 -3
- package/dist/chunks/{weather-card-4Eg6e43D.cjs → weather-card-DjTGZGrl.cjs} +4 -3
- package/dist/chunks/{worker-canvas-DwniXjtc.js → worker-canvas-BQ31D84x.js} +16 -15
- package/dist/chunks/{worker-canvas-BMBXAFWp.cjs → worker-canvas-DgGkosGe.cjs} +16 -15
- package/dist/chunks/{xp-bar-DFdhs9RQ.js → xp-bar-CIdfQQOK.js} +2 -2
- package/dist/chunks/{xp-bar-DkWfCTfB.cjs → xp-bar-CgH7Z424.cjs} +2 -2
- package/dist/components/a11y.cjs +2 -2
- package/dist/components/a11y.js +3 -3
- package/dist/components/ai.cjs +1 -1
- package/dist/components/ai.js +1 -1
- package/dist/components/angular.cjs +1 -1
- package/dist/components/angular.d.cts +37 -0
- package/dist/components/angular.d.ts +37 -0
- package/dist/components/angular.js +1 -1
- package/dist/components/background.cjs +3 -3
- package/dist/components/background.js +3 -3
- package/dist/components/bridge.cjs +2 -2
- package/dist/components/bridge.js +2 -2
- package/dist/components/cards.cjs +3 -3
- package/dist/components/cards.js +3 -3
- package/dist/components/click.cjs +4 -4
- package/dist/components/click.js +4 -4
- package/dist/components/core.cjs +1 -1
- package/dist/components/core.js +1 -1
- package/dist/components/depth.cjs +4 -4
- package/dist/components/depth.js +4 -4
- package/dist/components/design.cjs +2 -2
- package/dist/components/design.js +2 -2
- package/dist/components/dotlottie.cjs +4 -4
- package/dist/components/dotlottie.js +4 -4
- package/dist/components/dsl.cjs +2 -2
- package/dist/components/dsl.js +2 -2
- package/dist/components/effects.cjs +7 -7
- package/dist/components/effects.js +10 -10
- package/dist/components/engine.cjs +2 -2
- package/dist/components/engine.js +3 -3
- package/dist/components/feedback.cjs +2 -2
- package/dist/components/feedback.js +2 -2
- package/dist/components/fx-3d.cjs +3 -3
- package/dist/components/fx-3d.js +3 -3
- package/dist/components/fx-ai.cjs +2 -2
- package/dist/components/fx-ai.js +2 -2
- package/dist/components/fx-chart.cjs +2 -2
- package/dist/components/fx-chart.js +2 -2
- package/dist/components/fx-cinema.cjs +2 -2
- package/dist/components/fx-cinema.js +2 -2
- package/dist/components/fx-cyber.cjs +2 -2
- package/dist/components/fx-cyber.js +2 -2
- package/dist/components/fx-festival.cjs +2 -2
- package/dist/components/fx-festival.js +2 -2
- package/dist/components/fx-focus.cjs +4 -3
- package/dist/components/fx-focus.js +4 -3
- package/dist/components/fx-form.cjs +2 -2
- package/dist/components/fx-form.js +2 -2
- package/dist/components/fx-game.cjs +2 -2
- package/dist/components/fx-game.js +2 -2
- package/dist/components/fx-genart.cjs +2 -2
- package/dist/components/fx-genart.js +2 -2
- package/dist/components/fx-geo.cjs +2 -2
- package/dist/components/fx-geo.js +2 -2
- package/dist/components/fx-gesture.cjs +2 -2
- package/dist/components/fx-gesture.js +2 -2
- package/dist/components/fx-gpu.cjs +4 -4
- package/dist/components/fx-gpu.js +4 -4
- package/dist/components/fx-hover.cjs +317 -0
- package/dist/components/fx-hover.d.cts +65 -0
- package/dist/components/fx-hover.d.ts +65 -0
- package/dist/components/fx-hover.js +314 -0
- package/dist/components/fx-light.cjs +4 -4
- package/dist/components/fx-light.js +4 -4
- package/dist/components/fx-lottie.cjs +2 -2
- package/dist/components/fx-lottie.js +2 -2
- package/dist/components/fx-morph.cjs +2 -2
- package/dist/components/fx-morph.js +2 -2
- package/dist/components/fx-music.cjs +5 -5
- package/dist/components/fx-music.js +5 -5
- package/dist/components/fx-organic.cjs +2 -2
- package/dist/components/fx-organic.js +2 -2
- package/dist/components/fx-paper.cjs +2 -2
- package/dist/components/fx-paper.js +2 -2
- package/dist/components/fx-perf.cjs +69 -19
- package/dist/components/fx-perf.d.cts +1 -0
- package/dist/components/fx-perf.d.ts +1 -0
- package/dist/components/fx-perf.js +69 -19
- package/dist/components/fx-physics.cjs +4 -4
- package/dist/components/fx-physics.js +4 -4
- package/dist/components/fx-retro.cjs +2 -2
- package/dist/components/fx-retro.js +2 -2
- package/dist/components/fx-safe.cjs +3 -3
- package/dist/components/fx-safe.js +3 -3
- package/dist/components/fx-shop.cjs +2 -2
- package/dist/components/fx-shop.js +2 -2
- package/dist/components/fx-social.cjs +2 -2
- package/dist/components/fx-social.js +2 -2
- package/dist/components/fx-spatial.cjs +2 -2
- package/dist/components/fx-spatial.js +2 -2
- package/dist/components/fx-surface.cjs +2 -2
- package/dist/components/fx-surface.js +2 -2
- package/dist/components/fx-text.cjs +3 -3
- package/dist/components/fx-text.js +3 -3
- package/dist/components/fx-transitions.cjs +4 -4
- package/dist/components/fx-transitions.js +4 -4
- package/dist/components/fx-video.cjs +3 -3
- package/dist/components/fx-video.js +3 -3
- package/dist/components/fx-weather.cjs +3 -3
- package/dist/components/fx-weather.js +3 -3
- package/dist/components/fx.cjs +4 -4
- package/dist/components/fx.js +5 -5
- package/dist/components/fx2.cjs +9 -4
- package/dist/components/fx2.d.cts +23 -1
- package/dist/components/fx2.d.ts +23 -1
- package/dist/components/fx2.js +9 -6
- package/dist/components/gesture.cjs +4 -4
- package/dist/components/gesture.js +5 -5
- package/dist/components/gl-model.cjs +4 -4
- package/dist/components/gl-model.js +4 -4
- package/dist/components/gl-pool.cjs +1 -1
- package/dist/components/gl-pool.js +1 -1
- package/dist/components/interaction.cjs +2 -2
- package/dist/components/interaction.js +2 -2
- package/dist/components/jsx.cjs +1 -1
- package/dist/components/jsx.d.cts +37 -0
- package/dist/components/jsx.d.ts +37 -0
- package/dist/components/jsx.js +1 -1
- package/dist/components/layout.cjs +2 -2
- package/dist/components/layout.js +2 -2
- package/dist/components/lazy.cjs +3 -20
- package/dist/components/lazy.js +3 -20
- package/dist/components/lite.cjs +286 -264
- package/dist/components/lite.js +286 -264
- package/dist/components/marketplace.cjs +2 -2
- package/dist/components/marketplace.js +3 -3
- package/dist/components/mo.cjs +12 -15
- package/dist/components/mo.js +12 -15
- package/dist/components/motion-layout.cjs +3 -3
- package/dist/components/motion-layout.js +3 -3
- package/dist/components/motion-scene.cjs +3 -3
- package/dist/components/motion-scene.js +3 -3
- package/dist/components/motion-tokens.cjs +1 -1
- package/dist/components/motion-tokens.js +1 -1
- package/dist/components/motion.cjs +5 -5
- package/dist/components/motion.js +5 -5
- package/dist/components/native.cjs +1 -1
- package/dist/components/native.js +1 -1
- package/dist/components/offscreen.cjs +2 -2
- package/dist/components/offscreen.js +3 -3
- package/dist/components/packs.cjs +2 -2
- package/dist/components/packs.js +2 -2
- package/dist/components/page.cjs +6 -4
- package/dist/components/page.js +7 -5
- package/dist/components/perf-tasks.cjs +2 -2
- package/dist/components/perf-tasks.js +2 -2
- package/dist/components/perf.cjs +16 -16
- package/dist/components/perf.d.cts +7 -5
- package/dist/components/perf.d.ts +7 -5
- package/dist/components/perf.js +17 -17
- package/dist/components/physics.cjs +3 -3
- package/dist/components/physics.js +4 -4
- package/dist/components/plugins.cjs +7 -3
- package/dist/components/plugins.d.cts +3 -1
- package/dist/components/plugins.d.ts +3 -1
- package/dist/components/plugins.js +7 -4
- package/dist/components/react.cjs +1 -1
- package/dist/components/react.js +1 -1
- package/dist/components/reveal.cjs +2 -2
- package/dist/components/reveal.js +2 -2
- package/dist/components/scene-symbols.cjs +1 -1
- package/dist/components/scene-symbols.js +1 -1
- package/dist/components/scene-v2.cjs +2 -2
- package/dist/components/scene-v2.js +2 -2
- package/dist/components/scene-v3.cjs +2 -2
- package/dist/components/scene-v3.js +2 -2
- package/dist/components/snap-carousel.cjs +3 -3
- package/dist/components/snap-carousel.js +3 -3
- package/dist/components/solid.cjs +1 -1
- package/dist/components/solid.d.cts +22 -0
- package/dist/components/solid.d.ts +22 -0
- package/dist/components/solid.js +1 -1
- package/dist/components/studio-a11y.cjs +1 -1
- package/dist/components/studio-a11y.js +1 -1
- package/dist/components/studio-ai.cjs +4 -4
- package/dist/components/studio-ai.js +4 -4
- package/dist/components/studio-app.cjs +4 -4
- package/dist/components/studio-app.js +4 -4
- package/dist/components/studio-assets.cjs +3 -3
- package/dist/components/studio-assets.js +3 -3
- package/dist/components/studio-budget.cjs +1 -1
- package/dist/components/studio-budget.js +1 -1
- package/dist/components/studio-canvas.cjs +3 -3
- package/dist/components/studio-canvas.js +3 -3
- package/dist/components/studio-export.cjs +4 -4
- package/dist/components/studio-export.js +4 -4
- package/dist/components/studio-native.cjs +3 -3
- package/dist/components/studio-native.js +3 -3
- package/dist/components/studio-plugins.cjs +61 -31
- package/dist/components/studio-plugins.d.cts +3 -3
- package/dist/components/studio-plugins.d.ts +3 -3
- package/dist/components/studio-plugins.js +61 -31
- package/dist/components/studio-provenance.cjs +1 -1
- package/dist/components/studio-provenance.js +1 -1
- package/dist/components/studio-store.cjs +25 -17
- package/dist/components/studio-store.js +25 -17
- package/dist/components/studio-templates.cjs +4 -3
- package/dist/components/studio-templates.js +4 -3
- package/dist/components/studio.cjs +6 -6
- package/dist/components/studio.js +7 -7
- package/dist/components/svelte.cjs +1 -1
- package/dist/components/svelte.d.cts +37 -0
- package/dist/components/svelte.d.ts +37 -0
- package/dist/components/svelte.js +1 -1
- package/dist/components/svg.cjs +2 -2
- package/dist/components/svg.js +2 -2
- package/dist/components/text.cjs +3 -3
- package/dist/components/text.js +3 -3
- package/dist/components/timeline-editor.cjs +5 -5
- package/dist/components/timeline-editor.js +5 -5
- package/dist/components/timeline.cjs +3 -3
- package/dist/components/timeline.js +4 -4
- package/dist/components/tokens.cjs +1 -1
- package/dist/components/tokens.js +1 -1
- package/dist/components/transitions.cjs +2 -2
- package/dist/components/transitions.js +2 -2
- package/dist/components/ui.cjs +4 -4
- package/dist/components/ui.js +5 -5
- package/dist/components/vue.cjs +1 -1
- package/dist/components/vue.d.cts +37 -0
- package/dist/components/vue.d.ts +37 -0
- package/dist/components/vue.js +1 -1
- package/dist/components/webgl.cjs +2 -2
- package/dist/components/webgl.js +2 -2
- package/dist/components/widgets.cjs +66 -53
- package/dist/components/widgets.d.cts +92 -5
- package/dist/components/widgets.d.ts +92 -5
- package/dist/components/widgets.js +112 -103
- package/dist/components.cjs +15 -11
- package/dist/components.d.cts +9 -6
- package/dist/components.d.ts +9 -6
- package/dist/components.js +17 -13
- package/dist/components.umd.js +3 -3
- package/dist/effects/achievement-unlock.cjs +2 -2
- package/dist/effects/achievement-unlock.js +2 -2
- package/dist/effects/aurora-veil.cjs +2 -2
- package/dist/effects/aurora-veil.js +2 -2
- package/dist/effects/badge-pop.cjs +2 -2
- package/dist/effects/badge-pop.js +2 -2
- package/dist/effects/bars-grow.cjs +2 -2
- package/dist/effects/bars-grow.js +2 -2
- package/dist/effects/beat-bounce.cjs +2 -2
- package/dist/effects/beat-bounce.js +2 -2
- package/dist/effects/blob-button.cjs +2 -2
- package/dist/effects/blob-button.js +2 -2
- package/dist/effects/bloom.cjs +2 -2
- package/dist/effects/bloom.js +2 -2
- package/dist/effects/breathe.cjs +2 -2
- package/dist/effects/breathe.js +2 -2
- package/dist/effects/brushed-metal.cjs +2 -2
- package/dist/effects/brushed-metal.js +2 -2
- package/dist/effects/camera-dolly.cjs +2 -2
- package/dist/effects/camera-dolly.js +2 -2
- package/dist/effects/card-flip-3d.cjs +2 -2
- package/dist/effects/card-flip-3d.js +2 -2
- package/dist/effects/chest-open.cjs +2 -2
- package/dist/effects/chest-open.js +2 -2
- package/dist/effects/cloth.cjs +2 -2
- package/dist/effects/cloth.js +2 -2
- package/dist/effects/coin-burst.cjs +2 -2
- package/dist/effects/coin-burst.js +2 -2
- package/dist/effects/color-pulse.cjs +2 -2
- package/dist/effects/color-pulse.js +2 -2
- package/dist/effects/crt-power.cjs +2 -2
- package/dist/effects/crt-power.js +2 -2
- package/dist/effects/crumple.cjs +2 -2
- package/dist/effects/crumple.js +2 -2
- package/dist/effects/data-decode.cjs +2 -2
- package/dist/effects/data-decode.js +2 -2
- package/dist/effects/day-cycle.cjs +2 -2
- package/dist/effects/day-cycle.js +2 -2
- package/dist/effects/depth-in.cjs +2 -2
- package/dist/effects/depth-in.js +2 -2
- package/dist/effects/depth-pop.cjs +2 -2
- package/dist/effects/depth-pop.js +2 -2
- package/dist/effects/depth-stack.cjs +2 -2
- package/dist/effects/depth-stack.js +2 -2
- package/dist/effects/dolly-in.cjs +2 -2
- package/dist/effects/dolly-in.js +2 -2
- package/dist/effects/dots-pop.cjs +2 -2
- package/dist/effects/dots-pop.js +2 -2
- package/dist/effects/field-shake.cjs +2 -2
- package/dist/effects/field-shake.js +2 -2
- package/dist/effects/field-success.cjs +2 -2
- package/dist/effects/field-success.js +2 -2
- package/dist/effects/film-burn.cjs +2 -2
- package/dist/effects/film-burn.js +2 -2
- package/dist/effects/fire.cjs +3 -3
- package/dist/effects/fire.js +3 -3
- package/dist/effects/fireflies.cjs +3 -3
- package/dist/effects/fireflies.js +3 -3
- package/dist/effects/firework-burst.cjs +2 -2
- package/dist/effects/firework-burst.js +2 -2
- package/dist/effects/flip-chars.cjs +2 -2
- package/dist/effects/flip-chars.js +2 -2
- package/dist/effects/fluid.cjs +3 -3
- package/dist/effects/fluid.js +3 -3
- package/dist/effects/fly-to-cart.cjs +2 -2
- package/dist/effects/fly-to-cart.js +2 -2
- package/dist/effects/focus-draw.cjs +2 -2
- package/dist/effects/focus-draw.js +2 -2
- package/dist/effects/focus-glow.cjs +2 -2
- package/dist/effects/focus-glow.js +2 -2
- package/dist/effects/focus-reveal.cjs +18 -0
- package/dist/effects/focus-reveal.d.cts +4 -0
- package/dist/effects/focus-reveal.d.ts +4 -0
- package/dist/effects/focus-reveal.js +14 -0
- package/dist/effects/fog.cjs +2 -2
- package/dist/effects/fog.js +2 -2
- package/dist/effects/font-breathe.cjs +2 -2
- package/dist/effects/font-breathe.js +2 -2
- package/dist/effects/form-cascade.cjs +2 -2
- package/dist/effects/form-cascade.js +2 -2
- package/dist/effects/gen-skeleton.cjs +2 -2
- package/dist/effects/gen-skeleton.js +2 -2
- package/dist/effects/glass-frost.cjs +2 -2
- package/dist/effects/glass-frost.js +2 -2
- package/dist/effects/glitch-text.cjs +2 -2
- package/dist/effects/glitch-text.js +2 -2
- package/dist/effects/globe-spin.cjs +2 -2
- package/dist/effects/globe-spin.js +2 -2
- package/dist/effects/god-rays.cjs +2 -2
- package/dist/effects/god-rays.js +2 -2
- package/dist/effects/googly-eyes.cjs +18 -0
- package/dist/effects/googly-eyes.d.cts +4 -0
- package/dist/effects/googly-eyes.d.ts +4 -0
- package/dist/effects/googly-eyes.js +14 -0
- package/dist/effects/gpu-lift.cjs +2 -2
- package/dist/effects/gpu-lift.js +2 -2
- package/dist/effects/grain-flicker.cjs +2 -2
- package/dist/effects/grain-flicker.js +2 -2
- package/dist/effects/grid-warp.cjs +18 -0
- package/dist/effects/grid-warp.d.cts +4 -0
- package/dist/effects/grid-warp.d.ts +4 -0
- package/dist/effects/grid-warp.js +14 -0
- package/dist/effects/halftone-in.cjs +2 -2
- package/dist/effects/halftone-in.js +2 -2
- package/dist/effects/highlight-sweep.cjs +2 -2
- package/dist/effects/highlight-sweep.js +2 -2
- package/dist/effects/hologram.cjs +2 -2
- package/dist/effects/hologram.js +2 -2
- package/dist/effects/hud-frame.cjs +2 -2
- package/dist/effects/hud-frame.js +2 -2
- package/dist/effects/icon-pop.cjs +2 -2
- package/dist/effects/icon-pop.js +2 -2
- package/dist/effects/icon-swap.cjs +2 -2
- package/dist/effects/icon-swap.js +2 -2
- package/dist/effects/idle-reveal.cjs +2 -2
- package/dist/effects/idle-reveal.js +2 -2
- package/dist/effects/image-swap.cjs +18 -0
- package/dist/effects/image-swap.d.cts +4 -0
- package/dist/effects/image-swap.d.ts +4 -0
- package/dist/effects/image-swap.js +14 -0
- package/dist/effects/ink.cjs +3 -3
- package/dist/effects/ink.js +3 -3
- package/dist/effects/jump-cut.cjs +2 -2
- package/dist/effects/jump-cut.js +2 -2
- package/dist/effects/kaleido.cjs +2 -2
- package/dist/effects/kaleido.js +2 -2
- package/dist/effects/label-float.cjs +2 -2
- package/dist/effects/label-float.js +2 -2
- package/dist/effects/lantern-rise.cjs +2 -2
- package/dist/effects/lantern-rise.js +2 -2
- package/dist/effects/leaves.cjs +3 -3
- package/dist/effects/leaves.js +3 -3
- package/dist/effects/letterbox.cjs +2 -2
- package/dist/effects/letterbox.js +2 -2
- package/dist/effects/level-up.cjs +2 -2
- package/dist/effects/level-up.js +2 -2
- package/dist/effects/light-follow.cjs +2 -2
- package/dist/effects/light-follow.js +2 -2
- package/dist/effects/lightning.cjs +2 -2
- package/dist/effects/lightning.js +2 -2
- package/dist/effects/line-draw.cjs +2 -2
- package/dist/effects/line-draw.js +2 -2
- package/dist/effects/liquid-text.cjs +2 -2
- package/dist/effects/liquid-text.js +2 -2
- package/dist/effects/liquid-wipe.cjs +2 -2
- package/dist/effects/liquid-wipe.js +2 -2
- package/dist/effects/lottie-play.cjs +2 -2
- package/dist/effects/lottie-play.js +2 -2
- package/dist/effects/magnet.cjs +2 -2
- package/dist/effects/magnet.js +2 -2
- package/dist/effects/marching-ants.cjs +2 -2
- package/dist/effects/marching-ants.js +2 -2
- package/dist/effects/marker-pulse.cjs +2 -2
- package/dist/effects/marker-pulse.js +2 -2
- package/dist/effects/mention-glow.cjs +2 -2
- package/dist/effects/mention-glow.js +2 -2
- package/dist/effects/mesh-drift.cjs +2 -2
- package/dist/effects/mesh-drift.js +2 -2
- package/dist/effects/message-in.cjs +2 -2
- package/dist/effects/message-in.js +2 -2
- package/dist/effects/mosaic-flip.cjs +2 -2
- package/dist/effects/mosaic-flip.js +2 -2
- package/dist/effects/neon-ignite.cjs +2 -2
- package/dist/effects/neon-ignite.js +2 -2
- package/dist/effects/neon-pulse.cjs +2 -2
- package/dist/effects/neon-pulse.js +2 -2
- package/dist/effects/neon-write.cjs +2 -2
- package/dist/effects/neon-write.js +2 -2
- package/dist/effects/neu-press.cjs +2 -2
- package/dist/effects/neu-press.js +2 -2
- package/dist/effects/noise-reveal.cjs +2 -2
- package/dist/effects/noise-reveal.js +2 -2
- package/dist/effects/number-roll.cjs +2 -2
- package/dist/effects/number-roll.js +2 -2
- package/dist/effects/orbit-camera.cjs +2 -2
- package/dist/effects/orbit-camera.js +2 -2
- package/dist/effects/orbit-in.cjs +2 -2
- package/dist/effects/orbit-in.js +2 -2
- package/dist/effects/origami.cjs +2 -2
- package/dist/effects/origami.js +2 -2
- package/dist/effects/page-curl.cjs +2 -2
- package/dist/effects/page-curl.js +2 -2
- package/dist/effects/pan-reveal.cjs +2 -2
- package/dist/effects/pan-reveal.js +2 -2
- package/dist/effects/paper-unfold.cjs +2 -2
- package/dist/effects/paper-unfold.js +2 -2
- package/dist/effects/particle-text.cjs +2 -2
- package/dist/effects/particle-text.js +2 -2
- package/dist/effects/path-morph.cjs +2 -2
- package/dist/effects/path-morph.js +2 -2
- package/dist/effects/pearlescent.cjs +2 -2
- package/dist/effects/pearlescent.js +2 -2
- package/dist/effects/pencil-sketch.cjs +2 -2
- package/dist/effects/pencil-sketch.js +2 -2
- package/dist/effects/pin-drop.cjs +2 -2
- package/dist/effects/pin-drop.js +2 -2
- package/dist/effects/pinball.cjs +2 -2
- package/dist/effects/pinball.js +2 -2
- package/dist/effects/pinch-hint.cjs +2 -2
- package/dist/effects/pinch-hint.js +2 -2
- package/dist/effects/pixelate-in.cjs +2 -2
- package/dist/effects/pixelate-in.js +2 -2
- package/dist/effects/pointer-shadow.cjs +2 -2
- package/dist/effects/pointer-shadow.js +2 -2
- package/dist/effects/portal-open.cjs +2 -2
- package/dist/effects/portal-open.js +2 -2
- package/dist/effects/price-flip.cjs +2 -2
- package/dist/effects/price-flip.js +2 -2
- package/dist/effects/product-spin.cjs +2 -2
- package/dist/effects/product-spin.js +2 -2
- package/dist/effects/rack-focus.cjs +2 -2
- package/dist/effects/rack-focus.js +2 -2
- package/dist/effects/radial-spectrum.cjs +2 -2
- package/dist/effects/radial-spectrum.js +2 -2
- package/dist/effects/rain-glass.cjs +2 -2
- package/dist/effects/rain-glass.js +2 -2
- package/dist/effects/reaction-burst.cjs +2 -2
- package/dist/effects/reaction-burst.js +2 -2
- package/dist/effects/read-receipt.cjs +2 -2
- package/dist/effects/read-receipt.js +2 -2
- package/dist/effects/refraction.cjs +2 -2
- package/dist/effects/refraction.js +2 -2
- package/dist/effects/ring-sweep.cjs +2 -2
- package/dist/effects/ring-sweep.js +2 -2
- package/dist/effects/ripple-dissolve.cjs +2 -2
- package/dist/effects/ripple-dissolve.js +2 -2
- package/dist/effects/rope.cjs +2 -2
- package/dist/effects/rope.js +2 -2
- package/dist/effects/route-draw.cjs +2 -2
- package/dist/effects/route-draw.js +2 -2
- package/dist/effects/safe-fade.cjs +2 -2
- package/dist/effects/safe-fade.js +2 -2
- package/dist/effects/sakura.cjs +3 -3
- package/dist/effects/sakura.js +3 -3
- package/dist/effects/sale-shine.cjs +2 -2
- package/dist/effects/sale-shine.js +2 -2
- package/dist/effects/sankey-flow.cjs +2 -2
- package/dist/effects/sankey-flow.js +2 -2
- package/dist/effects/scanline-sweep.cjs +2 -2
- package/dist/effects/scanline-sweep.js +2 -2
- package/dist/effects/shatter.cjs +2 -2
- package/dist/effects/shatter.js +2 -2
- package/dist/effects/smoke.cjs +3 -3
- package/dist/effects/smoke.js +3 -3
- package/dist/effects/snowfall.cjs +2 -2
- package/dist/effects/snowfall.js +2 -2
- package/dist/effects/soft-body.cjs +2 -2
- package/dist/effects/soft-body.js +2 -2
- package/dist/effects/sound-particles.cjs +2 -2
- package/dist/effects/sound-particles.js +2 -2
- package/dist/effects/spatial-float.cjs +2 -2
- package/dist/effects/spatial-float.js +2 -2
- package/dist/effects/spectrum-mirror.cjs +2 -2
- package/dist/effects/spectrum-mirror.js +2 -2
- package/dist/effects/splash.cjs +3 -3
- package/dist/effects/splash.js +3 -3
- package/dist/effects/spooky-float.cjs +2 -2
- package/dist/effects/spooky-float.js +2 -2
- package/dist/effects/stock-pulse.cjs +2 -2
- package/dist/effects/stock-pulse.js +2 -2
- package/dist/effects/stream-text.cjs +2 -2
- package/dist/effects/stream-text.js +2 -2
- package/dist/effects/stroke-draw.cjs +2 -2
- package/dist/effects/stroke-draw.js +2 -2
- package/dist/effects/success-check.cjs +2 -2
- package/dist/effects/success-check.js +2 -2
- package/dist/effects/swipe-hint.cjs +2 -2
- package/dist/effects/swipe-hint.js +2 -2
- package/dist/effects/text-roll.cjs +18 -0
- package/dist/effects/text-roll.d.cts +4 -0
- package/dist/effects/text-roll.d.ts +4 -0
- package/dist/effects/text-roll.js +14 -0
- package/dist/effects/text-trail.cjs +2 -2
- package/dist/effects/text-trail.js +2 -2
- package/dist/effects/thinking-glow.cjs +2 -2
- package/dist/effects/thinking-glow.js +2 -2
- package/dist/effects/tilt-wobble.cjs +2 -2
- package/dist/effects/tilt-wobble.js +2 -2
- package/dist/effects/typing-dots.cjs +2 -2
- package/dist/effects/typing-dots.js +2 -2
- package/dist/effects/underline-sweep.cjs +2 -2
- package/dist/effects/underline-sweep.js +2 -2
- package/dist/effects/vhs-glitch.cjs +2 -2
- package/dist/effects/vhs-glitch.js +2 -2
- package/dist/effects/vine-grow.cjs +2 -2
- package/dist/effects/vine-grow.js +2 -2
- package/dist/effects/vinyl-spin.cjs +2 -2
- package/dist/effects/vinyl-spin.js +2 -2
- package/dist/effects/voice-wave.cjs +2 -2
- package/dist/effects/voice-wave.js +2 -2
- package/dist/effects/water-drop.cjs +2 -2
- package/dist/effects/water-drop.js +2 -2
- package/dist/effects/watercolor.cjs +2 -2
- package/dist/effects/watercolor.js +2 -2
- package/dist/effects/waveform-scope.cjs +2 -2
- package/dist/effects/waveform-scope.js +2 -2
- package/dist/effects/xmas-snow.cjs +2 -2
- package/dist/effects/xmas-snow.js +2 -2
- package/dist/effects/xp-gain.cjs +2 -2
- package/dist/effects/xp-gain.js +2 -2
- package/dist/effects/y2k-shine.cjs +2 -2
- package/dist/effects/y2k-shine.js +2 -2
- package/dist/element.cjs +1 -1
- package/dist/element.js +1 -1
- package/dist/element.umd.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/index.umd.js +2 -2
- package/dist/llms.txt +216 -212
- package/dist/manifest.json +1 -1
- package/dist/manifest.schema.json +5 -0
- package/dist/presets/extended.cjs +1 -1
- package/dist/presets/extended.js +1 -1
- package/dist/presets-extended.umd.js +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/runtime/drag-snap.cjs +2 -2
- package/dist/runtime/drag-snap.iife.js +1 -1
- package/dist/runtime/drag-snap.js +2 -2
- package/dist/runtime/format-apng.cjs +3 -3
- package/dist/runtime/format-apng.iife.js +1 -1
- package/dist/runtime/format-apng.js +3 -3
- package/dist/runtime/format-css.cjs +3 -3
- package/dist/runtime/format-css.iife.js +1 -1
- package/dist/runtime/format-css.js +3 -3
- package/dist/runtime/format-gif.cjs +3 -3
- package/dist/runtime/format-gif.iife.js +1 -1
- package/dist/runtime/format-gif.js +3 -3
- package/dist/runtime/format-gltf.cjs +2 -2
- package/dist/runtime/format-gltf.iife.js +1 -1
- package/dist/runtime/format-gltf.js +2 -2
- package/dist/runtime/format-motion.cjs +4 -4
- package/dist/runtime/format-motion.iife.js +1 -1
- package/dist/runtime/format-motion.js +4 -4
- package/dist/runtime/format-obj.cjs +2 -2
- package/dist/runtime/format-obj.iife.js +1 -1
- package/dist/runtime/format-obj.js +2 -2
- package/dist/runtime/format-scene.cjs +2 -2
- package/dist/runtime/format-scene.iife.js +1 -1
- package/dist/runtime/format-scene.js +2 -2
- package/dist/runtime/format-sprite.cjs +3 -3
- package/dist/runtime/format-sprite.iife.js +1 -1
- package/dist/runtime/format-sprite.js +3 -3
- package/dist/runtime/format-svg.cjs +3 -3
- package/dist/runtime/format-svg.iife.js +1 -1
- package/dist/runtime/format-svg.js +3 -3
- package/dist/runtime/format-webp.cjs +3 -3
- package/dist/runtime/format-webp.iife.js +1 -1
- package/dist/runtime/format-webp.js +3 -3
- package/dist/runtime/gl.cjs +2 -2
- package/dist/runtime/gl.iife.js +1 -1
- package/dist/runtime/gl.js +2 -2
- package/dist/runtime/gltf-anim.cjs +2 -2
- package/dist/runtime/gltf-anim.iife.js +1 -1
- package/dist/runtime/gltf-anim.js +2 -2
- package/dist/runtime/gltf-decoders.cjs +2 -2
- package/dist/runtime/gltf-decoders.iife.js +1 -1
- package/dist/runtime/gltf-decoders.js +2 -2
- package/dist/runtime/lottie-state.cjs +2 -2
- package/dist/runtime/lottie-state.iife.js +1 -1
- package/dist/runtime/lottie-state.js +2 -2
- package/dist/runtime/physics.cjs +2 -2
- package/dist/runtime/physics.iife.js +1 -1
- package/dist/runtime/physics.js +2 -2
- package/dist/runtime/scroll.cjs +3 -3
- package/dist/runtime/scroll.iife.js +1 -1
- package/dist/runtime/scroll.js +3 -3
- package/dist/runtime/smooth.cjs +2 -2
- package/dist/runtime/smooth.iife.js +1 -1
- package/dist/runtime/smooth.js +2 -2
- package/dist/runtime/text.cjs +2 -2
- package/dist/runtime/text.iife.js +1 -1
- package/dist/runtime/text.js +2 -2
- package/dist/runtime/vector.cjs +3 -3
- package/dist/runtime/vector.iife.js +1 -1
- package/dist/runtime/vector.js +3 -3
- package/dist/runtime.cjs +4 -4
- package/dist/runtime.d.cts +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.iife.js +2 -2
- package/dist/runtime.js +6 -6
- package/dist/solid.cjs +1 -1
- package/dist/solid.js +1 -1
- package/dist/svelte.cjs +1 -1
- package/dist/svelte.js +1 -1
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +1 -1
- package/dist/widgets/add-to-cart.cjs +4 -4
- package/dist/widgets/add-to-cart.js +4 -4
- package/dist/widgets/badge-wall.cjs +2 -2
- package/dist/widgets/badge-wall.js +2 -2
- package/dist/widgets/bar-chart.cjs +2 -2
- package/dist/widgets/bar-chart.js +2 -2
- package/dist/widgets/bg-generator.cjs +2 -2
- package/dist/widgets/bg-generator.js +2 -2
- package/dist/widgets/breadcrumbs.cjs +145 -0
- package/dist/widgets/breadcrumbs.d.cts +2 -0
- package/dist/widgets/breadcrumbs.d.ts +2 -0
- package/dist/widgets/breadcrumbs.js +143 -0
- package/dist/widgets/carousel.cjs +2 -2
- package/dist/widgets/carousel.js +2 -2
- package/dist/widgets/cart-drawer.cjs +2 -2
- package/dist/widgets/cart-drawer.js +2 -2
- package/dist/widgets/chapter-nav.cjs +2 -2
- package/dist/widgets/chapter-nav.js +2 -2
- package/dist/widgets/chat-composer.cjs +2 -2
- package/dist/widgets/chat-composer.js +2 -2
- package/dist/widgets/clock-control.cjs +2 -2
- package/dist/widgets/clock-control.js +2 -2
- package/dist/widgets/code-export.cjs +2 -2
- package/dist/widgets/code-export.js +2 -2
- package/dist/widgets/color-picker.cjs +2 -2
- package/dist/widgets/color-picker.js +2 -2
- package/dist/widgets/command-palette.cjs +2 -2
- package/dist/widgets/command-palette.js +2 -2
- package/dist/widgets/compare.cjs +2 -2
- package/dist/widgets/compare.js +2 -2
- package/dist/widgets/countdown.cjs +2 -2
- package/dist/widgets/countdown.js +2 -2
- package/dist/widgets/cube-gallery.cjs +2 -2
- package/dist/widgets/cube-gallery.js +2 -2
- package/dist/widgets/date-picker.cjs +2 -2
- package/dist/widgets/date-picker.js +2 -2
- package/dist/widgets/disclosure.cjs +3 -3
- package/dist/widgets/disclosure.js +3 -3
- package/dist/widgets/dock.cjs +2 -2
- package/dist/widgets/dock.js +2 -2
- package/dist/widgets/dotlottie.cjs +1 -1
- package/dist/widgets/dotlottie.js +1 -1
- package/dist/widgets/equalizer.cjs +2 -2
- package/dist/widgets/equalizer.js +2 -2
- package/dist/widgets/festival-banner.cjs +2 -2
- package/dist/widgets/festival-banner.js +2 -2
- package/dist/widgets/field.cjs +2 -2
- package/dist/widgets/field.js +2 -2
- package/dist/widgets/file-drop.cjs +2 -2
- package/dist/widgets/file-drop.js +2 -2
- package/dist/widgets/fullscreen-menu.cjs +177 -0
- package/dist/widgets/fullscreen-menu.d.cts +2 -0
- package/dist/widgets/fullscreen-menu.d.ts +2 -0
- package/dist/widgets/fullscreen-menu.js +175 -0
- package/dist/widgets/gauge.cjs +2 -2
- package/dist/widgets/gauge.js +2 -2
- package/dist/widgets/gen-art.cjs +2 -2
- package/dist/widgets/gen-art.js +2 -2
- package/dist/widgets/gesture-sticker.cjs +2 -2
- package/dist/widgets/gesture-sticker.js +2 -2
- package/dist/widgets/gl-model.cjs +1 -1
- package/dist/widgets/gl-model.js +1 -1
- package/dist/widgets/gl-scene.cjs +2 -2
- package/dist/widgets/gl-scene.js +2 -2
- package/dist/widgets/globe.cjs +2 -2
- package/dist/widgets/globe.js +2 -2
- package/dist/widgets/gpu-particles.cjs +2 -2
- package/dist/widgets/gpu-particles.js +2 -2
- package/dist/widgets/gyro-card.cjs +2 -2
- package/dist/widgets/gyro-card.js +2 -2
- package/dist/widgets/hero-video.cjs +2 -2
- package/dist/widgets/hero-video.js +2 -2
- package/dist/widgets/hud-panel.cjs +2 -2
- package/dist/widgets/hud-panel.js +2 -2
- package/dist/widgets/hydrate.cjs +2 -2
- package/dist/widgets/hydrate.js +2 -2
- package/dist/widgets/install-button.cjs +2 -2
- package/dist/widgets/install-button.js +2 -2
- package/dist/widgets/kanban.cjs +2 -2
- package/dist/widgets/kanban.js +2 -2
- package/dist/widgets/keyframe-editor.cjs +3 -3
- package/dist/widgets/keyframe-editor.js +3 -3
- package/dist/widgets/kpi.cjs +2 -2
- package/dist/widgets/kpi.js +2 -2
- package/dist/widgets/leaderboard.cjs +2 -2
- package/dist/widgets/leaderboard.js +2 -2
- package/dist/widgets/liquid-nav.cjs +2 -2
- package/dist/widgets/liquid-nav.js +2 -2
- package/dist/widgets/location-card.cjs +2 -2
- package/dist/widgets/location-card.js +2 -2
- package/dist/widgets/lottie-icon.cjs +2 -2
- package/dist/widgets/lottie-icon.js +2 -2
- package/dist/widgets/lottie-player.cjs +2 -2
- package/dist/widgets/lottie-player.js +2 -2
- package/dist/widgets/lottie.cjs +2 -2
- package/dist/widgets/lottie.js +2 -2
- package/dist/widgets/lyrics.cjs +2 -2
- package/dist/widgets/lyrics.js +2 -2
- package/dist/widgets/masonry-flow.cjs +2 -2
- package/dist/widgets/masonry-flow.js +2 -2
- package/dist/widgets/mega-menu.cjs +8 -0
- package/dist/widgets/mega-menu.d.cts +2 -0
- package/dist/widgets/mega-menu.d.ts +2 -0
- package/dist/widgets/mega-menu.js +2 -0
- package/dist/widgets/menu-toggle.cjs +2 -2
- package/dist/widgets/menu-toggle.js +2 -2
- package/dist/widgets/menu.cjs +2 -2
- package/dist/widgets/menu.js +2 -2
- package/dist/widgets/message-list.cjs +2 -2
- package/dist/widgets/message-list.js +2 -2
- package/dist/widgets/milestones.cjs +2 -2
- package/dist/widgets/milestones.js +2 -2
- package/dist/widgets/modal.cjs +2 -2
- package/dist/widgets/modal.js +2 -2
- package/dist/widgets/motion-inspector.cjs +3 -3
- package/dist/widgets/motion-inspector.js +3 -3
- package/dist/widgets/motion-prefs.cjs +2 -2
- package/dist/widgets/motion-prefs.js +2 -2
- package/dist/widgets/motion-prompt.cjs +2 -2
- package/dist/widgets/motion-prompt.js +2 -2
- package/dist/widgets/motion-spec.cjs +2 -2
- package/dist/widgets/motion-spec.js +2 -2
- package/dist/widgets/motion.cjs +2 -2
- package/dist/widgets/motion.js +2 -2
- package/dist/widgets/music-player.cjs +2 -2
- package/dist/widgets/music-player.js +2 -2
- package/dist/widgets/native-preview.cjs +2 -2
- package/dist/widgets/native-preview.js +2 -2
- package/dist/widgets/nav-flyout.cjs +8 -0
- package/dist/widgets/nav-flyout.d.cts +2 -0
- package/dist/widgets/nav-flyout.d.ts +2 -0
- package/dist/widgets/nav-flyout.js +2 -0
- package/dist/widgets/nav-morph.cjs +2 -2
- package/dist/widgets/nav-morph.js +2 -2
- package/dist/widgets/notification-bell.cjs +2 -2
- package/dist/widgets/notification-bell.js +2 -2
- package/dist/widgets/odometer.cjs +2 -2
- package/dist/widgets/odometer.js +2 -2
- package/dist/widgets/organic-card.cjs +2 -2
- package/dist/widgets/organic-card.js +2 -2
- package/dist/widgets/otp.cjs +2 -2
- package/dist/widgets/otp.js +2 -2
- package/dist/widgets/pagination.cjs +2 -2
- package/dist/widgets/pagination.js +2 -2
- package/dist/widgets/panorama.cjs +2 -2
- package/dist/widgets/panorama.js +2 -2
- package/dist/widgets/parallax-layers.cjs +2 -2
- package/dist/widgets/parallax-layers.js +2 -2
- package/dist/widgets/pause-all.cjs +2 -2
- package/dist/widgets/pause-all.js +2 -2
- package/dist/widgets/perf-monitor.cjs +2 -2
- package/dist/widgets/perf-monitor.js +2 -2
- package/dist/widgets/physics-playground.cjs +2 -2
- package/dist/widgets/physics-playground.js +2 -2
- package/dist/widgets/plugin-card.cjs +4 -4
- package/dist/widgets/plugin-card.js +4 -4
- package/dist/widgets/plugin-store.cjs +2 -2
- package/dist/widgets/plugin-store.js +2 -2
- package/dist/widgets/presence.cjs +2 -2
- package/dist/widgets/presence.js +2 -2
- package/dist/widgets/prize-wheel.cjs +2 -2
- package/dist/widgets/prize-wheel.js +2 -2
- package/dist/widgets/product-gallery.cjs +2 -2
- package/dist/widgets/product-gallery.js +2 -2
- package/dist/widgets/progress-ring.cjs +2 -2
- package/dist/widgets/progress-ring.js +2 -2
- package/dist/widgets/prop-panel.cjs +2 -2
- package/dist/widgets/prop-panel.js +2 -2
- package/dist/widgets/pull-cord.cjs +2 -2
- package/dist/widgets/pull-cord.js +2 -2
- package/dist/widgets/radar.cjs +2 -2
- package/dist/widgets/radar.js +2 -2
- package/dist/widgets/reactions.cjs +2 -2
- package/dist/widgets/reactions.js +2 -2
- package/dist/widgets/red-envelope.cjs +2 -2
- package/dist/widgets/red-envelope.js +2 -2
- package/dist/widgets/retro-button.cjs +2 -2
- package/dist/widgets/retro-button.js +2 -2
- package/dist/widgets/rive.cjs +2 -2
- package/dist/widgets/rive.js +2 -2
- package/dist/widgets/route-transition.cjs +60 -23
- package/dist/widgets/route-transition.js +60 -23
- package/dist/widgets/scene.cjs +2 -2
- package/dist/widgets/scene.js +2 -2
- package/dist/widgets/scroll-ring.cjs +2 -2
- package/dist/widgets/scroll-ring.js +2 -2
- package/dist/widgets/scroll-scene.cjs +2 -2
- package/dist/widgets/scroll-scene.js +2 -2
- package/dist/widgets/segmented.cjs +2 -2
- package/dist/widgets/segmented.js +2 -2
- package/dist/widgets/shader-backdrop.cjs +2 -2
- package/dist/widgets/shader-backdrop.js +2 -2
- package/dist/widgets/sheet.cjs +2 -2
- package/dist/widgets/sheet.js +2 -2
- package/dist/widgets/shortcut.cjs +3 -3
- package/dist/widgets/shortcut.js +3 -3
- package/dist/widgets/skeleton-reveal.cjs +2 -2
- package/dist/widgets/skeleton-reveal.js +2 -2
- package/dist/widgets/sketch-chart.cjs +2 -2
- package/dist/widgets/sketch-chart.js +2 -2
- package/dist/widgets/smooth-scroll.cjs +3 -3
- package/dist/widgets/smooth-scroll.js +3 -3
- package/dist/widgets/snap-carousel.cjs +1 -1
- package/dist/widgets/snap-carousel.js +1 -1
- package/dist/widgets/sparkline.cjs +2 -2
- package/dist/widgets/sparkline.js +2 -2
- package/dist/widgets/spatial-card.cjs +2 -2
- package/dist/widgets/spatial-card.js +2 -2
- package/dist/widgets/star-rating.cjs +2 -2
- package/dist/widgets/star-rating.js +2 -2
- package/dist/widgets/stepper.cjs +2 -2
- package/dist/widgets/stepper.js +2 -2
- package/dist/widgets/sticky-wall.cjs +2 -2
- package/dist/widgets/sticky-wall.js +2 -2
- package/dist/widgets/stories.cjs +2 -2
- package/dist/widgets/stories.js +2 -2
- package/dist/widgets/suggestion-chips.cjs +2 -2
- package/dist/widgets/suggestion-chips.js +2 -2
- package/dist/widgets/swipe-deck.cjs +2 -2
- package/dist/widgets/swipe-deck.js +2 -2
- package/dist/widgets/switch.cjs +2 -2
- package/dist/widgets/switch.js +2 -2
- package/dist/widgets/tab-bar.cjs +2 -2
- package/dist/widgets/tab-bar.js +2 -2
- package/dist/widgets/terminal.cjs +2 -2
- package/dist/widgets/terminal.js +2 -2
- package/dist/widgets/text-splitter.cjs +4 -4
- package/dist/widgets/text-splitter.js +4 -4
- package/dist/widgets/theme-surface.cjs +2 -2
- package/dist/widgets/theme-surface.js +2 -2
- package/dist/widgets/theme-switcher.cjs +2 -2
- package/dist/widgets/theme-switcher.js +2 -2
- package/dist/widgets/tip.cjs +2 -2
- package/dist/widgets/tip.js +2 -2
- package/dist/widgets/toast-stack.cjs +2 -2
- package/dist/widgets/toast-stack.js +2 -2
- package/dist/widgets/token-editor.cjs +2 -2
- package/dist/widgets/token-editor.js +2 -2
- package/dist/widgets/upload-progress.cjs +2 -2
- package/dist/widgets/upload-progress.js +2 -2
- package/dist/widgets/video-card.cjs +4 -3
- package/dist/widgets/video-card.js +4 -3
- package/dist/widgets/voice-button.cjs +2 -2
- package/dist/widgets/voice-button.js +2 -2
- package/dist/widgets/volume-knob.cjs +2 -2
- package/dist/widgets/volume-knob.js +2 -2
- package/dist/widgets/weather-card.cjs +2 -2
- package/dist/widgets/weather-card.js +2 -2
- package/dist/widgets/worker-canvas.cjs +2 -2
- package/dist/widgets/worker-canvas.js +2 -2
- package/dist/widgets/xp-bar.cjs +2 -2
- package/dist/widgets/xp-bar.js +2 -2
- package/dist/widgets.umd.js +2 -2
- package/docs/cdn-sri.md +9 -9
- package/docs/components/README.md +214 -210
- package/docs/components/usa-accordion.md +8 -4
- package/docs/components/usa-acrylic.md +9 -5
- package/docs/components/usa-add-to-cart.md +8 -4
- package/docs/components/usa-ambient.md +7 -3
- package/docs/components/usa-anim-icon.md +8 -4
- package/docs/components/usa-audio.md +8 -4
- package/docs/components/usa-aurora.md +8 -4
- package/docs/components/usa-auto-animate.md +8 -4
- package/docs/components/usa-auto-skeleton.md +8 -4
- package/docs/components/usa-avatar-stack.md +8 -4
- package/docs/components/usa-back-to-top.md +7 -3
- package/docs/components/usa-badge-wall.md +8 -4
- package/docs/components/usa-badge.md +8 -4
- package/docs/components/usa-bar-chart.md +7 -3
- package/docs/components/usa-bg-generator.md +7 -3
- package/docs/components/usa-blobs.md +7 -3
- package/docs/components/usa-bottom-sheet.md +7 -3
- package/docs/components/usa-breadcrumbs.md +48 -0
- package/docs/components/usa-button.md +10 -6
- package/docs/components/usa-card-stack.md +8 -4
- package/docs/components/usa-card.md +12 -8
- package/docs/components/usa-carousel-3d.md +8 -4
- package/docs/components/usa-carousel.md +8 -4
- package/docs/components/usa-cart-drawer.md +7 -3
- package/docs/components/usa-chapter-nav.md +7 -3
- package/docs/components/usa-chat-composer.md +7 -3
- package/docs/components/usa-check.md +7 -3
- package/docs/components/usa-checkbox.md +7 -3
- package/docs/components/usa-click.md +8 -4
- package/docs/components/usa-clock-control.md +7 -3
- package/docs/components/usa-code-export.md +9 -5
- package/docs/components/usa-color-picker.md +7 -3
- package/docs/components/usa-command-palette.md +8 -4
- package/docs/components/usa-compare.md +8 -4
- package/docs/components/usa-countdown.md +7 -3
- package/docs/components/usa-counter.md +7 -3
- package/docs/components/usa-cube-gallery.md +8 -4
- package/docs/components/usa-cube.md +8 -4
- package/docs/components/usa-cursor.md +7 -3
- package/docs/components/usa-date-picker.md +7 -3
- package/docs/components/usa-depth.md +8 -4
- package/docs/components/usa-dialog.md +8 -4
- package/docs/components/usa-disclosure.md +8 -4
- package/docs/components/usa-distort.md +8 -4
- package/docs/components/usa-dock.md +8 -4
- package/docs/components/usa-dot-network.md +7 -3
- package/docs/components/usa-dotlottie.md +7 -3
- package/docs/components/usa-double-tap.md +8 -4
- package/docs/components/usa-draggable.md +9 -5
- package/docs/components/usa-draw.md +8 -4
- package/docs/components/usa-drawer.md +7 -3
- package/docs/components/usa-equalizer.md +7 -3
- package/docs/components/usa-fab.md +8 -4
- package/docs/components/usa-festival-banner.md +7 -3
- package/docs/components/usa-field.md +8 -4
- package/docs/components/usa-file-drop.md +7 -3
- package/docs/components/usa-fullpage.md +8 -4
- package/docs/components/usa-fullscreen-menu.md +44 -0
- package/docs/components/usa-fx.md +18 -4
- package/docs/components/usa-gauge.md +7 -3
- package/docs/components/usa-gen-art.md +7 -3
- package/docs/components/usa-gesture-fx.md +8 -4
- package/docs/components/usa-gesture-sticker.md +8 -4
- package/docs/components/usa-gl-model.md +7 -3
- package/docs/components/usa-gl-scene.md +7 -3
- package/docs/components/usa-glitch.md +7 -3
- package/docs/components/usa-globe.md +7 -3
- package/docs/components/usa-gpu-particles.md +7 -3
- package/docs/components/usa-gradient-text.md +7 -3
- package/docs/components/usa-grain.md +8 -4
- package/docs/components/usa-grid-glow.md +8 -4
- package/docs/components/usa-gyro-card.md +8 -4
- package/docs/components/usa-handwriting.md +7 -3
- package/docs/components/usa-hero-video.md +8 -4
- package/docs/components/usa-hold.md +7 -3
- package/docs/components/usa-hud-panel.md +8 -4
- package/docs/components/usa-hydrate.md +8 -4
- package/docs/components/usa-icon-morph.md +8 -4
- package/docs/components/usa-install-button.md +7 -3
- package/docs/components/usa-kanban.md +8 -4
- package/docs/components/usa-keyframe-editor.md +7 -3
- package/docs/components/usa-kpi.md +7 -3
- package/docs/components/usa-leaderboard.md +8 -4
- package/docs/components/usa-like.md +7 -3
- package/docs/components/usa-liquid-nav.md +8 -4
- package/docs/components/usa-liquid.md +8 -4
- package/docs/components/usa-loading-bar.md +6 -2
- package/docs/components/usa-location-card.md +8 -4
- package/docs/components/usa-lottie-icon.md +8 -4
- package/docs/components/usa-lottie-player.md +7 -3
- package/docs/components/usa-lottie.md +7 -3
- package/docs/components/usa-lyrics.md +8 -4
- package/docs/components/usa-magnetic.md +7 -3
- package/docs/components/usa-marquee.md +8 -4
- package/docs/components/usa-mask-reveal.md +8 -4
- package/docs/components/usa-masonry-flow.md +8 -4
- package/docs/components/usa-masonry.md +8 -4
- package/docs/components/usa-mega-menu.md +54 -0
- package/docs/components/usa-menu-toggle.md +7 -3
- package/docs/components/usa-menu.md +8 -4
- package/docs/components/usa-message-list.md +8 -4
- package/docs/components/usa-milestones.md +8 -4
- package/docs/components/usa-modal.md +8 -4
- package/docs/components/usa-morph.md +8 -4
- package/docs/components/usa-motion-inspector.md +7 -3
- package/docs/components/usa-motion-prefs.md +7 -3
- package/docs/components/usa-motion-prompt.md +7 -3
- package/docs/components/usa-motion-spec.md +7 -3
- package/docs/components/usa-motion-switch.md +7 -3
- package/docs/components/usa-motion-theme.md +8 -4
- package/docs/components/usa-motion.md +8 -4
- package/docs/components/usa-music-player.md +8 -4
- package/docs/components/usa-native-preview.md +8 -4
- package/docs/components/usa-nav-flyout.md +44 -0
- package/docs/components/usa-nav-morph.md +8 -4
- package/docs/components/usa-navbar.md +8 -4
- package/docs/components/usa-notification-bell.md +8 -4
- package/docs/components/usa-odometer.md +7 -3
- package/docs/components/usa-organic-card.md +8 -4
- package/docs/components/usa-otp.md +7 -3
- package/docs/components/usa-overscroll.md +8 -4
- package/docs/components/usa-pack.md +8 -4
- package/docs/components/usa-pagination.md +7 -3
- package/docs/components/usa-panorama.md +7 -3
- package/docs/components/usa-parallax-layers.md +8 -4
- package/docs/components/usa-particles.md +7 -3
- package/docs/components/usa-pause-all.md +7 -3
- package/docs/components/usa-perf-monitor.md +7 -3
- package/docs/components/usa-physics-playground.md +7 -3
- package/docs/components/usa-pinch-zoom.md +8 -4
- package/docs/components/usa-player.md +8 -4
- package/docs/components/usa-plugin-card.md +8 -4
- package/docs/components/usa-plugin-store.md +7 -3
- package/docs/components/usa-popover.md +8 -4
- package/docs/components/usa-post-fx.md +8 -4
- package/docs/components/usa-presence.md +9 -5
- package/docs/components/usa-press.md +7 -3
- package/docs/components/usa-prize-wheel.md +7 -3
- package/docs/components/usa-product-gallery.md +8 -4
- package/docs/components/usa-progress-ring.md +9 -5
- package/docs/components/usa-progress.md +8 -4
- package/docs/components/usa-prop-panel.md +8 -4
- package/docs/components/usa-pull-cord.md +7 -3
- package/docs/components/usa-pull-refresh.md +8 -4
- package/docs/components/usa-radar.md +7 -3
- package/docs/components/usa-reactions.md +7 -3
- package/docs/components/usa-red-envelope.md +7 -3
- package/docs/components/usa-retro-button.md +8 -4
- package/docs/components/usa-reveal.md +8 -4
- package/docs/components/usa-ripple.md +7 -3
- package/docs/components/usa-rive.md +7 -3
- package/docs/components/usa-route-transition.md +8 -4
- package/docs/components/usa-scene.md +8 -4
- package/docs/components/usa-scramble.md +7 -3
- package/docs/components/usa-scroll-highlight.md +8 -4
- package/docs/components/usa-scroll-progress.md +8 -4
- package/docs/components/usa-scroll-ring.md +7 -3
- package/docs/components/usa-scroll-scene.md +8 -4
- package/docs/components/usa-scrolly.md +8 -4
- package/docs/components/usa-segmented.md +8 -4
- package/docs/components/usa-shader-backdrop.md +8 -4
- package/docs/components/usa-shader.md +10 -6
- package/docs/components/usa-sheet.md +8 -4
- package/docs/components/usa-shimmer-text.md +7 -3
- package/docs/components/usa-shortcut.md +8 -4
- package/docs/components/usa-skeleton-reveal.md +8 -4
- package/docs/components/usa-skeleton.md +8 -4
- package/docs/components/usa-sketch-chart.md +7 -3
- package/docs/components/usa-slider.md +7 -3
- package/docs/components/usa-smooth-scroll.md +7 -3
- package/docs/components/usa-snap-carousel.md +8 -4
- package/docs/components/usa-sparkline.md +7 -3
- package/docs/components/usa-spatial-card.md +8 -4
- package/docs/components/usa-spinner.md +8 -4
- package/docs/components/usa-splash.md +8 -4
- package/docs/components/usa-split-text.md +7 -3
- package/docs/components/usa-spotlight.md +8 -4
- package/docs/components/usa-spring.md +10 -6
- package/docs/components/usa-stagger.md +8 -4
- package/docs/components/usa-star-rating.md +8 -4
- package/docs/components/usa-stepper.md +8 -4
- package/docs/components/usa-sticky-stack.md +8 -4
- package/docs/components/usa-sticky-wall.md +8 -4
- package/docs/components/usa-stories.md +8 -4
- package/docs/components/usa-story.md +8 -4
- package/docs/components/usa-suggestion-chips.md +7 -3
- package/docs/components/usa-swipe-deck.md +8 -4
- package/docs/components/usa-swipeable.md +8 -4
- package/docs/components/usa-switch.md +7 -3
- package/docs/components/usa-tab-bar.md +8 -4
- package/docs/components/usa-tabs.md +8 -4
- package/docs/components/usa-terminal.md +8 -4
- package/docs/components/usa-text-rotate.md +7 -3
- package/docs/components/usa-text-splitter.md +7 -3
- package/docs/components/usa-theme-surface.md +8 -4
- package/docs/components/usa-theme-switcher.md +7 -3
- package/docs/components/usa-tilt.md +8 -4
- package/docs/components/usa-timeline.md +8 -4
- package/docs/components/usa-tip.md +10 -6
- package/docs/components/usa-toast-stack.md +7 -3
- package/docs/components/usa-toaster.md +7 -3
- package/docs/components/usa-token-editor.md +7 -3
- package/docs/components/usa-typewriter.md +7 -3
- package/docs/components/usa-upload-progress.md +7 -3
- package/docs/components/usa-video-card.md +8 -4
- package/docs/components/usa-view-switch.md +8 -4
- package/docs/components/usa-voice-button.md +7 -3
- package/docs/components/usa-volume-knob.md +7 -3
- package/docs/components/usa-water-ripple.md +8 -4
- package/docs/components/usa-wave-text.md +7 -3
- package/docs/components/usa-weather-card.md +7 -3
- package/docs/components/usa-worker-canvas.md +7 -3
- package/docs/components/usa-xp-bar.md +7 -3
- package/docs/components.md +5 -5
- package/docs/deprecations-v17.md +15 -1
- package/docs/entry-points.md +11 -2
- package/docs/frameworks-ssr.md +1 -1
- package/docs/performance.md +5 -5
- package/docs/source-maps.md +2 -1
- package/docs/stability.md +4 -2
- package/docs/studio-plugins.md +7 -5
- package/docs/studio-templates.md +1 -2
- package/docs/versions.md +2 -2
- package/figma-plugin/code.js +1 -1
- package/package.json +114 -2
- package/docs/frameworks-matrix.md +0 -64
- package/docs/release-gate.md +0 -58
package/dist/components/lite.js
CHANGED
|
@@ -141,20 +141,23 @@ function getBase() {
|
|
|
141
141
|
connectedCallback() {
|
|
142
142
|
if (this._connected)
|
|
143
143
|
return;
|
|
144
|
-
this._connected = true;
|
|
145
144
|
// 13.5.0: a property set before the element was defined (React 18 wrappers, Vue `.prop`, Svelte, Angular
|
|
146
145
|
// `[prop]` while hydrating, then define) sits on the instance and hides the class's setter — move it through.
|
|
147
146
|
for (const [k, v] of Object.entries(this))
|
|
148
147
|
if (k in Object.getPrototypeOf(this))
|
|
149
148
|
delete this[k], (this[k] = v);
|
|
149
|
+
const start = () => {
|
|
150
|
+
this._connected = true;
|
|
151
|
+
this.mount();
|
|
152
|
+
};
|
|
150
153
|
styleLoader?.(this.localName);
|
|
151
154
|
// Upgraded while the parser is still inside us (a <script> in <head>
|
|
152
155
|
// defined the element): children/text are not there yet, so wait.
|
|
153
156
|
if (document.readyState === 'loading' && !this.nextSibling && !this.childNodes.length) {
|
|
154
157
|
// listen() = addEventListener + a cleanup that removes it (same as before, smaller)
|
|
155
|
-
return this.listen(document, 'DOMContentLoaded',
|
|
158
|
+
return this.listen(document, 'DOMContentLoaded', start, { once: true });
|
|
156
159
|
}
|
|
157
|
-
|
|
160
|
+
start();
|
|
158
161
|
}
|
|
159
162
|
disconnectedCallback() {
|
|
160
163
|
this._connected = false;
|
|
@@ -167,8 +170,10 @@ function getBase() {
|
|
|
167
170
|
}
|
|
168
171
|
/** Re-mount on attribute change (override for finer updates). */
|
|
169
172
|
changed(_name) {
|
|
170
|
-
this.
|
|
171
|
-
|
|
173
|
+
if (this._connected) {
|
|
174
|
+
this.teardown();
|
|
175
|
+
this.mount();
|
|
176
|
+
}
|
|
172
177
|
}
|
|
173
178
|
teardown() {
|
|
174
179
|
this._cleanups.splice(0).reverse().forEach((fn) => fn());
|
|
@@ -239,7 +244,7 @@ function getBase() {
|
|
|
239
244
|
*/
|
|
240
245
|
function animateWithMotion(el, keyframes, options) {
|
|
241
246
|
// no WAAPI / `static` → the unadapted final frame; over the animation budget → the adapted one
|
|
242
|
-
if (typeof el.animate !== 'function' || config.motionSensitivity === 'static' || ((keyframes = adaptKeyframes(keyframes)), active$
|
|
247
|
+
if (typeof el.animate !== 'function' || config.motionSensitivity === 'static' || ((keyframes = adaptKeyframes(keyframes)), active$2 >= maxActive)) {
|
|
243
248
|
applyFrame(el, keyframes[keyframes.length - 1]);
|
|
244
249
|
return null;
|
|
245
250
|
}
|
|
@@ -249,9 +254,9 @@ function animateWithMotion(el, keyframes, options) {
|
|
|
249
254
|
const a = el.animate(keyframes, options);
|
|
250
255
|
trackAnimation(a);
|
|
251
256
|
if (options.iterations !== Infinity) {
|
|
252
|
-
active$
|
|
257
|
+
active$2++;
|
|
253
258
|
// settles exactly once (fulfilled or rejected), so no guard is needed
|
|
254
|
-
const end = () => void active$
|
|
259
|
+
const end = () => void active$2--;
|
|
255
260
|
a?.finished?.then(end, end);
|
|
256
261
|
}
|
|
257
262
|
return a;
|
|
@@ -274,8 +279,6 @@ function defineElement(tag, make, css) {
|
|
|
274
279
|
if (!canDefine())
|
|
275
280
|
return undefined;
|
|
276
281
|
adoptStyles('base', BASE_CSS);
|
|
277
|
-
if (css)
|
|
278
|
-
adoptStyles(css.id, css.text);
|
|
279
282
|
const existing = customElements.get(tag);
|
|
280
283
|
if (existing)
|
|
281
284
|
return existing;
|
|
@@ -342,7 +345,19 @@ function flushFrame(t) {
|
|
|
342
345
|
if (!c.paused) {
|
|
343
346
|
const cdt = dt * c.rate;
|
|
344
347
|
c.time += cdt;
|
|
345
|
-
frameListeners.forEach((el, fn) =>
|
|
348
|
+
frameListeners.forEach((el, fn) => {
|
|
349
|
+
if (gate(el))
|
|
350
|
+
p++;
|
|
351
|
+
else {
|
|
352
|
+
live++;
|
|
353
|
+
try {
|
|
354
|
+
fn(t, cdt);
|
|
355
|
+
}
|
|
356
|
+
catch (e) {
|
|
357
|
+
error ?? (error = e);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
});
|
|
346
361
|
}
|
|
347
362
|
st.parked += p;
|
|
348
363
|
// everything parked: the pause hook's wake() restarts the loop
|
|
@@ -424,10 +439,10 @@ function trackAnimation(a) {
|
|
|
424
439
|
a.finished?.then(drop, drop);
|
|
425
440
|
}
|
|
426
441
|
// --- active animation budget (4.5) ---------------------------------------------
|
|
427
|
-
let active$
|
|
442
|
+
let active$2 = 0;
|
|
428
443
|
let maxActive = Infinity;
|
|
429
444
|
/** Number of component animations running right now. */
|
|
430
|
-
const activeAnimations = () => active$
|
|
445
|
+
const activeAnimations = () => active$2;
|
|
431
446
|
/** Cap concurrent component animations; extra ones jump to their final frame (`Infinity` = no cap). */
|
|
432
447
|
function setAnimationBudget(max) {
|
|
433
448
|
maxActive = max > 0 ? max : Infinity;
|
|
@@ -486,6 +501,16 @@ const COMPONENT_CATEGORIES = {
|
|
|
486
501
|
fx: ['usa-fx'],
|
|
487
502
|
};
|
|
488
503
|
|
|
504
|
+
const categoryByTag = /*#__PURE__*/ new Map();
|
|
505
|
+
for (const [category, tags] of Object.entries(COMPONENT_CATEGORIES)) {
|
|
506
|
+
for (const tag of tags)
|
|
507
|
+
categoryByTag.set(tag, category);
|
|
508
|
+
}
|
|
509
|
+
/** Resolve either default element name without loading its component implementation. */
|
|
510
|
+
function categoryForTag(tag) {
|
|
511
|
+
return categoryByTag.get(tag.replace(/^mo-/, 'usa-'));
|
|
512
|
+
}
|
|
513
|
+
|
|
489
514
|
/**
|
|
490
515
|
* motionary/components/perf — performance toolkit (4.5).
|
|
491
516
|
*
|
|
@@ -557,13 +582,11 @@ function autoDegrade(options = {}) {
|
|
|
557
582
|
set(false, '');
|
|
558
583
|
};
|
|
559
584
|
}
|
|
560
|
-
const TAG_CATEGORY = {};
|
|
561
|
-
for (const [cat, tags] of Object.entries(COMPONENT_CATEGORIES))
|
|
562
|
-
for (const t of tags)
|
|
563
|
-
TAG_CATEGORY[t] = cat;
|
|
564
|
-
/** The category of a default `<usa-*>` tag. */
|
|
565
|
-
const categoryOf = (tag) => TAG_CATEGORY[tag];
|
|
566
585
|
const loaded = /*#__PURE__*/ new Set();
|
|
586
|
+
/** Categories with a pending or loaded Motionary stylesheet. */
|
|
587
|
+
function loadedStyles() {
|
|
588
|
+
return [...loaded];
|
|
589
|
+
}
|
|
567
590
|
/**
|
|
568
591
|
* Add `<link rel="stylesheet" href="{base}components/{category}.css">` once.
|
|
569
592
|
* `base` is the URL of the package's `dist/` folder.
|
|
@@ -571,11 +594,15 @@ const loaded = /*#__PURE__*/ new Set();
|
|
|
571
594
|
function loadCategoryStyles(category, base) {
|
|
572
595
|
if (typeof document === 'undefined' || loaded.has(category))
|
|
573
596
|
return null;
|
|
574
|
-
loaded.add(category);
|
|
575
597
|
const link = document.createElement('link');
|
|
576
598
|
link.rel = 'stylesheet';
|
|
577
|
-
link.href = `${base.replace(/\/?$/, '/')}${category === 'all' ? '
|
|
578
|
-
link.
|
|
599
|
+
link.href = `${base.replace(/\/?$/, '/')}components${category === 'all' ? '' : '/' + category}.css`;
|
|
600
|
+
link.dataset.usaCss = category;
|
|
601
|
+
loaded.add(category);
|
|
602
|
+
link.addEventListener('error', () => {
|
|
603
|
+
loaded.delete(category);
|
|
604
|
+
link.remove();
|
|
605
|
+
}, { once: true });
|
|
579
606
|
document.head.append(link);
|
|
580
607
|
return link;
|
|
581
608
|
}
|
|
@@ -584,11 +611,9 @@ function loadCategoryStyles(category, base) {
|
|
|
584
611
|
* (custom tags fall back to the full stylesheet). Returns an undo.
|
|
585
612
|
*/
|
|
586
613
|
function onDemandStyles(base) {
|
|
587
|
-
setStyleLoader((tag) => loadCategoryStyles(
|
|
614
|
+
setStyleLoader((tag) => loadCategoryStyles(categoryForTag(tag) || 'all', base));
|
|
588
615
|
return () => setStyleLoader(null);
|
|
589
616
|
}
|
|
590
|
-
/** Categories whose CSS has been requested so far. */
|
|
591
|
-
const loadedStyles = () => Array.from(loaded);
|
|
592
617
|
|
|
593
618
|
/** Entrance effects shared by `<usa-reveal>` and `<usa-stagger>` (transform / opacity / filter only). */
|
|
594
619
|
const REVEAL_EFFECTS = [
|
|
@@ -657,7 +682,7 @@ function revealKeyframes(effect, distance) {
|
|
|
657
682
|
return [from, to];
|
|
658
683
|
}
|
|
659
684
|
|
|
660
|
-
var css
|
|
685
|
+
var css = "";
|
|
661
686
|
|
|
662
687
|
function defineReveal(tag = 'usa-reveal') {
|
|
663
688
|
return defineElement(tag, (Base) => class UsaReveal extends Base {
|
|
@@ -732,7 +757,7 @@ function defineReveal(tag = 'usa-reveal') {
|
|
|
732
757
|
if (!this.reduced)
|
|
733
758
|
this.setAttribute('data-state', 'hidden');
|
|
734
759
|
}
|
|
735
|
-
}
|
|
760
|
+
});
|
|
736
761
|
}
|
|
737
762
|
|
|
738
763
|
function defineStagger(tag = 'usa-stagger') {
|
|
@@ -798,11 +823,9 @@ function defineStagger(tag = 'usa-stagger') {
|
|
|
798
823
|
if (!this.reduced)
|
|
799
824
|
this.setAttribute('data-state', 'hidden');
|
|
800
825
|
}
|
|
801
|
-
}
|
|
826
|
+
});
|
|
802
827
|
}
|
|
803
828
|
|
|
804
|
-
var css$12 = "";
|
|
805
|
-
|
|
806
829
|
/** Progress (0–1) of `target` scrolling through the viewport, or of the page. */
|
|
807
830
|
function readScrollProgress(target) {
|
|
808
831
|
if (typeof window === 'undefined')
|
|
@@ -870,11 +893,9 @@ function defineScrollProgress(tag = 'usa-scroll-progress') {
|
|
|
870
893
|
this.setAttribute('aria-valuenow', pct);
|
|
871
894
|
this.emit('progress', { progress: p });
|
|
872
895
|
}
|
|
873
|
-
}
|
|
896
|
+
});
|
|
874
897
|
}
|
|
875
898
|
|
|
876
|
-
var css$11 = "";
|
|
877
|
-
|
|
878
899
|
function defineScrolly(tag = 'usa-scrolly') {
|
|
879
900
|
return defineElement(tag, (Base) => class UsaScrolly extends Base {
|
|
880
901
|
constructor() {
|
|
@@ -925,7 +946,7 @@ function defineScrolly(tag = 'usa-scrolly') {
|
|
|
925
946
|
if (!silent)
|
|
926
947
|
this.emit('step', { index, step, name: step.dataset.step || '' });
|
|
927
948
|
}
|
|
928
|
-
}
|
|
949
|
+
});
|
|
929
950
|
}
|
|
930
951
|
|
|
931
952
|
/**
|
|
@@ -940,8 +961,6 @@ function defineRevealComponents() {
|
|
|
940
961
|
defineScrolly();
|
|
941
962
|
}
|
|
942
963
|
|
|
943
|
-
var css$10 = "";
|
|
944
|
-
|
|
945
964
|
function defineTypewriter(tag = 'usa-typewriter') {
|
|
946
965
|
return defineElement(tag, (Base) => class UsaTypewriter extends Base {
|
|
947
966
|
constructor() {
|
|
@@ -1054,11 +1073,9 @@ function defineTypewriter(tag = 'usa-typewriter') {
|
|
|
1054
1073
|
};
|
|
1055
1074
|
this._timer = setTimeout(tick, this.num('delay', 0));
|
|
1056
1075
|
}
|
|
1057
|
-
}
|
|
1076
|
+
});
|
|
1058
1077
|
}
|
|
1059
1078
|
|
|
1060
|
-
var css$$ = "";
|
|
1061
|
-
|
|
1062
1079
|
/**
|
|
1063
1080
|
* Motion design tokens 2.0 (10.6): the W3C Design Tokens Community Group
|
|
1064
1081
|
* format (DTCG, stable 2025.10) — import with alias resolution and
|
|
@@ -1268,7 +1285,7 @@ const MOTION_TOKENS = {
|
|
|
1268
1285
|
stiff: { stiffness: 500, damping: 40, mass: 1 },
|
|
1269
1286
|
},
|
|
1270
1287
|
};
|
|
1271
|
-
let active = /*#__PURE__*/ clone(MOTION_TOKENS);
|
|
1288
|
+
let active$1 = /*#__PURE__*/ clone(MOTION_TOKENS);
|
|
1272
1289
|
function clone(t) {
|
|
1273
1290
|
return { duration: { ...t.duration }, easing: { ...t.easing }, spring: Object.fromEntries(Object.entries(t.spring).map(([k, v]) => [k, { ...v }])) };
|
|
1274
1291
|
}
|
|
@@ -1283,7 +1300,7 @@ function mergeMotionTokens(partial, base = MOTION_TOKENS) {
|
|
|
1283
1300
|
}
|
|
1284
1301
|
const kebab = (s) => s.replace(/([a-z0-9])([A-Z])/g, '$1-$2').replace(/[\s_.]+/g, '-').toLowerCase();
|
|
1285
1302
|
/** The custom-property map: `{ '--usa-duration-fast': '150ms', … }`. */
|
|
1286
|
-
function motionTokensToVars(tokens = active, prefix = '--usa') {
|
|
1303
|
+
function motionTokensToVars(tokens = active$1, prefix = '--usa') {
|
|
1287
1304
|
const vars = {};
|
|
1288
1305
|
for (const [k, v] of Object.entries(tokens.duration))
|
|
1289
1306
|
vars[`${prefix}-duration-${kebab(k)}`] = `${v}ms`;
|
|
@@ -1297,12 +1314,12 @@ function motionTokensToVars(tokens = active, prefix = '--usa') {
|
|
|
1297
1314
|
return vars;
|
|
1298
1315
|
}
|
|
1299
1316
|
/** A stylesheet string: `:root { --usa-duration-fast: 150ms; … }`. */
|
|
1300
|
-
function motionTokensToCss(tokens = active, selector = ':root', prefix = '--usa') {
|
|
1317
|
+
function motionTokensToCss(tokens = active$1, selector = ':root', prefix = '--usa') {
|
|
1301
1318
|
const body = Object.entries(motionTokensToVars(tokens, prefix)).map(([k, v]) => ` ${k}: ${v};`).join('\n');
|
|
1302
1319
|
return `${selector} {\n${body}\n}\n`;
|
|
1303
1320
|
}
|
|
1304
1321
|
/** W3C Design Tokens (DTCG) JSON: `{ motion: { duration: { fast: { $type: 'duration', $value: '150ms' } } } }`. */
|
|
1305
|
-
function motionTokensToJSON(tokens = active) {
|
|
1322
|
+
function motionTokensToJSON(tokens = active$1) {
|
|
1306
1323
|
const grp = (o, f) => Object.fromEntries(Object.entries(o).map(([k, v]) => [k, f(v)]));
|
|
1307
1324
|
return {
|
|
1308
1325
|
motion: {
|
|
@@ -1392,30 +1409,30 @@ function importMotionTokens(json, base = MOTION_TOKENS) {
|
|
|
1392
1409
|
}
|
|
1393
1410
|
/** The tokens currently applied (via `applyMotionTokens`), or the defaults. */
|
|
1394
1411
|
function getMotionTokens() {
|
|
1395
|
-
return clone(active);
|
|
1412
|
+
return clone(active$1);
|
|
1396
1413
|
}
|
|
1397
1414
|
/**
|
|
1398
1415
|
* Write tokens as CSS custom properties on `root` (default `<html>`) and make
|
|
1399
1416
|
* them the active set for `motionToken()`. Returns an undo function.
|
|
1400
1417
|
*/
|
|
1401
1418
|
function applyMotionTokens(tokens = MOTION_TOKENS, root, prefix = '--usa') {
|
|
1402
|
-
const prev = active;
|
|
1403
|
-
active = mergeMotionTokens(tokens, MOTION_TOKENS);
|
|
1419
|
+
const prev = active$1;
|
|
1420
|
+
active$1 = mergeMotionTokens(tokens, MOTION_TOKENS);
|
|
1404
1421
|
const el = root || (typeof document !== 'undefined' ? document.documentElement : null);
|
|
1405
|
-
const vars = motionTokensToVars(active, prefix);
|
|
1422
|
+
const vars = motionTokensToVars(active$1, prefix);
|
|
1406
1423
|
const old = {};
|
|
1407
1424
|
if (el)
|
|
1408
1425
|
for (const [k, v] of Object.entries(vars))
|
|
1409
1426
|
((old[k] = el.style.getPropertyValue(k)), el.style.setProperty(k, v));
|
|
1410
1427
|
return () => {
|
|
1411
|
-
active = prev;
|
|
1428
|
+
active$1 = prev;
|
|
1412
1429
|
if (el)
|
|
1413
1430
|
for (const [k, v] of Object.entries(old))
|
|
1414
1431
|
v ? el.style.setProperty(k, v) : el.style.removeProperty(k);
|
|
1415
1432
|
};
|
|
1416
1433
|
}
|
|
1417
1434
|
function motionToken(group, name) {
|
|
1418
|
-
const g = active[group];
|
|
1435
|
+
const g = active$1[group];
|
|
1419
1436
|
return g[name] ?? MOTION_TOKENS[group][name];
|
|
1420
1437
|
}
|
|
1421
1438
|
/** `var(--usa-duration-fast, 150ms)` — a CSS reference with the current value as fallback. */
|
|
@@ -1433,14 +1450,14 @@ function resolveDurationToken(v, fallback) {
|
|
|
1433
1450
|
if (typeof v === 'number')
|
|
1434
1451
|
return v;
|
|
1435
1452
|
if (typeof v === 'string')
|
|
1436
|
-
return (active.duration[v] ?? parseDuration(v)) ?? fallback;
|
|
1453
|
+
return (active$1.duration[v] ?? parseDuration(v)) ?? fallback;
|
|
1437
1454
|
return fallback;
|
|
1438
1455
|
}
|
|
1439
1456
|
/** Resolve an easing that may be a token name (`'emphasized'`) or CSS. */
|
|
1440
1457
|
function resolveEasingToken(v, fallback) {
|
|
1441
1458
|
if (!v)
|
|
1442
1459
|
return fallback;
|
|
1443
|
-
return active.easing[v] ?? v;
|
|
1460
|
+
return active$1.easing[v] ?? v;
|
|
1444
1461
|
}
|
|
1445
1462
|
|
|
1446
1463
|
/** 4.1: whether `scrub()` can use native ScrollTimeline / ViewTimeline here. */
|
|
@@ -2046,7 +2063,7 @@ function defineSplitText(tag = 'usa-split-text') {
|
|
|
2046
2063
|
clearTimeout(this._timer);
|
|
2047
2064
|
this.setAttribute('data-state', this.reduced ? 'shown' : 'hidden');
|
|
2048
2065
|
}
|
|
2049
|
-
}
|
|
2066
|
+
});
|
|
2050
2067
|
}
|
|
2051
2068
|
|
|
2052
2069
|
const GLYPHS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789#%&*+=<>/\\?!';
|
|
@@ -2137,11 +2154,9 @@ function defineScramble(tag = 'usa-scramble') {
|
|
|
2137
2154
|
this._frame = raf(step);
|
|
2138
2155
|
});
|
|
2139
2156
|
}
|
|
2140
|
-
}
|
|
2157
|
+
});
|
|
2141
2158
|
}
|
|
2142
2159
|
|
|
2143
|
-
var css$_ = "";
|
|
2144
|
-
|
|
2145
2160
|
/** easeOutExpo */
|
|
2146
2161
|
const easeOutExpo = (t) => (t >= 1 ? 1 : 1 - Math.pow(2, -10 * t));
|
|
2147
2162
|
function defineCounter(tag = 'usa-counter') {
|
|
@@ -2240,11 +2255,9 @@ function defineCounter(tag = 'usa-counter') {
|
|
|
2240
2255
|
this._frame = raf(step);
|
|
2241
2256
|
});
|
|
2242
2257
|
}
|
|
2243
|
-
}
|
|
2258
|
+
});
|
|
2244
2259
|
}
|
|
2245
2260
|
|
|
2246
|
-
var css$Z = "";
|
|
2247
|
-
|
|
2248
2261
|
function defineShimmerText(tag = 'usa-shimmer-text') {
|
|
2249
2262
|
return defineElement(tag, (Base) => class UsaShimmerText extends Base {
|
|
2250
2263
|
static get observedAttributes() {
|
|
@@ -2263,11 +2276,9 @@ function defineShimmerText(tag = 'usa-shimmer-text') {
|
|
|
2263
2276
|
set('shine', '--usa-shimmer-shine');
|
|
2264
2277
|
set('angle', '--usa-shimmer-angle', 'deg');
|
|
2265
2278
|
}
|
|
2266
|
-
}
|
|
2279
|
+
});
|
|
2267
2280
|
}
|
|
2268
2281
|
|
|
2269
|
-
var css$Y = "";
|
|
2270
|
-
|
|
2271
2282
|
function defineTextRotate(tag = 'usa-text-rotate') {
|
|
2272
2283
|
return defineElement(tag, (Base) => class UsaTextRotate extends Base {
|
|
2273
2284
|
constructor() {
|
|
@@ -2338,11 +2349,9 @@ function defineTextRotate(tag = 'usa-text-rotate') {
|
|
|
2338
2349
|
this.motion(cur, [inFrom, pick(inFrom)], { duration: 520, easing: effect === 'slide' ? EASE_SPRING : EASE_OUT });
|
|
2339
2350
|
this.emit('change', { index: this._index, word: cur.textContent });
|
|
2340
2351
|
}
|
|
2341
|
-
}
|
|
2352
|
+
});
|
|
2342
2353
|
}
|
|
2343
2354
|
|
|
2344
|
-
var css$X = "";
|
|
2345
|
-
|
|
2346
2355
|
/** Split `text` into per-character spans (words never break). The animated copy is aria-hidden. */
|
|
2347
2356
|
function splitChars(host, text) {
|
|
2348
2357
|
const vis = document.createElement('span');
|
|
@@ -2378,7 +2387,7 @@ function defineWaveText(tag = 'usa-wave-text') {
|
|
|
2378
2387
|
this.style.setProperty('--usa-wave-s', `${this.num('speed', 1.6)}s`);
|
|
2379
2388
|
this.style.setProperty('--usa-wave-d', `${this.num('stagger', 0.06)}s`);
|
|
2380
2389
|
}
|
|
2381
|
-
}
|
|
2390
|
+
});
|
|
2382
2391
|
}
|
|
2383
2392
|
function defineGlitch(tag = 'usa-glitch') {
|
|
2384
2393
|
return defineElement(tag, (Base) => class extends Base {
|
|
@@ -2390,7 +2399,7 @@ function defineGlitch(tag = 'usa-glitch') {
|
|
|
2390
2399
|
if (!this.firstChild)
|
|
2391
2400
|
this.textContent = t;
|
|
2392
2401
|
}
|
|
2393
|
-
}
|
|
2402
|
+
});
|
|
2394
2403
|
}
|
|
2395
2404
|
function defineGradientText(tag = 'usa-gradient-text') {
|
|
2396
2405
|
return defineElement(tag, (Base) => class extends Base {
|
|
@@ -2400,7 +2409,7 @@ function defineGradientText(tag = 'usa-gradient-text') {
|
|
|
2400
2409
|
this.style.setProperty('--usa-grad', `linear-gradient(${this.num('angle', 90)}deg, ${[...c, c[0]].join(', ')})`);
|
|
2401
2410
|
this.style.setProperty('--usa-grad-s', `${this.num('speed', 6)}s`);
|
|
2402
2411
|
}
|
|
2403
|
-
}
|
|
2412
|
+
});
|
|
2404
2413
|
}
|
|
2405
2414
|
function defineHandwriting(tag = 'usa-handwriting') {
|
|
2406
2415
|
return defineElement(tag, (Base) => class extends Base {
|
|
@@ -2433,7 +2442,7 @@ function defineHandwriting(tag = 'usa-handwriting') {
|
|
|
2433
2442
|
this.emit('complete');
|
|
2434
2443
|
}, this.reduced ? 0 : this.num('duration', 2400));
|
|
2435
2444
|
}
|
|
2436
|
-
}
|
|
2445
|
+
});
|
|
2437
2446
|
}
|
|
2438
2447
|
function defineScrollHighlight(tag = 'usa-scroll-highlight') {
|
|
2439
2448
|
return defineElement(tag, (Base) => class extends Base {
|
|
@@ -2497,7 +2506,7 @@ function defineScrollHighlight(tag = 'usa-scroll-highlight') {
|
|
|
2497
2506
|
caf(this._f);
|
|
2498
2507
|
this._f = 0;
|
|
2499
2508
|
}
|
|
2500
|
-
}
|
|
2509
|
+
});
|
|
2501
2510
|
}
|
|
2502
2511
|
|
|
2503
2512
|
/**
|
|
@@ -2520,8 +2529,6 @@ function defineTextComponents() {
|
|
|
2520
2529
|
defineScrollHighlight();
|
|
2521
2530
|
}
|
|
2522
2531
|
|
|
2523
|
-
var css$W = "";
|
|
2524
|
-
|
|
2525
2532
|
function defineRipple(tag = 'usa-ripple') {
|
|
2526
2533
|
return defineElement(tag, (Base) => class UsaRipple extends Base {
|
|
2527
2534
|
static get observedAttributes() {
|
|
@@ -2567,11 +2574,9 @@ function defineRipple(tag = 'usa-ripple') {
|
|
|
2567
2574
|
else
|
|
2568
2575
|
setTimeout(() => wave.remove(), 0);
|
|
2569
2576
|
}
|
|
2570
|
-
}
|
|
2577
|
+
});
|
|
2571
2578
|
}
|
|
2572
2579
|
|
|
2573
|
-
var css$V = "";
|
|
2574
|
-
|
|
2575
2580
|
function defineMagnetic(tag = 'usa-magnetic') {
|
|
2576
2581
|
return defineElement(tag, (Base) => class UsaMagnetic extends Base {
|
|
2577
2582
|
constructor() {
|
|
@@ -2627,11 +2632,9 @@ function defineMagnetic(tag = 'usa-magnetic') {
|
|
|
2627
2632
|
unmount() {
|
|
2628
2633
|
this.release();
|
|
2629
2634
|
}
|
|
2630
|
-
}
|
|
2635
|
+
});
|
|
2631
2636
|
}
|
|
2632
2637
|
|
|
2633
|
-
var css$U = "";
|
|
2634
|
-
|
|
2635
2638
|
function defineTilt(tag = 'usa-tilt') {
|
|
2636
2639
|
return defineElement(tag, (Base) => class UsaTilt extends Base {
|
|
2637
2640
|
constructor() {
|
|
@@ -2699,11 +2702,9 @@ function defineTilt(tag = 'usa-tilt') {
|
|
|
2699
2702
|
unmount() {
|
|
2700
2703
|
this.reset();
|
|
2701
2704
|
}
|
|
2702
|
-
}
|
|
2705
|
+
});
|
|
2703
2706
|
}
|
|
2704
2707
|
|
|
2705
|
-
var css$T = "";
|
|
2706
|
-
|
|
2707
2708
|
function defineSpotlight(tag = 'usa-spotlight') {
|
|
2708
2709
|
return defineElement(tag, (Base) => class UsaSpotlight extends Base {
|
|
2709
2710
|
constructor() {
|
|
@@ -2765,11 +2766,9 @@ function defineSpotlight(tag = 'usa-spotlight') {
|
|
|
2765
2766
|
this._frame = 0;
|
|
2766
2767
|
this.removeAttribute('data-lit');
|
|
2767
2768
|
}
|
|
2768
|
-
}
|
|
2769
|
+
});
|
|
2769
2770
|
}
|
|
2770
2771
|
|
|
2771
|
-
var css$S = "";
|
|
2772
|
-
|
|
2773
2772
|
function definePress(tag = 'usa-press') {
|
|
2774
2773
|
return defineElement(tag, (Base) => class UsaPress extends Base {
|
|
2775
2774
|
constructor() {
|
|
@@ -2832,7 +2831,7 @@ function definePress(tag = 'usa-press') {
|
|
|
2832
2831
|
this._anim = null;
|
|
2833
2832
|
this.removeAttribute('data-pressed');
|
|
2834
2833
|
}
|
|
2835
|
-
}
|
|
2834
|
+
});
|
|
2836
2835
|
}
|
|
2837
2836
|
|
|
2838
2837
|
/**
|
|
@@ -2849,8 +2848,6 @@ function defineInteractionComponents() {
|
|
|
2849
2848
|
definePress();
|
|
2850
2849
|
}
|
|
2851
2850
|
|
|
2852
|
-
var css$R = "";
|
|
2853
|
-
|
|
2854
2851
|
const SPINNER_VARIANTS = ['fluent', 'windows', 'ring', 'dots', 'pulse', 'bars'];
|
|
2855
2852
|
function markup(variant) {
|
|
2856
2853
|
switch (variant) {
|
|
@@ -2895,11 +2892,9 @@ function defineSpinner(tag = 'usa-spinner') {
|
|
|
2895
2892
|
if (!this.hasAttribute('aria-label') || this.hasAttribute('label'))
|
|
2896
2893
|
this.setAttribute('aria-label', this.str('label', 'Loading'));
|
|
2897
2894
|
}
|
|
2898
|
-
}
|
|
2895
|
+
});
|
|
2899
2896
|
}
|
|
2900
2897
|
|
|
2901
|
-
var css$Q = "";
|
|
2902
|
-
|
|
2903
2898
|
function defineSkeleton(tag = 'usa-skeleton') {
|
|
2904
2899
|
return defineElement(tag, (Base) => class UsaSkeleton extends Base {
|
|
2905
2900
|
constructor() {
|
|
@@ -2978,11 +2973,9 @@ function defineSkeleton(tag = 'usa-skeleton') {
|
|
|
2978
2973
|
}
|
|
2979
2974
|
this.emit('loaded');
|
|
2980
2975
|
}
|
|
2981
|
-
}
|
|
2976
|
+
});
|
|
2982
2977
|
}
|
|
2983
2978
|
|
|
2984
|
-
var css$P = "";
|
|
2985
|
-
|
|
2986
2979
|
function defineProgress(tag = 'usa-progress') {
|
|
2987
2980
|
return defineElement(tag, (Base) => class UsaProgress extends Base {
|
|
2988
2981
|
constructor() {
|
|
@@ -3044,11 +3037,9 @@ function defineProgress(tag = 'usa-progress') {
|
|
|
3044
3037
|
if (ratio === 1)
|
|
3045
3038
|
this.emit('complete');
|
|
3046
3039
|
}
|
|
3047
|
-
}
|
|
3040
|
+
});
|
|
3048
3041
|
}
|
|
3049
3042
|
|
|
3050
|
-
var css$O = "";
|
|
3051
|
-
|
|
3052
3043
|
const ICONS = {
|
|
3053
3044
|
info: '<path d="M12 8h.01M11 12h1v5h1"/>',
|
|
3054
3045
|
success: '<path d="m8 12.5 3 3 5-6"/>',
|
|
@@ -3163,7 +3154,7 @@ function defineToaster(tag = 'usa-toaster') {
|
|
|
3163
3154
|
clear() {
|
|
3164
3155
|
this.querySelectorAll('.usa-toast').forEach((t) => t._close?.());
|
|
3165
3156
|
}
|
|
3166
|
-
}
|
|
3157
|
+
});
|
|
3167
3158
|
}
|
|
3168
3159
|
/**
|
|
3169
3160
|
* Show a toast. Defines `<usa-toaster>` and adds one to `<body>` if the
|
|
@@ -3184,8 +3175,6 @@ function toast(message, options = {}) {
|
|
|
3184
3175
|
return host.show(message, options);
|
|
3185
3176
|
}
|
|
3186
3177
|
|
|
3187
|
-
var css$N = "";
|
|
3188
|
-
|
|
3189
3178
|
const PATHS = {
|
|
3190
3179
|
success: 'M15 27 l7 7 l14 -15',
|
|
3191
3180
|
error: 'M18 18 L34 34 M34 18 L18 34',
|
|
@@ -3261,7 +3250,7 @@ function defineCheck(tag = 'usa-check') {
|
|
|
3261
3250
|
done();
|
|
3262
3251
|
});
|
|
3263
3252
|
}
|
|
3264
|
-
}
|
|
3253
|
+
});
|
|
3265
3254
|
}
|
|
3266
3255
|
|
|
3267
3256
|
/**
|
|
@@ -3278,8 +3267,6 @@ function defineFeedbackComponents() {
|
|
|
3278
3267
|
defineCheck();
|
|
3279
3268
|
}
|
|
3280
3269
|
|
|
3281
|
-
var css$M = "";
|
|
3282
|
-
|
|
3283
3270
|
function defineAurora(tag = 'usa-aurora') {
|
|
3284
3271
|
return defineElement(tag, (Base) => class UsaAurora extends Base {
|
|
3285
3272
|
constructor() {
|
|
@@ -3306,11 +3293,9 @@ function defineAurora(tag = 'usa-aurora') {
|
|
|
3306
3293
|
this.style.setProperty('--usa-aurora-opacity', String(this.num('intensity', 0.7)));
|
|
3307
3294
|
this.inView((v) => this.toggleAttribute('data-offscreen', !v));
|
|
3308
3295
|
}
|
|
3309
|
-
}
|
|
3296
|
+
});
|
|
3310
3297
|
}
|
|
3311
3298
|
|
|
3312
|
-
var css$L = "";
|
|
3313
|
-
|
|
3314
3299
|
function defineParticles(tag = 'usa-particles') {
|
|
3315
3300
|
return defineElement(tag, (Base) => class UsaParticles extends Base {
|
|
3316
3301
|
constructor() {
|
|
@@ -3468,11 +3453,9 @@ function defineParticles(tag = 'usa-particles') {
|
|
|
3468
3453
|
}
|
|
3469
3454
|
ctx.globalAlpha = 1;
|
|
3470
3455
|
}
|
|
3471
|
-
}
|
|
3456
|
+
});
|
|
3472
3457
|
}
|
|
3473
3458
|
|
|
3474
|
-
var css$K = "";
|
|
3475
|
-
|
|
3476
3459
|
const noise = (freq) => `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='${freq}' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.6 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")`;
|
|
3477
3460
|
function defineGrain(tag = 'usa-grain') {
|
|
3478
3461
|
return defineElement(tag, (Base) => class UsaGrain extends Base {
|
|
@@ -3496,11 +3479,9 @@ function defineGrain(tag = 'usa-grain') {
|
|
|
3496
3479
|
s.opacity = String(this.num('opacity', 0.12));
|
|
3497
3480
|
s.mixBlendMode = this.str('blend', 'overlay');
|
|
3498
3481
|
}
|
|
3499
|
-
}
|
|
3482
|
+
});
|
|
3500
3483
|
}
|
|
3501
3484
|
|
|
3502
|
-
var css$J = "";
|
|
3503
|
-
|
|
3504
3485
|
function defineMarquee(tag = 'usa-marquee') {
|
|
3505
3486
|
return defineElement(tag, (Base) => class UsaMarquee extends Base {
|
|
3506
3487
|
constructor() {
|
|
@@ -3619,11 +3600,9 @@ function defineMarquee(tag = 'usa-marquee') {
|
|
|
3619
3600
|
else
|
|
3620
3601
|
super.changed(name);
|
|
3621
3602
|
}
|
|
3622
|
-
}
|
|
3603
|
+
});
|
|
3623
3604
|
}
|
|
3624
3605
|
|
|
3625
|
-
var css$I = "";
|
|
3626
|
-
|
|
3627
3606
|
function defineAcrylic(tag = 'usa-acrylic') {
|
|
3628
3607
|
return defineElement(tag, (Base) => class UsaAcrylic extends Base {
|
|
3629
3608
|
static get observedAttributes() {
|
|
@@ -3643,11 +3622,9 @@ function defineAcrylic(tag = 'usa-acrylic') {
|
|
|
3643
3622
|
this.setAttribute('data-shine', '');
|
|
3644
3623
|
}
|
|
3645
3624
|
}
|
|
3646
|
-
}
|
|
3625
|
+
});
|
|
3647
3626
|
}
|
|
3648
3627
|
|
|
3649
|
-
var css$H = "";
|
|
3650
|
-
|
|
3651
3628
|
/** Shared canvas setup: DPR ≤ 2, resize with the host, run only while visible & tab shown. */
|
|
3652
3629
|
function canvasLoop(host, draw, still) {
|
|
3653
3630
|
const c = document.createElement('canvas');
|
|
@@ -3724,7 +3701,7 @@ function defineGridGlow(tag = 'usa-grid-glow') {
|
|
|
3724
3701
|
});
|
|
3725
3702
|
this.onCleanup(() => caf(f));
|
|
3726
3703
|
}
|
|
3727
|
-
}
|
|
3704
|
+
});
|
|
3728
3705
|
}
|
|
3729
3706
|
function defineBlobs(tag = 'usa-blobs') {
|
|
3730
3707
|
return defineElement(tag, (Base) => class extends Base {
|
|
@@ -3742,7 +3719,7 @@ function defineBlobs(tag = 'usa-blobs') {
|
|
|
3742
3719
|
this.style.setProperty('--usa-blobs-speed', String(this.num('speed', 1)));
|
|
3743
3720
|
this.style.setProperty('--usa-blobs-blur', `${this.num('blur', 60)}px`);
|
|
3744
3721
|
}
|
|
3745
|
-
}
|
|
3722
|
+
});
|
|
3746
3723
|
}
|
|
3747
3724
|
function defineWaterRipple(tag = 'usa-water-ripple') {
|
|
3748
3725
|
return defineElement(tag, (Base) => class extends Base {
|
|
@@ -3808,7 +3785,7 @@ function defineWaterRipple(tag = 'usa-water-ripple') {
|
|
|
3808
3785
|
this.drop(e.clientX - r.left, e.clientY - r.top, 1.5);
|
|
3809
3786
|
});
|
|
3810
3787
|
}
|
|
3811
|
-
}
|
|
3788
|
+
});
|
|
3812
3789
|
}
|
|
3813
3790
|
function defineDotNetwork(tag = 'usa-dot-network') {
|
|
3814
3791
|
return defineElement(tag, (Base) => class extends Base {
|
|
@@ -3854,11 +3831,9 @@ function defineDotNetwork(tag = 'usa-dot-network') {
|
|
|
3854
3831
|
}
|
|
3855
3832
|
}, this.reduced);
|
|
3856
3833
|
}
|
|
3857
|
-
}
|
|
3834
|
+
});
|
|
3858
3835
|
}
|
|
3859
3836
|
|
|
3860
|
-
var css$G = "";
|
|
3861
|
-
|
|
3862
3837
|
/**
|
|
3863
3838
|
* Style variants (v2.6): `variant="minimal | neon | glass | brutalist |
|
|
3864
3839
|
* fluent | material"` on any `<usa-*>` element — or on any ancestor as
|
|
@@ -3875,7 +3850,7 @@ var css$G = "";
|
|
|
3875
3850
|
const VARIANTS = ['minimal', 'neon', 'glass', 'brutalist', 'fluent', 'material'];
|
|
3876
3851
|
/** Inject the variant token sheet (done automatically by every `ui` component). */
|
|
3877
3852
|
function adoptVariants() {
|
|
3878
|
-
adoptStyles('variants', css
|
|
3853
|
+
adoptStyles('variants', css);
|
|
3879
3854
|
}
|
|
3880
3855
|
/** Apply a variant to the whole page (or `root`); `null` removes it. */
|
|
3881
3856
|
function setVariant(variant, root = typeof document !== 'undefined' ? document.documentElement : null) {
|
|
@@ -3888,8 +3863,6 @@ function setVariant(variant, root = typeof document !== 'undefined' ? document.d
|
|
|
3888
3863
|
root.removeAttribute('data-usa-variant');
|
|
3889
3864
|
}
|
|
3890
3865
|
|
|
3891
|
-
var css$F = "";
|
|
3892
|
-
|
|
3893
3866
|
/**
|
|
3894
3867
|
* Windows 11 **Fluent preset** (v2.8): applies the `fluent` variant
|
|
3895
3868
|
* (Segoe UI Variable, Windows accent, 8 px radii), a Mica-style tinted
|
|
@@ -3903,7 +3876,7 @@ function fluentPreset(options = {}) {
|
|
|
3903
3876
|
if (typeof document === 'undefined')
|
|
3904
3877
|
return () => undefined;
|
|
3905
3878
|
const root = options.root || document.documentElement;
|
|
3906
|
-
adoptStyles('fluent-preset', css
|
|
3879
|
+
adoptStyles('fluent-preset', css);
|
|
3907
3880
|
setVariant('fluent', root);
|
|
3908
3881
|
root.classList.add('usa-fluent');
|
|
3909
3882
|
if (options.mica !== false)
|
|
@@ -3966,8 +3939,6 @@ function defineBackgroundComponents() {
|
|
|
3966
3939
|
|
|
3967
3940
|
var shadowCss = ":host{display:contents}dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:inherit;overflow:hidden}dialog:not([open]){display:none}dialog::backdrop{background:transparent}[part=\"backdrop\"]{position:absolute;inset:0;background:var(--usa-dialog-backdrop,rgb(0 0 0 / 0.42))}[part=\"panel\"]{position:absolute;left:50%;top:50%;translate:-50% -50%;box-sizing:border-box;width:min(var(--usa-dialog-width,480px),calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;padding:var(--usa-dialog-padding,24px);border-radius:var(--usa-dialog-radius,12px);background:var(--usa-dialog-bg,Canvas);color:var(--usa-dialog-fg,CanvasText);box-shadow:0 32px 64px -12px rgb(0 0 0 / 0.45),0 0 0 1px rgb(127 127 127 / 0.18)}dialog[data-kind^=\"drawer\"] [part=\"panel\"]{top:0;bottom:0;translate:none;max-height:none;height:100%;border-radius:0;width:min(var(--usa-dialog-width,380px),88vw)}dialog[data-kind=\"drawer-start\"] [part=\"panel\"]{left:0}dialog[data-kind=\"drawer-end\"] [part=\"panel\"]{left:auto;right:0}dialog[data-kind=\"drawer-bottom\"] [part=\"panel\"],dialog[data-kind=\"sheet\"] [part=\"panel\"]{top:auto;bottom:0;left:0;right:0;translate:none;width:100%;height:auto;max-height:85vh;border-radius:var(--usa-dialog-radius,16px) var(--usa-dialog-radius,16px) 0 0}dialog[data-kind=\"sheet\"] [part=\"panel\"]{left:50%;translate:-50% 0;width:min(var(--usa-dialog-width,560px),100vw)}";
|
|
3968
3941
|
|
|
3969
|
-
var css$E = "";
|
|
3970
|
-
|
|
3971
3942
|
const FROM = {
|
|
3972
3943
|
modal: 'scale(0.94)',
|
|
3973
3944
|
'drawer-start': 'translateX(-100%)',
|
|
@@ -4121,11 +4092,9 @@ function defineDialog(tag = 'usa-dialog') {
|
|
|
4121
4092
|
const b = this._backdrop ? this.motion(this._backdrop, backdrop, { duration, easing: 'linear', fill }) : null;
|
|
4122
4093
|
return Promise.all([a?.finished, b?.finished].map((p) => p?.catch(() => undefined))).then(() => undefined);
|
|
4123
4094
|
}
|
|
4124
|
-
}
|
|
4095
|
+
});
|
|
4125
4096
|
}
|
|
4126
4097
|
|
|
4127
|
-
var css$D = "";
|
|
4128
|
-
|
|
4129
4098
|
function defineAccordion(tag = 'usa-accordion') {
|
|
4130
4099
|
return defineElement(tag, (Base) => class UsaAccordion extends Base {
|
|
4131
4100
|
constructor() {
|
|
@@ -4190,11 +4159,9 @@ function defineAccordion(tag = 'usa-accordion') {
|
|
|
4190
4159
|
d.removeAttribute('data-closing');
|
|
4191
4160
|
}
|
|
4192
4161
|
}
|
|
4193
|
-
}
|
|
4162
|
+
});
|
|
4194
4163
|
}
|
|
4195
4164
|
|
|
4196
|
-
var css$C = "";
|
|
4197
|
-
|
|
4198
4165
|
function defineViewSwitch(tag = 'usa-view-switch') {
|
|
4199
4166
|
return defineElement(tag, (Base) => class UsaViewSwitch extends Base {
|
|
4200
4167
|
constructor() {
|
|
@@ -4286,7 +4253,7 @@ function defineViewSwitch(tag = 'usa-view-switch') {
|
|
|
4286
4253
|
this.setVisible(from, false);
|
|
4287
4254
|
a?.cancel();
|
|
4288
4255
|
}
|
|
4289
|
-
}
|
|
4256
|
+
});
|
|
4290
4257
|
}
|
|
4291
4258
|
|
|
4292
4259
|
/**
|
|
@@ -4598,8 +4565,6 @@ function rubberBand(distance, dimension, constant = 0.55) {
|
|
|
4598
4565
|
return sign * (1 - 1 / ((d * constant) / dimension + 1)) * dimension;
|
|
4599
4566
|
}
|
|
4600
4567
|
|
|
4601
|
-
var css$B = "";
|
|
4602
|
-
|
|
4603
4568
|
const SPRING_EFFECTS = ['bounce-in', 'pop', 'drop', 'jelly', 'rubber-band'];
|
|
4604
4569
|
/** Entrance effects start hidden; attention effects (jelly, rubber-band) play on visible content. */
|
|
4605
4570
|
const ENTRANCE = /*#__PURE__*/ new Set(['bounce-in', 'pop', 'drop']);
|
|
@@ -4713,11 +4678,9 @@ function defineSpring(tag = 'usa-spring') {
|
|
|
4713
4678
|
this.setAttribute('data-state', 'done');
|
|
4714
4679
|
this.emit('complete', { effect });
|
|
4715
4680
|
}
|
|
4716
|
-
}
|
|
4681
|
+
});
|
|
4717
4682
|
}
|
|
4718
4683
|
|
|
4719
|
-
var css$A = "";
|
|
4720
|
-
|
|
4721
4684
|
const parseSnap = (s) => {
|
|
4722
4685
|
if (!s.trim())
|
|
4723
4686
|
return null;
|
|
@@ -4913,11 +4876,9 @@ function defineDraggable(tag = 'usa-draggable') {
|
|
|
4913
4876
|
reset() {
|
|
4914
4877
|
this.go(0, 0);
|
|
4915
4878
|
}
|
|
4916
|
-
}
|
|
4879
|
+
});
|
|
4917
4880
|
}
|
|
4918
4881
|
|
|
4919
|
-
var css$z = "";
|
|
4920
|
-
|
|
4921
4882
|
function defineOverscroll(tag = 'usa-overscroll') {
|
|
4922
4883
|
return defineElement(tag, (Base) => class UsaOverscroll extends Base {
|
|
4923
4884
|
constructor() {
|
|
@@ -5005,7 +4966,7 @@ function defineOverscroll(tag = 'usa-overscroll') {
|
|
|
5005
4966
|
this._spring?.stop();
|
|
5006
4967
|
this.set(0);
|
|
5007
4968
|
}
|
|
5008
|
-
}
|
|
4969
|
+
});
|
|
5009
4970
|
}
|
|
5010
4971
|
|
|
5011
4972
|
/**
|
|
@@ -5022,8 +4983,6 @@ function definePhysicsComponents() {
|
|
|
5022
4983
|
defineOverscroll();
|
|
5023
4984
|
}
|
|
5024
4985
|
|
|
5025
|
-
var css$y = "";
|
|
5026
|
-
|
|
5027
4986
|
const CARD_EFFECTS = ['flip', 'holo', 'glass', 'border-glow', 'conic-border', 'lift', 'spotlight', 'sheen', 'parallax-layers', 'expand'];
|
|
5028
4987
|
/** Effects that follow the pointer (they share one rAF-throttled tracker). */
|
|
5029
4988
|
const TRACKING = /*#__PURE__*/ new Set(['holo', 'border-glow', 'spotlight', 'parallax-layers', 'lift']);
|
|
@@ -5228,7 +5187,7 @@ function defineCard(tag = 'usa-card') {
|
|
|
5228
5187
|
const a = this.motion(this, [{ transformOrigin: '0 0', transform: `translate(${dx}px, ${dy}px) scale(${sx}, ${sy})` }, { transformOrigin: '0 0', transform: 'none' }], { duration: Math.min(duration, 900), easing: easing || EASE_OUT });
|
|
5229
5188
|
await a?.finished.catch(() => undefined);
|
|
5230
5189
|
}
|
|
5231
|
-
}
|
|
5190
|
+
});
|
|
5232
5191
|
}
|
|
5233
5192
|
function deco(cls) {
|
|
5234
5193
|
const s = document.createElement('span');
|
|
@@ -5242,8 +5201,6 @@ function interactive(t, host) {
|
|
|
5242
5201
|
return !!el && el !== host && host.contains(el);
|
|
5243
5202
|
}
|
|
5244
5203
|
|
|
5245
|
-
var css$x = "";
|
|
5246
|
-
|
|
5247
5204
|
function defineCardStack(tag = 'usa-card-stack') {
|
|
5248
5205
|
return defineElement(tag, (Base) => class UsaCardStack extends Base {
|
|
5249
5206
|
constructor() {
|
|
@@ -5365,11 +5322,9 @@ function defineCardStack(tag = 'usa-card-stack') {
|
|
|
5365
5322
|
if (!this.top)
|
|
5366
5323
|
this.emit('empty');
|
|
5367
5324
|
}
|
|
5368
|
-
}
|
|
5325
|
+
});
|
|
5369
5326
|
}
|
|
5370
5327
|
|
|
5371
|
-
var css$w = "";
|
|
5372
|
-
|
|
5373
5328
|
function defineStickyStack(tag = 'usa-sticky-stack') {
|
|
5374
5329
|
return defineElement(tag, (Base) => class UsaStickyStack extends Base {
|
|
5375
5330
|
constructor() {
|
|
@@ -5432,11 +5387,9 @@ function defineStickyStack(tag = 'usa-sticky-stack') {
|
|
|
5432
5387
|
c.style.filter = covered > 0.001 ? `brightness(${(1 - Math.min(0.35, covered * 0.12)).toFixed(3)})` : '';
|
|
5433
5388
|
});
|
|
5434
5389
|
}
|
|
5435
|
-
}
|
|
5390
|
+
});
|
|
5436
5391
|
}
|
|
5437
5392
|
|
|
5438
|
-
var css$v = "";
|
|
5439
|
-
|
|
5440
5393
|
function defineCarousel3d(tag = 'usa-carousel-3d') {
|
|
5441
5394
|
return defineElement(tag, (Base) => class UsaCarousel3d extends Base {
|
|
5442
5395
|
constructor() {
|
|
@@ -5554,7 +5507,7 @@ function defineCarousel3d(tag = 'usa-carousel-3d') {
|
|
|
5554
5507
|
prev() {
|
|
5555
5508
|
this.goTo(this._i - 1);
|
|
5556
5509
|
}
|
|
5557
|
-
}
|
|
5510
|
+
});
|
|
5558
5511
|
}
|
|
5559
5512
|
|
|
5560
5513
|
/**
|
|
@@ -5677,8 +5630,6 @@ function haptic(pattern = 10) {
|
|
|
5677
5630
|
}
|
|
5678
5631
|
}
|
|
5679
5632
|
|
|
5680
|
-
var css$u = "";
|
|
5681
|
-
|
|
5682
5633
|
const CLICK_EFFECTS = ['ripple', 'burst', 'confetti', 'squish', 'press-spring', 'shake'];
|
|
5683
5634
|
function defineClick(tag = 'usa-click') {
|
|
5684
5635
|
return defineElement(tag, (Base) => class UsaClick extends Base {
|
|
@@ -5801,11 +5752,9 @@ function defineClick(tag = 'usa-click') {
|
|
|
5801
5752
|
: [{ transform: from }, { transform: 'none' }];
|
|
5802
5753
|
this._press = this.motion(this, frames, fx.includes('squish') ? { duration: 520, easing: 'ease-out' } : springEasing('bouncy'));
|
|
5803
5754
|
}
|
|
5804
|
-
}
|
|
5755
|
+
});
|
|
5805
5756
|
}
|
|
5806
5757
|
|
|
5807
|
-
var css$t = "";
|
|
5808
|
-
|
|
5809
5758
|
const BUTTON_DEFORMS = ['squash', 'wobble', 'gooey', 'dent'];
|
|
5810
5759
|
let gooInjected = false;
|
|
5811
5760
|
function injectGoo() {
|
|
@@ -6071,11 +6020,9 @@ function defineButton(tag = 'usa-button') {
|
|
|
6071
6020
|
}
|
|
6072
6021
|
this.emit('state', { state: s });
|
|
6073
6022
|
}
|
|
6074
|
-
}
|
|
6023
|
+
});
|
|
6075
6024
|
}
|
|
6076
6025
|
|
|
6077
|
-
var css$s = "";
|
|
6078
|
-
|
|
6079
6026
|
const C = [[12, 12], [12, 12], [12, 12], [12, 12]];
|
|
6080
6027
|
/**
|
|
6081
6028
|
* Morphable icons: every icon is three quads (four points each) on a 24×24
|
|
@@ -6182,11 +6129,9 @@ function defineIconMorph(tag = 'usa-icon-morph') {
|
|
|
6182
6129
|
next() {
|
|
6183
6130
|
this.show(this._i + 1);
|
|
6184
6131
|
}
|
|
6185
|
-
}
|
|
6132
|
+
});
|
|
6186
6133
|
}
|
|
6187
6134
|
|
|
6188
|
-
var css$r = "";
|
|
6189
|
-
|
|
6190
6135
|
const HEART = 'M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.2 5.3 3.2 1.7-2 3.2-3.2 5.3-3.2 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z';
|
|
6191
6136
|
function defineLike(tag = 'usa-like') {
|
|
6192
6137
|
return defineElement(tag, (Base) => class UsaLike extends Base {
|
|
@@ -6261,11 +6206,9 @@ function defineLike(tag = 'usa-like') {
|
|
|
6261
6206
|
this.dispatchEvent(new Event('change', { bubbles: true }));
|
|
6262
6207
|
this.emit('change', { liked: next, count: this.count });
|
|
6263
6208
|
}
|
|
6264
|
-
}
|
|
6209
|
+
});
|
|
6265
6210
|
}
|
|
6266
6211
|
|
|
6267
|
-
var css$q = "";
|
|
6268
|
-
|
|
6269
6212
|
function defineHold(tag = 'usa-hold') {
|
|
6270
6213
|
return defineElement(tag, (Base) => class UsaHold extends Base {
|
|
6271
6214
|
constructor() {
|
|
@@ -6376,11 +6319,9 @@ function defineHold(tag = 'usa-hold') {
|
|
|
6376
6319
|
cancel() {
|
|
6377
6320
|
this.stop();
|
|
6378
6321
|
}
|
|
6379
|
-
}
|
|
6322
|
+
});
|
|
6380
6323
|
}
|
|
6381
6324
|
|
|
6382
|
-
var css$p = "";
|
|
6383
|
-
|
|
6384
6325
|
function defineDoubleTap(tag = 'usa-double-tap') {
|
|
6385
6326
|
return defineElement(tag, (Base) => class UsaDoubleTap extends Base {
|
|
6386
6327
|
static get observedAttributes() {
|
|
@@ -6440,11 +6381,9 @@ function defineDoubleTap(tag = 'usa-double-tap') {
|
|
|
6440
6381
|
haptic(15);
|
|
6441
6382
|
this.emit('double-tap', { x: x - r.left, y: y - r.top });
|
|
6442
6383
|
}
|
|
6443
|
-
}
|
|
6384
|
+
});
|
|
6444
6385
|
}
|
|
6445
6386
|
|
|
6446
|
-
var css$o = "";
|
|
6447
|
-
|
|
6448
6387
|
function defineCheckbox(tag = 'usa-checkbox') {
|
|
6449
6388
|
return defineElement(tag, (Base) => {
|
|
6450
6389
|
class UsaCheckbox extends Base {
|
|
@@ -6515,7 +6454,7 @@ function defineCheckbox(tag = 'usa-checkbox') {
|
|
|
6515
6454
|
}
|
|
6516
6455
|
UsaCheckbox.formAssociated = true;
|
|
6517
6456
|
return UsaCheckbox;
|
|
6518
|
-
}
|
|
6457
|
+
});
|
|
6519
6458
|
}
|
|
6520
6459
|
|
|
6521
6460
|
/**
|
|
@@ -6570,8 +6509,6 @@ function place(floating, anchor, placement = 'top', gap = 8) {
|
|
|
6570
6509
|
let uid = 0;
|
|
6571
6510
|
const nextId = (prefix) => `${prefix}-${++uid}`;
|
|
6572
6511
|
|
|
6573
|
-
var css$n = "";
|
|
6574
|
-
|
|
6575
6512
|
function defineTabs(tag = 'usa-tabs') {
|
|
6576
6513
|
// contract-exempt: attr-unobserved(selected) — state reflected by the element itself (set the property instead); observing it would re-mount on every change
|
|
6577
6514
|
adoptVariants();
|
|
@@ -6674,11 +6611,9 @@ function defineTabs(tag = 'usa-tabs') {
|
|
|
6674
6611
|
this.motion(p, [{ opacity: 0, transform: `translateX(${i > prev ? 16 : -16}px)` }, { opacity: 1, transform: 'none' }], { duration: 280, easing: 'cubic-bezier(0.22, 1, 0.36, 1)' });
|
|
6675
6612
|
this.emit('change', { index: i });
|
|
6676
6613
|
}
|
|
6677
|
-
}
|
|
6614
|
+
});
|
|
6678
6615
|
}
|
|
6679
6616
|
|
|
6680
|
-
var css$m = "";
|
|
6681
|
-
|
|
6682
6617
|
// While anything watches, <html> carries --usa-vvh (visible height) and --usa-kb (the height the keyboard covers at
|
|
6683
6618
|
// the bottom of the layout viewport).
|
|
6684
6619
|
let vpSubs = null;
|
|
@@ -6923,7 +6858,7 @@ function makePanel(Base, kind) {
|
|
|
6923
6858
|
}
|
|
6924
6859
|
function defineDrawer(tag = 'usa-drawer') {
|
|
6925
6860
|
adoptVariants();
|
|
6926
|
-
return defineElement(tag, (Base) => makePanel(Base, 'drawer')
|
|
6861
|
+
return defineElement(tag, (Base) => makePanel(Base, 'drawer'));
|
|
6927
6862
|
}
|
|
6928
6863
|
function defineBottomSheet(tag = 'usa-bottom-sheet') {
|
|
6929
6864
|
adoptVariants();
|
|
@@ -6966,11 +6901,9 @@ function defineBottomSheet(tag = 'usa-bottom-sheet') {
|
|
|
6966
6901
|
super.render(v);
|
|
6967
6902
|
}
|
|
6968
6903
|
};
|
|
6969
|
-
}
|
|
6904
|
+
});
|
|
6970
6905
|
}
|
|
6971
6906
|
|
|
6972
|
-
var css$l = "";
|
|
6973
|
-
|
|
6974
6907
|
function definePullRefresh(tag = 'usa-pull-refresh') {
|
|
6975
6908
|
adoptVariants();
|
|
6976
6909
|
return defineElement(tag, (Base) => class UsaPullRefresh extends Base {
|
|
@@ -7072,11 +7005,9 @@ function definePullRefresh(tag = 'usa-pull-refresh') {
|
|
|
7072
7005
|
Promise.resolve(fn(ev)).then(done, done);
|
|
7073
7006
|
});
|
|
7074
7007
|
}
|
|
7075
|
-
}
|
|
7008
|
+
});
|
|
7076
7009
|
}
|
|
7077
7010
|
|
|
7078
|
-
var css$k = "";
|
|
7079
|
-
|
|
7080
7011
|
function defineFab(tag = 'usa-fab') {
|
|
7081
7012
|
// contract-exempt: attr-unobserved(open) — state reflected by the element itself (set the property instead); observing it would re-mount on every change
|
|
7082
7013
|
adoptVariants();
|
|
@@ -7162,11 +7093,9 @@ function defineFab(tag = 'usa-fab') {
|
|
|
7162
7093
|
this.apply(true);
|
|
7163
7094
|
this.emit('toggle', { open: next });
|
|
7164
7095
|
}
|
|
7165
|
-
}
|
|
7096
|
+
});
|
|
7166
7097
|
}
|
|
7167
7098
|
|
|
7168
|
-
var css$j = "";
|
|
7169
|
-
|
|
7170
7099
|
function defineNavbar(tag = 'usa-navbar') {
|
|
7171
7100
|
adoptVariants();
|
|
7172
7101
|
return defineElement(tag, (Base) => class UsaNavbar extends Base {
|
|
@@ -7222,11 +7151,9 @@ function defineNavbar(tag = 'usa-navbar') {
|
|
|
7222
7151
|
this.removeAttribute('data-hidden');
|
|
7223
7152
|
this.emit('show');
|
|
7224
7153
|
}
|
|
7225
|
-
}
|
|
7154
|
+
});
|
|
7226
7155
|
}
|
|
7227
7156
|
|
|
7228
|
-
var css$i = "";
|
|
7229
|
-
|
|
7230
7157
|
function defineSlider(tag = 'usa-slider') {
|
|
7231
7158
|
adoptVariants();
|
|
7232
7159
|
return defineElement(tag, (Base) => {
|
|
@@ -7346,11 +7273,9 @@ function defineSlider(tag = 'usa-slider') {
|
|
|
7346
7273
|
}
|
|
7347
7274
|
UsaSlider.formAssociated = true;
|
|
7348
7275
|
return UsaSlider;
|
|
7349
|
-
}
|
|
7276
|
+
});
|
|
7350
7277
|
}
|
|
7351
7278
|
|
|
7352
|
-
var css$h = "";
|
|
7353
|
-
|
|
7354
7279
|
function definePopover(tag = 'usa-popover') {
|
|
7355
7280
|
// contract-exempt: attr-unobserved(open) — state reflected by the element itself (set the property instead); observing it would re-mount on every change
|
|
7356
7281
|
adoptVariants();
|
|
@@ -7413,11 +7338,9 @@ function definePopover(tag = 'usa-popover') {
|
|
|
7413
7338
|
this.render(true);
|
|
7414
7339
|
this.emit(next ? 'open' : 'close');
|
|
7415
7340
|
}
|
|
7416
|
-
}
|
|
7341
|
+
});
|
|
7417
7342
|
}
|
|
7418
7343
|
|
|
7419
|
-
var css$g = "";
|
|
7420
|
-
|
|
7421
7344
|
function defineBadge(tag = 'usa-badge') {
|
|
7422
7345
|
adoptVariants();
|
|
7423
7346
|
return defineElement(tag, (Base) => class UsaBadge extends Base {
|
|
@@ -7463,11 +7386,9 @@ function defineBadge(tag = 'usa-badge') {
|
|
|
7463
7386
|
if (bump && !empty && !this.reduced)
|
|
7464
7387
|
this.motion(el, [{ transform: 'scale(0.4)' }, { transform: 'scale(1)' }], springEasing('bouncy'));
|
|
7465
7388
|
}
|
|
7466
|
-
}
|
|
7389
|
+
});
|
|
7467
7390
|
}
|
|
7468
7391
|
|
|
7469
|
-
var css$f = "";
|
|
7470
|
-
|
|
7471
7392
|
function defineAvatarStack(tag = 'usa-avatar-stack') {
|
|
7472
7393
|
adoptVariants();
|
|
7473
7394
|
return defineElement(tag, (Base) => class UsaAvatarStack extends Base {
|
|
@@ -7497,7 +7418,7 @@ function defineAvatarStack(tag = 'usa-avatar-stack') {
|
|
|
7497
7418
|
this.append(more);
|
|
7498
7419
|
}
|
|
7499
7420
|
}
|
|
7500
|
-
}
|
|
7421
|
+
});
|
|
7501
7422
|
}
|
|
7502
7423
|
|
|
7503
7424
|
/**
|
|
@@ -7522,8 +7443,6 @@ function defineUiComponents() {
|
|
|
7522
7443
|
defineAvatarStack();
|
|
7523
7444
|
}
|
|
7524
7445
|
|
|
7525
|
-
var css$e = "";
|
|
7526
|
-
|
|
7527
7446
|
const CURSOR_MODES = ['dot', 'magnetic', 'glow'];
|
|
7528
7447
|
function defineCursor(tag = 'usa-cursor') {
|
|
7529
7448
|
return defineElement(tag, (Base) => class UsaCursor extends Base {
|
|
@@ -7618,7 +7537,7 @@ function defineCursor(tag = 'usa-cursor') {
|
|
|
7618
7537
|
this._frame = 0;
|
|
7619
7538
|
this.removeAttribute('data-active');
|
|
7620
7539
|
}
|
|
7621
|
-
}
|
|
7540
|
+
});
|
|
7622
7541
|
}
|
|
7623
7542
|
|
|
7624
7543
|
function smoothScroll(options = {}) {
|
|
@@ -7705,8 +7624,6 @@ function scrollToTarget(to, options = {}) {
|
|
|
7705
7624
|
});
|
|
7706
7625
|
}
|
|
7707
7626
|
|
|
7708
|
-
var css$d = "";
|
|
7709
|
-
|
|
7710
7627
|
function defineFullpage(tag = 'usa-fullpage') {
|
|
7711
7628
|
return defineElement(tag, (Base) => class UsaFullpage extends Base {
|
|
7712
7629
|
constructor() {
|
|
@@ -7792,11 +7709,9 @@ function defineFullpage(tag = 'usa-fullpage') {
|
|
|
7792
7709
|
prev() {
|
|
7793
7710
|
this.go(this._i - 1);
|
|
7794
7711
|
}
|
|
7795
|
-
}
|
|
7712
|
+
});
|
|
7796
7713
|
}
|
|
7797
7714
|
|
|
7798
|
-
var css$c = "";
|
|
7799
|
-
|
|
7800
7715
|
function defineLoadingBar(tag = 'usa-loading-bar') {
|
|
7801
7716
|
return defineElement(tag, (Base) => class UsaLoadingBar extends Base {
|
|
7802
7717
|
constructor() {
|
|
@@ -7859,7 +7774,7 @@ function defineLoadingBar(tag = 'usa-loading-bar') {
|
|
|
7859
7774
|
}, 300);
|
|
7860
7775
|
}, 250);
|
|
7861
7776
|
}
|
|
7862
|
-
}
|
|
7777
|
+
});
|
|
7863
7778
|
}
|
|
7864
7779
|
function bar() {
|
|
7865
7780
|
if (typeof document === 'undefined')
|
|
@@ -7889,8 +7804,6 @@ const loadingBar = {
|
|
|
7889
7804
|
},
|
|
7890
7805
|
};
|
|
7891
7806
|
|
|
7892
|
-
var css$b = "";
|
|
7893
|
-
|
|
7894
7807
|
function defineBackToTop(tag = 'usa-back-to-top') {
|
|
7895
7808
|
return defineElement(tag, (Base) => class UsaBackToTop extends Base {
|
|
7896
7809
|
constructor() {
|
|
@@ -7905,9 +7818,11 @@ function defineBackToTop(tag = 'usa-back-to-top') {
|
|
|
7905
7818
|
}
|
|
7906
7819
|
mount() {
|
|
7907
7820
|
if (!this.querySelector('button')) {
|
|
7908
|
-
this.innerHTML = `<button type="button"
|
|
7821
|
+
this.innerHTML = `<button type="button" data-usa-part><svg viewBox="0 0 36 36" aria-hidden="true"><circle cx="18" cy="18" r="16" pathLength="100"/><path d="M12 20l6-6 6 6"/></svg></button>`;
|
|
7909
7822
|
}
|
|
7910
7823
|
const btn = this.querySelector('button');
|
|
7824
|
+
if (btn.hasAttribute('data-usa-part'))
|
|
7825
|
+
btn.setAttribute('aria-label', this.str('label', 'Back to top'));
|
|
7911
7826
|
const update = () => {
|
|
7912
7827
|
this._frame = 0;
|
|
7913
7828
|
const y = window.scrollY || document.documentElement.scrollTop || 0;
|
|
@@ -7933,11 +7848,9 @@ function defineBackToTop(tag = 'usa-back-to-top') {
|
|
|
7933
7848
|
caf(this._frame);
|
|
7934
7849
|
this._frame = 0;
|
|
7935
7850
|
}
|
|
7936
|
-
}
|
|
7851
|
+
});
|
|
7937
7852
|
}
|
|
7938
7853
|
|
|
7939
|
-
var css$a = "";
|
|
7940
|
-
|
|
7941
7854
|
const AMBIENT_EFFECTS = ['particles', 'snow', 'stars', 'noise', 'gradient'];
|
|
7942
7855
|
function defineAmbient(tag = 'usa-ambient') {
|
|
7943
7856
|
return defineElement(tag, (Base) => class UsaAmbient extends Base {
|
|
@@ -8039,11 +7952,9 @@ function defineAmbient(tag = 'usa-ambient') {
|
|
|
8039
7952
|
caf(this._frame);
|
|
8040
7953
|
this._frame = 0;
|
|
8041
7954
|
}
|
|
8042
|
-
}
|
|
7955
|
+
});
|
|
8043
7956
|
}
|
|
8044
7957
|
|
|
8045
|
-
var css$9 = "";
|
|
8046
|
-
|
|
8047
7958
|
function defineSplash(tag = 'usa-splash') {
|
|
8048
7959
|
return defineElement(tag, (Base) => class UsaSplash extends Base {
|
|
8049
7960
|
constructor() {
|
|
@@ -8086,11 +7997,9 @@ function defineSplash(tag = 'usa-splash') {
|
|
|
8086
7997
|
this.hidden = true;
|
|
8087
7998
|
this.emit('done');
|
|
8088
7999
|
}
|
|
8089
|
-
}
|
|
8000
|
+
});
|
|
8090
8001
|
}
|
|
8091
8002
|
|
|
8092
|
-
var css$8 = "";
|
|
8093
|
-
|
|
8094
8003
|
function defineAutoSkeleton(tag = 'usa-auto-skeleton') {
|
|
8095
8004
|
return defineElement(tag, (Base) => class UsaAutoSkeleton extends Base {
|
|
8096
8005
|
static get observedAttributes() {
|
|
@@ -8117,11 +8026,9 @@ function defineAutoSkeleton(tag = 'usa-auto-skeleton') {
|
|
|
8117
8026
|
this.motion(this, [{ opacity: 0.4 }, { opacity: 1 }], { duration: 300, easing: 'ease-out' });
|
|
8118
8027
|
}
|
|
8119
8028
|
}
|
|
8120
|
-
}
|
|
8029
|
+
});
|
|
8121
8030
|
}
|
|
8122
8031
|
|
|
8123
|
-
var css$7 = "";
|
|
8124
|
-
|
|
8125
8032
|
const INTENSITIES = ['low', 'normal', 'high'];
|
|
8126
8033
|
const LEVELS = ['off', 'low', 'normal', 'high'];
|
|
8127
8034
|
const KEY$1 = 'usa:motion';
|
|
@@ -8225,11 +8132,9 @@ function defineMotionSwitch(tag = 'usa-motion-switch') {
|
|
|
8225
8132
|
b.tabIndex = on ? 0 : -1;
|
|
8226
8133
|
});
|
|
8227
8134
|
}
|
|
8228
|
-
}
|
|
8135
|
+
});
|
|
8229
8136
|
}
|
|
8230
8137
|
|
|
8231
|
-
var css$6 = "";
|
|
8232
|
-
|
|
8233
8138
|
/**
|
|
8234
8139
|
* Page & app-wide transitions (v2.7), built on the View Transitions API
|
|
8235
8140
|
* (Chromium: Chrome, Edge, Electron, WebView2) with graceful fallbacks.
|
|
@@ -8272,7 +8177,7 @@ async function pageTransition(update, options = {}) {
|
|
|
8272
8177
|
await update();
|
|
8273
8178
|
return;
|
|
8274
8179
|
}
|
|
8275
|
-
adoptStyles('page-transitions', css
|
|
8180
|
+
adoptStyles('page-transitions', css);
|
|
8276
8181
|
trackPointer();
|
|
8277
8182
|
const effect = options.effect || 'fade';
|
|
8278
8183
|
if (prefersReducedMotion() || !supportsViewTransitions()) {
|
|
@@ -8297,7 +8202,7 @@ async function pageTransition(update, options = {}) {
|
|
|
8297
8202
|
function enableMpaTransitions(effect = 'fade', duration = 450) {
|
|
8298
8203
|
if (typeof document === 'undefined')
|
|
8299
8204
|
return;
|
|
8300
|
-
adoptStyles('page-transitions', css
|
|
8205
|
+
adoptStyles('page-transitions', css);
|
|
8301
8206
|
adoptStyles('mpa-transitions', prefersReducedMotion() ? '' : '@view-transition{navigation:auto}');
|
|
8302
8207
|
const d = document.documentElement;
|
|
8303
8208
|
d.setAttribute('data-usa-pt', effect);
|
|
@@ -8331,8 +8236,6 @@ function definePageComponents() {
|
|
|
8331
8236
|
defineMotionSwitch();
|
|
8332
8237
|
}
|
|
8333
8238
|
|
|
8334
|
-
var css$5 = "";
|
|
8335
|
-
|
|
8336
8239
|
function defineTimeline(tag = 'usa-timeline') {
|
|
8337
8240
|
return defineElement(tag, (Base) => class UsaTimeline extends Base {
|
|
8338
8241
|
constructor() {
|
|
@@ -8413,7 +8316,7 @@ function defineTimeline(tag = 'usa-timeline') {
|
|
|
8413
8316
|
unmount() {
|
|
8414
8317
|
this._tl = null;
|
|
8415
8318
|
}
|
|
8416
|
-
}
|
|
8319
|
+
});
|
|
8417
8320
|
}
|
|
8418
8321
|
|
|
8419
8322
|
/**
|
|
@@ -8604,8 +8507,6 @@ function gesture(el, h, o = {}) {
|
|
|
8604
8507
|
};
|
|
8605
8508
|
}
|
|
8606
8509
|
|
|
8607
|
-
var css$4 = "";
|
|
8608
|
-
|
|
8609
8510
|
function defineSwipeable(tag = 'usa-swipeable') {
|
|
8610
8511
|
return defineElement(tag, (Base) => class UsaSwipeable extends Base {
|
|
8611
8512
|
constructor() {
|
|
@@ -8696,7 +8597,7 @@ function defineSwipeable(tag = 'usa-swipeable') {
|
|
|
8696
8597
|
unmount() {
|
|
8697
8598
|
this._s?.stop();
|
|
8698
8599
|
}
|
|
8699
|
-
}
|
|
8600
|
+
});
|
|
8700
8601
|
}
|
|
8701
8602
|
|
|
8702
8603
|
function definePinchZoom(tag = 'usa-pinch-zoom') {
|
|
@@ -8788,7 +8689,7 @@ function definePinchZoom(tag = 'usa-pinch-zoom') {
|
|
|
8788
8689
|
unmount() {
|
|
8789
8690
|
[this._k, this._x, this._y].forEach((s) => s?.stop());
|
|
8790
8691
|
}
|
|
8791
|
-
}
|
|
8692
|
+
});
|
|
8792
8693
|
}
|
|
8793
8694
|
|
|
8794
8695
|
/**
|
|
@@ -8899,8 +8800,6 @@ function drawLines(root, o = {}) {
|
|
|
8899
8800
|
};
|
|
8900
8801
|
}
|
|
8901
8802
|
|
|
8902
|
-
var css$3 = "";
|
|
8903
|
-
|
|
8904
8803
|
function defineDraw(tag = 'usa-draw') {
|
|
8905
8804
|
return defineElement(tag, (Base) => class UsaDraw extends Base {
|
|
8906
8805
|
constructor() {
|
|
@@ -8974,7 +8873,7 @@ function defineDraw(tag = 'usa-draw') {
|
|
|
8974
8873
|
}
|
|
8975
8874
|
this.onCleanup(() => caf(this._id));
|
|
8976
8875
|
}
|
|
8977
|
-
}
|
|
8876
|
+
});
|
|
8978
8877
|
}
|
|
8979
8878
|
|
|
8980
8879
|
function defineMorph(tag = 'usa-morph') {
|
|
@@ -9042,7 +8941,7 @@ function defineMorph(tag = 'usa-morph') {
|
|
|
9042
8941
|
});
|
|
9043
8942
|
}
|
|
9044
8943
|
}
|
|
9045
|
-
}
|
|
8944
|
+
});
|
|
9046
8945
|
}
|
|
9047
8946
|
|
|
9048
8947
|
/** Clip-path start / end frames for each reveal shape. */
|
|
@@ -9115,7 +9014,7 @@ function defineMaskReveal(tag = 'usa-mask-reveal') {
|
|
|
9115
9014
|
}, { threshold: 0.25 });
|
|
9116
9015
|
}
|
|
9117
9016
|
}
|
|
9118
|
-
}
|
|
9017
|
+
});
|
|
9119
9018
|
}
|
|
9120
9019
|
|
|
9121
9020
|
/** Built-in animated icons (24×24 strokes) and the motion each one plays. */
|
|
@@ -9163,7 +9062,7 @@ function defineAnimIcon(tag = 'usa-anim-icon') {
|
|
|
9163
9062
|
this.listen(this, 'focusin', () => this.play());
|
|
9164
9063
|
}
|
|
9165
9064
|
}
|
|
9166
|
-
}
|
|
9065
|
+
});
|
|
9167
9066
|
}
|
|
9168
9067
|
|
|
9169
9068
|
/**
|
|
@@ -9423,8 +9322,6 @@ function watchPowerSaver(cb) {
|
|
|
9423
9322
|
};
|
|
9424
9323
|
}
|
|
9425
9324
|
|
|
9426
|
-
var css$2 = "";
|
|
9427
|
-
|
|
9428
9325
|
function make(kind) {
|
|
9429
9326
|
return (Base) => class extends Base {
|
|
9430
9327
|
constructor() {
|
|
@@ -9580,21 +9477,21 @@ function make(kind) {
|
|
|
9580
9477
|
* `u_mouse`, `v_uv`); `speed`. Without WebGL: the element's CSS background.
|
|
9581
9478
|
*/
|
|
9582
9479
|
function defineShader(tag = 'usa-shader') {
|
|
9583
|
-
return defineElement(tag, make('shader')
|
|
9480
|
+
return defineElement(tag, make('shader'));
|
|
9584
9481
|
}
|
|
9585
9482
|
/**
|
|
9586
9483
|
* `<usa-distort>` — hover distortion + RGB split on the `<img>` inside,
|
|
9587
9484
|
* following the pointer. Without WebGL / CORS: a gentle CSS zoom.
|
|
9588
9485
|
*/
|
|
9589
9486
|
function defineDistort(tag = 'usa-distort') {
|
|
9590
|
-
return defineElement(tag, make('distort')
|
|
9487
|
+
return defineElement(tag, make('distort'));
|
|
9591
9488
|
}
|
|
9592
9489
|
/**
|
|
9593
9490
|
* `<usa-liquid>` — liquid image: clicks / taps send ripples through the
|
|
9594
9491
|
* `<img>` inside, hover adds a gentle wobble; `strength`. Fallback: plain image.
|
|
9595
9492
|
*/
|
|
9596
9493
|
function defineLiquid(tag = 'usa-liquid') {
|
|
9597
|
-
return defineElement(tag, make('liquid')
|
|
9494
|
+
return defineElement(tag, make('liquid'));
|
|
9598
9495
|
}
|
|
9599
9496
|
/**
|
|
9600
9497
|
* `<usa-post-fx effects="vignette grain crt" intensity="0.6">` — GPU
|
|
@@ -9604,7 +9501,7 @@ function defineLiquid(tag = 'usa-liquid') {
|
|
|
9604
9501
|
* Fallback: the image with an approximate CSS filter.
|
|
9605
9502
|
*/
|
|
9606
9503
|
function definePostFx(tag = 'usa-post-fx') {
|
|
9607
|
-
return defineElement(tag, make('post')
|
|
9504
|
+
return defineElement(tag, make('post'));
|
|
9608
9505
|
}
|
|
9609
9506
|
|
|
9610
9507
|
/**
|
|
@@ -9621,8 +9518,6 @@ function defineWebglComponents() {
|
|
|
9621
9518
|
definePostFx();
|
|
9622
9519
|
}
|
|
9623
9520
|
|
|
9624
|
-
var css$1 = "";
|
|
9625
|
-
|
|
9626
9521
|
const FACES = ['front', 'right', 'back', 'left', 'top', 'bottom'];
|
|
9627
9522
|
/** Rotation (deg) that brings each face to the front. */
|
|
9628
9523
|
const ROT = { front: [0, 0], right: [0, -90], back: [0, -180], left: [0, 90], top: [-90, 0], bottom: [90, 0] };
|
|
@@ -9724,7 +9619,7 @@ function defineCube(tag = 'usa-cube') {
|
|
|
9724
9619
|
this._rx?.stop();
|
|
9725
9620
|
this._ry?.stop();
|
|
9726
9621
|
}
|
|
9727
|
-
}
|
|
9622
|
+
});
|
|
9728
9623
|
}
|
|
9729
9624
|
|
|
9730
9625
|
/** Map a DeviceOrientation reading (beta/gamma degrees) to -1…1 tilt around a resting pose (pure). */
|
|
@@ -9842,7 +9737,7 @@ function defineDepth(tag = 'usa-depth') {
|
|
|
9842
9737
|
this._t = { x: 0, y: 0 };
|
|
9843
9738
|
this.querySelectorAll('[data-depth]').forEach((el) => (el.style.transform = ''));
|
|
9844
9739
|
}
|
|
9845
|
-
}
|
|
9740
|
+
});
|
|
9846
9741
|
}
|
|
9847
9742
|
|
|
9848
9743
|
/**
|
|
@@ -10015,8 +9910,6 @@ async function sharedTransition(update, root = document, o = {}) {
|
|
|
10015
9910
|
await Promise.all(anims);
|
|
10016
9911
|
}
|
|
10017
9912
|
|
|
10018
|
-
var css = "";
|
|
10019
|
-
|
|
10020
9913
|
function defineAutoAnimate(tag = 'usa-auto-animate') {
|
|
10021
9914
|
return defineElement(tag, (Base) => class UsaAutoAnimate extends Base {
|
|
10022
9915
|
constructor() {
|
|
@@ -10036,7 +9929,7 @@ function defineAutoAnimate(tag = 'usa-auto-animate') {
|
|
|
10036
9929
|
const c = (this._c = autoAnimate(this, { duration: this.num('duration', 300), scale: !this.flag('no-scale') }));
|
|
10037
9930
|
this.onCleanup(() => c.stop());
|
|
10038
9931
|
}
|
|
10039
|
-
}
|
|
9932
|
+
});
|
|
10040
9933
|
}
|
|
10041
9934
|
function defineMasonry(tag = 'usa-masonry') {
|
|
10042
9935
|
return defineElement(tag, (Base) => class UsaMasonry extends Base {
|
|
@@ -10091,7 +9984,7 @@ function defineMasonry(tag = 'usa-masonry') {
|
|
|
10091
9984
|
this.style.height = '';
|
|
10092
9985
|
Array.from(this.children).forEach((c) => (c.style.transform = '', c.style.width = ''));
|
|
10093
9986
|
}
|
|
10094
|
-
}
|
|
9987
|
+
});
|
|
10095
9988
|
}
|
|
10096
9989
|
|
|
10097
9990
|
/**
|
|
@@ -10558,6 +10451,133 @@ function defineFxComponents() {
|
|
|
10558
10451
|
defineFx();
|
|
10559
10452
|
}
|
|
10560
10453
|
|
|
10454
|
+
/**
|
|
10455
|
+
* motionary/components/mo — the 17.0 `<mo-*>` names.
|
|
10456
|
+
*
|
|
10457
|
+
* After `defineMoAliases()` every default `<usa-*>` element is also registered as `<mo-*>` (`<usa-switch>` →
|
|
10458
|
+
* `<mo-switch>`): a subclass, so attributes, properties and `usa:*` events are the same. The component styles are copied
|
|
10459
|
+
* with renamed tag selectors the first time a `<mo-*>` element connects, so pages that never use `mo-*` pay nothing.
|
|
10460
|
+
*
|
|
10461
|
+
* The no-build bundles (`components.umd.js`, `widgets.umd.js`) call it before they register anything. With ESM, call it
|
|
10462
|
+
* once, ideally before you define components; `usa-*` elements defined earlier (the default component set) and `mo-*`
|
|
10463
|
+
* elements already on the page are picked up too. Kept out of the component base so `usa-*` pages keep their size.
|
|
10464
|
+
*
|
|
10465
|
+
* ```ts
|
|
10466
|
+
* import { defineMoAliases } from 'motionary/components/mo';
|
|
10467
|
+
* import { defineComponents } from 'motionary/components';
|
|
10468
|
+
* defineMoAliases();
|
|
10469
|
+
* defineComponents(); // <mo-card>, <mo-tabs>, … and <usa-*> both work
|
|
10470
|
+
* ```
|
|
10471
|
+
*/
|
|
10472
|
+
/** The `mo-*` alias of a default `usa-*` tag (`usa-switch` → `mo-switch`), or `null` for any other tag. */
|
|
10473
|
+
const aliasTag = (tag) => (/^usa-[a-z]/.test(tag) ? 'mo-' + tag.slice(4) : null);
|
|
10474
|
+
// Keep strings, comments, attribute selectors and escaped identifiers opaque. Braces / semicolons inside them
|
|
10475
|
+
// are content, not rule boundaries (and an attribute value that happens to name a component must stay unchanged).
|
|
10476
|
+
const CSS_TOKENS = /\/\*[\s\S]*?\*\/|"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\])*'|\[(?:\\[\s\S]|"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\])*'|[^\]\\])*\]|(?:\\[\s\S]|[\w-]|[^\x00-\x7f])+|[^\w]/g;
|
|
10477
|
+
/**
|
|
10478
|
+
* `usa-…` → `mo-…` in selectors only (the text in front of each `{` that is not an at-rule); declarations, at-rule
|
|
10479
|
+
* preludes such as `@keyframes usa-spin`, classes, attributes and custom properties are untouched.
|
|
10480
|
+
*/
|
|
10481
|
+
const aliasCss = (text) => {
|
|
10482
|
+
let out = '', raw = '', renamed = '', first = '', previous = '';
|
|
10483
|
+
for (const [token] of text.matchAll(CSS_TOKENS)) {
|
|
10484
|
+
if (token === '{' || token === '}' || token === ';') {
|
|
10485
|
+
out += (token === '{' && first !== '@' ? renamed : raw) + token;
|
|
10486
|
+
raw = renamed = first = previous = '';
|
|
10487
|
+
}
|
|
10488
|
+
else {
|
|
10489
|
+
raw += token;
|
|
10490
|
+
const comment = token.startsWith('/*');
|
|
10491
|
+
if (!first && !comment && token.trim())
|
|
10492
|
+
first = token;
|
|
10493
|
+
renamed += /^usa-[a-z]/.test(token) && previous !== '.' && previous !== '#' && previous !== ':'
|
|
10494
|
+
? 'mo-' + token.slice(4) : token;
|
|
10495
|
+
if (!comment)
|
|
10496
|
+
previous = token;
|
|
10497
|
+
}
|
|
10498
|
+
}
|
|
10499
|
+
return out + raw;
|
|
10500
|
+
};
|
|
10501
|
+
let started = false;
|
|
10502
|
+
let active = false;
|
|
10503
|
+
let n = 0;
|
|
10504
|
+
const seen = /*#__PURE__*/ new WeakSet();
|
|
10505
|
+
/** Copy the Motionary stylesheets added since the last look (and the user's adopted sheets) with mo-* selectors. */
|
|
10506
|
+
function scan() {
|
|
10507
|
+
const d = document;
|
|
10508
|
+
const adopted = d.adoptedStyleSheets || [];
|
|
10509
|
+
for (const s of [...Array.from(d.styleSheets), ...adopted]) {
|
|
10510
|
+
const o = s.ownerNode;
|
|
10511
|
+
if (seen.has(s) || (o && !o.matches('[data-usa],[data-usa-css]')))
|
|
10512
|
+
continue;
|
|
10513
|
+
let css;
|
|
10514
|
+
try {
|
|
10515
|
+
css = Array.from(s.cssRules, (r) => r.cssText).join('\n');
|
|
10516
|
+
}
|
|
10517
|
+
catch {
|
|
10518
|
+
continue; // not loaded yet, or a cross-origin file without CORS
|
|
10519
|
+
}
|
|
10520
|
+
if (!css)
|
|
10521
|
+
continue; // a pending link may expose an empty rule list before its load event
|
|
10522
|
+
seen.add(s);
|
|
10523
|
+
const a = aliasCss(css);
|
|
10524
|
+
if (a !== css)
|
|
10525
|
+
adoptStyles('mo:' + n++, a);
|
|
10526
|
+
}
|
|
10527
|
+
}
|
|
10528
|
+
function alias(tag, ctor) {
|
|
10529
|
+
const a = aliasTag(tag);
|
|
10530
|
+
if (!a || customElements.get(a))
|
|
10531
|
+
return;
|
|
10532
|
+
const C = ctor;
|
|
10533
|
+
class Alias extends C {
|
|
10534
|
+
connectedCallback() {
|
|
10535
|
+
const r = super.connectedCallback?.();
|
|
10536
|
+
if (!active) {
|
|
10537
|
+
active = true;
|
|
10538
|
+
// A retry may be requested by a usa-* sibling after the mo-* element has already mounted.
|
|
10539
|
+
document.addEventListener('load', (event) => {
|
|
10540
|
+
if (event.target instanceof HTMLLinkElement && event.target.hasAttribute('data-usa-css'))
|
|
10541
|
+
scan();
|
|
10542
|
+
}, true);
|
|
10543
|
+
}
|
|
10544
|
+
scan();
|
|
10545
|
+
return r;
|
|
10546
|
+
}
|
|
10547
|
+
}
|
|
10548
|
+
try {
|
|
10549
|
+
customElements.define(a, Alias);
|
|
10550
|
+
}
|
|
10551
|
+
catch {
|
|
10552
|
+
/* the name is taken by another library */
|
|
10553
|
+
}
|
|
10554
|
+
}
|
|
10555
|
+
/**
|
|
10556
|
+
* Turn on the `<mo-*>` names: every `usa-*` element defined from now on gets its `mo-*` alias, and so do the default
|
|
10557
|
+
* components already defined and any `usa-*` definition behind a `<mo-*>` element already on the page. Idempotent.
|
|
10558
|
+
*/
|
|
10559
|
+
function defineMoAliases() {
|
|
10560
|
+
if (!canDefine() || started)
|
|
10561
|
+
return;
|
|
10562
|
+
started = true;
|
|
10563
|
+
const reg = customElements;
|
|
10564
|
+
const define = reg.define;
|
|
10565
|
+
reg.define = function (name, ctor, options) {
|
|
10566
|
+
define.call(this, name, ctor, options);
|
|
10567
|
+
alias(name, ctor);
|
|
10568
|
+
};
|
|
10569
|
+
const tags = Object.values(COMPONENT_CATEGORIES).flat();
|
|
10570
|
+
if (typeof document !== 'undefined')
|
|
10571
|
+
document.querySelectorAll('*').forEach((e) => e.localName.startsWith('mo-') && tags.push('usa-' + e.localName.slice(3)));
|
|
10572
|
+
for (const t of tags) {
|
|
10573
|
+
const c = reg.get(t);
|
|
10574
|
+
if (c)
|
|
10575
|
+
alias(t, c);
|
|
10576
|
+
}
|
|
10577
|
+
if (active)
|
|
10578
|
+
scan();
|
|
10579
|
+
}
|
|
10580
|
+
|
|
10561
10581
|
/**
|
|
10562
10582
|
* 4.9 — the 5.0 modern-browser baseline. `baselineReport()` lists which
|
|
10563
10583
|
* required / progressive features this browser has; `warnBaseline()` logs
|
|
@@ -11013,10 +11033,12 @@ const BY_CATEGORY = {
|
|
|
11013
11033
|
fx: defineFxComponents,
|
|
11014
11034
|
};
|
|
11015
11035
|
/**
|
|
11016
|
-
* Register every
|
|
11036
|
+
* Register every component (or only the given categories). 17.3: `<mo-*>` is the default name — this turns on the
|
|
11037
|
+
* `mo-*` names first (`defineMoAliases()`); the `<usa-*>` names stay registered as deprecated aliases.
|
|
11017
11038
|
* Safe to call more than once and on the server (no-op without DOM).
|
|
11018
11039
|
*/
|
|
11019
11040
|
function defineComponents(categories) {
|
|
11041
|
+
defineMoAliases();
|
|
11020
11042
|
if (canDefine())
|
|
11021
11043
|
adoptVariants();
|
|
11022
11044
|
(categories || Object.keys(BY_CATEGORY)).forEach((c) => BY_CATEGORY[c]?.());
|
|
@@ -11038,5 +11060,5 @@ function defineComponents(categories) {
|
|
|
11038
11060
|
const STYLE_BASE = new URL('../', import.meta.url).href;
|
|
11039
11061
|
onDemandStyles(STYLE_BASE);
|
|
11040
11062
|
|
|
11041
|
-
export { ALL_TAGS, AMBIENT_EFFECTS, ANIM_ICONS, BRIDGE_PROTOCOL_VERSION, BUILTIN_EFFECTS, BUTTON_DEFORMS, CARD_EFFECTS, CLICK_EFFECTS, COMPONENT_CATEGORIES, CURSOR_MODES, EFFECT_KINDS, EFFECT_TRIGGERS, GL_FALLBACKS, JOINING_SCRIPT, LIVE_REGION_IDS, MASK_SHAPES, MORPH_ICONS, MOTION_SCALE, MOTION_SENSITIVITY, MOTION_SENSITIVITY_LEVELS, MOTION_TOKENS, PACKS, PACK_PRIMITIVES, PAGE_EFFECTS, PARTICLE_PRESETS, POST_EFFECTS, REVEAL_EFFECTS, SENSITIVITY_CSS, SHADERS, SPINNER_VARIANTS, SPRING_EFFECTS, SPRING_PRESETS, STATIC_ALTERNATIVES, STYLE_BASE, TIMELINE_PRESETS, VARIANTS, activeAnimations, adaptKeyframes, adoptVariants, animateWithMotion, animationBudget, announce, applyMotionTokens, applyNativeSettings, applyPack, auditMotionA11y, autoAnimate, autoDegrade, baselineReport, bindEffect, categoryOf, configureComponents, connectNativeShell, countUp, createSpring, defineAccordion, defineAcrylic, defineAmbient, defineAnimIcon, defineAurora, defineAutoAnimate, defineAutoSkeleton, defineAvatarStack, defineBackToTop, defineBackgroundComponents, defineBadge, defineBlobs, defineBottomSheet, defineButton, defineCard, defineCardComponents, defineCardStack, defineCarousel3d, defineCheck, defineCheckbox, defineClick, defineClickComponents, defineComponents, defineCounter, defineCube, defineCursor, defineDepth, defineDepthComponents, defineDialog, defineDistort, defineDotNetwork, defineDoubleTap, defineDraggable, defineDraw, defineDrawer, defineFab, defineFeedbackComponents, defineFullpage, defineFx, defineFxComponents, defineGestureComponents, defineGlitch, defineGradientText, defineGrain, defineGridGlow, defineHandwriting, defineHold, defineIconMorph, defineInteractionComponents, defineLayoutComponents, defineLike, defineLiquid, defineLoadingBar, defineMagnetic, defineMarquee, defineMaskReveal, defineMasonry, defineMorph, defineMotionSwitch, defineNavbar, defineOverscroll, definePack, definePacksComponents, definePageComponents, defineParticles, definePhysicsComponents, definePinchZoom, definePopover, definePostFx, definePress, defineProgress, definePullRefresh, defineReveal, defineRevealComponents, defineRipple, defineScramble, defineScrollHighlight, defineScrollProgress, defineScrolly, defineShader, defineShimmerText, defineSkeleton, defineSlider, defineSpinner, defineSplash, defineSplitText, defineSpotlight, defineSpring, defineStagger, defineStickyStack, defineSvgComponents, defineSwipeable, defineTabs, defineTextComponents, defineTextRotate, defineTilt, defineTimeline, defineTimelineComponents, defineToaster, defineTransitionComponents, defineTypewriter, defineUiComponents, defineViewSwitch, defineWaterRipple, defineWaveText, defineWebglComponents, detectNativeHost, deviceTilt, drawLines, easeOutExpo, enableMpaTransitions, exportDesignTokens, flip, flipFrames, fluentPreset, flyToCart, fragmentSource, gesture, getEffect, getMotionIntensity, getMotionLevel, getMotionSensitivity, getMotionTokens, glFallbackCss, glGovernor, glQuad, graphemes, haptic, hasEffect, importDesignTokens, importMotionTokens, interpolatePath, isTrustedMessage, linearEasing, listEffects, liveRegion, loadCategoryStyles, loadedStyles, loadingBar, masonryLayout, mergeMotionTokens, morphPath, morphTo, motionAllowed, motionScale, motionToken, motionTokensToCss, motionTokensToJSON, motionTokensToVars, motionVar, onDemandStyles, onFrame, orientationToTilt, pageTransition, parseDuration, parseEasing, parseNativeSettings, pathsCompatible, pinchScale, playEffect, postFxShader, postToNative, prefersReducedMotion, projectInertia, readScrollProgress, registerBuiltinEffects, registerEffect, registerEffects, requestOrientationPermission, resolveDurationToken, resolveEasingToken, resolvePosition, resolveSpring, resolveTokenAliases, restoreMotionIntensity, restoreMotionSensitivity, revealKeyframes, rubberBand, schedulerStats, scrambleFrame, scrollToTarget, setAnimationBudget, setFrameBudget, setMotionIntensity, setMotionLevel, setMotionSensitivity, setVariant, sharedTransition, smoothScroll, snapTo, splitOrder, splitText, splitTimeline, words as splitWords, spring, springEasing, springEffectKeyframes, springSamples, staticAlternative, stepSpring, supportsLinearEasing, supportsNativeScrub, supportsOrientation, supportsViewTransitions, supportsWebGL, swipeDirection, themeTransition, timeline, toast, validateDesignTokens, viewTransition, warnBaseline, watchPowerSaver, withoutDeprecations };
|
|
11042
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
11063
|
+
export { ALL_TAGS, AMBIENT_EFFECTS, ANIM_ICONS, BRIDGE_PROTOCOL_VERSION, BUILTIN_EFFECTS, BUTTON_DEFORMS, CARD_EFFECTS, CLICK_EFFECTS, COMPONENT_CATEGORIES, CURSOR_MODES, EFFECT_KINDS, EFFECT_TRIGGERS, GL_FALLBACKS, JOINING_SCRIPT, LIVE_REGION_IDS, MASK_SHAPES, MORPH_ICONS, MOTION_SCALE, MOTION_SENSITIVITY, MOTION_SENSITIVITY_LEVELS, MOTION_TOKENS, PACKS, PACK_PRIMITIVES, PAGE_EFFECTS, PARTICLE_PRESETS, POST_EFFECTS, REVEAL_EFFECTS, SENSITIVITY_CSS, SHADERS, SPINNER_VARIANTS, SPRING_EFFECTS, SPRING_PRESETS, STATIC_ALTERNATIVES, STYLE_BASE, TIMELINE_PRESETS, VARIANTS, activeAnimations, adaptKeyframes, adoptVariants, animateWithMotion, animationBudget, announce, applyMotionTokens, applyNativeSettings, applyPack, auditMotionA11y, autoAnimate, autoDegrade, baselineReport, bindEffect, categoryForTag as categoryOf, configureComponents, connectNativeShell, countUp, createSpring, defineAccordion, defineAcrylic, defineAmbient, defineAnimIcon, defineAurora, defineAutoAnimate, defineAutoSkeleton, defineAvatarStack, defineBackToTop, defineBackgroundComponents, defineBadge, defineBlobs, defineBottomSheet, defineButton, defineCard, defineCardComponents, defineCardStack, defineCarousel3d, defineCheck, defineCheckbox, defineClick, defineClickComponents, defineComponents, defineCounter, defineCube, defineCursor, defineDepth, defineDepthComponents, defineDialog, defineDistort, defineDotNetwork, defineDoubleTap, defineDraggable, defineDraw, defineDrawer, defineFab, defineFeedbackComponents, defineFullpage, defineFx, defineFxComponents, defineGestureComponents, defineGlitch, defineGradientText, defineGrain, defineGridGlow, defineHandwriting, defineHold, defineIconMorph, defineInteractionComponents, defineLayoutComponents, defineLike, defineLiquid, defineLoadingBar, defineMagnetic, defineMarquee, defineMaskReveal, defineMasonry, defineMorph, defineMotionSwitch, defineNavbar, defineOverscroll, definePack, definePacksComponents, definePageComponents, defineParticles, definePhysicsComponents, definePinchZoom, definePopover, definePostFx, definePress, defineProgress, definePullRefresh, defineReveal, defineRevealComponents, defineRipple, defineScramble, defineScrollHighlight, defineScrollProgress, defineScrolly, defineShader, defineShimmerText, defineSkeleton, defineSlider, defineSpinner, defineSplash, defineSplitText, defineSpotlight, defineSpring, defineStagger, defineStickyStack, defineSvgComponents, defineSwipeable, defineTabs, defineTextComponents, defineTextRotate, defineTilt, defineTimeline, defineTimelineComponents, defineToaster, defineTransitionComponents, defineTypewriter, defineUiComponents, defineViewSwitch, defineWaterRipple, defineWaveText, defineWebglComponents, detectNativeHost, deviceTilt, drawLines, easeOutExpo, enableMpaTransitions, exportDesignTokens, flip, flipFrames, fluentPreset, flyToCart, fragmentSource, gesture, getEffect, getMotionIntensity, getMotionLevel, getMotionSensitivity, getMotionTokens, glFallbackCss, glGovernor, glQuad, graphemes, haptic, hasEffect, importDesignTokens, importMotionTokens, interpolatePath, isTrustedMessage, linearEasing, listEffects, liveRegion, loadCategoryStyles, loadedStyles, loadingBar, masonryLayout, mergeMotionTokens, morphPath, morphTo, motionAllowed, motionScale, motionToken, motionTokensToCss, motionTokensToJSON, motionTokensToVars, motionVar, onDemandStyles, onFrame, orientationToTilt, pageTransition, parseDuration, parseEasing, parseNativeSettings, pathsCompatible, pinchScale, playEffect, postFxShader, postToNative, prefersReducedMotion, projectInertia, readScrollProgress, registerBuiltinEffects, registerEffect, registerEffects, requestOrientationPermission, resolveDurationToken, resolveEasingToken, resolvePosition, resolveSpring, resolveTokenAliases, restoreMotionIntensity, restoreMotionSensitivity, revealKeyframes, rubberBand, schedulerStats, scrambleFrame, scrollToTarget, setAnimationBudget, setFrameBudget, setMotionIntensity, setMotionLevel, setMotionSensitivity, setVariant, sharedTransition, smoothScroll, snapTo, splitOrder, splitText, splitTimeline, words as splitWords, spring, springEasing, springEffectKeyframes, springSamples, staticAlternative, stepSpring, supportsLinearEasing, supportsNativeScrub, supportsOrientation, supportsViewTransitions, supportsWebGL, swipeDirection, themeTransition, timeline, toast, validateDesignTokens, viewTransition, warnBaseline, watchPowerSaver, withoutDeprecations };
|
|
11064
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.3.0/dist/components/lite.js.map
|