@moosend/mooskin 1.0.40 → 1.0.42
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/ActionsDropdown/model.d.ts +1 -0
- package/lib/ActionsDropdown/styles.d.ts +2 -0
- package/lib/Box/model.d.ts +2 -1
- package/lib/Box/styles.d.ts +1 -1
- package/lib/Drawer/styles.d.ts +1 -1
- package/lib/Select/Select.d.ts +1 -0
- package/lib/Select/styles.d.ts +2 -0
- package/lib/_utils/globals/screens.d.ts +18 -0
- package/lib/index/index.js +6 -6
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import { IBoxComponentProps } from '../Box/model';
|
|
|
4
4
|
export interface IActionsDropdownComponentProps extends IBoxComponentProps {
|
|
5
5
|
isOpen?: boolean;
|
|
6
6
|
onClickItem?: (e: React.MouseEvent<HTMLElement>, data: IInputCallbackData) => void;
|
|
7
|
+
onClose?: (e?: React.MouseEvent<HTMLElement>) => void;
|
|
7
8
|
}
|
|
8
9
|
export interface IActionsDropdownItemComponentProps extends IBoxComponentProps {
|
|
9
10
|
dataLabel?: any;
|
|
@@ -6,3 +6,5 @@ export declare const StyledActionsDropdownFadeIn: import("styled-components").St
|
|
|
6
6
|
export declare const StyledActionsDropdownFadeOut: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IActionsDropdownComponentProps, never>;
|
|
7
7
|
export declare const StyledActionsDropdownItem: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IActionsDropdownItemComponentProps, never>;
|
|
8
8
|
export declare const StyledActionsDropdownArrow: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IBoxComponentProps, never>;
|
|
9
|
+
export declare const StyledActionsDropdownButtonClose: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IBoxComponentProps, never>;
|
|
10
|
+
export declare const StyledActionDropdownOverlay: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IBoxComponentProps, never>;
|
package/lib/Box/model.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { IMooskinContext, IStyledTheme, IThemeBackgroundColors, IThemeBorderColo
|
|
|
3
3
|
export declare type IntensityType = 'xs' | 'sm' | 'base' | 'md' | 'lg' | 'xl' | '2xl';
|
|
4
4
|
export declare type BoxShadowIntensityType = IntensityType | 'inner' | 'outline';
|
|
5
5
|
export declare type NestedThemeType = `${keyof IStyledTheme}.${keyof IThemeFontColors | keyof IThemeBorderColors | keyof IThemeBackgroundColors}`;
|
|
6
|
+
export declare type ScreenType = 'lg' | 'md' | 'sm' | 'xs';
|
|
6
7
|
export declare const boxComponentProps: string[];
|
|
7
8
|
export declare type IBoxComponentProps = IBaseBoxComponentProps & React.HTMLAttributes<HTMLElement>;
|
|
8
9
|
export declare type IBoxImageComponentProps = IBaseBoxComponentProps & React.ImgHTMLAttributes<HTMLImageElement>;
|
|
@@ -12,7 +13,7 @@ export declare type IInputBoxComponentProps = IBoxComponentProps & React.InputHT
|
|
|
12
13
|
export declare type IAnchorBoxComponentProps = IBoxComponentProps & React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
13
14
|
export declare type ITextAreaBoxComponentProps = IBoxComponentProps & React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
14
15
|
export interface IBaseBoxComponentProps extends IMooskinContext {
|
|
15
|
-
|
|
16
|
+
noRender?: Array<ScreenType>;
|
|
16
17
|
setRef?: (ref: HTMLElement) => void;
|
|
17
18
|
boxAs?: any;
|
|
18
19
|
m?: React.CSSProperties['margin'] | Array<React.CSSProperties['margin']>;
|
package/lib/Box/styles.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import { IStyledTheme } from '../Styled/model';
|
|
|
2
2
|
import { BoxShadowIntensityType, IBoxComponentProps } from './model';
|
|
3
3
|
export declare const getNumberOrStringValue: (value?: string | number | undefined) => string;
|
|
4
4
|
export declare const getNestedValue: (value?: string | number | undefined, palette?: IStyledTheme | undefined) => any;
|
|
5
|
-
export declare const getRoundness: (round?: "base" | "
|
|
5
|
+
export declare const getRoundness: (round?: "base" | "lg" | "md" | "sm" | "xs" | "xl" | "2xl" | undefined) => "border-radius: 0.125rem;" | "border-radius: 0.25rem;" | "border-radius: 0.375rem;" | "border-radius: 0.5rem;" | "border-radius: 0.625rem;" | "border-radius: 0.75rem;" | "border-radius: 1rem;" | undefined;
|
|
6
6
|
export declare const getBoxShadow: (boxShadow?: React.CSSProperties['boxShadow'] | BoxShadowIntensityType) => string | undefined;
|
|
7
7
|
export declare const StyledBox: import("styled-components").StyledComponent<"div", any, IBoxComponentProps, never>;
|
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?: "
|
|
4
|
+
export declare const getContentSize: (size?: "lg" | "md" | "sm" | "xs" | "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/Select/Select.d.ts
CHANGED
|
@@ -11,3 +11,4 @@ export declare const SelectLoader: React.FC<IBoxComponentProps>;
|
|
|
11
11
|
export declare const SelectIcon: React.FC<IBoxComponentProps>;
|
|
12
12
|
export declare const SelectOverlay: React.FC<IBoxComponentProps>;
|
|
13
13
|
export declare const SelectPagination: React.FC<ISelectPaginationComponentProps>;
|
|
14
|
+
export declare const SearchPlaceholderMobileView: React.FC<IBoxComponentProps>;
|
package/lib/Select/styles.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const StyledSelect: import("styled-components").StyledComponent<i
|
|
|
5
5
|
export declare const StyledSelectFilter: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IInputBoxComponentProps, never>;
|
|
6
6
|
export declare const StyledSelectContainer: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IBoxComponentProps, never>;
|
|
7
7
|
export declare const StyledSelectPlaceholder: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IBoxComponentProps, never>;
|
|
8
|
+
export declare const StyledSearchPlaceholderMobileView: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IBoxComponentProps, never>;
|
|
8
9
|
export declare const StyledSelectOptionList: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, ISelectOptionListProps, never>;
|
|
9
10
|
export declare const StyledSelectOptionListFadeIn: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, ISelectOptionListProps, never>;
|
|
10
11
|
export declare const StyledSelectOptionListFadeOut: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, ISelectOptionListProps, never>;
|
|
@@ -13,3 +14,4 @@ export declare const StyledSelectOption: import("styled-components").StyledCompo
|
|
|
13
14
|
export declare const StyledSelectIcon: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IBoxComponentProps, never>;
|
|
14
15
|
export declare const StyledSelectPagination: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IBoxComponentProps, never>;
|
|
15
16
|
export declare const StyledPaginationPage: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IBoxComponentProps, never>;
|
|
17
|
+
export declare const StyledSelectListButtonClose: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IBoxComponentProps, never>;
|
|
@@ -9,3 +9,21 @@ declare const _default: {
|
|
|
9
9
|
xSmall: string;
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
|
12
|
+
export declare const Screens: {
|
|
13
|
+
lg: {
|
|
14
|
+
min: number;
|
|
15
|
+
max: number;
|
|
16
|
+
};
|
|
17
|
+
md: {
|
|
18
|
+
min: number;
|
|
19
|
+
max: number;
|
|
20
|
+
};
|
|
21
|
+
sm: {
|
|
22
|
+
min: number;
|
|
23
|
+
max: number;
|
|
24
|
+
};
|
|
25
|
+
xs: {
|
|
26
|
+
min: number;
|
|
27
|
+
max: number;
|
|
28
|
+
};
|
|
29
|
+
};
|