@sesamehr/react-design-system 2.0.1-beta.1 → 2.1.0

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.
@@ -46,10 +46,12 @@ export interface CalendarProps extends Pick<React.HTMLAttributes<HTMLDivElement>
46
46
  }) => React.ReactNode;
47
47
  /** One day. Falls back to `OxCalendarDay`. */
48
48
  day?: DayRenderer;
49
+ /** How long a month takes to come in, in milliseconds. `0` turns it off. */
50
+ animationDuration?: number;
49
51
  dataTestid: string;
50
52
  }
51
53
  export declare const Calendar: {
52
- ({ className, value, defaultValue, onValueChange, months, month: renderMonth, constraints, header, day, dataTestid, }: CalendarProps): import("react/jsx-runtime").JSX.Element;
54
+ ({ className, value, defaultValue, onValueChange, months, month: renderMonth, constraints, header, day, animationDuration, dataTestid, }: CalendarProps): import("react/jsx-runtime").JSX.Element;
53
55
  displayName: string;
54
56
  };
55
57
  export {};
@@ -0,0 +1,23 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export interface TransitionRevealProps extends HTMLAttributes<HTMLDivElement> {
3
+ /** While false the content is invisible but fully laid out. */
4
+ show?: boolean;
5
+ /** Milliseconds before the entrance starts. Stagger a list with `index * 120`. */
6
+ delay?: number;
7
+ /** How far the content travels, as a length. */
8
+ distance?: string;
9
+ /** Where the content comes from. */
10
+ direction?: 'top' | 'bottom';
11
+ /** How long the entrance takes, in milliseconds. */
12
+ duration?: number;
13
+ }
14
+ /**
15
+ * Entrance for content that is already mounted and laid out, ported from
16
+ * `@sesame/orxata-core` TransitionReveal. Unlike the other Transition
17
+ * components it is not built on `CSSTransition`: nothing is inserted or
18
+ * removed, so the element stays measurable while it waits its turn.
19
+ */
20
+ export declare function TransitionReveal({ show, delay, distance, direction, duration, className, style, children, ...rest }: TransitionRevealProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare namespace TransitionReveal {
22
+ var displayName: string;
23
+ }
@@ -0,0 +1 @@
1
+ export { TransitionReveal, type TransitionRevealProps, } from './TransitionReveal.tsx';
package/dist/main.d.ts CHANGED
@@ -6,6 +6,7 @@ export { TransitionFade as OxTransitionFade } from './Transitions/TransitionFade
6
6
  export { TransitionSlideY as OxTransitionSlideY } from './Transitions/TransitionSlideY/TransitionSlideY.tsx';
7
7
  export { TransitionExpand as OxTransitionExpand } from './Transitions/TransitionExpand/TransitionExpand.tsx';
8
8
  export { TransitionFlip as OxTransitionFlip } from './Transitions/TransitionFlip/TransitionFlip.tsx';
9
+ export { TransitionReveal as OxTransitionReveal } from './Transitions/TransitionReveal/TransitionReveal.tsx';
9
10
  export { Button as OxButton, buttonVariants, type ButtonVariants, } from './Button/index.ts';
10
11
  export { IconButton as OxIconButton, iconButtonVariants, type IconButtonVariants, } from './Button/IconButton/index.ts';
11
12
  export { ActionItem as OxActionItem, type ActionItemProps, } from './Button/ActionItem/index.ts';