wip:milestone 0 fixes
Some checks failed
CI/CD Pipeline / unit-tests (push) Failing after 1m16s
CI/CD Pipeline / integration-tests (push) Failing after 2m32s
CI/CD Pipeline / lint (push) Successful in 5m22s
CI/CD Pipeline / e2e-tests (push) Has been skipped
CI/CD Pipeline / build (push) Has been skipped

This commit is contained in:
2026-03-15 12:35:42 +02:00
parent 6708cf28a7
commit cffdf8af86
61266 changed files with 4511646 additions and 1938 deletions

View File

@@ -0,0 +1 @@
export * from './transition';

View File

@@ -0,0 +1 @@
export * from './transition';

View File

@@ -0,0 +1,6 @@
{
"sideEffects": false,
"module": "./index.js",
"main": "../node/transitions/index.js",
"types": "./index.d.ts"
}

View File

@@ -0,0 +1,13 @@
import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
import * as React from 'react';
export type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
export type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
export interface EasingProps {
easing: string | {
enter?: string;
exit?: string;
};
}
export type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
}

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1,23 @@
import * as React from 'react';
export declare const reflow: (node: Element) => number;
interface ComponentProps {
easing: string | {
enter?: string;
exit?: string;
} | undefined;
style: React.CSSProperties | undefined;
timeout: number | {
enter?: number;
exit?: number;
};
}
interface Options {
mode: 'enter' | 'exit';
}
interface TransitionProps {
duration: string | number;
easing: string | undefined;
delay: string | undefined;
}
export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
export {};

View File

@@ -0,0 +1,14 @@
export const reflow = node => node.scrollTop;
export function getTransitionProps(props, options) {
var _style$transitionDura, _style$transitionTimi;
const {
timeout,
easing,
style = {}
} = props;
return {
duration: (_style$transitionDura = style.transitionDuration) != null ? _style$transitionDura : typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,
easing: (_style$transitionTimi = style.transitionTimingFunction) != null ? _style$transitionTimi : typeof easing === 'object' ? easing[options.mode] : easing,
delay: style.transitionDelay
};
}