motionary 17.6.0 → 17.7.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 +4 -0
- package/CHANGELOG.md +10 -0
- package/README.md +10 -8
- package/README_ja.md +9 -7
- package/README_zh.md +9 -7
- package/dist/chunks/activity-G3K6LHEP.js +1 -1
- package/dist/chunks/activity-XCjQREWy.cjs +1 -1
- package/dist/chunks/{anim-image-4YJ2ToP0.cjs → anim-image-04e2kxjK.cjs} +2 -2
- package/dist/chunks/{anim-image-CgY8mttn.js → anim-image-BTVdF7jp.js} +2 -2
- package/dist/chunks/audio-BYC54FVb.cjs +1 -1
- package/dist/chunks/audio-BiO_x6I0.js +1 -1
- package/dist/chunks/badge-wall-BIYTO_47.js +1 -1
- package/dist/chunks/badge-wall-nHmls1DJ.cjs +1 -1
- package/dist/chunks/base-DzZEJhQB.cjs +1 -1
- package/dist/chunks/base-SPDwWyB1.js +1 -1
- package/dist/chunks/bg-generator-BjUrAeO1.js +1 -1
- 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-J8Y5msT6.js +1 -1
- package/dist/chunks/carousel--_KvZQq3.js +1 -1
- package/dist/chunks/carousel-CtzI1LxO.cjs +1 -1
- package/dist/chunks/cart-drawer-BJ3pFiI7.js +1 -1
- 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-bfSRtSqB.js +1 -1
- package/dist/chunks/color-picker-8N-NOvcQ.cjs +1 -1
- package/dist/chunks/color-picker-CtpYpnpE.js +1 -1
- package/dist/chunks/command-palette-CF3b-53a.cjs +1 -1
- package/dist/chunks/command-palette-DEwU0apn.js +1 -1
- package/dist/chunks/core-Bj5_9QHr.js +1 -1
- package/dist/chunks/core-BjcOCpJt.cjs +1 -1
- package/dist/chunks/core-C0-LxgXr.js +1 -1
- 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-BK14w5ux.js +1 -1
- package/dist/chunks/date-picker-DBlxYEY6.cjs +1 -1
- package/dist/chunks/date-picker-DLwN_P_R.js +1 -1
- package/dist/chunks/ease-HwYZnZat.cjs +1 -1
- package/dist/chunks/ease-XN8_0sXu.js +1 -1
- package/dist/chunks/engine-CUOpaIK4.js +1 -1
- package/dist/chunks/engine-D89D-YmJ.cjs +1 -1
- package/dist/chunks/equalizer-BJCGaGnx.js +1 -1
- package/dist/chunks/equalizer-DbABxC9W.cjs +1 -1
- package/dist/chunks/festival-banner-DOMDAkz8.cjs +1 -1
- package/dist/chunks/festival-banner-DhYr1Z4b.js +1 -1
- package/dist/chunks/field-Br3yLOwe.js +1 -1
- package/dist/chunks/field-C_ODaCJ5.cjs +1 -1
- package/dist/chunks/form-craft-CGsmJjVw.js +55 -0
- package/dist/chunks/form-craft-i3CaepYO.cjs +62 -0
- package/dist/chunks/form-options-e_FWVRvi.js +19 -0
- package/dist/chunks/form-options-lnCyapKT.cjs +22 -0
- package/dist/chunks/format-C6AKrjTW.js +1 -1
- package/dist/chunks/format-CcfR6-Jx.cjs +1 -1
- package/dist/chunks/fx-BLAi-SpO.cjs +1 -1
- package/dist/chunks/fx-sAOJVpyC.js +1 -1
- package/dist/chunks/generative-Cppu_oFN.js +1 -1
- package/dist/chunks/generative-DkuaIgER.cjs +1 -1
- package/dist/chunks/{gl-scene-CA_CWr1F.js → gl-scene-9uhMddjN.js} +2 -2
- package/dist/chunks/{gl-scene-DpCAWWkJ.cjs → gl-scene-lG0HvTr5.cjs} +2 -2
- package/dist/chunks/globe-BMVmAz1A.cjs +1 -1
- package/dist/chunks/globe-DbofB7xF.js +1 -1
- package/dist/chunks/gpu-B7egA-fl.cjs +1 -1
- package/dist/chunks/gpu-CJnu4Ty1.js +1 -1
- package/dist/chunks/gpu-particles-D1H4dnJY.js +1 -1
- package/dist/chunks/gpu-particles-DGwFsyz_.cjs +1 -1
- package/dist/chunks/history-C-nky56A.js +1 -1
- package/dist/chunks/history-rim_8RCX.cjs +1 -1
- package/dist/chunks/index-1R6Lie-l.js +1 -1
- 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-BOqLumJm.js → keyframes-CiwQ9xWF.js} +2 -2
- package/dist/chunks/{keyframes-BctLO_7h.cjs → keyframes-DQXX31yd.cjs} +2 -2
- package/dist/chunks/leaderboard-Bm9JPPkX.js +1 -1
- package/dist/chunks/leaderboard-DAxGz-Bv.cjs +1 -1
- package/dist/chunks/location-card-ChfmioKU.cjs +1 -1
- package/dist/chunks/location-card-DlVRckSa.js +1 -1
- package/dist/chunks/lottie-icon-DYVkUCf7.js +1 -1
- package/dist/chunks/lottie-icon-tbOmn1bQ.cjs +1 -1
- package/dist/chunks/{lottie-player-BOy1LqLV.cjs → lottie-player-CY5npFg0.cjs} +2 -2
- package/dist/chunks/{lottie-player-6rxodeWA.js → lottie-player-D-nae5je.js} +2 -2
- package/dist/chunks/luminous-B_-9G2GO.cjs +1 -1
- package/dist/chunks/luminous-iQ0lxR6o.js +1 -1
- package/dist/chunks/lyrics-BGUZPoYa.js +1 -1
- package/dist/chunks/lyrics-CchUHmvY.cjs +1 -1
- package/dist/chunks/manifest-D9SNkSNr.js +1 -1
- package/dist/chunks/manifest-DWZv7bHQ.cjs +1 -1
- package/dist/chunks/matter-CeAHN-RP.cjs +1 -1
- package/dist/chunks/matter-s1ApmJnh.js +1 -1
- package/dist/chunks/matter-text-CjPBzmSX.cjs +1 -1
- package/dist/chunks/matter-text-DCeZNAkM.js +1 -1
- package/dist/chunks/matter-tools-c9BnIwSX.cjs +1 -1
- package/dist/chunks/matter-tools-vu63cR1E.js +1 -1
- package/dist/chunks/menu-7-UBhICx.js +1 -1
- package/dist/chunks/menu-9GcThZZr.cjs +1 -1
- package/dist/chunks/menu-toggle-C4AUDeBM.js +1 -1
- 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-BlxMtN4W.js +1 -1
- package/dist/chunks/nav-flyout-CrLUC54W.cjs +1 -1
- package/dist/chunks/nav-morph-BPpHX9Ez.js +1 -1
- package/dist/chunks/nav-morph-DuNCH5WQ.cjs +1 -1
- package/dist/chunks/otp-BIrDvGU8.js +1 -1
- package/dist/chunks/otp-W5drE539.cjs +1 -1
- package/dist/chunks/pagination-BH2ngIJB.cjs +1 -1
- package/dist/chunks/pagination-CiU78ftj.js +1 -1
- package/dist/chunks/{physics-playground-BcjqkdDG.cjs → physics-playground-CT29Alyt.cjs} +2 -2
- package/dist/chunks/{physics-playground-DldXE6d4.js → physics-playground-D22g5Nus.js} +2 -2
- package/dist/chunks/play-CTz93Nas.cjs +1 -1
- package/dist/chunks/play-KU8T1oaZ.js +1 -1
- package/dist/chunks/player-core-BtZTI0Fz.js +1 -1
- package/dist/chunks/player-core-CqR6WVaL.cjs +1 -1
- package/dist/chunks/presence-DKDktgSJ.cjs +1 -1
- package/dist/chunks/presence-qE-_AKeD.js +1 -1
- package/dist/chunks/presets-BYBVJVeP.js +1 -1
- package/dist/chunks/presets-CUHys3sK.cjs +1 -1
- package/dist/chunks/preview-BNOUoHr9.js +1 -1
- package/dist/chunks/preview-DGpXA2hJ.cjs +1 -1
- package/dist/chunks/prize-wheel-DTpQnQ23.js +1 -1
- package/dist/chunks/prize-wheel-W_4Wvldc.cjs +1 -1
- package/dist/chunks/product-gallery-B5ra4XHf.cjs +1 -1
- package/dist/chunks/product-gallery-DUr6hkuf.js +1 -1
- package/dist/chunks/progress-ring-BS7OogLs.js +1 -1
- package/dist/chunks/progress-ring-YtKPU2jM.cjs +1 -1
- package/dist/chunks/project-D8KHFDHI.js +1 -1
- package/dist/chunks/project-DIZ0UqvG.cjs +1 -1
- package/dist/chunks/prop-panel-C65BHNBP.js +1 -1
- package/dist/chunks/prop-panel-CaR91ZOI.cjs +1 -1
- package/dist/chunks/radar-BIU0Yz3_.js +1 -1
- package/dist/chunks/radar-CGKx_0Ug.cjs +1 -1
- package/dist/chunks/reactions-C8aoxmBM.cjs +1 -1
- package/dist/chunks/reactions-hF5fzYX_.js +1 -1
- package/dist/chunks/{registry-HSe7clPM.cjs → registry-CvzRzv5N.cjs} +2 -2
- package/dist/chunks/{registry-CeEFBxw8.js → registry-DFWqcv5h.js} +2 -2
- package/dist/chunks/registry-DmYdTtl4.js +1 -1
- package/dist/chunks/registry-_XKU28ZC.cjs +1 -1
- package/dist/chunks/retro-button-CFu0VcvW.cjs +1 -1
- package/dist/chunks/retro-button-W7RR6wC5.js +1 -1
- package/dist/chunks/rive-D7DZNUuN.js +1 -1
- package/dist/chunks/rive-xzduMxFp.cjs +1 -1
- package/dist/chunks/{runtime-link-DAZ2_Us4.js → runtime-link-BOSHJim4.js} +2 -2
- package/dist/chunks/{runtime-link-BK67DHRd.cjs → runtime-link-CqOMmWDV.cjs} +2 -2
- package/dist/chunks/scene-COP9gX_F.js +1 -1
- 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-Cb-qW9iD.js → scroll-scene-Di3Qy51Y.js} +3 -3
- package/dist/chunks/{scroll-scene-B3bkzocQ.cjs → scroll-scene-bhKJefLg.cjs} +3 -3
- package/dist/chunks/segmented-C4QWn3G2.js +1 -1
- package/dist/chunks/segmented-JA4E5-4e.cjs +1 -1
- package/dist/chunks/shader-backdrop-BjSIcvSf.js +1 -1
- 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-DZd011Pc.js +1 -1
- 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-C1w5G0dG.js +1 -1
- package/dist/chunks/sparkline-CjKGcnI4.js +1 -1
- package/dist/chunks/sparkline-b6jIA0JR.cjs +1 -1
- package/dist/chunks/spring-Bu3AwUgu.js +1 -1
- 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-BEes6d7i.js +1 -1
- package/dist/chunks/suggestion-chips-a0-diVWW.cjs +1 -1
- package/dist/chunks/switch-BRHtlbGk.js +1 -1
- package/dist/chunks/switch-Cs6mszUY.cjs +1 -1
- package/dist/chunks/tab-bar-Bl0c_Z2L.js +1 -1
- package/dist/chunks/tab-bar-BvRhwu_Z.cjs +1 -1
- package/dist/chunks/{ticker-CDY_1pXK.js → ticker-BfzQhvom.js} +2 -2
- package/dist/chunks/{ticker-E0ys82ss.cjs → ticker-DtWc0kyT.cjs} +2 -2
- package/dist/chunks/tip-BVeq5Vl_.js +1 -1
- package/dist/chunks/tip-C4ZmZX3u.cjs +1 -1
- package/dist/chunks/toast-stack-CMgOdocD.js +1 -1
- package/dist/chunks/toast-stack-DOE1cHRn.cjs +1 -1
- package/dist/chunks/{tween-BENWOCyd.cjs → tween-CSQ2EFBm.cjs} +2 -2
- package/dist/chunks/{tween-NYQu20Qn.js → tween-ltfzzNhy.js} +2 -2
- package/dist/chunks/upload-progress-Cxbh9qV2.js +1 -1
- package/dist/chunks/upload-progress-Dw3IXtf8.cjs +1 -1
- package/dist/chunks/v2-BRjQxrf_.js +1 -1
- 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-D_Vmflhf.js +1 -1
- 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-DsvWmYoO.js +1 -1
- package/dist/chunks/weather-card-DjTGZGrl.cjs +1 -1
- package/dist/chunks/weather-card-Dszcrytm.js +1 -1
- package/dist/chunks/worker-canvas-Cob4mssI.js +1 -1
- package/dist/chunks/worker-canvas-DgGkosGe.cjs +1 -1
- package/dist/chunks/xp-bar-BnKM8ws2.js +1 -1
- package/dist/chunks/xp-bar-CgH7Z424.cjs +1 -1
- package/dist/components/a11y.cjs +1 -1
- package/dist/components/a11y.js +1 -1
- 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 +175 -0
- package/dist/components/angular.d.ts +175 -0
- package/dist/components/angular.js +1 -1
- package/dist/components/background.cjs +1 -1
- package/dist/components/background.js +1 -1
- package/dist/components/bridge.cjs +1 -1
- package/dist/components/bridge.js +1 -1
- package/dist/components/cards.cjs +1 -1
- package/dist/components/cards.js +1 -1
- package/dist/components/click.cjs +1 -1
- package/dist/components/click.js +1 -1
- 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.js +1 -1
- package/dist/components/design.cjs +1 -1
- package/dist/components/design.js +1 -1
- package/dist/components/dotlottie.cjs +3 -3
- package/dist/components/dotlottie.js +3 -3
- package/dist/components/dsl.cjs +1 -1
- package/dist/components/dsl.js +1 -1
- package/dist/components/effects.cjs +1 -1
- package/dist/components/effects.js +1 -1
- package/dist/components/engine.cjs +1 -1
- package/dist/components/engine.js +1 -1
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.js +1 -1
- package/dist/components/fx-3d.cjs +1 -1
- package/dist/components/fx-3d.js +1 -1
- package/dist/components/fx-ai.cjs +1 -1
- package/dist/components/fx-ai.js +1 -1
- package/dist/components/fx-chart.cjs +1 -1
- package/dist/components/fx-chart.js +1 -1
- package/dist/components/fx-cinema.cjs +1 -1
- package/dist/components/fx-cinema.js +1 -1
- package/dist/components/fx-cyber.cjs +1 -1
- package/dist/components/fx-cyber.js +1 -1
- package/dist/components/fx-draw.cjs +83 -0
- package/dist/components/fx-draw.d.cts +47 -0
- package/dist/components/fx-draw.d.ts +47 -0
- package/dist/components/fx-draw.js +80 -0
- package/dist/components/fx-festival.cjs +1 -1
- package/dist/components/fx-festival.js +1 -1
- package/dist/components/fx-focus.cjs +1 -1
- package/dist/components/fx-focus.js +1 -1
- package/dist/components/fx-form.cjs +1 -1
- package/dist/components/fx-form.js +1 -1
- package/dist/components/fx-game.cjs +1 -1
- package/dist/components/fx-game.js +1 -1
- package/dist/components/fx-genart.cjs +1 -1
- package/dist/components/fx-genart.js +1 -1
- package/dist/components/fx-geo.cjs +1 -1
- package/dist/components/fx-geo.js +1 -1
- package/dist/components/fx-gesture.cjs +1 -1
- package/dist/components/fx-gesture.js +1 -1
- package/dist/components/fx-gpu.cjs +1 -1
- package/dist/components/fx-gpu.js +1 -1
- package/dist/components/fx-hover.cjs +1 -1
- package/dist/components/fx-hover.js +1 -1
- package/dist/components/fx-light.cjs +1 -1
- package/dist/components/fx-light.js +1 -1
- package/dist/components/fx-lottie.cjs +1 -1
- package/dist/components/fx-lottie.js +1 -1
- package/dist/components/fx-matter.cjs +1 -1
- package/dist/components/fx-matter.js +1 -1
- package/dist/components/fx-morph.cjs +1 -1
- package/dist/components/fx-morph.js +1 -1
- package/dist/components/fx-music.cjs +1 -1
- package/dist/components/fx-music.js +1 -1
- package/dist/components/fx-organic.cjs +1 -1
- package/dist/components/fx-organic.js +1 -1
- package/dist/components/fx-paper.cjs +1 -1
- package/dist/components/fx-paper.js +1 -1
- package/dist/components/fx-perf.cjs +1 -1
- package/dist/components/fx-perf.js +1 -1
- package/dist/components/fx-physics.cjs +1 -1
- package/dist/components/fx-physics.js +1 -1
- package/dist/components/fx-retro.cjs +1 -1
- package/dist/components/fx-retro.js +1 -1
- package/dist/components/fx-safe.cjs +1 -1
- package/dist/components/fx-safe.js +1 -1
- package/dist/components/fx-shop.cjs +1 -1
- package/dist/components/fx-shop.js +1 -1
- package/dist/components/fx-social.cjs +1 -1
- package/dist/components/fx-social.js +1 -1
- package/dist/components/fx-spatial.cjs +1 -1
- package/dist/components/fx-spatial.js +1 -1
- package/dist/components/fx-surface.cjs +1 -1
- package/dist/components/fx-surface.js +1 -1
- package/dist/components/fx-text.cjs +1 -1
- package/dist/components/fx-text.js +1 -1
- package/dist/components/fx-transitions.cjs +1 -1
- package/dist/components/fx-transitions.js +1 -1
- package/dist/components/fx-video.cjs +1 -1
- package/dist/components/fx-video.js +1 -1
- package/dist/components/fx-weather.cjs +1 -1
- package/dist/components/fx-weather.js +1 -1
- package/dist/components/fx.cjs +1 -1
- package/dist/components/fx.js +1 -1
- package/dist/components/fx2.cjs +6 -1
- package/dist/components/fx2.d.cts +4 -1
- package/dist/components/fx2.d.ts +4 -1
- package/dist/components/fx2.js +5 -2
- package/dist/components/gesture.cjs +1 -1
- package/dist/components/gesture.js +1 -1
- package/dist/components/gl-model.cjs +3 -3
- package/dist/components/gl-model.js +3 -3
- 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.js +1 -1
- package/dist/components/jsx.cjs +1 -1
- package/dist/components/jsx.d.cts +175 -0
- package/dist/components/jsx.d.ts +175 -0
- package/dist/components/jsx.js +1 -1
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.js +1 -1
- package/dist/components/lazy.cjs +1 -1
- package/dist/components/lazy.js +1 -1
- package/dist/components/lite.cjs +2 -2
- package/dist/components/lite.js +2 -2
- package/dist/components/marketplace.cjs +1 -1
- package/dist/components/marketplace.js +1 -1
- package/dist/components/mo.cjs +2 -2
- package/dist/components/mo.d.cts +124 -0
- package/dist/components/mo.d.ts +124 -0
- package/dist/components/mo.js +2 -2
- package/dist/components/motion-layout.cjs +1 -1
- package/dist/components/motion-layout.js +1 -1
- package/dist/components/motion-scene.cjs +1 -1
- package/dist/components/motion-scene.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/packs.cjs +1 -1
- package/dist/components/packs.js +1 -1
- package/dist/components/page.cjs +1 -1
- package/dist/components/page.js +1 -1
- package/dist/components/perf-tasks.cjs +1 -1
- package/dist/components/perf-tasks.js +1 -1
- package/dist/components/perf.cjs +1 -1
- package/dist/components/perf.js +1 -1
- package/dist/components/physics.cjs +1 -1
- package/dist/components/physics.js +1 -1
- package/dist/components/plugins.cjs +6 -2
- package/dist/components/plugins.d.cts +3 -1
- package/dist/components/plugins.d.ts +3 -1
- package/dist/components/plugins.js +6 -3
- 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.js +1 -1
- 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 +1 -1
- package/dist/components/scene-v3.cjs +1 -1
- package/dist/components/scene-v3.js +1 -1
- package/dist/components/snap-carousel.cjs +2 -2
- package/dist/components/snap-carousel.js +2 -2
- package/dist/components/solid.cjs +1 -1
- package/dist/components/solid.d.cts +124 -0
- package/dist/components/solid.d.ts +124 -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 +1 -1
- package/dist/components/studio-ai.js +1 -1
- package/dist/components/studio-app.cjs +1 -1
- package/dist/components/studio-app.js +1 -1
- package/dist/components/studio-assets.cjs +1 -1
- package/dist/components/studio-assets.js +1 -1
- 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 +1 -1
- package/dist/components/studio-export.cjs +1 -1
- package/dist/components/studio-export.js +1 -1
- package/dist/components/studio-native.cjs +1 -1
- package/dist/components/studio-native.js +1 -1
- 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 +1 -1
- package/dist/components/studio.cjs +1 -1
- package/dist/components/studio.js +1 -1
- package/dist/components/svelte.cjs +1 -1
- package/dist/components/svelte.d.cts +175 -0
- package/dist/components/svelte.d.ts +175 -0
- package/dist/components/svelte.js +1 -1
- package/dist/components/svg.cjs +1 -1
- package/dist/components/svg.js +1 -1
- package/dist/components/text.cjs +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/timeline-editor.cjs +1 -1
- package/dist/components/timeline-editor.js +1 -1
- package/dist/components/timeline.cjs +1 -1
- package/dist/components/timeline.js +1 -1
- 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.js +1 -1
- package/dist/components/ui.cjs +1 -1
- package/dist/components/ui.js +1 -1
- package/dist/components/vue.cjs +1 -1
- package/dist/components/vue.d.cts +175 -0
- package/dist/components/vue.d.ts +175 -0
- package/dist/components/vue.js +1 -1
- package/dist/components/webgl.cjs +1 -1
- package/dist/components/webgl.js +1 -1
- package/dist/components/widgets.cjs +30 -17
- package/dist/components/widgets.d.cts +156 -15
- package/dist/components/widgets.d.ts +156 -15
- package/dist/components/widgets.js +21 -20
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/components.umd.js +2 -2
- package/dist/effects/achievement-unlock.cjs +1 -1
- package/dist/effects/achievement-unlock.js +1 -1
- package/dist/effects/aurora-veil.cjs +1 -1
- package/dist/effects/aurora-veil.js +1 -1
- package/dist/effects/badge-pop.cjs +1 -1
- package/dist/effects/badge-pop.js +1 -1
- package/dist/effects/bars-grow.cjs +1 -1
- package/dist/effects/bars-grow.js +1 -1
- package/dist/effects/beat-bounce.cjs +1 -1
- package/dist/effects/beat-bounce.js +1 -1
- package/dist/effects/blob-button.cjs +1 -1
- package/dist/effects/blob-button.js +1 -1
- package/dist/effects/bloom.cjs +1 -1
- package/dist/effects/bloom.js +1 -1
- package/dist/effects/breathe.cjs +1 -1
- package/dist/effects/breathe.js +1 -1
- package/dist/effects/brushed-metal.cjs +1 -1
- package/dist/effects/brushed-metal.js +1 -1
- package/dist/effects/camera-dolly.cjs +1 -1
- package/dist/effects/camera-dolly.js +1 -1
- package/dist/effects/card-flip-3d.cjs +1 -1
- package/dist/effects/card-flip-3d.js +1 -1
- package/dist/effects/check-orbit.cjs +18 -0
- package/dist/effects/check-orbit.d.cts +4 -0
- package/dist/effects/check-orbit.d.ts +4 -0
- package/dist/effects/check-orbit.js +14 -0
- package/dist/effects/chemical-bloom.cjs +1 -1
- package/dist/effects/chemical-bloom.js +1 -1
- package/dist/effects/chest-open.cjs +1 -1
- package/dist/effects/chest-open.js +1 -1
- package/dist/effects/cloth.cjs +1 -1
- package/dist/effects/cloth.js +1 -1
- package/dist/effects/coin-burst.cjs +1 -1
- package/dist/effects/coin-burst.js +1 -1
- package/dist/effects/color-pulse.cjs +1 -1
- package/dist/effects/color-pulse.js +1 -1
- package/dist/effects/crt-power.cjs +1 -1
- package/dist/effects/crt-power.js +1 -1
- package/dist/effects/crumple.cjs +1 -1
- package/dist/effects/crumple.js +1 -1
- package/dist/effects/data-decode.cjs +1 -1
- package/dist/effects/data-decode.js +1 -1
- package/dist/effects/day-cycle.cjs +1 -1
- package/dist/effects/day-cycle.js +1 -1
- package/dist/effects/depth-in.cjs +1 -1
- package/dist/effects/depth-in.js +1 -1
- package/dist/effects/depth-pop.cjs +1 -1
- package/dist/effects/depth-pop.js +1 -1
- package/dist/effects/depth-stack.cjs +1 -1
- package/dist/effects/depth-stack.js +1 -1
- package/dist/effects/dolly-in.cjs +1 -1
- package/dist/effects/dolly-in.js +1 -1
- package/dist/effects/dots-pop.cjs +1 -1
- package/dist/effects/dots-pop.js +1 -1
- package/dist/effects/dust-vortex.cjs +1 -1
- package/dist/effects/dust-vortex.js +1 -1
- package/dist/effects/elastic-ripple.cjs +1 -1
- package/dist/effects/elastic-ripple.js +1 -1
- package/dist/effects/error-underline.cjs +18 -0
- package/dist/effects/error-underline.d.cts +4 -0
- package/dist/effects/error-underline.d.ts +4 -0
- package/dist/effects/error-underline.js +14 -0
- package/dist/effects/field-shake.cjs +1 -1
- package/dist/effects/field-shake.js +1 -1
- package/dist/effects/field-success.cjs +1 -1
- package/dist/effects/field-success.js +1 -1
- package/dist/effects/film-burn.cjs +1 -1
- package/dist/effects/film-burn.js +1 -1
- package/dist/effects/fire.cjs +1 -1
- package/dist/effects/fire.js +1 -1
- package/dist/effects/fireflies.cjs +1 -1
- package/dist/effects/fireflies.js +1 -1
- package/dist/effects/firework-burst.cjs +1 -1
- package/dist/effects/firework-burst.js +1 -1
- package/dist/effects/flip-chars.cjs +1 -1
- package/dist/effects/flip-chars.js +1 -1
- package/dist/effects/fluid.cjs +1 -1
- package/dist/effects/fluid.js +1 -1
- package/dist/effects/fly-to-cart.cjs +1 -1
- package/dist/effects/fly-to-cart.js +1 -1
- package/dist/effects/focus-brackets.cjs +18 -0
- package/dist/effects/focus-brackets.d.cts +4 -0
- package/dist/effects/focus-brackets.d.ts +4 -0
- package/dist/effects/focus-brackets.js +14 -0
- package/dist/effects/focus-draw.cjs +1 -1
- package/dist/effects/focus-draw.js +1 -1
- package/dist/effects/focus-glow.cjs +1 -1
- package/dist/effects/focus-glow.js +1 -1
- package/dist/effects/focus-reveal.cjs +1 -1
- package/dist/effects/focus-reveal.js +1 -1
- package/dist/effects/fog.cjs +1 -1
- package/dist/effects/fog.js +1 -1
- package/dist/effects/font-breathe.cjs +1 -1
- package/dist/effects/font-breathe.js +1 -1
- package/dist/effects/form-cascade.cjs +1 -1
- package/dist/effects/form-cascade.js +1 -1
- package/dist/effects/gen-skeleton.cjs +1 -1
- package/dist/effects/gen-skeleton.js +1 -1
- package/dist/effects/glass-frost.cjs +1 -1
- package/dist/effects/glass-frost.js +1 -1
- package/dist/effects/glitch-text.cjs +1 -1
- package/dist/effects/glitch-text.js +1 -1
- package/dist/effects/globe-spin.cjs +1 -1
- package/dist/effects/globe-spin.js +1 -1
- package/dist/effects/god-rays.cjs +1 -1
- package/dist/effects/god-rays.js +1 -1
- package/dist/effects/googly-eyes.cjs +1 -1
- package/dist/effects/googly-eyes.js +1 -1
- package/dist/effects/gpu-lift.cjs +1 -1
- package/dist/effects/gpu-lift.js +1 -1
- package/dist/effects/grain-flicker.cjs +1 -1
- package/dist/effects/grain-flicker.js +1 -1
- package/dist/effects/grid-warp.cjs +1 -1
- package/dist/effects/grid-warp.js +1 -1
- package/dist/effects/halftone-in.cjs +1 -1
- package/dist/effects/halftone-in.js +1 -1
- package/dist/effects/highlight-sweep.cjs +1 -1
- package/dist/effects/highlight-sweep.js +1 -1
- package/dist/effects/hologram.cjs +1 -1
- package/dist/effects/hologram.js +1 -1
- package/dist/effects/hud-frame.cjs +1 -1
- package/dist/effects/hud-frame.js +1 -1
- package/dist/effects/icon-pop.cjs +1 -1
- package/dist/effects/icon-pop.js +1 -1
- package/dist/effects/icon-swap.cjs +1 -1
- package/dist/effects/icon-swap.js +1 -1
- package/dist/effects/idle-reveal.cjs +1 -1
- package/dist/effects/idle-reveal.js +1 -1
- package/dist/effects/image-swap.cjs +1 -1
- package/dist/effects/image-swap.js +1 -1
- package/dist/effects/ink.cjs +1 -1
- package/dist/effects/ink.js +1 -1
- package/dist/effects/jump-cut.cjs +1 -1
- package/dist/effects/jump-cut.js +1 -1
- package/dist/effects/kaleido.cjs +1 -1
- package/dist/effects/kaleido.js +1 -1
- package/dist/effects/label-float.cjs +1 -1
- package/dist/effects/label-float.js +1 -1
- package/dist/effects/lantern-rise.cjs +1 -1
- package/dist/effects/lantern-rise.js +1 -1
- package/dist/effects/leaves.cjs +1 -1
- package/dist/effects/leaves.js +1 -1
- package/dist/effects/letterbox.cjs +1 -1
- package/dist/effects/letterbox.js +1 -1
- package/dist/effects/level-up.cjs +1 -1
- package/dist/effects/level-up.js +1 -1
- package/dist/effects/light-follow.cjs +1 -1
- package/dist/effects/light-follow.js +1 -1
- package/dist/effects/lightning.cjs +1 -1
- package/dist/effects/lightning.js +1 -1
- package/dist/effects/line-draw.cjs +1 -1
- package/dist/effects/line-draw.js +1 -1
- package/dist/effects/liquid-level.cjs +1 -1
- package/dist/effects/liquid-level.js +1 -1
- package/dist/effects/liquid-text.cjs +1 -1
- package/dist/effects/liquid-text.js +1 -1
- package/dist/effects/liquid-wipe.cjs +1 -1
- package/dist/effects/liquid-wipe.js +1 -1
- package/dist/effects/lottie-play.cjs +1 -1
- package/dist/effects/lottie-play.js +1 -1
- package/dist/effects/magnet.cjs +1 -1
- package/dist/effects/magnet.js +1 -1
- package/dist/effects/magnetic-align.cjs +1 -1
- package/dist/effects/magnetic-align.js +1 -1
- package/dist/effects/marching-ants.cjs +1 -1
- package/dist/effects/marching-ants.js +1 -1
- package/dist/effects/marker-pulse.cjs +1 -1
- package/dist/effects/marker-pulse.js +1 -1
- package/dist/effects/mention-glow.cjs +1 -1
- package/dist/effects/mention-glow.js +1 -1
- package/dist/effects/mercury-morph.cjs +1 -1
- package/dist/effects/mercury-morph.js +1 -1
- package/dist/effects/mesh-drift.cjs +1 -1
- package/dist/effects/mesh-drift.js +1 -1
- package/dist/effects/message-in.cjs +1 -1
- package/dist/effects/message-in.js +1 -1
- package/dist/effects/mosaic-flip.cjs +1 -1
- package/dist/effects/mosaic-flip.js +1 -1
- package/dist/effects/neon-ignite.cjs +1 -1
- package/dist/effects/neon-ignite.js +1 -1
- package/dist/effects/neon-pulse.cjs +1 -1
- package/dist/effects/neon-pulse.js +1 -1
- package/dist/effects/neon-write.cjs +1 -1
- package/dist/effects/neon-write.js +1 -1
- package/dist/effects/neu-press.cjs +1 -1
- package/dist/effects/neu-press.js +1 -1
- package/dist/effects/noise-reveal.cjs +1 -1
- package/dist/effects/noise-reveal.js +1 -1
- package/dist/effects/number-roll.cjs +1 -1
- package/dist/effects/number-roll.js +1 -1
- package/dist/effects/orbit-camera.cjs +1 -1
- package/dist/effects/orbit-camera.js +1 -1
- package/dist/effects/orbit-in.cjs +1 -1
- package/dist/effects/orbit-in.js +1 -1
- package/dist/effects/origami.cjs +1 -1
- package/dist/effects/origami.js +1 -1
- package/dist/effects/page-curl.cjs +1 -1
- package/dist/effects/page-curl.js +1 -1
- package/dist/effects/pan-reveal.cjs +1 -1
- package/dist/effects/pan-reveal.js +1 -1
- package/dist/effects/paper-unfold.cjs +1 -1
- package/dist/effects/paper-unfold.js +1 -1
- package/dist/effects/particle-text.cjs +1 -1
- package/dist/effects/particle-text.js +1 -1
- package/dist/effects/path-morph.cjs +1 -1
- package/dist/effects/path-morph.js +1 -1
- package/dist/effects/pearlescent.cjs +1 -1
- package/dist/effects/pearlescent.js +1 -1
- package/dist/effects/pencil-sketch.cjs +1 -1
- package/dist/effects/pencil-sketch.js +1 -1
- package/dist/effects/pin-drop.cjs +1 -1
- package/dist/effects/pin-drop.js +1 -1
- package/dist/effects/pinball.cjs +1 -1
- package/dist/effects/pinball.js +1 -1
- package/dist/effects/pinch-hint.cjs +1 -1
- package/dist/effects/pinch-hint.js +1 -1
- package/dist/effects/pixelate-in.cjs +1 -1
- package/dist/effects/pixelate-in.js +1 -1
- package/dist/effects/pointer-shadow.cjs +1 -1
- package/dist/effects/pointer-shadow.js +1 -1
- package/dist/effects/portal-open.cjs +1 -1
- package/dist/effects/portal-open.js +1 -1
- package/dist/effects/price-flip.cjs +1 -1
- package/dist/effects/price-flip.js +1 -1
- package/dist/effects/product-spin.cjs +1 -1
- package/dist/effects/product-spin.js +1 -1
- package/dist/effects/rack-focus.cjs +1 -1
- package/dist/effects/rack-focus.js +1 -1
- package/dist/effects/radial-spectrum.cjs +1 -1
- package/dist/effects/radial-spectrum.js +1 -1
- package/dist/effects/rain-glass.cjs +1 -1
- package/dist/effects/rain-glass.js +1 -1
- package/dist/effects/reaction-burst.cjs +1 -1
- package/dist/effects/reaction-burst.js +1 -1
- package/dist/effects/read-receipt.cjs +1 -1
- package/dist/effects/read-receipt.js +1 -1
- package/dist/effects/refraction.cjs +1 -1
- package/dist/effects/refraction.js +1 -1
- package/dist/effects/ring-sweep.cjs +1 -1
- package/dist/effects/ring-sweep.js +1 -1
- package/dist/effects/ripple-dissolve.cjs +1 -1
- package/dist/effects/ripple-dissolve.js +1 -1
- package/dist/effects/rope.cjs +1 -1
- package/dist/effects/rope.js +1 -1
- package/dist/effects/route-draw.cjs +1 -1
- package/dist/effects/route-draw.js +1 -1
- package/dist/effects/safe-fade.cjs +1 -1
- package/dist/effects/safe-fade.js +1 -1
- package/dist/effects/sakura.cjs +1 -1
- package/dist/effects/sakura.js +1 -1
- package/dist/effects/sale-shine.cjs +1 -1
- package/dist/effects/sale-shine.js +1 -1
- package/dist/effects/sankey-flow.cjs +1 -1
- package/dist/effects/sankey-flow.js +1 -1
- package/dist/effects/scanline-sweep.cjs +1 -1
- package/dist/effects/scanline-sweep.js +1 -1
- package/dist/effects/shatter.cjs +1 -1
- package/dist/effects/shatter.js +1 -1
- package/dist/effects/smoke.cjs +1 -1
- package/dist/effects/smoke.js +1 -1
- package/dist/effects/snowfall.cjs +1 -1
- package/dist/effects/snowfall.js +1 -1
- package/dist/effects/soft-body.cjs +1 -1
- package/dist/effects/soft-body.js +1 -1
- package/dist/effects/sound-particles.cjs +1 -1
- package/dist/effects/sound-particles.js +1 -1
- package/dist/effects/spatial-float.cjs +1 -1
- package/dist/effects/spatial-float.js +1 -1
- package/dist/effects/spectrum-mirror.cjs +1 -1
- package/dist/effects/spectrum-mirror.js +1 -1
- package/dist/effects/splash.cjs +1 -1
- package/dist/effects/splash.js +1 -1
- package/dist/effects/spooky-float.cjs +1 -1
- package/dist/effects/spooky-float.js +1 -1
- package/dist/effects/stock-pulse.cjs +1 -1
- package/dist/effects/stock-pulse.js +1 -1
- package/dist/effects/stream-text.cjs +1 -1
- package/dist/effects/stream-text.js +1 -1
- package/dist/effects/stroke-draw.cjs +1 -1
- package/dist/effects/stroke-draw.js +1 -1
- package/dist/effects/submit-trail.cjs +18 -0
- package/dist/effects/submit-trail.d.cts +4 -0
- package/dist/effects/submit-trail.d.ts +4 -0
- package/dist/effects/submit-trail.js +14 -0
- package/dist/effects/success-check.cjs +1 -1
- package/dist/effects/success-check.js +1 -1
- package/dist/effects/swipe-hint.cjs +1 -1
- package/dist/effects/swipe-hint.js +1 -1
- package/dist/effects/text-roll.cjs +1 -1
- package/dist/effects/text-roll.js +1 -1
- package/dist/effects/text-trail.cjs +1 -1
- package/dist/effects/text-trail.js +1 -1
- package/dist/effects/thinking-glow.cjs +1 -1
- package/dist/effects/thinking-glow.js +1 -1
- package/dist/effects/tilt-wobble.cjs +1 -1
- package/dist/effects/tilt-wobble.js +1 -1
- package/dist/effects/typing-dots.cjs +1 -1
- package/dist/effects/typing-dots.js +1 -1
- package/dist/effects/underline-sweep.cjs +1 -1
- package/dist/effects/underline-sweep.js +1 -1
- package/dist/effects/vhs-glitch.cjs +1 -1
- package/dist/effects/vhs-glitch.js +1 -1
- package/dist/effects/vine-grow.cjs +1 -1
- package/dist/effects/vine-grow.js +1 -1
- package/dist/effects/vinyl-spin.cjs +1 -1
- package/dist/effects/vinyl-spin.js +1 -1
- package/dist/effects/voice-wave.cjs +1 -1
- package/dist/effects/voice-wave.js +1 -1
- package/dist/effects/water-drop.cjs +1 -1
- package/dist/effects/water-drop.js +1 -1
- package/dist/effects/watercolor.cjs +1 -1
- package/dist/effects/watercolor.js +1 -1
- package/dist/effects/waveform-scope.cjs +1 -1
- package/dist/effects/waveform-scope.js +1 -1
- package/dist/effects/xmas-snow.cjs +1 -1
- package/dist/effects/xmas-snow.js +1 -1
- package/dist/effects/xp-gain.cjs +1 -1
- package/dist/effects/xp-gain.js +1 -1
- package/dist/effects/y2k-shine.cjs +1 -1
- package/dist/effects/y2k-shine.js +1 -1
- 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 +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/llms.txt +14 -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/activity-wall.cjs +1 -1
- package/dist/widgets/activity-wall.js +1 -1
- package/dist/widgets/add-to-cart.cjs +1 -1
- package/dist/widgets/add-to-cart.js +1 -1
- package/dist/widgets/badge-wall.cjs +1 -1
- package/dist/widgets/badge-wall.js +1 -1
- package/dist/widgets/bar-chart.cjs +1 -1
- package/dist/widgets/bar-chart.js +1 -1
- package/dist/widgets/bezier-lab.cjs +1 -1
- package/dist/widgets/bezier-lab.js +1 -1
- package/dist/widgets/bg-generator.cjs +1 -1
- package/dist/widgets/bg-generator.js +1 -1
- package/dist/widgets/breadcrumbs.cjs +1 -1
- package/dist/widgets/breadcrumbs.js +1 -1
- package/dist/widgets/carousel.cjs +1 -1
- package/dist/widgets/carousel.js +1 -1
- package/dist/widgets/cart-drawer.cjs +1 -1
- package/dist/widgets/cart-drawer.js +1 -1
- package/dist/widgets/chapter-nav.cjs +1 -1
- package/dist/widgets/chapter-nav.js +1 -1
- package/dist/widgets/chat-composer.cjs +1 -1
- package/dist/widgets/chat-composer.js +1 -1
- package/dist/widgets/clock-control.cjs +1 -1
- package/dist/widgets/clock-control.js +1 -1
- package/dist/widgets/code-export.cjs +1 -1
- package/dist/widgets/code-export.js +1 -1
- package/dist/widgets/coffee-timer.cjs +1 -1
- package/dist/widgets/coffee-timer.js +1 -1
- package/dist/widgets/color-picker.cjs +1 -1
- package/dist/widgets/color-picker.js +1 -1
- package/dist/widgets/combobox.cjs +131 -0
- package/dist/widgets/combobox.d.cts +2 -0
- package/dist/widgets/combobox.d.ts +2 -0
- package/dist/widgets/combobox.js +129 -0
- package/dist/widgets/command-palette.cjs +1 -1
- package/dist/widgets/command-palette.js +1 -1
- package/dist/widgets/compare.cjs +1 -1
- package/dist/widgets/compare.js +1 -1
- package/dist/widgets/consent.cjs +51 -0
- package/dist/widgets/consent.d.cts +2 -0
- package/dist/widgets/consent.d.ts +2 -0
- package/dist/widgets/consent.js +49 -0
- package/dist/widgets/countdown.cjs +1 -1
- package/dist/widgets/countdown.js +1 -1
- package/dist/widgets/cta-popup.cjs +85 -0
- package/dist/widgets/cta-popup.d.cts +2 -0
- package/dist/widgets/cta-popup.d.ts +2 -0
- package/dist/widgets/cta-popup.js +83 -0
- package/dist/widgets/cube-gallery.cjs +1 -1
- package/dist/widgets/cube-gallery.js +1 -1
- package/dist/widgets/date-picker.cjs +1 -1
- package/dist/widgets/date-picker.js +1 -1
- package/dist/widgets/delivery-tracker.cjs +1 -1
- package/dist/widgets/delivery-tracker.js +1 -1
- package/dist/widgets/disclosure.cjs +1 -1
- package/dist/widgets/disclosure.js +1 -1
- package/dist/widgets/dock.cjs +1 -1
- package/dist/widgets/dock.js +1 -1
- package/dist/widgets/dotlottie.cjs +1 -1
- package/dist/widgets/dotlottie.js +1 -1
- package/dist/widgets/download-menu.cjs +1 -1
- package/dist/widgets/download-menu.js +1 -1
- package/dist/widgets/elastic-mesh.cjs +1 -1
- package/dist/widgets/elastic-mesh.js +1 -1
- package/dist/widgets/equalizer.cjs +1 -1
- package/dist/widgets/equalizer.js +1 -1
- package/dist/widgets/festival-banner.cjs +1 -1
- package/dist/widgets/festival-banner.js +1 -1
- package/dist/widgets/field.cjs +1 -1
- package/dist/widgets/field.js +1 -1
- package/dist/widgets/file-drop.cjs +1 -1
- package/dist/widgets/file-drop.js +1 -1
- package/dist/widgets/file-tree.cjs +1 -1
- package/dist/widgets/file-tree.js +1 -1
- package/dist/widgets/flight-status.cjs +1 -1
- package/dist/widgets/flight-status.js +1 -1
- package/dist/widgets/fluid-type.cjs +1 -1
- package/dist/widgets/fluid-type.js +1 -1
- package/dist/widgets/form-stepper.cjs +167 -0
- package/dist/widgets/form-stepper.d.cts +2 -0
- package/dist/widgets/form-stepper.d.ts +2 -0
- package/dist/widgets/form-stepper.js +165 -0
- package/dist/widgets/fullscreen-menu.cjs +1 -1
- package/dist/widgets/fullscreen-menu.js +1 -1
- package/dist/widgets/gauge.cjs +1 -1
- package/dist/widgets/gauge.js +1 -1
- package/dist/widgets/gen-art.cjs +1 -1
- package/dist/widgets/gen-art.js +1 -1
- package/dist/widgets/gesture-sticker.cjs +1 -1
- package/dist/widgets/gesture-sticker.js +1 -1
- 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 +1 -1
- package/dist/widgets/glucose-sparkline.cjs +1 -1
- package/dist/widgets/glucose-sparkline.js +1 -1
- package/dist/widgets/gpu-particles.cjs +1 -1
- package/dist/widgets/gpu-particles.js +1 -1
- package/dist/widgets/gravity-well.cjs +1 -1
- package/dist/widgets/gravity-well.js +1 -1
- package/dist/widgets/gyro-card.cjs +1 -1
- package/dist/widgets/gyro-card.js +1 -1
- package/dist/widgets/halo-segmented.cjs +1 -1
- package/dist/widgets/halo-segmented.js +1 -1
- package/dist/widgets/halo-slider.cjs +1 -1
- package/dist/widgets/halo-slider.js +1 -1
- package/dist/widgets/hero-video.cjs +1 -1
- package/dist/widgets/hero-video.js +1 -1
- package/dist/widgets/hold-action.cjs +1 -1
- package/dist/widgets/hold-action.js +1 -1
- package/dist/widgets/hud-panel.cjs +1 -1
- package/dist/widgets/hud-panel.js +1 -1
- package/dist/widgets/hydrate.cjs +1 -1
- package/dist/widgets/hydrate.js +1 -1
- package/dist/widgets/ink-flow.cjs +1 -1
- package/dist/widgets/ink-flow.js +1 -1
- package/dist/widgets/install-button.cjs +1 -1
- package/dist/widgets/install-button.js +1 -1
- package/dist/widgets/kanban.cjs +1 -1
- package/dist/widgets/kanban.js +1 -1
- package/dist/widgets/keyframe-editor.cjs +1 -1
- package/dist/widgets/keyframe-editor.js +1 -1
- package/dist/widgets/kpi.cjs +1 -1
- package/dist/widgets/kpi.js +1 -1
- package/dist/widgets/leaderboard.cjs +1 -1
- package/dist/widgets/leaderboard.js +1 -1
- package/dist/widgets/liquid-metal.cjs +1 -1
- package/dist/widgets/liquid-metal.js +1 -1
- package/dist/widgets/liquid-nav.cjs +1 -1
- package/dist/widgets/liquid-nav.js +1 -1
- package/dist/widgets/location-card.cjs +1 -1
- package/dist/widgets/location-card.js +1 -1
- package/dist/widgets/lottie-icon.cjs +1 -1
- package/dist/widgets/lottie-icon.js +1 -1
- 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 +1 -1
- package/dist/widgets/luminous-switch.cjs +1 -1
- package/dist/widgets/luminous-switch.js +1 -1
- package/dist/widgets/lyrics.cjs +1 -1
- package/dist/widgets/lyrics.js +1 -1
- package/dist/widgets/magnetic-field.cjs +1 -1
- package/dist/widgets/magnetic-field.js +1 -1
- package/dist/widgets/masonry-flow.cjs +1 -1
- package/dist/widgets/masonry-flow.js +1 -1
- package/dist/widgets/mega-menu.cjs +1 -1
- package/dist/widgets/mega-menu.js +1 -1
- package/dist/widgets/menu-toggle.cjs +1 -1
- package/dist/widgets/menu-toggle.js +1 -1
- package/dist/widgets/menu.cjs +1 -1
- package/dist/widgets/menu.js +1 -1
- package/dist/widgets/message-list.cjs +1 -1
- package/dist/widgets/message-list.js +1 -1
- package/dist/widgets/meter-countdown.cjs +1 -1
- package/dist/widgets/meter-countdown.js +1 -1
- package/dist/widgets/milestones.cjs +1 -1
- package/dist/widgets/milestones.js +1 -1
- package/dist/widgets/modal.cjs +1 -1
- package/dist/widgets/modal.js +1 -1
- package/dist/widgets/motion-inspector.cjs +2 -2
- package/dist/widgets/motion-inspector.js +2 -2
- package/dist/widgets/motion-prefs.cjs +1 -1
- package/dist/widgets/motion-prefs.js +1 -1
- package/dist/widgets/motion-prompt.cjs +1 -1
- package/dist/widgets/motion-prompt.js +1 -1
- package/dist/widgets/motion-spec.cjs +1 -1
- package/dist/widgets/motion-spec.js +1 -1
- package/dist/widgets/motion.cjs +1 -1
- package/dist/widgets/motion.js +1 -1
- package/dist/widgets/multi-select.cjs +63 -0
- package/dist/widgets/multi-select.d.cts +2 -0
- package/dist/widgets/multi-select.d.ts +2 -0
- package/dist/widgets/multi-select.js +61 -0
- package/dist/widgets/music-player.cjs +1 -1
- package/dist/widgets/music-player.js +1 -1
- package/dist/widgets/native-preview.cjs +1 -1
- package/dist/widgets/native-preview.js +1 -1
- package/dist/widgets/nav-flyout.cjs +1 -1
- package/dist/widgets/nav-flyout.js +1 -1
- package/dist/widgets/nav-morph.cjs +1 -1
- package/dist/widgets/nav-morph.js +1 -1
- package/dist/widgets/notification-bell.cjs +1 -1
- package/dist/widgets/notification-bell.js +1 -1
- package/dist/widgets/number-stepper.cjs +54 -0
- package/dist/widgets/number-stepper.d.cts +2 -0
- package/dist/widgets/number-stepper.d.ts +2 -0
- package/dist/widgets/number-stepper.js +52 -0
- package/dist/widgets/odometer.cjs +1 -1
- package/dist/widgets/odometer.js +1 -1
- package/dist/widgets/orbit-pass.cjs +1 -1
- package/dist/widgets/orbit-pass.js +1 -1
- package/dist/widgets/orbit-progress.cjs +1 -1
- package/dist/widgets/orbit-progress.js +1 -1
- package/dist/widgets/organic-card.cjs +1 -1
- package/dist/widgets/organic-card.js +1 -1
- package/dist/widgets/otp.cjs +1 -1
- package/dist/widgets/otp.js +1 -1
- package/dist/widgets/pagination.cjs +1 -1
- package/dist/widgets/pagination.js +1 -1
- package/dist/widgets/panorama.cjs +1 -1
- package/dist/widgets/panorama.js +1 -1
- package/dist/widgets/parallax-layers.cjs +1 -1
- package/dist/widgets/parallax-layers.js +1 -1
- package/dist/widgets/particle-button.cjs +1 -1
- package/dist/widgets/particle-button.js +1 -1
- package/dist/widgets/particle-icon.cjs +1 -1
- package/dist/widgets/particle-icon.js +1 -1
- package/dist/widgets/password.cjs +58 -0
- package/dist/widgets/password.d.cts +2 -0
- package/dist/widgets/password.d.ts +2 -0
- package/dist/widgets/password.js +56 -0
- package/dist/widgets/pause-all.cjs +1 -1
- package/dist/widgets/pause-all.js +1 -1
- package/dist/widgets/perf-monitor.cjs +1 -1
- package/dist/widgets/perf-monitor.js +1 -1
- 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 +3 -3
- package/dist/widgets/plugin-store.cjs +1 -1
- package/dist/widgets/plugin-store.js +1 -1
- package/dist/widgets/presence.cjs +1 -1
- package/dist/widgets/presence.js +1 -1
- package/dist/widgets/prize-wheel.cjs +1 -1
- package/dist/widgets/prize-wheel.js +1 -1
- package/dist/widgets/product-gallery.cjs +1 -1
- package/dist/widgets/product-gallery.js +1 -1
- package/dist/widgets/progress-ring.cjs +1 -1
- package/dist/widgets/progress-ring.js +1 -1
- package/dist/widgets/prop-panel.cjs +1 -1
- package/dist/widgets/prop-panel.js +1 -1
- package/dist/widgets/pull-cord.cjs +1 -1
- package/dist/widgets/pull-cord.js +1 -1
- package/dist/widgets/race-telemetry.cjs +1 -1
- package/dist/widgets/race-telemetry.js +1 -1
- package/dist/widgets/radar.cjs +1 -1
- package/dist/widgets/radar.js +1 -1
- package/dist/widgets/range-slider.cjs +61 -0
- package/dist/widgets/range-slider.d.cts +2 -0
- package/dist/widgets/range-slider.d.ts +2 -0
- package/dist/widgets/range-slider.js +59 -0
- package/dist/widgets/reaction-field.cjs +1 -1
- package/dist/widgets/reaction-field.js +1 -1
- package/dist/widgets/reactions.cjs +1 -1
- package/dist/widgets/reactions.js +1 -1
- package/dist/widgets/red-envelope.cjs +1 -1
- package/dist/widgets/red-envelope.js +1 -1
- package/dist/widgets/retro-button.cjs +1 -1
- package/dist/widgets/retro-button.js +1 -1
- package/dist/widgets/revision-reveal.cjs +1 -1
- package/dist/widgets/revision-reveal.js +1 -1
- package/dist/widgets/ride-status.cjs +1 -1
- package/dist/widgets/ride-status.js +1 -1
- package/dist/widgets/rive.cjs +1 -1
- package/dist/widgets/rive.js +1 -1
- package/dist/widgets/route-sparkline.cjs +1 -1
- package/dist/widgets/route-sparkline.js +1 -1
- package/dist/widgets/route-transition.cjs +1 -1
- package/dist/widgets/route-transition.js +1 -1
- package/dist/widgets/scene.cjs +1 -1
- package/dist/widgets/scene.js +1 -1
- package/dist/widgets/scroll-ring.cjs +1 -1
- package/dist/widgets/scroll-ring.js +1 -1
- package/dist/widgets/scroll-scene.cjs +2 -2
- package/dist/widgets/scroll-scene.js +2 -2
- package/dist/widgets/scrub-number.cjs +1 -1
- package/dist/widgets/scrub-number.js +1 -1
- package/dist/widgets/search-field.cjs +136 -0
- package/dist/widgets/search-field.d.cts +2 -0
- package/dist/widgets/search-field.d.ts +2 -0
- package/dist/widgets/search-field.js +134 -0
- package/dist/widgets/segmented.cjs +1 -1
- package/dist/widgets/segmented.js +1 -1
- package/dist/widgets/select.cjs +65 -0
- package/dist/widgets/select.d.cts +2 -0
- package/dist/widgets/select.d.ts +2 -0
- package/dist/widgets/select.js +63 -0
- package/dist/widgets/shader-backdrop.cjs +1 -1
- package/dist/widgets/shader-backdrop.js +1 -1
- package/dist/widgets/sheet.cjs +1 -1
- package/dist/widgets/sheet.js +1 -1
- package/dist/widgets/shortcut.cjs +1 -1
- package/dist/widgets/shortcut.js +1 -1
- package/dist/widgets/skeleton-reveal.cjs +1 -1
- package/dist/widgets/skeleton-reveal.js +1 -1
- package/dist/widgets/sketch-chart.cjs +1 -1
- package/dist/widgets/sketch-chart.js +1 -1
- package/dist/widgets/smooth-scroll.cjs +2 -2
- package/dist/widgets/smooth-scroll.js +2 -2
- 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 +1 -1
- package/dist/widgets/spatial-card.cjs +1 -1
- package/dist/widgets/spatial-card.js +1 -1
- package/dist/widgets/spring-lab.cjs +1 -1
- package/dist/widgets/spring-lab.js +1 -1
- package/dist/widgets/star-rating.cjs +1 -1
- package/dist/widgets/star-rating.js +1 -1
- package/dist/widgets/status-pill.cjs +1 -1
- package/dist/widgets/status-pill.js +1 -1
- package/dist/widgets/stepper.cjs +1 -1
- package/dist/widgets/stepper.js +1 -1
- package/dist/widgets/sticky-wall.cjs +1 -1
- package/dist/widgets/sticky-wall.js +1 -1
- package/dist/widgets/stories.cjs +1 -1
- package/dist/widgets/stories.js +1 -1
- package/dist/widgets/suggestion-chips.cjs +1 -1
- package/dist/widgets/suggestion-chips.js +1 -1
- package/dist/widgets/sun-timeline.cjs +1 -1
- package/dist/widgets/sun-timeline.js +1 -1
- package/dist/widgets/swipe-deck.cjs +1 -1
- package/dist/widgets/swipe-deck.js +1 -1
- package/dist/widgets/switch.cjs +1 -1
- package/dist/widgets/switch.js +1 -1
- package/dist/widgets/tab-bar.cjs +1 -1
- package/dist/widgets/tab-bar.js +1 -1
- package/dist/widgets/terminal.cjs +1 -1
- package/dist/widgets/terminal.js +1 -1
- package/dist/widgets/text-loupe.cjs +1 -1
- package/dist/widgets/text-loupe.js +1 -1
- package/dist/widgets/text-splitter.cjs +3 -3
- package/dist/widgets/text-splitter.js +3 -3
- package/dist/widgets/textarea.cjs +79 -0
- package/dist/widgets/textarea.d.cts +2 -0
- package/dist/widgets/textarea.d.ts +2 -0
- package/dist/widgets/textarea.js +77 -0
- package/dist/widgets/theme-surface.cjs +1 -1
- package/dist/widgets/theme-surface.js +1 -1
- package/dist/widgets/theme-switcher.cjs +1 -1
- package/dist/widgets/theme-switcher.js +1 -1
- package/dist/widgets/tip.cjs +1 -1
- package/dist/widgets/tip.js +1 -1
- package/dist/widgets/title-sequence.cjs +1 -1
- package/dist/widgets/title-sequence.js +1 -1
- package/dist/widgets/toast-stack.cjs +1 -1
- package/dist/widgets/toast-stack.js +1 -1
- package/dist/widgets/token-editor.cjs +1 -1
- package/dist/widgets/token-editor.js +1 -1
- package/dist/widgets/transit-progress.cjs +1 -1
- package/dist/widgets/transit-progress.js +1 -1
- package/dist/widgets/upload-progress.cjs +1 -1
- package/dist/widgets/upload-progress.js +1 -1
- package/dist/widgets/validation-summary.cjs +66 -0
- package/dist/widgets/validation-summary.d.cts +2 -0
- package/dist/widgets/validation-summary.d.ts +2 -0
- package/dist/widgets/validation-summary.js +64 -0
- package/dist/widgets/video-card.cjs +1 -1
- package/dist/widgets/video-card.js +1 -1
- package/dist/widgets/vital-wave.cjs +1 -1
- package/dist/widgets/vital-wave.js +1 -1
- package/dist/widgets/voice-button.cjs +1 -1
- package/dist/widgets/voice-button.js +1 -1
- package/dist/widgets/volume-knob.cjs +1 -1
- package/dist/widgets/volume-knob.js +1 -1
- package/dist/widgets/weather-card.cjs +1 -1
- package/dist/widgets/weather-card.js +1 -1
- package/dist/widgets/worker-canvas.cjs +1 -1
- package/dist/widgets/worker-canvas.js +1 -1
- package/dist/widgets/workout-player.cjs +1 -1
- package/dist/widgets/workout-player.js +1 -1
- package/dist/widgets/xp-bar.cjs +1 -1
- package/dist/widgets/xp-bar.js +1 -1
- package/dist/widgets.umd.js +2 -2
- package/docs/components/README.md +13 -1
- package/docs/components/usa-combobox.md +36 -0
- package/docs/components/usa-consent.md +36 -0
- package/docs/components/usa-cta-popup.md +36 -0
- package/docs/components/usa-form-stepper.md +36 -0
- package/docs/components/usa-fx.md +32 -0
- package/docs/components/usa-multi-select.md +36 -0
- package/docs/components/usa-number-stepper.md +36 -0
- package/docs/components/usa-password.md +36 -0
- package/docs/components/usa-range-slider.md +36 -0
- package/docs/components/usa-search-field.md +36 -0
- package/docs/components/usa-select.md +36 -0
- package/docs/components/usa-textarea.md +36 -0
- package/docs/components/usa-validation-summary.md +36 -0
- package/docs/components.md +5 -5
- package/docs/coverage-roadmap.md +48 -0
- package/docs/entry-points.md +18 -2
- package/docs/form-atelier.md +120 -0
- package/docs/versions.md +1 -1
- package/figma-plugin/code.js +1 -1
- package/package.json +192 -12
|
@@ -120,4 +120,4 @@ function defineScrubNumber(tag = 'usa-scrub-number') {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
export { defineScrubNumber };
|
|
123
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
123
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/scrub-number.js.map
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var base = require('../chunks/base-DzZEJhQB.cjs');
|
|
4
|
+
var moName = require('../chunks/mo-name-DR9ysd5S.cjs');
|
|
5
|
+
var formCraft = require('../chunks/form-craft-i3CaepYO.cjs');
|
|
6
|
+
var formOptions = require('../chunks/form-options-lnCyapKT.cjs');
|
|
7
|
+
|
|
8
|
+
/** Debounced native search with an application-supplied provider, abortable requests and stale-result protection. */
|
|
9
|
+
function defineSearchField(tag = 'usa-search-field') {
|
|
10
|
+
const ctor = base.defineElement(tag, Base => class SearchField extends Base {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this._results = [];
|
|
14
|
+
}
|
|
15
|
+
static get observedAttributes() { return ['label', 'hint', 'value', 'name', 'placeholder', 'delay', 'min-length', 'disabled', 'loading-text', 'empty-text', 'error-text']; }
|
|
16
|
+
get input() { return this.querySelector('input'); }
|
|
17
|
+
get value() { return this.str('value'); }
|
|
18
|
+
set value(value) { this.cancel(); this.setAttribute('value', String(value)); this._sync?.(); }
|
|
19
|
+
get provider() { return this._provider; }
|
|
20
|
+
set provider(value) { this.cancel(); this._provider = typeof value === 'function' ? value : undefined; }
|
|
21
|
+
get results() { return this._results.map(row => ({ ...row })); }
|
|
22
|
+
search(query = this.value) { this.value = query; this._run?.(query); }
|
|
23
|
+
clear() { this.cancel(); this.value = ''; this.input?.focus(); this.emit('input', { value: '' }); }
|
|
24
|
+
cancel() { this._cancel?.(); }
|
|
25
|
+
reset() { this.cancel(); this.value = this._initial ?? ''; }
|
|
26
|
+
changed(name) { if (name === 'disabled' || name === 'value')
|
|
27
|
+
this.cancel(); this._sync?.(); }
|
|
28
|
+
mount() {
|
|
29
|
+
this._initial ?? (this._initial = this.value);
|
|
30
|
+
const { root, title, hint } = formCraft.formShell(this, 'Search'), row = formCraft.node('div', 'usa-form-row'), input = formCraft.node('input'), clear = formCraft.node('button', '', '×'), status = formCraft.node('div', 'usa-form-search-status'), list = formCraft.node('ul', 'usa-form-search-results');
|
|
31
|
+
input.type = 'search';
|
|
32
|
+
input.autocomplete = 'off';
|
|
33
|
+
clear.type = 'button';
|
|
34
|
+
clear.setAttribute('aria-label', 'Clear search');
|
|
35
|
+
list.id = formOptions.choiceId();
|
|
36
|
+
list.setAttribute('aria-label', 'Search results');
|
|
37
|
+
status.setAttribute('role', 'status');
|
|
38
|
+
status.id = formOptions.choiceId();
|
|
39
|
+
input.setAttribute('aria-describedby', status.id);
|
|
40
|
+
input.setAttribute('aria-controls', list.id);
|
|
41
|
+
row.append(input, clear);
|
|
42
|
+
root.append(row, status, list, hint);
|
|
43
|
+
let timer, request, serial = 0, alive = true, composing = false;
|
|
44
|
+
const animate = formCraft.formMotion(this);
|
|
45
|
+
const cancel = () => { clearTimeout(timer); request?.abort(); request = undefined; serial++; this._results = []; list.replaceChildren(); list.hidden = true; root.removeAttribute('aria-busy'); status.textContent = ''; };
|
|
46
|
+
this._cancel = cancel;
|
|
47
|
+
const sync = () => { title.textContent = this.str('label', 'Search'); hint.textContent = this.str('hint'); input.setAttribute('aria-label', title.textContent); input.name = this.str('name'); input.placeholder = this.str('placeholder', 'Search collections'); input.disabled = this.flag('disabled'); clear.disabled = input.disabled || !this.value; if (input.value !== this.value)
|
|
48
|
+
input.value = this.value; };
|
|
49
|
+
this._sync = sync;
|
|
50
|
+
const run = (query) => {
|
|
51
|
+
cancel();
|
|
52
|
+
if (this.flag('disabled') || query.trim().length < formCraft.numberValue(this.num('min-length', 1), 1, 0, 1000))
|
|
53
|
+
return;
|
|
54
|
+
const id = serial, controller = new AbortController();
|
|
55
|
+
request = controller;
|
|
56
|
+
this.emit('query', { query, signal: controller.signal });
|
|
57
|
+
if (!alive || id !== serial || controller.signal.aborted || this.flag('disabled') || !this._provider)
|
|
58
|
+
return;
|
|
59
|
+
root.setAttribute('aria-busy', 'true');
|
|
60
|
+
status.textContent = this.str('loading-text', 'Searching…');
|
|
61
|
+
Promise.resolve().then(() => { if (controller.signal.aborted)
|
|
62
|
+
return []; return this._provider?.(query, { signal: controller.signal }) ?? []; }).then(rows => {
|
|
63
|
+
if (!alive || id !== serial || controller.signal.aborted)
|
|
64
|
+
return;
|
|
65
|
+
this._results = Array.isArray(rows) ? rows.slice(0, 50).filter(r => r && typeof r.value === 'string' && typeof r.label === 'string').map(r => ({ value: r.value, label: r.label, ...(typeof r.description === 'string' ? { description: r.description } : {}) })) : [];
|
|
66
|
+
root.removeAttribute('aria-busy');
|
|
67
|
+
list.replaceChildren();
|
|
68
|
+
for (const result of this._results) {
|
|
69
|
+
const item = formCraft.node('li'), button = formCraft.node('button');
|
|
70
|
+
button.type = 'button';
|
|
71
|
+
button.dataset.value = result.value;
|
|
72
|
+
button.append(formCraft.node('span', '', result.label));
|
|
73
|
+
if (result.description)
|
|
74
|
+
button.append(formCraft.node('small', '', result.description));
|
|
75
|
+
item.append(button);
|
|
76
|
+
list.append(item);
|
|
77
|
+
}
|
|
78
|
+
list.hidden = !this._results.length;
|
|
79
|
+
status.textContent = this._results.length ? this._results.length + ' results' : this.str('empty-text', 'No results');
|
|
80
|
+
if (this._results.length)
|
|
81
|
+
animate(list);
|
|
82
|
+
this.emit('results', { query, count: this._results.length });
|
|
83
|
+
}, () => { if (!alive || id !== serial || controller.signal.aborted)
|
|
84
|
+
return; root.removeAttribute('aria-busy'); status.textContent = this.str('error-text', 'Search unavailable. Try again.'); this.emit('error', { query }); });
|
|
85
|
+
};
|
|
86
|
+
this._run = run;
|
|
87
|
+
const schedule = () => { const query = input.value; this.value = query; this.emit('input', { value: query }); if (!composing)
|
|
88
|
+
timer = setTimeout(() => run(query), formCraft.numberValue(this.num('delay', 200), 200, 0, 3000)); };
|
|
89
|
+
this.listen(input, 'compositionstart', () => { composing = true; cancel(); });
|
|
90
|
+
this.listen(input, 'compositionend', () => { composing = false; schedule(); });
|
|
91
|
+
this.listen(input, 'input', schedule);
|
|
92
|
+
this.listen(clear, 'click', () => this.clear());
|
|
93
|
+
this.listen(input, 'keydown', (event) => { if (event.isComposing)
|
|
94
|
+
return; if (event.key === 'Enter') {
|
|
95
|
+
event.preventDefault();
|
|
96
|
+
this.search();
|
|
97
|
+
}
|
|
98
|
+
else if (event.key === 'Escape') {
|
|
99
|
+
event.preventDefault();
|
|
100
|
+
this.cancel();
|
|
101
|
+
}
|
|
102
|
+
else if (event.key === 'ArrowDown' && !list.hidden) {
|
|
103
|
+
event.preventDefault();
|
|
104
|
+
list.querySelector('button')?.focus();
|
|
105
|
+
} });
|
|
106
|
+
this.listen(list, 'click', (event) => { const button = event.target.closest('button[data-value]'); if (!button || !list.contains(button))
|
|
107
|
+
return; const result = this._results.find(r => r.value === button.dataset.value); if (result) {
|
|
108
|
+
this.value = result.label;
|
|
109
|
+
input.focus();
|
|
110
|
+
this.emit('select', { ...result });
|
|
111
|
+
} });
|
|
112
|
+
this.listen(list, 'keydown', (event) => { const buttons = Array.from(list.querySelectorAll('button')), current = buttons.indexOf(event.target); if (event.key === 'Escape') {
|
|
113
|
+
event.preventDefault();
|
|
114
|
+
this.cancel();
|
|
115
|
+
input.focus();
|
|
116
|
+
}
|
|
117
|
+
else if (['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key)) {
|
|
118
|
+
event.preventDefault();
|
|
119
|
+
const index = event.key === 'Home' ? 0 : event.key === 'End' ? buttons.length - 1 : current + (event.key === 'ArrowDown' ? 1 : -1);
|
|
120
|
+
if (index < 0)
|
|
121
|
+
input.focus();
|
|
122
|
+
else
|
|
123
|
+
buttons[Math.min(index, buttons.length - 1)]?.focus();
|
|
124
|
+
} });
|
|
125
|
+
formCraft.formReset(this, () => this.reset());
|
|
126
|
+
this.onCleanup(() => { alive = false; cancel(); this._sync = this._run = this._cancel = undefined; });
|
|
127
|
+
sync();
|
|
128
|
+
cancel();
|
|
129
|
+
}
|
|
130
|
+
}, { id: 'form-craft', text: formCraft.css });
|
|
131
|
+
moName.defineMoName(tag, ctor);
|
|
132
|
+
return ctor;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
exports.defineSearchField = defineSearchField;
|
|
136
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/search-field.cjs.map
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { f as defineElement } from '../chunks/base-SPDwWyB1.js';
|
|
2
|
+
import { d as defineMoName } from '../chunks/mo-name-DT5wwaGR.js';
|
|
3
|
+
import { c as css, f as formShell, n as node, a as formMotion, b as formReset, d as numberValue } from '../chunks/form-craft-CGsmJjVw.js';
|
|
4
|
+
import { a as choiceId } from '../chunks/form-options-e_FWVRvi.js';
|
|
5
|
+
|
|
6
|
+
/** Debounced native search with an application-supplied provider, abortable requests and stale-result protection. */
|
|
7
|
+
function defineSearchField(tag = 'usa-search-field') {
|
|
8
|
+
const ctor = defineElement(tag, Base => class SearchField extends Base {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this._results = [];
|
|
12
|
+
}
|
|
13
|
+
static get observedAttributes() { return ['label', 'hint', 'value', 'name', 'placeholder', 'delay', 'min-length', 'disabled', 'loading-text', 'empty-text', 'error-text']; }
|
|
14
|
+
get input() { return this.querySelector('input'); }
|
|
15
|
+
get value() { return this.str('value'); }
|
|
16
|
+
set value(value) { this.cancel(); this.setAttribute('value', String(value)); this._sync?.(); }
|
|
17
|
+
get provider() { return this._provider; }
|
|
18
|
+
set provider(value) { this.cancel(); this._provider = typeof value === 'function' ? value : undefined; }
|
|
19
|
+
get results() { return this._results.map(row => ({ ...row })); }
|
|
20
|
+
search(query = this.value) { this.value = query; this._run?.(query); }
|
|
21
|
+
clear() { this.cancel(); this.value = ''; this.input?.focus(); this.emit('input', { value: '' }); }
|
|
22
|
+
cancel() { this._cancel?.(); }
|
|
23
|
+
reset() { this.cancel(); this.value = this._initial ?? ''; }
|
|
24
|
+
changed(name) { if (name === 'disabled' || name === 'value')
|
|
25
|
+
this.cancel(); this._sync?.(); }
|
|
26
|
+
mount() {
|
|
27
|
+
this._initial ?? (this._initial = this.value);
|
|
28
|
+
const { root, title, hint } = formShell(this, 'Search'), row = node('div', 'usa-form-row'), input = node('input'), clear = node('button', '', '×'), status = node('div', 'usa-form-search-status'), list = node('ul', 'usa-form-search-results');
|
|
29
|
+
input.type = 'search';
|
|
30
|
+
input.autocomplete = 'off';
|
|
31
|
+
clear.type = 'button';
|
|
32
|
+
clear.setAttribute('aria-label', 'Clear search');
|
|
33
|
+
list.id = choiceId();
|
|
34
|
+
list.setAttribute('aria-label', 'Search results');
|
|
35
|
+
status.setAttribute('role', 'status');
|
|
36
|
+
status.id = choiceId();
|
|
37
|
+
input.setAttribute('aria-describedby', status.id);
|
|
38
|
+
input.setAttribute('aria-controls', list.id);
|
|
39
|
+
row.append(input, clear);
|
|
40
|
+
root.append(row, status, list, hint);
|
|
41
|
+
let timer, request, serial = 0, alive = true, composing = false;
|
|
42
|
+
const animate = formMotion(this);
|
|
43
|
+
const cancel = () => { clearTimeout(timer); request?.abort(); request = undefined; serial++; this._results = []; list.replaceChildren(); list.hidden = true; root.removeAttribute('aria-busy'); status.textContent = ''; };
|
|
44
|
+
this._cancel = cancel;
|
|
45
|
+
const sync = () => { title.textContent = this.str('label', 'Search'); hint.textContent = this.str('hint'); input.setAttribute('aria-label', title.textContent); input.name = this.str('name'); input.placeholder = this.str('placeholder', 'Search collections'); input.disabled = this.flag('disabled'); clear.disabled = input.disabled || !this.value; if (input.value !== this.value)
|
|
46
|
+
input.value = this.value; };
|
|
47
|
+
this._sync = sync;
|
|
48
|
+
const run = (query) => {
|
|
49
|
+
cancel();
|
|
50
|
+
if (this.flag('disabled') || query.trim().length < numberValue(this.num('min-length', 1), 1, 0, 1000))
|
|
51
|
+
return;
|
|
52
|
+
const id = serial, controller = new AbortController();
|
|
53
|
+
request = controller;
|
|
54
|
+
this.emit('query', { query, signal: controller.signal });
|
|
55
|
+
if (!alive || id !== serial || controller.signal.aborted || this.flag('disabled') || !this._provider)
|
|
56
|
+
return;
|
|
57
|
+
root.setAttribute('aria-busy', 'true');
|
|
58
|
+
status.textContent = this.str('loading-text', 'Searching…');
|
|
59
|
+
Promise.resolve().then(() => { if (controller.signal.aborted)
|
|
60
|
+
return []; return this._provider?.(query, { signal: controller.signal }) ?? []; }).then(rows => {
|
|
61
|
+
if (!alive || id !== serial || controller.signal.aborted)
|
|
62
|
+
return;
|
|
63
|
+
this._results = Array.isArray(rows) ? rows.slice(0, 50).filter(r => r && typeof r.value === 'string' && typeof r.label === 'string').map(r => ({ value: r.value, label: r.label, ...(typeof r.description === 'string' ? { description: r.description } : {}) })) : [];
|
|
64
|
+
root.removeAttribute('aria-busy');
|
|
65
|
+
list.replaceChildren();
|
|
66
|
+
for (const result of this._results) {
|
|
67
|
+
const item = node('li'), button = node('button');
|
|
68
|
+
button.type = 'button';
|
|
69
|
+
button.dataset.value = result.value;
|
|
70
|
+
button.append(node('span', '', result.label));
|
|
71
|
+
if (result.description)
|
|
72
|
+
button.append(node('small', '', result.description));
|
|
73
|
+
item.append(button);
|
|
74
|
+
list.append(item);
|
|
75
|
+
}
|
|
76
|
+
list.hidden = !this._results.length;
|
|
77
|
+
status.textContent = this._results.length ? this._results.length + ' results' : this.str('empty-text', 'No results');
|
|
78
|
+
if (this._results.length)
|
|
79
|
+
animate(list);
|
|
80
|
+
this.emit('results', { query, count: this._results.length });
|
|
81
|
+
}, () => { if (!alive || id !== serial || controller.signal.aborted)
|
|
82
|
+
return; root.removeAttribute('aria-busy'); status.textContent = this.str('error-text', 'Search unavailable. Try again.'); this.emit('error', { query }); });
|
|
83
|
+
};
|
|
84
|
+
this._run = run;
|
|
85
|
+
const schedule = () => { const query = input.value; this.value = query; this.emit('input', { value: query }); if (!composing)
|
|
86
|
+
timer = setTimeout(() => run(query), numberValue(this.num('delay', 200), 200, 0, 3000)); };
|
|
87
|
+
this.listen(input, 'compositionstart', () => { composing = true; cancel(); });
|
|
88
|
+
this.listen(input, 'compositionend', () => { composing = false; schedule(); });
|
|
89
|
+
this.listen(input, 'input', schedule);
|
|
90
|
+
this.listen(clear, 'click', () => this.clear());
|
|
91
|
+
this.listen(input, 'keydown', (event) => { if (event.isComposing)
|
|
92
|
+
return; if (event.key === 'Enter') {
|
|
93
|
+
event.preventDefault();
|
|
94
|
+
this.search();
|
|
95
|
+
}
|
|
96
|
+
else if (event.key === 'Escape') {
|
|
97
|
+
event.preventDefault();
|
|
98
|
+
this.cancel();
|
|
99
|
+
}
|
|
100
|
+
else if (event.key === 'ArrowDown' && !list.hidden) {
|
|
101
|
+
event.preventDefault();
|
|
102
|
+
list.querySelector('button')?.focus();
|
|
103
|
+
} });
|
|
104
|
+
this.listen(list, 'click', (event) => { const button = event.target.closest('button[data-value]'); if (!button || !list.contains(button))
|
|
105
|
+
return; const result = this._results.find(r => r.value === button.dataset.value); if (result) {
|
|
106
|
+
this.value = result.label;
|
|
107
|
+
input.focus();
|
|
108
|
+
this.emit('select', { ...result });
|
|
109
|
+
} });
|
|
110
|
+
this.listen(list, 'keydown', (event) => { const buttons = Array.from(list.querySelectorAll('button')), current = buttons.indexOf(event.target); if (event.key === 'Escape') {
|
|
111
|
+
event.preventDefault();
|
|
112
|
+
this.cancel();
|
|
113
|
+
input.focus();
|
|
114
|
+
}
|
|
115
|
+
else if (['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key)) {
|
|
116
|
+
event.preventDefault();
|
|
117
|
+
const index = event.key === 'Home' ? 0 : event.key === 'End' ? buttons.length - 1 : current + (event.key === 'ArrowDown' ? 1 : -1);
|
|
118
|
+
if (index < 0)
|
|
119
|
+
input.focus();
|
|
120
|
+
else
|
|
121
|
+
buttons[Math.min(index, buttons.length - 1)]?.focus();
|
|
122
|
+
} });
|
|
123
|
+
formReset(this, () => this.reset());
|
|
124
|
+
this.onCleanup(() => { alive = false; cancel(); this._sync = this._run = this._cancel = undefined; });
|
|
125
|
+
sync();
|
|
126
|
+
cancel();
|
|
127
|
+
}
|
|
128
|
+
}, { id: 'form-craft', text: css });
|
|
129
|
+
defineMoName(tag, ctor);
|
|
130
|
+
return ctor;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export { defineSearchField };
|
|
134
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/search-field.js.map
|
|
@@ -5,4 +5,4 @@ var widgets_segmented = require('../chunks/segmented-JA4E5-4e.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
exports.defineSegmented = widgets_segmented.defineSegmented;
|
|
8
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
8
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/segmented.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { d as defineSegmented } from '../chunks/segmented-C4QWn3G2.js';
|
|
2
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/segmented.js.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var base = require('../chunks/base-DzZEJhQB.cjs');
|
|
4
|
+
var moName = require('../chunks/mo-name-DR9ysd5S.cjs');
|
|
5
|
+
var formCraft = require('../chunks/form-craft-i3CaepYO.cjs');
|
|
6
|
+
var formOptions = require('../chunks/form-options-lnCyapKT.cjs');
|
|
7
|
+
|
|
8
|
+
function defineSelect(tag = 'usa-select') {
|
|
9
|
+
const ctor = base.defineElement(tag, Base => class Select extends Base {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this._select = null;
|
|
13
|
+
}
|
|
14
|
+
static get observedAttributes() { return ['label', 'hint', 'value', 'options', 'name', 'placeholder', 'required', 'disabled']; }
|
|
15
|
+
get input() { return this._select; }
|
|
16
|
+
get options() { return formOptions.choices(this._options ?? this.str('options', '[]')); }
|
|
17
|
+
set options(value) { this._options = formOptions.choices(value); this._sync?.(true); }
|
|
18
|
+
get value() { return this._select?.value ?? this.str('value'); }
|
|
19
|
+
set value(value) { this.setAttribute('value', String(value)); }
|
|
20
|
+
reset() { this.value = this._initial ?? ''; this._sync?.(); }
|
|
21
|
+
changed(name) { if (name === 'options')
|
|
22
|
+
this._options = undefined; this._sync?.(name === 'options' || name === 'placeholder'); }
|
|
23
|
+
mount() {
|
|
24
|
+
this._initial ?? (this._initial = this.str('value'));
|
|
25
|
+
const { root, title, hint } = formCraft.formShell(this, 'Choose an option'), input = formCraft.node('select');
|
|
26
|
+
root.append(input, hint);
|
|
27
|
+
this._select = input;
|
|
28
|
+
const animate = formCraft.formMotion(this);
|
|
29
|
+
const sync = (rebuild = false) => { if (rebuild) {
|
|
30
|
+
const empty = formCraft.node('option', '', this.str('placeholder', 'Choose an option'));
|
|
31
|
+
empty.value = '';
|
|
32
|
+
input.replaceChildren(empty);
|
|
33
|
+
let group = '';
|
|
34
|
+
let parent = input;
|
|
35
|
+
for (const choice of this.options) {
|
|
36
|
+
if ((choice.group || '') !== group) {
|
|
37
|
+
group = choice.group || '';
|
|
38
|
+
if (group) {
|
|
39
|
+
const g = formCraft.node('optgroup');
|
|
40
|
+
g.label = group;
|
|
41
|
+
input.append(g);
|
|
42
|
+
parent = g;
|
|
43
|
+
}
|
|
44
|
+
else
|
|
45
|
+
parent = input;
|
|
46
|
+
}
|
|
47
|
+
const o = formCraft.node('option', '', choice.label);
|
|
48
|
+
o.value = choice.value;
|
|
49
|
+
o.disabled = !!choice.disabled;
|
|
50
|
+
parent.append(o);
|
|
51
|
+
}
|
|
52
|
+
} title.textContent = this.str('label', 'Choose an option'); hint.textContent = this.str('hint'); input.setAttribute('aria-label', title.textContent); input.name = this.str('name'); input.required = this.flag('required'); input.disabled = this.flag('disabled'); input.value = this.str('value'); };
|
|
53
|
+
this._sync = sync;
|
|
54
|
+
this.listen(input, 'change', () => { this.value = input.value; animate(input); this.emit('change', { value: this.value }); });
|
|
55
|
+
formCraft.formReset(this, () => this.reset());
|
|
56
|
+
this.onCleanup(() => { this._select = null; this._sync = undefined; });
|
|
57
|
+
sync(true);
|
|
58
|
+
}
|
|
59
|
+
}, { id: 'form-craft', text: formCraft.css });
|
|
60
|
+
moName.defineMoName(tag, ctor);
|
|
61
|
+
return ctor;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
exports.defineSelect = defineSelect;
|
|
65
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/select.cjs.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { f as defineElement } from '../chunks/base-SPDwWyB1.js';
|
|
2
|
+
import { d as defineMoName } from '../chunks/mo-name-DT5wwaGR.js';
|
|
3
|
+
import { c as css, f as formShell, n as node, a as formMotion, b as formReset } from '../chunks/form-craft-CGsmJjVw.js';
|
|
4
|
+
import { c as choices } from '../chunks/form-options-e_FWVRvi.js';
|
|
5
|
+
|
|
6
|
+
function defineSelect(tag = 'usa-select') {
|
|
7
|
+
const ctor = defineElement(tag, Base => class Select extends Base {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this._select = null;
|
|
11
|
+
}
|
|
12
|
+
static get observedAttributes() { return ['label', 'hint', 'value', 'options', 'name', 'placeholder', 'required', 'disabled']; }
|
|
13
|
+
get input() { return this._select; }
|
|
14
|
+
get options() { return choices(this._options ?? this.str('options', '[]')); }
|
|
15
|
+
set options(value) { this._options = choices(value); this._sync?.(true); }
|
|
16
|
+
get value() { return this._select?.value ?? this.str('value'); }
|
|
17
|
+
set value(value) { this.setAttribute('value', String(value)); }
|
|
18
|
+
reset() { this.value = this._initial ?? ''; this._sync?.(); }
|
|
19
|
+
changed(name) { if (name === 'options')
|
|
20
|
+
this._options = undefined; this._sync?.(name === 'options' || name === 'placeholder'); }
|
|
21
|
+
mount() {
|
|
22
|
+
this._initial ?? (this._initial = this.str('value'));
|
|
23
|
+
const { root, title, hint } = formShell(this, 'Choose an option'), input = node('select');
|
|
24
|
+
root.append(input, hint);
|
|
25
|
+
this._select = input;
|
|
26
|
+
const animate = formMotion(this);
|
|
27
|
+
const sync = (rebuild = false) => { if (rebuild) {
|
|
28
|
+
const empty = node('option', '', this.str('placeholder', 'Choose an option'));
|
|
29
|
+
empty.value = '';
|
|
30
|
+
input.replaceChildren(empty);
|
|
31
|
+
let group = '';
|
|
32
|
+
let parent = input;
|
|
33
|
+
for (const choice of this.options) {
|
|
34
|
+
if ((choice.group || '') !== group) {
|
|
35
|
+
group = choice.group || '';
|
|
36
|
+
if (group) {
|
|
37
|
+
const g = node('optgroup');
|
|
38
|
+
g.label = group;
|
|
39
|
+
input.append(g);
|
|
40
|
+
parent = g;
|
|
41
|
+
}
|
|
42
|
+
else
|
|
43
|
+
parent = input;
|
|
44
|
+
}
|
|
45
|
+
const o = node('option', '', choice.label);
|
|
46
|
+
o.value = choice.value;
|
|
47
|
+
o.disabled = !!choice.disabled;
|
|
48
|
+
parent.append(o);
|
|
49
|
+
}
|
|
50
|
+
} title.textContent = this.str('label', 'Choose an option'); hint.textContent = this.str('hint'); input.setAttribute('aria-label', title.textContent); input.name = this.str('name'); input.required = this.flag('required'); input.disabled = this.flag('disabled'); input.value = this.str('value'); };
|
|
51
|
+
this._sync = sync;
|
|
52
|
+
this.listen(input, 'change', () => { this.value = input.value; animate(input); this.emit('change', { value: this.value }); });
|
|
53
|
+
formReset(this, () => this.reset());
|
|
54
|
+
this.onCleanup(() => { this._select = null; this._sync = undefined; });
|
|
55
|
+
sync(true);
|
|
56
|
+
}
|
|
57
|
+
}, { id: 'form-craft', text: css });
|
|
58
|
+
defineMoName(tag, ctor);
|
|
59
|
+
return ctor;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { defineSelect };
|
|
63
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/select.js.map
|
|
@@ -5,4 +5,4 @@ var widgets_shaderBackdrop = require('../chunks/shader-backdrop-Ct8UIKNL.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
exports.defineShaderBackdrop = widgets_shaderBackdrop.defineShaderBackdrop;
|
|
8
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
8
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/shader-backdrop.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { d as defineShaderBackdrop } from '../chunks/shader-backdrop-BjSIcvSf.js';
|
|
2
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/shader-backdrop.js.map
|
package/dist/widgets/sheet.cjs
CHANGED
|
@@ -5,4 +5,4 @@ var widgets_modal = require('../chunks/sheet-BzJEwGbk.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
exports.defineSheet = widgets_modal.defineSheet;
|
|
8
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
8
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/sheet.cjs.map
|
package/dist/widgets/sheet.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { d as defineSheet } from '../chunks/sheet-DZd011Pc.js';
|
|
2
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/sheet.js.map
|
|
@@ -58,4 +58,4 @@ function defineShortcut(tag = 'usa-shortcut') {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
exports.defineShortcut = defineShortcut;
|
|
61
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
61
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/shortcut.cjs.map
|
package/dist/widgets/shortcut.js
CHANGED
|
@@ -56,4 +56,4 @@ function defineShortcut(tag = 'usa-shortcut') {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
export { defineShortcut };
|
|
59
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
59
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/shortcut.js.map
|
|
@@ -5,4 +5,4 @@ var widgets_skeletonReveal = require('../chunks/skeleton-reveal-04UV72HA.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
exports.defineSkeletonReveal = widgets_skeletonReveal.defineSkeletonReveal;
|
|
8
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
8
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/skeleton-reveal.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { d as defineSkeletonReveal } from '../chunks/skeleton-reveal-C1w5G0dG.js';
|
|
2
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/skeleton-reveal.js.map
|
|
@@ -106,4 +106,4 @@ function defineSketchChart(tag = 'usa-sketch-chart') {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
exports.defineSketchChart = defineSketchChart;
|
|
109
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
109
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/sketch-chart.cjs.map
|
|
@@ -104,4 +104,4 @@ function defineSketchChart(tag = 'usa-sketch-chart') {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
export { defineSketchChart };
|
|
107
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
107
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/sketch-chart.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var base = require('../chunks/base-DzZEJhQB.cjs');
|
|
4
|
-
var runtimeLink = require('../chunks/runtime-link-
|
|
4
|
+
var runtimeLink = require('../chunks/runtime-link-CqOMmWDV.cjs');
|
|
5
5
|
|
|
6
6
|
var css = "usa-smooth-scroll{display:contents}usa-smooth-scroll[data-wrapper]{display:block;overflow:auto;overscroll-behavior:contain;max-height:100%;-webkit-overflow-scrolling:touch}usa-smooth-scroll[data-wrapper].usa-smooth{scroll-behavior:auto}html.usa-smooth{scroll-behavior:auto}usa-smooth-scroll .usa-rt-missing{margin:0 0 8px;padding:8px;border-radius:8px;background:#fef2f2;color:#991b1b;font:11px/1.4 ui-monospace,monospace;overflow-wrap:anywhere}";
|
|
7
7
|
|
|
@@ -81,4 +81,4 @@ function defineSmoothScroll(tag = 'usa-smooth-scroll') {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
exports.defineSmoothScroll = defineSmoothScroll;
|
|
84
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
84
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/smooth-scroll.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as defineElement } from '../chunks/base-SPDwWyB1.js';
|
|
2
|
-
import { r as runtimeModule } from '../chunks/runtime-link-
|
|
2
|
+
import { r as runtimeModule } from '../chunks/runtime-link-BOSHJim4.js';
|
|
3
3
|
|
|
4
4
|
var css = "usa-smooth-scroll{display:contents}usa-smooth-scroll[data-wrapper]{display:block;overflow:auto;overscroll-behavior:contain;max-height:100%;-webkit-overflow-scrolling:touch}usa-smooth-scroll[data-wrapper].usa-smooth{scroll-behavior:auto}html.usa-smooth{scroll-behavior:auto}usa-smooth-scroll .usa-rt-missing{margin:0 0 8px;padding:8px;border-radius:8px;background:#fef2f2;color:#991b1b;font:11px/1.4 ui-monospace,monospace;overflow-wrap:anywhere}";
|
|
5
5
|
|
|
@@ -79,4 +79,4 @@ function defineSmoothScroll(tag = 'usa-smooth-scroll') {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
export { defineSmoothScroll };
|
|
82
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
82
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/smooth-scroll.js.map
|
|
@@ -5,4 +5,4 @@ var components_snapCarousel = require('../components/snap-carousel.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
exports.defineSnapCarousel = components_snapCarousel.defineSnapCarousel;
|
|
8
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
8
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/snap-carousel.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { defineSnapCarousel } from '../components/snap-carousel.js';
|
|
2
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/snap-carousel.js.map
|
|
@@ -5,4 +5,4 @@ var widgets_sparkline = require('../chunks/sparkline-b6jIA0JR.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
exports.defineSparkline = widgets_sparkline.defineSparkline;
|
|
8
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
8
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/sparkline.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { d as defineSparkline } from '../chunks/sparkline-CjKGcnI4.js';
|
|
2
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/sparkline.js.map
|
|
@@ -53,4 +53,4 @@ function defineSpatialCard(tag = 'usa-spatial-card') {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
exports.defineSpatialCard = defineSpatialCard;
|
|
56
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
56
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/spatial-card.cjs.map
|
|
@@ -51,4 +51,4 @@ function defineSpatialCard(tag = 'usa-spatial-card') {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
export { defineSpatialCard };
|
|
54
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
54
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/spatial-card.js.map
|
|
@@ -23,4 +23,4 @@ function defineSpringLab(tag = 'usa-spring-lab') {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
exports.defineSpringLab = defineSpringLab;
|
|
26
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
26
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/spring-lab.cjs.map
|
|
@@ -21,4 +21,4 @@ function defineSpringLab(tag = 'usa-spring-lab') {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export { defineSpringLab };
|
|
24
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
24
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/spring-lab.js.map
|
|
@@ -144,4 +144,4 @@ function defineStarRating(tag = 'usa-star-rating') {
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
exports.defineStarRating = defineStarRating;
|
|
147
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
147
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/star-rating.cjs.map
|
|
@@ -142,4 +142,4 @@ function defineStarRating(tag = 'usa-star-rating') {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
export { defineStarRating };
|
|
145
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
145
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/star-rating.js.map
|
|
@@ -26,4 +26,4 @@ function defineStatusPill(tag = 'usa-status-pill') {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
exports.defineStatusPill = defineStatusPill;
|
|
29
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
29
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/widgets/status-pill.cjs.map
|