freemium-ui 2.0.0-beta.7 → 2.0.0-beta.9
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/Alert/package.json +1 -1
- package/Button/package.json +1 -1
- package/Checkbox/package.json +1 -1
- package/Confirmation/package.json +1 -1
- package/Drawer/package.json +1 -1
- package/Dropdown/package.json +1 -1
- package/Icons/package.json +1 -1
- package/Input/package.json +1 -1
- package/Loader/package.json +1 -1
- package/Menu/package.json +1 -1
- package/Modal/package.json +1 -1
- package/MultiSelectDropdown/package.json +1 -1
- package/README.md +16 -1
- package/package.json +1 -1
- package/rollup.config.d.ts +0 -3
- package/src/components/Alert/Alert.d.ts +0 -7
- package/src/components/Alert/Alert.types.d.ts +0 -42
- package/src/components/Alert/index.d.ts +0 -2
- package/src/components/Alert/styles.d.ts +0 -279
- package/src/components/Button/Button.d.ts +0 -7
- package/src/components/Button/Button.types.d.ts +0 -25
- package/src/components/Button/constants.d.ts +0 -5
- package/src/components/Button/index.d.ts +0 -2
- package/src/components/Button/styles.d.ts +0 -9
- package/src/components/Checkbox/Checkbox.d.ts +0 -7
- package/src/components/Checkbox/Checkbox.types.d.ts +0 -15
- package/src/components/Checkbox/index.d.ts +0 -2
- package/src/components/Checkbox/styles.d.ts +0 -836
- package/src/components/Confirmation/Confirmation.d.ts +0 -7
- package/src/components/Confirmation/Confirmation.types.d.ts +0 -55
- package/src/components/Confirmation/index.d.ts +0 -2
- package/src/components/Confirmation/styles.d.ts +0 -1951
- package/src/components/Drawer/Drawer.d.ts +0 -7
- package/src/components/Drawer/Drawer.types.d.ts +0 -41
- package/src/components/Drawer/constants.d.ts +0 -4
- package/src/components/Drawer/index.d.ts +0 -2
- package/src/components/Drawer/styles.d.ts +0 -865
- package/src/components/Dropdown/Dropdown.d.ts +0 -7
- package/src/components/Dropdown/Dropdown.types.d.ts +0 -122
- package/src/components/Dropdown/index.d.ts +0 -2
- package/src/components/Dropdown/styles.d.ts +0 -3887
- package/src/components/Icons/ChevronUp.d.ts +0 -3
- package/src/components/Icons/Cross.d.ts +0 -3
- package/src/components/Icons/CrossSmall.d.ts +0 -3
- package/src/components/Icons/Drag.d.ts +0 -3
- package/src/components/Icons/Search.d.ts +0 -3
- package/src/components/Icons/Settings.d.ts +0 -3
- package/src/components/Icons/TickIcon.d.ts +0 -3
- package/src/components/Icons/Warning.d.ts +0 -3
- package/src/components/Icons/index.d.ts +0 -5
- package/src/components/Input/Input.d.ts +0 -7
- package/src/components/Input/InputTextArea.types.d.ts +0 -50
- package/src/components/Input/TextArea.d.ts +0 -7
- package/src/components/Input/index.d.ts +0 -3
- package/src/components/Input/styles.d.ts +0 -877
- package/src/components/Loader/Loader.d.ts +0 -7
- package/src/components/Loader/Loader.types.d.ts +0 -12
- package/src/components/Loader/constants.d.ts +0 -4
- package/src/components/Loader/index.d.ts +0 -2
- package/src/components/Loader/styles.d.ts +0 -8
- package/src/components/Menu/Menu.d.ts +0 -8
- package/src/components/Menu/Menu.types.d.ts +0 -47
- package/src/components/Menu/index.d.ts +0 -2
- package/src/components/Menu/styles.d.ts +0 -1078
- package/src/components/Modal/Modal.d.ts +0 -7
- package/src/components/Modal/Modal.types.d.ts +0 -42
- package/src/components/Modal/constants.d.ts +0 -8
- package/src/components/Modal/index.d.ts +0 -2
- package/src/components/Modal/styles.d.ts +0 -308
- package/src/components/MultiSelectDropdown/MultiSelectDropdown.d.ts +0 -7
- package/src/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +0 -83
- package/src/components/MultiSelectDropdown/index.d.ts +0 -2
- package/src/components/MultiSelectDropdown/styles.d.ts +0 -547
- package/src/components/Pickers/DatePicker.d.ts +0 -8
- package/src/components/Pickers/DateRangePicker.d.ts +0 -8
- package/src/components/Pickers/DateTimePicker.d.ts +0 -8
- package/src/components/Pickers/DateTimeRangePicker.d.ts +0 -8
- package/src/components/Pickers/PickerDropdown.d.ts +0 -21
- package/src/components/Pickers/Pickers.types.d.ts +0 -44
- package/src/components/Pickers/constants.d.ts +0 -1
- package/src/components/Pickers/index.d.ts +0 -5
- package/src/components/Pickers/styles.d.ts +0 -835
- package/src/components/Popover/Popover.d.ts +0 -7
- package/src/components/Popover/Popover.types.d.ts +0 -68
- package/src/components/Popover/index.d.ts +0 -3
- package/src/components/Popover/styles.d.ts +0 -1357
- package/src/components/Radio/Radio.d.ts +0 -7
- package/src/components/Radio/Radio.types.d.ts +0 -72
- package/src/components/Radio/RadioGroup.d.ts +0 -7
- package/src/components/Radio/index.d.ts +0 -3
- package/src/components/Radio/styles.d.ts +0 -1114
- package/src/components/RadixDropdown/RadixDropdown.d.ts +0 -4
- package/src/components/RadixDropdown/RadixDropdown.types.d.ts +0 -121
- package/src/components/RadixDropdown/index.d.ts +0 -2
- package/src/components/RadixDropdown/styles.d.ts +0 -3321
- package/src/components/Reorder/Reorder.d.ts +0 -7
- package/src/components/Reorder/Reorder.types.d.ts +0 -27
- package/src/components/Reorder/index.d.ts +0 -2
- package/src/components/Reorder/styles.d.ts +0 -278
- package/src/components/Table/CustomizeColumns.d.ts +0 -10
- package/src/components/Table/Table.d.ts +0 -7
- package/src/components/Table/Table.types.d.ts +0 -10
- package/src/components/Table/index.d.ts +0 -2
- package/src/components/Table/styles.d.ts +0 -4384
- package/src/components/Tabs/Tabs.d.ts +0 -9
- package/src/components/Tabs/Tabs.types.d.ts +0 -37
- package/src/components/Tabs/index.d.ts +0 -2
- package/src/components/Tabs/styles.d.ts +0 -1113
- package/src/components/Tag/Tag.d.ts +0 -7
- package/src/components/Tag/Tag.types.d.ts +0 -35
- package/src/components/Tag/index.d.ts +0 -2
- package/src/components/Tag/styles.d.ts +0 -1121
- package/src/components/ThemeProvider/ThemeProvider.d.ts +0 -4
- package/src/components/ThemeProvider/ThemeProvider.types.d.ts +0 -5
- package/src/components/ThemeProvider/index.d.ts +0 -2
- package/src/components/Toast/Toast.types.d.ts +0 -41
- package/src/components/Toast/ToastContainer.d.ts +0 -2
- package/src/components/Toast/ToastContext.d.ts +0 -3
- package/src/components/Toast/ToastItem.d.ts +0 -6
- package/src/components/Toast/ToastProvider.d.ts +0 -6
- package/src/components/Toast/icons/Error.d.ts +0 -3
- package/src/components/Toast/icons/Success.d.ts +0 -3
- package/src/components/Toast/icons/Warning.d.ts +0 -3
- package/src/components/Toast/index.d.ts +0 -3
- package/src/components/Toast/styles.d.ts +0 -1134
- package/src/components/Toast/use-toasts.d.ts +0 -6
- package/src/components/Toggle/Toggle.d.ts +0 -7
- package/src/components/Toggle/Toggle.types.d.ts +0 -26
- package/src/components/Toggle/constants.d.ts +0 -9
- package/src/components/Toggle/index.d.ts +0 -2
- package/src/components/Toggle/styles.d.ts +0 -9
- package/src/components/Tooltip/Tooltip.d.ts +0 -9
- package/src/components/Tooltip/Tooltip.types.d.ts +0 -42
- package/src/components/Tooltip/index.d.ts +0 -2
- package/src/components/Tooltip/styles.d.ts +0 -1077
- package/src/components/Transition/Fade.d.ts +0 -4
- package/src/components/Transition/Slide.d.ts +0 -4
- package/src/components/Transition/SlideFade.d.ts +0 -4
- package/src/components/Transition/Transition.d.ts +0 -4
- package/src/components/Transition/Transition.types.d.ts +0 -33
- package/src/components/Transition/index.d.ts +0 -5
- package/src/components/Typography/Typography.d.ts +0 -7
- package/src/components/Typography/Typography.types.d.ts +0 -11
- package/src/components/Typography/index.d.ts +0 -2
- package/src/components/Typography/styles.d.ts +0 -8
- package/src/components/index.d.ts +0 -25
- package/src/index.d.ts +0 -1
- package/src/styles/index.d.ts +0 -3039
- package/src/themes/index.d.ts +0 -3
- package/src/themes/palette.d.ts +0 -3
- package/src/themes/types.d.ts +0 -118
- package/src/types/index.d.ts +0 -93
- package/src/utils/index.d.ts +0 -2
- package/src/utils/use-current-state.d.ts +0 -8
- package/src/utils/use-portal.d.ts +0 -2
- package/src/utils/use-ssr.d.ts +0 -6
package/src/themes/index.d.ts
DELETED
package/src/themes/palette.d.ts
DELETED
package/src/themes/types.d.ts
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TypographyWeightType } from '../components/Typography/Typography.types';
|
|
3
|
-
type BreakpointKeys = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
-
type UiUnits = 'px' | 'rem' | 'em' | '%';
|
|
5
|
-
export interface Breakpoints {
|
|
6
|
-
keys: BreakpointKeys[];
|
|
7
|
-
values: Record<BreakpointKeys, number>;
|
|
8
|
-
unit: UiUnits;
|
|
9
|
-
}
|
|
10
|
-
export interface TextColorSemantics {
|
|
11
|
-
success: string;
|
|
12
|
-
warning: string;
|
|
13
|
-
error: string;
|
|
14
|
-
info: string;
|
|
15
|
-
}
|
|
16
|
-
export interface TextColors {
|
|
17
|
-
primary: string;
|
|
18
|
-
link: string;
|
|
19
|
-
secondary: string;
|
|
20
|
-
disabled: string;
|
|
21
|
-
placeholder: string;
|
|
22
|
-
error: string;
|
|
23
|
-
inverse: string;
|
|
24
|
-
semantic: TextColorSemantics;
|
|
25
|
-
}
|
|
26
|
-
export interface FillColors {
|
|
27
|
-
base: string;
|
|
28
|
-
surface: string;
|
|
29
|
-
inverse: string;
|
|
30
|
-
hover: string;
|
|
31
|
-
disabled: string;
|
|
32
|
-
hilight: string;
|
|
33
|
-
}
|
|
34
|
-
export interface SemanticColorsType {
|
|
35
|
-
bg: string;
|
|
36
|
-
border: string;
|
|
37
|
-
}
|
|
38
|
-
export interface SemanticColors {
|
|
39
|
-
error: SemanticColorsType;
|
|
40
|
-
warning: SemanticColorsType;
|
|
41
|
-
info: SemanticColorsType;
|
|
42
|
-
success: SemanticColorsType;
|
|
43
|
-
}
|
|
44
|
-
export interface BorderColors {
|
|
45
|
-
normal: string;
|
|
46
|
-
divider: string;
|
|
47
|
-
hover: string;
|
|
48
|
-
active: string;
|
|
49
|
-
disabled: string;
|
|
50
|
-
error: string;
|
|
51
|
-
}
|
|
52
|
-
export interface CommonColors {
|
|
53
|
-
accent: string;
|
|
54
|
-
black: string;
|
|
55
|
-
white: string;
|
|
56
|
-
}
|
|
57
|
-
export interface Colors {
|
|
58
|
-
common: CommonColors;
|
|
59
|
-
text: TextColors;
|
|
60
|
-
fill: FillColors;
|
|
61
|
-
semantic: SemanticColors;
|
|
62
|
-
border: BorderColors;
|
|
63
|
-
shadow: string;
|
|
64
|
-
scrim: string;
|
|
65
|
-
}
|
|
66
|
-
export interface BaseTypography {
|
|
67
|
-
fontSize?: React.CSSProperties['fontSize'];
|
|
68
|
-
fontWeight?: React.CSSProperties['fontWeight'];
|
|
69
|
-
lineHeight?: React.CSSProperties['lineHeight'];
|
|
70
|
-
}
|
|
71
|
-
export interface FuiTypography {
|
|
72
|
-
fontFamily: React.CSSProperties['fontFamily'];
|
|
73
|
-
fontWeight: Record<TypographyWeightType, React.CSSProperties['fontWeight']>;
|
|
74
|
-
primary: BaseTypography;
|
|
75
|
-
secondary: BaseTypography;
|
|
76
|
-
heading: BaseTypography;
|
|
77
|
-
heading4: BaseTypography;
|
|
78
|
-
heading3: BaseTypography;
|
|
79
|
-
heading2: BaseTypography;
|
|
80
|
-
heading1: BaseTypography;
|
|
81
|
-
caption: BaseTypography;
|
|
82
|
-
}
|
|
83
|
-
export interface Easing {
|
|
84
|
-
easeInOut: string;
|
|
85
|
-
easeOut: string;
|
|
86
|
-
easeIn: string;
|
|
87
|
-
sharp: string;
|
|
88
|
-
}
|
|
89
|
-
export interface Duration {
|
|
90
|
-
short: string;
|
|
91
|
-
standard: string;
|
|
92
|
-
complex: string;
|
|
93
|
-
}
|
|
94
|
-
export interface Transitions {
|
|
95
|
-
easing: Easing;
|
|
96
|
-
duration: Duration;
|
|
97
|
-
}
|
|
98
|
-
export interface ZIndex {
|
|
99
|
-
mobileStepper: number;
|
|
100
|
-
fab: number;
|
|
101
|
-
speedDial: number;
|
|
102
|
-
appBar: number;
|
|
103
|
-
drawer: number;
|
|
104
|
-
modal: number;
|
|
105
|
-
snackbar: number;
|
|
106
|
-
tooltip: number;
|
|
107
|
-
}
|
|
108
|
-
export interface FreemiumUiTheme {
|
|
109
|
-
mode: 'light' | 'dark';
|
|
110
|
-
breakpoints: Breakpoints;
|
|
111
|
-
colors: Colors;
|
|
112
|
-
typography: FuiTypography;
|
|
113
|
-
shadows?: string[] | null;
|
|
114
|
-
transitions: Transitions;
|
|
115
|
-
zIndex: ZIndex;
|
|
116
|
-
components: any;
|
|
117
|
-
}
|
|
118
|
-
export {};
|
package/src/types/index.d.ts
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { FreemiumUiTheme } from '../themes/types';
|
|
2
|
-
export type FreshworksPalette = {
|
|
3
|
-
primary: {
|
|
4
|
-
elephant: string;
|
|
5
|
-
smoke: string;
|
|
6
|
-
milk: string;
|
|
7
|
-
E900: string;
|
|
8
|
-
E800: string;
|
|
9
|
-
E700: string;
|
|
10
|
-
E600: string;
|
|
11
|
-
E500: string;
|
|
12
|
-
E400: string;
|
|
13
|
-
E300: string;
|
|
14
|
-
E200: string;
|
|
15
|
-
E100: string;
|
|
16
|
-
E50: string;
|
|
17
|
-
S900: string;
|
|
18
|
-
S800: string;
|
|
19
|
-
S700: string;
|
|
20
|
-
S600: string;
|
|
21
|
-
S500: string;
|
|
22
|
-
S400: string;
|
|
23
|
-
S300: string;
|
|
24
|
-
S200: string;
|
|
25
|
-
S100: string;
|
|
26
|
-
S75: string;
|
|
27
|
-
S50: string;
|
|
28
|
-
S25: string;
|
|
29
|
-
S10: string;
|
|
30
|
-
};
|
|
31
|
-
secondary: {
|
|
32
|
-
jungle: string;
|
|
33
|
-
J900: string;
|
|
34
|
-
J800: string;
|
|
35
|
-
J700: string;
|
|
36
|
-
J600: string;
|
|
37
|
-
J500: string;
|
|
38
|
-
J400: string;
|
|
39
|
-
J300: string;
|
|
40
|
-
J200: string;
|
|
41
|
-
J100: string;
|
|
42
|
-
J50: string;
|
|
43
|
-
azure: string;
|
|
44
|
-
A900: string;
|
|
45
|
-
A800: string;
|
|
46
|
-
A700: string;
|
|
47
|
-
A600: string;
|
|
48
|
-
A500: string;
|
|
49
|
-
A400: string;
|
|
50
|
-
A300: string;
|
|
51
|
-
A200: string;
|
|
52
|
-
A100: string;
|
|
53
|
-
A50: string;
|
|
54
|
-
persimmon: string;
|
|
55
|
-
P900: string;
|
|
56
|
-
P800: string;
|
|
57
|
-
P700: string;
|
|
58
|
-
P600: string;
|
|
59
|
-
P500: string;
|
|
60
|
-
P400: string;
|
|
61
|
-
P300: string;
|
|
62
|
-
P200: string;
|
|
63
|
-
P100: string;
|
|
64
|
-
P50: string;
|
|
65
|
-
casablanca: string;
|
|
66
|
-
C900: string;
|
|
67
|
-
C800: string;
|
|
68
|
-
C700: string;
|
|
69
|
-
C600: string;
|
|
70
|
-
C500: string;
|
|
71
|
-
C400: string;
|
|
72
|
-
C300: string;
|
|
73
|
-
C200: string;
|
|
74
|
-
C100: string;
|
|
75
|
-
C50: string;
|
|
76
|
-
};
|
|
77
|
-
common: {
|
|
78
|
-
black: string;
|
|
79
|
-
white: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
export type FuiContextType = {
|
|
83
|
-
theme: FreemiumUiTheme;
|
|
84
|
-
};
|
|
85
|
-
export type ModalCssType = {
|
|
86
|
-
left?: string;
|
|
87
|
-
top?: string;
|
|
88
|
-
transform?: string;
|
|
89
|
-
right?: string;
|
|
90
|
-
bottom?: string;
|
|
91
|
-
y?: string;
|
|
92
|
-
x?: string;
|
|
93
|
-
};
|
package/src/utils/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Dispatch, MutableRefObject, SetStateAction } from 'react';
|
|
2
|
-
export type CurrentStateType<S> = [
|
|
3
|
-
S,
|
|
4
|
-
Dispatch<SetStateAction<S>>,
|
|
5
|
-
MutableRefObject<S>
|
|
6
|
-
];
|
|
7
|
-
declare const useCurrentState: <S>(initialState: S | (() => S)) => CurrentStateType<S>;
|
|
8
|
-
export default useCurrentState;
|