@moosend/mooskin 1.0.38 → 1.0.40
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/lib/Box/model.d.ts +1 -0
- package/lib/Drawer/model.d.ts +1 -1
- package/lib/Drawer/styles.d.ts +1 -1
- package/lib/Modal/model.d.ts +1 -1
- package/lib/index/index.js +2 -2
- package/package.json +1 -1
package/lib/Box/model.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare type IAnchorBoxComponentProps = IBoxComponentProps & React.Anchor
|
|
|
13
13
|
export declare type ITextAreaBoxComponentProps = IBoxComponentProps & React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
14
14
|
export interface IBaseBoxComponentProps extends IMooskinContext {
|
|
15
15
|
ref?: any;
|
|
16
|
+
setRef?: (ref: HTMLElement) => void;
|
|
16
17
|
boxAs?: any;
|
|
17
18
|
m?: React.CSSProperties['margin'] | Array<React.CSSProperties['margin']>;
|
|
18
19
|
mt?: React.CSSProperties['marginTop'] | Array<React.CSSProperties['marginTop']>;
|
package/lib/Drawer/model.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface IDrawerComponentProps extends IBoxComponentProps {
|
|
|
7
7
|
size?: IContentSize;
|
|
8
8
|
closeOnEsc?: boolean;
|
|
9
9
|
closeOnOverlayClick?: boolean;
|
|
10
|
-
onClose?: (e
|
|
10
|
+
onClose?: (e?: React.MouseEvent<HTMLElement>) => void;
|
|
11
11
|
onOpen?: () => void;
|
|
12
12
|
}
|
|
13
13
|
export interface IDrawerContentComponentProps extends IBoxComponentProps {
|
package/lib/Drawer/styles.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IBoxComponentProps } from '../Box/model';
|
|
3
3
|
import { IDrawerComponentProps, IDrawerContentComponentProps, IDrawerOverlayComponentProps } from './model';
|
|
4
|
-
export declare const getContentSize: (size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined) => "
|
|
4
|
+
export declare const getContentSize: (size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined) => "20%" | "35%" | "50%" | "65%" | "80%" | "100%" | undefined;
|
|
5
5
|
export declare const StyledDrawer: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerComponentProps, never>;
|
|
6
6
|
export declare const StyledDrawerContent: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerContentComponentProps, never>;
|
|
7
7
|
export declare const StyledDrawerContentRight: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerContentComponentProps, never>;
|
package/lib/Modal/model.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface IModalComponentProps extends IBoxComponentProps {
|
|
|
4
4
|
isOpen?: boolean;
|
|
5
5
|
closeOnEsc?: boolean;
|
|
6
6
|
closeOnOverlayClick?: boolean;
|
|
7
|
-
onClose?: (e
|
|
7
|
+
onClose?: (e?: React.MouseEvent<HTMLElement>) => void;
|
|
8
8
|
}
|
|
9
9
|
export interface IModalContentComponentProps extends IBoxComponentProps {
|
|
10
10
|
isOpen?: boolean;
|