@moosend/mooskin 1.0.0-alpha.114 → 1.0.0-alpha.118
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 +2 -2
- package/lib/Box/styles.d.ts +1 -1
- package/lib/Button/Button.d.ts +2 -1
- package/lib/Button/styles.d.ts +2 -1
- package/lib/Drawer/styles.d.ts +1 -1
- package/lib/Styled/model.d.ts +21 -0
- package/lib/components/ActionsDropdown/ActionsDropdown.d.ts +6 -0
- package/lib/components/ActionsDropdown/model.d.ts +11 -0
- package/lib/components/ActionsDropdown/styles.d.ts +8 -0
- package/lib/components/Alert/Alert.d.ts +7 -0
- package/lib/components/Alert/model.d.ts +5 -0
- package/lib/components/Alert/styles.d.ts +7 -0
- package/lib/components/Anchor/Anchor.d.ts +3 -0
- package/lib/components/Anchor/model.d.ts +4 -0
- package/lib/components/Anchor/styles.d.ts +3 -0
- package/lib/components/Box/Box.d.ts +3 -0
- package/lib/components/Box/model.d.ts +118 -0
- package/lib/components/Box/resources.d.ts +9 -0
- package/lib/components/Box/styles.d.ts +7 -0
- package/lib/components/Button/Button.d.ts +6 -0
- package/lib/components/Button/model.d.ts +5 -0
- package/lib/components/Button/styles.d.ts +6 -0
- package/lib/components/Carousel/Carousel.d.ts +7 -0
- package/lib/components/Carousel/model.d.ts +33 -0
- package/lib/components/Carousel/styles.d.ts +4 -0
- package/lib/components/Checkbox/Checkbox.d.ts +8 -0
- package/lib/components/Checkbox/model.d.ts +13 -0
- package/lib/components/Checkbox/styles.d.ts +6 -0
- package/lib/components/DatePicker/DatePicker.d.ts +3 -0
- package/lib/components/DatePicker/model.d.ts +11 -0
- package/lib/components/DateRange/DateRange.d.ts +5 -0
- package/lib/components/DateRange/model.d.ts +13 -0
- package/lib/components/DateRange/styles.d.ts +3 -0
- package/lib/components/DateSelect/DateSelect.d.ts +3 -0
- package/lib/components/DateSelect/model.d.ts +7 -0
- package/lib/components/DateTimePicker/DateTimePicker.d.ts +3 -0
- package/lib/components/DateTimePicker/model.d.ts +11 -0
- package/lib/components/Description/Description.d.ts +3 -0
- package/lib/components/Description/styles.d.ts +3 -0
- package/lib/components/Drawer/Drawer.d.ts +10 -0
- package/lib/components/Drawer/model.d.ts +21 -0
- package/lib/components/Drawer/styles.d.ts +25 -0
- package/lib/components/Expandable/Expandable.d.ts +9 -0
- package/lib/components/Expandable/model.d.ts +13 -0
- package/lib/components/Expandable/styles.d.ts +9 -0
- package/lib/components/Footer/Footer.d.ts +6 -0
- package/lib/components/Footer/styles.d.ts +7 -0
- package/lib/components/Grid/Grid.d.ts +5 -0
- package/lib/components/Grid/model.d.ts +18 -0
- package/lib/components/Grid/styles.d.ts +5 -0
- package/lib/components/IconButton/IconButton.d.ts +3 -0
- package/lib/components/IconButton/model.d.ts +4 -0
- package/lib/components/IconButton/styles.d.ts +3 -0
- package/lib/components/Image/Image.d.ts +3 -0
- package/lib/components/Image/styles.d.ts +3 -0
- package/lib/components/Input/Input.d.ts +12 -0
- package/lib/components/Input/model.d.ts +27 -0
- package/lib/components/Input/styles.d.ts +12 -0
- package/lib/components/Label/Label.d.ts +3 -0
- package/lib/components/Label/model.d.ts +5 -0
- package/lib/components/Label/styles.d.ts +3 -0
- package/lib/components/Layout/Layout.d.ts +3 -0
- package/lib/components/Layout/model.d.ts +5 -0
- package/lib/components/Layout/styles.d.ts +3 -0
- package/lib/components/List/List.d.ts +8 -0
- package/lib/components/List/styles.d.ts +7 -0
- package/lib/components/Loader/Loader.d.ts +3 -0
- package/lib/components/Loader/model.d.ts +5 -0
- package/lib/components/Loader/styles.d.ts +3 -0
- package/lib/components/LoadingBar/LoadingBar.d.ts +3 -0
- package/lib/components/LoadingBar/model.d.ts +7 -0
- package/lib/components/LoadingBar/styles.d.ts +3 -0
- package/lib/components/Modal/Modal.d.ts +10 -0
- package/lib/components/Modal/model.d.ts +15 -0
- package/lib/components/Modal/styles.d.ts +14 -0
- package/lib/components/NumberLabel/NumberLabel.d.ts +3 -0
- package/lib/components/NumberLabel/model.d.ts +7 -0
- package/lib/components/Pagination/Pagination.d.ts +4 -0
- package/lib/components/Pagination/model.d.ts +12 -0
- package/lib/components/Pagination/styles.d.ts +6 -0
- package/lib/components/Radio/Radio.d.ts +8 -0
- package/lib/components/Radio/model.d.ts +14 -0
- package/lib/components/Radio/styles.d.ts +6 -0
- package/lib/components/Select/Select.d.ts +13 -0
- package/lib/components/Select/model.d.ts +24 -0
- package/lib/components/Select/styles.d.ts +15 -0
- package/lib/components/Selector/Selector.d.ts +4 -0
- package/lib/components/Selector/model.d.ts +10 -0
- package/lib/components/Selector/styles.d.ts +4 -0
- package/lib/components/Sidemenu/Sidemenu.d.ts +4 -0
- package/lib/components/Sidemenu/model.d.ts +10 -0
- package/lib/components/Sidemenu/styles.d.ts +4 -0
- package/lib/components/Skeleton/Skeleton.d.ts +5 -0
- package/lib/components/Skeleton/model.d.ts +14 -0
- package/lib/components/Skeleton/styles.d.ts +6 -0
- package/lib/components/Slider/Model.d.ts +7 -0
- package/lib/components/Slider/Slider.d.ts +3 -0
- package/lib/components/Slider/styles.d.ts +3 -0
- package/lib/components/Stack/Stack.d.ts +5 -0
- package/lib/components/Stack/model.d.ts +6 -0
- package/lib/components/Stack/styles.d.ts +3 -0
- package/lib/components/Steps/Steps.d.ts +6 -0
- package/lib/components/Steps/model.d.ts +16 -0
- package/lib/components/Steps/styles.d.ts +7 -0
- package/lib/components/Styled/GlobalStyles.d.ts +2 -0
- package/lib/components/Styled/MooskinContextProvider.d.ts +6 -0
- package/lib/components/Styled/model.d.ts +92 -0
- package/lib/components/Switch/Switch.d.ts +4 -0
- package/lib/components/Switch/model.d.ts +16 -0
- package/lib/components/Switch/styles.d.ts +7 -0
- package/lib/components/Table/Table.d.ts +7 -0
- package/lib/components/Table/styles.d.ts +7 -0
- package/lib/components/Tabs/Tabs.d.ts +6 -0
- package/lib/components/Tabs/model.d.ts +13 -0
- package/lib/components/Tabs/styles.d.ts +6 -0
- package/lib/components/Tags/Tags.d.ts +8 -0
- package/lib/components/Tags/model.d.ts +18 -0
- package/lib/components/Tags/styles.d.ts +8 -0
- package/lib/components/Text/Text.d.ts +3 -0
- package/lib/components/Text/model.d.ts +4 -0
- package/lib/components/Text/styles.d.ts +3 -0
- package/lib/components/TextArea/TextArea.d.ts +3 -0
- package/lib/components/TextArea/model.d.ts +4 -0
- package/lib/components/TextArea/styles.d.ts +3 -0
- package/lib/components/TextEditor/TextEditor.d.ts +3 -0
- package/lib/components/TextEditor/model.d.ts +14 -0
- package/lib/components/_utils/adapter.d.ts +1 -0
- package/lib/components/_utils/globals/screens.d.ts +11 -0
- package/lib/components/_utils/globals/variables.d.ts +3 -0
- package/lib/components/_utils/helper.d.ts +3 -0
- package/lib/components/_utils/index.d.ts +3 -0
- package/lib/components/_utils/test-setup.d.ts +0 -0
- package/lib/components/_utils/types/commonTypes.d.ts +4 -0
- package/lib/components/index/index.d.ts +85 -0
- package/lib/index/index.d.ts +1 -1
- package/lib/index/index.js +6 -6
- package/lib/stories/ActionsDropdown.stories.d.ts +6 -0
- package/lib/stories/Alert.stories.d.ts +5 -0
- package/lib/stories/Anchor.stories.d.ts +5 -0
- package/lib/stories/Box.stories.d.ts +4 -0
- package/lib/stories/Button.stories.d.ts +7 -0
- package/lib/stories/Carousel.stories.d.ts +4 -0
- package/lib/stories/Checkbox.stories.d.ts +8 -0
- package/lib/stories/DatePicker.stories.d.ts +4 -0
- package/lib/stories/DateRange.stories.d.ts +4 -0
- package/lib/stories/DateSelect.stories.d.ts +9 -0
- package/lib/stories/DateTimePicker.stories.d.ts +4 -0
- package/lib/stories/Drawer.stories.d.ts +6 -0
- package/lib/stories/Expandable.stories.d.ts +4 -0
- package/lib/stories/Footer.stories.d.ts +4 -0
- package/lib/stories/Grid.stories.d.ts +4 -0
- package/lib/stories/IconButton.stories.d.ts +5 -0
- package/lib/stories/Input.stories.d.ts +6 -0
- package/lib/stories/Layout.stories.d.ts +4 -0
- package/lib/stories/List.stories.d.ts +5 -0
- package/lib/stories/Loader.stories.d.ts +4 -0
- package/lib/stories/LoadingBar.stories.d.ts +4 -0
- package/lib/stories/Modal.stories.d.ts +4 -0
- package/lib/stories/NumberLabel.stories.d.ts +10 -0
- package/lib/stories/Pagination.stories.d.ts +4 -0
- package/lib/stories/Radio.stories.d.ts +8 -0
- package/lib/stories/Select.stories.d.ts +7 -0
- package/lib/stories/Selector.stories.d.ts +4 -0
- package/lib/stories/Sidemenu.stories.d.ts +4 -0
- package/lib/stories/Skeleton.stories.d.ts +6 -0
- package/lib/stories/Slider.stories.d.ts +4 -0
- package/lib/stories/Stack.stories.d.ts +9 -0
- package/lib/stories/StackedTags.stories.d.ts +4 -0
- package/lib/stories/Steps.stories.d.ts +4 -0
- package/lib/stories/Switch.stories.d.ts +6 -0
- package/lib/stories/Table.stories.d.ts +4 -0
- package/lib/stories/Tabs.stories.d.ts +4 -0
- package/lib/stories/Tags.stories.d.ts +6 -0
- package/lib/stories/TextEditor.stories.d.ts +8 -0
- package/lib/stories/Textarea.stories.d.ts +5 -0
- package/package.json +1 -1
package/lib/Box/model.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { IMooskinContext, IStyledTheme, IThemeBackgroundColors, IThemeBorderColors, IThemeFontColors } from '../Styled/model';
|
|
2
|
+
import { IMooskinContext, IStyledTheme, IThemeBackgroundColors, IThemeBorderColors, IThemeChartColors, IThemeFontColors } from '../Styled/model';
|
|
3
3
|
export declare type IntensityType = 'xs' | 'sm' | 'base' | 'md' | 'lg' | 'xl' | '2xl';
|
|
4
4
|
export declare type BoxShadowIntensityType = IntensityType | 'inner' | 'outline';
|
|
5
|
-
export declare type NestedThemeType = `${keyof IStyledTheme}.${keyof IThemeFontColors | keyof IThemeBorderColors | keyof IThemeBackgroundColors}`;
|
|
5
|
+
export declare type NestedThemeType = `${keyof IStyledTheme}.${keyof IThemeFontColors | keyof IThemeBorderColors | keyof IThemeBackgroundColors | keyof IThemeChartColors}`;
|
|
6
6
|
export declare const boxComponentProps: string[];
|
|
7
7
|
export declare type IBoxComponentProps = IBaseBoxComponentProps & React.HTMLAttributes<HTMLElement>;
|
|
8
8
|
export declare type IBoxImageComponentProps = IBaseBoxComponentProps & React.ImgHTMLAttributes<HTMLImageElement>;
|
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, pallete?: 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/Button/Button.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
import { IBoxComponentProps } from '../Box/model';
|
|
3
3
|
import { IButtonComponentProps } from './model';
|
|
4
4
|
export declare const Button: React.FC<IButtonComponentProps>;
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const ButtonTwo: React.FC<IButtonComponentProps>;
|
|
6
|
+
export declare const ButtonThree: React.FC<IButtonComponentProps>;
|
|
6
7
|
export declare const ButtonIcon: React.FC<IBoxComponentProps>;
|
package/lib/Button/styles.d.ts
CHANGED
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
import { IButtonComponentProps } from './model';
|
|
3
3
|
export declare const ButtonDefault: import("styled-components").StyledComponent<import("react").FC<import("../index").IBoxComponentProps>, any, IButtonComponentProps, never>;
|
|
4
4
|
export declare const StyledButton: import("styled-components").StyledComponent<import("react").FC<import("../index").IBoxComponentProps>, any, IButtonComponentProps, never>;
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const StyledButtonTwo: import("styled-components").StyledComponent<import("react").FC<import("../index").IBoxComponentProps>, any, IButtonComponentProps, never>;
|
|
6
|
+
export declare const StyledButtonThree: import("styled-components").StyledComponent<import("react").FC<import("../index").IBoxComponentProps>, any, IButtonComponentProps, never>;
|
|
6
7
|
export declare const StyledButtonIcon: import("styled-components").StyledComponent<import("react").FC<import("../index").IBoxComponentProps>, any, {}, 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) => "80%" | "100%" | "20%" | "35%" | "50%" | "65%" | 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/Styled/model.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export interface IThemeFontColors {
|
|
|
3
3
|
primary2: string;
|
|
4
4
|
primary3: string;
|
|
5
5
|
primary4: string;
|
|
6
|
+
primary5: string;
|
|
6
7
|
secondary1: string;
|
|
7
8
|
secondary2: string;
|
|
8
9
|
secondary3: string;
|
|
@@ -13,6 +14,9 @@ export interface IThemeFontColors {
|
|
|
13
14
|
altWhite: string;
|
|
14
15
|
background: string;
|
|
15
16
|
grayAlpha: string;
|
|
17
|
+
grayAlpha100: string;
|
|
18
|
+
grayAlpha400: string;
|
|
19
|
+
gray100: string;
|
|
16
20
|
gray1: string;
|
|
17
21
|
gray2: string;
|
|
18
22
|
medgray1: string;
|
|
@@ -31,6 +35,7 @@ export interface IThemeBackgroundColors {
|
|
|
31
35
|
primary2: string;
|
|
32
36
|
primary3: string;
|
|
33
37
|
primary4: string;
|
|
38
|
+
primary5: string;
|
|
34
39
|
secondary1: string;
|
|
35
40
|
secondary2: string;
|
|
36
41
|
secondary3: string;
|
|
@@ -41,6 +46,9 @@ export interface IThemeBackgroundColors {
|
|
|
41
46
|
altWhite: string;
|
|
42
47
|
background: string;
|
|
43
48
|
grayAlpha: string;
|
|
49
|
+
grayAlpha100: string;
|
|
50
|
+
grayAlpha400: string;
|
|
51
|
+
gray100: string;
|
|
44
52
|
gray1: string;
|
|
45
53
|
gray2: string;
|
|
46
54
|
medgray1: string;
|
|
@@ -59,6 +67,7 @@ export interface IThemeBorderColors {
|
|
|
59
67
|
primary2: string;
|
|
60
68
|
primary3: string;
|
|
61
69
|
primary4: string;
|
|
70
|
+
primary5: string;
|
|
62
71
|
secondary1: string;
|
|
63
72
|
secondary2: string;
|
|
64
73
|
secondary3: string;
|
|
@@ -69,6 +78,9 @@ export interface IThemeBorderColors {
|
|
|
69
78
|
altWhite: string;
|
|
70
79
|
background: string;
|
|
71
80
|
grayAlpha: string;
|
|
81
|
+
grayAlpha100: string;
|
|
82
|
+
grayAlpha400: string;
|
|
83
|
+
gray100: string;
|
|
72
84
|
gray1: string;
|
|
73
85
|
gray2: string;
|
|
74
86
|
medgray1: string;
|
|
@@ -82,10 +94,19 @@ export interface IThemeBorderColors {
|
|
|
82
94
|
checkboxUnselected: string;
|
|
83
95
|
dropdown: string;
|
|
84
96
|
}
|
|
97
|
+
export interface IThemeChartColors {
|
|
98
|
+
primaryblue: string;
|
|
99
|
+
primaryteal: string;
|
|
100
|
+
secondarygreen: string;
|
|
101
|
+
primaryred: string;
|
|
102
|
+
primaryyellow: string;
|
|
103
|
+
medgray1: string;
|
|
104
|
+
}
|
|
85
105
|
export interface IStyledTheme {
|
|
86
106
|
fontColors: IThemeFontColors;
|
|
87
107
|
backgroundColors: IThemeBackgroundColors;
|
|
88
108
|
borderColors: IThemeBorderColors;
|
|
109
|
+
chartColors: IThemeChartColors;
|
|
89
110
|
}
|
|
90
111
|
export interface IMooskinContext {
|
|
91
112
|
palette?: IStyledTheme;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IBoxComponentProps } from '../Box/model';
|
|
3
|
+
import { IActionsDropdownComponentProps, IActionsDropdownItemComponentProps } from './model';
|
|
4
|
+
export declare const ActionsDropdown: React.FC<IActionsDropdownComponentProps>;
|
|
5
|
+
export declare const ActionsDropdownItem: React.FC<IActionsDropdownItemComponentProps>;
|
|
6
|
+
export declare const ActionsDropdownArrow: React.FC<IBoxComponentProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IInputCallbackData } from '../_utils/types/commonTypes';
|
|
3
|
+
import { IBoxComponentProps } from '../Box/model';
|
|
4
|
+
export interface IActionsDropdownComponentProps extends IBoxComponentProps {
|
|
5
|
+
isOpen?: boolean;
|
|
6
|
+
onClickItem?: (e: React.MouseEvent<HTMLElement>, data: IInputCallbackData) => void;
|
|
7
|
+
}
|
|
8
|
+
export interface IActionsDropdownItemComponentProps extends IBoxComponentProps {
|
|
9
|
+
dataLabel?: any;
|
|
10
|
+
value?: any;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IBoxComponentProps } from '../index';
|
|
3
|
+
import { IActionsDropdownComponentProps, IActionsDropdownItemComponentProps } from './model';
|
|
4
|
+
export declare const StyledActionsDropdown: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IActionsDropdownComponentProps, never>;
|
|
5
|
+
export declare const StyledActionsDropdownFadeIn: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IActionsDropdownComponentProps, never>;
|
|
6
|
+
export declare const StyledActionsDropdownFadeOut: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IActionsDropdownComponentProps, never>;
|
|
7
|
+
export declare const StyledActionsDropdownItem: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IActionsDropdownItemComponentProps, never>;
|
|
8
|
+
export declare const StyledActionsDropdownArrow: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IBoxComponentProps, never>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IBaseAlertComponentProps } from './model';
|
|
3
|
+
export declare const Alert: React.FC<IBaseAlertComponentProps>;
|
|
4
|
+
export declare const AlertIcon: React.FC<IBaseAlertComponentProps>;
|
|
5
|
+
export declare const AlertTitle: React.FC<IBaseAlertComponentProps>;
|
|
6
|
+
export declare const AlertDescription: React.FC<IBaseAlertComponentProps>;
|
|
7
|
+
export declare const AlertCloseButton: React.FC<IBaseAlertComponentProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IBaseAlertComponentProps } from './model';
|
|
3
|
+
export declare const StyledAlert: import("styled-components").StyledComponent<import("react").FC<import("../index").IBoxComponentProps>, any, IBaseAlertComponentProps, never>;
|
|
4
|
+
export declare const StyledAlertTitle: import("styled-components").StyledComponent<import("react").FC<import("../index").IBoxComponentProps>, any, IBaseAlertComponentProps, never>;
|
|
5
|
+
export declare const StyledAlertDescription: import("styled-components").StyledComponent<import("react").FC<import("../index").IBoxComponentProps>, any, IBaseAlertComponentProps, never>;
|
|
6
|
+
export declare const StyledAlertIcon: import("styled-components").StyledComponent<import("react").FC<import("../index").IBoxComponentProps>, any, IBaseAlertComponentProps, never>;
|
|
7
|
+
export declare const StyledAlertCloseButton: import("styled-components").StyledComponent<import("react").FC<import("../index").IBoxComponentProps>, any, IBaseAlertComponentProps, never>;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IMooskinContext, IStyledTheme, IThemeBackgroundColors, IThemeBorderColors, IThemeFontColors } from '../Styled/model';
|
|
3
|
+
export declare type IntensityType = 'xs' | 'sm' | 'base' | 'md' | 'lg' | 'xl' | '2xl';
|
|
4
|
+
export declare type BoxShadowIntensityType = IntensityType | 'inner' | 'outline';
|
|
5
|
+
export declare type NestedThemeType = `${keyof IStyledTheme}.${keyof IThemeFontColors | keyof IThemeBorderColors | keyof IThemeBackgroundColors}`;
|
|
6
|
+
export declare const boxComponentProps: string[];
|
|
7
|
+
export declare type IBoxComponentProps = IBaseBoxComponentProps & React.HTMLAttributes<HTMLElement>;
|
|
8
|
+
export declare type IBoxImageComponentProps = IBaseBoxComponentProps & React.ImgHTMLAttributes<HTMLImageElement>;
|
|
9
|
+
export declare type IBoxLabelComponentProps = IBaseBoxComponentProps & React.LabelHTMLAttributes<HTMLLabelElement>;
|
|
10
|
+
export declare type IButtonBoxComponentProps = IBoxComponentProps & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
11
|
+
export declare type IInputBoxComponentProps = IBoxComponentProps & React.InputHTMLAttributes<HTMLInputElement>;
|
|
12
|
+
export declare type IAnchorBoxComponentProps = IBoxComponentProps & React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
13
|
+
export declare type ITextAreaBoxComponentProps = IBoxComponentProps & React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
14
|
+
export interface IBaseBoxComponentProps extends IMooskinContext {
|
|
15
|
+
ref?: any;
|
|
16
|
+
boxAs?: any;
|
|
17
|
+
m?: React.CSSProperties['margin'] | Array<React.CSSProperties['margin']>;
|
|
18
|
+
mt?: React.CSSProperties['marginTop'] | Array<React.CSSProperties['marginTop']>;
|
|
19
|
+
mr?: React.CSSProperties['marginRight'] | Array<React.CSSProperties['marginRight']>;
|
|
20
|
+
mb?: React.CSSProperties['marginBottom'] | Array<React.CSSProperties['marginBottom']>;
|
|
21
|
+
ml?: React.CSSProperties['marginLeft'] | Array<React.CSSProperties['marginLeft']>;
|
|
22
|
+
mx?: number | string | Array<number | string>;
|
|
23
|
+
my?: number | string | Array<number | string>;
|
|
24
|
+
p?: React.CSSProperties['padding'] | Array<React.CSSProperties['padding']>;
|
|
25
|
+
pt?: React.CSSProperties['paddingTop'] | Array<React.CSSProperties['paddingTop']>;
|
|
26
|
+
pr?: React.CSSProperties['paddingRight'] | Array<React.CSSProperties['paddingRight']>;
|
|
27
|
+
pb?: React.CSSProperties['paddingBottom'] | Array<React.CSSProperties['paddingBottom']>;
|
|
28
|
+
pl?: React.CSSProperties['paddingLeft'] | Array<React.CSSProperties['paddingLeft']>;
|
|
29
|
+
px?: number | string | Array<number | string>;
|
|
30
|
+
py?: number | string | Array<number | string>;
|
|
31
|
+
fontColor?: React.CSSProperties['color'] | NestedThemeType | Array<React.CSSProperties['color']>;
|
|
32
|
+
opacity?: React.CSSProperties['opacity'] | Array<React.CSSProperties['opacity']>;
|
|
33
|
+
fontFamily?: React.CSSProperties['fontFamily'] | Array<React.CSSProperties['fontFamily']>;
|
|
34
|
+
fontSize?: React.CSSProperties['fontSize'] | Array<React.CSSProperties['fontSize']>;
|
|
35
|
+
fontWeight?: React.CSSProperties['fontWeight'] | Array<React.CSSProperties['fontWeight']>;
|
|
36
|
+
lineHeight?: React.CSSProperties['lineHeight'] | Array<React.CSSProperties['lineHeight']>;
|
|
37
|
+
textAlign?: React.CSSProperties['textAlign'] | Array<React.CSSProperties['textAlign']>;
|
|
38
|
+
fontStyle?: React.CSSProperties['fontStyle'] | Array<React.CSSProperties['fontStyle']>;
|
|
39
|
+
textTransform?: React.CSSProperties['textTransform'] | Array<React.CSSProperties['textTransform']>;
|
|
40
|
+
textDecoration?: React.CSSProperties['textDecoration'] | Array<React.CSSProperties['textDecoration']>;
|
|
41
|
+
w?: React.CSSProperties['width'] | Array<React.CSSProperties['width']>;
|
|
42
|
+
h?: React.CSSProperties['height'] | Array<React.CSSProperties['height']>;
|
|
43
|
+
maxW?: React.CSSProperties['maxWidth'] | Array<React.CSSProperties['maxWidth']>;
|
|
44
|
+
minW?: React.CSSProperties['minWidth'] | Array<React.CSSProperties['minWidth']>;
|
|
45
|
+
maxH?: React.CSSProperties['maxHeight'] | Array<React.CSSProperties['maxHeight']>;
|
|
46
|
+
minH?: React.CSSProperties['minHeight'] | Array<React.CSSProperties['minHeight']>;
|
|
47
|
+
d?: React.CSSProperties['display'] | Array<React.CSSProperties['display']>;
|
|
48
|
+
overflow?: React.CSSProperties['overflow'] | Array<React.CSSProperties['overflow']>;
|
|
49
|
+
overflowX?: React.CSSProperties['overflowX'] | Array<React.CSSProperties['overflowX']>;
|
|
50
|
+
overflowY?: React.CSSProperties['overflowY'] | Array<React.CSSProperties['overflowY']>;
|
|
51
|
+
align?: React.CSSProperties['alignItems'] | Array<React.CSSProperties['alignItems']>;
|
|
52
|
+
alignContent?: React.CSSProperties['alignContent'] | Array<React.CSSProperties['alignContent']>;
|
|
53
|
+
alignSelf?: React.CSSProperties['alignSelf'] | Array<React.CSSProperties['alignSelf']>;
|
|
54
|
+
justifyItems?: React.CSSProperties['justifyItems'] | Array<React.CSSProperties['justifyItems']>;
|
|
55
|
+
justify?: React.CSSProperties['justifyContent'] | Array<React.CSSProperties['justifyContent']>;
|
|
56
|
+
justifySelf?: React.CSSProperties['justifySelf'] | Array<React.CSSProperties['justifySelf']>;
|
|
57
|
+
flexWrap?: React.CSSProperties['flexWrap'] | Array<React.CSSProperties['flexWrap']>;
|
|
58
|
+
direction?: React.CSSProperties['flexDirection'] | Array<React.CSSProperties['flexDirection']>;
|
|
59
|
+
flex?: React.CSSProperties['flex'] | Array<React.CSSProperties['flex']>;
|
|
60
|
+
flexGrow?: React.CSSProperties['flexGrow'] | Array<React.CSSProperties['flexGrow']>;
|
|
61
|
+
flexShrink?: React.CSSProperties['flexShrink'] | Array<React.CSSProperties['flexShrink']>;
|
|
62
|
+
flexBasis?: React.CSSProperties['flexBasis'] | Array<React.CSSProperties['flexBasis']>;
|
|
63
|
+
order?: React.CSSProperties['order'] | Array<React.CSSProperties['order']>;
|
|
64
|
+
bg?: React.CSSProperties['background'] | Array<React.CSSProperties['background']>;
|
|
65
|
+
bgImage?: React.CSSProperties['backgroundImage'] | Array<React.CSSProperties['backgroundImage']>;
|
|
66
|
+
bgColor?: React.CSSProperties['backgroundColor'] | NestedThemeType | Array<React.CSSProperties['backgroundColor']>;
|
|
67
|
+
bgSize?: React.CSSProperties['backgroundSize'] | Array<React.CSSProperties['backgroundSize']>;
|
|
68
|
+
bgPosition?: React.CSSProperties['backgroundPosition'] | Array<React.CSSProperties['backgroundPosition']>;
|
|
69
|
+
bgRepeat?: React.CSSProperties['backgroundRepeat'] | Array<React.CSSProperties['backgroundRepeat']>;
|
|
70
|
+
border?: React.CSSProperties['border'] | Array<React.CSSProperties['border']>;
|
|
71
|
+
borderWidth?: React.CSSProperties['borderWidth'] | Array<React.CSSProperties['borderWidth']>;
|
|
72
|
+
borderStyle?: React.CSSProperties['borderStyle'] | Array<React.CSSProperties['borderStyle']>;
|
|
73
|
+
borderColor?: React.CSSProperties['borderColor'] | NestedThemeType | Array<React.CSSProperties['borderColor']>;
|
|
74
|
+
borderTop?: React.CSSProperties['borderTop'] | Array<React.CSSProperties['borderTop']>;
|
|
75
|
+
borderTopWidth?: React.CSSProperties['borderTopWidth'] | Array<React.CSSProperties['borderTopWidth']>;
|
|
76
|
+
borderTopStyle?: React.CSSProperties['borderTopStyle'] | Array<React.CSSProperties['borderTopStyle']>;
|
|
77
|
+
borderTopColor?: React.CSSProperties['borderTopColor'] | Array<React.CSSProperties['borderTopColor']>;
|
|
78
|
+
borderRight?: React.CSSProperties['borderRight'] | Array<React.CSSProperties['borderRight']>;
|
|
79
|
+
borderRightWidth?: React.CSSProperties['borderRightWidth'] | Array<React.CSSProperties['borderRightWidth']>;
|
|
80
|
+
borderRightStyle?: React.CSSProperties['borderRightStyle'] | Array<React.CSSProperties['borderRightStyle']>;
|
|
81
|
+
borderRightColor?: React.CSSProperties['borderRightColor'] | Array<React.CSSProperties['borderRightColor']>;
|
|
82
|
+
borderBottom?: React.CSSProperties['borderBottom'] | Array<React.CSSProperties['borderBottom']>;
|
|
83
|
+
borderBottomWidth?: React.CSSProperties['borderBottomWidth'] | Array<React.CSSProperties['borderBottomWidth']>;
|
|
84
|
+
borderBottomStyle?: React.CSSProperties['borderBottomStyle'] | Array<React.CSSProperties['borderBottomStyle']>;
|
|
85
|
+
borderBottomColor?: React.CSSProperties['borderBottomColor'] | Array<React.CSSProperties['borderBottomColor']>;
|
|
86
|
+
borderLeft?: React.CSSProperties['borderLeft'] | Array<React.CSSProperties['borderLeft']>;
|
|
87
|
+
borderLeftWidth?: React.CSSProperties['borderLeftWidth'] | Array<React.CSSProperties['borderLeftWidth']>;
|
|
88
|
+
borderLeftStyle?: React.CSSProperties['borderLeftStyle'] | Array<React.CSSProperties['borderLeftStyle']>;
|
|
89
|
+
borderLeftColor?: React.CSSProperties['borderLeftColor'] | Array<React.CSSProperties['borderLeftColor']>;
|
|
90
|
+
borderRadius?: React.CSSProperties['borderRadius'] | Array<React.CSSProperties['borderRadius']>;
|
|
91
|
+
borderTopLeftRadius?: React.CSSProperties['borderTopLeftRadius'] | Array<React.CSSProperties['borderTopLeftRadius']>;
|
|
92
|
+
borderTopRightRadius?: React.CSSProperties['borderTopRightRadius'] | Array<React.CSSProperties['borderTopRightRadius']>;
|
|
93
|
+
borderBottomRightRadius?: React.CSSProperties['borderBottomRightRadius'] | Array<React.CSSProperties['borderBottomRightRadius']>;
|
|
94
|
+
borderBottomLeftRadius?: React.CSSProperties['borderBottomLeftRadius'] | Array<React.CSSProperties['borderBottomLeftRadius']>;
|
|
95
|
+
position?: React.CSSProperties['position'] | Array<React.CSSProperties['position']>;
|
|
96
|
+
zIndex?: React.CSSProperties['zIndex'] | Array<React.CSSProperties['zIndex']>;
|
|
97
|
+
top?: React.CSSProperties['top'] | Array<React.CSSProperties['top']>;
|
|
98
|
+
right?: React.CSSProperties['right'] | Array<React.CSSProperties['right']>;
|
|
99
|
+
bottom?: React.CSSProperties['bottom'] | Array<React.CSSProperties['bottom']>;
|
|
100
|
+
left?: React.CSSProperties['left'] | Array<React.CSSProperties['left']>;
|
|
101
|
+
boxShadow?: React.CSSProperties['boxShadow'] | BoxShadowIntensityType;
|
|
102
|
+
animation?: React.CSSProperties['animation'] | Array<React.CSSProperties['animation']>;
|
|
103
|
+
visibility?: React.CSSProperties['visibility'] | Array<React.CSSProperties['visibility']>;
|
|
104
|
+
cursor?: React.CSSProperties['cursor'] | Array<React.CSSProperties['cursor']>;
|
|
105
|
+
round?: IntensityType;
|
|
106
|
+
whiteSpace?: React.CSSProperties['whiteSpace'] | Array<React.CSSProperties['whiteSpace']>;
|
|
107
|
+
wordBreak?: React.CSSProperties['wordBreak'] | Array<React.CSSProperties['wordBreak']>;
|
|
108
|
+
gridTemplateColumns?: React.CSSProperties['gridTemplateColumns'] | Array<React.CSSProperties['gridTemplateColumns']>;
|
|
109
|
+
_hover?: string;
|
|
110
|
+
all?: React.CSSProperties['all'] | Array<React.CSSProperties['all']>;
|
|
111
|
+
transition?: React.CSSProperties['transition'] | Array<React.CSSProperties['transition']>;
|
|
112
|
+
transform?: React.CSSProperties['transform'] | Array<React.CSSProperties['transform']>;
|
|
113
|
+
textOverflow?: React.CSSProperties['textOverflow'] | Array<React.CSSProperties['textOverflow']>;
|
|
114
|
+
outline?: React.CSSProperties['outline'] | Array<React.CSSProperties['outline']>;
|
|
115
|
+
outlineWidth?: React.CSSProperties['outlineWidth'] | Array<React.CSSProperties['outlineWidth']>;
|
|
116
|
+
outlineStyle?: React.CSSProperties['outlineStyle'] | Array<React.CSSProperties['outlineStyle']>;
|
|
117
|
+
outlineColor?: React.CSSProperties['outlineColor'] | NestedThemeType | Array<React.CSSProperties['outlineColor']>;
|
|
118
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IStyledTheme } from '../Styled/model';
|
|
2
|
+
import { BoxShadowIntensityType, IBoxComponentProps } from './model';
|
|
3
|
+
export declare const getNumberOrStringValue: (value?: string | number | undefined) => string;
|
|
4
|
+
export declare const getNestedValue: (value?: string | number | undefined, pallete?: IStyledTheme | undefined) => any;
|
|
5
|
+
export declare const getRoundness: (round?: "base" | "xs" | "sm" | "md" | "lg" | "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
|
+
export declare const getBoxShadow: (boxShadow?: React.CSSProperties['boxShadow'] | BoxShadowIntensityType) => string | undefined;
|
|
7
|
+
export declare const StyledBox: import("styled-components").StyledComponent<"div", any, IBoxComponentProps, never>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IBoxComponentProps } from '../Box/model';
|
|
3
|
+
import { IButtonComponentProps } from './model';
|
|
4
|
+
export declare const Button: React.FC<IButtonComponentProps>;
|
|
5
|
+
export declare const ButtonSecondary: React.FC<IButtonComponentProps>;
|
|
6
|
+
export declare const ButtonIcon: React.FC<IBoxComponentProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IButtonComponentProps } from './model';
|
|
3
|
+
export declare const ButtonDefault: import("styled-components").StyledComponent<import("react").FC<import("../index").IBoxComponentProps>, any, IButtonComponentProps, never>;
|
|
4
|
+
export declare const StyledButton: import("styled-components").StyledComponent<import("react").FC<import("../index").IBoxComponentProps>, any, IButtonComponentProps, never>;
|
|
5
|
+
export declare const StyledButtonSecondary: import("styled-components").StyledComponent<import("react").FC<import("../index").IBoxComponentProps>, any, IButtonComponentProps, never>;
|
|
6
|
+
export declare const StyledButtonIcon: import("styled-components").StyledComponent<import("react").FC<import("../index").IBoxComponentProps>, any, {}, never>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import 'slick-carousel/slick/slick-theme.css';
|
|
3
|
+
import 'slick-carousel/slick/slick.css';
|
|
4
|
+
import { IBoxComponentProps } from '../Box/model';
|
|
5
|
+
import { ICarouselComponentProps } from './model';
|
|
6
|
+
export declare const Carousel: React.FC<ICarouselComponentProps>;
|
|
7
|
+
export declare const CustomDot: React.FC<IBoxComponentProps>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ICarouselComponentProps {
|
|
3
|
+
accessibility?: boolean;
|
|
4
|
+
adaptiveHeight?: boolean;
|
|
5
|
+
afterChange?: (index: number) => void;
|
|
6
|
+
appendDots?: (dots: any) => any;
|
|
7
|
+
arrows?: boolean;
|
|
8
|
+
autoplaySpeed?: number;
|
|
9
|
+
autoplay?: boolean;
|
|
10
|
+
beforeChange?: (oldIndex: number, newIndex: number) => void;
|
|
11
|
+
centerMode?: boolean;
|
|
12
|
+
centerPadding?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
dotsClass?: string;
|
|
15
|
+
dots?: boolean;
|
|
16
|
+
draggable?: boolean;
|
|
17
|
+
easing?: string;
|
|
18
|
+
fade?: boolean;
|
|
19
|
+
focusOnSelect?: boolean;
|
|
20
|
+
infinite?: boolean;
|
|
21
|
+
initialSlide?: number;
|
|
22
|
+
onInit?: () => void;
|
|
23
|
+
onReInit?: () => void;
|
|
24
|
+
pauseOnDotsHover?: boolean;
|
|
25
|
+
pauseOnFocus?: boolean;
|
|
26
|
+
pauseOnHover?: boolean;
|
|
27
|
+
slide?: string;
|
|
28
|
+
slidesToScroll?: number;
|
|
29
|
+
slidesToShow?: number;
|
|
30
|
+
speed?: number;
|
|
31
|
+
swipe?: boolean;
|
|
32
|
+
customDot?: React.ReactElement;
|
|
33
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IBoxComponentProps } from '../index';
|
|
3
|
+
export declare const StyledCarousel: import("styled-components").StyledComponent<any, any, object & import("../index").IBaseBoxComponentProps & import("react").HTMLAttributes<HTMLElement>, string | number | symbol>;
|
|
4
|
+
export declare const StyledDot: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IBoxComponentProps, never>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IBoxComponentProps } from '../Box/model';
|
|
3
|
+
import { ILabelComponentProps } from '../Label/model';
|
|
4
|
+
import { ICheckboxComponentProps, ICheckboxIconComponentProps } from './model';
|
|
5
|
+
export declare const Checkbox: React.FC<ICheckboxComponentProps>;
|
|
6
|
+
export declare const CheckboxIcon: React.FC<ICheckboxIconComponentProps>;
|
|
7
|
+
export declare const CheckboxLabel: React.FC<ILabelComponentProps>;
|
|
8
|
+
export declare const CheckboxDescription: React.FC<IBoxComponentProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IInputCallbackData } from '../_utils/types/commonTypes';
|
|
3
|
+
import { IBoxComponentProps } from '../Box/model';
|
|
4
|
+
export interface ICheckboxComponentProps extends IBoxComponentProps {
|
|
5
|
+
onClickCheckbox?: (e: React.MouseEvent<HTMLElement>, data: IInputCallbackData) => void;
|
|
6
|
+
dataLabel?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface ICheckboxIconComponentProps extends IBoxComponentProps {
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
checked?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ILabelComponentProps } from '../Label/model';
|
|
3
|
+
import { ICheckboxIconComponentProps } from './model';
|
|
4
|
+
export declare const StyledCheckbox: import("styled-components").StyledComponent<import("react").FC<import("../index").IBoxComponentProps>, any, {}, never>;
|
|
5
|
+
export declare const StyledCheckboxIcon: import("styled-components").StyledComponent<import("react").FC<import("../index").IBoxComponentProps>, any, ICheckboxIconComponentProps, never>;
|
|
6
|
+
export declare const StyledCheckboxLabel: import("styled-components").StyledComponent<import("react").FC<ILabelComponentProps>, any, ILabelComponentProps, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DatePickerProps, KeyboardDatePickerProps } from '@material-ui/pickers';
|
|
2
|
+
import { IInputComponentProps } from '../Input/model';
|
|
3
|
+
export declare type PickerType = 'date' | 'date-keyboard';
|
|
4
|
+
export interface IDatePickerCommonProps {
|
|
5
|
+
inputComponentProps?: IInputComponentProps;
|
|
6
|
+
pickerType?: PickerType;
|
|
7
|
+
}
|
|
8
|
+
export interface IDatePickerComponentProps extends IDatePickerCommonProps, DatePickerProps {
|
|
9
|
+
}
|
|
10
|
+
export interface IDatePickerKeyboardComponentProps extends IDatePickerCommonProps, KeyboardDatePickerProps {
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DateRangePickerProps } from 'react-date-range';
|
|
2
|
+
import { IBoxComponentProps } from '../Box/model';
|
|
3
|
+
import { IInputComponentProps } from '../Input/model';
|
|
4
|
+
export interface IDateRangePickerComponentProps extends DateRangePickerProps {
|
|
5
|
+
inputProps?: IInputComponentProps;
|
|
6
|
+
pickerWrapperProps?: IBoxComponentProps;
|
|
7
|
+
wrapperProps?: IBoxComponentProps;
|
|
8
|
+
}
|
|
9
|
+
export interface IRangeSelection {
|
|
10
|
+
endDate: Date;
|
|
11
|
+
key: string;
|
|
12
|
+
startDate: Date;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DateTimePickerProps, KeyboardDateTimePickerProps } from '@material-ui/pickers';
|
|
2
|
+
import { IInputComponentProps } from '../Input/model';
|
|
3
|
+
export declare type PickerType = 'date-time' | 'date-time-keyboard';
|
|
4
|
+
export interface IDateTimePickerCommonProps {
|
|
5
|
+
inputComponentProps?: IInputComponentProps;
|
|
6
|
+
pickerType?: PickerType;
|
|
7
|
+
}
|
|
8
|
+
export interface IDateTimePickerComponentProps extends IDateTimePickerCommonProps, DateTimePickerProps {
|
|
9
|
+
}
|
|
10
|
+
export interface IDateTimePickerKeyboardComponentProps extends IDateTimePickerCommonProps, KeyboardDateTimePickerProps {
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IBoxComponentProps } from '../Box/model';
|
|
3
|
+
import { IDrawerComponentProps, IDrawerContentComponentProps, IDrawerOverlayComponentProps } from './model';
|
|
4
|
+
export declare const Drawer: React.FC<IDrawerComponentProps>;
|
|
5
|
+
export declare const DrawerContent: React.FC<IDrawerContentComponentProps>;
|
|
6
|
+
export declare const DrawerHeader: React.FC<IBoxComponentProps>;
|
|
7
|
+
export declare const DrawerBody: React.FC<IBoxComponentProps>;
|
|
8
|
+
export declare const DrawerFooter: React.FC<IBoxComponentProps>;
|
|
9
|
+
export declare const DrawerCloseButton: React.FC<IBoxComponentProps>;
|
|
10
|
+
export declare const DrawerOverlay: React.FC<IDrawerOverlayComponentProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IBoxComponentProps } from '../Box/model';
|
|
3
|
+
export declare type IContentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
4
|
+
export interface IDrawerComponentProps extends IBoxComponentProps {
|
|
5
|
+
isOpen?: boolean;
|
|
6
|
+
placement?: 'bottom' | 'left' | 'right' | 'top';
|
|
7
|
+
size?: IContentSize;
|
|
8
|
+
closeOnEsc?: boolean;
|
|
9
|
+
closeOnOverlayClick?: boolean;
|
|
10
|
+
onClose?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
11
|
+
onOpen?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export interface IDrawerContentComponentProps extends IBoxComponentProps {
|
|
14
|
+
isOpen?: boolean;
|
|
15
|
+
size?: IContentSize;
|
|
16
|
+
placement?: 'bottom' | 'left' | 'right' | 'top';
|
|
17
|
+
}
|
|
18
|
+
export interface IDrawerOverlayComponentProps extends IBoxComponentProps {
|
|
19
|
+
isOpen?: boolean;
|
|
20
|
+
onOpen?: () => void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IBoxComponentProps } from '../Box/model';
|
|
3
|
+
import { IDrawerComponentProps, IDrawerContentComponentProps, IDrawerOverlayComponentProps } from './model';
|
|
4
|
+
export declare const getContentSize: (size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined) => "100%" | "80%" | "20%" | "35%" | "50%" | "65%" | undefined;
|
|
5
|
+
export declare const StyledDrawer: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerComponentProps, never>;
|
|
6
|
+
export declare const StyledDrawerContent: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerContentComponentProps, never>;
|
|
7
|
+
export declare const StyledDrawerContentRight: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerContentComponentProps, never>;
|
|
8
|
+
export declare const StyledDrawerContentRightIn: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerContentComponentProps, never>;
|
|
9
|
+
export declare const StyledDrawerContentRightOut: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerContentComponentProps, never>;
|
|
10
|
+
export declare const StyledDrawerContentLeft: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerContentComponentProps, never>;
|
|
11
|
+
export declare const StyledDrawerContentLeftIn: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerContentComponentProps, never>;
|
|
12
|
+
export declare const StyledDrawerContentLeftOut: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerContentComponentProps, never>;
|
|
13
|
+
export declare const StyledDrawerContentTop: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerContentComponentProps, never>;
|
|
14
|
+
export declare const StyledDrawerContentTopIn: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerContentComponentProps, never>;
|
|
15
|
+
export declare const StyledDrawerContentTopOut: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerContentComponentProps, never>;
|
|
16
|
+
export declare const StyledDrawerContentBottom: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerContentComponentProps, never>;
|
|
17
|
+
export declare const StyledDrawerContentBottomIn: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerContentComponentProps, never>;
|
|
18
|
+
export declare const StyledDrawerContentBottomOut: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerContentComponentProps, never>;
|
|
19
|
+
export declare const StyledDrawerHeader: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IBoxComponentProps, never>;
|
|
20
|
+
export declare const StyledDrawerBody: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IBoxComponentProps, never>;
|
|
21
|
+
export declare const StyledDrawerFooter: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IBoxComponentProps, never>;
|
|
22
|
+
export declare const StyledDrawerCloseButton: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IBoxComponentProps, never>;
|
|
23
|
+
export declare const StyledDrawerOverlay: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerOverlayComponentProps, never>;
|
|
24
|
+
export declare const StyledDrawerOverlayFadeIn: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerOverlayComponentProps, never>;
|
|
25
|
+
export declare const StyledDrawerOverlayFadeOut: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerOverlayComponentProps, never>;
|