1- import type { StaticImageData } from "next/image"
2- import type { ButtonHTMLAttributes , PropsWithChildren , JSX , CSSProperties , MouseEventHandler } from "react"
3- import type { VariantProps } from "class-variance-authority"
4- import type { ArgsFunction , PerType , PresetType } from "./types"
5- import type { Transition , Variants } from "motion"
6- import type { MotionProps } from "motion/react"
1+ import type { PropsWithChildren } from "react"
2+ import type { PresetType } from "./types"
3+ import type { Variants } from "motion"
74
8- export type ButtonProps < T extends ArgsFunction > = ButtonHTMLAttributes < HTMLButtonElement > & VariantProps < T >
9-
10- export interface ImageSetProps {
11- width ?: number
12- height ?: number
13- src ?: StaticImageData
14- alt ?: string
15- }
16-
17- export interface TitleProps extends ImageSetProps {
18- className ?: string
19- title : string
20- }
21-
22- export interface SeparatorProps {
5+ export interface AnimatedGroupProps extends PropsWithChildren {
236 className ?: string
24- redirectTo ?: string
25- children : string
26- rotate ?: boolean
27- }
28-
29- export interface AnimationComponentProps {
30- segment : string
31- variants : Variants
32- per : PerType
33- segmentWrapperClassName ?: string
34- }
35-
36- export interface TextEffectProps {
37- children : string
38- per ?: PerType
39- as ?: keyof JSX . IntrinsicElements
407 variants ?: {
418 container ?: Variants
429 item ?: Variants
4310 }
44- className ?: string
4511 preset ?: PresetType
46- delay ?: number
47- speedReveal ?: number
48- speedSegment ?: number
49- trigger ?: boolean
50- onAnimationComplete ?: ( ) => void
51- onAnimationStart ?: ( ) => void
52- segmentWrapperClassName ?: string
53- containerTransition ?: Transition
54- segmentTransition ?: Transition
55- style ?: CSSProperties
5612}
5713
58- export type TextScrambleEffectProps = {
59- children : string
14+ export interface InfiniteSliderProps {
15+ children : React . ReactNode
16+ gap ?: number
6017 duration ?: number
61- speed ?: number
62- characterSet ?: string
63- as ?: React . ElementType
64- className ?: string
65- trigger ?: boolean
66- onScrambleComplete ?: ( ) => void
67- } & MotionProps
68-
69- export interface TextScrambleProps {
70- children : string
71- as ?: React . ElementType
72- characterSet ?: string
73- }
74-
75- export interface SegmentAnimationProps {
76- title : string
77- description : string
78- }
79-
80- export interface CallToActionProps {
81- title : string
82- description : string
83- button : string
84- href : string
85- separator : string
86- }
87-
88- export interface SectionLayoutProps extends PropsWithChildren {
89- className ?: string
90- }
91-
92- export interface HeaderMenuProps {
93- onLinkClick : MouseEventHandler
94- }
95-
96- export interface AnimatedGroupProps extends PropsWithChildren {
18+ durationOnHover ?: number
19+ direction ?: "horizontal" | "vertical"
20+ reverse ?: boolean
9721 className ?: string
98- variants ?: {
99- container ?: Variants
100- item ?: Variants
101- }
102- preset ?: PresetType
103- }
22+ }
0 commit comments