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/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as resolveTargets, h as hasDOM, s as supportsObserver, g as getScrollProgress, d as prefersReducedMotion, c as createScrollAnimate } from './chunks/core-Dj6iomdc.js';
|
|
2
2
|
export { e as supportsScrollTimeline } from './chunks/core-Dj6iomdc.js';
|
|
3
3
|
export { s as staggerChildren } from './chunks/stagger-B9sKPwQB.js';
|
|
4
|
-
export { T as TIMELINE_PRESETS, r as resolvePosition, s as supportsNativeScrub, t as timeline } from './chunks/core-
|
|
4
|
+
export { T as TIMELINE_PRESETS, r as resolvePosition, s as supportsNativeScrub, t as timeline } from './chunks/core-cXxctm3i.js';
|
|
5
5
|
export { E as EASING_MAP, P as PRESETS, c as registerPresets, a as resolveEasing, r as resolvePreset, b as reversePreset } from './chunks/presets-BYBVJVeP.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -126,4 +126,4 @@ function parallax(target, options = {}) {
|
|
|
126
126
|
const ScrollAnimate = /* @__PURE__ */ createScrollAnimate();
|
|
127
127
|
|
|
128
128
|
export { createScrollAnimate, ScrollAnimate as default, getScrollProgress, parallax };
|
|
129
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
129
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.3.0/dist/index.js.map
|
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ScrollAnimate={})}(this,function(e){"use strict";const t=(e=>{const t=globalThis,n=Symbol.for("use-scroll-animate.presets");return t[n]=Object.assign(t[n]||{},e)})({"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-in-up":{from:{opacity:0,transform:"translateY(40px)"},to:{opacity:1,transform:"translateY(0px)"}},"fade-in-down":{from:{opacity:0,transform:"translateY(-40px)"},to:{opacity:1,transform:"translateY(0px)"}},"fade-in-left":{from:{opacity:0,transform:"translateX(-40px)"},to:{opacity:1,transform:"translateX(0px)"}},"fade-in-right":{from:{opacity:0,transform:"translateX(40px)"},to:{opacity:1,transform:"translateX(0px)"}},"zoom-in":{from:{opacity:0,transform:"scale(0.8)"},to:{opacity:1,transform:"scale(1)"}},"zoom-out":{from:{opacity:0,transform:"scale(1.2)"},to:{opacity:1,transform:"scale(1)"}},"flip-x":{from:{opacity:0,transform:"rotateX(-90deg)"},to:{opacity:1,transform:"rotateX(0deg)"}},"flip-y":{from:{opacity:0,transform:"rotateY(-90deg)"},to:{opacity:1,transform:"rotateY(0deg)"}},"slide-up":{from:{transform:"translateY(100%)"},to:{transform:"translateY(0px)"}},"slide-down":{from:{transform:"translateY(-100%)"},to:{transform:"translateY(0px)"}},"slide-left":{from:{transform:"translateX(-100%)"},to:{transform:"translateX(0px)"}},"slide-right":{from:{transform:"translateX(100%)"},to:{transform:"translateX(0px)"}},bounce:{from:{opacity:0,transform:"translateY(-60px)"},to:{opacity:1,transform:"translateY(0px)"}},"rotate-in":{from:{opacity:0,transform:"rotate(-180deg) scale(0.5)"},to:{opacity:1,transform:"rotate(0deg) scale(1)"}},"blur-in":{from:{opacity:0,filter:"blur(12px)"},to:{opacity:1,filter:"blur(0px)"}},"skew-in":{from:{opacity:0,transform:"skewX(20deg) translateX(30px)"},to:{opacity:1,transform:"skewX(0deg) translateX(0px)"}},"scale-x":{from:{transform:"scaleX(0)"},to:{transform:"scaleX(1)"}},"scale-y":{from:{transform:"scaleY(0)"},to:{transform:"scaleY(1)"}},shimmer:{from:{opacity:.5,filter:"brightness(1)"},to:{opacity:1,filter:"brightness(1.5)"}},pulse:{from:{transform:"scale(1)"},to:{transform:"scale(1.05)"}},swing:{from:{transform:"rotate(-10deg)"},to:{transform:"rotate(10deg)"}},"scale-up":{from:{opacity:0,transform:"scale(0.5)"},to:{opacity:1,transform:"scale(1)"}},"blur-in-up":{from:{opacity:0,filter:"blur(12px)",transform:"translateY(40px)"},to:{opacity:1,filter:"blur(0px)",transform:"translateY(0px)"}},"flip-up":{from:{opacity:0,transform:"perspective(800px) rotateX(60deg)"},to:{opacity:1,transform:"perspective(800px) rotateX(0deg)"}},"flip-down":{from:{opacity:0,transform:"perspective(800px) rotateX(-60deg)"},to:{opacity:1,transform:"perspective(800px) rotateX(0deg)"}},"rotate-left":{from:{opacity:0,transform:"rotate(-15deg) translateX(-40px)"},to:{opacity:1,transform:"rotate(0deg) translateX(0px)"}},"rotate-right":{from:{opacity:0,transform:"rotate(15deg) translateX(40px)"},to:{opacity:1,transform:"rotate(0deg) translateX(0px)"}},"clip-up":{from:{clipPath:"inset(100% 0% 0% 0%)"},to:{clipPath:"inset(0% 0% 0% 0%)"}},"clip-down":{from:{clipPath:"inset(0% 0% 100% 0%)"},to:{clipPath:"inset(0% 0% 0% 0%)"}},"clip-left":{from:{clipPath:"inset(0% 0% 0% 100%)"},to:{clipPath:"inset(0% 0% 0% 0%)"}},"clip-right":{from:{clipPath:"inset(0% 100% 0% 0%)"},to:{clipPath:"inset(0% 0% 0% 0%)"}},"clip-circle":{from:{clipPath:"circle(0% at 50% 50%)"},to:{clipPath:"circle(75% at 50% 50%)"}}});function n(e){return{from:e.to,to:e.from,frames:e.frames&&e.frames.map(e=>({...e,offset:1-e.offset})).reverse()}}const r=e=>t[e.trim()];function o(e){if("string"==typeof e)return r(e)??t["fade-in-up"];if(Array.isArray(e)){const t={from:{},to:{}};return e.forEach(e=>{const n=r(e);n&&(Object.entries(n.from).forEach(([e,n])=>{"transform"===e&&t.from[e]?t.from[e]=`${t.from[e]} ${n}`:t.from[e]=n}),Object.entries(n.to).forEach(([e,n])=>{"transform"===e&&t.to[e]?t.to[e]=`${t.to[e]} ${n}`:t.to[e]=n}))}),t}return e}const a={linear:"linear",ease:"ease","ease-in":"ease-in","ease-out":"ease-out","ease-in-out":"ease-in-out",spring:"cubic-bezier(0.34, 1.56, 0.64, 1)","soft-spring":"cubic-bezier(0.175, 0.885, 0.32, 1.275)","heavy-bounce":"cubic-bezier(0.68, -0.55, 0.265, 1.55)"};function s(e){return"string"==typeof e?a[e]??e:Array.isArray(e)?`cubic-bezier(${e.join(", ")})`:"function"==typeof e?"linear":"ease"}const i={defaultAnimation:"fade-in-up",defaultDuration:600,defaultDelay:0,defaultEasing:"ease",defaultThreshold:.1,defaultRootMargin:"0px",defaultRepeat:!1,defaultOnce:!0,defaultOffset:0,hiddenClass:"sa-hidden",visibleClass:"sa-visible",useClassNames:!1,disabled:!1,root:null,autoUnregister:!0,defaultEngine:"auto"},c=()=>{},l=()=>"undefined"!=typeof window&&"undefined"!=typeof document,f=()=>l()&&"undefined"!=typeof IntersectionObserver;let u,d;function m(){return!!l()&&(void 0===u&&(u="function"==typeof window.matchMedia?window.matchMedia("(prefers-reduced-motion: reduce)"):null),!!u&&u.matches)}function p(){return void 0===d&&(d=l()&&"undefined"!=typeof CSS&&"function"==typeof CSS.supports&&CSS.supports("animation-timeline: view()")&&"function"==typeof globalThis.ViewTimeline),d}function g(e){if(void 0===e||""===e.trim())return;const t=parseFloat(e);return Number.isFinite(t)?t:void 0}const h=["entry 0%","entry 100%"];function y(e){const t=e.trim();return t?t.startsWith("--")?t:`--${t}`:"--sa-progress"}function b(e,t){return v(function(e){const t={},n=e("animation");n&&(t.animation=n.includes(",")?n.split(",").map(e=>e.trim()):n.trim()),t.duration=g(e("duration")),t.delay=g(e("delay"));const r=e("easing");if(r){const e=r.trim();if(e.startsWith("["))try{t.easing=JSON.parse(e)}catch{}else t.easing=e}const o=e("threshold");o&&(t.threshold=o.includes(",")?o.split(",").map(parseFloat).filter(Number.isFinite):g(o));const a=e("root-margin");a&&(t.rootMargin=a);const s=e("repeat");void 0!==s&&(t.repeat="false"!==s);const i=e("once");void 0!==i&&(t.once="false"!==i),t.offset=g(e("offset")),t.stagger=g(e("stagger"));const c=e("progress-var");void 0!==c&&(t.progressVar=y(c));const l=e("engine")?.trim();"auto"!==l&&"js"!==l&&"css"!==l||(t.engine=l);const f=e("view-range");if(f){const[e,n]=f.split(",").map(e=>e.trim());e&&n&&(t.viewRange=[e,n])}const u=e("exit");if(void 0!==u){const e=u.trim();t.exit=""===e||"true"===e||"false"!==e&&(e.includes(",")?e.split(",").map(e=>e.trim()):e)}const d=e("progress");return d&&(t.progressMode="scroll"===d.trim()?"scroll":"ratio"),Object.keys(t).forEach(e=>void 0===t[e]&&delete t[e]),t}(t=>{const n=e.getAttribute(`data-sa-${t}`);return null===n?void 0:n}),t)}function v(e,t){let n=e.engine??t.defaultEngine;"auto"===n&&(void 0!==e.duration||void 0!==e.delay||void 0!==e.offset||(e.stagger??0)>0)&&(n="js");const r=e.exit??!1,o=e.repeat??(!!r||t.defaultRepeat),a=e.threshold??t.defaultThreshold;return{animation:e.animation??t.defaultAnimation,duration:e.duration??t.defaultDuration,delay:e.delay??t.defaultDelay,easing:e.easing??t.defaultEasing,threshold:Array.isArray(a)&&0===a.length?t.defaultThreshold:a,rootMargin:e.rootMargin??t.defaultRootMargin,repeat:o,once:e.once??(!o&&t.defaultOnce),offset:e.offset??t.defaultOffset,stagger:e.stagger??0,onStart:e.onStart??c,onComplete:e.onComplete??c,onEnter:e.onEnter??c,onLeave:e.onLeave??c,onProgress:e.onProgress??c,progressMode:e.progressMode??"ratio",progressVar:e.progressVar?y(e.progressVar):"",engine:n,viewRange:e.viewRange??h,exit:r}}function w(e){return e&&l()?"string"==typeof e?Array.from(document.querySelectorAll(e)):e instanceof Element?[e]:Array.isArray(e)||e instanceof NodeList?Array.from(e).filter(e=>e instanceof Element):[]:[]}function x(e,t){if(!l())return 0;const n=e.getBoundingClientRect();let r=0,o=window.innerHeight||document.documentElement.clientHeight||0;if(t){const e=t.getBoundingClientRect();r=e.top,o=e.height}const a=o+n.height;if(a<=0)return 0;const s=(r+o-n.top)/a;return s<0?0:s>1?1:s}const E=new WeakMap,S=new WeakMap,M=new WeakMap;function C(e){const t=S.get(e);t&&(S.delete(e),t.cancel());const n=E.get(e);n&&(E.delete(e),n.onfinish=null,n.cancel());const r=M.get(e);void 0!==r&&(clearTimeout(r),M.delete(e))}function k(e,t){const n=e.style;n&&Object.keys(t).forEach(e=>{n[e]=String(t[e])})}const O=/(-?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?)([a-z%]*)/gi;let P,A;function $(){return void 0===P&&(P="undefined"!=typeof CSS&&"function"==typeof CSS.supports&&CSS.supports("animation-timing-function","linear(0, 1)")),P}function T(e,t){const n=[e.from,...e.frames||[],e.to];if("function"!=typeof t)return{keyframes:n,easing:s(t)};const r=function(e){const t=[];for(let n=0;n<=30;n++){const r=e(n/30);t.push(Number.isFinite(r)?+r.toFixed(4):n/30)}return t}(t);if($()||e.frames)return{keyframes:n,easing:$()?`linear(${r.join(", ")})`:"ease"};const o=Object.keys(e.from).filter(t=>t in e.to);return{keyframes:r.map((t,n)=>{const r={offset:n/30};return o.forEach(n=>{r[n]=function(e,t,n){if("number"==typeof e&&"number"==typeof t)return e+(t-e)*n;const r=String(e),o=String(t),a=[],s=[],i=r.replace(O,(e,t,n)=>(a.push([parseFloat(t),n]),"#"));if(i!==o.replace(O,(e,t,n)=>(s.push([parseFloat(t),n]),"#"))||a.length!==s.length)return n<.5?e:t;let c=0,l=!0;const f=i.replace(/#/g,()=>{const[e,t]=a[c],[r,o]=s[c++];t!==o&&0!==e&&0!==r&&t&&o&&(l=!1);const i=t||o;return`${+(e+(r-e)*n).toFixed(4)}${i}`});return l?f:n<.5?e:t}(e.from[n],e.to[n],t)}),r}),easing:"linear"}}function j(e,t){if(C(e),t.useClassNames)e.classList.remove(t.hiddenClass),e.classList.add(t.visibleClass);else{const t=e.style;t&&(t.opacity="")}}function X(e){return!!e.disabled||m()}function z(e,t,n,r=0,a){const{duration:s,delay:i,stagger:c,onStart:l,onComplete:f}=t,u=Math.max(0,i+r*c);if(C(e),X(n))return j(e,n),l(e),void f(e);if(n.useClassNames)return u>0&&(e.style.animationDelay=`${u}ms`),e.classList.remove(n.hiddenClass),e.classList.add(n.visibleClass),l(e),a?.add(e),void M.set(e,setTimeout(()=>{M.delete(e),a?.delete(e),f(e)},s+u));const d=o(t.animation);if(!("opacity"in d.to)){const t=e.style;t&&"0"===t.opacity&&(t.opacity="")}if("function"!=typeof e.animate)return k(e,d.to),l(e),void f(e);const m=T(d,t.easing),p={duration:s,delay:u,easing:m.easing,fill:"both"};let g;try{g=e.animate(m.keyframes,p)}catch{g=e.animate(m.keyframes,{...p,easing:"ease"})}E.set(e,g),l(e),g.onfinish=()=>{if(E.get(e)===g){E.delete(e);try{g.commitStyles()}catch{k(e,d.to)}g.cancel()}f(e)}}function N(e,t){if(C(e),t.useClassNames)e.classList.add(t.hiddenClass),e.classList.remove(t.visibleClass);else{const t=e.style;t&&(t.opacity="0")}}function L(e,t={}){const n={...i,...t};X(n)||N(e,n)}function F(){if(!A){A=[];for(let e=0;e<=100;e++)A.push(e/100)}return A}const Y={passive:!0};function R(e={}){let t={...i,...e};const r=new Map;let a=new WeakSet;const s=new Set;let u=0,d=null;const m=new Set,g=new Set,h=new Set,y=new Map;function O(e,t,n){let r=y.get(e);r||y.set(e,r=new Map);let o=r.get(t);return o||r.set(t,o=n()),o}function P(e,n){const o=r.get(e);o&&(o.observer.unobserve(e),o.progressObserver?.unobserve(e),r.delete(e),I(e),"css"!==o.engine?n&&!o.animated&&j(e,t):n?(h.delete(e),j(e,t)):!1===e.isConnected&&h.delete(e))}function A(){r.forEach((e,t)=>{!1===t.isConnected&&P(t,!1)})}function $(e,t,n){const r=t.options;if(r.onProgress(e,n),r.progressVar){const t=e.style;t&&t.setProperty(r.progressVar,String(+n.toFixed(4)))}}function L(){u=0,s.forEach(e=>{const n=r.get(e);n&&$(e,n,x(e,t.root))})}const R=()=>u||(u=requestAnimationFrame(L));function V(e){if(e===!!d)return;const n=e?"addEventListener":"removeEventListener",r=d||t.root||window;r[n]("scroll",R,Y),window[n]("resize",R,Y),d=e?r:null,!e&&u&&(cancelAnimationFrame(u),u=0)}function I(e){s.delete(e)&&!s.size&&V(!1)}function W(e){e.forEach(e=>{const n=e.target,o=r.get(n);o&&(e.isIntersecting?(s.add(n),V(!0)):I(n),$(n,o,x(n,t.root)))})}function q(e){const s=new Map;e.forEach(e=>{const i=e.target,c=r.get(i);if(!c)return;const l=c.options;if(!1!==i.isConnected)if("css"!==c.engine)if(e.isIntersecting){if(l.onEnter(i),c.animated&&!l.repeat)return;let e=0;if(l.stagger>0){const t=i.parentElement;e=s.get(t)??0,s.set(t,e+1)}z(i,l,t,e,g),c.animated=!0,l.once&&!l.repeat&&(c.observer.unobserve(i),t.autoUnregister&&!c.progressObserver&&(a.add(i),P(i,!1)))}else l.onLeave(i),l.repeat&&c.animated&&(X(t)||(l.exit?function(e,t,r){if(r.useClassNames||"function"!=typeof e.animate)return void N(e,r);C(e);const a=T(n(o(!0===t.exit?t.animation:t.exit)),t.easing),s={duration:t.duration,easing:a.easing,fill:"forwards"};let i;try{i=e.animate(a.keyframes,s)}catch{i=e.animate(a.keyframes,{...s,easing:"ease"})}E.set(e,i)}(i,l,t):N(i,t)),c.animated=!1);else e.isIntersecting?(l.onEnter(i),c.animated||(c.animated=!0,l.onStart(i)),l.once&&!l.repeat&&(c.observer.unobserve(i),t.autoUnregister&&!c.progressObserver&&(a.add(i),P(i,!1)))):(l.onLeave(i),l.repeat&&(c.animated=!1));else P(i,!1)})}function D(e){e.forEach(e=>{const t=r.get(e.target);t&&$(e.target,t,e.intersectionRatio)})}function H(e){const n=function(e,t){if(!t)return e;const n=(e||"0px").trim().split(/\s+/),r=n[0],o=n[1]??r,a=n[2]??r,s=n[3]??o,i=/^(-?\d*\.?\d+)(px)?$/.exec(a);return`${r} ${o} ${(i?parseFloat(i[1]):0)-t}px ${s}`}(e.rootMargin,e.offset),r=e.threshold,o=t.root;return O(o,`m|${n}|${String(r)}`,()=>new IntersectionObserver(q,{threshold:r,rootMargin:n,root:o}))}function U(e,n,r){var o;n.observer=H(n.options),r&&n.observer.observe(e),n.progressObserver=(o=n.options).onProgress!==c||o.progressVar?function(e){const n=t.root;return"scroll"===e.progressMode?O(n,`s|${e.rootMargin}`,()=>new IntersectionObserver(W,{threshold:0,rootMargin:e.rootMargin,root:n})):O(n,`p|${e.rootMargin}`,()=>new IntersectionObserver(D,{threshold:F(),rootMargin:e.rootMargin,root:n}))}(n.options):void 0,n.progressObserver?.observe(e)}function _(e,s){if(r.has(e)||a.has(e))return;if(!f())return void j(e,t);const i={element:e,options:s,animated:!1,engine:"js"};(function(e){return"js"!==e.engine&&!t.useClassNames&&!X(t)&&p()})(s)&&(C(e),function(e,t,r){if("function"!=typeof e.animate)return null;const a=o(t.animation),s=T(a,t.easing);let i;try{const n=new globalThis.ViewTimeline({subject:e,axis:"block"}),r={fill:"both",easing:s.easing,timeline:n,rangeStart:t.viewRange[0],rangeEnd:t.viewRange[1]};try{i=e.animate(s.keyframes,r)}catch{i=e.animate(s.keyframes,{...r,easing:"linear"})}}catch{return null}if(E.set(e,i),t.exit){const r=T(n(o(!0===t.exit?t.animation:t.exit)),t.easing);try{const t=new globalThis.ViewTimeline({subject:e,axis:"block"}),n={fill:"forwards",easing:r.easing,timeline:t,rangeStart:"exit 0%",rangeEnd:"exit 100%"};S.set(e,e.animate(r.keyframes,n))}catch{}}const c=t.repeat||!t.once;return i.onfinish=()=>{if(!c&&E.get(e)===i){E.delete(e);try{i.commitStyles()}catch{k(e,a.to)}i.cancel(),r?.()}t.onComplete(e)},i}(e,s,()=>h.delete(e))&&(i.engine="css",h.add(e))),"js"!==i.engine||X(t)||N(e,t),r.set(e,i),U(e,i,!0)}function B(e){r.has(e)||_(e,b(e,t))}const G={observe(e,n={}){A();const r=v(n,t);w(e).forEach(e=>_(e,r))},unobserve(e){w(e).forEach(e=>{a.delete(e),P(e,!0)})},init(e){const t=e??(l()?document:null);t&&(A(),t.querySelectorAll("[data-sa]").forEach(B))},watch(e){const t=e??(l()?document:null);if(!t||"undefined"==typeof MutationObserver)return c;G.init(t);const n=e=>{e.hasAttribute("data-sa")&&B(e),e.querySelectorAll("[data-sa]").forEach(B)},r=new MutationObserver(e=>{let t=!1;e.forEach(e=>{if("attributes"===e.type){const t=e.target;return void(!1!==t.isConnected&&n(t))}e.addedNodes.forEach(e=>{e instanceof Element&&!1!==e.isConnected&&n(e)}),e.removedNodes.length&&(t=!0)}),t&&A()});return r.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-sa"]}),m.add(r),()=>{r.disconnect(),m.delete(r)}},destroy(){m.forEach(e=>e.disconnect()),m.clear(),g.forEach(e=>{const t=M.get(e);void 0!==t&&(clearTimeout(t),M.delete(e))}),g.clear(),r.forEach((e,n)=>{e.animated||"css"===e.engine||j(n,t)}),h.forEach(e=>{E.has(e)&&j(e,t)}),h.clear(),y.forEach(e=>e.forEach(e=>e.disconnect())),y.clear(),r.clear(),s.clear(),V(!1),a=new WeakSet},refresh(){y.forEach(e=>e.forEach(e=>e.disconnect())),y.clear(),s.clear(),V(!1),A(),f()&&r.forEach((e,t)=>{U(t,e,!(e.animated&&e.options.once&&!e.options.repeat))})},animate(e,n={}){const r=v(n,t);w(e).forEach(e=>z(e,r,t,0,g))},getObservedElements:()=>Array.from(r.values()),configure(e){t={...t,...e}}};return G}let V=null;const I={low:.6,normal:1,high:1.25},W="normal";function q(){return"function"==typeof matchMedia&&!!matchMedia("(prefers-reduced-motion: reduce)")?.matches}function D(e,t){if(t)for(const[n,r]of Object.entries(t))"offset"!==n&&"easing"!==n&&"composite"!==n&&null!=r&&(e.style[n]=String(r))}const H=new Map;let U=1,_=0,B=null;const G={frames:0,callbacks:0,peak:0,last:0,deferred:0,parked:0,budget:8},J=new Map,Z=e=>e&&!e.isConnected?2:0;function K(e){const t=G;_=0;const n=t.last&&e>t.last?e-t.last:16.7;t.last=e,t.frames++;const r=te();let o=0,a=0,s=0,i=null;for(const[n,[s,c]]of[...H]){if(o&&te()-r>t.budget){t.deferred++;break}const l=Z(c);if(1&l)a++;else if(H.delete(n),!l)try{o++,s(e)}catch(e){i??(i=e)}}t.callbacks+=o,t.peak=Math.max(t.peak,o);const c=oe();if(!c.paused){const t=n*c.rate;c.time+=t,J.forEach((n,r)=>Z(n)?a++:(s++,r(e,t)))}if(t.parked+=a,(s||H.size>a)&&Q(),i)throw i}function Q(){const e="function"==typeof requestAnimationFrame?requestAnimationFrame:null;_&&B===e||(B=e,_=e?e(K):setTimeout(()=>K(te()),16))}const ee=(e,t)=>{const n=U++;return H.set(n,[e,t]),Q(),n},te=()=>performance.now(),ne=e=>{H.delete(e)},re=Symbol.for("motionary.clock"),oe=()=>{var e;return(e=globalThis)[re]||(e[re]={rate:1,paused:!1,time:0,anims:new Set,subs:new Set})},ae=(e,t,n)=>Math.min(n,Math.max(t,e));let se=ie({duration:{instant:0,fast:150,normal:300,slow:600,slower:900,slowest:1400},easing:{linear:"linear",standard:"cubic-bezier(0.2, 0, 0, 1)",emphasized:"cubic-bezier(0.22, 1, 0.36, 1)",decelerate:"cubic-bezier(0, 0, 0, 1)",accelerate:"cubic-bezier(0.3, 0, 1, 1)",spring:"cubic-bezier(0.34, 1.56, 0.64, 1)",bounce:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"},spring:{gentle:{stiffness:120,damping:14,mass:1},snappy:{stiffness:300,damping:30,mass:1},bouncy:{stiffness:260,damping:12,mass:1},wobbly:{stiffness:180,damping:8,mass:1},stiff:{stiffness:500,damping:40,mass:1}}});function ie(e){return{duration:{...e.duration},easing:{...e.easing},spring:Object.fromEntries(Object.entries(e.spring).map(([e,t])=>[e,{...t}]))}}function ce(e){if("number"==typeof e&&isFinite(e))return e;if("object"==typeof e&&e&&"value"in e&&"unit"in e)return ce(`${e.value}${e.unit}`);const t=/^\s*(-?\d*\.?\d+)\s*(ms|s)?\s*$/.exec(String(e??""));return t?"s"===t[2]?1e3*Number(t[1]):Number(t[1]):void 0}function le(e,t){return"number"==typeof e?e:"string"==typeof e?se.duration[e]??ce(e)??t:t}function fe(e,t){return e?se.easing[e]??e:t}function ue(e="view"){const t=globalThis;return"function"==typeof t["scroll"===e?"ScrollTimeline":"ViewTimeline"]&&"function"==typeof t.Element?.prototype?.animate}const de=(e,t)=>Object.assign(e,{native:t}),me={fade:[{opacity:0},{opacity:1}],"fade-up":[{opacity:0,transform:"translateY(24px)"},{opacity:1,transform:"none"}],"fade-down":[{opacity:0,transform:"translateY(-24px)"},{opacity:1,transform:"none"}],"fade-left":[{opacity:0,transform:"translateX(24px)"},{opacity:1,transform:"none"}],"fade-right":[{opacity:0,transform:"translateX(-24px)"},{opacity:1,transform:"none"}],scale:[{opacity:0,transform:"scale(0.85)"},{opacity:1,transform:"none"}],blur:[{opacity:0,filter:"blur(12px)"},{opacity:1,filter:"blur(0)"}],rotate:[{opacity:0,transform:"rotate(-12deg) scale(0.9)"},{opacity:1,transform:"none"}],"clip-up":[{clipPath:"inset(100% 0 0 0)"},{clipPath:"inset(0 0 0 0)"}],"clip-right":[{clipPath:"inset(0 100% 0 0)"},{clipPath:"inset(0 0 0 0)"}]};function pe(e,t,n,r={}){if(void 0===e||""===e||">"===e)return t;if("number"==typeof e)return Math.max(0,e);const o=String(e).trim();if(/^-?\d+(\.\d+)?$/.test(o))return Math.max(0,Number(o));const a=/^(<|>|[A-Za-z_][\w-]*)?\s*(?:([+-])=\s*(\d+(?:\.\d+)?))?$/.exec(o);if(!a)return t;const s="<"===a[1]?n:">"!==a[1]&&a[1]?r[a[1]]??t:t,i=a[2]?("-"===a[2]?-1:1)*Number(a[3]):0;return Math.max(0,s+i)}const ge={passive:!0};
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ScrollAnimate={})}(this,function(e){"use strict";const t=(e=>{const t=globalThis,n=Symbol.for("use-scroll-animate.presets");return t[n]=Object.assign(t[n]||{},e)})({"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-in-up":{from:{opacity:0,transform:"translateY(40px)"},to:{opacity:1,transform:"translateY(0px)"}},"fade-in-down":{from:{opacity:0,transform:"translateY(-40px)"},to:{opacity:1,transform:"translateY(0px)"}},"fade-in-left":{from:{opacity:0,transform:"translateX(-40px)"},to:{opacity:1,transform:"translateX(0px)"}},"fade-in-right":{from:{opacity:0,transform:"translateX(40px)"},to:{opacity:1,transform:"translateX(0px)"}},"zoom-in":{from:{opacity:0,transform:"scale(0.8)"},to:{opacity:1,transform:"scale(1)"}},"zoom-out":{from:{opacity:0,transform:"scale(1.2)"},to:{opacity:1,transform:"scale(1)"}},"flip-x":{from:{opacity:0,transform:"rotateX(-90deg)"},to:{opacity:1,transform:"rotateX(0deg)"}},"flip-y":{from:{opacity:0,transform:"rotateY(-90deg)"},to:{opacity:1,transform:"rotateY(0deg)"}},"slide-up":{from:{transform:"translateY(100%)"},to:{transform:"translateY(0px)"}},"slide-down":{from:{transform:"translateY(-100%)"},to:{transform:"translateY(0px)"}},"slide-left":{from:{transform:"translateX(-100%)"},to:{transform:"translateX(0px)"}},"slide-right":{from:{transform:"translateX(100%)"},to:{transform:"translateX(0px)"}},bounce:{from:{opacity:0,transform:"translateY(-60px)"},to:{opacity:1,transform:"translateY(0px)"}},"rotate-in":{from:{opacity:0,transform:"rotate(-180deg) scale(0.5)"},to:{opacity:1,transform:"rotate(0deg) scale(1)"}},"blur-in":{from:{opacity:0,filter:"blur(12px)"},to:{opacity:1,filter:"blur(0px)"}},"skew-in":{from:{opacity:0,transform:"skewX(20deg) translateX(30px)"},to:{opacity:1,transform:"skewX(0deg) translateX(0px)"}},"scale-x":{from:{transform:"scaleX(0)"},to:{transform:"scaleX(1)"}},"scale-y":{from:{transform:"scaleY(0)"},to:{transform:"scaleY(1)"}},shimmer:{from:{opacity:.5,filter:"brightness(1)"},to:{opacity:1,filter:"brightness(1.5)"}},pulse:{from:{transform:"scale(1)"},to:{transform:"scale(1.05)"}},swing:{from:{transform:"rotate(-10deg)"},to:{transform:"rotate(10deg)"}},"scale-up":{from:{opacity:0,transform:"scale(0.5)"},to:{opacity:1,transform:"scale(1)"}},"blur-in-up":{from:{opacity:0,filter:"blur(12px)",transform:"translateY(40px)"},to:{opacity:1,filter:"blur(0px)",transform:"translateY(0px)"}},"flip-up":{from:{opacity:0,transform:"perspective(800px) rotateX(60deg)"},to:{opacity:1,transform:"perspective(800px) rotateX(0deg)"}},"flip-down":{from:{opacity:0,transform:"perspective(800px) rotateX(-60deg)"},to:{opacity:1,transform:"perspective(800px) rotateX(0deg)"}},"rotate-left":{from:{opacity:0,transform:"rotate(-15deg) translateX(-40px)"},to:{opacity:1,transform:"rotate(0deg) translateX(0px)"}},"rotate-right":{from:{opacity:0,transform:"rotate(15deg) translateX(40px)"},to:{opacity:1,transform:"rotate(0deg) translateX(0px)"}},"clip-up":{from:{clipPath:"inset(100% 0% 0% 0%)"},to:{clipPath:"inset(0% 0% 0% 0%)"}},"clip-down":{from:{clipPath:"inset(0% 0% 100% 0%)"},to:{clipPath:"inset(0% 0% 0% 0%)"}},"clip-left":{from:{clipPath:"inset(0% 0% 0% 100%)"},to:{clipPath:"inset(0% 0% 0% 0%)"}},"clip-right":{from:{clipPath:"inset(0% 100% 0% 0%)"},to:{clipPath:"inset(0% 0% 0% 0%)"}},"clip-circle":{from:{clipPath:"circle(0% at 50% 50%)"},to:{clipPath:"circle(75% at 50% 50%)"}}});function n(e){return{from:e.to,to:e.from,frames:e.frames&&e.frames.map(e=>({...e,offset:1-e.offset})).reverse()}}const r=e=>t[e.trim()];function o(e){if("string"==typeof e)return r(e)??t["fade-in-up"];if(Array.isArray(e)){const t={from:{},to:{}};return e.forEach(e=>{const n=r(e);n&&(Object.entries(n.from).forEach(([e,n])=>{"transform"===e&&t.from[e]?t.from[e]=`${t.from[e]} ${n}`:t.from[e]=n}),Object.entries(n.to).forEach(([e,n])=>{"transform"===e&&t.to[e]?t.to[e]=`${t.to[e]} ${n}`:t.to[e]=n}))}),t}return e}const a={linear:"linear",ease:"ease","ease-in":"ease-in","ease-out":"ease-out","ease-in-out":"ease-in-out",spring:"cubic-bezier(0.34, 1.56, 0.64, 1)","soft-spring":"cubic-bezier(0.175, 0.885, 0.32, 1.275)","heavy-bounce":"cubic-bezier(0.68, -0.55, 0.265, 1.55)"};function s(e){return"string"==typeof e?a[e]??e:Array.isArray(e)?`cubic-bezier(${e.join(", ")})`:"function"==typeof e?"linear":"ease"}const i={defaultAnimation:"fade-in-up",defaultDuration:600,defaultDelay:0,defaultEasing:"ease",defaultThreshold:.1,defaultRootMargin:"0px",defaultRepeat:!1,defaultOnce:!0,defaultOffset:0,hiddenClass:"sa-hidden",visibleClass:"sa-visible",useClassNames:!1,disabled:!1,root:null,autoUnregister:!0,defaultEngine:"auto"},c=()=>{},l=()=>"undefined"!=typeof window&&"undefined"!=typeof document,f=()=>l()&&"undefined"!=typeof IntersectionObserver;let u,d;function m(){return!!l()&&(void 0===u&&(u="function"==typeof window.matchMedia?window.matchMedia("(prefers-reduced-motion: reduce)"):null),!!u&&u.matches)}function p(){return void 0===d&&(d=l()&&"undefined"!=typeof CSS&&"function"==typeof CSS.supports&&CSS.supports("animation-timeline: view()")&&"function"==typeof globalThis.ViewTimeline),d}function g(e){if(void 0===e||""===e.trim())return;const t=parseFloat(e);return Number.isFinite(t)?t:void 0}const h=["entry 0%","entry 100%"];function y(e){const t=e.trim();return t?t.startsWith("--")?t:`--${t}`:"--sa-progress"}function b(e,t){return v(function(e){const t={},n=e("animation");n&&(t.animation=n.includes(",")?n.split(",").map(e=>e.trim()):n.trim()),t.duration=g(e("duration")),t.delay=g(e("delay"));const r=e("easing");if(r){const e=r.trim();if(e.startsWith("["))try{t.easing=JSON.parse(e)}catch{}else t.easing=e}const o=e("threshold");o&&(t.threshold=o.includes(",")?o.split(",").map(parseFloat).filter(Number.isFinite):g(o));const a=e("root-margin");a&&(t.rootMargin=a);const s=e("repeat");void 0!==s&&(t.repeat="false"!==s);const i=e("once");void 0!==i&&(t.once="false"!==i),t.offset=g(e("offset")),t.stagger=g(e("stagger"));const c=e("progress-var");void 0!==c&&(t.progressVar=y(c));const l=e("engine")?.trim();"auto"!==l&&"js"!==l&&"css"!==l||(t.engine=l);const f=e("view-range");if(f){const[e,n]=f.split(",").map(e=>e.trim());e&&n&&(t.viewRange=[e,n])}const u=e("exit");if(void 0!==u){const e=u.trim();t.exit=""===e||"true"===e||"false"!==e&&(e.includes(",")?e.split(",").map(e=>e.trim()):e)}const d=e("progress");return d&&(t.progressMode="scroll"===d.trim()?"scroll":"ratio"),Object.keys(t).forEach(e=>void 0===t[e]&&delete t[e]),t}(t=>{const n=e.getAttribute(`data-sa-${t}`);return null===n?void 0:n}),t)}function v(e,t){let n=e.engine??t.defaultEngine;"auto"===n&&(void 0!==e.duration||void 0!==e.delay||void 0!==e.offset||(e.stagger??0)>0)&&(n="js");const r=e.exit??!1,o=e.repeat??(!!r||t.defaultRepeat),a=e.threshold??t.defaultThreshold;return{animation:e.animation??t.defaultAnimation,duration:e.duration??t.defaultDuration,delay:e.delay??t.defaultDelay,easing:e.easing??t.defaultEasing,threshold:Array.isArray(a)&&0===a.length?t.defaultThreshold:a,rootMargin:e.rootMargin??t.defaultRootMargin,repeat:o,once:e.once??(!o&&t.defaultOnce),offset:e.offset??t.defaultOffset,stagger:e.stagger??0,onStart:e.onStart??c,onComplete:e.onComplete??c,onEnter:e.onEnter??c,onLeave:e.onLeave??c,onProgress:e.onProgress??c,progressMode:e.progressMode??"ratio",progressVar:e.progressVar?y(e.progressVar):"",engine:n,viewRange:e.viewRange??h,exit:r}}function w(e){return e&&l()?"string"==typeof e?Array.from(document.querySelectorAll(e)):e instanceof Element?[e]:Array.isArray(e)||e instanceof NodeList?Array.from(e).filter(e=>e instanceof Element):[]:[]}function x(e,t){if(!l())return 0;const n=e.getBoundingClientRect();let r=0,o=window.innerHeight||document.documentElement.clientHeight||0;if(t){const e=t.getBoundingClientRect();r=e.top,o=e.height}const a=o+n.height;if(a<=0)return 0;const s=(r+o-n.top)/a;return s<0?0:s>1?1:s}const E=new WeakMap,S=new WeakMap,M=new WeakMap;function C(e){const t=S.get(e);t&&(S.delete(e),t.cancel());const n=E.get(e);n&&(E.delete(e),n.onfinish=null,n.cancel());const r=M.get(e);void 0!==r&&(clearTimeout(r),M.delete(e))}function k(e,t){const n=e.style;n&&Object.keys(t).forEach(e=>{n[e]=String(t[e])})}const O=/(-?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?)([a-z%]*)/gi;let P,A;function $(){return void 0===P&&(P="undefined"!=typeof CSS&&"function"==typeof CSS.supports&&CSS.supports("animation-timing-function","linear(0, 1)")),P}function T(e,t){const n=[e.from,...e.frames||[],e.to];if("function"!=typeof t)return{keyframes:n,easing:s(t)};const r=function(e){const t=[];for(let n=0;n<=30;n++){const r=e(n/30);t.push(Number.isFinite(r)?+r.toFixed(4):n/30)}return t}(t);if($()||e.frames)return{keyframes:n,easing:$()?`linear(${r.join(", ")})`:"ease"};const o=Object.keys(e.from).filter(t=>t in e.to);return{keyframes:r.map((t,n)=>{const r={offset:n/30};return o.forEach(n=>{r[n]=function(e,t,n){if("number"==typeof e&&"number"==typeof t)return e+(t-e)*n;const r=String(e),o=String(t),a=[],s=[],i=r.replace(O,(e,t,n)=>(a.push([parseFloat(t),n]),"#"));if(i!==o.replace(O,(e,t,n)=>(s.push([parseFloat(t),n]),"#"))||a.length!==s.length)return n<.5?e:t;let c=0,l=!0;const f=i.replace(/#/g,()=>{const[e,t]=a[c],[r,o]=s[c++];t!==o&&0!==e&&0!==r&&t&&o&&(l=!1);const i=t||o;return`${+(e+(r-e)*n).toFixed(4)}${i}`});return l?f:n<.5?e:t}(e.from[n],e.to[n],t)}),r}),easing:"linear"}}function j(e,t){if(C(e),t.useClassNames)e.classList.remove(t.hiddenClass),e.classList.add(t.visibleClass);else{const t=e.style;t&&(t.opacity="")}}function X(e){return!!e.disabled||m()}function z(e,t,n,r=0,a){const{duration:s,delay:i,stagger:c,onStart:l,onComplete:f}=t,u=Math.max(0,i+r*c);if(C(e),X(n))return j(e,n),l(e),void f(e);if(n.useClassNames)return u>0&&(e.style.animationDelay=`${u}ms`),e.classList.remove(n.hiddenClass),e.classList.add(n.visibleClass),l(e),a?.add(e),void M.set(e,setTimeout(()=>{M.delete(e),a?.delete(e),f(e)},s+u));const d=o(t.animation);if(!("opacity"in d.to)){const t=e.style;t&&"0"===t.opacity&&(t.opacity="")}if("function"!=typeof e.animate)return k(e,d.to),l(e),void f(e);const m=T(d,t.easing),p={duration:s,delay:u,easing:m.easing,fill:"both"};let g;try{g=e.animate(m.keyframes,p)}catch{g=e.animate(m.keyframes,{...p,easing:"ease"})}E.set(e,g),l(e),g.onfinish=()=>{if(E.get(e)===g){E.delete(e);try{g.commitStyles()}catch{k(e,d.to)}g.cancel()}f(e)}}function N(e,t){if(C(e),t.useClassNames)e.classList.add(t.hiddenClass),e.classList.remove(t.visibleClass);else{const t=e.style;t&&(t.opacity="0")}}function L(e,t={}){const n={...i,...t};X(n)||N(e,n)}function F(){if(!A){A=[];for(let e=0;e<=100;e++)A.push(e/100)}return A}const Y={passive:!0};function R(e={}){let t={...i,...e};const r=new Map;let a=new WeakSet;const s=new Set;let u=0,d=null;const m=new Set,g=new Set,h=new Set,y=new Map;function O(e,t,n){let r=y.get(e);r||y.set(e,r=new Map);let o=r.get(t);return o||r.set(t,o=n()),o}function P(e,n){const o=r.get(e);o&&(o.observer.unobserve(e),o.progressObserver?.unobserve(e),r.delete(e),I(e),"css"!==o.engine?n&&!o.animated&&j(e,t):n?(h.delete(e),j(e,t)):!1===e.isConnected&&h.delete(e))}function A(){r.forEach((e,t)=>{!1===t.isConnected&&P(t,!1)})}function $(e,t,n){const r=t.options;if(r.onProgress(e,n),r.progressVar){const t=e.style;t&&t.setProperty(r.progressVar,String(+n.toFixed(4)))}}function L(){u=0,s.forEach(e=>{const n=r.get(e);n&&$(e,n,x(e,t.root))})}const R=()=>u||(u=requestAnimationFrame(L));function V(e){if(e===!!d)return;const n=e?"addEventListener":"removeEventListener",r=d||t.root||window;r[n]("scroll",R,Y),window[n]("resize",R,Y),d=e?r:null,!e&&u&&(cancelAnimationFrame(u),u=0)}function I(e){s.delete(e)&&!s.size&&V(!1)}function W(e){e.forEach(e=>{const n=e.target,o=r.get(n);o&&(e.isIntersecting?(s.add(n),V(!0)):I(n),$(n,o,x(n,t.root)))})}function q(e){const s=new Map;e.forEach(e=>{const i=e.target,c=r.get(i);if(!c)return;const l=c.options;if(!1!==i.isConnected)if("css"!==c.engine)if(e.isIntersecting){if(l.onEnter(i),c.animated&&!l.repeat)return;let e=0;if(l.stagger>0){const t=i.parentElement;e=s.get(t)??0,s.set(t,e+1)}z(i,l,t,e,g),c.animated=!0,l.once&&!l.repeat&&(c.observer.unobserve(i),t.autoUnregister&&!c.progressObserver&&(a.add(i),P(i,!1)))}else l.onLeave(i),l.repeat&&c.animated&&(X(t)||(l.exit?function(e,t,r){if(r.useClassNames||"function"!=typeof e.animate)return void N(e,r);C(e);const a=T(n(o(!0===t.exit?t.animation:t.exit)),t.easing),s={duration:t.duration,easing:a.easing,fill:"forwards"};let i;try{i=e.animate(a.keyframes,s)}catch{i=e.animate(a.keyframes,{...s,easing:"ease"})}E.set(e,i)}(i,l,t):N(i,t)),c.animated=!1);else e.isIntersecting?(l.onEnter(i),c.animated||(c.animated=!0,l.onStart(i)),l.once&&!l.repeat&&(c.observer.unobserve(i),t.autoUnregister&&!c.progressObserver&&(a.add(i),P(i,!1)))):(l.onLeave(i),l.repeat&&(c.animated=!1));else P(i,!1)})}function D(e){e.forEach(e=>{const t=r.get(e.target);t&&$(e.target,t,e.intersectionRatio)})}function H(e){const n=function(e,t){if(!t)return e;const n=(e||"0px").trim().split(/\s+/),r=n[0],o=n[1]??r,a=n[2]??r,s=n[3]??o,i=/^(-?\d*\.?\d+)(px)?$/.exec(a);return`${r} ${o} ${(i?parseFloat(i[1]):0)-t}px ${s}`}(e.rootMargin,e.offset),r=e.threshold,o=t.root;return O(o,`m|${n}|${String(r)}`,()=>new IntersectionObserver(q,{threshold:r,rootMargin:n,root:o}))}function U(e,n,r){var o;n.observer=H(n.options),r&&n.observer.observe(e),n.progressObserver=(o=n.options).onProgress!==c||o.progressVar?function(e){const n=t.root;return"scroll"===e.progressMode?O(n,`s|${e.rootMargin}`,()=>new IntersectionObserver(W,{threshold:0,rootMargin:e.rootMargin,root:n})):O(n,`p|${e.rootMargin}`,()=>new IntersectionObserver(D,{threshold:F(),rootMargin:e.rootMargin,root:n}))}(n.options):void 0,n.progressObserver?.observe(e)}function _(e,s){if(r.has(e)||a.has(e))return;if(!f())return void j(e,t);const i={element:e,options:s,animated:!1,engine:"js"};(function(e){return"js"!==e.engine&&!t.useClassNames&&!X(t)&&p()})(s)&&(C(e),function(e,t,r){if("function"!=typeof e.animate)return null;const a=o(t.animation),s=T(a,t.easing);let i;try{const n=new globalThis.ViewTimeline({subject:e,axis:"block"}),r={fill:"both",easing:s.easing,timeline:n,rangeStart:t.viewRange[0],rangeEnd:t.viewRange[1]};try{i=e.animate(s.keyframes,r)}catch{i=e.animate(s.keyframes,{...r,easing:"linear"})}}catch{return null}if(E.set(e,i),t.exit){const r=T(n(o(!0===t.exit?t.animation:t.exit)),t.easing);try{const t=new globalThis.ViewTimeline({subject:e,axis:"block"}),n={fill:"forwards",easing:r.easing,timeline:t,rangeStart:"exit 0%",rangeEnd:"exit 100%"};S.set(e,e.animate(r.keyframes,n))}catch{}}const c=t.repeat||!t.once;return i.onfinish=()=>{if(!c&&E.get(e)===i){E.delete(e);try{i.commitStyles()}catch{k(e,a.to)}i.cancel(),r?.()}t.onComplete(e)},i}(e,s,()=>h.delete(e))&&(i.engine="css",h.add(e))),"js"!==i.engine||X(t)||N(e,t),r.set(e,i),U(e,i,!0)}function B(e){r.has(e)||_(e,b(e,t))}const G={observe(e,n={}){A();const r=v(n,t);w(e).forEach(e=>_(e,r))},unobserve(e){w(e).forEach(e=>{a.delete(e),P(e,!0)})},init(e){const t=e??(l()?document:null);t&&(A(),t.querySelectorAll("[data-sa]").forEach(B))},watch(e){const t=e??(l()?document:null);if(!t||"undefined"==typeof MutationObserver)return c;G.init(t);const n=e=>{e.hasAttribute("data-sa")&&B(e),e.querySelectorAll("[data-sa]").forEach(B)},r=new MutationObserver(e=>{let t=!1;e.forEach(e=>{if("attributes"===e.type){const t=e.target;return void(!1!==t.isConnected&&n(t))}e.addedNodes.forEach(e=>{e instanceof Element&&!1!==e.isConnected&&n(e)}),e.removedNodes.length&&(t=!0)}),t&&A()});return r.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-sa"]}),m.add(r),()=>{r.disconnect(),m.delete(r)}},destroy(){m.forEach(e=>e.disconnect()),m.clear(),g.forEach(e=>{const t=M.get(e);void 0!==t&&(clearTimeout(t),M.delete(e))}),g.clear(),r.forEach((e,n)=>{e.animated||"css"===e.engine||j(n,t)}),h.forEach(e=>{E.has(e)&&j(e,t)}),h.clear(),y.forEach(e=>e.forEach(e=>e.disconnect())),y.clear(),r.clear(),s.clear(),V(!1),a=new WeakSet},refresh(){y.forEach(e=>e.forEach(e=>e.disconnect())),y.clear(),s.clear(),V(!1),A(),f()&&r.forEach((e,t)=>{U(t,e,!(e.animated&&e.options.once&&!e.options.repeat))})},animate(e,n={}){const r=v(n,t);w(e).forEach(e=>z(e,r,t,0,g))},getObservedElements:()=>Array.from(r.values()),configure(e){t={...t,...e}}};return G}let V=null;const I={low:.6,normal:1,high:1.25},W="normal";function q(){return"function"==typeof matchMedia&&!!matchMedia("(prefers-reduced-motion: reduce)")?.matches}function D(e,t){if(t)for(const[n,r]of Object.entries(t))"offset"!==n&&"easing"!==n&&"composite"!==n&&null!=r&&(e.style[n]=String(r))}const H=new Map;let U=1,_=0,B=null;const G={frames:0,callbacks:0,peak:0,last:0,deferred:0,parked:0,budget:8},J=new Map,Z=e=>e&&!e.isConnected?2:0;function K(e){const t=G;_=0;const n=t.last&&e>t.last?e-t.last:16.7;t.last=e,t.frames++;const r=te();let o=0,a=0,s=0,i=null;for(const[n,[s,c]]of[...H]){if(o&&te()-r>t.budget){t.deferred++;break}const l=Z(c);if(1&l)a++;else if(H.delete(n),!l)try{o++,s(e)}catch(e){i??(i=e)}}t.callbacks+=o,t.peak=Math.max(t.peak,o);const c=oe();if(!c.paused){const t=n*c.rate;c.time+=t,J.forEach((n,r)=>{if(Z(n))a++;else{s++;try{r(e,t)}catch(e){i??(i=e)}}})}if(t.parked+=a,(s||H.size>a)&&Q(),i)throw i}function Q(){const e="function"==typeof requestAnimationFrame?requestAnimationFrame:null;_&&B===e||(B=e,_=e?e(K):setTimeout(()=>K(te()),16))}const ee=(e,t)=>{const n=U++;return H.set(n,[e,t]),Q(),n},te=()=>performance.now(),ne=e=>{H.delete(e)},re=Symbol.for("motionary.clock"),oe=()=>{var e;return(e=globalThis)[re]||(e[re]={rate:1,paused:!1,time:0,anims:new Set,subs:new Set})},ae=(e,t,n)=>Math.min(n,Math.max(t,e));let se=ie({duration:{instant:0,fast:150,normal:300,slow:600,slower:900,slowest:1400},easing:{linear:"linear",standard:"cubic-bezier(0.2, 0, 0, 1)",emphasized:"cubic-bezier(0.22, 1, 0.36, 1)",decelerate:"cubic-bezier(0, 0, 0, 1)",accelerate:"cubic-bezier(0.3, 0, 1, 1)",spring:"cubic-bezier(0.34, 1.56, 0.64, 1)",bounce:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"},spring:{gentle:{stiffness:120,damping:14,mass:1},snappy:{stiffness:300,damping:30,mass:1},bouncy:{stiffness:260,damping:12,mass:1},wobbly:{stiffness:180,damping:8,mass:1},stiff:{stiffness:500,damping:40,mass:1}}});function ie(e){return{duration:{...e.duration},easing:{...e.easing},spring:Object.fromEntries(Object.entries(e.spring).map(([e,t])=>[e,{...t}]))}}function ce(e){if("number"==typeof e&&isFinite(e))return e;if("object"==typeof e&&e&&"value"in e&&"unit"in e)return ce(`${e.value}${e.unit}`);const t=/^\s*(-?\d*\.?\d+)\s*(ms|s)?\s*$/.exec(String(e??""));return t?"s"===t[2]?1e3*Number(t[1]):Number(t[1]):void 0}function le(e,t){return"number"==typeof e?e:"string"==typeof e?se.duration[e]??ce(e)??t:t}function fe(e,t){return e?se.easing[e]??e:t}function ue(e="view"){const t=globalThis;return"function"==typeof t["scroll"===e?"ScrollTimeline":"ViewTimeline"]&&"function"==typeof t.Element?.prototype?.animate}const de=(e,t)=>Object.assign(e,{native:t}),me={fade:[{opacity:0},{opacity:1}],"fade-up":[{opacity:0,transform:"translateY(24px)"},{opacity:1,transform:"none"}],"fade-down":[{opacity:0,transform:"translateY(-24px)"},{opacity:1,transform:"none"}],"fade-left":[{opacity:0,transform:"translateX(24px)"},{opacity:1,transform:"none"}],"fade-right":[{opacity:0,transform:"translateX(-24px)"},{opacity:1,transform:"none"}],scale:[{opacity:0,transform:"scale(0.85)"},{opacity:1,transform:"none"}],blur:[{opacity:0,filter:"blur(12px)"},{opacity:1,filter:"blur(0)"}],rotate:[{opacity:0,transform:"rotate(-12deg) scale(0.9)"},{opacity:1,transform:"none"}],"clip-up":[{clipPath:"inset(100% 0 0 0)"},{clipPath:"inset(0 0 0 0)"}],"clip-right":[{clipPath:"inset(0 100% 0 0)"},{clipPath:"inset(0 0 0 0)"}]};function pe(e,t,n,r={}){if(void 0===e||""===e||">"===e)return t;if("number"==typeof e)return Math.max(0,e);const o=String(e).trim();if(/^-?\d+(\.\d+)?$/.test(o))return Math.max(0,Number(o));const a=/^(<|>|[A-Za-z_][\w-]*)?\s*(?:([+-])=\s*(\d+(?:\.\d+)?))?$/.exec(o);if(!a)return t;const s="<"===a[1]?n:">"!==a[1]&&a[1]?r[a[1]]??t:t,i=a[2]?("-"===a[2]?-1:1)*Number(a[3]):0;return Math.max(0,s+i)}const ge={passive:!0};
|
|
2
2
|
/**
|
|
3
3
|
* motionary
|
|
4
4
|
*
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
* @see https://github.com/HarrisonCN/Motionary
|
|
13
13
|
*/
|
|
14
14
|
const he=R();e.EASING_MAP=a,e.PRESETS=t,e.TIMELINE_PRESETS=me,e.createScrollAnimate=R,e.default=he,e.getScrollProgress=x,e.parallax=function(e,t={}){const n=w(e);if(!n.length||!l()||!f())return()=>{};const{speed:r=.2,axis:o="y",root:a=null,respectReducedMotion:s=!0}=t,i=t.progressVar?t.progressVar.startsWith("--")?t.progressVar:`--${t.progressVar}`:"--sa-parallax",c="x"===o?"vw":"vh",u=new Set;let d=0,p=!1;const g=a||window,h=e=>{const t=e.style;if(!t)return;const n=x(e,a);if(t.setProperty(i,String(+n.toFixed(4))),s&&m())return void t.removeProperty("translate");const l=`${+((n-.5)*r*100).toFixed(3)}${c}`;t.setProperty("translate","x"===o?`${l} 0px`:`0px ${l}`)},y=()=>{d=0,u.forEach(h)},b=()=>{d||(d=requestAnimationFrame(y))},v=e=>{if(e===p)return;p=e;const t=e?"addEventListener":"removeEventListener";g[t]("scroll",b,ge),window[t]("resize",b,ge),!e&&d&&(cancelAnimationFrame(d),d=0)},E=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?u.add(e.target):u.delete(e.target),h(e.target)}),v(u.size>0)},{threshold:0,root:a});return n.forEach(e=>{h(e),E.observe(e)}),()=>{E.disconnect(),v(!1),u.clear(),n.forEach(e=>{const t=e.style;t&&(t.removeProperty("translate"),t.removeProperty(i))})}},e.registerPresets=function(e){Object.assign(t,e)},e.resolveEasing=s,e.resolvePosition=pe,e.resolvePreset=o,e.reversePreset=n,e.staggerChildren=function(e,t={},n){if(!e||!l()||!f())return()=>{};const r=n||V||(V=R()),{stagger:o=80,delay:a=0,threshold:s=.1,rootMargin:c="0px",observeChildren:u=!1,...d}=t;let m=Array.from(e.children),p=!1;const g=[];m.forEach(e=>L(e));const h=new IntersectionObserver(t=>{!p&&t.some(e=>e.isIntersecting)&&(p=!0,h.disconnect(),m.forEach((t,n)=>{t.parentNode===e&&r.animate(t,{...d,delay:a+n*o})}),m=[])},{threshold:s,rootMargin:c});let y;return h.observe(e),u&&"undefined"!=typeof MutationObserver&&(y=new MutationObserver(t=>{t.forEach(t=>{t.addedNodes.forEach(t=>{t instanceof Element&&t.parentNode===e&&(p?(g.push(t),r.observe(t,{...d,delay:a,stagger:o,threshold:s,rootMargin:c})):(L(t),m.push(t)))}),t.removedNodes.forEach(e=>{if(!(e instanceof Element))return;m=m.filter(t=>t!==e);const t=g.indexOf(e);t>=0&&(g.splice(t,1),r.unobserve(e))})})}),y.observe(e,{childList:!0})),()=>{h.disconnect(),y?.disconnect(),p||(p=!0,m.forEach(e=>function(e,t={}){j(e,{...i,...t})}(e)),m=[]),g.forEach(e=>r.unobserve(e)),g.length=0}},e.supportsNativeScrub=ue,e.supportsScrollTimeline=p,e.timeline=function(e={}){const t={duration:600,easing:"cubic-bezier(0.22, 1, 0.36, 1)",stagger:0,...e.defaults},n=[],r=[],o={};let a,s=0,i=0,c=0,l=0,f=1,u=!1;const d=()=>Math.max(s,...r.map(e=>e.at),0),m=(t,o)=>{(()=>{if(!u){u=!0;for(const e of n)"function"==typeof e.el.animate?(e.anim=e.el.animate(e.frames,{duration:e.duration,delay:e.start,easing:e.easing,fill:"both"}),e.anim.pause?.()):e.anim=null}})(),c=ae(t,0,d());for(const e of n)e.anim?e.anim.currentTime=c:D(e.el,e.frames[c>=e.start?e.frames.length-1:0]);for(const e of r)(o<e.at&&c>=e.at||o>e.at&&c<=e.at)&&e.fn();e.onUpdate?.(d()?c/d():1)},p=()=>{l&&ne(l),l=0},g=t=>{p(),a?.(),f=t;const n=f>0?d():0,r=I[W];if(q()||0===r||!d())return m(n,c),e.onComplete?.(),Promise.resolve();const o=(e.speed??1)/r;return new Promise(t=>{a=()=>{a=void 0,t()};let r=te();const s=()=>{const t=te(),i=c+(t-r)*o*f;if(r=t,m(i,c),f>0&&c>=n||f<0&&c<=0)return l=0,e.onComplete?.(),void a?.();l=ee(s)};l=ee(s)})},h={get duration(){return d()},get labels(){return{...o}},get time(){return c},to(e,r,a={}){const c="string"==typeof r?me[r]||me.fade:r,l=pe(a.at,s,i,o),f=le(a.duration??t.duration,600),d=a.stagger??t.stagger;let m=l;return(e=>"string"==typeof e?"undefined"==typeof document?[]:Array.from(document.querySelectorAll(e)):e instanceof Element?[e]:Array.from(e))(e).forEach((e,r)=>{const o=l+r*d;n.push({el:e,frames:c,start:o,duration:f,easing:fe(a.easing??t.easing,"cubic-bezier(0.22, 1, 0.36, 1)")}),m=Math.max(m,o+f)}),i=l,s=Math.max(s,m),u=!1,n.forEach(e=>e.anim?.cancel?.()),h},label:(e,t)=>(o[e]=pe(t,s,i,o),h),call:(e,t)=>(r.push({fn:e,at:pe(t,s,i,o)}),h),play:e=>(void 0!==e?m(pe(e,0,0,o),c):c>=d()&&m(0,-1),g(1)),reverse:()=>g(-1),pause:()=>(p(),h),seek:e=>(p(),m(pe(e,0,0,o),c),h),progress:e=>(void 0!==e&&h.seek(ae(e,0,1)*d()),d()?c/d():0),scrub(t,o={}){if(p(),q()||"undefined"==typeof window)return m(d(),c),de(()=>{},!1);const a=o.source??"view",s=o.axis??"block";if(!(!!o.smooth||!!o.offset||r.length>0||!!e.onUpdate||"js"===o.engine)&&d()>0&&ue(a)&&n.every(e=>"function"==typeof e.el.animate)){const e=globalThis,r="scroll"===a?new e.ScrollTimeline({source:t,axis:s}):new e.ViewTimeline({subject:t,axis:s}),o=d();n.forEach(e=>e.anim?.cancel?.()),u=!1;const i=e=>`${(e/o*100).toFixed(3)}%`,l=n.map(e=>{const t="view"===a?{rangeStart:`cover ${i(e.start)}`,rangeEnd:`cover ${i(e.start+e.duration)}`}:{},n={easing:e.easing,fill:"both",timeline:r,...t};return"scroll"===a&&Object.assign(n,{duration:"auto",rangeStart:i(e.start),rangeEnd:i(e.start+e.duration)}),e.el.animate(e.frames,n)});return de(()=>{l.forEach(e=>e.cancel()),m(c,c)},!0)}let i=0,l=c;const f="scroll"===a?t:null,g=()=>{i=0;const e=(()=>{const e="x"===s||"inline"===s;if(f){const t=e?f.scrollWidth-f.clientWidth:f.scrollHeight-f.clientHeight;return ae((e?f.scrollLeft:f.scrollTop)/(t||1),0,1)}const n=t.getBoundingClientRect(),r=(e?window.innerWidth:window.innerHeight)||1,a=e?n.left:n.top,i=e?n.width:n.height;return ae((r+(o.offset??0)-a)/(r+i||1),0,1)})()*d(),n=ae(o.smooth??0,0,.95);l=n?l+(e-l)*(1-n):e,m(l,c),n&&Math.abs(e-l)>.5&&(i=ee(g))},h=()=>{i||(i=ee(g))},y=f||window;return y.addEventListener("scroll",h,{passive:!0}),window.addEventListener("resize",h,{passive:!0}),g(),de(()=>{y.removeEventListener("scroll",h),window.removeEventListener("resize",h),i&&ne(i)},!1)},cancel(){p(),a?.(),n.forEach(e=>e.anim?.cancel?.()),u=!1}};return h},Object.defineProperty(e,"__esModule",{value:!0})});
|
|
15
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
15
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.3.0/dist/index.umd.js.map
|