@ctlyst.id/internal-ui 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +201 -0
- package/README.md +1 -0
- package/dist/index.js +894 -0
- package/dist/index.mjs +20508 -0
- package/dist/types/components/breadcrumb/components/BreadCrumb.d.ts +17 -0
- package/dist/types/components/breadcrumb/index.d.ts +2 -0
- package/dist/types/components/data-table/components/data-table.d.ts +40 -0
- package/dist/types/components/data-table/components/indeterminate-checkbox.d.ts +5 -0
- package/dist/types/components/data-table/index.d.ts +2 -0
- package/dist/types/components/datepicker/components/datepicker.d.ts +17 -0
- package/dist/types/components/datepicker/components/styles.d.ts +2 -0
- package/dist/types/components/datepicker/components/time-input.d.ts +9 -0
- package/dist/types/components/datepicker/index.d.ts +2 -0
- package/dist/types/components/field/components/field.d.ts +11 -0
- package/dist/types/components/field/components/input-field.d.ts +12 -0
- package/dist/types/components/field/components/textarea-field.d.ts +12 -0
- package/dist/types/components/field/index.d.ts +6 -0
- package/dist/types/components/header/components/header.d.ts +10 -0
- package/dist/types/components/header/components/logo.d.ts +2 -0
- package/dist/types/components/header/components/profile.d.ts +8 -0
- package/dist/types/components/header/components/switch-mode.d.ts +3 -0
- package/dist/types/components/header/components/version.d.ts +9 -0
- package/dist/types/components/header/index.d.ts +2 -0
- package/dist/types/components/header/types.d.ts +10 -0
- package/dist/types/components/header/utils/formatter.d.ts +2 -0
- package/dist/types/components/index.d.ts +11 -0
- package/dist/types/components/modal/components/modal-close-button.d.ts +4 -0
- package/dist/types/components/modal/components/modal-footer.d.ts +4 -0
- package/dist/types/components/modal/components/modal-header.d.ts +4 -0
- package/dist/types/components/modal/index.d.ts +5 -0
- package/dist/types/components/navigation/components/navigation.d.ts +9 -0
- package/dist/types/components/navigation/index.d.ts +2 -0
- package/dist/types/components/navigation/types.d.ts +8 -0
- package/dist/types/components/pagination/components/pagination-button-trigger.d.ts +10 -0
- package/dist/types/components/pagination/components/pagination-button.d.ts +6 -0
- package/dist/types/components/pagination/components/pagination-detail.d.ts +10 -0
- package/dist/types/components/pagination/components/pagination-filter.d.ts +13 -0
- package/dist/types/components/pagination/components/pagination.d.ts +16 -0
- package/dist/types/components/pagination/index.d.ts +6 -0
- package/dist/types/components/select/components/select-async-creatable.d.ts +4 -0
- package/dist/types/components/select/components/select-async.d.ts +5 -0
- package/dist/types/components/select/components/select-creatable.d.ts +4 -0
- package/dist/types/components/select/components/select.d.ts +4 -0
- package/dist/types/components/select/components/utils.d.ts +26 -0
- package/dist/types/components/select/index.d.ts +8 -0
- package/dist/types/components/tabs/components/tab-list.d.ts +3 -0
- package/dist/types/components/tabs/components/tab-panel.d.ts +3 -0
- package/dist/types/components/tabs/components/tab.d.ts +11 -0
- package/dist/types/components/tabs/index.d.ts +5 -0
- package/dist/types/components/uploader/components/uploader.d.ts +12 -0
- package/dist/types/components/uploader/constants.d.ts +8 -0
- package/dist/types/components/uploader/index.d.ts +2 -0
- package/dist/types/config/index.d.ts +1 -0
- package/dist/types/config/theme/components/button.d.ts +3 -0
- package/dist/types/config/theme/components/checkbox.d.ts +3 -0
- package/dist/types/config/theme/components/form-label.d.ts +19 -0
- package/dist/types/config/theme/components/index.d.ts +8 -0
- package/dist/types/config/theme/components/input.d.ts +114 -0
- package/dist/types/config/theme/components/popover.d.ts +3 -0
- package/dist/types/config/theme/components/radio.d.ts +3 -0
- package/dist/types/config/theme/components/switch.d.ts +32 -0
- package/dist/types/config/theme/components/textarea.d.ts +3 -0
- package/dist/types/config/theme/foundations/colors.d.ts +158 -0
- package/dist/types/config/theme/foundations/index.d.ts +5 -0
- package/dist/types/config/theme/foundations/radius.d.ts +8 -0
- package/dist/types/config/theme/foundations/sizes.d.ts +66 -0
- package/dist/types/config/theme/foundations/spacing.d.ts +42 -0
- package/dist/types/config/theme/foundations/typography.d.ts +173 -0
- package/dist/types/config/theme/index.d.ts +1 -0
- package/dist/types/config/theme/themeConfiguration.d.ts +4 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/provider/index.d.ts +2 -0
- package/dist/types/provider/provider.d.ts +6 -0
- package/dist/types/provider/types.d.ts +14 -0
- package/package.json +73 -0
@@ -0,0 +1,114 @@
|
|
1
|
+
declare const Input: {
|
2
|
+
baseStyle?: {
|
3
|
+
field: {
|
4
|
+
width: string;
|
5
|
+
minWidth: number;
|
6
|
+
outline: number;
|
7
|
+
px: number;
|
8
|
+
py: number;
|
9
|
+
position: string;
|
10
|
+
appearance: string;
|
11
|
+
transitionProperty: string;
|
12
|
+
transitionDuration: string;
|
13
|
+
color: string;
|
14
|
+
_disabled: {
|
15
|
+
bg: string;
|
16
|
+
border: string;
|
17
|
+
borderColor: string;
|
18
|
+
cursor: string;
|
19
|
+
};
|
20
|
+
_placeholder: {
|
21
|
+
color: string;
|
22
|
+
};
|
23
|
+
};
|
24
|
+
} | undefined;
|
25
|
+
sizes?: {
|
26
|
+
lg: {
|
27
|
+
field: {
|
28
|
+
fontSize: string;
|
29
|
+
h: number;
|
30
|
+
borderRadius: string;
|
31
|
+
};
|
32
|
+
addon: {
|
33
|
+
fontSize: string;
|
34
|
+
h: number;
|
35
|
+
borderRadius: string;
|
36
|
+
};
|
37
|
+
};
|
38
|
+
md: {
|
39
|
+
field: {
|
40
|
+
fontSize: string;
|
41
|
+
h: number;
|
42
|
+
borderRadius: string;
|
43
|
+
};
|
44
|
+
addon: {
|
45
|
+
fontSize: string;
|
46
|
+
h: number;
|
47
|
+
borderRadius: string;
|
48
|
+
};
|
49
|
+
};
|
50
|
+
sm: {
|
51
|
+
field: {
|
52
|
+
fontSize: string;
|
53
|
+
h: number;
|
54
|
+
borderRadius: string;
|
55
|
+
};
|
56
|
+
addon: {
|
57
|
+
fontSize: string;
|
58
|
+
h: number;
|
59
|
+
borderRadius: string;
|
60
|
+
};
|
61
|
+
};
|
62
|
+
} | undefined;
|
63
|
+
variants?: {
|
64
|
+
outline: (props: import("@chakra-ui/styled-system").StyleFunctionProps) => {
|
65
|
+
field: {
|
66
|
+
border: string;
|
67
|
+
borderColor: string;
|
68
|
+
bg: string;
|
69
|
+
color: string;
|
70
|
+
_hover: {
|
71
|
+
borderColor: string;
|
72
|
+
};
|
73
|
+
_readOnly: {
|
74
|
+
userSelect: string;
|
75
|
+
borderColor: any;
|
76
|
+
boxShadow: string;
|
77
|
+
};
|
78
|
+
_invalid: {
|
79
|
+
borderColor: any;
|
80
|
+
boxShadow: string;
|
81
|
+
};
|
82
|
+
_focusVisible: {
|
83
|
+
zIndex: number;
|
84
|
+
borderColor: any;
|
85
|
+
boxShadow: string;
|
86
|
+
};
|
87
|
+
};
|
88
|
+
addon: {
|
89
|
+
border: string;
|
90
|
+
borderColor: string;
|
91
|
+
bg: string;
|
92
|
+
};
|
93
|
+
};
|
94
|
+
unstyled: {
|
95
|
+
field: {
|
96
|
+
bg: string;
|
97
|
+
px: string;
|
98
|
+
height: string;
|
99
|
+
};
|
100
|
+
addon: {
|
101
|
+
bg: string;
|
102
|
+
px: string;
|
103
|
+
height: string;
|
104
|
+
};
|
105
|
+
};
|
106
|
+
} | undefined;
|
107
|
+
defaultProps?: {
|
108
|
+
size?: "sm" | "md" | "lg" | undefined;
|
109
|
+
variant?: "outline" | "unstyled" | undefined;
|
110
|
+
colorScheme?: string | undefined;
|
111
|
+
} | undefined;
|
112
|
+
parts: ("element" | "addon" | "field")[];
|
113
|
+
};
|
114
|
+
export default Input;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
declare const Switch: {
|
2
|
+
baseStyle?: {
|
3
|
+
container: {};
|
4
|
+
thumb: {
|
5
|
+
bg: string;
|
6
|
+
};
|
7
|
+
track: {
|
8
|
+
bg: string;
|
9
|
+
p: number;
|
10
|
+
_checked: {
|
11
|
+
bg: string;
|
12
|
+
};
|
13
|
+
};
|
14
|
+
} | undefined;
|
15
|
+
sizes?: {
|
16
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
17
|
+
keys: ("track" | "container" | "thumb")[];
|
18
|
+
}>;
|
19
|
+
} | undefined;
|
20
|
+
variants?: {
|
21
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
22
|
+
keys: ("track" | "container" | "thumb")[];
|
23
|
+
}>;
|
24
|
+
} | undefined;
|
25
|
+
defaultProps?: {
|
26
|
+
size?: string | number | undefined;
|
27
|
+
variant?: string | number | undefined;
|
28
|
+
colorScheme?: string | undefined;
|
29
|
+
} | undefined;
|
30
|
+
parts: ("track" | "container" | "thumb")[];
|
31
|
+
};
|
32
|
+
export default Switch;
|
@@ -0,0 +1,158 @@
|
|
1
|
+
declare const colors: {
|
2
|
+
transparent: string;
|
3
|
+
black: {
|
4
|
+
high: string;
|
5
|
+
medium: string;
|
6
|
+
low: string;
|
7
|
+
};
|
8
|
+
white: {
|
9
|
+
high: string;
|
10
|
+
medium: string;
|
11
|
+
low: string;
|
12
|
+
};
|
13
|
+
neutral: {
|
14
|
+
'50': string;
|
15
|
+
'100': string;
|
16
|
+
'200': string;
|
17
|
+
'300': string;
|
18
|
+
'400': string;
|
19
|
+
'500': string;
|
20
|
+
'600': string;
|
21
|
+
'700': string;
|
22
|
+
'800': string;
|
23
|
+
'900': string;
|
24
|
+
};
|
25
|
+
primary: {
|
26
|
+
'50': string;
|
27
|
+
'100': string;
|
28
|
+
'200': string;
|
29
|
+
'300': string;
|
30
|
+
'400': string;
|
31
|
+
'500': string;
|
32
|
+
'600': string;
|
33
|
+
'700': string;
|
34
|
+
'800': string;
|
35
|
+
'900': string;
|
36
|
+
};
|
37
|
+
secondary: {
|
38
|
+
'50': string;
|
39
|
+
'100': string;
|
40
|
+
'200': string;
|
41
|
+
'300': string;
|
42
|
+
'400': string;
|
43
|
+
'500': string;
|
44
|
+
'600': string;
|
45
|
+
'700': string;
|
46
|
+
'800': string;
|
47
|
+
'900': string;
|
48
|
+
};
|
49
|
+
success: {
|
50
|
+
'50': string;
|
51
|
+
'100': string;
|
52
|
+
'200': string;
|
53
|
+
'300': string;
|
54
|
+
'400': string;
|
55
|
+
'500': string;
|
56
|
+
'600': string;
|
57
|
+
'700': string;
|
58
|
+
'800': string;
|
59
|
+
'900': string;
|
60
|
+
};
|
61
|
+
danger: {
|
62
|
+
'50': string;
|
63
|
+
'100': string;
|
64
|
+
'200': string;
|
65
|
+
'300': string;
|
66
|
+
'400': string;
|
67
|
+
'500': string;
|
68
|
+
'600': string;
|
69
|
+
'700': string;
|
70
|
+
'800': string;
|
71
|
+
'900': string;
|
72
|
+
};
|
73
|
+
warning: {
|
74
|
+
'50': string;
|
75
|
+
'100': string;
|
76
|
+
'200': string;
|
77
|
+
'300': string;
|
78
|
+
'400': string;
|
79
|
+
'500': string;
|
80
|
+
'600': string;
|
81
|
+
'700': string;
|
82
|
+
'800': string;
|
83
|
+
'900': string;
|
84
|
+
};
|
85
|
+
info: {
|
86
|
+
'50': string;
|
87
|
+
'100': string;
|
88
|
+
'200': string;
|
89
|
+
'300': string;
|
90
|
+
'400': string;
|
91
|
+
'500': string;
|
92
|
+
'600': string;
|
93
|
+
'700': string;
|
94
|
+
'800': string;
|
95
|
+
'900': string;
|
96
|
+
};
|
97
|
+
dark: {
|
98
|
+
'50': string;
|
99
|
+
'100': string;
|
100
|
+
'200': string;
|
101
|
+
'300': string;
|
102
|
+
'400': string;
|
103
|
+
'500': string;
|
104
|
+
'600': string;
|
105
|
+
'700': string;
|
106
|
+
'800': string;
|
107
|
+
'900': string;
|
108
|
+
};
|
109
|
+
mirage: {
|
110
|
+
'50': string;
|
111
|
+
'100': string;
|
112
|
+
'200': string;
|
113
|
+
'300': string;
|
114
|
+
'400': string;
|
115
|
+
'500': string;
|
116
|
+
'600': string;
|
117
|
+
'700': string;
|
118
|
+
'800': string;
|
119
|
+
'900': string;
|
120
|
+
};
|
121
|
+
'ebony-clay': {
|
122
|
+
'50': string;
|
123
|
+
'100': string;
|
124
|
+
'200': string;
|
125
|
+
'300': string;
|
126
|
+
'400': string;
|
127
|
+
'500': string;
|
128
|
+
'600': string;
|
129
|
+
'700': string;
|
130
|
+
'800': string;
|
131
|
+
'900': string;
|
132
|
+
};
|
133
|
+
'bright-gray': {
|
134
|
+
'50': string;
|
135
|
+
'100': string;
|
136
|
+
'200': string;
|
137
|
+
'300': string;
|
138
|
+
'400': string;
|
139
|
+
'500': string;
|
140
|
+
'600': string;
|
141
|
+
'700': string;
|
142
|
+
'800': string;
|
143
|
+
'900': string;
|
144
|
+
};
|
145
|
+
'dove-gray': {
|
146
|
+
'50': string;
|
147
|
+
'100': string;
|
148
|
+
'200': string;
|
149
|
+
'300': string;
|
150
|
+
'400': string;
|
151
|
+
'500': string;
|
152
|
+
'600': string;
|
153
|
+
'700': string;
|
154
|
+
'800': string;
|
155
|
+
'900': string;
|
156
|
+
};
|
157
|
+
};
|
158
|
+
export default colors;
|
@@ -0,0 +1,66 @@
|
|
1
|
+
declare const sizes: {
|
2
|
+
4.5: string;
|
3
|
+
9.5: string;
|
4
|
+
18: string;
|
5
|
+
22: string;
|
6
|
+
26: string;
|
7
|
+
30: string;
|
8
|
+
container: {
|
9
|
+
sm: string;
|
10
|
+
md: string;
|
11
|
+
lg: string;
|
12
|
+
xl: string;
|
13
|
+
};
|
14
|
+
max: string;
|
15
|
+
min: string;
|
16
|
+
full: string;
|
17
|
+
"3xs": string;
|
18
|
+
"2xs": string;
|
19
|
+
xs: string;
|
20
|
+
sm: string;
|
21
|
+
md: string;
|
22
|
+
lg: string;
|
23
|
+
xl: string;
|
24
|
+
"2xl": string;
|
25
|
+
"3xl": string;
|
26
|
+
"4xl": string;
|
27
|
+
"5xl": string;
|
28
|
+
"6xl": string;
|
29
|
+
"7xl": string;
|
30
|
+
"8xl": string;
|
31
|
+
prose: string;
|
32
|
+
px: string;
|
33
|
+
0.5: string;
|
34
|
+
1: string;
|
35
|
+
1.5: string;
|
36
|
+
2: string;
|
37
|
+
2.5: string;
|
38
|
+
3: string;
|
39
|
+
3.5: string;
|
40
|
+
4: string;
|
41
|
+
5: string;
|
42
|
+
6: string;
|
43
|
+
7: string;
|
44
|
+
8: string;
|
45
|
+
9: string;
|
46
|
+
10: string;
|
47
|
+
12: string;
|
48
|
+
14: string;
|
49
|
+
16: string;
|
50
|
+
20: string;
|
51
|
+
24: string;
|
52
|
+
28: string;
|
53
|
+
32: string;
|
54
|
+
36: string;
|
55
|
+
40: string;
|
56
|
+
44: string;
|
57
|
+
48: string;
|
58
|
+
52: string;
|
59
|
+
56: string;
|
60
|
+
60: string;
|
61
|
+
64: string;
|
62
|
+
72: string;
|
63
|
+
80: string;
|
64
|
+
96: string;
|
65
|
+
};
|
66
|
+
export default sizes;
|
@@ -0,0 +1,42 @@
|
|
1
|
+
declare const spacing: {
|
2
|
+
4.5: string;
|
3
|
+
9.5: string;
|
4
|
+
18: string;
|
5
|
+
22: string;
|
6
|
+
26: string;
|
7
|
+
30: string;
|
8
|
+
px: string;
|
9
|
+
0.5: string;
|
10
|
+
1: string;
|
11
|
+
1.5: string;
|
12
|
+
2: string;
|
13
|
+
2.5: string;
|
14
|
+
3: string;
|
15
|
+
3.5: string;
|
16
|
+
4: string;
|
17
|
+
5: string;
|
18
|
+
6: string;
|
19
|
+
7: string;
|
20
|
+
8: string;
|
21
|
+
9: string;
|
22
|
+
10: string;
|
23
|
+
12: string;
|
24
|
+
14: string;
|
25
|
+
16: string;
|
26
|
+
20: string;
|
27
|
+
24: string;
|
28
|
+
28: string;
|
29
|
+
32: string;
|
30
|
+
36: string;
|
31
|
+
40: string;
|
32
|
+
44: string;
|
33
|
+
48: string;
|
34
|
+
52: string;
|
35
|
+
56: string;
|
36
|
+
60: string;
|
37
|
+
64: string;
|
38
|
+
72: string;
|
39
|
+
80: string;
|
40
|
+
96: string;
|
41
|
+
};
|
42
|
+
export default spacing;
|
@@ -0,0 +1,173 @@
|
|
1
|
+
declare const fonts: {
|
2
|
+
heading: string;
|
3
|
+
body: string;
|
4
|
+
};
|
5
|
+
declare const fontWeights: {
|
6
|
+
hairline: number;
|
7
|
+
thin: number;
|
8
|
+
light: number;
|
9
|
+
normal: number;
|
10
|
+
medium: number;
|
11
|
+
semibold: number;
|
12
|
+
bold: number;
|
13
|
+
extrabold: number;
|
14
|
+
black: number;
|
15
|
+
};
|
16
|
+
declare const lineHeights: {
|
17
|
+
normal: string;
|
18
|
+
none: number;
|
19
|
+
shorter: number;
|
20
|
+
short: number;
|
21
|
+
base: number;
|
22
|
+
tall: number;
|
23
|
+
34: string;
|
24
|
+
32: string;
|
25
|
+
30: string;
|
26
|
+
28: string;
|
27
|
+
26: string;
|
28
|
+
24: string;
|
29
|
+
22: string;
|
30
|
+
20: string;
|
31
|
+
18: string;
|
32
|
+
16: string;
|
33
|
+
14: string;
|
34
|
+
12: string;
|
35
|
+
};
|
36
|
+
declare const fontSizes: {
|
37
|
+
heading: {
|
38
|
+
1: string;
|
39
|
+
2: string;
|
40
|
+
3: string;
|
41
|
+
4: string;
|
42
|
+
5: string;
|
43
|
+
6: string;
|
44
|
+
};
|
45
|
+
text: {
|
46
|
+
xl: string;
|
47
|
+
lg: string;
|
48
|
+
md: string;
|
49
|
+
sm: string;
|
50
|
+
xs: string;
|
51
|
+
};
|
52
|
+
button: {
|
53
|
+
lg: string;
|
54
|
+
md: string;
|
55
|
+
sm: string;
|
56
|
+
};
|
57
|
+
field: {
|
58
|
+
lg: string;
|
59
|
+
md: string;
|
60
|
+
sm: string;
|
61
|
+
};
|
62
|
+
table: {
|
63
|
+
header: string;
|
64
|
+
};
|
65
|
+
};
|
66
|
+
declare const textStyles: {
|
67
|
+
heading: {
|
68
|
+
1: {
|
69
|
+
fontSize: string;
|
70
|
+
fontWeight: string;
|
71
|
+
lineHeight: string;
|
72
|
+
letterSpacing: string;
|
73
|
+
};
|
74
|
+
2: {
|
75
|
+
fontSize: string;
|
76
|
+
fontWeight: string;
|
77
|
+
lineHeight: string;
|
78
|
+
letterSpacing: string;
|
79
|
+
};
|
80
|
+
3: {
|
81
|
+
fontSize: string;
|
82
|
+
fontWeight: string;
|
83
|
+
lineHeight: string;
|
84
|
+
letterSpacing: string;
|
85
|
+
};
|
86
|
+
4: {
|
87
|
+
fontSize: string;
|
88
|
+
fontWeight: string;
|
89
|
+
lineHeight: string;
|
90
|
+
letterSpacing: string;
|
91
|
+
};
|
92
|
+
5: {
|
93
|
+
fontSize: string;
|
94
|
+
fontWeight: string;
|
95
|
+
lineHeight: string;
|
96
|
+
letterSpacing: string;
|
97
|
+
};
|
98
|
+
6: {
|
99
|
+
fontSize: string;
|
100
|
+
fontWeight: string;
|
101
|
+
lineHeight: string;
|
102
|
+
letterSpacing: string;
|
103
|
+
};
|
104
|
+
};
|
105
|
+
text: {
|
106
|
+
xl: {
|
107
|
+
fontSize: string;
|
108
|
+
lineHeight: string;
|
109
|
+
letterSpacing: string;
|
110
|
+
};
|
111
|
+
lg: {
|
112
|
+
fontSize: string;
|
113
|
+
lineHeight: string;
|
114
|
+
letterSpacing: string;
|
115
|
+
};
|
116
|
+
md: {
|
117
|
+
fontSize: string;
|
118
|
+
lineHeight: string;
|
119
|
+
letterSpacing: string;
|
120
|
+
};
|
121
|
+
sm: {
|
122
|
+
fontSize: string;
|
123
|
+
lineHeight: string;
|
124
|
+
letterSpacing: string;
|
125
|
+
};
|
126
|
+
xs: {
|
127
|
+
fontSize: string;
|
128
|
+
lineHeight: string;
|
129
|
+
letterSpacing: string;
|
130
|
+
};
|
131
|
+
};
|
132
|
+
button: {
|
133
|
+
lg: {
|
134
|
+
fontSize: string;
|
135
|
+
lineHeight: string;
|
136
|
+
letterSpacing: string;
|
137
|
+
fontWeight: number;
|
138
|
+
};
|
139
|
+
md: {
|
140
|
+
fontSize: string;
|
141
|
+
lineHeight: string;
|
142
|
+
letterSpacing: string;
|
143
|
+
fontWeight: number;
|
144
|
+
};
|
145
|
+
sm: {
|
146
|
+
fontSize: string;
|
147
|
+
lineHeight: string;
|
148
|
+
letterSpacing: string;
|
149
|
+
fontWeight: number;
|
150
|
+
};
|
151
|
+
};
|
152
|
+
field: {
|
153
|
+
lg: {
|
154
|
+
fontSize: string;
|
155
|
+
lineHeight: string;
|
156
|
+
letterSpacing: string;
|
157
|
+
fontWeight: number;
|
158
|
+
};
|
159
|
+
md: {
|
160
|
+
fontSize: string;
|
161
|
+
lineHeight: string;
|
162
|
+
letterSpacing: string;
|
163
|
+
fontWeight: number;
|
164
|
+
};
|
165
|
+
sm: {
|
166
|
+
fontSize: string;
|
167
|
+
lineHeight: string;
|
168
|
+
letterSpacing: string;
|
169
|
+
fontWeight: number;
|
170
|
+
};
|
171
|
+
};
|
172
|
+
};
|
173
|
+
export { fonts, fontSizes, fontWeights, lineHeights, textStyles };
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './themeConfiguration';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import type { FC } from 'react';
|
2
|
+
import type { ProviderContextObject, ProviderProps } from './types';
|
3
|
+
export declare const ProviderContext: import("react").Context<ProviderContextObject>;
|
4
|
+
export declare const useInternalUI: () => ProviderContextObject;
|
5
|
+
declare const Provider: FC<ProviderProps>;
|
6
|
+
export default Provider;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
3
|
+
type RequestInterceptors = (value: AxiosRequestConfig<unknown>) => AxiosRequestConfig<unknown> | Promise<AxiosRequestConfig<unknown>>;
|
4
|
+
type ResponseInterceptors = (value: AxiosResponse<unknown>) => AxiosResponse<unknown> | Promise<AxiosResponse<unknown>>;
|
5
|
+
export type ProviderProps = {
|
6
|
+
children?: React.ReactNode;
|
7
|
+
config?: AxiosRequestConfig<unknown>;
|
8
|
+
requestInterceptors?: RequestInterceptors[];
|
9
|
+
responseInterceptors?: ResponseInterceptors[];
|
10
|
+
};
|
11
|
+
export type ProviderContextObject = {
|
12
|
+
instance?: AxiosInstance;
|
13
|
+
};
|
14
|
+
export {};
|