@tarsis/toolkit 0.2.4 → 0.3.1

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/dist/index.d.ts CHANGED
@@ -103,6 +103,8 @@ declare interface CarouselItem {
103
103
  hrefTitle: string;
104
104
  }
105
105
 
106
+ export declare const chain: (...elements: ReactNode[]) => JSX.Element[];
107
+
106
108
  export declare const ChaseLoader: default_2.FC;
107
109
 
108
110
  export declare const Checkbox: {
@@ -150,6 +152,8 @@ export declare const ComplexGradient: default_2.FC;
150
152
 
151
153
  export declare const ConfettiButton: default_2.FC<Props_15>;
152
154
 
155
+ declare type Constructor<T> = new (...args: any[]) => T;
156
+
153
157
  export declare const ContrastBackgroundText: default_2.FC;
154
158
 
155
159
  export declare const CoverFlowGallery: default_2.FC;
@@ -268,8 +272,6 @@ export declare const Fingerprint: default_2.FC<Props_5>;
268
272
 
269
273
  export declare const FlipChips: () => JSX.Element;
270
274
 
271
- export declare const FlipGrid: default_2.FC;
272
-
273
275
  export declare const FloatingLabelInput: default_2.FC;
274
276
 
275
277
  export declare const FluidGooeyTextBackground: default_2.FC;
@@ -373,6 +375,10 @@ export declare const Ios15Button: default_2.FC;
373
375
 
374
376
  export declare const IosSwitch: default_2.FC<Props_53>;
375
377
 
378
+ export declare const is: <T>(type: Constructor<T>) => (x: T) => boolean;
379
+
380
+ export declare const isNonNullable: <T>(value: T) => value is NonNullable<T>;
381
+
376
382
  declare interface Item {
377
383
  id: string;
378
384
  title: string;
@@ -394,6 +400,8 @@ export declare const ITEMS: {
394
400
 
395
401
  export declare const JellyText: FC<Props_57>;
396
402
 
403
+ export declare const keys: <T extends Record<string | number | symbol, any>>(value: T) => Array<`${keyof T & (string | number | boolean)}` | (keyof T & symbol)>;
404
+
397
405
  export declare const LandingXYScroll: default_2.FC;
398
406
 
399
407
  export declare const LayeredComponents: default_2.FC;
@@ -439,6 +447,8 @@ export declare const MotionDigits: default_2.FC;
439
447
 
440
448
  export declare const MouseMoveGallery: default_2.FC;
441
449
 
450
+ export declare const move: <T>(source: T[], start: number, end: number) => T[];
451
+
442
452
  export declare const MultiGradientBackground: default_2.FC;
443
453
 
444
454
  export declare const MultipathSvgAnimation: default_2.FC;
@@ -465,10 +475,12 @@ export declare const NewsletterInput: default_2.FC;
465
475
 
466
476
  export declare const NoisyButton: default_2.FC;
467
477
 
468
- export declare const noop: (..._: any) => void;
478
+ export declare const noop: (..._args: unknown[]) => void;
469
479
 
470
480
  export declare const NotificationBell: default_2.FC;
471
481
 
482
+ export declare const notReachable: (arg: never) => never;
483
+
472
484
  export declare const OffTrackPreloader: default_2.FC;
473
485
 
474
486
  export declare const OrbitalSubmitButton: default_2.FC;
@@ -1002,6 +1014,8 @@ export declare const TicklishButton: default_2.FC;
1002
1014
 
1003
1015
  export declare const TimeCirclesLoader: default_2.FC;
1004
1016
 
1017
+ export declare const times: <T>(fn: (index: number) => T, size: number) => T[];
1018
+
1005
1019
  export declare const TippingSwitch: default_2.FC<Props_55>;
1006
1020
 
1007
1021
  export declare const Toasts: default_2.FC;
@@ -1052,6 +1066,19 @@ declare interface UseBowserResult {
1052
1066
  isChrome: boolean;
1053
1067
  }
1054
1068
 
1069
+ /**
1070
+ * A React hook that implements the useEffectEvent pattern from React RFC.
1071
+ * This hook allows you to define an event handler that can access the latest props/state
1072
+ * without triggering effect dependency lists when the handler changes.
1073
+ * @see https://github.com/reactjs/rfcs/blob/useevent/text/0000-useevent.md#internal-implementation
1074
+ * @react https://react.dev/learn/separating-events-from-effects
1075
+ */
1076
+ export declare function useEffectEvent<TArgs extends any[], TReturn extends undefined>(callback: undefined): (...args: TArgs) => TReturn;
1077
+
1078
+ export declare function useEffectEvent<TArgs extends any[], TReturn>(callback: (...args: TArgs) => TReturn): (...args: TArgs) => TReturn;
1079
+
1080
+ export declare function useEffectEvent<TArgs extends any[], TReturn>(callback: ((...args: TArgs) => TReturn) | undefined): (...args: TArgs) => TReturn | undefined;
1081
+
1055
1082
  export declare const useLiveRef: <T>(value: T) => RefObject<T>;
1056
1083
 
1057
1084
  export declare const useMatchMedia: (query: string) => boolean | null;
@@ -1060,20 +1087,28 @@ export declare const useOklch: () => void;
1060
1087
 
1061
1088
  export declare const useOutsideClick: (ref: MutableRefObject<HTMLElement | null>, cb: (event: MouseEvent_2 | TouchEvent_2) => void, when?: boolean) => void;
1062
1089
 
1063
- export declare const useOutsideClickRef: <T extends HTMLElement | null = null>(handler: (event: MouseEvent_2 | TouchEvent_2<T>) => void, when?: boolean) => ((node: T) => void);
1064
-
1065
1090
  export declare const usePrevious: <T>(value: T) => T | undefined;
1066
1091
 
1067
1092
  export declare const usePreviousRender: <T>(value: T) => T | undefined;
1068
1093
 
1094
+ /**
1095
+ * Universal layout effect that uses useLayoutEffect in browser environments
1096
+ * and falls back to useEffect in SSR environments
1097
+ */
1098
+ export declare const useUniversalLayoutEffect: typeof default_2.useEffect;
1099
+
1069
1100
  export declare const useWindowReady: () => boolean;
1070
1101
 
1102
+ export declare const values: <T extends Record<string | number | symbol, any>>(input: T) => Array<T[keyof T]>;
1103
+
1071
1104
  export declare const ViewTransitionAddToCard: default_2.FC;
1072
1105
 
1073
1106
  export declare const ViewTransitionImageGallery: default_2.FC;
1074
1107
 
1075
1108
  export declare const VoiceAnimation: default_2.FC;
1076
1109
 
1110
+ export declare const wait: (ms: number) => Promise<unknown>;
1111
+
1077
1112
  export declare const WavyMenu: default_2.FC;
1078
1113
 
1079
1114
  export declare const WebGLSmoke: default_2.FC;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { bx as AccentShardCard, cX as AcrobaticPreloader, au as ActivateButton, A as AdjoinedFilters, av as AirplaneAnimation, cY as AlienSkeuomorphicLoaders, by as AnimatedBlendedCard, cz as AnimatedHeroTitle, aw as AnimatedHoverButton, ax as AnimatedHoverGlowButton, dp as AnimatedIconsNav, dq as AnimatedShareMenu, as as ApertureVideo, Z as Appearance, a3 as AreaLight, ay as AuroraButton, cn as AutoMasonryGrid, E as AvatarHover, an as BackgroundCircles, a6 as BackgroundSlider, ah as BlurVignette, B as BlurredBackground, cu as BoldHamburger, ai as BorderGradient, cP as BorderLink, X as BouncyClock, bz as BrandCard, V as BreakingProgress, az as BubblyParticlesButton, bR as BulletsCarousel, aA as BurningButton, aB as ButtonHoverFill, aC as ButtonShimmer, aD as ButtonWithDot, cZ as CanOfDigits, bB as CaptionCard, bS as CardCarousel, u as CardDetails, bC as CardGlow, dm as CardMarquee, bD as CardTile, c_ as ChaseLoader, c0 as Checkbox, bE as ChequeredCard, c4 as Chips, a4 as ChromaticAberration, c$ as CircleDotsLoader, o as CircleLinesAnimation, cQ as CircleLink, ak as CircleParticles, c9 as CircleTextHover, aE as ClaymorphicHeart, cG as ClearInput, aF as ClickButtonParticles, ca as ClickSpark, m as CollapseAnimation, aG as ColorfulButtons, at as ComingSoonBadge, ao as ComplexGradient, aH as ConfettiButton, cA as ContrastBackgroundText, bT as CoverFlowGallery, dK as CronRedirectPage, d0 as CubeLoader, ds as CurtainRevealMenu, aJ as DDDButton, bF as DDDHoverCard, dW as DDDRangeSlider, c6 as DailClock, aI as DarkMatterButton, cb as DarkMatterMouseEffect, d_ as DaySwitch, co as DenseGrid, dt as DetachedMenu, cf as DialControl, cg as DialFuturistic, ci as Dock, aK as DockButton, cj as DockHas, ck as DockMotion, cm as DockY, aL as DoubleArrowButton, aM as DoubleArrowCollabButton, aN as DoubleStateButton, du as DropdownMenu, i as Duck, aO as DynamicIconButton, k as DynamicIsland, aP as EchoClickButton, a9 as ElasticCards, cc as ElasticCursor, aQ as ElectrifiedButton, aR as ElectrifiedButtonGS, cL as EmailInput, dL as EmojiLayer, d1 as EndlessLoader, e8 as EnlightenedText, bG as EnvelopeTile, al as Expand, l as FadeUp, aS as FailedDownloadButton, dZ as FeedbackReactions, bA as FigmaLogo, r as FileIcons, F as Fingerprint, c5 as FlipChips, cp as FlipGrid, cH as FloatingLabelInput, cB as FluidGooeyTextBackground, aT as FootprintButton, cR as ForwardArrowLink, bU as FullScreenImageCarousel, dv as Futuristic3DHoverMenu, aU as GalaxyButton, bV as GalleryReverseScroll, cC as GlassIcon, d$ as GlassSwitch, bW as GlideImageGallery, a1 as GlidingReveal, I as GlitterCard, aV as GlowButton, dX as GlowSlider, dw as GlowingDropdown, cI as GlowingInput, H as GlowingShadows, dx as GlowingTabs, dy as GlowingTabs2, e9 as GlowingText, bI as GlowingTile, aX as GoHoverButton, aW as GodRaysButton, aY as GooeyButton, G as GradientBorder, bH as GradientGlowingTile, ea as GrainyGradientText, aZ as GravityButton, cq as Grid3DCards, am as GridAccordion, cr as GridHover, cs as GridViewTransition, cv as HamburgerMusic, cw as HamburgerX, cx as Header, a_ as HeartFoldButton, a$ as HoldSubmitButton, b0 as HoverGlowButton, bJ as HoverTile, bK as Hoverable3DCard, dr as ITEMS, ab as Illumination, bL as ImageCard, _ as ImageClipping, c1 as IndeterminateCheckboxes, d2 as InfiniteLoader, cJ as InputFirework, b1 as Ios15Button, e0 as IosSwitch, eb as JellyText, ae as LandingXYScroll, Q as LayeredComponents, ct as LeaningCards, bX as ListItemHover, d3 as LoaderGenerator, d4 as LoadingBook, d5 as LoadingWave, L as Lock, a7 as LoveGlow, ce as MagicMouseEffect, ec as MagicalText, b2 as MagneticButton, dz as MagnifiedNavItems, ch as MetalCircleController, b3 as MinimalisticGlassButton, dA as MobileNavBar, b4 as MorphingSubmitButton, c7 as MotionClock, J as MotionDigits, x as MouseMoveGallery, z as MultiGradientBackground, b5 as MultiStageButton, n as MultipathSvgAnimation, N as NamedPointer, dB as NavigationMenu, b6 as NeonButton, e1 as NeonToggleSwitch, c8 as NeumorphicAnalogClock, cD as NeumorphicLogo, dY as NeumorphicSlider, e2 as NeuromorphicToggle, cM as NewsletterInput, b7 as NoisyButton, Y as NotificationBell, d6 as OffTrackPreloader, b8 as OrbitalSubmitButton, cS as PaintedLink, b9 as PaperPlanButton, dM as ParallaxEmoji, dC as ParallaxMenu, cN as PasswordInput, bM as PhotoCard, a5 as PhotoZoom, dD as PianoNav, d7 as PieLoader, dE as PinDropdown, ba as PlayPauseButton, bb as PlayPauseMusicButton, s as PolaroidStack, bc as PositionHover, bd as PredictionButton, bN as ProductTile, bO as ProfileCard, be as ProgressButton, bf as PsychedelicButton, d8 as PulseInLoader, d9 as PulseOutLoader, U as QuickTimeClock, dF as RadialMenu, dG as RadialNavigation, dP as RadioHopping, dO as RadioParticles, dN as RadioRolling, ap as RaysBackground, y as RealisticSmoke, cT as RegularLink, bg as RepostButton, a2 as RevealImageAnimation, aj as RhombusGallery, da as RingLoader, bY as RotatedCardsCarousel, db as RoundScaleLoader, bh as RubberButton, bi as RunningButton, O as SchrodingerFormControls, ed as ScrambledText, ee as ScramblingLetters, dQ as ScrollCountdown, dR as ScrollDrivenTextBlowOut, dT as ScrollTextHighlight, dU as ScrollTimeline, dV as ScrollWithLight, bZ as Scroller, dS as ScrollingTextReveal, cK as SearchInput, g as SegmentedControls, e3 as SegmentedToggle, b_ as ShadowedCardsList, cO as ShadowedClick, ef as ShakingText, cU as ShakyLine, j as ShapeSelection, bj as ShimmerButton, bk as ShimmeringBorderGradient, bP as ShineAnimation, eg as ShiningText, bl as ShinyButton, dH as SinglePopoverMenu, dc as SkateboardPreloader, bm as SkeuomorphicLikeButton, p as SlideIn, bn as SlidingButton, cE as SlidingIcon, b$ as SlidingImages, bo as SlidingStepper, dd as SmileyPreloader, v as SmokeTextDisappearance, h as SmoothScroll, de as SnowballPreloader, K as SolarEclipse, bp as SparkleButton, bq as SparklyButton, t as SpeechToText, df as SpinningClickAnimation, cd as SplashCursor, cF as SquircleAvatar, br as SquishButton, bQ as StackingCards, $ as StaticSolarEclipse, cy as StickyHeader, q as StickyList, e4 as StretchToggle, dg as StretchyLoader, c2 as StrikethroughCheckbox, c3 as StrikethroughCheckboxes, dh as StuntPreloader, di as SubtleBorderAnimation, dj as SuccessLoader, bs as SuccessLoadingButton, dI as TabBarAnimation, a8 as TextImageHover, eh as TextMorphing, ei as TextOutline, ej as TextShadow, aq as Texture, ac as ThanosDisappearEffect, ad as ThanosDisappearEffectList, bt as ThreadsLikeButton, dk as ThreeDotsLoader, bu as ThumbsUpButton, dn as Ticker, bv as TicklishButton, dl as TimeCirclesLoader, e5 as TippingSwitch, f as Toasts, e6 as ToggleBubble, e7 as ToggleClipPath, el as TooltipRangeSlider, a0 as TranslucentBackdrop, bw as TrickButton, w as TurbulenceFilter, cV as UnderlinedLink, cW as UnderlinedLink2, ag as ViewTransitionAddToCard, af as ViewTransitionImageGallery, aa as VoiceAnimation, dJ as WavyMenu, ar as WebGLSmoke, ek as WeightText, cl as getDockTooltipPosition, ew as noop, em as useAnimatedText, en as useBowser, eq as useLiveRef, er as useMatchMedia, es as useOklch, eo as useOutsideClick, ep as useOutsideClickRef, et as usePrevious, eu as usePreviousRender, ev as useWindowReady } from './index-BV8pVFiP.js';
1
+ export { bx as AccentShardCard, cW as AcrobaticPreloader, au as ActivateButton, A as AdjoinedFilters, av as AirplaneAnimation, cX as AlienSkeuomorphicLoaders, by as AnimatedBlendedCard, cy as AnimatedHeroTitle, aw as AnimatedHoverButton, ax as AnimatedHoverGlowButton, dn as AnimatedIconsNav, dp as AnimatedShareMenu, as as ApertureVideo, Z as Appearance, a3 as AreaLight, ay as AuroraButton, cn as AutoMasonryGrid, E as AvatarHover, an as BackgroundCircles, a6 as BackgroundSlider, ah as BlurVignette, B as BlurredBackground, ct as BoldHamburger, ai as BorderGradient, cO as BorderLink, X as BouncyClock, bz as BrandCard, V as BreakingProgress, az as BubblyParticlesButton, bR as BulletsCarousel, aA as BurningButton, aB as ButtonHoverFill, aC as ButtonShimmer, aD as ButtonWithDot, cY as CanOfDigits, bB as CaptionCard, bS as CardCarousel, u as CardDetails, bC as CardGlow, dl as CardMarquee, bD as CardTile, cZ as ChaseLoader, c0 as Checkbox, bE as ChequeredCard, c4 as Chips, a4 as ChromaticAberration, c_ as CircleDotsLoader, o as CircleLinesAnimation, cP as CircleLink, ak as CircleParticles, c9 as CircleTextHover, aE as ClaymorphicHeart, cF as ClearInput, aF as ClickButtonParticles, ca as ClickSpark, m as CollapseAnimation, aG as ColorfulButtons, at as ComingSoonBadge, ao as ComplexGradient, aH as ConfettiButton, cz as ContrastBackgroundText, bT as CoverFlowGallery, dJ as CronRedirectPage, c$ as CubeLoader, dr as CurtainRevealMenu, aJ as DDDButton, bF as DDDHoverCard, dV as DDDRangeSlider, c6 as DailClock, aI as DarkMatterButton, cb as DarkMatterMouseEffect, dZ as DaySwitch, co as DenseGrid, ds as DetachedMenu, cf as DialControl, cg as DialFuturistic, ci as Dock, aK as DockButton, cj as DockHas, ck as DockMotion, cm as DockY, aL as DoubleArrowButton, aM as DoubleArrowCollabButton, aN as DoubleStateButton, dt as DropdownMenu, i as Duck, aO as DynamicIconButton, k as DynamicIsland, aP as EchoClickButton, a9 as ElasticCards, cc as ElasticCursor, aQ as ElectrifiedButton, aR as ElectrifiedButtonGS, cK as EmailInput, dK as EmojiLayer, d0 as EndlessLoader, e7 as EnlightenedText, bG as EnvelopeTile, al as Expand, l as FadeUp, aS as FailedDownloadButton, dY as FeedbackReactions, bA as FigmaLogo, r as FileIcons, F as Fingerprint, c5 as FlipChips, cG as FloatingLabelInput, cA as FluidGooeyTextBackground, aT as FootprintButton, cQ as ForwardArrowLink, bU as FullScreenImageCarousel, du as Futuristic3DHoverMenu, aU as GalaxyButton, bV as GalleryReverseScroll, cB as GlassIcon, d_ as GlassSwitch, bW as GlideImageGallery, a1 as GlidingReveal, I as GlitterCard, aV as GlowButton, dW as GlowSlider, dv as GlowingDropdown, cH as GlowingInput, H as GlowingShadows, dw as GlowingTabs, dx as GlowingTabs2, e8 as GlowingText, bI as GlowingTile, aX as GoHoverButton, aW as GodRaysButton, aY as GooeyButton, G as GradientBorder, bH as GradientGlowingTile, e9 as GrainyGradientText, aZ as GravityButton, cp as Grid3DCards, am as GridAccordion, cq as GridHover, cr as GridViewTransition, cu as HamburgerMusic, cv as HamburgerX, cw as Header, a_ as HeartFoldButton, a$ as HoldSubmitButton, b0 as HoverGlowButton, bJ as HoverTile, bK as Hoverable3DCard, dq as ITEMS, ab as Illumination, bL as ImageCard, _ as ImageClipping, c1 as IndeterminateCheckboxes, d1 as InfiniteLoader, cI as InputFirework, b1 as Ios15Button, d$ as IosSwitch, ea as JellyText, ae as LandingXYScroll, Q as LayeredComponents, cs as LeaningCards, bX as ListItemHover, d2 as LoaderGenerator, d3 as LoadingBook, d4 as LoadingWave, L as Lock, a7 as LoveGlow, ce as MagicMouseEffect, eb as MagicalText, b2 as MagneticButton, dy as MagnifiedNavItems, ch as MetalCircleController, b3 as MinimalisticGlassButton, dz as MobileNavBar, b4 as MorphingSubmitButton, c7 as MotionClock, J as MotionDigits, x as MouseMoveGallery, z as MultiGradientBackground, b5 as MultiStageButton, n as MultipathSvgAnimation, N as NamedPointer, dA as NavigationMenu, b6 as NeonButton, e0 as NeonToggleSwitch, c8 as NeumorphicAnalogClock, cC as NeumorphicLogo, dX as NeumorphicSlider, e1 as NeuromorphicToggle, cL as NewsletterInput, b7 as NoisyButton, Y as NotificationBell, d5 as OffTrackPreloader, b8 as OrbitalSubmitButton, cR as PaintedLink, b9 as PaperPlanButton, dL as ParallaxEmoji, dB as ParallaxMenu, cM as PasswordInput, bM as PhotoCard, a5 as PhotoZoom, dC as PianoNav, d6 as PieLoader, dD as PinDropdown, ba as PlayPauseButton, bb as PlayPauseMusicButton, s as PolaroidStack, bc as PositionHover, bd as PredictionButton, bN as ProductTile, bO as ProfileCard, be as ProgressButton, bf as PsychedelicButton, d7 as PulseInLoader, d8 as PulseOutLoader, U as QuickTimeClock, dE as RadialMenu, dF as RadialNavigation, dO as RadioHopping, dN as RadioParticles, dM as RadioRolling, ap as RaysBackground, y as RealisticSmoke, cS as RegularLink, bg as RepostButton, a2 as RevealImageAnimation, aj as RhombusGallery, d9 as RingLoader, bY as RotatedCardsCarousel, da as RoundScaleLoader, bh as RubberButton, bi as RunningButton, O as SchrodingerFormControls, ec as ScrambledText, ed as ScramblingLetters, dP as ScrollCountdown, dQ as ScrollDrivenTextBlowOut, dS as ScrollTextHighlight, dT as ScrollTimeline, dU as ScrollWithLight, bZ as Scroller, dR as ScrollingTextReveal, cJ as SearchInput, g as SegmentedControls, e2 as SegmentedToggle, b_ as ShadowedCardsList, cN as ShadowedClick, ee as ShakingText, cT as ShakyLine, j as ShapeSelection, bj as ShimmerButton, bk as ShimmeringBorderGradient, bP as ShineAnimation, ef as ShiningText, bl as ShinyButton, dG as SinglePopoverMenu, db as SkateboardPreloader, bm as SkeuomorphicLikeButton, p as SlideIn, bn as SlidingButton, cD as SlidingIcon, b$ as SlidingImages, bo as SlidingStepper, dc as SmileyPreloader, v as SmokeTextDisappearance, h as SmoothScroll, dd as SnowballPreloader, K as SolarEclipse, bp as SparkleButton, bq as SparklyButton, t as SpeechToText, de as SpinningClickAnimation, cd as SplashCursor, cE as SquircleAvatar, br as SquishButton, bQ as StackingCards, $ as StaticSolarEclipse, cx as StickyHeader, q as StickyList, e3 as StretchToggle, df as StretchyLoader, c2 as StrikethroughCheckbox, c3 as StrikethroughCheckboxes, dg as StuntPreloader, dh as SubtleBorderAnimation, di as SuccessLoader, bs as SuccessLoadingButton, dH as TabBarAnimation, a8 as TextImageHover, eg as TextMorphing, eh as TextOutline, ei as TextShadow, aq as Texture, ac as ThanosDisappearEffect, ad as ThanosDisappearEffectList, bt as ThreadsLikeButton, dj as ThreeDotsLoader, bu as ThumbsUpButton, dm as Ticker, bv as TicklishButton, dk as TimeCirclesLoader, e4 as TippingSwitch, f as Toasts, e5 as ToggleBubble, e6 as ToggleClipPath, ek as TooltipRangeSlider, a0 as TranslucentBackdrop, bw as TrickButton, w as TurbulenceFilter, cU as UnderlinedLink, cV as UnderlinedLink2, ag as ViewTransitionAddToCard, af as ViewTransitionImageGallery, aa as VoiceAnimation, dI as WavyMenu, ar as WebGLSmoke, ej as WeightText, eF as chain, cl as getDockTooltipPosition, eA as is, eB as isNonNullable, eD as keys, ew as move, ey as noop, eC as notReachable, ex as times, el as useAnimatedText, em as useBowser, ep as useEffectEvent, eq as useLiveRef, er as useMatchMedia, es as useOklch, en as useOutsideClick, et as usePrevious, eu as usePreviousRender, eo as useUniversalLayoutEffect, ev as useWindowReady, eE as values, ez as wait } from './index-DHV_gGtW.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarsis/toolkit",
3
- "version": "0.2.4",
3
+ "version": "0.3.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,7 +38,7 @@
38
38
  "test:coverage": "vitest run --coverage",
39
39
  "build:storybook": "storybook build",
40
40
  "build": "tsc && vite build",
41
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
41
+ "lint": "eslint src --max-warnings=0",
42
42
  "format": "prettier . --write --ignore-unknown",
43
43
  "prepare": "husky install",
44
44
  "biome:format": "biome format src",
@@ -47,76 +47,77 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@biomejs/biome": "1.9.4",
50
- "@chromatic-com/storybook": "1.9.0",
51
- "@faker-js/faker": "9.3.0",
52
- "@laynezh/vite-plugin-lib-assets": "0.5.26",
50
+ "@chromatic-com/storybook": "3.2.6",
51
+ "@eslint/compat": "1.2.4",
52
+ "@faker-js/faker": "9.7.0",
53
+ "@laynezh/vite-plugin-lib-assets": "1.1.0",
53
54
  "@reach/tooltip": "0.18.0",
54
55
  "@react-spring/web": "9.7.5",
55
- "@storybook/addon-actions": "8.4.7",
56
- "@storybook/addon-essentials": "8.4.7",
57
- "@storybook/addon-interactions": "8.4.7",
58
- "@storybook/addon-links": "8.4.7",
59
- "@storybook/addon-onboarding": "8.4.7",
60
- "@storybook/blocks": "8.4.7",
61
- "@storybook/react": "8.4.7",
62
- "@storybook/react-vite": "8.4.7",
63
- "@storybook/test": "8.4.7",
64
- "@testing-library/jest-dom": "6.5.0",
65
- "@testing-library/react": "16.0.1",
66
- "@testing-library/user-event": "14.5.2",
56
+ "@storybook/addon-actions": "8.6.12",
57
+ "@storybook/addon-essentials": "8.6.12",
58
+ "@storybook/addon-interactions": "8.6.12",
59
+ "@storybook/addon-links": "8.6.12",
60
+ "@storybook/addon-onboarding": "8.6.12",
61
+ "@storybook/blocks": "8.6.12",
62
+ "@storybook/react": "8.6.12",
63
+ "@storybook/react-vite": "8.6.12",
64
+ "@storybook/test": "8.6.12",
65
+ "@testing-library/jest-dom": "6.6.3",
66
+ "@testing-library/react": "16.3.0",
67
+ "@testing-library/user-event": "14.6.1",
67
68
  "@types/canvas-confetti": "1.6.4",
68
- "@types/chroma-js": "2.4.4",
69
+ "@types/chroma-js": "3.1.1",
69
70
  "@types/dat.gui": "0.7.13",
70
- "@types/flickity": "2.2.7",
71
+ "@types/flickity": "2.2.11",
71
72
  "@types/howler": "2.2.12",
72
- "@types/node": "20.17.11",
73
+ "@types/node": "20.17.32",
73
74
  "@types/p5": "1.7.6",
74
- "@types/react": "19.0.2",
75
- "@types/react-dom": "19.0.2",
76
- "@typescript-eslint/eslint-plugin": "8.17.0",
77
- "@typescript-eslint/parser": "8.17.0",
75
+ "@types/react": "19.1.2",
76
+ "@types/react-dom": "19.1.3",
77
+ "@typescript-eslint/eslint-plugin": "8.31.1",
78
+ "@typescript-eslint/parser": "8.31.1",
78
79
  "@use-gesture/react": "10.3.1",
79
- "@vitejs/plugin-react-swc": "3.7.2",
80
- "@vitest/coverage-v8": "2.1.8",
81
- "@vitest/ui": "2.1.8",
82
- "autoprefixer": "10.4.20",
80
+ "@vitejs/plugin-react-swc": "3.9.0",
81
+ "@vitest/coverage-v8": "3.1.2",
82
+ "@vitest/ui": "3.1.2",
83
+ "autoprefixer": "10.4.21",
83
84
  "bowser": "2.11.0",
84
85
  "canvas-confetti": "1.9.3",
85
86
  "chroma-js": "3.1.2",
86
87
  "classnames": "2.5.1",
87
88
  "eslint": "8.57.1",
88
- "eslint-config-prettier": "9.1.0",
89
+ "eslint-config-prettier": "10.1.2",
89
90
  "eslint-plugin-jest-dom": "5.5.0",
90
- "eslint-plugin-react": "7.37.3",
91
- "eslint-plugin-react-hooks": "4.6.2",
92
- "eslint-plugin-react-refresh": "0.4.16",
93
- "eslint-plugin-storybook": "0.11.2",
94
- "flickity": "2.0.10",
95
- "framer-motion": "12.0.0-alpha.2",
96
- "gsap": "3.12.5",
97
- "gsap-trial": "3.12.5",
91
+ "eslint-plugin-react": "7.37.5",
92
+ "eslint-plugin-react-hooks": "5.2.0",
93
+ "eslint-plugin-react-refresh": "0.4.20",
94
+ "eslint-plugin-storybook": "0.12.0",
95
+ "expect-type": "1.2.1",
96
+ "flickity": "2.3.0",
97
+ "framer-motion": "12.9.4",
98
+ "gsap": "3.13.0",
98
99
  "howler": "2.2.4",
99
100
  "html2canvas": "1.4.1",
100
- "husky": "9.1.6",
101
- "jsdom": "25.0.1",
102
- "p5": "1.11.2",
103
- "postcss": "8.4.49",
104
- "postcss-preset-env": "10.1.3",
105
- "prettier": "3.4.2",
106
- "react": "19.0.0",
107
- "react-dom": "19.0.0",
101
+ "husky": "9.1.7",
102
+ "jsdom": "26.1.0",
103
+ "p5": "2.0.1",
104
+ "postcss": "8.5.3",
105
+ "postcss-preset-env": "10.1.6",
106
+ "prettier": "3.5.3",
107
+ "react": "19.1.0",
108
+ "react-dom": "19.1.0",
108
109
  "react-flip-toolkit": "7.2.4",
109
- "react-icons": "5.4.0",
110
- "rooks": "7.14.1",
111
- "sass": "1.83.1",
112
- "storybook": "8.4.7",
113
- "swiper": "11.2.0",
114
- "typescript": "5.7.2",
115
- "vite": "6.0.7",
116
- "vite-plugin-dts": "4.3.0",
117
- "vite-plugin-static-copy": "2.2.0",
110
+ "react-icons": "5.5.0",
111
+ "rooks": "8.0.1",
112
+ "sass": "1.87.0",
113
+ "storybook": "8.6.12",
114
+ "swiper": "11.2.6",
115
+ "typescript": "5.8.3",
116
+ "vite": "6.3.4",
117
+ "vite-plugin-dts": "4.5.3",
118
+ "vite-plugin-static-copy": "2.3.1",
118
119
  "vite-tsconfig-paths": "5.1.4",
119
- "vitest": "2.1.8"
120
+ "vitest": "3.1.2"
120
121
  },
121
122
  "peerDependencies": {
122
123
  "@reach/tooltip": "^0.18.0",
@@ -126,18 +127,17 @@
126
127
  "canvas-confetti": "^1.9.3",
127
128
  "chroma-js": "^3.1.2",
128
129
  "classnames": "^2.5.1",
129
- "flickity": "^2.0.10",
130
- "framer-motion": "^12.0.0-alpha.2",
131
- "gsap": "^3.12.5",
132
- "gsap-trial": "^3.12.5",
130
+ "flickity": "^2.3.0",
131
+ "framer-motion": "^12.9.4",
132
+ "gsap": "^3.13.0",
133
133
  "howler": "^2.2.4",
134
134
  "html2canvas": "^1.4.1",
135
- "p5": "^1.11.1",
135
+ "p5": "^2.0.1",
136
136
  "react": "^19.0.0",
137
137
  "react-dom": "^19.0.0",
138
138
  "react-flip-toolkit": "^7.2.4",
139
139
  "react-icons": "^5.4.0",
140
- "rooks": "^7.14.1",
140
+ "rooks": "^7.14.1 || ^8.0.0",
141
141
  "swiper": "^11.2.0"
142
142
  },
143
143
  "dependencies": {