freemium-ui 1.0.114
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/0001-chore-Adding-popper-support-to-dropdown.patch +304 -0
- package/README.md +70 -0
- package/lib/index.cjs.js +19399 -0
- package/lib/index.esm.js +19335 -0
- package/lib/types/components/Alert/Alert.d.ts +17 -0
- package/lib/types/components/Alert/Alert.stories.d.ts +1 -0
- package/lib/types/components/Alert/index.d.ts +1 -0
- package/lib/types/components/BoxedRadio/BoxedRadio.stories.d.ts +1 -0
- package/lib/types/components/BoxedRadio/boxedRadio.d.ts +8 -0
- package/lib/types/components/BoxedRadio/boxedRadioContext.d.ts +7 -0
- package/lib/types/components/BoxedRadio/boxedRadioGroup.d.ts +2 -0
- package/lib/types/components/BoxedRadio/index.d.ts +2 -0
- package/lib/types/components/Button/Buttons.d.ts +132 -0
- package/lib/types/components/Button/Buttons.stories.d.ts +1 -0
- package/lib/types/components/Button/index.d.ts +1 -0
- package/lib/types/components/ButtonDropdown/ButtonDropdown.d.ts +19 -0
- package/lib/types/components/ButtonDropdown/ButtonDropdown.stories.d.ts +1 -0
- package/lib/types/components/ButtonDropdown/index.d.ts +1 -0
- package/lib/types/components/Checkbox/Checkbox.d.ts +17 -0
- package/lib/types/components/Checkbox/Checkbox.stories.d.ts +1 -0
- package/lib/types/components/Checkbox/index.d.ts +1 -0
- package/lib/types/components/Confirmation/Confirmation.d.ts +30 -0
- package/lib/types/components/Confirmation/Confirmation.stories.d.ts +1 -0
- package/lib/types/components/Confirmation/index.d.ts +2 -0
- package/lib/types/components/Confirmation/useConfirmation.d.ts +28 -0
- package/lib/types/components/CssBaseLine/index.d.ts +1 -0
- package/lib/types/components/DatePicker/DatePicker.d.ts +95 -0
- package/lib/types/components/DatePicker/DatePicker.stories.d.ts +1 -0
- package/lib/types/components/DatePicker/index.d.ts +1 -0
- package/lib/types/components/DateRangePicker/DateRangePicker.d.ts +106 -0
- package/lib/types/components/DateRangePicker/DateRangePicker.stories.d.ts +1 -0
- package/lib/types/components/DateRangePicker/index.d.ts +1 -0
- package/lib/types/components/Drawer/Drawer.d.ts +77 -0
- package/lib/types/components/Drawer/Drawer.stories.d.ts +1 -0
- package/lib/types/components/Drawer/index.d.ts +2 -0
- package/lib/types/components/Drawer/styles.d.ts +2 -0
- package/lib/types/components/Dropdown/Dropdown.stories.d.ts +1 -0
- package/lib/types/components/Dropdown/DropdownButton.d.ts +14 -0
- package/lib/types/components/Dropdown/DropdownInput.d.ts +4 -0
- package/lib/types/components/Dropdown/DropdownMenu.d.ts +4 -0
- package/lib/types/components/Dropdown/index.d.ts +199 -0
- package/lib/types/components/Icons/Icons.d.ts +101 -0
- package/lib/types/components/Icons/index.d.ts +1 -0
- package/lib/types/components/Input/Input.d.ts +48 -0
- package/lib/types/components/Input/Input.stories.d.ts +1 -0
- package/lib/types/components/Input/index.d.ts +1 -0
- package/lib/types/components/Loader/index.d.ts +1 -0
- package/lib/types/components/Loader/loader.d.ts +8 -0
- package/lib/types/components/Loader/loader.stories.d.ts +1 -0
- package/lib/types/components/Menu/Menu.d.ts +108 -0
- package/lib/types/components/Menu/Menu.stories.d.ts +1 -0
- package/lib/types/components/Menu/index.d.ts +1 -0
- package/lib/types/components/Modal/Modal.d.ts +59 -0
- package/lib/types/components/Modal/Modal.stories.d.ts +1 -0
- package/lib/types/components/Modal/index.d.ts +3 -0
- package/lib/types/components/Modal/styles.d.ts +11 -0
- package/lib/types/components/Modal/use-modal.d.ts +28 -0
- package/lib/types/components/MultiSelectDropdown/MultiSelectDropdown.d.ts +154 -0
- package/lib/types/components/MultiSelectDropdown/MultiSelectDropdown.stories.d.ts +1 -0
- package/lib/types/components/MultiSelectDropdown/index.d.ts +1 -0
- package/lib/types/components/Popover/Popover.d.ts +91 -0
- package/lib/types/components/Popover/Popover.stories.d.ts +1 -0
- package/lib/types/components/Popover/index.d.ts +1 -0
- package/lib/types/components/Radio/Radio.d.ts +13 -0
- package/lib/types/components/Radio/Radio.stories.d.ts +1 -0
- package/lib/types/components/Radio/index.d.ts +1 -0
- package/lib/types/components/Table/Table.d.ts +155 -0
- package/lib/types/components/Table/Table.stories.d.ts +1 -0
- package/lib/types/components/Table/index.d.ts +1 -0
- package/lib/types/components/Tabs/Tabs.d.ts +88 -0
- package/lib/types/components/Tabs/Tabs.stories.d.ts +1 -0
- package/lib/types/components/Tabs/index.d.ts +1 -0
- package/lib/types/components/Tag/Tag.d.ts +25 -0
- package/lib/types/components/Tag/Tag.stories.d.ts +1 -0
- package/lib/types/components/Tag/index.d.ts +1 -0
- package/lib/types/components/ThemeProvider/index.d.ts +12 -0
- package/lib/types/components/Toast/Toast.d.ts +14 -0
- package/lib/types/components/Toast/index.d.ts +3 -0
- package/lib/types/components/Toggle/Toggle.d.ts +15 -0
- package/lib/types/components/Toggle/Toggle.stories.d.ts +1 -0
- package/lib/types/components/Toggle/index.d.ts +1 -0
- package/lib/types/components/Tooltip/Tooltip.d.ts +15 -0
- package/lib/types/components/Tooltip/index.d.ts +1 -0
- package/lib/types/components/Tooltip/tooltip-old.d.ts +14 -0
- package/lib/types/components/Tooltip/tooltip.stories.d.ts +1 -0
- package/lib/types/components/Transition/Transition.d.ts +122 -0
- package/lib/types/components/Transition/fade.d.ts +105 -0
- package/lib/types/components/Transition/index.d.ts +4 -0
- package/lib/types/components/Transition/slide-fade.d.ts +121 -0
- package/lib/types/components/Transition/slide.d.ts +119 -0
- package/lib/types/components/UiProvider/UiProvider.d.ts +2 -0
- package/lib/types/components/UiProvider/index.d.ts +1 -0
- package/lib/types/components/use-toasts/index.d.ts +1 -0
- package/lib/types/components/use-toasts/toast-container.d.ts +8 -0
- package/lib/types/components/use-toasts/toast-item.d.ts +15 -0
- package/lib/types/components/use-toasts/use-toast.d.ts +15 -0
- package/lib/types/components/use-toasts/use-toasts.stories.d.ts +1 -0
- package/lib/types/index.d.ts +28 -0
- package/lib/types/theme/default/colors.d.ts +3 -0
- package/lib/types/theme/default/index.d.ts +7 -0
- package/lib/types/theme/default/palette.d.ts +3 -0
- package/lib/types/theme/default/typography.d.ts +3 -0
- package/lib/types/theme/freshstatus/colors.d.ts +3 -0
- package/lib/types/theme/freshstatus/index.d.ts +7 -0
- package/lib/types/theme/freshstatus/palette.d.ts +3 -0
- package/lib/types/theme/freshstatus/typography.d.ts +3 -0
- package/lib/types/theme/index.d.ts +352 -0
- package/lib/types/theme/shared.d.ts +2 -0
- package/lib/types/utils/date.d.ts +7 -0
- package/lib/types/utils/index.d.ts +1 -0
- package/lib/types/utils/use-current-state.d.ts +4 -0
- package/lib/types/utils/use-portal.d.ts +2 -0
- package/lib/types/utils/use-ssr.d.ts +6 -0
- package/lib/types/utils/use-ui-context.d.ts +11 -0
- package/lib/types/utils/with-defaults.d.ts +3 -0
- package/package.json +107 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare type LevelType = 'warning' | 'success' | 'error' | 'info';
|
|
3
|
+
interface AlertProps {
|
|
4
|
+
level?: LevelType;
|
|
5
|
+
canDismiss: boolean;
|
|
6
|
+
timeout?: number;
|
|
7
|
+
overideClassName?: string;
|
|
8
|
+
children?: any;
|
|
9
|
+
onClose: () => any;
|
|
10
|
+
onDisappear?: () => any;
|
|
11
|
+
}
|
|
12
|
+
export declare const Alert: React.ComponentType<Partial<{
|
|
13
|
+
canDismiss: boolean;
|
|
14
|
+
onClose: () => null;
|
|
15
|
+
level: string;
|
|
16
|
+
}> & Pick<AlertProps, "children" | "timeout" | "overideClassName" | "onDisappear">>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Alert';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const BUTTON_SIZE_VARIANTS: {
|
|
3
|
+
LARGE: string;
|
|
4
|
+
MINI: string;
|
|
5
|
+
NORMAL: string;
|
|
6
|
+
};
|
|
7
|
+
export declare type ButtonSizeKey = 'large' | 'mini' | 'normal' | undefined;
|
|
8
|
+
export declare type buttonHTMLType = 'button' | 'reset' | 'submit' | undefined;
|
|
9
|
+
export declare type buttonType = 'primary' | 'secondary' | 'danger' | 'link';
|
|
10
|
+
export declare type ButtonProps = {
|
|
11
|
+
type?: buttonType;
|
|
12
|
+
htmlType?: buttonHTMLType;
|
|
13
|
+
size?: ButtonSizeKey;
|
|
14
|
+
inline?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
large?: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
ref?: any;
|
|
19
|
+
onClick?: any;
|
|
20
|
+
overrideStyleClassName?: string;
|
|
21
|
+
loading?: boolean;
|
|
22
|
+
children: any;
|
|
23
|
+
};
|
|
24
|
+
export declare const Button: {
|
|
25
|
+
(props: ButtonProps): JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
__docgenInfo: {
|
|
28
|
+
description: string;
|
|
29
|
+
displayName: string;
|
|
30
|
+
props: {
|
|
31
|
+
type: {
|
|
32
|
+
defaultValue: null;
|
|
33
|
+
description: string;
|
|
34
|
+
name: string;
|
|
35
|
+
required: boolean;
|
|
36
|
+
type: {
|
|
37
|
+
name: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
htmlType: {
|
|
41
|
+
defaultValue: null;
|
|
42
|
+
description: string;
|
|
43
|
+
name: string;
|
|
44
|
+
required: boolean;
|
|
45
|
+
type: {
|
|
46
|
+
name: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
size: {
|
|
50
|
+
defaultValue: null;
|
|
51
|
+
description: string;
|
|
52
|
+
name: string;
|
|
53
|
+
required: boolean;
|
|
54
|
+
type: {
|
|
55
|
+
name: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
inline: {
|
|
59
|
+
defaultValue: null;
|
|
60
|
+
description: string;
|
|
61
|
+
name: string;
|
|
62
|
+
required: boolean;
|
|
63
|
+
type: {
|
|
64
|
+
name: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
disabled: {
|
|
68
|
+
defaultValue: null;
|
|
69
|
+
description: string;
|
|
70
|
+
name: string;
|
|
71
|
+
required: boolean;
|
|
72
|
+
type: {
|
|
73
|
+
name: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
large: {
|
|
77
|
+
defaultValue: null;
|
|
78
|
+
description: string;
|
|
79
|
+
name: string;
|
|
80
|
+
required: boolean;
|
|
81
|
+
type: {
|
|
82
|
+
name: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
className: {
|
|
86
|
+
defaultValue: null;
|
|
87
|
+
description: string;
|
|
88
|
+
name: string;
|
|
89
|
+
required: boolean;
|
|
90
|
+
type: {
|
|
91
|
+
name: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
ref: {
|
|
95
|
+
defaultValue: null;
|
|
96
|
+
description: string;
|
|
97
|
+
name: string;
|
|
98
|
+
required: boolean;
|
|
99
|
+
type: {
|
|
100
|
+
name: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
onClick: {
|
|
104
|
+
defaultValue: null;
|
|
105
|
+
description: string;
|
|
106
|
+
name: string;
|
|
107
|
+
required: boolean;
|
|
108
|
+
type: {
|
|
109
|
+
name: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
overrideStyleClassName: {
|
|
113
|
+
defaultValue: null;
|
|
114
|
+
description: string;
|
|
115
|
+
name: string;
|
|
116
|
+
required: boolean;
|
|
117
|
+
type: {
|
|
118
|
+
name: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
loading: {
|
|
122
|
+
defaultValue: null;
|
|
123
|
+
description: string;
|
|
124
|
+
name: string;
|
|
125
|
+
required: boolean;
|
|
126
|
+
type: {
|
|
127
|
+
name: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Buttons';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import FreemiumUIThemes from '../../theme';
|
|
3
|
+
import { buttonHTMLType, buttonType, ButtonSizeKey } from '../Button';
|
|
4
|
+
declare type ButtonDropdownProps = {
|
|
5
|
+
theme?: FreemiumUIThemes;
|
|
6
|
+
onClick?: (item: unknown, event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
7
|
+
items?: Array<any>;
|
|
8
|
+
id: string;
|
|
9
|
+
type?: buttonType;
|
|
10
|
+
htmlType?: buttonHTMLType;
|
|
11
|
+
size?: ButtonSizeKey;
|
|
12
|
+
inline?: boolean;
|
|
13
|
+
idAccessor?: string;
|
|
14
|
+
defaultSelectedItem: any;
|
|
15
|
+
nameAccessor?: string;
|
|
16
|
+
position?: 'top' | 'bottom';
|
|
17
|
+
};
|
|
18
|
+
export declare const ButtonDropdown: React.ForwardRefExoticComponent<ButtonDropdownProps & React.RefAttributes<unknown>>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ButtonDropdown';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface CheckboxProps {
|
|
3
|
+
checked: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
readOnly?: boolean;
|
|
6
|
+
sizeVariant?: 'sm' | 'md';
|
|
7
|
+
children: string;
|
|
8
|
+
name: string;
|
|
9
|
+
value?: string | number;
|
|
10
|
+
onChange: (event: React.ChangeEvent<HTMLInputElement> | React.KeyboardEvent<HTMLInputElement>, checked: boolean) => void;
|
|
11
|
+
id?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const Checkbox: React.ComponentType<Partial<{
|
|
14
|
+
checked: boolean;
|
|
15
|
+
sizeVariant: string;
|
|
16
|
+
}> & Pick<CheckboxProps & React.RefAttributes<HTMLInputElement>, "ref" | "id" | "name" | "children" | "onChange" | "key" | "disabled" | "value" | "readOnly">>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Checkbox';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import FreemiumUIThemes from '../../theme';
|
|
3
|
+
declare type ConfirmationProps = {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onDismiss: () => void;
|
|
6
|
+
theme?: FreemiumUIThemes;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
title?: string;
|
|
9
|
+
bodyStyles?: any;
|
|
10
|
+
contentStyles?: any;
|
|
11
|
+
footerStyles?: any;
|
|
12
|
+
confirmButtonText?: string;
|
|
13
|
+
cancelButtonText?: string;
|
|
14
|
+
onConfirm?: () => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const Confirmation: React.ForwardRefExoticComponent<ConfirmationProps & React.RefAttributes<unknown>>;
|
|
17
|
+
export declare const ConfirmationContent: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<{
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
20
|
+
export declare const ConfirmationOverlay: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<{
|
|
21
|
+
allowPinchZoom?: boolean | undefined;
|
|
22
|
+
isOpen?: boolean | undefined;
|
|
23
|
+
onDismiss?: ((event?: React.SyntheticEvent<Element, Event> | undefined) => void) | undefined;
|
|
24
|
+
children?: React.ReactNode;
|
|
25
|
+
initialFocusRef?: React.RefObject<any> | undefined;
|
|
26
|
+
unstable_lockFocusAcrossFrames?: boolean | undefined;
|
|
27
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
28
|
+
export declare const ConfirmationBody: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
29
|
+
export declare const ConfirmationFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Dispatch, MutableRefObject, SetStateAction } from 'react';
|
|
2
|
+
export declare const useConfirmation: {
|
|
3
|
+
(initialVisible?: boolean): {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
setVisible: Dispatch<SetStateAction<boolean>>;
|
|
6
|
+
currentRef: MutableRefObject<boolean>;
|
|
7
|
+
bindings: {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
onDismiss: () => void;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
displayName: string;
|
|
13
|
+
__docgenInfo: {
|
|
14
|
+
description: string;
|
|
15
|
+
displayName: string;
|
|
16
|
+
props: {
|
|
17
|
+
valueOf: {
|
|
18
|
+
defaultValue: null;
|
|
19
|
+
description: string;
|
|
20
|
+
name: string;
|
|
21
|
+
required: boolean;
|
|
22
|
+
type: {
|
|
23
|
+
name: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CssBaseLine: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import 'react-dates/initialize';
|
|
3
|
+
declare type DateRangePickerProps = {
|
|
4
|
+
anchorDirection?: 'right' | 'left';
|
|
5
|
+
initialDate?: number;
|
|
6
|
+
onDateChange: (arg0: any) => void;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
minMonths?: number;
|
|
9
|
+
autoFocus?: any;
|
|
10
|
+
autoFocusEndDate?: boolean;
|
|
11
|
+
minimumNights?: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const DatePicker: {
|
|
14
|
+
(props: DateRangePickerProps): JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
__docgenInfo: {
|
|
17
|
+
description: string;
|
|
18
|
+
displayName: string;
|
|
19
|
+
props: {
|
|
20
|
+
anchorDirection: {
|
|
21
|
+
defaultValue: null;
|
|
22
|
+
description: string;
|
|
23
|
+
name: string;
|
|
24
|
+
required: boolean;
|
|
25
|
+
type: {
|
|
26
|
+
name: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
initialDate: {
|
|
30
|
+
defaultValue: null;
|
|
31
|
+
description: string;
|
|
32
|
+
name: string;
|
|
33
|
+
required: boolean;
|
|
34
|
+
type: {
|
|
35
|
+
name: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
onDateChange: {
|
|
39
|
+
defaultValue: null;
|
|
40
|
+
description: string;
|
|
41
|
+
name: string;
|
|
42
|
+
required: boolean;
|
|
43
|
+
type: {
|
|
44
|
+
name: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
onClose: {
|
|
48
|
+
defaultValue: null;
|
|
49
|
+
description: string;
|
|
50
|
+
name: string;
|
|
51
|
+
required: boolean;
|
|
52
|
+
type: {
|
|
53
|
+
name: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
minMonths: {
|
|
57
|
+
defaultValue: null;
|
|
58
|
+
description: string;
|
|
59
|
+
name: string;
|
|
60
|
+
required: boolean;
|
|
61
|
+
type: {
|
|
62
|
+
name: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
autoFocus: {
|
|
66
|
+
defaultValue: null;
|
|
67
|
+
description: string;
|
|
68
|
+
name: string;
|
|
69
|
+
required: boolean;
|
|
70
|
+
type: {
|
|
71
|
+
name: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
autoFocusEndDate: {
|
|
75
|
+
defaultValue: null;
|
|
76
|
+
description: string;
|
|
77
|
+
name: string;
|
|
78
|
+
required: boolean;
|
|
79
|
+
type: {
|
|
80
|
+
name: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
minimumNights: {
|
|
84
|
+
defaultValue: null;
|
|
85
|
+
description: string;
|
|
86
|
+
name: string;
|
|
87
|
+
required: boolean;
|
|
88
|
+
type: {
|
|
89
|
+
name: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DatePicker';
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import 'react-dates/initialize';
|
|
3
|
+
import 'react-dates/lib/css/_datepicker.css';
|
|
4
|
+
declare type DateRangePickerProps = {
|
|
5
|
+
anchorDirection?: 'right' | 'left';
|
|
6
|
+
initialStartDate?: number;
|
|
7
|
+
initialEndDate?: number;
|
|
8
|
+
onRangeSelected: (arg0: any) => void;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
minMonths?: number;
|
|
11
|
+
autoFocus?: any;
|
|
12
|
+
autoFocusEndDate?: boolean;
|
|
13
|
+
minimumNights?: number;
|
|
14
|
+
};
|
|
15
|
+
export declare function DateRangePicker(props: DateRangePickerProps): JSX.Element;
|
|
16
|
+
export declare namespace DateRangePicker {
|
|
17
|
+
var displayName: string;
|
|
18
|
+
var __docgenInfo: {
|
|
19
|
+
description: string;
|
|
20
|
+
displayName: string;
|
|
21
|
+
props: {
|
|
22
|
+
anchorDirection: {
|
|
23
|
+
defaultValue: null;
|
|
24
|
+
description: string;
|
|
25
|
+
name: string;
|
|
26
|
+
required: boolean;
|
|
27
|
+
type: {
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
initialStartDate: {
|
|
32
|
+
defaultValue: null;
|
|
33
|
+
description: string;
|
|
34
|
+
name: string;
|
|
35
|
+
required: boolean;
|
|
36
|
+
type: {
|
|
37
|
+
name: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
initialEndDate: {
|
|
41
|
+
defaultValue: null;
|
|
42
|
+
description: string;
|
|
43
|
+
name: string;
|
|
44
|
+
required: boolean;
|
|
45
|
+
type: {
|
|
46
|
+
name: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
onRangeSelected: {
|
|
50
|
+
defaultValue: null;
|
|
51
|
+
description: string;
|
|
52
|
+
name: string;
|
|
53
|
+
required: boolean;
|
|
54
|
+
type: {
|
|
55
|
+
name: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
onClose: {
|
|
59
|
+
defaultValue: null;
|
|
60
|
+
description: string;
|
|
61
|
+
name: string;
|
|
62
|
+
required: boolean;
|
|
63
|
+
type: {
|
|
64
|
+
name: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
minMonths: {
|
|
68
|
+
defaultValue: null;
|
|
69
|
+
description: string;
|
|
70
|
+
name: string;
|
|
71
|
+
required: boolean;
|
|
72
|
+
type: {
|
|
73
|
+
name: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
autoFocus: {
|
|
77
|
+
defaultValue: null;
|
|
78
|
+
description: string;
|
|
79
|
+
name: string;
|
|
80
|
+
required: boolean;
|
|
81
|
+
type: {
|
|
82
|
+
name: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
autoFocusEndDate: {
|
|
86
|
+
defaultValue: null;
|
|
87
|
+
description: string;
|
|
88
|
+
name: string;
|
|
89
|
+
required: boolean;
|
|
90
|
+
type: {
|
|
91
|
+
name: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
minimumNights: {
|
|
95
|
+
defaultValue: null;
|
|
96
|
+
description: string;
|
|
97
|
+
name: string;
|
|
98
|
+
required: boolean;
|
|
99
|
+
type: {
|
|
100
|
+
name: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DateRangePicker';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ModalProps, MODALSIZE } from '../Modal';
|
|
3
|
+
import { SlideProps } from '../Transition';
|
|
4
|
+
export interface DrawerProps extends ModalProps {
|
|
5
|
+
placement?: SlideProps['placement'];
|
|
6
|
+
size?: MODALSIZE;
|
|
7
|
+
isFullHeight?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function Drawer(props: DrawerProps): JSX.Element;
|
|
10
|
+
export declare namespace Drawer {
|
|
11
|
+
var displayName: string;
|
|
12
|
+
var __docgenInfo: {
|
|
13
|
+
description: string;
|
|
14
|
+
displayName: string;
|
|
15
|
+
props: {
|
|
16
|
+
placement: {
|
|
17
|
+
defaultValue: null;
|
|
18
|
+
description: string;
|
|
19
|
+
name: string;
|
|
20
|
+
required: boolean;
|
|
21
|
+
type: {
|
|
22
|
+
name: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
size: {
|
|
26
|
+
defaultValue: null;
|
|
27
|
+
description: string;
|
|
28
|
+
name: string;
|
|
29
|
+
required: boolean;
|
|
30
|
+
type: {
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
isFullHeight: {
|
|
35
|
+
defaultValue: null;
|
|
36
|
+
description: string;
|
|
37
|
+
name: string;
|
|
38
|
+
required: boolean;
|
|
39
|
+
type: {
|
|
40
|
+
name: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
isOpen: {
|
|
44
|
+
defaultValue: null;
|
|
45
|
+
description: string;
|
|
46
|
+
name: string;
|
|
47
|
+
required: boolean;
|
|
48
|
+
type: {
|
|
49
|
+
name: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
position: {
|
|
53
|
+
defaultValue: null;
|
|
54
|
+
description: string;
|
|
55
|
+
name: string;
|
|
56
|
+
required: boolean;
|
|
57
|
+
type: {
|
|
58
|
+
name: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
onDismiss: {
|
|
62
|
+
defaultValue: null;
|
|
63
|
+
description: string;
|
|
64
|
+
name: string;
|
|
65
|
+
required: boolean;
|
|
66
|
+
type: {
|
|
67
|
+
name: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export declare const DrawerContent: React.SFC<{
|
|
74
|
+
size: MODALSIZE;
|
|
75
|
+
}>;
|
|
76
|
+
export declare const DrawerOverlay: React.SFC<ModalProps>;
|
|
77
|
+
export default DrawerOverlay;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="hoist-non-react-statics" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface DropdownButtonProps {
|
|
4
|
+
downshift: any;
|
|
5
|
+
itemToString: any;
|
|
6
|
+
isErrored: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
overrideStyles: any;
|
|
9
|
+
buttonLabelComponent: any;
|
|
10
|
+
children: any;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>> & import("hoist-non-react-statics").NonReactStatics<any, {}>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="hoist-non-react-statics" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const DropdownInput: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>> & import("hoist-non-react-statics").NonReactStatics<any, {}>;
|
|
4
|
+
export default DropdownInput;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="hoist-non-react-statics" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const DropdownMenu: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>> & import("hoist-non-react-statics").NonReactStatics<any, {}>;
|
|
4
|
+
export default DropdownMenu;
|