@carbonorm/carbonreact 1.0.7 → 1.0.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/package.json +3 -2
- package/src/CarbonReact.tsx +136 -0
- package/src/components/Alert/Alert.tsx +210 -0
- package/src/components/Errors/AccessDenied.tsx +32 -0
- package/src/components/Errors/BackendThrowable.tsx +44 -0
- package/src/components/Errors/ErrorHttpCode.tsx +31 -0
- package/src/components/Errors/Localhost.tsx +38 -0
- package/src/components/Errors/PageNotFound.tsx +16 -0
- package/src/components/Errors/style.module.css +108 -0
- package/src/components/Errors/style.module.css.d.ts +34 -0
- package/src/components/Errors/style.module.css.map +1 -0
- package/src/components/Errors/style.module.scss +111 -0
- package/src/components/Errors/style.module.scss.d.ts +34 -0
- package/src/components/Errors/style.module.scss.json +1 -0
- package/src/components/Loading/Loading.tsx +37 -0
- package/src/components/Nest/Nest.tsx +241 -0
- package/src/components/Popup/Popup.tsx +55 -0
- package/src/custom.d.ts +47 -0
- package/src/hoc/GlobalHistory.tsx +11 -0
- package/src/hoc/addValidSQL.tsx +6 -0
- package/src/hoc/axiosInstance.tsx +494 -0
- package/src/hoc/changed.tsx +58 -0
- package/src/hoc/deleteRestfulObjectArrays.tsx +25 -0
- package/src/hoc/getStyles.tsx +44 -0
- package/src/hoc/hexToRgb.tsx +15 -0
- package/src/hoc/isEdgeBrowser.tsx +7 -0
- package/src/hoc/parseMultipleJson.tsx +49 -0
- package/src/hoc/scrollIntoView.tsx +6 -0
- package/src/hoc/setUrl.tsx +49 -0
- package/src/hoc/updateRestfulObjectArrays.tsx +92 -0
- package/src/hoc/uploadImage.tsx +99 -0
- package/src/hoc/windowDimensions.tsx +24 -0
- package/src/index.ts +53 -0
- package/src/style.module.css +261 -0
- package/src/style.module.css.d.ts +44 -0
- package/src/style.module.css.json +1 -0
- package/src/style.module.css.map +1 -0
- package/src/style.module.scss +269 -0
- package/src/style.module.scss.d.ts +44 -0
- package/src/variables/C6.tsx +3317 -0
- package/{dist/CarbonReact.umd.css → src/variables/bootstrap.module.css} +3065 -3561
- package/src/variables/bootstrap.module.css.d.ts +7736 -0
- package/src/variables/bootstrap.module.css.json +1 -0
- package/src/variables/bootstrap.module.css.map +1 -0
- package/src/variables/bootstrap.module.scss +37 -0
- package/src/variables/bootstrap.module.scss.d.ts +7736 -0
- package/src/variables/isProduction.tsx +5 -0
- package/dist/CarbonReact.umd.css.map +0 -1
- package/dist/CarbonReact.umd.js +0 -4653
- package/dist/CarbonReact.umd.js.map +0 -1
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
/* https://stackoverflow.com/questions/41439028/webpack-is-renaming-my-scss-classes */
|
|
2
|
+
|
|
3
|
+
html, body {
|
|
4
|
+
height: 100vh;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@import url("https://fonts.googleapis.com/css?family=Poppins:wght@400,500,600,700,800,900&display=swap");
|
|
10
|
+
@import url("https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css");
|
|
11
|
+
:root {
|
|
12
|
+
/* New color palette */
|
|
13
|
+
--primary_color: #2f80f2;
|
|
14
|
+
--accent_color: #E72E2E;
|
|
15
|
+
/* Secondary color */
|
|
16
|
+
--secondary1: #FF7300;
|
|
17
|
+
--secondary2: #FFA100;
|
|
18
|
+
--secondary3: #F7CD21;
|
|
19
|
+
--secondary4: #41B049;
|
|
20
|
+
--secondary5: #F44C4C;
|
|
21
|
+
/* Neutral color */
|
|
22
|
+
--neutral1: #323233;
|
|
23
|
+
--neutral2: #3F3F40;
|
|
24
|
+
--neutral3: #7D7E80;
|
|
25
|
+
--neutral4: #edeeef;
|
|
26
|
+
--neutral5: #F3F5F8;
|
|
27
|
+
--neutral6: #2d2d2e;
|
|
28
|
+
--neutral7: #252525;
|
|
29
|
+
--neutral8: #1F1F1F;
|
|
30
|
+
--neutral9: #343434;
|
|
31
|
+
--neutral10: #B9B9B9;
|
|
32
|
+
/* Others */
|
|
33
|
+
--card_header: #5FA0FF;
|
|
34
|
+
--card_match_status_ready: #F8E81A;
|
|
35
|
+
--card_match_status_waiting: #DADFE4;
|
|
36
|
+
--profile_bg: #333334;
|
|
37
|
+
--dig-trophies-1: #EBC327;
|
|
38
|
+
--dig-trophies-2: #C6C6D4;
|
|
39
|
+
--dig-trophies-3: #ECB049;
|
|
40
|
+
--dig-light-blue: #5D9EF9;
|
|
41
|
+
--dig-chat-header: #222222;
|
|
42
|
+
--dig-chat-item-header: #A3A3A3;
|
|
43
|
+
--dig-chat-even-row: #3C3C3C;
|
|
44
|
+
--dig-chat-odd-row: #414141;
|
|
45
|
+
--dig-chat-footer-icons: #8E8E8E;
|
|
46
|
+
--dig-logo-fill: #ffffff;
|
|
47
|
+
/* bracket */
|
|
48
|
+
--bracket_team_win_color: #929396;
|
|
49
|
+
--bracket_final_win_color: #FFA102;
|
|
50
|
+
--bracket_lose_color: #636466;
|
|
51
|
+
--bracket_text: #7D7D80;
|
|
52
|
+
/* Social Media Log In Btn Colors */
|
|
53
|
+
--twitch_main: #6441A4;
|
|
54
|
+
--discord_main: #5865F2;
|
|
55
|
+
--facebook_main: #1877F2;
|
|
56
|
+
/* Legacy assets */
|
|
57
|
+
--background_url: url('#');
|
|
58
|
+
--text_body: #F3F5F8;
|
|
59
|
+
--text_inverse_body: #000000;
|
|
60
|
+
--object_body: #000000;
|
|
61
|
+
--highlight_1: #116FD4;
|
|
62
|
+
--highlight_2: #FFFFFF;
|
|
63
|
+
--highlight_3: #000000;
|
|
64
|
+
--highlight_4: #E72E2E;
|
|
65
|
+
--highlight_5: #41B049;
|
|
66
|
+
--highlight_6: #373737;
|
|
67
|
+
--highlight_7: #7d7d7d;
|
|
68
|
+
--highlight_8: #41B049;
|
|
69
|
+
--match_ready: darkgreen;
|
|
70
|
+
--match_started: #41B049;
|
|
71
|
+
--ecomm_sale: #41B049;
|
|
72
|
+
--background_1: #000000;
|
|
73
|
+
--background_2: #116FD4;
|
|
74
|
+
--background_3: #1b1b1b;
|
|
75
|
+
--overlay_opacity: 0.85;
|
|
76
|
+
--mask_opacity: 0.5;
|
|
77
|
+
--disabled_opacity: 0.45;
|
|
78
|
+
--callout_opacity: 0.97;
|
|
79
|
+
--tile_width: 20%;
|
|
80
|
+
--tile_margin_width: 7%;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* https://www.colortools.net/color_complementary.html */
|
|
84
|
+
[data-theme=light] {
|
|
85
|
+
/* New color palette */
|
|
86
|
+
--accent_color: #18D1D1;
|
|
87
|
+
/* Secondary color */
|
|
88
|
+
--secondary1: #008CFF;
|
|
89
|
+
--secondary2: #005EFF;
|
|
90
|
+
/* Others */
|
|
91
|
+
--card_header: #A05F00;
|
|
92
|
+
--dig-logo-fill: #2f80f2;
|
|
93
|
+
/* Neutral color */
|
|
94
|
+
--neutral1: #CDCDCC;
|
|
95
|
+
--neutral2: #C0C0BF;
|
|
96
|
+
--neutral3: #82817F;
|
|
97
|
+
--neutral4: #121110;
|
|
98
|
+
--neutral5: #0C0A07;
|
|
99
|
+
--neutral7: #DADADA;
|
|
100
|
+
--neutral9: #CBCBCB;
|
|
101
|
+
--neutral10: #464646;
|
|
102
|
+
--neutral6: #D2D2D1;
|
|
103
|
+
--neutral8: #E0E0E0;
|
|
104
|
+
--highlight_2: #000000;
|
|
105
|
+
--dig-trophies-2: #39392B;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
a {
|
|
109
|
+
text-decoration: none;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.footer {
|
|
113
|
+
align-self: flex-end;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.container {
|
|
117
|
+
max-width: 1280px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
::-webkit-scrollbar {
|
|
121
|
+
-webkit-appearance: none;
|
|
122
|
+
width: 10px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
::-webkit-scrollbar-thumb {
|
|
126
|
+
border-radius: 5px;
|
|
127
|
+
background-color: var(--primary_color);
|
|
128
|
+
-webkit-box-shadow: var(--primary_color);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
#mainPage {
|
|
132
|
+
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.main {
|
|
136
|
+
display: flex;
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
position: fixed;
|
|
139
|
+
overflow-y: scroll;
|
|
140
|
+
overflow-x: hidden;
|
|
141
|
+
|
|
142
|
+
&.loggedIn {
|
|
143
|
+
top: 120px;
|
|
144
|
+
height: calc(100vh - 120px);
|
|
145
|
+
@media (max-width: 768px){
|
|
146
|
+
margin-top: 60px;
|
|
147
|
+
top: 60px;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@media (min-width: 1024px) {
|
|
152
|
+
top: 60px;
|
|
153
|
+
overflow-y: scroll;
|
|
154
|
+
overflow-x: hidden;
|
|
155
|
+
height: calc(100vh - 60px);
|
|
156
|
+
}
|
|
157
|
+
@media (max-width: 768px){
|
|
158
|
+
margin-top: 60px;
|
|
159
|
+
overflow-x: hidden;
|
|
160
|
+
position: relative;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.main-1 {
|
|
165
|
+
top: 60px;
|
|
166
|
+
position: fixed;
|
|
167
|
+
overflow-y: scroll;
|
|
168
|
+
overflow-x: hidden;
|
|
169
|
+
max-height: calc(100vh - 60px);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.digSecondaryHeader {
|
|
173
|
+
height: 60px;
|
|
174
|
+
list-style: none;
|
|
175
|
+
|
|
176
|
+
&:hover {
|
|
177
|
+
background-color: var(--neutral7);
|
|
178
|
+
transition: all 1s ease;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.hiddenAnchor {
|
|
184
|
+
float: left;
|
|
185
|
+
clear: both
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.mt60 {
|
|
189
|
+
margin-top: 60px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
.notfound {
|
|
194
|
+
height: 500px;
|
|
195
|
+
display: flex;
|
|
196
|
+
flex-direction: column;
|
|
197
|
+
align-items: center;
|
|
198
|
+
justify-content: center
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.notfound_404 {
|
|
202
|
+
position: relative;
|
|
203
|
+
height: 240px;
|
|
204
|
+
|
|
205
|
+
h1 {
|
|
206
|
+
position: absolute;
|
|
207
|
+
left: 50%;
|
|
208
|
+
top: 50%;
|
|
209
|
+
transform: translate(-50%, -50%);
|
|
210
|
+
font-size: 252px;
|
|
211
|
+
font-weight: 900;
|
|
212
|
+
text-transform: uppercase;
|
|
213
|
+
letter-spacing: -40px;
|
|
214
|
+
margin-left: -20px;
|
|
215
|
+
margin-top: 20px
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
.problemBox {
|
|
222
|
+
text-align: center;
|
|
223
|
+
position: absolute;
|
|
224
|
+
top: 30%;
|
|
225
|
+
left: 50%;
|
|
226
|
+
transform: translate(-50%, -50%);
|
|
227
|
+
color: white
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.maintenance {
|
|
231
|
+
height: auto;
|
|
232
|
+
/** background: url(assets/img/maintenance-hero.png) no-repeat center; */
|
|
233
|
+
background-size: cover;
|
|
234
|
+
position: relative;
|
|
235
|
+
padding-top: 600px
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.floatingChatIcon{
|
|
239
|
+
display: flex;
|
|
240
|
+
position: fixed;
|
|
241
|
+
bottom: 1.5em;
|
|
242
|
+
height: 40px;
|
|
243
|
+
width: 40px;
|
|
244
|
+
right: 1.5em;
|
|
245
|
+
z-index: 4;
|
|
246
|
+
background: var(--dig-chat-header);
|
|
247
|
+
justify-content: center;
|
|
248
|
+
align-items: center;
|
|
249
|
+
border: 2px solid var(--neutral2);
|
|
250
|
+
box-shadow: 0 2px 3px 1px #000;
|
|
251
|
+
|
|
252
|
+
svg{
|
|
253
|
+
g{
|
|
254
|
+
fill: var(--secondary2);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.fontWeightLight {
|
|
260
|
+
font-weight: 300 !important;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.fontWeightNormal {
|
|
264
|
+
font-weight: 400 !important;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.fontWeightBold {
|
|
268
|
+
font-weight: 700 !important;
|
|
269
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export type Styles = {
|
|
2
|
+
'container': string;
|
|
3
|
+
'dig_secondary_header': string;
|
|
4
|
+
'dig-secondary-header': string;
|
|
5
|
+
'digSecondaryHeader': string;
|
|
6
|
+
'floating_chat_icon': string;
|
|
7
|
+
'floating-chat-icon': string;
|
|
8
|
+
'floatingChatIcon': string;
|
|
9
|
+
'font_weight_bold': string;
|
|
10
|
+
'font_weight_light': string;
|
|
11
|
+
'font_weight_normal': string;
|
|
12
|
+
'font-weight-bold': string;
|
|
13
|
+
'font-weight-light': string;
|
|
14
|
+
'font-weight-normal': string;
|
|
15
|
+
'fontWeightBold': string;
|
|
16
|
+
'fontWeightLight': string;
|
|
17
|
+
'fontWeightNormal': string;
|
|
18
|
+
'footer': string;
|
|
19
|
+
'hidden_anchor': string;
|
|
20
|
+
'hidden-anchor': string;
|
|
21
|
+
'hiddenAnchor': string;
|
|
22
|
+
'logged_in': string;
|
|
23
|
+
'logged-in': string;
|
|
24
|
+
'loggedIn': string;
|
|
25
|
+
'main': string;
|
|
26
|
+
'main_1': string;
|
|
27
|
+
'main-1': string;
|
|
28
|
+
'main1': string;
|
|
29
|
+
'maintenance': string;
|
|
30
|
+
'mt60': string;
|
|
31
|
+
'notfound': string;
|
|
32
|
+
'notfound_404': string;
|
|
33
|
+
'notfound-404': string;
|
|
34
|
+
'notfound404': string;
|
|
35
|
+
'problem_box': string;
|
|
36
|
+
'problem-box': string;
|
|
37
|
+
'problemBox': string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export type ClassNames = keyof Styles;
|
|
41
|
+
|
|
42
|
+
declare const styles: Styles;
|
|
43
|
+
|
|
44
|
+
export default styles;
|