generated from kubefirst/react-app-template
-
Notifications
You must be signed in to change notification settings - Fork 8
/
custom.d.ts
176 lines (161 loc) · 4.29 KB
/
custom.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
'use client';
import '@lib/styled-components';
import '@mui/material/styles';
declare module '*.css' {
const mapping: Record<string, string>;
export default mapping;
}
declare module '*.webp' {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const content: any;
export default content;
}
declare module '*.svg' {
const content: React.FunctionComponent<React.SVGAttributes<SVGElement>>;
export default content;
}
declare module '*.png' {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const content: any;
export default content;
}
declare module '*.html' {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const content: any;
export default content;
}
// /** styled-components Overrides **/
declare module 'styled-components' {
export interface DefaultTheme {
colors: {
americanGreen: string;
athenaBlue: string;
beluga: string;
black: string;
bleachedSilk: string;
caribeanSea: string;
chineseOrange: string;
danger: string;
dawnDeparts: string;
ferntastic: string;
gravelFint: string;
gray: string;
greenJelly: string;
naivePeach: string;
purpleCabbage: string;
stomyShower: string;
spunPearl: string;
transparentBlue: string;
ultimateGrey: string;
yellowOrange: string;
white: string;
lightGrey: string;
libertyBlue: string;
fireBrick: string;
magnolia: string;
royanPurple: string;
sefidWhite: string;
pastelLightBlue: string;
metro: string;
exclusivePlum: string;
// Kubefirst color palette
americanBlue: string;
childOfLight: string;
moonlessMystery: string;
jordyBlue: string;
primary: string;
saltboxBlue: string;
volcanicSand: string;
washMe: string;
whiteSmoke: string;
};
}
}
/** MUI Overrides **/
declare module '@mui/material/styles' {
interface TypographyVariants {
typography: React.CSSProperties;
h1: React.CSSProperties;
h2: React.CSSProperties;
h3: React.CSSProperties;
h4: React.CSSProperties;
h5: React.CSSProperties;
h6: React.CSSProperties;
subtitle1: React.CSSProperties;
subtitle2: React.CSSProperties;
subtitle3: React.CSSProperties;
labelLarge: React.CSSProperties;
labelMedium: React.CSSProperties;
labelSmall: React.CSSProperties;
buttonSmall: React.CSSProperties;
body1: React.CSSProperties;
body2: React.CSSProperties;
body3: React.CSSProperties;
tooltip: React.CSSProperties;
}
// allow configuration using `createTheme`
interface TypographyVariantsOptions {
typography?: React.CSSProperties;
h1?: React.CSSProperties;
h2?: React.CSSProperties;
h3?: React.CSSProperties;
h4?: React.CSSProperties;
h5?: React.CSSProperties;
h6?: React.CSSProperties;
subtitle1?: React.CSSProperties;
subtitle2?: React.CSSProperties;
subtitle3?: React.CSSProperties;
labelLarge?: React.CSSProperties;
labelMedium?: React.CSSProperties;
labelSmall?: React.CSSProperties;
buttonSmall?: React.CSSProperties;
body1?: React.CSSProperties;
body2?: React.CSSProperties;
body3?: React.CSSProperties;
tooltip?: React.CSSProperties;
}
interface ButtonPropsColorOverrides {
text: true;
}
}
declare module '@mui/material/Button' {
interface ButtonPropsColorOverrides {
text: true;
secondaryDark: true;
subscription: true;
}
}
declare global {
namespace Cypress {
interface Chainable {
openConsole(): Chainable<void>;
}
}
}
declare module 'next-auth' {
/**
* Returned by `useSession`, `getSession` and received as a prop on the `SessionProvider` React Context
*/
interface Profile {
groups: Array<string>;
}
interface Session {
groups: Array<string>;
}
}
declare namespace NodeJS {
export interface ProcessEnv {
readonly API_URL: string;
readonly CLUSTER_ID: string;
readonly CLUSTER_TYPE: string;
readonly DISABLE_TELEMETRY: string;
readonly INSTALL_METHOD: string;
readonly IS_CLUSTER_ZERO: string;
readonly DISABLE_AUTH: string;
readonly KUBEFIRST_VERSION: string;
readonly POSTHOG_KEY: string;
readonly CLIENT_ID: string;
readonly SECRET_ID: string;
readonly DOMAIN: string;
}
}