@okam/stack-ui 1.20.0 → 1.20.4-1
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/Accordion/interface.d.ts +2 -7
- 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.d.ts +1 -0
- package/index.js +12 -13
- package/index.mjs +1506 -1485
- package/package.json +1 -1
- package/providers/SidePanel/index.d.ts +1 -1
- package/providers/SidePanel/interface.d.ts +4 -1
- package/theme/Accordion/index.d.ts +28 -0
- 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,9 +1,8 @@
|
|
|
1
1
|
import type { AccordionItemAriaProps } from '@react-aria/accordion';
|
|
2
2
|
import type { ComponentType, ReactElement } from 'react';
|
|
3
3
|
import type { ItemProps, TreeProps } from 'react-stately';
|
|
4
|
-
import type { TToken } from '../../providers/Theme/interface';
|
|
5
4
|
import type { TDefaultComponent, TTransition } from '../../types/components';
|
|
6
|
-
type TAccordionDefaultComponent = Omit<TDefaultComponent
|
|
5
|
+
type TAccordionDefaultComponent = Omit<TDefaultComponent, 'children'>;
|
|
7
6
|
export interface AccordionProps extends TreeProps<TAccordionItemProps> {
|
|
8
7
|
children: ReactElement<TAccordionItemProps> | ReactElement<TAccordionItemProps>[];
|
|
9
8
|
}
|
|
@@ -13,7 +12,7 @@ export interface TAccordionProps extends TAccordionDefaultComponent, AccordionPr
|
|
|
13
12
|
}
|
|
14
13
|
export interface TAccordionItemProps extends ItemProps<TAccordionItemProps>, TAccordionDefaultComponent {
|
|
15
14
|
icon?: React.ReactNode;
|
|
16
|
-
onOpenChange
|
|
15
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
17
16
|
defaultOpen?: boolean;
|
|
18
17
|
isOpen?: boolean;
|
|
19
18
|
}
|
|
@@ -22,8 +21,4 @@ export type TAriaAccordionItemProps = TAccordionDefaultComponent & Omit<Accordio
|
|
|
22
21
|
props?: TAccordionItemProps;
|
|
23
22
|
};
|
|
24
23
|
};
|
|
25
|
-
interface TAccordionTokens extends TToken {
|
|
26
|
-
titleBold: boolean;
|
|
27
|
-
textAlign: 'center' | 'left';
|
|
28
|
-
}
|
|
29
24
|
export {};
|
|
@@ -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
|
}
|
package/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export type { TButtonProps } from './components/Button/interface';
|
|
|
41
41
|
export type { TTypographyProps } from './components/Typography/interface';
|
|
42
42
|
export type { TTheme, TToken, TCustomTheme, TStyle, TDefaultTheme, TStyleCollection, TStyleValue, } from './providers/Theme/interface';
|
|
43
43
|
export type { TMenuProps, TMenuItemProps } from './components/Menu/interface';
|
|
44
|
+
export type { TDefaultComponent, Nullable } from './types/components';
|
|
44
45
|
export { default as generateUtmTags } from './components/ShareButton/utils/generateUtmTags';
|
|
45
46
|
export { default as useWindow } from './components/ShareButton/utils/useWindow';
|
|
46
47
|
export { default as useFacebookShareUrl } from './components/ShareButton/utils/useFacebookShareUrl';
|