motionary 17.3.0 → 17.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +32 -28
- package/README_ja.md +32 -30
- package/README_zh.md +32 -30
- package/bin/mcp-browser.mjs +1 -1
- package/bin/motionary-mcp.mjs +1 -1
- package/dist/chunks/{anim-image-DUp41p_J.cjs → anim-image-D19osNCU.cjs} +2 -2
- package/dist/chunks/{anim-image-C2E-0IHe.js → anim-image-DlYbvZpZ.js} +2 -2
- package/dist/chunks/audio-BYC54FVb.cjs +1 -1
- package/dist/chunks/{audio-C1nRN28K.js → audio-BiO_x6I0.js} +4 -4
- package/dist/chunks/{badge-wall-CHVGI6ZX.js → badge-wall-BIYTO_47.js} +2 -2
- package/dist/chunks/badge-wall-nHmls1DJ.cjs +1 -1
- package/dist/chunks/base-DzZEJhQB.cjs +1 -1
- package/dist/chunks/{base-DRZOlKiI.js → base-SPDwWyB1.js} +2 -2
- package/dist/chunks/{bg-generator-BceRQLoK.js → bg-generator-BjUrAeO1.js} +2 -2
- package/dist/chunks/bg-generator-D4ssmvZk.cjs +1 -1
- package/dist/chunks/bind-B_CTL6Qn.js +1 -1
- package/dist/chunks/bind-Ui43-n2d.cjs +1 -1
- package/dist/chunks/builtins-Cp5v4424.cjs +1 -1
- package/dist/chunks/{builtins-BIFIhepe.js → builtins-J8Y5msT6.js} +3 -3
- package/dist/chunks/{carousel-DeCCp97t.js → carousel--_KvZQq3.js} +2 -2
- package/dist/chunks/carousel-CtzI1LxO.cjs +1 -1
- package/dist/chunks/{cart-drawer-CdVTa9ic.js → cart-drawer-BJ3pFiI7.js} +2 -2
- package/dist/chunks/cart-drawer-DSPlj8F4.cjs +1 -1
- package/dist/chunks/category-for-tag-D_QJPwpZ.cjs +1 -1
- package/dist/chunks/category-for-tag-WK7MtB-K.js +1 -1
- package/dist/chunks/code-export-ZWiwLw-H.cjs +1 -1
- package/dist/chunks/{code-export-BAYvizw5.js → code-export-bfSRtSqB.js} +2 -2
- package/dist/chunks/color-picker-8N-NOvcQ.cjs +1 -1
- package/dist/chunks/{color-picker-DL8WAdgj.js → color-picker-CtpYpnpE.js} +2 -2
- package/dist/chunks/command-palette-CF3b-53a.cjs +1 -1
- package/dist/chunks/{command-palette-CmYGwCis.js → command-palette-DEwU0apn.js} +2 -2
- package/dist/chunks/{core-cXxctm3i.js → core-Bj5_9QHr.js} +2 -2
- package/dist/chunks/core-BjcOCpJt.cjs +1 -1
- package/dist/chunks/{core-D9fzpWWF.js → core-C0-LxgXr.js} +2 -2
- package/dist/chunks/core-CLKnlWY8.cjs +1 -1
- package/dist/chunks/core-D6--jjZC.cjs +1 -1
- package/dist/chunks/core-Dj6iomdc.js +1 -1
- package/dist/chunks/countdown-B3c7zXfX.cjs +1 -1
- package/dist/chunks/{countdown-DkX9uSX8.js → countdown-BK14w5ux.js} +2 -2
- package/dist/chunks/date-picker-DBlxYEY6.cjs +1 -1
- package/dist/chunks/{date-picker-DJw-F-Wb.js → date-picker-DLwN_P_R.js} +2 -2
- package/dist/chunks/ease-HwYZnZat.cjs +1 -1
- package/dist/chunks/ease-XN8_0sXu.js +1 -1
- package/dist/chunks/{equalizer-3UOx6J5X.js → equalizer-BJCGaGnx.js} +2 -2
- package/dist/chunks/equalizer-DbABxC9W.cjs +1 -1
- package/dist/chunks/festival-banner-DOMDAkz8.cjs +1 -1
- package/dist/chunks/{festival-banner-ixk-a3W6.js → festival-banner-DhYr1Z4b.js} +2 -2
- package/dist/chunks/{field-BSfzSa6C.js → field-Br3yLOwe.js} +2 -2
- package/dist/chunks/field-C_ODaCJ5.cjs +1 -1
- package/dist/chunks/{format-CqOIfdW_.js → format-C6AKrjTW.js} +2 -2
- package/dist/chunks/format-CcfR6-Jx.cjs +1 -1
- package/dist/chunks/fx-BLAi-SpO.cjs +1 -1
- package/dist/chunks/{fx-BSLLiegk.js → fx-sAOJVpyC.js} +2 -2
- package/dist/chunks/{generative-CMp5pE9Y.js → generative-Cppu_oFN.js} +2 -2
- package/dist/chunks/generative-DkuaIgER.cjs +1 -1
- package/dist/chunks/{gl-scene-C9pBV4jG.cjs → gl-scene-8Xzyucw1.cjs} +2 -2
- package/dist/chunks/{gl-scene-CMC04FGd.js → gl-scene-CqG1g7X9.js} +3 -3
- package/dist/chunks/globe-BMVmAz1A.cjs +1 -1
- package/dist/chunks/{globe-M_ojLZnP.js → globe-DbofB7xF.js} +2 -2
- package/dist/chunks/gpu-B7egA-fl.cjs +1 -1
- package/dist/chunks/{gpu-gejIQCMt.js → gpu-CJnu4Ty1.js} +4 -4
- package/dist/chunks/{gpu-particles-CquYk8lp.js → gpu-particles-D1H4dnJY.js} +2 -2
- package/dist/chunks/gpu-particles-DGwFsyz_.cjs +1 -1
- package/dist/chunks/{history-CTLhjhlC.js → history-C-nky56A.js} +2 -2
- package/dist/chunks/history-rim_8RCX.cjs +1 -1
- package/dist/chunks/{index-Cx-NVSlj.js → index-1R6Lie-l.js} +4 -4
- package/dist/chunks/index-Ci8k-y1X.cjs +1 -1
- 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-C38Ftq1B.cjs → keyframes-DDNQ5K_J.cjs} +2 -2
- package/dist/chunks/{keyframes-CwhOVuO5.js → keyframes-DwX4rsz3.js} +2 -2
- package/dist/chunks/{leaderboard-CbjrxexL.js → leaderboard-Bm9JPPkX.js} +2 -2
- package/dist/chunks/leaderboard-DAxGz-Bv.cjs +1 -1
- package/dist/chunks/location-card-ChfmioKU.cjs +1 -1
- package/dist/chunks/{location-card-BqWM1-UQ.js → location-card-DlVRckSa.js} +2 -2
- package/dist/chunks/{lottie-icon-BYzLLASp.js → lottie-icon-DYVkUCf7.js} +2 -2
- package/dist/chunks/lottie-icon-tbOmn1bQ.cjs +1 -1
- package/dist/chunks/{lottie-player-BdgHpKiX.js → lottie-player-CKBWkEF6.js} +3 -3
- package/dist/chunks/{lottie-player-kQ9J05on.cjs → lottie-player-dpDCVCjF.cjs} +2 -2
- package/dist/chunks/luminous-B_-9G2GO.cjs +78 -0
- package/dist/chunks/luminous-iQ0lxR6o.js +73 -0
- package/dist/chunks/{lyrics-C4G2M58i.js → lyrics-BGUZPoYa.js} +2 -2
- package/dist/chunks/lyrics-CchUHmvY.cjs +1 -1
- package/dist/chunks/{manifest-C-95Gckp.js → manifest-D9SNkSNr.js} +2 -2
- package/dist/chunks/manifest-DWZv7bHQ.cjs +1 -1
- package/dist/chunks/{menu-D0jo561j.js → menu-7-UBhICx.js} +2 -2
- package/dist/chunks/menu-9GcThZZr.cjs +1 -1
- package/dist/chunks/{menu-toggle-DfImd7GH.js → menu-toggle-C4AUDeBM.js} +2 -2
- package/dist/chunks/menu-toggle-DcMQeRDt.cjs +1 -1
- package/dist/chunks/mo-name-DR9ysd5S.cjs +1 -1
- package/dist/chunks/mo-name-DT5wwaGR.js +1 -1
- package/dist/chunks/{nav-flyout-BklGeZ6_.js → nav-flyout-BlxMtN4W.js} +2 -2
- package/dist/chunks/nav-flyout-CrLUC54W.cjs +1 -1
- package/dist/chunks/{nav-morph-DbPrhAZe.js → nav-morph-BPpHX9Ez.js} +2 -2
- package/dist/chunks/nav-morph-DuNCH5WQ.cjs +1 -1
- package/dist/chunks/{otp-BicHkNV7.js → otp-BIrDvGU8.js} +2 -2
- package/dist/chunks/otp-W5drE539.cjs +1 -1
- package/dist/chunks/pagination-BH2ngIJB.cjs +1 -1
- package/dist/chunks/{pagination-YhHT5Tu2.js → pagination-CiU78ftj.js} +2 -2
- package/dist/chunks/{physics-playground-Cxcj4i13.js → physics-playground-BxUsW04z.js} +3 -3
- package/dist/chunks/{physics-playground-m9zHsri6.cjs → physics-playground-thOU1LWG.cjs} +2 -2
- package/dist/chunks/play-CTz93Nas.cjs +1 -1
- package/dist/chunks/{play-B1V6ejr7.js → play-KU8T1oaZ.js} +2 -2
- package/dist/chunks/{player-core-BeC-5HSm.js → player-core-BtZTI0Fz.js} +4 -4
- package/dist/chunks/player-core-CqR6WVaL.cjs +1 -1
- package/dist/chunks/presence-DKDktgSJ.cjs +1 -1
- package/dist/chunks/{presence-DP4MWxbz.js → presence-qE-_AKeD.js} +2 -2
- package/dist/chunks/presets-BYBVJVeP.js +1 -1
- package/dist/chunks/presets-CUHys3sK.cjs +1 -1
- package/dist/chunks/{preview-C0sWbNsF.js → preview-BNOUoHr9.js} +3 -3
- package/dist/chunks/preview-DGpXA2hJ.cjs +1 -1
- package/dist/chunks/{prize-wheel-CQdle8sb.js → prize-wheel-DTpQnQ23.js} +2 -2
- package/dist/chunks/prize-wheel-W_4Wvldc.cjs +1 -1
- package/dist/chunks/product-gallery-B5ra4XHf.cjs +1 -1
- package/dist/chunks/{product-gallery-DkLx-GA5.js → product-gallery-DUr6hkuf.js} +2 -2
- package/dist/chunks/{progress-ring-BBsjkFf2.js → progress-ring-BS7OogLs.js} +2 -2
- package/dist/chunks/progress-ring-YtKPU2jM.cjs +1 -1
- package/dist/chunks/{project-Sa13fIXw.js → project-D8KHFDHI.js} +4 -4
- package/dist/chunks/project-DIZ0UqvG.cjs +1 -1
- package/dist/chunks/{prop-panel-DlHuRGMl.js → prop-panel-C65BHNBP.js} +2 -2
- package/dist/chunks/prop-panel-CaR91ZOI.cjs +1 -1
- package/dist/chunks/{radar-CPk16rh6.js → radar-BIU0Yz3_.js} +2 -2
- package/dist/chunks/radar-CGKx_0Ug.cjs +1 -1
- package/dist/chunks/reactions-C8aoxmBM.cjs +1 -1
- package/dist/chunks/{reactions-CgytEgcC.js → reactions-hF5fzYX_.js} +2 -2
- package/dist/chunks/{registry-CYm_Tb0w.cjs → registry-BXffrwRX.cjs} +2 -2
- package/dist/chunks/{registry-Di_8M2Md.js → registry-DmYdTtl4.js} +2 -2
- package/dist/chunks/{registry-CWI1ob40.js → registry-DqP2DnFc.js} +2 -2
- package/dist/chunks/registry-_XKU28ZC.cjs +1 -1
- package/dist/chunks/retro-button-CFu0VcvW.cjs +1 -1
- package/dist/chunks/{retro-button-DZmsOnQZ.js → retro-button-W7RR6wC5.js} +2 -2
- package/dist/chunks/{rive-CuQrXqPv.js → rive-D7DZNUuN.js} +2 -2
- package/dist/chunks/rive-xzduMxFp.cjs +1 -1
- package/dist/chunks/{runtime-link-BepzGCtu.js → runtime-link-3gcNvLRM.js} +2 -2
- package/dist/chunks/{runtime-link-CdvAFKsO.cjs → runtime-link-Cg2k_SYg.cjs} +2 -2
- package/dist/chunks/{scene-DWRlvQ00.js → scene-COP9gX_F.js} +2 -2
- package/dist/chunks/scene-C_jNHfn4.cjs +1 -1
- package/dist/chunks/scroll-driven-CQbwzCdn.cjs +1 -1
- package/dist/chunks/scroll-driven-LghshrWq.js +1 -1
- package/dist/chunks/{scroll-scene-BRnibjdP.cjs → scroll-scene-BJfnsv7o.cjs} +3 -3
- package/dist/chunks/{scroll-scene-B9TSwnRw.js → scroll-scene-K_RyEk-2.js} +4 -4
- package/dist/chunks/{segmented-DV3fsjZA.js → segmented-C4QWn3G2.js} +2 -2
- package/dist/chunks/segmented-JA4E5-4e.cjs +1 -1
- package/dist/chunks/{shader-backdrop-DCUYQZs4.js → shader-backdrop-BjSIcvSf.js} +2 -2
- package/dist/chunks/shader-backdrop-Ct8UIKNL.cjs +1 -1
- 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-BzJEwGbk.cjs +1 -1
- package/dist/chunks/{sheet-syGvz3gI.js → sheet-DZd011Pc.js} +2 -2
- package/dist/chunks/sign-DvZ1jHxE.js +1 -1
- package/dist/chunks/sign-RAkQIWrM.cjs +1 -1
- package/dist/chunks/skeleton-reveal-04UV72HA.cjs +1 -1
- package/dist/chunks/{skeleton-reveal-B3MJyXtU.js → skeleton-reveal-C1w5G0dG.js} +2 -2
- package/dist/chunks/{sparkline-B6i28zLO.js → sparkline-CjKGcnI4.js} +2 -2
- package/dist/chunks/sparkline-b6jIA0JR.cjs +1 -1
- package/dist/chunks/{spring-Ddhxb3nO.js → spring-Bu3AwUgu.js} +2 -2
- package/dist/chunks/spring-DoapHVAk.cjs +1 -1
- package/dist/chunks/stagger-B9sKPwQB.js +1 -1
- package/dist/chunks/stagger-DFKwqOQG.cjs +1 -1
- package/dist/chunks/{suggestion-chips-BSTTrsXU.js → suggestion-chips-BEes6d7i.js} +2 -2
- package/dist/chunks/suggestion-chips-a0-diVWW.cjs +1 -1
- package/dist/chunks/{switch-B5ACriSq.js → switch-BRHtlbGk.js} +2 -2
- package/dist/chunks/switch-Cs6mszUY.cjs +1 -1
- package/dist/chunks/{tab-bar-B9EIsSde.js → tab-bar-Bl0c_Z2L.js} +2 -2
- package/dist/chunks/tab-bar-BvRhwu_Z.cjs +1 -1
- package/dist/chunks/{ticker-CEWigMxm.js → ticker-2JzTB1Rc.js} +2 -2
- package/dist/chunks/{ticker-D22gBWhA.cjs → ticker-BXI7ypXA.cjs} +2 -2
- package/dist/chunks/{tip-L4bEg80R.js → tip-BVeq5Vl_.js} +2 -2
- package/dist/chunks/tip-C4ZmZX3u.cjs +1 -1
- package/dist/chunks/{toast-stack-BAZcQeG8.js → toast-stack-CMgOdocD.js} +4 -4
- package/dist/chunks/{toast-stack-CvhLNj0o.cjs → toast-stack-DOE1cHRn.cjs} +2 -2
- package/dist/chunks/{tween-C0Vcrivp.cjs → tween-BQDNxJ6N.cjs} +2 -2
- package/dist/chunks/{tween-DBr6c0Np.js → tween-iwlQOY9w.js} +2 -2
- package/dist/chunks/{upload-progress-DHuh8F0L.js → upload-progress-Cxbh9qV2.js} +2 -2
- package/dist/chunks/upload-progress-Dw3IXtf8.cjs +1 -1
- package/dist/chunks/{v2-BGAJ5peo.js → v2-BRjQxrf_.js} +3 -3
- package/dist/chunks/v2-Z2M3Ef0Y.cjs +1 -1
- package/dist/chunks/v3-read-BNhrN3tL.cjs +1 -1
- package/dist/chunks/v3-read-BqgIjLQP.js +1 -1
- package/dist/chunks/{variants-DGFs5iIp.js → variants-D_Vmflhf.js} +2 -2
- package/dist/chunks/variants-OGnKHKwT.cjs +1 -1
- package/dist/chunks/viewport-BAXHhZLV.js +1 -1
- package/dist/chunks/viewport-EFYGqMNa.cjs +1 -1
- package/dist/chunks/voice-button-CjB9Skfp.cjs +1 -1
- package/dist/chunks/{voice-button-B_ursjZX.js → voice-button-DsvWmYoO.js} +2 -2
- package/dist/chunks/weather-card-DjTGZGrl.cjs +1 -1
- package/dist/chunks/{weather-card-Bro03MyD.js → weather-card-Dszcrytm.js} +2 -2
- package/dist/chunks/{worker-canvas-BQ31D84x.js → worker-canvas-Cob4mssI.js} +2 -2
- package/dist/chunks/worker-canvas-DgGkosGe.cjs +1 -1
- package/dist/chunks/{xp-bar-CIdfQQOK.js → xp-bar-BnKM8ws2.js} +2 -2
- package/dist/chunks/xp-bar-CgH7Z424.cjs +1 -1
- package/dist/components/a11y.cjs +2 -2
- package/dist/components/a11y.js +4 -4
- package/dist/components/ai.cjs +1 -1
- package/dist/components/ai.js +1 -1
- package/dist/components/angular.cjs +2 -2
- package/dist/components/angular.d.cts +75 -215
- package/dist/components/angular.d.ts +75 -215
- package/dist/components/angular.js +2 -2
- package/dist/components/background.cjs +1 -1
- package/dist/components/background.css +6 -6
- package/dist/components/background.js +3 -3
- package/dist/components/bridge.cjs +1 -1
- package/dist/components/bridge.js +2 -2
- package/dist/components/cards.cjs +1 -1
- package/dist/components/cards.css +4 -4
- package/dist/components/cards.js +3 -3
- package/dist/components/click.cjs +1 -1
- package/dist/components/click.css +7 -7
- 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 +1 -1
- package/dist/components/depth.css +1 -1
- package/dist/components/depth.js +4 -4
- package/dist/components/design.cjs +1 -1
- package/dist/components/design.js +2 -2
- package/dist/components/dotlottie.cjs +3 -3
- package/dist/components/dotlottie.js +4 -4
- package/dist/components/dsl.cjs +1 -1
- package/dist/components/dsl.js +2 -2
- package/dist/components/effects.cjs +1 -1
- package/dist/components/effects.js +10 -10
- package/dist/components/engine.cjs +1 -1
- package/dist/components/engine.js +3 -3
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.css +5 -5
- package/dist/components/feedback.js +2 -2
- package/dist/components/fx-3d.cjs +1 -1
- package/dist/components/fx-3d.js +3 -3
- package/dist/components/fx-ai.cjs +1 -1
- package/dist/components/fx-ai.js +2 -2
- package/dist/components/fx-chart.cjs +1 -1
- package/dist/components/fx-chart.js +2 -2
- package/dist/components/fx-cinema.cjs +1 -1
- package/dist/components/fx-cinema.js +2 -2
- package/dist/components/fx-cyber.cjs +1 -1
- package/dist/components/fx-cyber.js +2 -2
- package/dist/components/fx-festival.cjs +1 -1
- package/dist/components/fx-festival.js +2 -2
- package/dist/components/fx-focus.cjs +1 -1
- package/dist/components/fx-focus.js +2 -2
- package/dist/components/fx-form.cjs +1 -1
- package/dist/components/fx-form.js +2 -2
- package/dist/components/fx-game.cjs +1 -1
- package/dist/components/fx-game.js +2 -2
- package/dist/components/fx-genart.cjs +1 -1
- package/dist/components/fx-genart.js +2 -2
- package/dist/components/fx-geo.cjs +1 -1
- package/dist/components/fx-geo.js +2 -2
- package/dist/components/fx-gesture.cjs +1 -1
- package/dist/components/fx-gesture.js +2 -2
- package/dist/components/fx-gpu.cjs +1 -1
- package/dist/components/fx-gpu.js +4 -4
- package/dist/components/fx-hover.cjs +1 -1
- package/dist/components/fx-hover.js +3 -3
- package/dist/components/fx-light.cjs +1 -1
- package/dist/components/fx-light.js +4 -4
- package/dist/components/fx-lottie.cjs +1 -1
- package/dist/components/fx-lottie.js +2 -2
- package/dist/components/fx-morph.cjs +1 -1
- package/dist/components/fx-morph.js +2 -2
- package/dist/components/fx-music.cjs +1 -1
- package/dist/components/fx-music.js +5 -5
- package/dist/components/fx-organic.cjs +1 -1
- package/dist/components/fx-organic.js +2 -2
- package/dist/components/fx-paper.cjs +1 -1
- package/dist/components/fx-paper.js +2 -2
- package/dist/components/fx-perf.cjs +1 -1
- package/dist/components/fx-perf.js +3 -3
- package/dist/components/fx-physics.cjs +1 -1
- package/dist/components/fx-physics.js +4 -4
- package/dist/components/fx-retro.cjs +1 -1
- package/dist/components/fx-retro.js +2 -2
- package/dist/components/fx-safe.cjs +1 -1
- package/dist/components/fx-safe.js +3 -3
- package/dist/components/fx-shop.cjs +1 -1
- package/dist/components/fx-shop.js +2 -2
- package/dist/components/fx-social.cjs +1 -1
- package/dist/components/fx-social.js +2 -2
- package/dist/components/fx-spatial.cjs +1 -1
- package/dist/components/fx-spatial.js +2 -2
- package/dist/components/fx-surface.cjs +1 -1
- package/dist/components/fx-surface.js +2 -2
- package/dist/components/fx-text.cjs +1 -1
- package/dist/components/fx-text.js +3 -3
- package/dist/components/fx-transitions.cjs +1 -1
- package/dist/components/fx-transitions.js +4 -4
- package/dist/components/fx-video.cjs +1 -1
- package/dist/components/fx-video.js +3 -3
- package/dist/components/fx-weather.cjs +1 -1
- package/dist/components/fx-weather.js +3 -3
- package/dist/components/fx.cjs +1 -1
- package/dist/components/fx.js +5 -5
- package/dist/components/fx2.cjs +1 -1
- package/dist/components/fx2.js +5 -5
- package/dist/components/gesture.cjs +1 -1
- package/dist/components/gesture.css +1 -1
- package/dist/components/gesture.js +5 -5
- package/dist/components/gl-model.cjs +3 -3
- 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 +1 -1
- package/dist/components/interaction.css +5 -5
- package/dist/components/interaction.js +2 -2
- package/dist/components/jsx.cjs +1 -1
- package/dist/components/jsx.d.cts +75 -215
- package/dist/components/jsx.d.ts +75 -215
- package/dist/components/jsx.js +1 -1
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.css +1 -1
- package/dist/components/layout.js +2 -2
- package/dist/components/lazy.cjs +1 -1
- package/dist/components/lazy.js +1 -1
- package/dist/components/lite.cjs +90 -88
- package/dist/components/lite.js +90 -88
- package/dist/components/marketplace.cjs +1 -1
- package/dist/components/marketplace.js +3 -3
- package/dist/components/mo.cjs +71 -70
- package/dist/components/mo.d.cts +1315 -4
- package/dist/components/mo.d.ts +1315 -4
- package/dist/components/mo.js +72 -71
- package/dist/components/motion-layout.cjs +1 -1
- package/dist/components/motion-layout.js +3 -3
- package/dist/components/motion-scene.cjs +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/offscreen.js +3 -3
- package/dist/components/packs.cjs +1 -1
- package/dist/components/packs.js +2 -2
- package/dist/components/page.cjs +1 -1
- package/dist/components/page.css +8 -8
- package/dist/components/page.js +4 -4
- package/dist/components/perf-tasks.cjs +1 -1
- package/dist/components/perf-tasks.js +2 -2
- package/dist/components/perf.cjs +1 -1
- package/dist/components/perf.js +3 -3
- package/dist/components/physics.cjs +1 -1
- package/dist/components/physics.css +3 -3
- package/dist/components/physics.js +4 -4
- package/dist/components/plugins.cjs +1 -1
- package/dist/components/plugins.js +2 -2
- package/dist/components/react.cjs +1 -1
- package/dist/components/react.js +1 -1
- package/dist/components/reveal.cjs +1 -1
- package/dist/components/reveal.css +3 -3
- 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 +1 -1
- package/dist/components/scene-v2.js +2 -2
- package/dist/components/scene-v3.cjs +1 -1
- package/dist/components/scene-v3.js +2 -2
- package/dist/components/snap-carousel.cjs +2 -2
- package/dist/components/snap-carousel.js +3 -3
- package/dist/components/solid.cjs +1 -1
- package/dist/components/solid.d.cts +55 -214
- package/dist/components/solid.d.ts +55 -214
- 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 +1 -1
- package/dist/components/studio-ai.js +4 -4
- package/dist/components/studio-app.cjs +1 -1
- package/dist/components/studio-app.js +4 -4
- package/dist/components/studio-assets.cjs +1 -1
- 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 +1 -1
- package/dist/components/studio-canvas.js +3 -3
- package/dist/components/studio-export.cjs +1 -1
- package/dist/components/studio-export.js +4 -4
- package/dist/components/studio-native.cjs +1 -1
- package/dist/components/studio-native.js +3 -3
- package/dist/components/studio-plugins.cjs +1 -1
- package/dist/components/studio-plugins.js +1 -1
- package/dist/components/studio-provenance.cjs +1 -1
- package/dist/components/studio-provenance.js +1 -1
- package/dist/components/studio-store.cjs +1 -1
- package/dist/components/studio-store.js +1 -1
- package/dist/components/studio-templates.cjs +1 -1
- package/dist/components/studio-templates.js +2 -2
- package/dist/components/studio.cjs +1 -1
- package/dist/components/studio.js +7 -7
- package/dist/components/svelte.cjs +1 -1
- package/dist/components/svelte.d.cts +75 -215
- package/dist/components/svelte.d.ts +75 -215
- package/dist/components/svelte.js +1 -1
- package/dist/components/svg.cjs +1 -1
- package/dist/components/svg.css +1 -1
- package/dist/components/svg.js +2 -2
- package/dist/components/text.cjs +1 -1
- package/dist/components/text.css +6 -6
- package/dist/components/text.js +3 -3
- package/dist/components/timeline-editor.cjs +1 -1
- package/dist/components/timeline-editor.js +5 -5
- package/dist/components/timeline.cjs +1 -1
- package/dist/components/timeline.css +1 -1
- 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 +1 -1
- package/dist/components/transitions.css +3 -3
- package/dist/components/transitions.js +2 -2
- package/dist/components/ui.cjs +1 -1
- package/dist/components/ui.css +9 -9
- package/dist/components/ui.js +5 -5
- package/dist/components/vue.cjs +2 -2
- package/dist/components/vue.d.cts +75 -215
- package/dist/components/vue.d.ts +75 -215
- package/dist/components/vue.js +2 -2
- package/dist/components/webgl.cjs +1 -1
- package/dist/components/webgl.css +1 -1
- package/dist/components/webgl.js +2 -2
- package/dist/components/widgets.cjs +26 -7
- package/dist/components/widgets.d.cts +75 -2
- package/dist/components/widgets.d.ts +75 -2
- package/dist/components/widgets.js +114 -104
- package/dist/components.cjs +1 -1
- package/dist/components.css +66 -66
- package/dist/components.js +11 -11
- package/dist/components.umd.js +3 -3
- package/dist/effects/achievement-unlock.cjs +1 -1
- package/dist/effects/achievement-unlock.js +2 -2
- package/dist/effects/aurora-veil.cjs +1 -1
- package/dist/effects/aurora-veil.js +2 -2
- package/dist/effects/badge-pop.cjs +1 -1
- package/dist/effects/badge-pop.js +2 -2
- package/dist/effects/bars-grow.cjs +1 -1
- package/dist/effects/bars-grow.js +2 -2
- package/dist/effects/beat-bounce.cjs +1 -1
- package/dist/effects/beat-bounce.js +2 -2
- package/dist/effects/blob-button.cjs +1 -1
- package/dist/effects/blob-button.js +2 -2
- package/dist/effects/bloom.cjs +1 -1
- package/dist/effects/bloom.js +2 -2
- package/dist/effects/breathe.cjs +1 -1
- package/dist/effects/breathe.js +2 -2
- package/dist/effects/brushed-metal.cjs +1 -1
- package/dist/effects/brushed-metal.js +2 -2
- package/dist/effects/camera-dolly.cjs +1 -1
- package/dist/effects/camera-dolly.js +2 -2
- package/dist/effects/card-flip-3d.cjs +1 -1
- package/dist/effects/card-flip-3d.js +2 -2
- package/dist/effects/chest-open.cjs +1 -1
- package/dist/effects/chest-open.js +2 -2
- package/dist/effects/cloth.cjs +1 -1
- package/dist/effects/cloth.js +2 -2
- package/dist/effects/coin-burst.cjs +1 -1
- package/dist/effects/coin-burst.js +2 -2
- package/dist/effects/color-pulse.cjs +1 -1
- package/dist/effects/color-pulse.js +2 -2
- package/dist/effects/crt-power.cjs +1 -1
- package/dist/effects/crt-power.js +2 -2
- package/dist/effects/crumple.cjs +1 -1
- package/dist/effects/crumple.js +2 -2
- package/dist/effects/data-decode.cjs +1 -1
- package/dist/effects/data-decode.js +2 -2
- package/dist/effects/day-cycle.cjs +1 -1
- package/dist/effects/day-cycle.js +2 -2
- package/dist/effects/depth-in.cjs +1 -1
- package/dist/effects/depth-in.js +2 -2
- package/dist/effects/depth-pop.cjs +1 -1
- package/dist/effects/depth-pop.js +2 -2
- package/dist/effects/depth-stack.cjs +1 -1
- package/dist/effects/depth-stack.js +2 -2
- package/dist/effects/dolly-in.cjs +1 -1
- package/dist/effects/dolly-in.js +2 -2
- package/dist/effects/dots-pop.cjs +1 -1
- package/dist/effects/dots-pop.js +2 -2
- package/dist/effects/field-shake.cjs +1 -1
- package/dist/effects/field-shake.js +2 -2
- package/dist/effects/field-success.cjs +1 -1
- package/dist/effects/field-success.js +2 -2
- package/dist/effects/film-burn.cjs +1 -1
- package/dist/effects/film-burn.js +2 -2
- package/dist/effects/fire.cjs +1 -1
- package/dist/effects/fire.js +3 -3
- package/dist/effects/fireflies.cjs +1 -1
- package/dist/effects/fireflies.js +3 -3
- package/dist/effects/firework-burst.cjs +1 -1
- package/dist/effects/firework-burst.js +2 -2
- package/dist/effects/flip-chars.cjs +1 -1
- package/dist/effects/flip-chars.js +2 -2
- package/dist/effects/fluid.cjs +1 -1
- package/dist/effects/fluid.js +3 -3
- package/dist/effects/fly-to-cart.cjs +1 -1
- package/dist/effects/fly-to-cart.js +2 -2
- package/dist/effects/focus-draw.cjs +1 -1
- package/dist/effects/focus-draw.js +2 -2
- package/dist/effects/focus-glow.cjs +1 -1
- package/dist/effects/focus-glow.js +2 -2
- package/dist/effects/focus-reveal.cjs +1 -1
- package/dist/effects/focus-reveal.js +2 -2
- package/dist/effects/fog.cjs +1 -1
- package/dist/effects/fog.js +2 -2
- package/dist/effects/font-breathe.cjs +1 -1
- package/dist/effects/font-breathe.js +2 -2
- package/dist/effects/form-cascade.cjs +1 -1
- package/dist/effects/form-cascade.js +2 -2
- package/dist/effects/gen-skeleton.cjs +1 -1
- package/dist/effects/gen-skeleton.js +2 -2
- package/dist/effects/glass-frost.cjs +1 -1
- package/dist/effects/glass-frost.js +2 -2
- package/dist/effects/glitch-text.cjs +1 -1
- package/dist/effects/glitch-text.js +2 -2
- package/dist/effects/globe-spin.cjs +1 -1
- package/dist/effects/globe-spin.js +2 -2
- package/dist/effects/god-rays.cjs +1 -1
- package/dist/effects/god-rays.js +2 -2
- package/dist/effects/googly-eyes.cjs +1 -1
- package/dist/effects/googly-eyes.js +2 -2
- package/dist/effects/gpu-lift.cjs +1 -1
- package/dist/effects/gpu-lift.js +2 -2
- package/dist/effects/grain-flicker.cjs +1 -1
- package/dist/effects/grain-flicker.js +2 -2
- package/dist/effects/grid-warp.cjs +1 -1
- package/dist/effects/grid-warp.js +2 -2
- package/dist/effects/halftone-in.cjs +1 -1
- package/dist/effects/halftone-in.js +2 -2
- package/dist/effects/highlight-sweep.cjs +1 -1
- package/dist/effects/highlight-sweep.js +2 -2
- package/dist/effects/hologram.cjs +1 -1
- package/dist/effects/hologram.js +2 -2
- package/dist/effects/hud-frame.cjs +1 -1
- package/dist/effects/hud-frame.js +2 -2
- package/dist/effects/icon-pop.cjs +1 -1
- package/dist/effects/icon-pop.js +2 -2
- package/dist/effects/icon-swap.cjs +1 -1
- package/dist/effects/icon-swap.js +2 -2
- package/dist/effects/idle-reveal.cjs +1 -1
- package/dist/effects/idle-reveal.js +2 -2
- package/dist/effects/image-swap.cjs +1 -1
- package/dist/effects/image-swap.js +2 -2
- package/dist/effects/ink.cjs +1 -1
- package/dist/effects/ink.js +3 -3
- package/dist/effects/jump-cut.cjs +1 -1
- package/dist/effects/jump-cut.js +2 -2
- package/dist/effects/kaleido.cjs +1 -1
- package/dist/effects/kaleido.js +2 -2
- package/dist/effects/label-float.cjs +1 -1
- package/dist/effects/label-float.js +2 -2
- package/dist/effects/lantern-rise.cjs +1 -1
- package/dist/effects/lantern-rise.js +2 -2
- package/dist/effects/leaves.cjs +1 -1
- package/dist/effects/leaves.js +3 -3
- package/dist/effects/letterbox.cjs +1 -1
- package/dist/effects/letterbox.js +2 -2
- package/dist/effects/level-up.cjs +1 -1
- package/dist/effects/level-up.js +2 -2
- package/dist/effects/light-follow.cjs +1 -1
- package/dist/effects/light-follow.js +2 -2
- package/dist/effects/lightning.cjs +1 -1
- package/dist/effects/lightning.js +2 -2
- package/dist/effects/line-draw.cjs +1 -1
- package/dist/effects/line-draw.js +2 -2
- package/dist/effects/liquid-text.cjs +1 -1
- package/dist/effects/liquid-text.js +2 -2
- package/dist/effects/liquid-wipe.cjs +1 -1
- package/dist/effects/liquid-wipe.js +2 -2
- package/dist/effects/lottie-play.cjs +1 -1
- package/dist/effects/lottie-play.js +2 -2
- package/dist/effects/magnet.cjs +1 -1
- package/dist/effects/magnet.js +2 -2
- package/dist/effects/marching-ants.cjs +1 -1
- package/dist/effects/marching-ants.js +2 -2
- package/dist/effects/marker-pulse.cjs +1 -1
- package/dist/effects/marker-pulse.js +2 -2
- package/dist/effects/mention-glow.cjs +1 -1
- package/dist/effects/mention-glow.js +2 -2
- package/dist/effects/mesh-drift.cjs +1 -1
- package/dist/effects/mesh-drift.js +2 -2
- package/dist/effects/message-in.cjs +1 -1
- package/dist/effects/message-in.js +2 -2
- package/dist/effects/mosaic-flip.cjs +1 -1
- package/dist/effects/mosaic-flip.js +2 -2
- package/dist/effects/neon-ignite.cjs +1 -1
- package/dist/effects/neon-ignite.js +2 -2
- package/dist/effects/neon-pulse.cjs +1 -1
- package/dist/effects/neon-pulse.js +2 -2
- package/dist/effects/neon-write.cjs +1 -1
- package/dist/effects/neon-write.js +2 -2
- package/dist/effects/neu-press.cjs +1 -1
- package/dist/effects/neu-press.js +2 -2
- package/dist/effects/noise-reveal.cjs +1 -1
- package/dist/effects/noise-reveal.js +2 -2
- package/dist/effects/number-roll.cjs +1 -1
- package/dist/effects/number-roll.js +2 -2
- package/dist/effects/orbit-camera.cjs +1 -1
- package/dist/effects/orbit-camera.js +2 -2
- package/dist/effects/orbit-in.cjs +1 -1
- package/dist/effects/orbit-in.js +2 -2
- package/dist/effects/origami.cjs +1 -1
- package/dist/effects/origami.js +2 -2
- package/dist/effects/page-curl.cjs +1 -1
- package/dist/effects/page-curl.js +2 -2
- package/dist/effects/pan-reveal.cjs +1 -1
- package/dist/effects/pan-reveal.js +2 -2
- package/dist/effects/paper-unfold.cjs +1 -1
- package/dist/effects/paper-unfold.js +2 -2
- package/dist/effects/particle-text.cjs +1 -1
- package/dist/effects/particle-text.js +2 -2
- package/dist/effects/path-morph.cjs +1 -1
- package/dist/effects/path-morph.js +2 -2
- package/dist/effects/pearlescent.cjs +1 -1
- package/dist/effects/pearlescent.js +2 -2
- package/dist/effects/pencil-sketch.cjs +1 -1
- package/dist/effects/pencil-sketch.js +2 -2
- package/dist/effects/pin-drop.cjs +1 -1
- package/dist/effects/pin-drop.js +2 -2
- package/dist/effects/pinball.cjs +1 -1
- package/dist/effects/pinball.js +2 -2
- package/dist/effects/pinch-hint.cjs +1 -1
- package/dist/effects/pinch-hint.js +2 -2
- package/dist/effects/pixelate-in.cjs +1 -1
- package/dist/effects/pixelate-in.js +2 -2
- package/dist/effects/pointer-shadow.cjs +1 -1
- package/dist/effects/pointer-shadow.js +2 -2
- package/dist/effects/portal-open.cjs +1 -1
- package/dist/effects/portal-open.js +2 -2
- package/dist/effects/price-flip.cjs +1 -1
- package/dist/effects/price-flip.js +2 -2
- package/dist/effects/product-spin.cjs +1 -1
- package/dist/effects/product-spin.js +2 -2
- package/dist/effects/rack-focus.cjs +1 -1
- package/dist/effects/rack-focus.js +2 -2
- package/dist/effects/radial-spectrum.cjs +1 -1
- package/dist/effects/radial-spectrum.js +2 -2
- package/dist/effects/rain-glass.cjs +1 -1
- package/dist/effects/rain-glass.js +2 -2
- package/dist/effects/reaction-burst.cjs +1 -1
- package/dist/effects/reaction-burst.js +2 -2
- package/dist/effects/read-receipt.cjs +1 -1
- package/dist/effects/read-receipt.js +2 -2
- package/dist/effects/refraction.cjs +1 -1
- package/dist/effects/refraction.js +2 -2
- package/dist/effects/ring-sweep.cjs +1 -1
- package/dist/effects/ring-sweep.js +2 -2
- package/dist/effects/ripple-dissolve.cjs +1 -1
- package/dist/effects/ripple-dissolve.js +2 -2
- package/dist/effects/rope.cjs +1 -1
- package/dist/effects/rope.js +2 -2
- package/dist/effects/route-draw.cjs +1 -1
- package/dist/effects/route-draw.js +2 -2
- package/dist/effects/safe-fade.cjs +1 -1
- package/dist/effects/safe-fade.js +2 -2
- package/dist/effects/sakura.cjs +1 -1
- package/dist/effects/sakura.js +3 -3
- package/dist/effects/sale-shine.cjs +1 -1
- package/dist/effects/sale-shine.js +2 -2
- package/dist/effects/sankey-flow.cjs +1 -1
- package/dist/effects/sankey-flow.js +2 -2
- package/dist/effects/scanline-sweep.cjs +1 -1
- package/dist/effects/scanline-sweep.js +2 -2
- package/dist/effects/shatter.cjs +1 -1
- package/dist/effects/shatter.js +2 -2
- package/dist/effects/smoke.cjs +1 -1
- package/dist/effects/smoke.js +3 -3
- package/dist/effects/snowfall.cjs +1 -1
- package/dist/effects/snowfall.js +2 -2
- package/dist/effects/soft-body.cjs +1 -1
- package/dist/effects/soft-body.js +2 -2
- package/dist/effects/sound-particles.cjs +1 -1
- package/dist/effects/sound-particles.js +2 -2
- package/dist/effects/spatial-float.cjs +1 -1
- package/dist/effects/spatial-float.js +2 -2
- package/dist/effects/spectrum-mirror.cjs +1 -1
- package/dist/effects/spectrum-mirror.js +2 -2
- package/dist/effects/splash.cjs +1 -1
- package/dist/effects/splash.js +3 -3
- package/dist/effects/spooky-float.cjs +1 -1
- package/dist/effects/spooky-float.js +2 -2
- package/dist/effects/stock-pulse.cjs +1 -1
- package/dist/effects/stock-pulse.js +2 -2
- package/dist/effects/stream-text.cjs +1 -1
- package/dist/effects/stream-text.js +2 -2
- package/dist/effects/stroke-draw.cjs +1 -1
- package/dist/effects/stroke-draw.js +2 -2
- package/dist/effects/success-check.cjs +1 -1
- package/dist/effects/success-check.js +2 -2
- package/dist/effects/swipe-hint.cjs +1 -1
- package/dist/effects/swipe-hint.js +2 -2
- package/dist/effects/text-roll.cjs +1 -1
- package/dist/effects/text-roll.js +2 -2
- package/dist/effects/text-trail.cjs +1 -1
- package/dist/effects/text-trail.js +2 -2
- package/dist/effects/thinking-glow.cjs +1 -1
- package/dist/effects/thinking-glow.js +2 -2
- package/dist/effects/tilt-wobble.cjs +1 -1
- package/dist/effects/tilt-wobble.js +2 -2
- package/dist/effects/typing-dots.cjs +1 -1
- package/dist/effects/typing-dots.js +2 -2
- package/dist/effects/underline-sweep.cjs +1 -1
- package/dist/effects/underline-sweep.js +2 -2
- package/dist/effects/vhs-glitch.cjs +1 -1
- package/dist/effects/vhs-glitch.js +2 -2
- package/dist/effects/vine-grow.cjs +1 -1
- package/dist/effects/vine-grow.js +2 -2
- package/dist/effects/vinyl-spin.cjs +1 -1
- package/dist/effects/vinyl-spin.js +2 -2
- package/dist/effects/voice-wave.cjs +1 -1
- package/dist/effects/voice-wave.js +2 -2
- package/dist/effects/water-drop.cjs +1 -1
- package/dist/effects/water-drop.js +2 -2
- package/dist/effects/watercolor.cjs +1 -1
- package/dist/effects/watercolor.js +2 -2
- package/dist/effects/waveform-scope.cjs +1 -1
- package/dist/effects/waveform-scope.js +2 -2
- package/dist/effects/xmas-snow.cjs +1 -1
- package/dist/effects/xmas-snow.js +2 -2
- package/dist/effects/xp-gain.cjs +1 -1
- package/dist/effects/xp-gain.js +2 -2
- package/dist/effects/y2k-shine.cjs +1 -1
- 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 +1 -1
- package/dist/index.js +2 -2
- package/dist/index.umd.js +1 -1
- package/dist/llms.txt +11 -2
- package/dist/manifest.json +1 -1
- 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 +1 -1
- package/dist/widgets/add-to-cart.js +4 -4
- package/dist/widgets/badge-wall.cjs +1 -1
- package/dist/widgets/badge-wall.js +2 -2
- package/dist/widgets/bar-chart.cjs +1 -1
- package/dist/widgets/bar-chart.js +2 -2
- package/dist/widgets/bg-generator.cjs +1 -1
- package/dist/widgets/bg-generator.js +2 -2
- package/dist/widgets/breadcrumbs.cjs +1 -1
- package/dist/widgets/breadcrumbs.js +2 -2
- package/dist/widgets/carousel.cjs +1 -1
- package/dist/widgets/carousel.js +2 -2
- package/dist/widgets/cart-drawer.cjs +1 -1
- package/dist/widgets/cart-drawer.js +2 -2
- package/dist/widgets/chapter-nav.cjs +1 -1
- package/dist/widgets/chapter-nav.js +2 -2
- package/dist/widgets/chat-composer.cjs +1 -1
- package/dist/widgets/chat-composer.js +2 -2
- package/dist/widgets/clock-control.cjs +1 -1
- package/dist/widgets/clock-control.js +2 -2
- package/dist/widgets/code-export.cjs +1 -1
- package/dist/widgets/code-export.js +2 -2
- package/dist/widgets/color-picker.cjs +1 -1
- package/dist/widgets/color-picker.js +2 -2
- package/dist/widgets/command-palette.cjs +1 -1
- package/dist/widgets/command-palette.js +2 -2
- package/dist/widgets/compare.cjs +1 -1
- package/dist/widgets/compare.js +2 -2
- package/dist/widgets/countdown.cjs +1 -1
- package/dist/widgets/countdown.js +2 -2
- package/dist/widgets/cube-gallery.cjs +1 -1
- package/dist/widgets/cube-gallery.js +2 -2
- package/dist/widgets/date-picker.cjs +1 -1
- package/dist/widgets/date-picker.js +2 -2
- package/dist/widgets/disclosure.cjs +1 -1
- package/dist/widgets/disclosure.js +3 -3
- package/dist/widgets/dock.cjs +1 -1
- package/dist/widgets/dock.js +2 -2
- package/dist/widgets/dotlottie.cjs +1 -1
- package/dist/widgets/dotlottie.js +1 -1
- package/dist/widgets/download-menu.cjs +41 -0
- package/dist/widgets/download-menu.d.cts +1 -0
- package/dist/widgets/download-menu.d.ts +1 -0
- package/dist/widgets/download-menu.js +39 -0
- package/dist/widgets/equalizer.cjs +1 -1
- package/dist/widgets/equalizer.js +2 -2
- package/dist/widgets/festival-banner.cjs +1 -1
- package/dist/widgets/festival-banner.js +2 -2
- package/dist/widgets/field.cjs +1 -1
- package/dist/widgets/field.js +2 -2
- package/dist/widgets/file-drop.cjs +1 -1
- package/dist/widgets/file-drop.js +2 -2
- package/dist/widgets/file-tree.cjs +45 -0
- package/dist/widgets/file-tree.d.cts +1 -0
- package/dist/widgets/file-tree.d.ts +1 -0
- package/dist/widgets/file-tree.js +43 -0
- package/dist/widgets/fullscreen-menu.cjs +1 -1
- package/dist/widgets/fullscreen-menu.js +2 -2
- package/dist/widgets/gauge.cjs +1 -1
- package/dist/widgets/gauge.js +2 -2
- package/dist/widgets/gen-art.cjs +1 -1
- package/dist/widgets/gen-art.js +2 -2
- package/dist/widgets/gesture-sticker.cjs +1 -1
- 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 +1 -1
- package/dist/widgets/globe.js +2 -2
- package/dist/widgets/gpu-particles.cjs +1 -1
- package/dist/widgets/gpu-particles.js +2 -2
- package/dist/widgets/gyro-card.cjs +1 -1
- package/dist/widgets/gyro-card.js +2 -2
- package/dist/widgets/halo-segmented.cjs +99 -0
- package/dist/widgets/halo-segmented.d.cts +2 -0
- package/dist/widgets/halo-segmented.d.ts +2 -0
- package/dist/widgets/halo-segmented.js +97 -0
- package/dist/widgets/halo-slider.cjs +84 -0
- package/dist/widgets/halo-slider.d.cts +2 -0
- package/dist/widgets/halo-slider.d.ts +2 -0
- package/dist/widgets/halo-slider.js +82 -0
- package/dist/widgets/hero-video.cjs +1 -1
- package/dist/widgets/hero-video.js +2 -2
- package/dist/widgets/hud-panel.cjs +1 -1
- package/dist/widgets/hud-panel.js +2 -2
- package/dist/widgets/hydrate.cjs +1 -1
- package/dist/widgets/hydrate.js +2 -2
- package/dist/widgets/install-button.cjs +1 -1
- package/dist/widgets/install-button.js +2 -2
- package/dist/widgets/kanban.cjs +1 -1
- package/dist/widgets/kanban.js +2 -2
- package/dist/widgets/keyframe-editor.cjs +1 -1
- package/dist/widgets/keyframe-editor.js +3 -3
- package/dist/widgets/kpi.cjs +1 -1
- package/dist/widgets/kpi.js +2 -2
- package/dist/widgets/leaderboard.cjs +1 -1
- package/dist/widgets/leaderboard.js +2 -2
- package/dist/widgets/liquid-nav.cjs +1 -1
- package/dist/widgets/liquid-nav.js +2 -2
- package/dist/widgets/location-card.cjs +1 -1
- package/dist/widgets/location-card.js +2 -2
- package/dist/widgets/lottie-icon.cjs +1 -1
- 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 +1 -1
- package/dist/widgets/lottie.js +2 -2
- package/dist/widgets/luminous-switch.cjs +84 -0
- package/dist/widgets/luminous-switch.d.cts +2 -0
- package/dist/widgets/luminous-switch.d.ts +2 -0
- package/dist/widgets/luminous-switch.js +82 -0
- package/dist/widgets/lyrics.cjs +1 -1
- package/dist/widgets/lyrics.js +2 -2
- package/dist/widgets/masonry-flow.cjs +1 -1
- package/dist/widgets/masonry-flow.js +2 -2
- package/dist/widgets/mega-menu.cjs +1 -1
- package/dist/widgets/mega-menu.js +2 -2
- package/dist/widgets/menu-toggle.cjs +1 -1
- package/dist/widgets/menu-toggle.js +2 -2
- package/dist/widgets/menu.cjs +1 -1
- package/dist/widgets/menu.js +2 -2
- package/dist/widgets/message-list.cjs +1 -1
- package/dist/widgets/message-list.js +2 -2
- package/dist/widgets/milestones.cjs +1 -1
- package/dist/widgets/milestones.js +2 -2
- package/dist/widgets/modal.cjs +1 -1
- package/dist/widgets/modal.js +2 -2
- package/dist/widgets/motion-inspector.cjs +2 -2
- package/dist/widgets/motion-inspector.js +3 -3
- package/dist/widgets/motion-prefs.cjs +1 -1
- package/dist/widgets/motion-prefs.js +2 -2
- package/dist/widgets/motion-prompt.cjs +1 -1
- package/dist/widgets/motion-prompt.js +2 -2
- package/dist/widgets/motion-spec.cjs +1 -1
- package/dist/widgets/motion-spec.js +2 -2
- package/dist/widgets/motion.cjs +1 -1
- package/dist/widgets/motion.js +2 -2
- package/dist/widgets/music-player.cjs +1 -1
- package/dist/widgets/music-player.js +2 -2
- package/dist/widgets/native-preview.cjs +1 -1
- package/dist/widgets/native-preview.js +2 -2
- package/dist/widgets/nav-flyout.cjs +1 -1
- package/dist/widgets/nav-flyout.js +2 -2
- package/dist/widgets/nav-morph.cjs +1 -1
- package/dist/widgets/nav-morph.js +2 -2
- package/dist/widgets/notification-bell.cjs +1 -1
- package/dist/widgets/notification-bell.js +2 -2
- package/dist/widgets/odometer.cjs +1 -1
- package/dist/widgets/odometer.js +2 -2
- package/dist/widgets/orbit-progress.cjs +53 -0
- package/dist/widgets/orbit-progress.d.cts +2 -0
- package/dist/widgets/orbit-progress.d.ts +2 -0
- package/dist/widgets/orbit-progress.js +51 -0
- package/dist/widgets/organic-card.cjs +1 -1
- package/dist/widgets/organic-card.js +2 -2
- package/dist/widgets/otp.cjs +1 -1
- package/dist/widgets/otp.js +2 -2
- package/dist/widgets/pagination.cjs +1 -1
- package/dist/widgets/pagination.js +2 -2
- package/dist/widgets/panorama.cjs +1 -1
- package/dist/widgets/panorama.js +2 -2
- package/dist/widgets/parallax-layers.cjs +1 -1
- package/dist/widgets/parallax-layers.js +2 -2
- package/dist/widgets/particle-button.cjs +64 -0
- package/dist/widgets/particle-button.d.cts +2 -0
- package/dist/widgets/particle-button.d.ts +2 -0
- package/dist/widgets/particle-button.js +62 -0
- package/dist/widgets/particle-icon.cjs +41 -0
- package/dist/widgets/particle-icon.d.cts +2 -0
- package/dist/widgets/particle-icon.d.ts +2 -0
- package/dist/widgets/particle-icon.js +39 -0
- package/dist/widgets/pause-all.cjs +1 -1
- package/dist/widgets/pause-all.js +2 -2
- package/dist/widgets/perf-monitor.cjs +1 -1
- 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 +3 -3
- package/dist/widgets/plugin-card.js +4 -4
- package/dist/widgets/plugin-store.cjs +1 -1
- package/dist/widgets/plugin-store.js +2 -2
- package/dist/widgets/presence.cjs +1 -1
- package/dist/widgets/presence.js +2 -2
- package/dist/widgets/prize-wheel.cjs +1 -1
- package/dist/widgets/prize-wheel.js +2 -2
- package/dist/widgets/product-gallery.cjs +1 -1
- package/dist/widgets/product-gallery.js +2 -2
- package/dist/widgets/progress-ring.cjs +1 -1
- package/dist/widgets/progress-ring.js +2 -2
- package/dist/widgets/prop-panel.cjs +1 -1
- package/dist/widgets/prop-panel.js +2 -2
- package/dist/widgets/pull-cord.cjs +1 -1
- package/dist/widgets/pull-cord.js +2 -2
- package/dist/widgets/radar.cjs +1 -1
- package/dist/widgets/radar.js +2 -2
- package/dist/widgets/reactions.cjs +1 -1
- package/dist/widgets/reactions.js +2 -2
- package/dist/widgets/red-envelope.cjs +1 -1
- package/dist/widgets/red-envelope.js +2 -2
- package/dist/widgets/retro-button.cjs +1 -1
- package/dist/widgets/retro-button.js +2 -2
- package/dist/widgets/rive.cjs +1 -1
- package/dist/widgets/rive.js +2 -2
- package/dist/widgets/route-transition.cjs +1 -1
- package/dist/widgets/route-transition.js +2 -2
- package/dist/widgets/scene.cjs +1 -1
- package/dist/widgets/scene.js +2 -2
- package/dist/widgets/scroll-ring.cjs +1 -1
- 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 +1 -1
- package/dist/widgets/segmented.js +2 -2
- package/dist/widgets/shader-backdrop.cjs +1 -1
- package/dist/widgets/shader-backdrop.js +2 -2
- package/dist/widgets/sheet.cjs +1 -1
- package/dist/widgets/sheet.js +2 -2
- package/dist/widgets/shortcut.cjs +1 -1
- package/dist/widgets/shortcut.js +3 -3
- package/dist/widgets/skeleton-reveal.cjs +1 -1
- package/dist/widgets/skeleton-reveal.js +2 -2
- package/dist/widgets/sketch-chart.cjs +1 -1
- package/dist/widgets/sketch-chart.js +2 -2
- package/dist/widgets/smooth-scroll.cjs +2 -2
- 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 +1 -1
- package/dist/widgets/sparkline.js +2 -2
- package/dist/widgets/spatial-card.cjs +1 -1
- package/dist/widgets/spatial-card.js +2 -2
- package/dist/widgets/star-rating.cjs +1 -1
- package/dist/widgets/star-rating.js +2 -2
- package/dist/widgets/stepper.cjs +1 -1
- package/dist/widgets/stepper.js +2 -2
- package/dist/widgets/sticky-wall.cjs +1 -1
- package/dist/widgets/sticky-wall.js +2 -2
- package/dist/widgets/stories.cjs +1 -1
- package/dist/widgets/stories.js +2 -2
- package/dist/widgets/suggestion-chips.cjs +1 -1
- package/dist/widgets/suggestion-chips.js +2 -2
- package/dist/widgets/swipe-deck.cjs +1 -1
- package/dist/widgets/swipe-deck.js +2 -2
- package/dist/widgets/switch.cjs +1 -1
- package/dist/widgets/switch.js +2 -2
- package/dist/widgets/tab-bar.cjs +1 -1
- package/dist/widgets/tab-bar.js +2 -2
- package/dist/widgets/terminal.cjs +1 -1
- package/dist/widgets/terminal.js +2 -2
- package/dist/widgets/text-splitter.cjs +3 -3
- package/dist/widgets/text-splitter.js +4 -4
- package/dist/widgets/theme-surface.cjs +1 -1
- package/dist/widgets/theme-surface.js +2 -2
- package/dist/widgets/theme-switcher.cjs +1 -1
- package/dist/widgets/theme-switcher.js +2 -2
- package/dist/widgets/tip.cjs +1 -1
- package/dist/widgets/tip.js +2 -2
- package/dist/widgets/title-sequence.cjs +33 -0
- package/dist/widgets/title-sequence.d.cts +1 -0
- package/dist/widgets/title-sequence.d.ts +1 -0
- package/dist/widgets/title-sequence.js +31 -0
- package/dist/widgets/toast-stack.cjs +2 -2
- package/dist/widgets/toast-stack.js +2 -2
- package/dist/widgets/token-editor.cjs +1 -1
- package/dist/widgets/token-editor.js +2 -2
- package/dist/widgets/upload-progress.cjs +1 -1
- package/dist/widgets/upload-progress.js +2 -2
- package/dist/widgets/video-card.cjs +1 -1
- package/dist/widgets/video-card.js +2 -2
- package/dist/widgets/voice-button.cjs +1 -1
- package/dist/widgets/voice-button.js +2 -2
- package/dist/widgets/volume-knob.cjs +1 -1
- package/dist/widgets/volume-knob.js +2 -2
- package/dist/widgets/weather-card.cjs +1 -1
- package/dist/widgets/weather-card.js +2 -2
- package/dist/widgets/worker-canvas.cjs +1 -1
- package/dist/widgets/worker-canvas.js +2 -2
- package/dist/widgets/xp-bar.cjs +1 -1
- package/dist/widgets/xp-bar.js +2 -2
- package/dist/widgets.umd.js +2 -2
- package/docs/cdn-sri.md +10 -10
- package/docs/components/README.md +10 -1
- package/docs/components/usa-download-menu.md +36 -0
- package/docs/components/usa-file-tree.md +36 -0
- package/docs/components/usa-halo-segmented.md +36 -0
- package/docs/components/usa-halo-slider.md +36 -0
- package/docs/components/usa-luminous-switch.md +36 -0
- package/docs/components/usa-orbit-progress.md +36 -0
- package/docs/components/usa-particle-button.md +36 -0
- package/docs/components/usa-particle-icon.md +36 -0
- package/docs/components/usa-title-sequence.md +36 -0
- package/docs/components.md +4 -4
- package/docs/entry-points.md +10 -1
- package/docs/gallery-components.md +40 -0
- package/docs/luminous-controls.md +35 -0
- package/docs/supply-chain.md +1 -1
- package/docs/versions.md +1 -1
- package/figma-plugin/code.js +1 -1
- package/package.json +92 -2
package/dist/components/lite.js
CHANGED
|
@@ -244,7 +244,7 @@ function getBase() {
|
|
|
244
244
|
*/
|
|
245
245
|
function animateWithMotion(el, keyframes, options) {
|
|
246
246
|
// no WAAPI / `static` → the unadapted final frame; over the animation budget → the adapted one
|
|
247
|
-
if (typeof el.animate !== 'function' || config.motionSensitivity === 'static' || ((keyframes = adaptKeyframes(keyframes)), active$
|
|
247
|
+
if (typeof el.animate !== 'function' || config.motionSensitivity === 'static' || ((keyframes = adaptKeyframes(keyframes)), active$1 >= maxActive)) {
|
|
248
248
|
applyFrame(el, keyframes[keyframes.length - 1]);
|
|
249
249
|
return null;
|
|
250
250
|
}
|
|
@@ -254,9 +254,9 @@ function animateWithMotion(el, keyframes, options) {
|
|
|
254
254
|
const a = el.animate(keyframes, options);
|
|
255
255
|
trackAnimation(a);
|
|
256
256
|
if (options.iterations !== Infinity) {
|
|
257
|
-
active$
|
|
257
|
+
active$1++;
|
|
258
258
|
// settles exactly once (fulfilled or rejected), so no guard is needed
|
|
259
|
-
const end = () => void active$
|
|
259
|
+
const end = () => void active$1--;
|
|
260
260
|
a?.finished?.then(end, end);
|
|
261
261
|
}
|
|
262
262
|
return a;
|
|
@@ -439,10 +439,10 @@ function trackAnimation(a) {
|
|
|
439
439
|
a.finished?.then(drop, drop);
|
|
440
440
|
}
|
|
441
441
|
// --- active animation budget (4.5) ---------------------------------------------
|
|
442
|
-
let active$
|
|
442
|
+
let active$1 = 0;
|
|
443
443
|
let maxActive = Infinity;
|
|
444
444
|
/** Number of component animations running right now. */
|
|
445
|
-
const activeAnimations = () => active$
|
|
445
|
+
const activeAnimations = () => active$1;
|
|
446
446
|
/** Cap concurrent component animations; extra ones jump to their final frame (`Infinity` = no cap). */
|
|
447
447
|
function setAnimationBudget(max) {
|
|
448
448
|
maxActive = max > 0 ? max : Infinity;
|
|
@@ -1285,7 +1285,7 @@ const MOTION_TOKENS = {
|
|
|
1285
1285
|
stiff: { stiffness: 500, damping: 40, mass: 1 },
|
|
1286
1286
|
},
|
|
1287
1287
|
};
|
|
1288
|
-
let active
|
|
1288
|
+
let active = /*#__PURE__*/ clone(MOTION_TOKENS);
|
|
1289
1289
|
function clone(t) {
|
|
1290
1290
|
return { duration: { ...t.duration }, easing: { ...t.easing }, spring: Object.fromEntries(Object.entries(t.spring).map(([k, v]) => [k, { ...v }])) };
|
|
1291
1291
|
}
|
|
@@ -1300,7 +1300,7 @@ function mergeMotionTokens(partial, base = MOTION_TOKENS) {
|
|
|
1300
1300
|
}
|
|
1301
1301
|
const kebab = (s) => s.replace(/([a-z0-9])([A-Z])/g, '$1-$2').replace(/[\s_.]+/g, '-').toLowerCase();
|
|
1302
1302
|
/** The custom-property map: `{ '--usa-duration-fast': '150ms', … }`. */
|
|
1303
|
-
function motionTokensToVars(tokens = active
|
|
1303
|
+
function motionTokensToVars(tokens = active, prefix = '--usa') {
|
|
1304
1304
|
const vars = {};
|
|
1305
1305
|
for (const [k, v] of Object.entries(tokens.duration))
|
|
1306
1306
|
vars[`${prefix}-duration-${kebab(k)}`] = `${v}ms`;
|
|
@@ -1314,12 +1314,12 @@ function motionTokensToVars(tokens = active$1, prefix = '--usa') {
|
|
|
1314
1314
|
return vars;
|
|
1315
1315
|
}
|
|
1316
1316
|
/** A stylesheet string: `:root { --usa-duration-fast: 150ms; … }`. */
|
|
1317
|
-
function motionTokensToCss(tokens = active
|
|
1317
|
+
function motionTokensToCss(tokens = active, selector = ':root', prefix = '--usa') {
|
|
1318
1318
|
const body = Object.entries(motionTokensToVars(tokens, prefix)).map(([k, v]) => ` ${k}: ${v};`).join('\n');
|
|
1319
1319
|
return `${selector} {\n${body}\n}\n`;
|
|
1320
1320
|
}
|
|
1321
1321
|
/** W3C Design Tokens (DTCG) JSON: `{ motion: { duration: { fast: { $type: 'duration', $value: '150ms' } } } }`. */
|
|
1322
|
-
function motionTokensToJSON(tokens = active
|
|
1322
|
+
function motionTokensToJSON(tokens = active) {
|
|
1323
1323
|
const grp = (o, f) => Object.fromEntries(Object.entries(o).map(([k, v]) => [k, f(v)]));
|
|
1324
1324
|
return {
|
|
1325
1325
|
motion: {
|
|
@@ -1409,30 +1409,30 @@ function importMotionTokens(json, base = MOTION_TOKENS) {
|
|
|
1409
1409
|
}
|
|
1410
1410
|
/** The tokens currently applied (via `applyMotionTokens`), or the defaults. */
|
|
1411
1411
|
function getMotionTokens() {
|
|
1412
|
-
return clone(active
|
|
1412
|
+
return clone(active);
|
|
1413
1413
|
}
|
|
1414
1414
|
/**
|
|
1415
1415
|
* Write tokens as CSS custom properties on `root` (default `<html>`) and make
|
|
1416
1416
|
* them the active set for `motionToken()`. Returns an undo function.
|
|
1417
1417
|
*/
|
|
1418
1418
|
function applyMotionTokens(tokens = MOTION_TOKENS, root, prefix = '--usa') {
|
|
1419
|
-
const prev = active
|
|
1420
|
-
active
|
|
1419
|
+
const prev = active;
|
|
1420
|
+
active = mergeMotionTokens(tokens, MOTION_TOKENS);
|
|
1421
1421
|
const el = root || (typeof document !== 'undefined' ? document.documentElement : null);
|
|
1422
|
-
const vars = motionTokensToVars(active
|
|
1422
|
+
const vars = motionTokensToVars(active, prefix);
|
|
1423
1423
|
const old = {};
|
|
1424
1424
|
if (el)
|
|
1425
1425
|
for (const [k, v] of Object.entries(vars))
|
|
1426
1426
|
((old[k] = el.style.getPropertyValue(k)), el.style.setProperty(k, v));
|
|
1427
1427
|
return () => {
|
|
1428
|
-
active
|
|
1428
|
+
active = prev;
|
|
1429
1429
|
if (el)
|
|
1430
1430
|
for (const [k, v] of Object.entries(old))
|
|
1431
1431
|
v ? el.style.setProperty(k, v) : el.style.removeProperty(k);
|
|
1432
1432
|
};
|
|
1433
1433
|
}
|
|
1434
1434
|
function motionToken(group, name) {
|
|
1435
|
-
const g = active
|
|
1435
|
+
const g = active[group];
|
|
1436
1436
|
return g[name] ?? MOTION_TOKENS[group][name];
|
|
1437
1437
|
}
|
|
1438
1438
|
/** `var(--usa-duration-fast, 150ms)` — a CSS reference with the current value as fallback. */
|
|
@@ -1450,14 +1450,14 @@ function resolveDurationToken(v, fallback) {
|
|
|
1450
1450
|
if (typeof v === 'number')
|
|
1451
1451
|
return v;
|
|
1452
1452
|
if (typeof v === 'string')
|
|
1453
|
-
return (active
|
|
1453
|
+
return (active.duration[v] ?? parseDuration(v)) ?? fallback;
|
|
1454
1454
|
return fallback;
|
|
1455
1455
|
}
|
|
1456
1456
|
/** Resolve an easing that may be a token name (`'emphasized'`) or CSS. */
|
|
1457
1457
|
function resolveEasingToken(v, fallback) {
|
|
1458
1458
|
if (!v)
|
|
1459
1459
|
return fallback;
|
|
1460
|
-
return active
|
|
1460
|
+
return active.easing[v] ?? v;
|
|
1461
1461
|
}
|
|
1462
1462
|
|
|
1463
1463
|
/** 4.1: whether `scrub()` can use native ScrollTimeline / ViewTimeline here. */
|
|
@@ -10451,12 +10451,40 @@ function defineFxComponents() {
|
|
|
10451
10451
|
defineFx();
|
|
10452
10452
|
}
|
|
10453
10453
|
|
|
10454
|
+
// Keep strings, comments, attribute selectors and escaped identifiers opaque. Braces / semicolons inside them
|
|
10455
|
+
// are content, not rule boundaries (and an attribute value that happens to name a component must stay unchanged).
|
|
10456
|
+
const CSS_TOKENS = /\/\*[\s\S]*?\*\/|"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\])*'|\[(?:\\[\s\S]|"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\])*'|[^\]\\])*\]|(?:\\[\s\S]|[\w-]|[^\x00-\x7f])+|[^\w]/g;
|
|
10457
|
+
/**
|
|
10458
|
+
* Rewrite component tag names in selectors only (the text in front of each `{` that is not an at-rule); declarations, at-rule
|
|
10459
|
+
* preludes such as `@keyframes usa-spin`, classes, attributes and custom properties are untouched.
|
|
10460
|
+
*/
|
|
10461
|
+
const rewriteTagSelectors = (text, replaceTag) => {
|
|
10462
|
+
let out = '', raw = '', renamed = '', first = '', previous = '';
|
|
10463
|
+
for (const [token] of text.matchAll(CSS_TOKENS)) {
|
|
10464
|
+
if (token === '{' || token === '}' || token === ';') {
|
|
10465
|
+
out += (token === '{' && first !== '@' ? renamed : raw) + token;
|
|
10466
|
+
raw = renamed = first = previous = '';
|
|
10467
|
+
} else {
|
|
10468
|
+
raw += token;
|
|
10469
|
+
const comment = token.startsWith('/*');
|
|
10470
|
+
if (!first && !comment && token.trim()) first = token;
|
|
10471
|
+
renamed += /^usa-[a-z]/.test(token) && previous !== '.' && previous !== '#' && previous !== ':'
|
|
10472
|
+
? replaceTag(token) : token;
|
|
10473
|
+
if (!comment) previous = token;
|
|
10474
|
+
}
|
|
10475
|
+
}
|
|
10476
|
+
return out + raw;
|
|
10477
|
+
};
|
|
10478
|
+
|
|
10479
|
+
// Generated from the component manifest.
|
|
10480
|
+
const publicTagNames = 'accordion acrylic add-to-cart ambient anim-icon audio aurora auto-animate auto-skeleton avatar-stack back-to-top badge badge-wall bar-chart bg-generator blobs bottom-sheet breadcrumbs button card card-stack carousel carousel-3d cart-drawer chapter-nav chat-composer check checkbox click clock-control code-export color-picker command-palette compare countdown counter cube cube-gallery cursor date-picker depth dialog disclosure distort dock dot-network dotlottie double-tap download-menu draggable draw drawer equalizer fab festival-banner field file-drop file-tree fullpage fullscreen-menu fx gauge gen-art gesture-fx gesture-sticker gl-model gl-scene glitch globe gpu-particles gradient-text grain grid-glow gyro-card halo-segmented halo-slider handwriting hero-video hold hud-panel hydrate icon-morph install-button kanban keyframe-editor kpi leaderboard like liquid liquid-nav loading-bar location-card lottie lottie-icon lottie-player luminous-switch lyrics magnetic marquee mask-reveal masonry masonry-flow mega-menu menu menu-toggle message-list milestones modal morph motion motion-inspector motion-prefs motion-prompt motion-spec motion-switch motion-theme music-player native-preview nav-flyout nav-morph navbar notification-bell odometer orbit-progress organic-card otp overscroll pack pagination panorama parallax-layers particle-button particle-icon particles pause-all perf-monitor physics-playground pinch-zoom player plugin-card plugin-store popover post-fx presence press prize-wheel product-gallery progress progress-ring prop-panel pull-cord pull-refresh radar reactions red-envelope retro-button reveal ripple rive route-transition scene scramble scroll-highlight scroll-progress scroll-ring scroll-scene scrolly segmented shader shader-backdrop sheet shimmer-text shortcut skeleton skeleton-reveal sketch-chart slider smooth-scroll snap-carousel sparkline spatial-card spinner splash split-text spotlight spring stagger star-rating stepper sticky-stack sticky-wall stories story suggestion-chips swipe-deck swipeable switch tab-bar tabs terminal text-rotate text-splitter theme-surface theme-switcher tilt timeline tip title-sequence toast-stack toaster token-editor typewriter upload-progress video-card view-switch voice-button volume-knob water-ripple wave-text weather-card worker-canvas xp-bar';
|
|
10481
|
+
|
|
10454
10482
|
/**
|
|
10455
10483
|
* motionary/components/mo — the 17.0 `<mo-*>` names.
|
|
10456
10484
|
*
|
|
10457
10485
|
* After `defineMoAliases()` every default `<usa-*>` element is also registered as `<mo-*>` (`<usa-switch>` →
|
|
10458
|
-
* `<mo-switch>`): a subclass, so attributes, properties and `usa:*` events are the same. The component styles are
|
|
10459
|
-
* with
|
|
10486
|
+
* `<mo-switch>`): a subclass, so attributes, properties and `usa:*` events are the same. The component styles are extended
|
|
10487
|
+
* with matching public tag selectors the first time a `<mo-*>` element connects, so pages that never use `mo-*` pay nothing.
|
|
10460
10488
|
*
|
|
10461
10489
|
* The no-build bundles (`components.umd.js`, `widgets.umd.js`) call it before they register anything. With ESM, call it
|
|
10462
10490
|
* once, ideally before you define components; `usa-*` elements defined earlier (the default component set) and `mo-*`
|
|
@@ -10471,58 +10499,43 @@ function defineFxComponents() {
|
|
|
10471
10499
|
*/
|
|
10472
10500
|
/** The `mo-*` alias of a default `usa-*` tag (`usa-switch` → `mo-switch`), or `null` for any other tag. */
|
|
10473
10501
|
const aliasTag = (tag) => (/^usa-[a-z]/.test(tag) ? 'mo-' + tag.slice(4) : null);
|
|
10474
|
-
|
|
10475
|
-
|
|
10476
|
-
const CSS_TOKENS = /\/\*[\s\S]*?\*\/|"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\])*'|\[(?:\\[\s\S]|"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\])*'|[^\]\\])*\]|(?:\\[\s\S]|[\w-]|[^\x00-\x7f])+|[^\w]/g;
|
|
10477
|
-
/**
|
|
10478
|
-
* `usa-…` → `mo-…` in selectors only (the text in front of each `{` that is not an at-rule); declarations, at-rule
|
|
10479
|
-
* preludes such as `@keyframes usa-spin`, classes, attributes and custom properties are untouched.
|
|
10480
|
-
*/
|
|
10481
|
-
const aliasCss = (text) => {
|
|
10482
|
-
let out = '', raw = '', renamed = '', first = '', previous = '';
|
|
10483
|
-
for (const [token] of text.matchAll(CSS_TOKENS)) {
|
|
10484
|
-
if (token === '{' || token === '}' || token === ';') {
|
|
10485
|
-
out += (token === '{' && first !== '@' ? renamed : raw) + token;
|
|
10486
|
-
raw = renamed = first = previous = '';
|
|
10487
|
-
}
|
|
10488
|
-
else {
|
|
10489
|
-
raw += token;
|
|
10490
|
-
const comment = token.startsWith('/*');
|
|
10491
|
-
if (!first && !comment && token.trim())
|
|
10492
|
-
first = token;
|
|
10493
|
-
renamed += /^usa-[a-z]/.test(token) && previous !== '.' && previous !== '#' && previous !== ':'
|
|
10494
|
-
? 'mo-' + token.slice(4) : token;
|
|
10495
|
-
if (!comment)
|
|
10496
|
-
previous = token;
|
|
10497
|
-
}
|
|
10498
|
-
}
|
|
10499
|
-
return out + raw;
|
|
10500
|
-
};
|
|
10502
|
+
/** Return a copy of the stylesheet with public tag selectors. */
|
|
10503
|
+
const aliasCss = (text) => rewriteTagSelectors(text, tag => 'mo-' + tag.slice(4));
|
|
10501
10504
|
let started = false;
|
|
10502
|
-
|
|
10503
|
-
|
|
10505
|
+
function styleLoaded(event) {
|
|
10506
|
+
if (event.target?.matches?.('link[data-usa-css]'))
|
|
10507
|
+
scan();
|
|
10508
|
+
}
|
|
10504
10509
|
const seen = /*#__PURE__*/ new WeakSet();
|
|
10505
|
-
/**
|
|
10510
|
+
/** Extend style selectors in place so media queries, cascade layers and declaration order stay intact. */
|
|
10511
|
+
function extendSelectors(rules) {
|
|
10512
|
+
for (const rule of rules) {
|
|
10513
|
+
if ('selectorText' in rule) {
|
|
10514
|
+
const style = rule;
|
|
10515
|
+
const selector = style.selectorText;
|
|
10516
|
+
const renamed = aliasCss(selector + '{').slice(0, -1);
|
|
10517
|
+
if (renamed !== selector)
|
|
10518
|
+
style.selectorText = selector + ',' + renamed;
|
|
10519
|
+
}
|
|
10520
|
+
if ('cssRules' in rule)
|
|
10521
|
+
extendSelectors(rule.cssRules);
|
|
10522
|
+
}
|
|
10523
|
+
}
|
|
10506
10524
|
function scan() {
|
|
10507
10525
|
const d = document;
|
|
10508
|
-
const
|
|
10509
|
-
for (const s of [...Array.from(d.styleSheets), ...adopted]) {
|
|
10526
|
+
for (const s of [...d.styleSheets, ...(d.adoptedStyleSheets || [])]) {
|
|
10510
10527
|
const o = s.ownerNode;
|
|
10511
10528
|
if (seen.has(s) || (o && !o.matches('[data-usa],[data-usa-css]')))
|
|
10512
10529
|
continue;
|
|
10513
|
-
let css;
|
|
10514
10530
|
try {
|
|
10515
|
-
|
|
10531
|
+
if (!s.cssRules.length)
|
|
10532
|
+
continue;
|
|
10533
|
+
extendSelectors(s.cssRules);
|
|
10534
|
+
seen.add(s);
|
|
10516
10535
|
}
|
|
10517
10536
|
catch {
|
|
10518
|
-
|
|
10519
|
-
}
|
|
10520
|
-
if (!css)
|
|
10521
|
-
continue; // a pending link may expose an empty rule list before its load event
|
|
10522
|
-
seen.add(s);
|
|
10523
|
-
const a = aliasCss(css);
|
|
10524
|
-
if (a !== css)
|
|
10525
|
-
adoptStyles('mo:' + n++, a);
|
|
10537
|
+
// A pending or cross-origin stylesheet may not expose writable rules.
|
|
10538
|
+
}
|
|
10526
10539
|
}
|
|
10527
10540
|
}
|
|
10528
10541
|
function alias(tag, ctor) {
|
|
@@ -10532,25 +10545,13 @@ function alias(tag, ctor) {
|
|
|
10532
10545
|
const C = ctor;
|
|
10533
10546
|
class Alias extends C {
|
|
10534
10547
|
connectedCallback() {
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
// A retry may be requested by a usa-* sibling after the mo-* element has already mounted.
|
|
10539
|
-
document.addEventListener('load', (event) => {
|
|
10540
|
-
if (event.target instanceof HTMLLinkElement && event.target.hasAttribute('data-usa-css'))
|
|
10541
|
-
scan();
|
|
10542
|
-
}, true);
|
|
10543
|
-
}
|
|
10548
|
+
super.connectedCallback?.();
|
|
10549
|
+
// A stable listener also handles a later stylesheet load without adding duplicate listeners.
|
|
10550
|
+
document.addEventListener('load', styleLoaded, true);
|
|
10544
10551
|
scan();
|
|
10545
|
-
return r;
|
|
10546
10552
|
}
|
|
10547
10553
|
}
|
|
10548
|
-
|
|
10549
|
-
customElements.define(a, Alias);
|
|
10550
|
-
}
|
|
10551
|
-
catch {
|
|
10552
|
-
/* the name is taken by another library */
|
|
10553
|
-
}
|
|
10554
|
+
customElements.define(a, Alias);
|
|
10554
10555
|
}
|
|
10555
10556
|
/**
|
|
10556
10557
|
* Turn on the `<mo-*>` names: every `usa-*` element defined from now on gets its `mo-*` alias, and so do the default
|
|
@@ -10566,16 +10567,17 @@ function defineMoAliases() {
|
|
|
10566
10567
|
define.call(this, name, ctor, options);
|
|
10567
10568
|
alias(name, ctor);
|
|
10568
10569
|
};
|
|
10569
|
-
const
|
|
10570
|
-
|
|
10571
|
-
|
|
10572
|
-
|
|
10573
|
-
|
|
10574
|
-
|
|
10575
|
-
|
|
10570
|
+
const names = publicTagNames.split(' ');
|
|
10571
|
+
globalThis.document?.querySelectorAll('*').forEach(({ localName }) => {
|
|
10572
|
+
if (localName.startsWith('mo-'))
|
|
10573
|
+
names.push(localName.slice(3));
|
|
10574
|
+
});
|
|
10575
|
+
for (const name of names) {
|
|
10576
|
+
const tag = 'usa-' + name;
|
|
10577
|
+
const ctor = reg.get(tag);
|
|
10578
|
+
if (ctor)
|
|
10579
|
+
alias(tag, ctor);
|
|
10576
10580
|
}
|
|
10577
|
-
if (active)
|
|
10578
|
-
scan();
|
|
10579
10581
|
}
|
|
10580
10582
|
|
|
10581
10583
|
/**
|
|
@@ -10811,7 +10813,7 @@ function auditMotionA11y(root) {
|
|
|
10811
10813
|
});
|
|
10812
10814
|
const doc = root.ownerDocument || root;
|
|
10813
10815
|
const anims = typeof root.getAnimations === 'function' ? root.getAnimations({ subtree: true }) : [];
|
|
10814
|
-
const control = doc && (doc.querySelector('usa-motion-switch, [data-usa-pause]') || doc.documentElement.hasAttribute('data-usa-sensitivity'));
|
|
10816
|
+
const control = doc && (doc.querySelector('mo-motion-switch, usa-motion-switch, [data-usa-pause]') || doc.documentElement.hasAttribute('data-usa-sensitivity'));
|
|
10815
10817
|
if (!control)
|
|
10816
10818
|
anims.forEach((a) => {
|
|
10817
10819
|
try {
|
|
@@ -11061,4 +11063,4 @@ const STYLE_BASE = new URL('../', import.meta.url).href;
|
|
|
11061
11063
|
onDemandStyles(STYLE_BASE);
|
|
11062
11064
|
|
|
11063
11065
|
export { ALL_TAGS, AMBIENT_EFFECTS, ANIM_ICONS, BRIDGE_PROTOCOL_VERSION, BUILTIN_EFFECTS, BUTTON_DEFORMS, CARD_EFFECTS, CLICK_EFFECTS, COMPONENT_CATEGORIES, CURSOR_MODES, EFFECT_KINDS, EFFECT_TRIGGERS, GL_FALLBACKS, JOINING_SCRIPT, LIVE_REGION_IDS, MASK_SHAPES, MORPH_ICONS, MOTION_SCALE, MOTION_SENSITIVITY, MOTION_SENSITIVITY_LEVELS, MOTION_TOKENS, PACKS, PACK_PRIMITIVES, PAGE_EFFECTS, PARTICLE_PRESETS, POST_EFFECTS, REVEAL_EFFECTS, SENSITIVITY_CSS, SHADERS, SPINNER_VARIANTS, SPRING_EFFECTS, SPRING_PRESETS, STATIC_ALTERNATIVES, STYLE_BASE, TIMELINE_PRESETS, VARIANTS, activeAnimations, adaptKeyframes, adoptVariants, animateWithMotion, animationBudget, announce, applyMotionTokens, applyNativeSettings, applyPack, auditMotionA11y, autoAnimate, autoDegrade, baselineReport, bindEffect, categoryForTag as categoryOf, configureComponents, connectNativeShell, countUp, createSpring, defineAccordion, defineAcrylic, defineAmbient, defineAnimIcon, defineAurora, defineAutoAnimate, defineAutoSkeleton, defineAvatarStack, defineBackToTop, defineBackgroundComponents, defineBadge, defineBlobs, defineBottomSheet, defineButton, defineCard, defineCardComponents, defineCardStack, defineCarousel3d, defineCheck, defineCheckbox, defineClick, defineClickComponents, defineComponents, defineCounter, defineCube, defineCursor, defineDepth, defineDepthComponents, defineDialog, defineDistort, defineDotNetwork, defineDoubleTap, defineDraggable, defineDraw, defineDrawer, defineFab, defineFeedbackComponents, defineFullpage, defineFx, defineFxComponents, defineGestureComponents, defineGlitch, defineGradientText, defineGrain, defineGridGlow, defineHandwriting, defineHold, defineIconMorph, defineInteractionComponents, defineLayoutComponents, defineLike, defineLiquid, defineLoadingBar, defineMagnetic, defineMarquee, defineMaskReveal, defineMasonry, defineMorph, defineMotionSwitch, defineNavbar, defineOverscroll, definePack, definePacksComponents, definePageComponents, defineParticles, definePhysicsComponents, definePinchZoom, definePopover, definePostFx, definePress, defineProgress, definePullRefresh, defineReveal, defineRevealComponents, defineRipple, defineScramble, defineScrollHighlight, defineScrollProgress, defineScrolly, defineShader, defineShimmerText, defineSkeleton, defineSlider, defineSpinner, defineSplash, defineSplitText, defineSpotlight, defineSpring, defineStagger, defineStickyStack, defineSvgComponents, defineSwipeable, defineTabs, defineTextComponents, defineTextRotate, defineTilt, defineTimeline, defineTimelineComponents, defineToaster, defineTransitionComponents, defineTypewriter, defineUiComponents, defineViewSwitch, defineWaterRipple, defineWaveText, defineWebglComponents, detectNativeHost, deviceTilt, drawLines, easeOutExpo, enableMpaTransitions, exportDesignTokens, flip, flipFrames, fluentPreset, flyToCart, fragmentSource, gesture, getEffect, getMotionIntensity, getMotionLevel, getMotionSensitivity, getMotionTokens, glFallbackCss, glGovernor, glQuad, graphemes, haptic, hasEffect, importDesignTokens, importMotionTokens, interpolatePath, isTrustedMessage, linearEasing, listEffects, liveRegion, loadCategoryStyles, loadedStyles, loadingBar, masonryLayout, mergeMotionTokens, morphPath, morphTo, motionAllowed, motionScale, motionToken, motionTokensToCss, motionTokensToJSON, motionTokensToVars, motionVar, onDemandStyles, onFrame, orientationToTilt, pageTransition, parseDuration, parseEasing, parseNativeSettings, pathsCompatible, pinchScale, playEffect, postFxShader, postToNative, prefersReducedMotion, projectInertia, readScrollProgress, registerBuiltinEffects, registerEffect, registerEffects, requestOrientationPermission, resolveDurationToken, resolveEasingToken, resolvePosition, resolveSpring, resolveTokenAliases, restoreMotionIntensity, restoreMotionSensitivity, revealKeyframes, rubberBand, schedulerStats, scrambleFrame, scrollToTarget, setAnimationBudget, setFrameBudget, setMotionIntensity, setMotionLevel, setMotionSensitivity, setVariant, sharedTransition, smoothScroll, snapTo, splitOrder, splitText, splitTimeline, words as splitWords, spring, springEasing, springEffectKeyframes, springSamples, staticAlternative, stepSpring, supportsLinearEasing, supportsNativeScrub, supportsOrientation, supportsViewTransitions, supportsWebGL, swipeDirection, themeTransition, timeline, toast, validateDesignTokens, viewTransition, warnBaseline, watchPowerSaver, withoutDeprecations };
|
|
11064
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
11066
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.4.0/dist/components/lite.js.map
|
|
@@ -98,4 +98,4 @@ exports.fetchMarketplace = fetchMarketplace;
|
|
|
98
98
|
exports.installPlugin = installPlugin;
|
|
99
99
|
exports.installedPlugins = installedPlugins;
|
|
100
100
|
exports.searchPlugins = searchPlugins;
|
|
101
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
101
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.4.0/dist/components/marketplace.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as loadEffectPack } from '../chunks/manifest-
|
|
2
|
-
export { E as EFFECT_PACK_FORMAT, p as packManifest, v as validateManifest } from '../chunks/manifest-
|
|
1
|
+
import { l as loadEffectPack } from '../chunks/manifest-D9SNkSNr.js';
|
|
2
|
+
export { E as EFFECT_PACK_FORMAT, p as packManifest, v as validateManifest } from '../chunks/manifest-D9SNkSNr.js';
|
|
3
3
|
export { c as checkCompat, p as pluginIntegrity, s as satisfies, v as verifyPlugin } from '../chunks/sign-DvZ1jHxE.js';
|
|
4
4
|
|
|
5
5
|
const MARKETPLACE_FORMAT = 'motionary/marketplace';
|
|
@@ -84,4 +84,4 @@ async function fetchMarketplace(url, fetcher = fetch) {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
export { MARKETPLACE, MARKETPLACE_FORMAT, fetchMarketplace, installPlugin, installedPlugins, loadEffectPack, searchPlugins };
|
|
87
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
87
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.4.0/dist/components/marketplace.js.map
|
package/dist/components/mo.cjs
CHANGED
|
@@ -1,14 +1,41 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var base = require('../chunks/base-DzZEJhQB.cjs');
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
// Keep strings, comments, attribute selectors and escaped identifiers opaque. Braces / semicolons inside them
|
|
6
|
+
// are content, not rule boundaries (and an attribute value that happens to name a component must stay unchanged).
|
|
7
|
+
const CSS_TOKENS = /\/\*[\s\S]*?\*\/|"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\])*'|\[(?:\\[\s\S]|"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\])*'|[^\]\\])*\]|(?:\\[\s\S]|[\w-]|[^\x00-\x7f])+|[^\w]/g;
|
|
8
|
+
/**
|
|
9
|
+
* Rewrite component tag names in selectors only (the text in front of each `{` that is not an at-rule); declarations, at-rule
|
|
10
|
+
* preludes such as `@keyframes usa-spin`, classes, attributes and custom properties are untouched.
|
|
11
|
+
*/
|
|
12
|
+
const rewriteTagSelectors = (text, replaceTag) => {
|
|
13
|
+
let out = '', raw = '', renamed = '', first = '', previous = '';
|
|
14
|
+
for (const [token] of text.matchAll(CSS_TOKENS)) {
|
|
15
|
+
if (token === '{' || token === '}' || token === ';') {
|
|
16
|
+
out += (token === '{' && first !== '@' ? renamed : raw) + token;
|
|
17
|
+
raw = renamed = first = previous = '';
|
|
18
|
+
} else {
|
|
19
|
+
raw += token;
|
|
20
|
+
const comment = token.startsWith('/*');
|
|
21
|
+
if (!first && !comment && token.trim()) first = token;
|
|
22
|
+
renamed += /^usa-[a-z]/.test(token) && previous !== '.' && previous !== '#' && previous !== ':'
|
|
23
|
+
? replaceTag(token) : token;
|
|
24
|
+
if (!comment) previous = token;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return out + raw;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// Generated from the component manifest.
|
|
31
|
+
const publicTagNames = 'accordion acrylic add-to-cart ambient anim-icon audio aurora auto-animate auto-skeleton avatar-stack back-to-top badge badge-wall bar-chart bg-generator blobs bottom-sheet breadcrumbs button card card-stack carousel carousel-3d cart-drawer chapter-nav chat-composer check checkbox click clock-control code-export color-picker command-palette compare countdown counter cube cube-gallery cursor date-picker depth dialog disclosure distort dock dot-network dotlottie double-tap download-menu draggable draw drawer equalizer fab festival-banner field file-drop file-tree fullpage fullscreen-menu fx gauge gen-art gesture-fx gesture-sticker gl-model gl-scene glitch globe gpu-particles gradient-text grain grid-glow gyro-card halo-segmented halo-slider handwriting hero-video hold hud-panel hydrate icon-morph install-button kanban keyframe-editor kpi leaderboard like liquid liquid-nav loading-bar location-card lottie lottie-icon lottie-player luminous-switch lyrics magnetic marquee mask-reveal masonry masonry-flow mega-menu menu menu-toggle message-list milestones modal morph motion motion-inspector motion-prefs motion-prompt motion-spec motion-switch motion-theme music-player native-preview nav-flyout nav-morph navbar notification-bell odometer orbit-progress organic-card otp overscroll pack pagination panorama parallax-layers particle-button particle-icon particles pause-all perf-monitor physics-playground pinch-zoom player plugin-card plugin-store popover post-fx presence press prize-wheel product-gallery progress progress-ring prop-panel pull-cord pull-refresh radar reactions red-envelope retro-button reveal ripple rive route-transition scene scramble scroll-highlight scroll-progress scroll-ring scroll-scene scrolly segmented shader shader-backdrop sheet shimmer-text shortcut skeleton skeleton-reveal sketch-chart slider smooth-scroll snap-carousel sparkline spatial-card spinner splash split-text spotlight spring stagger star-rating stepper sticky-stack sticky-wall stories story suggestion-chips swipe-deck swipeable switch tab-bar tabs terminal text-rotate text-splitter theme-surface theme-switcher tilt timeline tip title-sequence toast-stack toaster token-editor typewriter upload-progress video-card view-switch voice-button volume-knob water-ripple wave-text weather-card worker-canvas xp-bar';
|
|
5
32
|
|
|
6
33
|
/**
|
|
7
34
|
* motionary/components/mo — the 17.0 `<mo-*>` names.
|
|
8
35
|
*
|
|
9
36
|
* After `defineMoAliases()` every default `<usa-*>` element is also registered as `<mo-*>` (`<usa-switch>` →
|
|
10
|
-
* `<mo-switch>`): a subclass, so attributes, properties and `usa:*` events are the same. The component styles are
|
|
11
|
-
* with
|
|
37
|
+
* `<mo-switch>`): a subclass, so attributes, properties and `usa:*` events are the same. The component styles are extended
|
|
38
|
+
* with matching public tag selectors the first time a `<mo-*>` element connects, so pages that never use `mo-*` pay nothing.
|
|
12
39
|
*
|
|
13
40
|
* The no-build bundles (`components.umd.js`, `widgets.umd.js`) call it before they register anything. With ESM, call it
|
|
14
41
|
* once, ideally before you define components; `usa-*` elements defined earlier (the default component set) and `mo-*`
|
|
@@ -23,58 +50,43 @@ var indexTags = require('../chunks/index-tags-hLIF2Clq.cjs');
|
|
|
23
50
|
*/
|
|
24
51
|
/** The `mo-*` alias of a default `usa-*` tag (`usa-switch` → `mo-switch`), or `null` for any other tag. */
|
|
25
52
|
const aliasTag = (tag) => (/^usa-[a-z]/.test(tag) ? 'mo-' + tag.slice(4) : null);
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const CSS_TOKENS = /\/\*[\s\S]*?\*\/|"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\])*'|\[(?:\\[\s\S]|"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\])*'|[^\]\\])*\]|(?:\\[\s\S]|[\w-]|[^\x00-\x7f])+|[^\w]/g;
|
|
29
|
-
/**
|
|
30
|
-
* `usa-…` → `mo-…` in selectors only (the text in front of each `{` that is not an at-rule); declarations, at-rule
|
|
31
|
-
* preludes such as `@keyframes usa-spin`, classes, attributes and custom properties are untouched.
|
|
32
|
-
*/
|
|
33
|
-
const aliasCss = (text) => {
|
|
34
|
-
let out = '', raw = '', renamed = '', first = '', previous = '';
|
|
35
|
-
for (const [token] of text.matchAll(CSS_TOKENS)) {
|
|
36
|
-
if (token === '{' || token === '}' || token === ';') {
|
|
37
|
-
out += (token === '{' && first !== '@' ? renamed : raw) + token;
|
|
38
|
-
raw = renamed = first = previous = '';
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
raw += token;
|
|
42
|
-
const comment = token.startsWith('/*');
|
|
43
|
-
if (!first && !comment && token.trim())
|
|
44
|
-
first = token;
|
|
45
|
-
renamed += /^usa-[a-z]/.test(token) && previous !== '.' && previous !== '#' && previous !== ':'
|
|
46
|
-
? 'mo-' + token.slice(4) : token;
|
|
47
|
-
if (!comment)
|
|
48
|
-
previous = token;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return out + raw;
|
|
52
|
-
};
|
|
53
|
+
/** Return a copy of the stylesheet with public tag selectors. */
|
|
54
|
+
const aliasCss = (text) => rewriteTagSelectors(text, tag => 'mo-' + tag.slice(4));
|
|
53
55
|
let started = false;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
function styleLoaded(event) {
|
|
57
|
+
if (event.target?.matches?.('link[data-usa-css]'))
|
|
58
|
+
scan();
|
|
59
|
+
}
|
|
56
60
|
const seen = /*#__PURE__*/ new WeakSet();
|
|
57
|
-
/**
|
|
61
|
+
/** Extend style selectors in place so media queries, cascade layers and declaration order stay intact. */
|
|
62
|
+
function extendSelectors(rules) {
|
|
63
|
+
for (const rule of rules) {
|
|
64
|
+
if ('selectorText' in rule) {
|
|
65
|
+
const style = rule;
|
|
66
|
+
const selector = style.selectorText;
|
|
67
|
+
const renamed = aliasCss(selector + '{').slice(0, -1);
|
|
68
|
+
if (renamed !== selector)
|
|
69
|
+
style.selectorText = selector + ',' + renamed;
|
|
70
|
+
}
|
|
71
|
+
if ('cssRules' in rule)
|
|
72
|
+
extendSelectors(rule.cssRules);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
58
75
|
function scan() {
|
|
59
76
|
const d = document;
|
|
60
|
-
const
|
|
61
|
-
for (const s of [...Array.from(d.styleSheets), ...adopted]) {
|
|
77
|
+
for (const s of [...d.styleSheets, ...(d.adoptedStyleSheets || [])]) {
|
|
62
78
|
const o = s.ownerNode;
|
|
63
79
|
if (seen.has(s) || (o && !o.matches('[data-usa],[data-usa-css]')))
|
|
64
80
|
continue;
|
|
65
|
-
let css;
|
|
66
81
|
try {
|
|
67
|
-
|
|
82
|
+
if (!s.cssRules.length)
|
|
83
|
+
continue;
|
|
84
|
+
extendSelectors(s.cssRules);
|
|
85
|
+
seen.add(s);
|
|
68
86
|
}
|
|
69
87
|
catch {
|
|
70
|
-
|
|
88
|
+
// A pending or cross-origin stylesheet may not expose writable rules.
|
|
71
89
|
}
|
|
72
|
-
if (!css)
|
|
73
|
-
continue; // a pending link may expose an empty rule list before its load event
|
|
74
|
-
seen.add(s);
|
|
75
|
-
const a = aliasCss(css);
|
|
76
|
-
if (a !== css)
|
|
77
|
-
base.adoptStyles('mo:' + n++, a);
|
|
78
90
|
}
|
|
79
91
|
}
|
|
80
92
|
function alias(tag, ctor) {
|
|
@@ -84,25 +96,13 @@ function alias(tag, ctor) {
|
|
|
84
96
|
const C = ctor;
|
|
85
97
|
class Alias extends C {
|
|
86
98
|
connectedCallback() {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
// A retry may be requested by a usa-* sibling after the mo-* element has already mounted.
|
|
91
|
-
document.addEventListener('load', (event) => {
|
|
92
|
-
if (event.target instanceof HTMLLinkElement && event.target.hasAttribute('data-usa-css'))
|
|
93
|
-
scan();
|
|
94
|
-
}, true);
|
|
95
|
-
}
|
|
99
|
+
super.connectedCallback?.();
|
|
100
|
+
// A stable listener also handles a later stylesheet load without adding duplicate listeners.
|
|
101
|
+
document.addEventListener('load', styleLoaded, true);
|
|
96
102
|
scan();
|
|
97
|
-
return r;
|
|
98
103
|
}
|
|
99
104
|
}
|
|
100
|
-
|
|
101
|
-
customElements.define(a, Alias);
|
|
102
|
-
}
|
|
103
|
-
catch {
|
|
104
|
-
/* the name is taken by another library */
|
|
105
|
-
}
|
|
105
|
+
customElements.define(a, Alias);
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
108
108
|
* Turn on the `<mo-*>` names: every `usa-*` element defined from now on gets its `mo-*` alias, and so do the default
|
|
@@ -118,19 +118,20 @@ function defineMoAliases() {
|
|
|
118
118
|
define.call(this, name, ctor, options);
|
|
119
119
|
alias(name, ctor);
|
|
120
120
|
};
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
121
|
+
const names = publicTagNames.split(' ');
|
|
122
|
+
globalThis.document?.querySelectorAll('*').forEach(({ localName }) => {
|
|
123
|
+
if (localName.startsWith('mo-'))
|
|
124
|
+
names.push(localName.slice(3));
|
|
125
|
+
});
|
|
126
|
+
for (const name of names) {
|
|
127
|
+
const tag = 'usa-' + name;
|
|
128
|
+
const ctor = reg.get(tag);
|
|
129
|
+
if (ctor)
|
|
130
|
+
alias(tag, ctor);
|
|
128
131
|
}
|
|
129
|
-
if (active)
|
|
130
|
-
scan();
|
|
131
132
|
}
|
|
132
133
|
|
|
133
134
|
exports.aliasCss = aliasCss;
|
|
134
135
|
exports.aliasTag = aliasTag;
|
|
135
136
|
exports.defineMoAliases = defineMoAliases;
|
|
136
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
137
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.4.0/dist/components/mo.cjs.map
|