@okam/stack-ui 1.20.0 → 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.
- package/components/Lightbox/index.d.ts +2 -2
- package/components/Lightbox/interface.d.ts +18 -16
- package/components/Modal/components/ModalDialog.d.ts +3 -0
- package/components/Modal/components/ModalOverlay.d.ts +3 -0
- package/components/Modal/index.d.ts +1 -1
- package/components/Modal/interface.d.ts +11 -3
- package/index.js +12 -13
- package/index.mjs +1103 -1091
- package/package.json +1 -1
- package/providers/SidePanel/index.d.ts +1 -1
- package/providers/SidePanel/interface.d.ts +4 -1
- package/theme/LightBox/index.d.ts +455 -447
- package/components/Lightbox/hooks/overlay/index.d.ts +0 -12
- package/components/Lightbox/hooks/overlay/interface.d.ts +0 -2
- package/components/Modal/Dialog.d.ts +0 -3
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const Lightbox: (props:
|
|
1
|
+
import type { TLightboxProps } from './interface';
|
|
2
|
+
declare const Lightbox: (props: TLightboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Lightbox;
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { AriaDialogProps } from '@react-types/dialog';
|
|
3
|
-
import type { HTMLAttributes } from 'react';
|
|
1
|
+
import type { DOMAttributes } from '@react-types/shared';
|
|
4
2
|
import type React from 'react';
|
|
3
|
+
import type { Dispatch, FunctionComponent, SetStateAction } from 'react';
|
|
4
|
+
import type { OverlayTriggerProps as AriaOverlayTriggerProps } from 'react-aria';
|
|
5
|
+
import type { OverlayTriggerProps } from 'react-stately';
|
|
5
6
|
import type { TDefaultComponent } from '../../types/components';
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
import type { TButtonProps } from '../Button/interface';
|
|
8
|
+
export interface LightboxProps extends Omit<AriaOverlayTriggerProps, 'type'> {
|
|
9
|
+
closeButtonAriaLabel?: string;
|
|
10
|
+
setOpen?: Dispatch<SetStateAction<boolean>>;
|
|
8
11
|
}
|
|
9
|
-
export interface
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
export interface TLightboxProps extends OverlayTriggerProps, LightboxProps, TDefaultComponent {
|
|
13
|
+
label: string;
|
|
14
|
+
thumbnailContent: React.ReactNode;
|
|
15
|
+
closeButton?: FunctionComponent<TButtonProps>;
|
|
16
|
+
}
|
|
17
|
+
export interface LightboxAria {
|
|
18
|
+
overlayProps: DOMAttributes & {
|
|
19
|
+
label?: string;
|
|
20
|
+
};
|
|
21
|
+
labelProps: DOMAttributes;
|
|
18
22
|
}
|
|
19
|
-
export type LightboxProps = ILightboxProps & TDefaultComponent;
|
|
20
|
-
export type ModalDialogProps = AriaOverlayProps & AriaDialogProps & ModalProps;
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import type { OverlayTriggerState } from '@react-stately/overlays';
|
|
2
2
|
import type React from 'react';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import type { AriaDialogProps, AriaModalOverlayProps } from 'react-aria';
|
|
4
|
+
import type { TDefaultComponent } from '../../types/components';
|
|
5
|
+
export interface TModalProps extends AriaModalOverlayProps, TDefaultComponent {
|
|
5
6
|
state: OverlayTriggerState;
|
|
7
|
+
children: React.ReactNode;
|
|
6
8
|
transitionComponent?: (props: {
|
|
7
9
|
isVisible: boolean;
|
|
8
10
|
children: React.ReactNode;
|
|
9
11
|
}) => JSX.Element;
|
|
10
|
-
|
|
12
|
+
}
|
|
13
|
+
export interface TModalOverlayProps extends AriaModalOverlayProps, TDefaultComponent {
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
state: OverlayTriggerState;
|
|
16
|
+
}
|
|
17
|
+
export interface TModalDialogProps extends AriaDialogProps, TDefaultComponent {
|
|
18
|
+
children: React.ReactNode;
|
|
11
19
|
}
|