Začetni commit projekta rezervacije

This commit is contained in:
Mark Poljanšek committed 2025-04-23 20:19:33 +02:00
commit 328731b32f
56062 files changed
+2485242

No files matched your search

+1
View File
@@ -0,0 +1 @@
export * from "./transition.js";
+1
View File
@@ -0,0 +1 @@
export * from "./transition.js";
+12
View File
@@ -0,0 +1,12 @@
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> {}
+1
View File
@@ -0,0 +1 @@
export {};
+23
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 {};
+13
View File
@@ -0,0 +1,13 @@
export const reflow = node => node.scrollTop;
export function getTransitionProps(props, options) {
const {
timeout,
easing,
style = {}
} = props;
return {
duration: style.transitionDuration ?? (typeof timeout === 'number' ? timeout : timeout[options.mode] || 0),
easing: style.transitionTimingFunction ?? (typeof easing === 'object' ? easing[options.mode] : easing),
delay: style.transitionDelay
};
}