@almadar/ui 2.24.5 → 2.24.9

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.
@@ -828,6 +828,59 @@ interface AnimatedCounterProps {
828
828
  }
829
829
  declare const AnimatedCounter: React.FC<AnimatedCounterProps>;
830
830
 
831
+ type RevealTrigger = 'scroll' | 'hover' | 'manual';
832
+ type RevealAnimation = 'fade-up' | 'fade-down' | 'fade-in' | 'fade-left' | 'fade-right' | 'scale' | 'scale-up' | 'none';
833
+ interface AnimatedRevealProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
834
+ /** What triggers the animation */
835
+ trigger?: RevealTrigger;
836
+ /** Built-in animation preset */
837
+ animation?: RevealAnimation;
838
+ /** Animation duration in ms (default: 600) */
839
+ duration?: number;
840
+ /** Delay before animation starts in ms (default: 0) */
841
+ delay?: number;
842
+ /** How much of the element must be visible before triggering, 0-1 (default: 0.15) */
843
+ threshold?: number;
844
+ /** Animate only the first time the element enters the viewport (default: true) */
845
+ once?: boolean;
846
+ /** Manual control: when trigger='manual', set this to true to animate */
847
+ animate?: boolean;
848
+ /** Easing function (default: cubic-bezier(0.16, 1, 0.3, 1)) */
849
+ easing?: string;
850
+ /** Children: ReactNode or render function receiving animated state */
851
+ children: React.ReactNode | ((animated: boolean) => React.ReactNode);
852
+ }
853
+ declare const AnimatedReveal: React.ForwardRefExoticComponent<AnimatedRevealProps & React.RefAttributes<HTMLDivElement>>;
854
+
855
+ type GraphicAnimation = 'draw' | 'fill' | 'pulse' | 'morph';
856
+ interface AnimatedGraphicProps extends React.HTMLAttributes<HTMLDivElement> {
857
+ /** URL to an SVG file. Fetched and inlined to enable stroke/fill animations. */
858
+ src?: string;
859
+ /** Inline SVG string. Takes precedence over src if both provided. */
860
+ svgContent?: string;
861
+ /** Animation type applied to SVG paths/shapes */
862
+ animation?: GraphicAnimation;
863
+ /** Whether to run the animation (default: false). Controlled externally or via AnimatedReveal. */
864
+ animate?: boolean;
865
+ /** Animation duration in ms (default: 1200) */
866
+ duration?: number;
867
+ /** Delay before animation starts in ms (default: 0) */
868
+ delay?: number;
869
+ /** Easing function (default: cubic-bezier(0.16, 1, 0.3, 1)) */
870
+ easing?: string;
871
+ /** Width of the graphic container */
872
+ width?: string | number;
873
+ /** Height of the graphic container */
874
+ height?: string | number;
875
+ /** Stroke color override for SVG paths */
876
+ strokeColor?: string;
877
+ /** Fill color for the 'fill' animation end state */
878
+ fillColor?: string;
879
+ /** Alt text for accessibility */
880
+ alt?: string;
881
+ }
882
+ declare const AnimatedGraphic: React.ForwardRefExoticComponent<AnimatedGraphicProps & React.RefAttributes<HTMLDivElement>>;
883
+
831
884
  /**
832
885
  * PatternTile Atom
833
886
  *
@@ -939,4 +992,4 @@ interface EdgeDecorationProps {
939
992
  }
940
993
  declare const EdgeDecoration: React.FC<EdgeDecorationProps>;
941
994
 
942
- export { AnimatedCounter, type AnimatedCounterProps, ArticleSection, type ArticleSectionProps, Badge, Box, Button, CTABanner, type CTABannerProps, Card, CaseStudyCard, type CaseStudyCardProps, Center, CommunityLinks, type CommunityLinksProps, ContentSection, type ContentSectionProps, Divider, EdgeDecoration, type EdgeDecorationProps, type EdgeSide, type EdgeVariant, FeatureCard, type FeatureCardProps, FeatureGrid, type FeatureGridProps, type FooterLinkColumn, type FooterLinkItem, GeometricPattern, type GeometricPatternProps, GradientDivider, type GradientDividerProps, HStack, HeroSection, type HeroSectionProps, Icon, InstallBox, type InstallBoxProps, MarketingFooter, type MarketingFooterProps, PatternTile, type PatternTileProps, type PatternVariant, PricingCard, type PricingCardProps, PricingGrid, type PricingGridProps, PullQuote, type PullQuoteProps, ServiceCatalog, type ServiceCatalogProps, ShowcaseCard, type ShowcaseCardProps, SimpleGrid, Spacer, SplitSection, type SplitSectionProps, StatsGrid, type StatsGridProps, StepFlow, type StepFlowProps, type StepItemProps, TagCloud, type TagCloudProps, TeamCard, type TeamCardProps, Typography, VStack, getTileDimensions };
995
+ export { AnimatedCounter, type AnimatedCounterProps, AnimatedGraphic, type AnimatedGraphicProps, AnimatedReveal, type AnimatedRevealProps, ArticleSection, type ArticleSectionProps, Badge, Box, Button, CTABanner, type CTABannerProps, Card, CaseStudyCard, type CaseStudyCardProps, Center, CommunityLinks, type CommunityLinksProps, ContentSection, type ContentSectionProps, Divider, EdgeDecoration, type EdgeDecorationProps, type EdgeSide, type EdgeVariant, FeatureCard, type FeatureCardProps, FeatureGrid, type FeatureGridProps, type FooterLinkColumn, type FooterLinkItem, GeometricPattern, type GeometricPatternProps, GradientDivider, type GradientDividerProps, type GraphicAnimation, HStack, HeroSection, type HeroSectionProps, Icon, InstallBox, type InstallBoxProps, MarketingFooter, type MarketingFooterProps, PatternTile, type PatternTileProps, type PatternVariant, PricingCard, type PricingCardProps, PricingGrid, type PricingGridProps, PullQuote, type PullQuoteProps, type RevealAnimation, type RevealTrigger, ServiceCatalog, type ServiceCatalogProps, ShowcaseCard, type ShowcaseCardProps, SimpleGrid, Spacer, SplitSection, type SplitSectionProps, StatsGrid, type StatsGridProps, StepFlow, type StepFlowProps, type StepItemProps, TagCloud, type TagCloudProps, TeamCard, type TeamCardProps, Typography, VStack, getTileDimensions };
@@ -60,6 +60,10 @@ export { PullQuote } from '../components/molecules/PullQuote';
60
60
  export type { PullQuoteProps } from '../components/molecules/PullQuote';
61
61
  export { AnimatedCounter } from '../components/molecules/AnimatedCounter';
62
62
  export type { AnimatedCounterProps } from '../components/molecules/AnimatedCounter';
63
+ export { AnimatedReveal } from '../components/atoms/AnimatedReveal';
64
+ export type { AnimatedRevealProps, RevealTrigger, RevealAnimation } from '../components/atoms/AnimatedReveal';
65
+ export { AnimatedGraphic } from '../components/atoms/AnimatedGraphic';
66
+ export type { AnimatedGraphicProps, GraphicAnimation } from '../components/atoms/AnimatedGraphic';
63
67
  export { PatternTile, getTileDimensions } from '../components/atoms/PatternTile';
64
68
  export type { PatternTileProps, PatternVariant } from '../components/atoms/PatternTile';
65
69
  export { GeometricPattern } from '../components/molecules/GeometricPattern';