@yewdiel21/motion-kit 0.9.0 → 0.10.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/NOTICE +3 -35
- package/README.md +93 -81
- package/dist/auto/index.d.ts +22 -3
- package/dist/auto/index.js +43 -5
- package/dist/auto/index.js.map +1 -1
- package/dist/{chunk-KLY5BRRI.js → chunk-34EZ7DF4.js} +1 -1
- package/dist/chunk-34EZ7DF4.js.map +1 -0
- package/dist/{chunk-RFDIZYFX.js → chunk-DOOMULVV.js} +20 -20
- package/dist/chunk-DOOMULVV.js.map +1 -0
- package/dist/{chunk-ABNRDDO7.js → chunk-I3DXF2KQ.js} +2 -2
- package/dist/{chunk-Q4LVFNLN.js → chunk-IKQ5FODN.js} +4 -4
- package/dist/chunk-IKQ5FODN.js.map +1 -0
- package/dist/{chunk-2BQGFOA7.js → chunk-J6OCFNGU.js} +2 -2
- package/dist/chunk-J6OCFNGU.js.map +1 -0
- package/dist/{chunk-6OJAP6ZL.js → chunk-QFBOHPWZ.js} +3 -3
- package/dist/chunk-QFBOHPWZ.js.map +1 -0
- package/dist/{chunk-J27KH2A2.js → chunk-RVSKEBIC.js} +1 -1
- package/dist/chunk-RVSKEBIC.js.map +1 -0
- package/dist/{chunk-34XYOXHG.js → chunk-TFNRIZHU.js} +1615 -12
- package/dist/chunk-TFNRIZHU.js.map +1 -0
- package/dist/{chunk-FS2HJVVY.js → chunk-XAKC2QY7.js} +1204 -5
- package/dist/chunk-XAKC2QY7.js.map +1 -0
- package/dist/css/components/calendar.css +159 -0
- package/dist/css/components/chat-background.css +2 -2
- package/dist/css/components/chat.css +1 -1
- package/dist/css/components/cursor.css +3 -3
- package/dist/css/components/dialog.css +3 -3
- package/dist/css/components/hover-card.css +14 -0
- package/dist/css/components/input-otp.css +10 -0
- package/dist/css/components/island.css +1 -1
- package/dist/css/components/menu.css +1 -1
- package/dist/css/components/nav.css +1 -5
- package/dist/css/components/pagination.css +11 -0
- package/dist/css/components/quantity.css +16 -0
- package/dist/css/components/slot-picker.css +126 -0
- package/dist/css/components/steps.css +2 -2
- package/dist/css/components/studio-dock.css +35 -0
- package/dist/css/components/theme-picker.css +1 -1
- package/dist/css/components/toast.css +1 -1
- package/dist/css/components/trailer.css +37 -0
- package/dist/css/controls.css +78 -13
- package/dist/css/effects.css +8 -8
- package/dist/css/fonts.css +1 -1
- package/dist/css/themes/black-green.css +1 -1
- package/dist/css/themes/black.css +1 -1
- package/dist/css/themes/blue.css +1 -1
- package/dist/css/themes/brown.css +1 -1
- package/dist/css/themes/cold-blue.css +1 -1
- package/dist/css/themes/funny.css +1 -1
- package/dist/css/themes/gray.css +1 -1
- package/dist/css/themes/green.css +1 -1
- package/dist/css/themes/modern-1.css +1 -1
- package/dist/css/themes/neogreen.css +1 -1
- package/dist/css/themes/new.css +1 -1
- package/dist/css/themes/new2.css +1 -1
- package/dist/css/themes/oled.css +1 -1
- package/dist/css/themes/orange.css +1 -1
- package/dist/css/themes/pastel-pink.css +1 -1
- package/dist/css/themes/pink.css +1 -1
- package/dist/css/themes/purple.css +1 -1
- package/dist/css/themes/red.css +1 -1
- package/dist/css/themes/super-blue.css +1 -1
- package/dist/css/themes.css +19 -19
- package/dist/css/tokens.css +9 -9
- package/dist/elements/index.d.ts +75 -7
- package/dist/elements/index.js +172 -6
- package/dist/elements/index.js.map +1 -1
- package/dist/{engine-CUr9QijM.d.ts → engine-GDGwQnJE.d.ts} +2 -2
- package/dist/gl/index.js +3 -3
- package/dist/index.css +1076 -63
- package/dist/index.d.ts +17 -17
- package/dist/index.js +49 -7
- package/dist/index.js.map +1 -1
- package/dist/react/index.d.ts +139 -40
- package/dist/react/index.js +355 -8
- package/dist/react/index.js.map +1 -1
- package/dist/{reduced-BM4Ls0g5.d.ts → reduced-BmBzKH94.d.ts} +215 -18
- package/dist/{reveal-WFUWDrei.d.ts → reveal-jsX-uwUz.d.ts} +233 -24
- package/dist/{store-Bqy_obnD.d.ts → store-DYb3tTsZ.d.ts} +5 -5
- package/dist/theme/generate.d.ts +1 -1
- package/dist/theme/generate.js +2 -2
- package/dist/theme/generate.js.map +1 -1
- package/dist/theme/index.d.ts +2 -2
- package/dist/theme/index.js +2 -2
- package/dist/{theme-BFMoCzi6.d.ts → theme-Bjf9qIIy.d.ts} +1 -1
- package/package.json +2 -2
- package/registry.json +230 -156
- package/skills/motion-kit/SKILL.md +209 -189
- package/skills/motion-kit/reference/components.md +5 -5
- package/skills/motion-kit/reference/design.md +14 -14
- package/skills/motion-kit/reference/recipes.md +48 -49
- package/src/auto/auto-init.ts +38 -0
- package/src/components/calendar/README.md +82 -0
- package/src/components/calendar/calendar.css +158 -0
- package/src/components/calendar/element.ts +27 -0
- package/src/components/calendar/engine.ts +412 -0
- package/src/components/calendar/react.tsx +69 -0
- package/src/components/chat/README.md +1 -3
- package/src/components/chat/chat.css +1 -1
- package/src/components/chat/engine.ts +1 -1
- package/src/components/chat/react.tsx +1 -1
- package/src/components/chat-background/README.md +1 -3
- package/src/components/chat-background/audio.ts +1 -1
- package/src/components/chat-background/chat-background.css +2 -2
- package/src/components/chat-background/engine.ts +1 -1
- package/src/components/chat-background/react.tsx +1 -1
- package/src/components/cursor/README.md +3 -5
- package/src/components/cursor/cursor.css +3 -3
- package/src/components/cursor/element.ts +2 -2
- package/src/components/cursor/engine.ts +5 -5
- package/src/components/cursor/react.tsx +1 -1
- package/src/components/dialog/README.md +4 -8
- package/src/components/dialog/dialog.css +3 -3
- package/src/components/dialog/engine.ts +2 -2
- package/src/components/dialog/react.tsx +1 -1
- package/src/components/hover-card/README.md +16 -0
- package/src/components/hover-card/element.ts +8 -0
- package/src/components/hover-card/engine.ts +69 -0
- package/src/components/hover-card/hover-card.css +13 -0
- package/src/components/hover-card/react.tsx +19 -0
- package/src/components/input-otp/README.md +18 -0
- package/src/components/input-otp/element.ts +14 -0
- package/src/components/input-otp/engine.ts +106 -0
- package/src/components/input-otp/input-otp.css +9 -0
- package/src/components/input-otp/react.tsx +21 -0
- package/src/components/island/README.md +7 -7
- package/src/components/island/engine.ts +3 -3
- package/src/components/island/island.css +1 -1
- package/src/components/island/react.tsx +3 -3
- package/src/components/menu/README.md +2 -4
- package/src/components/menu/engine.ts +1 -1
- package/src/components/menu/menu.css +1 -1
- package/src/components/menu/react.tsx +1 -1
- package/src/components/nav/README.md +12 -14
- package/src/components/nav/engine.ts +5 -5
- package/src/components/nav/nav.css +1 -5
- package/src/components/nav/react.tsx +3 -3
- package/src/components/pagination/README.md +17 -0
- package/src/components/pagination/element.ts +14 -0
- package/src/components/pagination/engine.ts +102 -0
- package/src/components/pagination/pagination.css +10 -0
- package/src/components/pagination/react.tsx +22 -0
- package/src/components/quantity/README.md +20 -0
- package/src/components/quantity/element.ts +14 -0
- package/src/components/quantity/engine.ts +85 -0
- package/src/components/quantity/quantity.css +15 -0
- package/src/components/quantity/react.tsx +21 -0
- package/src/components/slot-picker/README.md +68 -0
- package/src/components/slot-picker/element.ts +27 -0
- package/src/components/slot-picker/engine.ts +412 -0
- package/src/components/slot-picker/react.tsx +76 -0
- package/src/components/slot-picker/slot-picker.css +125 -0
- package/src/components/steps/README.md +1 -3
- package/src/components/steps/engine.ts +3 -3
- package/src/components/steps/react.tsx +2 -2
- package/src/components/steps/steps.css +2 -2
- package/src/components/studio-dock/README.md +44 -0
- package/src/components/studio-dock/element.ts +11 -0
- package/src/components/studio-dock/engine.ts +212 -0
- package/src/components/studio-dock/react.tsx +23 -0
- package/src/components/studio-dock/studio-dock.css +34 -0
- package/src/components/theme-picker/README.md +3 -5
- package/src/components/theme-picker/engine.ts +2 -2
- package/src/components/theme-picker/react.tsx +1 -1
- package/src/components/theme-picker/theme-picker.css +1 -1
- package/src/components/toast/README.md +1 -3
- package/src/components/toast/engine.ts +2 -2
- package/src/components/toast/react.tsx +1 -1
- package/src/components/toast/store.ts +1 -2
- package/src/components/toast/toast.css +1 -1
- package/src/components/trailer/README.md +28 -0
- package/src/components/trailer/element.ts +13 -0
- package/src/components/trailer/engine.ts +189 -0
- package/src/components/trailer/react.tsx +16 -0
- package/src/components/trailer/trailer.css +36 -0
- package/src/core/channels.ts +3 -3
- package/src/core/curves.ts +3 -3
- package/src/core/dates.ts +98 -0
- package/src/core/gsap.ts +2 -2
- package/src/core/loop.ts +1 -1
- package/src/core/math.ts +1 -1
- package/src/core/physics-spring.ts +2 -2
- package/src/core/scroll-track.ts +2 -4
- package/src/core/spring.ts +1 -1
- package/src/core/timing.ts +21 -22
- package/src/css/controls/README.md +24 -20
- package/src/css/controls/burger.css +1 -1
- package/src/css/controls/button.css +4 -4
- package/src/css/controls/checkbox.css +1 -1
- package/src/css/controls/chip.css +1 -1
- package/src/css/controls/field.css +2 -2
- package/src/css/controls/glass.css +4 -4
- package/src/css/controls/status.css +63 -0
- package/src/css/default-theme.css +1 -1
- package/src/css/effects/README.md +19 -21
- package/src/css/effects/anim.css +1 -1
- package/src/css/effects/fade.css +1 -1
- package/src/css/effects/float.css +1 -1
- package/src/css/effects/frost.css +1 -1
- package/src/css/effects/grain.css +1 -1
- package/src/css/effects/loading.css +1 -1
- package/src/css/effects/success.css +1 -1
- package/src/css/effects/text.css +1 -1
- package/src/css/fonts.css +1 -1
- package/src/css/states.css +1 -1
- package/src/css/themes/black-green.css +1 -1
- package/src/css/themes/black.css +1 -1
- package/src/css/themes/blue.css +1 -1
- package/src/css/themes/brown.css +1 -1
- package/src/css/themes/cold-blue.css +1 -1
- package/src/css/themes/funny.css +1 -1
- package/src/css/themes/gray.css +1 -1
- package/src/css/themes/green.css +1 -1
- package/src/css/themes/modern-1.css +1 -1
- package/src/css/themes/neogreen.css +1 -1
- package/src/css/themes/new.css +1 -1
- package/src/css/themes/new2.css +1 -1
- package/src/css/themes/oled.css +1 -1
- package/src/css/themes/orange.css +1 -1
- package/src/css/themes/pastel-pink.css +1 -1
- package/src/css/themes/pink.css +1 -1
- package/src/css/themes/purple.css +1 -1
- package/src/css/themes/red.css +1 -1
- package/src/css/themes/super-blue.css +1 -1
- package/src/css/tokens.css +8 -8
- package/src/elements/index.ts +24 -0
- package/src/gl/liquid-blend/README.md +3 -3
- package/src/gl/matcap/README.md +3 -3
- package/src/gl/particle-hero/README.md +1 -1
- package/src/gl/particle-hero/create-particle-hero.ts +3 -5
- package/src/gl/particle-hero/shaders.ts +1 -1
- package/src/gl/shader-blur/README.md +3 -3
- package/src/gl/shader-grain/README.md +3 -3
- package/src/index.ts +25 -0
- package/src/motion/chat.ts +2 -2
- package/src/motion/confetti.ts +1 -1
- package/src/motion/count.ts +1 -1
- package/src/motion/details.ts +1 -1
- package/src/motion/drag-dismiss.ts +1 -1
- package/src/motion/effects.ts +1 -1
- package/src/motion/entrances.ts +1 -1
- package/src/motion/floating.ts +1 -1
- package/src/motion/flow.ts +2 -2
- package/src/motion/indicator.ts +1 -1
- package/src/motion/layout.ts +1 -1
- package/src/motion/liquid.ts +1 -1
- package/src/motion/morph.ts +2 -2
- package/src/motion/reveal.ts +1 -1
- package/src/motion/sheet.ts +1 -1
- package/src/motion/surface.ts +1 -1
- package/src/react/animated-number.tsx +2 -2
- package/src/react/flip-group.tsx +1 -1
- package/src/react/frost.tsx +1 -1
- package/src/react/index.ts +21 -0
- package/src/react/slot-text.tsx +1 -1
- package/src/react/use-action-button.ts +6 -0
- package/src/react/use-card-dock.ts +1 -1
- package/src/react/use-cascade.ts +1 -1
- package/src/react/use-contrast.ts +1 -1
- package/src/react/use-depth-grid.ts +1 -1
- package/src/react/use-editorial-reveal.ts +7 -0
- package/src/react/use-fill-text.ts +1 -1
- package/src/react/use-film-hero.ts +6 -0
- package/src/react/use-font-cycle.ts +7 -0
- package/src/react/use-frame-zoom.ts +1 -1
- package/src/react/use-image-zoom.ts +5 -0
- package/src/react/use-joined-cta.ts +5 -0
- package/src/react/use-letters.ts +1 -1
- package/src/react/use-local-clock.ts +5 -0
- package/src/react/use-marquee.ts +1 -1
- package/src/react/use-mask-text.ts +1 -1
- package/src/react/use-parallax.ts +1 -1
- package/src/react/use-particle-hero.ts +1 -1
- package/src/react/use-scroll-dock.ts +5 -0
- package/src/react/use-snap-strip.ts +1 -1
- package/src/react/use-sticker.ts +5 -0
- package/src/react/use-studio-dock.ts +8 -0
- package/src/react/use-text-roll.ts +1 -1
- package/src/react/use-thumbnail-nav.ts +7 -0
- package/src/react/use-trailer.ts +6 -0
- package/src/react/use-weight-hover.ts +5 -0
- package/src/recipes/action-button/README.md +31 -0
- package/src/recipes/action-button/action-button.css +113 -0
- package/src/recipes/action-button/create-action-button.ts +56 -0
- package/src/recipes/card-dock/README.md +1 -1
- package/src/recipes/card-dock/card-dock.css +1 -1
- package/src/recipes/card-dock/create-card-dock.ts +2 -2
- package/src/recipes/cascade/README.md +1 -3
- package/src/recipes/cascade/create-cascade.ts +3 -3
- package/src/recipes/contrast/README.md +0 -2
- package/src/recipes/contrast/create-contrast.ts +1 -1
- package/src/recipes/counter/README.md +0 -2
- package/src/recipes/counter/create-counter.ts +1 -1
- package/src/recipes/curved-carousel/README.md +0 -2
- package/src/recipes/curved-carousel/create-curved-carousel.ts +2 -2
- package/src/recipes/curved-carousel/curved-carousel.css +1 -1
- package/src/recipes/depth-grid/README.md +0 -2
- package/src/recipes/depth-grid/create-depth-grid.ts +3 -4
- package/src/recipes/details/README.md +0 -2
- package/src/recipes/details/create-details.ts +1 -1
- package/src/recipes/dock-pill/README.md +3 -3
- package/src/recipes/drag-ruler/README.md +3 -3
- package/src/recipes/editorial-reveal/README.md +35 -0
- package/src/recipes/editorial-reveal/create-editorial-reveal.ts +91 -0
- package/src/recipes/editorial-reveal/editorial-reveal.css +17 -0
- package/src/recipes/fill-text/README.md +1 -1
- package/src/recipes/fill-text/create-fill-text.ts +1 -1
- package/src/recipes/film-hero/README.md +23 -0
- package/src/recipes/film-hero/create-film-hero.ts +65 -0
- package/src/recipes/film-hero/film-hero.css +29 -0
- package/src/recipes/fit-text/README.md +0 -2
- package/src/recipes/flow/README.md +0 -2
- package/src/recipes/flow/create-flow.ts +1 -1
- package/src/recipes/font-cycle/README.md +11 -0
- package/src/recipes/font-cycle/create-font-cycle.ts +126 -0
- package/src/recipes/font-cycle/font-cycle.css +36 -0
- package/src/recipes/frame-zoom/README.md +1 -3
- package/src/recipes/frame-zoom/create-frame-zoom.ts +2 -2
- package/src/recipes/image-zoom/README.md +16 -0
- package/src/recipes/image-zoom/create-image-zoom.ts +27 -0
- package/src/recipes/image-zoom/image-zoom.css +7 -0
- package/src/recipes/infinite-reel/README.md +3 -3
- package/src/recipes/joined-cta/README.md +13 -0
- package/src/recipes/joined-cta/create-joined-cta.ts +22 -0
- package/src/recipes/joined-cta/joined-cta.css +17 -0
- package/src/recipes/letters/README.md +2 -4
- package/src/recipes/letters/create-letters.ts +3 -3
- package/src/recipes/local-clock/README.md +31 -0
- package/src/recipes/local-clock/create-local-clock.ts +61 -0
- package/src/recipes/marquee/README.md +0 -2
- package/src/recipes/marquee/create-marquee.ts +3 -3
- package/src/recipes/marquee/marquee.css +1 -1
- package/src/recipes/mask-text/README.md +3 -5
- package/src/recipes/mask-text/create-mask-text.ts +4 -4
- package/src/recipes/parallax/README.md +1 -3
- package/src/recipes/parallax/create-parallax.ts +1 -1
- package/src/recipes/pile/README.md +0 -2
- package/src/recipes/pile/create-pile.ts +1 -1
- package/src/recipes/pile/pile-math.ts +1 -1
- package/src/recipes/pile/pile.css +1 -1
- package/src/recipes/pill/README.md +0 -2
- package/src/recipes/pill/pill.css +2 -2
- package/src/recipes/pop/README.md +0 -2
- package/src/recipes/pop/create-pop.ts +1 -1
- package/src/recipes/radial-menu/README.md +0 -2
- package/src/recipes/radial-menu/create-radial-menu.ts +1 -1
- package/src/recipes/radial-menu/radial-menu.css +1 -1
- package/src/recipes/reflow/README.md +3 -5
- package/src/recipes/reflow/create-reflow.ts +1 -1
- package/src/recipes/repel-bento/README.md +3 -3
- package/src/recipes/reveal/README.md +0 -2
- package/src/recipes/reveal/create-reveal.ts +1 -1
- package/src/recipes/rotator/README.md +3 -3
- package/src/recipes/scroll-dock/README.md +46 -0
- package/src/recipes/scroll-dock/create-scroll-dock.ts +72 -0
- package/src/recipes/scroll-dock/scroll-dock.css +70 -0
- package/src/recipes/slot-text/README.md +0 -2
- package/src/recipes/slot-text/create-slot-text.ts +1 -1
- package/src/recipes/snap-strip/README.md +1 -1
- package/src/recipes/snap-strip/create-snap-strip.ts +5 -6
- package/src/recipes/snap-strip/snap-strip.css +1 -1
- package/src/recipes/sortable/README.md +3 -5
- package/src/recipes/sortable/create-sortable.ts +4 -4
- package/src/recipes/sortable/sortable.css +1 -1
- package/src/recipes/spring-cards/README.md +0 -2
- package/src/recipes/spring-cards/create-spring-cards.ts +1 -1
- package/src/recipes/spring-cards/spring-cards.css +1 -1
- package/src/recipes/sticker/README.md +59 -0
- package/src/recipes/sticker/create-sticker.ts +490 -0
- package/src/recipes/sticker/sticker.css +112 -0
- package/src/recipes/stretch-footer/README.md +0 -2
- package/src/recipes/stretch-footer/create-stretch-footer.ts +1 -1
- package/src/recipes/stretch-footer/stretch-footer.css +1 -1
- package/src/recipes/tabs/README.md +0 -2
- package/src/recipes/tabs/create-tabs.ts +1 -1
- package/src/recipes/text-roll/README.md +1 -3
- package/src/recipes/text-roll/create-text-roll.ts +3 -3
- package/src/recipes/text-roll/text-roll.css +1 -1
- package/src/recipes/thumbnail-nav/README.md +16 -0
- package/src/recipes/thumbnail-nav/create-thumbnail-nav.ts +165 -0
- package/src/recipes/thumbnail-nav/thumbnail-nav.css +108 -0
- package/src/recipes/ticket-menu/README.md +3 -3
- package/src/recipes/weight-hover/README.md +37 -0
- package/src/recipes/weight-hover/create-weight-hover.ts +136 -0
- package/src/recipes/weight-hover/weight-hover.css +7 -0
- package/src/recipes/words/README.md +0 -2
- package/src/recipes/words/create-words.ts +1 -1
- package/src/theme/generate.ts +1 -1
- package/src/theme/presets.ts +2 -2
- package/src/theme/theme.ts +1 -2
- package/dist/chunk-2BQGFOA7.js.map +0 -1
- package/dist/chunk-34XYOXHG.js.map +0 -1
- package/dist/chunk-6OJAP6ZL.js.map +0 -1
- package/dist/chunk-FS2HJVVY.js.map +0 -1
- package/dist/chunk-J27KH2A2.js.map +0 -1
- package/dist/chunk-KLY5BRRI.js.map +0 -1
- package/dist/chunk-Q4LVFNLN.js.map +0 -1
- package/dist/chunk-RFDIZYFX.js.map +0 -1
- /package/dist/{chunk-ABNRDDO7.js.map → chunk-I3DXF2KQ.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { x as MenuOptions, M as MenuInstance, B as RevealSpeed } from './reveal-jsX-uwUz.js';
|
|
2
2
|
import { I as Instance } from './types-BkS_raL8.js';
|
|
3
3
|
import { SplitText } from 'gsap/SplitText';
|
|
4
4
|
|
|
@@ -30,6 +30,203 @@ interface CurvedCarouselInstance extends Instance {
|
|
|
30
30
|
}
|
|
31
31
|
declare function createCurvedCarousel(root: HTMLElement | null, options?: CurvedCarouselOptions): CurvedCarouselInstance;
|
|
32
32
|
|
|
33
|
+
interface JoinedCtaOptions {
|
|
34
|
+
duration?: number;
|
|
35
|
+
}
|
|
36
|
+
interface JoinedCtaInstance extends Instance {
|
|
37
|
+
expand(): void;
|
|
38
|
+
collapse(): void;
|
|
39
|
+
readonly expanded: boolean;
|
|
40
|
+
}
|
|
41
|
+
/** Silvia's three contact capsules joining into one. Motion is entirely CSS. */
|
|
42
|
+
declare function createJoinedCta(root: HTMLElement | null, options?: JoinedCtaOptions): JoinedCtaInstance;
|
|
43
|
+
|
|
44
|
+
interface ImageZoomOptions {
|
|
45
|
+
duration?: number;
|
|
46
|
+
frameScale?: number;
|
|
47
|
+
imageScale?: number;
|
|
48
|
+
}
|
|
49
|
+
interface ImageZoomInstance extends Instance {
|
|
50
|
+
open(active: boolean): void;
|
|
51
|
+
readonly active: boolean;
|
|
52
|
+
}
|
|
53
|
+
/** Counter-zoom: the clipped frame grows as the picture inside settles to 1×. */
|
|
54
|
+
declare function createImageZoom(root: HTMLElement | null, options?: ImageZoomOptions): ImageZoomInstance;
|
|
55
|
+
|
|
56
|
+
interface FontCycleFace {
|
|
57
|
+
/** A font supplied by the application. No font files are downloaded by this recipe. */
|
|
58
|
+
family?: string;
|
|
59
|
+
axes?: Readonly<Record<string, number>>;
|
|
60
|
+
weight?: number;
|
|
61
|
+
style?: 'normal' | 'italic' | 'oblique';
|
|
62
|
+
}
|
|
63
|
+
interface FontCycleOptions {
|
|
64
|
+
text?: string;
|
|
65
|
+
/** Alternated per character; the second face rolls in on hover or focus. */
|
|
66
|
+
faces?: readonly [FontCycleFace, FontCycleFace];
|
|
67
|
+
/** Seconds per character. */
|
|
68
|
+
duration?: number;
|
|
69
|
+
/** Seconds between characters. */
|
|
70
|
+
stagger?: number;
|
|
71
|
+
/** Optional decorative artwork owned by the consumer. Hidden with reduced motion. */
|
|
72
|
+
overlaySrc?: string;
|
|
73
|
+
}
|
|
74
|
+
interface FontCycleInstance extends Instance {
|
|
75
|
+
play(): void;
|
|
76
|
+
reset(): void;
|
|
77
|
+
readonly active: boolean;
|
|
78
|
+
}
|
|
79
|
+
/** Alternating variable-font faces in a masked, reversible character roll. */
|
|
80
|
+
declare function createFontCycle(root: HTMLElement | null, options?: FontCycleOptions): FontCycleInstance;
|
|
81
|
+
|
|
82
|
+
interface ThumbnailNavOptions {
|
|
83
|
+
index?: number;
|
|
84
|
+
label?: string;
|
|
85
|
+
/** Seconds for expansion and panel entry. */
|
|
86
|
+
duration?: number;
|
|
87
|
+
onSelect?: (index: number, item: HTMLElement) => void;
|
|
88
|
+
}
|
|
89
|
+
interface ThumbnailNavInstance extends Instance {
|
|
90
|
+
open(): void;
|
|
91
|
+
close(): void;
|
|
92
|
+
toggle(): void;
|
|
93
|
+
select(index: number): void;
|
|
94
|
+
readonly index: number;
|
|
95
|
+
readonly expanded: boolean;
|
|
96
|
+
}
|
|
97
|
+
/** A category disclosure with stacked previews, real links and complete keyboard navigation. */
|
|
98
|
+
declare function createThumbnailNav(root: HTMLElement | null, options?: ThumbnailNavOptions): ThumbnailNavInstance;
|
|
99
|
+
|
|
100
|
+
type ActionButtonVariant = 'primary' | 'secondary' | 'icon' | 'stepper' | 'film';
|
|
101
|
+
interface ActionButtonOptions {
|
|
102
|
+
variant?: ActionButtonVariant;
|
|
103
|
+
/** Toggle aria-pressed on activation. Ordinary action buttons leave it unset. */
|
|
104
|
+
toggle?: boolean;
|
|
105
|
+
pressed?: boolean;
|
|
106
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
107
|
+
}
|
|
108
|
+
interface ActionButtonInstance extends Instance {
|
|
109
|
+
setPressed(pressed: boolean): void;
|
|
110
|
+
readonly pressed: boolean;
|
|
111
|
+
}
|
|
112
|
+
/** Drawn press buttons and a masked rolling-label film variant. Uses native activation. */
|
|
113
|
+
declare function createActionButton(root: HTMLElement | null, options?: ActionButtonOptions): ActionButtonInstance;
|
|
114
|
+
|
|
115
|
+
interface FilmHeroOptions {
|
|
116
|
+
duration?: number;
|
|
117
|
+
stagger?: number;
|
|
118
|
+
/** Media travel as a fraction of the hero height. 0 disables parallax. */
|
|
119
|
+
parallax?: number;
|
|
120
|
+
scale?: number;
|
|
121
|
+
edge?: 'organic' | 'straight';
|
|
122
|
+
/** Scrollable demo panels and nested page shells can supply their own scroll root. */
|
|
123
|
+
scroller?: HTMLElement | Window;
|
|
124
|
+
}
|
|
125
|
+
interface FilmHeroInstance extends Instance {
|
|
126
|
+
replay(): void;
|
|
127
|
+
refresh(): void;
|
|
128
|
+
}
|
|
129
|
+
/** Editorial line reveals with scoped, scroll-driven media. Organic edge is an approximation. */
|
|
130
|
+
declare function createFilmHero(root: HTMLElement | null, options?: FilmHeroOptions): FilmHeroInstance;
|
|
131
|
+
|
|
132
|
+
interface EditorialRevealOptions {
|
|
133
|
+
trigger?: 'scroll' | 'load' | 'manual';
|
|
134
|
+
/** Title and staged groups, seconds. Reference default 1.2. */
|
|
135
|
+
duration?: number;
|
|
136
|
+
stagger?: number;
|
|
137
|
+
/** Title pieces' start offset, percent. Reference default 110. */
|
|
138
|
+
y?: number;
|
|
139
|
+
ease?: string;
|
|
140
|
+
hoverDuration?: number;
|
|
141
|
+
/** Duplicate label/arrow content moves by this many em. */
|
|
142
|
+
buttonShift?: number;
|
|
143
|
+
imageScale?: number;
|
|
144
|
+
parallax?: boolean;
|
|
145
|
+
}
|
|
146
|
+
interface EditorialRevealInstance extends Instance {
|
|
147
|
+
play(): void;
|
|
148
|
+
reset(): void;
|
|
149
|
+
}
|
|
150
|
+
/** Editorial composition: masked headings, staged contact groups, restrained image/card motion and keyboard-equivalent buttons. */
|
|
151
|
+
declare function createEditorialReveal(root: HTMLElement | null, options?: EditorialRevealOptions): EditorialRevealInstance;
|
|
152
|
+
|
|
153
|
+
interface WeightHoverOptions {
|
|
154
|
+
/** Axis value far from the pointer. */
|
|
155
|
+
rest?: number;
|
|
156
|
+
/** Axis value right under the pointer. */
|
|
157
|
+
near?: number;
|
|
158
|
+
/** Reach of the effect, px. */
|
|
159
|
+
radius?: number;
|
|
160
|
+
/** Variable-font axis tag. */
|
|
161
|
+
axis?: string;
|
|
162
|
+
/** Share of the remaining distance covered per frame (0–1). */
|
|
163
|
+
lerp?: number;
|
|
164
|
+
/** React to touch and pen too (the reference reacts to the mouse only). */
|
|
165
|
+
anyPointer?: boolean;
|
|
166
|
+
}
|
|
167
|
+
interface WeightHoverInstance extends Instance {
|
|
168
|
+
/** Point the effect at viewport coordinates (null releases it). */
|
|
169
|
+
pointAt(point: {
|
|
170
|
+
x: number;
|
|
171
|
+
y: number;
|
|
172
|
+
} | null): void;
|
|
173
|
+
}
|
|
174
|
+
declare function createWeightHover(root: HTMLElement | null, options?: WeightHoverOptions): WeightHoverInstance;
|
|
175
|
+
|
|
176
|
+
interface StickerOptions {
|
|
177
|
+
/** Drag to peel the sticker off. */
|
|
178
|
+
peel?: boolean;
|
|
179
|
+
/** Pointer-driven foil and shine. */
|
|
180
|
+
holo?: boolean;
|
|
181
|
+
/** Share of the area lifted before the sticker comes off (0–1). */
|
|
182
|
+
detachAt?: number;
|
|
183
|
+
/** Drag length (px, unscaled) that takes it off whatever the area; default max(80, half the longest side). */
|
|
184
|
+
detachDistance?: number;
|
|
185
|
+
/** Time hidden after falling before it comes back, ms. */
|
|
186
|
+
returnDelay?: number;
|
|
187
|
+
onPeel?: () => void;
|
|
188
|
+
onReturn?: () => void;
|
|
189
|
+
}
|
|
190
|
+
interface StickerInstance extends Instance {
|
|
191
|
+
/** idle | peeling | carried | falling | away */
|
|
192
|
+
readonly state: StickerState;
|
|
193
|
+
}
|
|
194
|
+
type StickerState = 'idle' | 'peeling' | 'carried' | 'falling' | 'away';
|
|
195
|
+
declare function createSticker(root: HTMLElement | null, options?: StickerOptions): StickerInstance;
|
|
196
|
+
|
|
197
|
+
interface ScrollDockOptions {
|
|
198
|
+
/** Scroll distance before it shows, in viewport heights. */
|
|
199
|
+
threshold?: number;
|
|
200
|
+
/** Element (or selector) that sends it away when it reaches the viewport bottom. */
|
|
201
|
+
hideWhen?: Element | string | null;
|
|
202
|
+
/** px above the bottom edge at which `hideWhen` counts as reached. */
|
|
203
|
+
hideOffset?: number;
|
|
204
|
+
/** Scrolling element (or selector, looked up from the dock outwards); the window by default. */
|
|
205
|
+
scroller?: HTMLElement | string | null;
|
|
206
|
+
onChange?: (visible: boolean) => void;
|
|
207
|
+
}
|
|
208
|
+
interface ScrollDockInstance extends Instance {
|
|
209
|
+
readonly visible: boolean;
|
|
210
|
+
/** Re-read the scroll position (after layout changes). */
|
|
211
|
+
update(): void;
|
|
212
|
+
}
|
|
213
|
+
declare function createScrollDock(root: HTMLElement | null, options?: ScrollDockOptions): ScrollDockInstance;
|
|
214
|
+
|
|
215
|
+
interface LocalClockOptions {
|
|
216
|
+
/** IANA zone, e.g. "America/Mexico_City". The visitor's zone by default. */
|
|
217
|
+
timeZone?: string;
|
|
218
|
+
locale?: string;
|
|
219
|
+
hour12?: boolean;
|
|
220
|
+
seconds?: boolean;
|
|
221
|
+
/** Full control over the format (overrides hour12/seconds). */
|
|
222
|
+
format?: Intl.DateTimeFormatOptions;
|
|
223
|
+
}
|
|
224
|
+
interface LocalClockInstance extends Instance {
|
|
225
|
+
/** Text currently shown. */
|
|
226
|
+
readonly text: string;
|
|
227
|
+
}
|
|
228
|
+
declare function createLocalClock(root: HTMLElement | null, options?: LocalClockOptions): LocalClockInstance;
|
|
229
|
+
|
|
33
230
|
interface SpringCardsOptions {
|
|
34
231
|
/** Cards inside the root. */
|
|
35
232
|
selector?: string;
|
|
@@ -58,7 +255,7 @@ interface PileLayer {
|
|
|
58
255
|
offsetX: number;
|
|
59
256
|
offsetY: number;
|
|
60
257
|
}
|
|
61
|
-
/**
|
|
258
|
+
/** stack transforms, seeded so SSR output is stable. Layer 0 is the back. */
|
|
62
259
|
declare function pileLayers(count: number, seed: number): PileLayer[];
|
|
63
260
|
|
|
64
261
|
interface PileOptions {
|
|
@@ -123,7 +320,7 @@ declare function flowIn(targets: gsap.TweenTarget, options?: FlowInOptions): gsa
|
|
|
123
320
|
/** Flow items out (down into a blur). They stay hidden afterwards; flowIn brings them back. */
|
|
124
321
|
declare function flowOut(targets: gsap.TweenTarget, options?: FlowOutOptions): gsap.core.Tween | null;
|
|
125
322
|
/**
|
|
126
|
-
*
|
|
323
|
+
* step change: the current children flow out, `mutate` swaps the
|
|
127
324
|
* content (render the next step there), and after a frame the new children flow in.
|
|
128
325
|
*/
|
|
129
326
|
declare function stepChange(container: HTMLElement, mutate: () => void | Promise<void>, { duration }?: {
|
|
@@ -283,7 +480,7 @@ interface SortableOptions {
|
|
|
283
480
|
/** Drag only from [data-mk-sort-handle] (always so on touch screens). */
|
|
284
481
|
handle?: boolean;
|
|
285
482
|
autoScroll?: boolean;
|
|
286
|
-
/** The floating copy's spring (
|
|
483
|
+
/** The floating copy's spring (default: 1100 / 38). */
|
|
287
484
|
follow?: {
|
|
288
485
|
stiffness?: number;
|
|
289
486
|
damping?: number;
|
|
@@ -299,7 +496,7 @@ interface ReorderDetail {
|
|
|
299
496
|
fromIndex: number;
|
|
300
497
|
toIndex: number;
|
|
301
498
|
groupChanged: boolean;
|
|
302
|
-
/** Neighbours at the destination
|
|
499
|
+
/** Neighbours at the destination. */
|
|
303
500
|
afterId: string | null;
|
|
304
501
|
beforeId: string | null;
|
|
305
502
|
}
|
|
@@ -314,7 +511,7 @@ declare function moveItem<T>(list: readonly T[], from: number, to: number): T[];
|
|
|
314
511
|
|
|
315
512
|
interface MaskTextOptions {
|
|
316
513
|
by?: 'lines' | 'words' | 'chars';
|
|
317
|
-
/** Start offset in % of each piece
|
|
514
|
+
/** Start offset in % of each piece. */
|
|
318
515
|
y?: number;
|
|
319
516
|
duration?: number;
|
|
320
517
|
ease?: string;
|
|
@@ -322,12 +519,12 @@ interface MaskTextOptions {
|
|
|
322
519
|
stagger?: number;
|
|
323
520
|
/** 'scroll' (default) plays when 80 % is visible; 'load' now; 'manual' waits for play(). */
|
|
324
521
|
trigger?: 'scroll' | 'load' | 'manual';
|
|
325
|
-
/** Play once and stay
|
|
522
|
+
/** Play once and stay. */
|
|
326
523
|
once?: boolean;
|
|
327
524
|
}
|
|
328
525
|
interface MaskTextInstance extends Instance {
|
|
329
526
|
play(): void;
|
|
330
|
-
/**
|
|
527
|
+
/** exit: back down into the clips, 2 ms apart. */
|
|
331
528
|
hide(): void;
|
|
332
529
|
readonly split: SplitText | null;
|
|
333
530
|
}
|
|
@@ -344,7 +541,7 @@ interface CascadeOptions {
|
|
|
344
541
|
}
|
|
345
542
|
interface CascadeInstance extends Instance {
|
|
346
543
|
play(): void;
|
|
347
|
-
/** Every child back to its start state
|
|
544
|
+
/** Every child back to its start state. */
|
|
348
545
|
reset(): void;
|
|
349
546
|
}
|
|
350
547
|
declare function createCascade(root: HTMLElement | null, options?: CascadeOptions): CascadeInstance;
|
|
@@ -352,12 +549,12 @@ declare function createCascade(root: HTMLElement | null, options?: CascadeOption
|
|
|
352
549
|
interface TextRollOptions {
|
|
353
550
|
duration?: number;
|
|
354
551
|
stagger?: number;
|
|
355
|
-
/** [min, max] repeats of each letter's turn (
|
|
552
|
+
/** [min, max] repeats of each letter's turn (default: 8–14). */
|
|
356
553
|
turns?: readonly [number, number];
|
|
357
554
|
/** 'load' (default) after `delay`; 'scroll' when it shows; 'hover'; 'manual'. */
|
|
358
555
|
trigger?: 'load' | 'scroll' | 'hover' | 'manual';
|
|
359
556
|
delay?: number;
|
|
360
|
-
/** Replay every n ms while visible and not scrolling (
|
|
557
|
+
/** Replay every n ms while visible and not scrolling (default: 6000). 0: off. */
|
|
361
558
|
interval?: number;
|
|
362
559
|
}
|
|
363
560
|
interface TextRollInstance extends Instance {
|
|
@@ -368,7 +565,7 @@ declare function createTextRoll(el: HTMLElement | null, options?: TextRollOption
|
|
|
368
565
|
|
|
369
566
|
interface LettersOptions {
|
|
370
567
|
effect?: 'scale' | 'blink';
|
|
371
|
-
/** Blink colours
|
|
568
|
+
/** Blink colours. */
|
|
372
569
|
colors?: string[];
|
|
373
570
|
/** Blink once 0.6 s after start (default true). */
|
|
374
571
|
autoplay?: boolean;
|
|
@@ -432,7 +629,7 @@ interface ContrastInstance extends Instance {
|
|
|
432
629
|
declare function createContrast(target: HTMLElement | null, options?: ContrastOptions): ContrastInstance;
|
|
433
630
|
|
|
434
631
|
interface MarqueeOptions {
|
|
435
|
-
/** 'x' (default) or 'y'
|
|
632
|
+
/** 'x' (default) or 'y'. */
|
|
436
633
|
axis?: 'x' | 'y';
|
|
437
634
|
/** Seconds per item. */
|
|
438
635
|
speed?: number;
|
|
@@ -445,7 +642,7 @@ interface MarqueeInstance extends Instance {
|
|
|
445
642
|
declare function createMarquee(root: HTMLElement | null, options?: MarqueeOptions): MarqueeInstance;
|
|
446
643
|
|
|
447
644
|
interface CardDockOptions {
|
|
448
|
-
/** Milliseconds the cards stay spread out on load before stacking (
|
|
645
|
+
/** Milliseconds the cards stay spread out on load before stacking (default: 1600; 0 skips it). */
|
|
449
646
|
intro?: number;
|
|
450
647
|
}
|
|
451
648
|
interface CardDockInstance extends Instance {
|
|
@@ -457,11 +654,11 @@ declare function createCardDock(root: HTMLElement | null, options?: CardDockOpti
|
|
|
457
654
|
|
|
458
655
|
interface SnapStripOptions {
|
|
459
656
|
autoplay?: boolean;
|
|
460
|
-
/** Milliseconds between cards (
|
|
657
|
+
/** Milliseconds between cards (default: 5000). */
|
|
461
658
|
interval?: number;
|
|
462
|
-
/** Milliseconds to wait after the reader touches it (
|
|
659
|
+
/** Milliseconds to wait after the reader touches it (default: 2000). */
|
|
463
660
|
resume?: number;
|
|
464
|
-
/** Milliseconds after it shows before autoplay starts
|
|
661
|
+
/** Milliseconds after it shows before autoplay starts. */
|
|
465
662
|
delay?: number;
|
|
466
663
|
}
|
|
467
664
|
interface SnapStripInstance extends Instance {
|
|
@@ -563,4 +760,4 @@ declare function entrances(): boolean;
|
|
|
563
760
|
*/
|
|
564
761
|
declare const MK_HEAD_SCRIPT = "(function(){var r=document.documentElement;r.classList.add('mk-js');setTimeout(function(){if(!r.classList.contains('mk-ready'))r.classList.add('mk-failed')},2500)})();";
|
|
565
762
|
|
|
566
|
-
export { type
|
|
763
|
+
export { type ContrastInstance as $, createCascade as A, createTextRoll as B, type CurvedCarouselInstance as C, createLetters as D, createParallax as E, createDepthGrid as F, createFrameZoom as G, createContrast as H, createMarquee as I, createCardDock as J, createSnapStrip as K, createFillText as L, type TicketMenuInstance as M, createInfiniteReel as N, createRepelBento as O, createRotator as P, createDragRuler as Q, createDockPill as R, MK_HEAD_SCRIPT as S, type TicketMenuOptions as T, type ActionButtonInstance as U, type ActionButtonOptions as V, type ActionButtonVariant as W, type CardDockInstance as X, type CardDockOptions as Y, type CascadeInstance as Z, type CascadeOptions as _, createImageZoom as a, type SnapStripInstance as a$, type ContrastOptions as a0, type CounterInstance as a1, type CounterOptions as a2, type CurvedCarouselOptions as a3, type DepthGridInstance as a4, type DepthGridOptions as a5, type DockPillInstance as a6, type DockPillOptions as a7, type DragRulerInstance as a8, type DragRulerOptions as a9, type LocalClockOptions as aA, type MarqueeInstance as aB, type MarqueeOptions as aC, type MaskTextInstance as aD, type MaskTextOptions as aE, type ParallaxInstance as aF, type ParallaxOptions as aG, type PileInstance as aH, type PileLayer as aI, type PileOptions as aJ, type PopInstance as aK, type PopOptions as aL, type RadialMenuInstance as aM, type RadialMenuOptions as aN, type ReflowInstance as aO, type ReflowOptions as aP, type ReorderDetail as aQ, type RepelBentoInstance as aR, type RepelBentoOptions as aS, type RevealInstance as aT, type RevealRecipeOptions as aU, type RotatorInstance as aV, type RotatorOptions as aW, type ScrollDockInstance as aX, type ScrollDockOptions as aY, type SlotTextInstance as aZ, type SlotTextOptions as a_, type EditorialRevealInstance as aa, type EditorialRevealOptions as ab, type FillTextInstance as ac, type FillTextOptions as ad, type FilmHeroInstance as ae, type FilmHeroOptions as af, type FitTextInstance as ag, type FitTextOptions as ah, type FlowInOptions as ai, type FlowInstance as aj, type FlowOptions as ak, type FlowOutOptions as al, type FontCycleFace as am, type FontCycleInstance as an, type FontCycleOptions as ao, type FrameZoomInstance as ap, type FrameZoomOptions as aq, type ImageZoomInstance as ar, type ImageZoomOptions as as, type InfiniteReelInstance as at, type InfiniteReelOptions as au, type JoinedCtaInstance as av, type JoinedCtaOptions as aw, type LettersInstance as ax, type LettersOptions as ay, type LocalClockInstance as az, createFontCycle as b, type SnapStripOptions as b0, type SortableInstance as b1, type SortableLabels as b2, type SortableOptions as b3, type SpringCardsInstance as b4, type SpringCardsOptions as b5, type StickerInstance as b6, type StickerOptions as b7, type StickerState as b8, type StretchFooterInstance as b9, type StretchFooterOptions as ba, type TabsInstance as bb, type TabsOptions as bc, type TextRollInstance as bd, type TextRollOptions as be, type ThumbnailNavInstance as bf, type ThumbnailNavOptions as bg, type WeightHoverInstance as bh, type WeightHoverOptions as bi, type WordsInstance as bj, type WordsOptions as bk, createCurvedCarousel as bl, createTicketMenu as bm, entrances as bn, flowIn as bo, flowOut as bp, moveItem as bq, pileLayers as br, pileStyle as bs, reduced as bt, stepChange as bu, createJoinedCta as c, createThumbnailNav as d, createActionButton as e, createFilmHero as f, createEditorialReveal as g, createWeightHover as h, createSticker as i, createScrollDock as j, createLocalClock as k, createSpringCards as l, createPile as m, createWords as n, createFlow as o, createPop as p, createFitText as q, createStretchFooter as r, createRadialMenu as s, createTabs as t, createCounter as u, createReveal as v, createReflow as w, createSlotText as x, createSortable as y, createMaskText as z };
|