@okam/stack-ui 1.19.2 → 1.20.3

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,4 @@
1
+ /// <reference types="react" />
2
+ import type { TTransition } from '../types/components';
3
+ declare const AccordionTransition: (props: TTransition) => JSX.Element;
4
+ export default AccordionTransition;
@@ -1,7 +1,4 @@
1
- import React from 'react';
2
- interface TProps {
3
- isVisible: boolean;
4
- children: React.ReactNode;
5
- }
6
- declare const RenderWithOpacity: ({ isVisible, children }: TProps) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import type { TTransition } from '../types/components';
3
+ declare const RenderWithOpacity: ({ isVisible, children, themeName, tokens, customTheme }: TTransition) => JSX.Element;
7
4
  export default RenderWithOpacity;
@@ -19,5 +19,9 @@ export type TReactHookForm = {
19
19
  pattern?: string | undefined;
20
20
  validation?: object;
21
21
  };
22
+ export interface TTransition extends TDefaultComponent {
23
+ isVisible: boolean;
24
+ children: React.ReactNode;
25
+ }
22
26
  export type Nullable<T> = T | undefined | null;
23
27
  export type Maybe<T> = T | null;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import type { TOnCloseCallback, TOnOpenCallback } from './interface';
3
- declare const useOverlayHook: (isOpen?: boolean, onOpenCallBack?: TOnOpenCallback, onCloseCallBack?: TOnCloseCallback) => {
4
- state: import("@react-stately/overlays").OverlayTriggerState;
5
- openButtonProps: React.HTMLAttributes<HTMLDivElement>;
6
- closeButtonProps: React.ButtonHTMLAttributes<HTMLButtonElement>;
7
- handleOpen: () => void;
8
- handleClose: () => void;
9
- openButtonRef: React.MutableRefObject<null>;
10
- closeButtonRef: React.MutableRefObject<null>;
11
- };
12
- export default useOverlayHook;
@@ -1,2 +0,0 @@
1
- export type TOnOpenCallback = (bool: boolean) => void;
2
- export type TOnCloseCallback = () => void;
@@ -1,3 +0,0 @@
1
- import type { ModalDialogProps } from '../Lightbox/interface';
2
- declare const ModalDialog: (props: ModalDialogProps) => import("react/jsx-runtime").JSX.Element;
3
- export default ModalDialog;