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,122 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { TransitionProps as TProps, TransitionStatus } from 'react-transition-group/Transition';
|
|
3
|
+
export declare type BaseProps = Pick<TProps, 'in' | 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited' | 'unmountOnExit' | 'timeout'>;
|
|
4
|
+
export interface TransitionProps extends BaseProps {
|
|
5
|
+
transition?: string;
|
|
6
|
+
children: (styles: React.CSSProperties) => React.ReactNode;
|
|
7
|
+
styles: TransitionStyles;
|
|
8
|
+
}
|
|
9
|
+
export declare type TransitionStyleState = 'init' | 'entered' | 'exiting';
|
|
10
|
+
export declare type TransitionStyles = {
|
|
11
|
+
[K in TransitionStyleState]?: React.CSSProperties;
|
|
12
|
+
};
|
|
13
|
+
export type { TransitionStatus };
|
|
14
|
+
export declare function Transition(props: TransitionProps): JSX.Element;
|
|
15
|
+
export declare namespace Transition {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
var __docgenInfo: {
|
|
18
|
+
description: string;
|
|
19
|
+
displayName: string;
|
|
20
|
+
props: {
|
|
21
|
+
transition: {
|
|
22
|
+
defaultValue: null;
|
|
23
|
+
description: string;
|
|
24
|
+
name: string;
|
|
25
|
+
required: boolean;
|
|
26
|
+
type: {
|
|
27
|
+
name: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
styles: {
|
|
31
|
+
defaultValue: null;
|
|
32
|
+
description: string;
|
|
33
|
+
name: string;
|
|
34
|
+
required: boolean;
|
|
35
|
+
type: {
|
|
36
|
+
name: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
in: {
|
|
40
|
+
defaultValue: null;
|
|
41
|
+
description: string;
|
|
42
|
+
name: string;
|
|
43
|
+
required: boolean;
|
|
44
|
+
type: {
|
|
45
|
+
name: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
timeout: {
|
|
49
|
+
defaultValue: null;
|
|
50
|
+
description: string;
|
|
51
|
+
name: string;
|
|
52
|
+
required: boolean;
|
|
53
|
+
type: {
|
|
54
|
+
name: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
onEnter: {
|
|
58
|
+
defaultValue: null;
|
|
59
|
+
description: string;
|
|
60
|
+
name: string;
|
|
61
|
+
required: boolean;
|
|
62
|
+
type: {
|
|
63
|
+
name: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
onEntering: {
|
|
67
|
+
defaultValue: null;
|
|
68
|
+
description: string;
|
|
69
|
+
name: string;
|
|
70
|
+
required: boolean;
|
|
71
|
+
type: {
|
|
72
|
+
name: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
onEntered: {
|
|
76
|
+
defaultValue: null;
|
|
77
|
+
description: string;
|
|
78
|
+
name: string;
|
|
79
|
+
required: boolean;
|
|
80
|
+
type: {
|
|
81
|
+
name: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
onExit: {
|
|
85
|
+
defaultValue: null;
|
|
86
|
+
description: string;
|
|
87
|
+
name: string;
|
|
88
|
+
required: boolean;
|
|
89
|
+
type: {
|
|
90
|
+
name: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
onExiting: {
|
|
94
|
+
defaultValue: null;
|
|
95
|
+
description: string;
|
|
96
|
+
name: string;
|
|
97
|
+
required: boolean;
|
|
98
|
+
type: {
|
|
99
|
+
name: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
onExited: {
|
|
103
|
+
defaultValue: null;
|
|
104
|
+
description: string;
|
|
105
|
+
name: string;
|
|
106
|
+
required: boolean;
|
|
107
|
+
type: {
|
|
108
|
+
name: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
unmountOnExit: {
|
|
112
|
+
defaultValue: null;
|
|
113
|
+
description: string;
|
|
114
|
+
name: string;
|
|
115
|
+
required: boolean;
|
|
116
|
+
type: {
|
|
117
|
+
name: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TransitionProps } from './Transition';
|
|
3
|
+
export declare type FadeProps = Omit<TransitionProps, 'styles' | 'timeout'> & {
|
|
4
|
+
timeout?: number;
|
|
5
|
+
};
|
|
6
|
+
export declare function Fade(props: FadeProps): JSX.Element;
|
|
7
|
+
export declare namespace Fade {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
var __docgenInfo: {
|
|
10
|
+
description: string;
|
|
11
|
+
displayName: string;
|
|
12
|
+
props: {
|
|
13
|
+
in: {
|
|
14
|
+
defaultValue: null;
|
|
15
|
+
description: string;
|
|
16
|
+
name: string;
|
|
17
|
+
required: boolean;
|
|
18
|
+
type: {
|
|
19
|
+
name: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
onEnter: {
|
|
23
|
+
defaultValue: null;
|
|
24
|
+
description: string;
|
|
25
|
+
name: string;
|
|
26
|
+
required: boolean;
|
|
27
|
+
type: {
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
onEntering: {
|
|
32
|
+
defaultValue: null;
|
|
33
|
+
description: string;
|
|
34
|
+
name: string;
|
|
35
|
+
required: boolean;
|
|
36
|
+
type: {
|
|
37
|
+
name: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
onEntered: {
|
|
41
|
+
defaultValue: null;
|
|
42
|
+
description: string;
|
|
43
|
+
name: string;
|
|
44
|
+
required: boolean;
|
|
45
|
+
type: {
|
|
46
|
+
name: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
onExit: {
|
|
50
|
+
defaultValue: null;
|
|
51
|
+
description: string;
|
|
52
|
+
name: string;
|
|
53
|
+
required: boolean;
|
|
54
|
+
type: {
|
|
55
|
+
name: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
onExiting: {
|
|
59
|
+
defaultValue: null;
|
|
60
|
+
description: string;
|
|
61
|
+
name: string;
|
|
62
|
+
required: boolean;
|
|
63
|
+
type: {
|
|
64
|
+
name: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
onExited: {
|
|
68
|
+
defaultValue: null;
|
|
69
|
+
description: string;
|
|
70
|
+
name: string;
|
|
71
|
+
required: boolean;
|
|
72
|
+
type: {
|
|
73
|
+
name: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
unmountOnExit: {
|
|
77
|
+
defaultValue: null;
|
|
78
|
+
description: string;
|
|
79
|
+
name: string;
|
|
80
|
+
required: boolean;
|
|
81
|
+
type: {
|
|
82
|
+
name: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
transition: {
|
|
86
|
+
defaultValue: null;
|
|
87
|
+
description: string;
|
|
88
|
+
name: string;
|
|
89
|
+
required: boolean;
|
|
90
|
+
type: {
|
|
91
|
+
name: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
timeout: {
|
|
95
|
+
defaultValue: null;
|
|
96
|
+
description: string;
|
|
97
|
+
name: string;
|
|
98
|
+
required: boolean;
|
|
99
|
+
type: {
|
|
100
|
+
name: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TransitionProps } from './Transition';
|
|
3
|
+
export interface SlideFadeProps extends Omit<TransitionProps, 'styles' | 'timeout'> {
|
|
4
|
+
/**
|
|
5
|
+
* The initial offset to slide from
|
|
6
|
+
*/
|
|
7
|
+
initialOffset?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The transition timeout
|
|
10
|
+
*/
|
|
11
|
+
timeout?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const SlideFade: {
|
|
14
|
+
(props: SlideFadeProps): JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
__docgenInfo: {
|
|
17
|
+
description: string;
|
|
18
|
+
displayName: string;
|
|
19
|
+
props: {
|
|
20
|
+
initialOffset: {
|
|
21
|
+
defaultValue: null;
|
|
22
|
+
description: string;
|
|
23
|
+
name: string;
|
|
24
|
+
required: boolean;
|
|
25
|
+
type: {
|
|
26
|
+
name: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
timeout: {
|
|
30
|
+
defaultValue: null;
|
|
31
|
+
description: string;
|
|
32
|
+
name: string;
|
|
33
|
+
required: boolean;
|
|
34
|
+
type: {
|
|
35
|
+
name: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
in: {
|
|
39
|
+
defaultValue: null;
|
|
40
|
+
description: string;
|
|
41
|
+
name: string;
|
|
42
|
+
required: boolean;
|
|
43
|
+
type: {
|
|
44
|
+
name: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
onEnter: {
|
|
48
|
+
defaultValue: null;
|
|
49
|
+
description: string;
|
|
50
|
+
name: string;
|
|
51
|
+
required: boolean;
|
|
52
|
+
type: {
|
|
53
|
+
name: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
onEntering: {
|
|
57
|
+
defaultValue: null;
|
|
58
|
+
description: string;
|
|
59
|
+
name: string;
|
|
60
|
+
required: boolean;
|
|
61
|
+
type: {
|
|
62
|
+
name: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
onEntered: {
|
|
66
|
+
defaultValue: null;
|
|
67
|
+
description: string;
|
|
68
|
+
name: string;
|
|
69
|
+
required: boolean;
|
|
70
|
+
type: {
|
|
71
|
+
name: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
onExit: {
|
|
75
|
+
defaultValue: null;
|
|
76
|
+
description: string;
|
|
77
|
+
name: string;
|
|
78
|
+
required: boolean;
|
|
79
|
+
type: {
|
|
80
|
+
name: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
onExiting: {
|
|
84
|
+
defaultValue: null;
|
|
85
|
+
description: string;
|
|
86
|
+
name: string;
|
|
87
|
+
required: boolean;
|
|
88
|
+
type: {
|
|
89
|
+
name: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
onExited: {
|
|
93
|
+
defaultValue: null;
|
|
94
|
+
description: string;
|
|
95
|
+
name: string;
|
|
96
|
+
required: boolean;
|
|
97
|
+
type: {
|
|
98
|
+
name: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
unmountOnExit: {
|
|
102
|
+
defaultValue: null;
|
|
103
|
+
description: string;
|
|
104
|
+
name: string;
|
|
105
|
+
required: boolean;
|
|
106
|
+
type: {
|
|
107
|
+
name: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
transition: {
|
|
111
|
+
defaultValue: null;
|
|
112
|
+
description: string;
|
|
113
|
+
name: string;
|
|
114
|
+
required: boolean;
|
|
115
|
+
type: {
|
|
116
|
+
name: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TransitionProps } from './Transition';
|
|
3
|
+
declare type Placement = 'left' | 'right' | 'bottom' | 'top';
|
|
4
|
+
export declare type SlideProps = Omit<TransitionProps, 'styles' | 'timeout'> & {
|
|
5
|
+
/** The direction to slide drawer from */
|
|
6
|
+
placement?: Placement;
|
|
7
|
+
/** The transition timeout */
|
|
8
|
+
timeout?: number;
|
|
9
|
+
};
|
|
10
|
+
export declare function Slide(props: SlideProps): JSX.Element;
|
|
11
|
+
export declare namespace Slide {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
var __docgenInfo: {
|
|
14
|
+
description: string;
|
|
15
|
+
displayName: string;
|
|
16
|
+
props: {
|
|
17
|
+
in: {
|
|
18
|
+
defaultValue: null;
|
|
19
|
+
description: string;
|
|
20
|
+
name: string;
|
|
21
|
+
required: boolean;
|
|
22
|
+
type: {
|
|
23
|
+
name: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
onEnter: {
|
|
27
|
+
defaultValue: null;
|
|
28
|
+
description: string;
|
|
29
|
+
name: string;
|
|
30
|
+
required: boolean;
|
|
31
|
+
type: {
|
|
32
|
+
name: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
onEntering: {
|
|
36
|
+
defaultValue: null;
|
|
37
|
+
description: string;
|
|
38
|
+
name: string;
|
|
39
|
+
required: boolean;
|
|
40
|
+
type: {
|
|
41
|
+
name: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
onEntered: {
|
|
45
|
+
defaultValue: null;
|
|
46
|
+
description: string;
|
|
47
|
+
name: string;
|
|
48
|
+
required: boolean;
|
|
49
|
+
type: {
|
|
50
|
+
name: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
onExit: {
|
|
54
|
+
defaultValue: null;
|
|
55
|
+
description: string;
|
|
56
|
+
name: string;
|
|
57
|
+
required: boolean;
|
|
58
|
+
type: {
|
|
59
|
+
name: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
onExiting: {
|
|
63
|
+
defaultValue: null;
|
|
64
|
+
description: string;
|
|
65
|
+
name: string;
|
|
66
|
+
required: boolean;
|
|
67
|
+
type: {
|
|
68
|
+
name: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
onExited: {
|
|
72
|
+
defaultValue: null;
|
|
73
|
+
description: string;
|
|
74
|
+
name: string;
|
|
75
|
+
required: boolean;
|
|
76
|
+
type: {
|
|
77
|
+
name: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
unmountOnExit: {
|
|
81
|
+
defaultValue: null;
|
|
82
|
+
description: string;
|
|
83
|
+
name: string;
|
|
84
|
+
required: boolean;
|
|
85
|
+
type: {
|
|
86
|
+
name: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
transition: {
|
|
90
|
+
defaultValue: null;
|
|
91
|
+
description: string;
|
|
92
|
+
name: string;
|
|
93
|
+
required: boolean;
|
|
94
|
+
type: {
|
|
95
|
+
name: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
placement: {
|
|
99
|
+
defaultValue: null;
|
|
100
|
+
description: string;
|
|
101
|
+
name: string;
|
|
102
|
+
required: boolean;
|
|
103
|
+
type: {
|
|
104
|
+
name: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
timeout: {
|
|
108
|
+
defaultValue: null;
|
|
109
|
+
description: string;
|
|
110
|
+
name: string;
|
|
111
|
+
required: boolean;
|
|
112
|
+
type: {
|
|
113
|
+
name: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './UiProvider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './use-toast';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Toast } from './use-toast';
|
|
3
|
+
declare type ToastWithID = Toast & {
|
|
4
|
+
id: string;
|
|
5
|
+
willBeDestroy?: boolean;
|
|
6
|
+
cancel: Function;
|
|
7
|
+
};
|
|
8
|
+
export interface ToastItemProps {
|
|
9
|
+
index: number;
|
|
10
|
+
total: number;
|
|
11
|
+
toast: ToastWithID;
|
|
12
|
+
onHover: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const ToastItem: React.FC<ToastItemProps>;
|
|
15
|
+
export default ToastItem;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ToastAction {
|
|
3
|
+
name: string;
|
|
4
|
+
handler: (event: React.MouseEventHandler<HTMLButtonElement>, cancel: Function) => void;
|
|
5
|
+
passive?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare type ToastType = 'info' | 'success' | 'warning' | 'error';
|
|
8
|
+
export interface Toast {
|
|
9
|
+
text?: string | React.ReactNode;
|
|
10
|
+
type?: ToastType;
|
|
11
|
+
customIcon?: any;
|
|
12
|
+
delay?: number;
|
|
13
|
+
actions?: Array<ToastAction>;
|
|
14
|
+
}
|
|
15
|
+
export declare const useToasts: () => [Toast[], (t: Toast) => void];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * from './src/components/Alert';
|
|
2
|
+
export * from './src/components/Button';
|
|
3
|
+
export * from './src/components/Checkbox';
|
|
4
|
+
export * from './src/components/CssBaseLine';
|
|
5
|
+
export * from './src/components/Confirmation';
|
|
6
|
+
export * from './src/components/DatePicker';
|
|
7
|
+
export * from './src/components/Drawer';
|
|
8
|
+
export * from './src/components/ButtonDropdown';
|
|
9
|
+
export * from './src/components/Icons';
|
|
10
|
+
export * from './src/components/Tooltip';
|
|
11
|
+
export * from './src/components/Input';
|
|
12
|
+
export * from './src/components/Menu';
|
|
13
|
+
export * from './src/components/Modal';
|
|
14
|
+
export * from './src/components/MultiSelectDropdown';
|
|
15
|
+
export * from './src/components/Dropdown';
|
|
16
|
+
export * from './src/components/Popover';
|
|
17
|
+
export * from './src/components/Radio';
|
|
18
|
+
export * from './src/components/BoxedRadio';
|
|
19
|
+
export * from './src/components/Table';
|
|
20
|
+
export * from './src/components/RestTable';
|
|
21
|
+
export * from './src/components/Tabs';
|
|
22
|
+
export * from './src/components/Tag';
|
|
23
|
+
export * from './src/components/Toast';
|
|
24
|
+
export * from './src/components/Toggle';
|
|
25
|
+
export * from './src/components/Transition';
|
|
26
|
+
export * from './src/components/UiProvider';
|
|
27
|
+
export * from './src/components/use-toasts';
|
|
28
|
+
export * from './src/components/ThemeProvider';
|