tsp-form 0.7.7 → 0.7.8

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.
@@ -0,0 +1,11 @@
1
+ import { type ReactNode } from 'react';
2
+ import '../styles/animated-outlet.css';
3
+ export type AnimatedOutletProps = {
4
+ /** Fallback content when no child route is active (i.e. the index/parent view). */
5
+ fallback?: ReactNode;
6
+ /** Breakpoint in px below which transitions are animated. Default 768. */
7
+ mobileBreakpoint?: number;
8
+ className?: string;
9
+ };
10
+ export declare function AnimatedOutlet({ fallback, mobileBreakpoint, className, }: AnimatedOutletProps): import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=AnimatedOutlet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnimatedOutlet.d.ts","sourceRoot":"","sources":["../../../src/components/AnimatedOutlet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGpE,OAAO,+BAA+B,CAAC;AAEvC,MAAM,MAAM,mBAAmB,GAAG;IAChC,mFAAmF;IACnF,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,0EAA0E;IAC1E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAMF,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,gBAAsB,EACtB,SAAS,GACV,EAAE,mBAAmB,2CA0FrB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsp-form",
3
- "version": "0.7.7",
3
+ "version": "0.7.8",
4
4
  "type": "module",
5
5
  "description": "A unified Tailwind 4 variables compatible UI component library for my own projects.",
6
6
  "module": "dist/index.js",
@@ -1,23 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- import '../styles/route-transition.css';
3
- type Direction = 'forward' | 'back';
4
- type RouteTransitionContextValue = {
5
- direction: Direction;
6
- /** Signal that the next location change is a forward (push) navigation. */
7
- goForward: () => void;
8
- /** Signal that the next location change is a back navigation. */
9
- goBack: () => void;
10
- };
11
- export declare function useRouteTransition(): RouteTransitionContextValue;
12
- export type RouteTransitionProps = {
13
- /** A key that changes when the route changes (e.g. location.pathname + location.search). */
14
- locationKey: string;
15
- /** The content to render for the current route (e.g. <Outlet /> or children). */
16
- children: ReactNode;
17
- /** Breakpoint in px below which transitions are animated. Default 768. */
18
- mobileBreakpoint?: number;
19
- className?: string;
20
- };
21
- export declare function RouteTransition({ locationKey, children, mobileBreakpoint, className, }: RouteTransitionProps): import("react/jsx-runtime").JSX.Element;
22
- export {};
23
- //# sourceMappingURL=RouteTransition.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RouteTransition.d.ts","sourceRoot":"","sources":["../../../src/components/RouteTransition.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5G,OAAO,gCAAgC,CAAC;AAIxC,KAAK,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AAEpC,KAAK,2BAA2B,GAAG;IACjC,SAAS,EAAE,SAAS,CAAC;IACrB,2EAA2E;IAC3E,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,iEAAiE;IACjE,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAQF,wBAAgB,kBAAkB,gCAEjC;AAID,MAAM,MAAM,oBAAoB,GAAG;IACjC,4FAA4F;IAC5F,WAAW,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,QAAQ,EAAE,SAAS,CAAC;IACpB,0EAA0E;IAC1E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAUF,wBAAgB,eAAe,CAAC,EAC9B,WAAW,EACX,QAAQ,EACR,gBAAsB,EACtB,SAAS,GACV,EAAE,oBAAoB,2CAwGtB"}