@equinor/amplify-component-lib 8.9.0 → 8.9.2
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/dist/atoms/hooks/useAmplifyKit.js +1 -1
- package/dist/atoms/index.js +1 -1
- package/dist/atoms/style/colors.d.ts +151 -145
- package/dist/atoms/style/colors.js +1 -1
- package/dist/atoms/style/darkTokens.js +3 -1
- package/dist/atoms/style/index.d.ts +549 -1
- package/dist/atoms/style/index.js +1 -1
- package/dist/atoms/style/lightTokens.js +7 -3
- package/dist/atoms/utils/auth_environment.js +1 -1
- package/dist/atoms/utils/errors.js +1 -1
- package/dist/deprecated/CommentField/CommentField.js +13 -13
- package/dist/index.js +1 -1
- package/dist/molecules/Chip/Chip.styles.js +14 -14
- package/dist/molecules/Dialog/Dialog.d.ts +1 -0
- package/dist/molecules/Dialog/DialogAction.js +1 -1
- package/dist/molecules/FileProgress/FileProgress.d.ts +4 -0
- package/dist/molecules/FileProgress/RegularFileProgress.js +1 -1
- package/dist/molecules/FileUploadArea/FileUploadArea.js +32 -15
- package/dist/molecules/FileUploadArea/UploadIllustration.d.ts +2 -0
- package/dist/molecules/FileUploadArea/UploadIllustration.js +1 -0
- package/dist/molecules/ProfileAvatar/ProfileAvatar.js +8 -3
- package/dist/molecules/RichTextDisplay/RichTextDisplay.d.ts +5 -2
- package/dist/molecules/RichTextDisplay/RichTextDisplay.js +1 -1
- package/dist/molecules/RichTextEditor/EditorProvider.js +1 -1
- package/dist/molecules/RichTextEditor/RichTextEditor.d.ts +1 -0
- package/dist/molecules/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/molecules/RichTextEditor/RichTextEditor.styles.d.ts +1 -0
- package/dist/molecules/RichTextEditor/RichTextEditor.styles.js +14 -14
- package/dist/molecules/RichTextEditor/index.d.ts +1 -0
- package/dist/molecules/RichTextEditor/index.js +1 -1
- package/dist/molecules/SelectionControls/SelectionControls.styles.js +18 -15
- package/dist/organisms/ErrorPage/collections/PageNotFound.js +1 -1
- package/dist/organisms/ErrorPage/collections/Unauthorized.js +2 -2
- package/dist/organisms/FieldSelector/ChangingField.js +4 -4
- package/dist/organisms/SideBar/CreateItem.d.ts +1 -0
- package/dist/organisms/SideBar/CreateItem.js +1 -1
- package/dist/organisms/SideBar/CreateItem.styles.d.ts +4 -1
- package/dist/organisms/SideBar/CreateItem.styles.js +6 -5
- package/dist/organisms/SideBar/SideBar.d.ts +1 -0
- package/dist/organisms/SideBar/SideBar.js +1 -1
- package/dist/organisms/TopBar/Account/Account.d.ts +4 -3
- package/dist/organisms/TopBar/Account/Account.js +1 -1
- package/dist/organisms/TopBar/Account/Account.styles.js +29 -26
- package/dist/organisms/TopBar/Account/AccountAvatar.js +3 -3
- package/dist/organisms/TopBar/Account/AccountButton.js +3 -3
- package/dist/organisms/TopBar/Account/ActiveUserImpersonationButton.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateAvatar.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateButton.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateNewUserButton.js +3 -3
- package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateOrEditUser/CreateOrEditUser.d.ts +0 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateOrEditUser/CreateOrEditUser.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.styles.js +15 -12
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.styles.js +2 -2
- package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.styles.d.ts +3 -0
- package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.styles.js +9 -6
- package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.js +5 -2
- package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.styles.d.ts +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.styles.js +14 -7
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useCreateImpersonation.js +1 -1
- package/dist/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/providers/FeedbackContextProvider.js +1 -1
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/FilterHeader/FilterHeader.js +1 -1
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleasePosts/ReleasePost/ReleasePost.js +1 -1
- package/dist/organisms/TopBar/Resources/Resources.js +5 -5
- package/dist/organisms/TopBar/TransferToAppDialog.js +11 -11
- package/dist/providers/ThemeProvider/ThemeProvider.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,552 @@
|
|
|
1
1
|
import { animation } from './animation';
|
|
2
2
|
import { colors } from './colors';
|
|
3
3
|
import { spacings } from './spacings';
|
|
4
|
-
|
|
4
|
+
declare const shape: {
|
|
5
|
+
_modes: {
|
|
6
|
+
compact: {
|
|
7
|
+
rounded: {
|
|
8
|
+
minHeight: string;
|
|
9
|
+
minWidth: string;
|
|
10
|
+
borderRadius: string;
|
|
11
|
+
};
|
|
12
|
+
button: {
|
|
13
|
+
minHeight: string;
|
|
14
|
+
minWidth: string;
|
|
15
|
+
borderRadius: string;
|
|
16
|
+
};
|
|
17
|
+
toggle: {
|
|
18
|
+
minHeight: string;
|
|
19
|
+
minWidth: string;
|
|
20
|
+
borderRadius: string;
|
|
21
|
+
};
|
|
22
|
+
corners: {
|
|
23
|
+
minHeight: string;
|
|
24
|
+
minWidth: string;
|
|
25
|
+
borderRadius: string;
|
|
26
|
+
};
|
|
27
|
+
icon_button: {
|
|
28
|
+
minHeight: string;
|
|
29
|
+
minWidth: string;
|
|
30
|
+
borderRadius: string;
|
|
31
|
+
};
|
|
32
|
+
straight: {
|
|
33
|
+
minHeight: string;
|
|
34
|
+
minWidth: string;
|
|
35
|
+
borderRadius: string;
|
|
36
|
+
};
|
|
37
|
+
toggle_rounded_border: {
|
|
38
|
+
minHeight: string;
|
|
39
|
+
minWidth: string;
|
|
40
|
+
borderRadius: string;
|
|
41
|
+
};
|
|
42
|
+
toggle_straight_border: {
|
|
43
|
+
minHeight: string;
|
|
44
|
+
minWidth: string;
|
|
45
|
+
borderRadius: string;
|
|
46
|
+
};
|
|
47
|
+
circle: {
|
|
48
|
+
minHeight: string;
|
|
49
|
+
minWidth: string;
|
|
50
|
+
borderRadius: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
toggle_straight_border: {
|
|
55
|
+
minHeight: string;
|
|
56
|
+
minWidth: string;
|
|
57
|
+
borderRadius: string;
|
|
58
|
+
};
|
|
59
|
+
toggle_rounded_border: {
|
|
60
|
+
minHeight: string;
|
|
61
|
+
minWidth: string;
|
|
62
|
+
borderRadius: string;
|
|
63
|
+
};
|
|
64
|
+
circle: {
|
|
65
|
+
minHeight: string;
|
|
66
|
+
minWidth: string;
|
|
67
|
+
borderRadius: string;
|
|
68
|
+
};
|
|
69
|
+
rounded: {
|
|
70
|
+
minHeight: string;
|
|
71
|
+
minWidth: string;
|
|
72
|
+
borderRadius: string;
|
|
73
|
+
};
|
|
74
|
+
button: {
|
|
75
|
+
minHeight: string;
|
|
76
|
+
minWidth: string;
|
|
77
|
+
borderRadius: string;
|
|
78
|
+
};
|
|
79
|
+
toggle: {
|
|
80
|
+
minHeight: string;
|
|
81
|
+
minWidth: string;
|
|
82
|
+
borderRadius: string;
|
|
83
|
+
};
|
|
84
|
+
corners: {
|
|
85
|
+
minHeight: string;
|
|
86
|
+
minWidth: string;
|
|
87
|
+
borderRadius: string;
|
|
88
|
+
};
|
|
89
|
+
icon_button: {
|
|
90
|
+
minHeight: string;
|
|
91
|
+
minWidth: string;
|
|
92
|
+
borderRadius: string;
|
|
93
|
+
};
|
|
94
|
+
field: {
|
|
95
|
+
minHeight: string;
|
|
96
|
+
minWidth: string;
|
|
97
|
+
borderRadius: string;
|
|
98
|
+
};
|
|
99
|
+
straight: {
|
|
100
|
+
minHeight: string;
|
|
101
|
+
minWidth: string;
|
|
102
|
+
borderRadius: string;
|
|
103
|
+
};
|
|
104
|
+
caret: {
|
|
105
|
+
minHeight: string;
|
|
106
|
+
minWidth: string;
|
|
107
|
+
borderRadius: string;
|
|
108
|
+
};
|
|
109
|
+
}, elevation: {
|
|
110
|
+
raised: string;
|
|
111
|
+
none: string;
|
|
112
|
+
overlay: string;
|
|
113
|
+
sticky: string;
|
|
114
|
+
temporary_nav: string;
|
|
115
|
+
above_scrim: string;
|
|
116
|
+
}, typography: {
|
|
117
|
+
heading: {
|
|
118
|
+
h1_bold: {
|
|
119
|
+
color: string;
|
|
120
|
+
fontFamily: string;
|
|
121
|
+
fontSize: string;
|
|
122
|
+
fontWeight: number;
|
|
123
|
+
lineHeight: string;
|
|
124
|
+
textAlign: string;
|
|
125
|
+
};
|
|
126
|
+
h1: {
|
|
127
|
+
color: string;
|
|
128
|
+
fontFamily: string;
|
|
129
|
+
fontSize: string;
|
|
130
|
+
fontWeight: number;
|
|
131
|
+
lineHeight: string;
|
|
132
|
+
textAlign: string;
|
|
133
|
+
};
|
|
134
|
+
h2: {
|
|
135
|
+
color: string;
|
|
136
|
+
fontFamily: string;
|
|
137
|
+
fontSize: string;
|
|
138
|
+
fontWeight: number;
|
|
139
|
+
lineHeight: string;
|
|
140
|
+
textAlign: string;
|
|
141
|
+
};
|
|
142
|
+
h3: {
|
|
143
|
+
color: string;
|
|
144
|
+
fontFamily: string;
|
|
145
|
+
fontSize: string;
|
|
146
|
+
fontWeight: number;
|
|
147
|
+
lineHeight: string;
|
|
148
|
+
textAlign: string;
|
|
149
|
+
};
|
|
150
|
+
h4: {
|
|
151
|
+
color: string;
|
|
152
|
+
fontFamily: string;
|
|
153
|
+
fontSize: string;
|
|
154
|
+
fontWeight: number;
|
|
155
|
+
lineHeight: string;
|
|
156
|
+
textAlign: string;
|
|
157
|
+
};
|
|
158
|
+
h5: {
|
|
159
|
+
color: string;
|
|
160
|
+
fontFamily: string;
|
|
161
|
+
fontSize: string;
|
|
162
|
+
fontWeight: number;
|
|
163
|
+
letterSpacing: string;
|
|
164
|
+
lineHeight: string;
|
|
165
|
+
textAlign: string;
|
|
166
|
+
};
|
|
167
|
+
h6: {
|
|
168
|
+
color: string;
|
|
169
|
+
fontFamily: string;
|
|
170
|
+
fontSize: string;
|
|
171
|
+
fontWeight: number;
|
|
172
|
+
letterSpacing: string;
|
|
173
|
+
lineHeight: string;
|
|
174
|
+
textAlign: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
navigation: {
|
|
178
|
+
menu_title: {
|
|
179
|
+
color: string;
|
|
180
|
+
fontFamily: string;
|
|
181
|
+
fontSize: string;
|
|
182
|
+
fontWeight: number;
|
|
183
|
+
letterSpacing: string;
|
|
184
|
+
lineHeight: string;
|
|
185
|
+
textAlign: string;
|
|
186
|
+
};
|
|
187
|
+
menu_tabs: {
|
|
188
|
+
color: string;
|
|
189
|
+
fontFamily: string;
|
|
190
|
+
fontSize: string;
|
|
191
|
+
fontWeight: number;
|
|
192
|
+
letterSpacing: string;
|
|
193
|
+
lineHeight: string;
|
|
194
|
+
textAlign: string;
|
|
195
|
+
};
|
|
196
|
+
label: {
|
|
197
|
+
color: string;
|
|
198
|
+
fontFamily: string;
|
|
199
|
+
fontSize: string;
|
|
200
|
+
fontWeight: number;
|
|
201
|
+
lineHeight: string;
|
|
202
|
+
textAlign: string;
|
|
203
|
+
};
|
|
204
|
+
drawer_active: {
|
|
205
|
+
color: string;
|
|
206
|
+
fontFamily: string;
|
|
207
|
+
fontSize: string;
|
|
208
|
+
fontWeight: number;
|
|
209
|
+
letterSpacing: string;
|
|
210
|
+
lineHeight: string;
|
|
211
|
+
textAlign: string;
|
|
212
|
+
};
|
|
213
|
+
drawer_inactive: {
|
|
214
|
+
color: string;
|
|
215
|
+
fontFamily: string;
|
|
216
|
+
fontSize: string;
|
|
217
|
+
fontWeight: number;
|
|
218
|
+
letterSpacing: string;
|
|
219
|
+
lineHeight: string;
|
|
220
|
+
textAlign: string;
|
|
221
|
+
};
|
|
222
|
+
button: {
|
|
223
|
+
color: string;
|
|
224
|
+
fontFamily: string;
|
|
225
|
+
fontSize: string;
|
|
226
|
+
fontWeight: number;
|
|
227
|
+
lineHeight: string;
|
|
228
|
+
textAlign: string;
|
|
229
|
+
};
|
|
230
|
+
breadcrumb: {
|
|
231
|
+
color: string;
|
|
232
|
+
fontFamily: string;
|
|
233
|
+
fontSize: string;
|
|
234
|
+
fontWeight: number;
|
|
235
|
+
lineHeight: string;
|
|
236
|
+
textAlign: string;
|
|
237
|
+
};
|
|
238
|
+
breadcrumb_hover: {
|
|
239
|
+
color: string;
|
|
240
|
+
fontFamily: string;
|
|
241
|
+
fontSize: string;
|
|
242
|
+
fontWeight: number;
|
|
243
|
+
lineHeight: string;
|
|
244
|
+
textDecoration: string;
|
|
245
|
+
textAlign: string;
|
|
246
|
+
};
|
|
247
|
+
menu_title_hover: {
|
|
248
|
+
color: string;
|
|
249
|
+
fontFamily: string;
|
|
250
|
+
fontSize: string;
|
|
251
|
+
fontWeight: number;
|
|
252
|
+
letterSpacing: string;
|
|
253
|
+
lineHeight: string;
|
|
254
|
+
textAlign: string;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
input: {
|
|
258
|
+
label: {
|
|
259
|
+
color: string;
|
|
260
|
+
fontFamily: string;
|
|
261
|
+
fontSize: string;
|
|
262
|
+
fontWeight: number;
|
|
263
|
+
lineHeight: string;
|
|
264
|
+
textAlign: string;
|
|
265
|
+
};
|
|
266
|
+
text: {
|
|
267
|
+
color: string;
|
|
268
|
+
fontFamily: string;
|
|
269
|
+
fontSize: string;
|
|
270
|
+
fontWeight: number;
|
|
271
|
+
letterSpacing: string;
|
|
272
|
+
lineHeight: string;
|
|
273
|
+
textAlign: string;
|
|
274
|
+
};
|
|
275
|
+
text_monospaced: {
|
|
276
|
+
fontFeature: string;
|
|
277
|
+
color: string;
|
|
278
|
+
fontFamily: string;
|
|
279
|
+
fontSize: string;
|
|
280
|
+
fontWeight: number;
|
|
281
|
+
letterSpacing: string;
|
|
282
|
+
lineHeight: string;
|
|
283
|
+
textAlign: string;
|
|
284
|
+
};
|
|
285
|
+
helper: {
|
|
286
|
+
color: string;
|
|
287
|
+
fontFamily: string;
|
|
288
|
+
fontSize: string;
|
|
289
|
+
fontWeight: number;
|
|
290
|
+
letterSpacing: string;
|
|
291
|
+
lineHeight: string;
|
|
292
|
+
textAlign: string;
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
paragraph: {
|
|
296
|
+
body_short_italic: {
|
|
297
|
+
color: string;
|
|
298
|
+
fontFamily: string;
|
|
299
|
+
fontSize: string;
|
|
300
|
+
fontWeight: number;
|
|
301
|
+
lineHeight: string;
|
|
302
|
+
fontStyle: string;
|
|
303
|
+
textAlign: string;
|
|
304
|
+
};
|
|
305
|
+
caption: {
|
|
306
|
+
color: string;
|
|
307
|
+
fontFamily: string;
|
|
308
|
+
fontSize: string;
|
|
309
|
+
fontWeight: number;
|
|
310
|
+
lineHeight: string;
|
|
311
|
+
textAlign: string;
|
|
312
|
+
};
|
|
313
|
+
meta: {
|
|
314
|
+
color: string;
|
|
315
|
+
fontFamily: string;
|
|
316
|
+
fontSize: string;
|
|
317
|
+
fontWeight: number;
|
|
318
|
+
lineHeight: string;
|
|
319
|
+
textAlign: string;
|
|
320
|
+
};
|
|
321
|
+
body_short: {
|
|
322
|
+
color: string;
|
|
323
|
+
fontFamily: string;
|
|
324
|
+
fontSize: string;
|
|
325
|
+
fontWeight: number;
|
|
326
|
+
lineHeight: string;
|
|
327
|
+
textAlign: string;
|
|
328
|
+
};
|
|
329
|
+
body_short_bold_italic: {
|
|
330
|
+
color: string;
|
|
331
|
+
fontFamily: string;
|
|
332
|
+
fontSize: string;
|
|
333
|
+
fontWeight: number;
|
|
334
|
+
lineHeight: string;
|
|
335
|
+
fontStyle: string;
|
|
336
|
+
textAlign: string;
|
|
337
|
+
};
|
|
338
|
+
body_short_bold: {
|
|
339
|
+
color: string;
|
|
340
|
+
fontFamily: string;
|
|
341
|
+
fontSize: string;
|
|
342
|
+
fontWeight: number;
|
|
343
|
+
lineHeight: string;
|
|
344
|
+
textAlign: string;
|
|
345
|
+
};
|
|
346
|
+
body_short_link: {
|
|
347
|
+
color: string;
|
|
348
|
+
fontFamily: string;
|
|
349
|
+
fontSize: string;
|
|
350
|
+
fontWeight: number;
|
|
351
|
+
lineHeight: string;
|
|
352
|
+
textDecoration: string;
|
|
353
|
+
textAlign: string;
|
|
354
|
+
};
|
|
355
|
+
overline: {
|
|
356
|
+
color: string;
|
|
357
|
+
fontFamily: string;
|
|
358
|
+
fontSize: string;
|
|
359
|
+
fontWeight: number;
|
|
360
|
+
letterSpacing: string;
|
|
361
|
+
lineHeight: string;
|
|
362
|
+
textTransform: string;
|
|
363
|
+
textAlign: string;
|
|
364
|
+
};
|
|
365
|
+
ingress: {
|
|
366
|
+
color: string;
|
|
367
|
+
fontFamily: string;
|
|
368
|
+
fontSize: string;
|
|
369
|
+
fontWeight: number;
|
|
370
|
+
lineHeight: string;
|
|
371
|
+
textAlign: string;
|
|
372
|
+
};
|
|
373
|
+
body_long: {
|
|
374
|
+
color: string;
|
|
375
|
+
fontFamily: string;
|
|
376
|
+
fontSize: string;
|
|
377
|
+
fontWeight: number;
|
|
378
|
+
lineHeight: string;
|
|
379
|
+
textAlign: string;
|
|
380
|
+
};
|
|
381
|
+
body_long_link: {
|
|
382
|
+
color: string;
|
|
383
|
+
fontFamily: string;
|
|
384
|
+
fontSize: string;
|
|
385
|
+
fontWeight: number;
|
|
386
|
+
lineHeight: string;
|
|
387
|
+
textDecoration: string;
|
|
388
|
+
textAlign: string;
|
|
389
|
+
};
|
|
390
|
+
body_long_italic: {
|
|
391
|
+
color: string;
|
|
392
|
+
fontFamily: string;
|
|
393
|
+
fontSize: string;
|
|
394
|
+
fontWeight: number;
|
|
395
|
+
lineHeight: string;
|
|
396
|
+
fontStyle: string;
|
|
397
|
+
textAlign: string;
|
|
398
|
+
};
|
|
399
|
+
body_long_bold: {
|
|
400
|
+
color: string;
|
|
401
|
+
fontFamily: string;
|
|
402
|
+
fontSize: string;
|
|
403
|
+
fontWeight: number;
|
|
404
|
+
lineHeight: string;
|
|
405
|
+
textAlign: string;
|
|
406
|
+
};
|
|
407
|
+
body_long_bold_italic: {
|
|
408
|
+
color: string;
|
|
409
|
+
fontFamily: string;
|
|
410
|
+
fontSize: string;
|
|
411
|
+
fontWeight: number;
|
|
412
|
+
lineHeight: string;
|
|
413
|
+
fontStyle: string;
|
|
414
|
+
textAlign: string;
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
table: {
|
|
418
|
+
cell_header: {
|
|
419
|
+
color: string;
|
|
420
|
+
fontFamily: string;
|
|
421
|
+
fontSize: string;
|
|
422
|
+
fontWeight: number;
|
|
423
|
+
lineHeight: string;
|
|
424
|
+
textAlign: string;
|
|
425
|
+
};
|
|
426
|
+
cell_text: {
|
|
427
|
+
color: string;
|
|
428
|
+
fontFamily: string;
|
|
429
|
+
fontSize: string;
|
|
430
|
+
fontWeight: number;
|
|
431
|
+
lineHeight: string;
|
|
432
|
+
textAlign: string;
|
|
433
|
+
};
|
|
434
|
+
cell_text_bold: {
|
|
435
|
+
color: string;
|
|
436
|
+
fontFamily: string;
|
|
437
|
+
fontSize: string;
|
|
438
|
+
fontWeight: number;
|
|
439
|
+
lineHeight: string;
|
|
440
|
+
textAlign: string;
|
|
441
|
+
};
|
|
442
|
+
cell_text_link: {
|
|
443
|
+
color: string;
|
|
444
|
+
fontFamily: string;
|
|
445
|
+
fontSize: string;
|
|
446
|
+
fontWeight: number;
|
|
447
|
+
lineHeight: string;
|
|
448
|
+
textDecoration: string;
|
|
449
|
+
textAlign: string;
|
|
450
|
+
};
|
|
451
|
+
cell_numeric_monospaced: {
|
|
452
|
+
fontFeature: string;
|
|
453
|
+
color: string;
|
|
454
|
+
fontFamily: string;
|
|
455
|
+
fontSize: string;
|
|
456
|
+
fontWeight: number;
|
|
457
|
+
lineHeight: string;
|
|
458
|
+
textAlign: string;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
_modes: {
|
|
462
|
+
compact: {
|
|
463
|
+
table: {
|
|
464
|
+
cell_header: {
|
|
465
|
+
color: string;
|
|
466
|
+
fontFamily: string;
|
|
467
|
+
fontSize: string;
|
|
468
|
+
fontWeight: number;
|
|
469
|
+
lineHeight: string;
|
|
470
|
+
textAlign: string;
|
|
471
|
+
};
|
|
472
|
+
cell_text: {
|
|
473
|
+
color: string;
|
|
474
|
+
fontFamily: string;
|
|
475
|
+
fontSize: string;
|
|
476
|
+
fontWeight: number;
|
|
477
|
+
lineHeight: string;
|
|
478
|
+
textAlign: string;
|
|
479
|
+
};
|
|
480
|
+
cell_text_bold: {
|
|
481
|
+
color: string;
|
|
482
|
+
fontFamily: string;
|
|
483
|
+
fontSize: string;
|
|
484
|
+
fontWeight: number;
|
|
485
|
+
lineHeight: string;
|
|
486
|
+
textAlign: string;
|
|
487
|
+
};
|
|
488
|
+
cell_text_link: {
|
|
489
|
+
color: string;
|
|
490
|
+
fontFamily: string;
|
|
491
|
+
fontSize: string;
|
|
492
|
+
fontWeight: number;
|
|
493
|
+
lineHeight: string;
|
|
494
|
+
textDecoration: string;
|
|
495
|
+
textAlign: string;
|
|
496
|
+
};
|
|
497
|
+
cell_numeric_monospaced: {
|
|
498
|
+
fontFeature: string;
|
|
499
|
+
color: string;
|
|
500
|
+
fontFamily: string;
|
|
501
|
+
fontSize: string;
|
|
502
|
+
fontWeight: number;
|
|
503
|
+
lineHeight: string;
|
|
504
|
+
textAlign: string;
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
ui: {
|
|
510
|
+
tooltip: {
|
|
511
|
+
color: string;
|
|
512
|
+
fontFamily: string;
|
|
513
|
+
fontSize: string;
|
|
514
|
+
fontWeight: number;
|
|
515
|
+
lineHeight: string;
|
|
516
|
+
textAlign: string;
|
|
517
|
+
};
|
|
518
|
+
snackbar: {
|
|
519
|
+
color: string;
|
|
520
|
+
fontFamily: string;
|
|
521
|
+
fontSize: string;
|
|
522
|
+
fontWeight: number;
|
|
523
|
+
lineHeight: string;
|
|
524
|
+
textAlign: string;
|
|
525
|
+
};
|
|
526
|
+
accordion_header: {
|
|
527
|
+
color: string;
|
|
528
|
+
fontFamily: string;
|
|
529
|
+
fontSize: string;
|
|
530
|
+
fontWeight: number;
|
|
531
|
+
lineHeight: string;
|
|
532
|
+
textAlign: string;
|
|
533
|
+
};
|
|
534
|
+
chip__badge: {
|
|
535
|
+
color: string;
|
|
536
|
+
fontFamily: string;
|
|
537
|
+
fontSize: string;
|
|
538
|
+
fontWeight: number;
|
|
539
|
+
lineHeight: string;
|
|
540
|
+
textAlign: string;
|
|
541
|
+
};
|
|
542
|
+
chart: {
|
|
543
|
+
color: string;
|
|
544
|
+
fontFamily: string;
|
|
545
|
+
fontSize: string;
|
|
546
|
+
fontWeight: number;
|
|
547
|
+
lineHeight: string;
|
|
548
|
+
textAlign: string;
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
export { spacings, colors, animation, shape, elevation, typography };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{animation}from"./animation.js";export{colors}from"./colors.js";export{spacings}from"./spacings.js";
|
|
1
|
+
import{tokens as o}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";export{animation}from"./animation.js";export{colors}from"./colors.js";export{spacings}from"./spacings.js";const{shape:s,elevation:e,typography:r}=o;export{e as elevation,s as shape,r as typography};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import{css as a}from"styled-components";const
|
|
2
|
-
|
|
1
|
+
import{css as a}from"styled-components";const i=a`
|
|
2
|
+
[data-theme='light'] {
|
|
3
|
+
--amplify_ui_background_light_medium: rgba(235, 235, 235, 1);
|
|
4
|
+
|
|
5
|
+
--amplify_interactive_primary_pressed: rgba(19, 46, 49, 1);
|
|
6
|
+
|
|
3
7
|
--amplify_dataviz_darkblue_default: rgba(0, 71, 153, 1);
|
|
4
8
|
--amplify_dataviz_darkblue_darker: rgba(4, 48, 98, 1);
|
|
5
9
|
--amplify_dataviz_darkblue_lighter: rgba(191, 220, 252, 1);
|
|
@@ -48,4 +52,4 @@ import{css as a}from"styled-components";const r=a`
|
|
|
48
52
|
--amplify_dataviz_lightgray_darker: rgba(91, 102, 108, 1);
|
|
49
53
|
--amplify_dataviz_lightgray_lighter: rgba(194, 200, 204, 1);
|
|
50
54
|
}
|
|
51
|
-
`;export{
|
|
55
|
+
`;export{i as lightTokens};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{PublicClientApplication as e}from"@azure/msal-browser";import{EnvironmentType as t}from"../enums/Environment.js";const o=["IS_MOCK","ALLOWED_PARENT_DOMAINS","SERVICE_NOW_CONFIGURATION_ITEM","API_CLIENT_ID"],i=e=>{if(!window._env_)return"";if(void 0===window._env_[e]&&!o.includes(e))throw new Error("Missing required environment variable: "+e);return window._env_[e]},n=e=>e||i("CLIENT_ID"),r=e=>e||i("API_SCOPE"),s=e=>void 0!==e&&"true"===e;const a=function(){let e=import.meta.env.VITE_ENVIRONMENT_NAME;return e||(e=i("ENVIRONMENT_NAME")),e===t.PRODUCTION?"
|
|
1
|
+
import{PublicClientApplication as e}from"@azure/msal-browser";import{EnvironmentType as t}from"../enums/Environment.js";const o=["IS_MOCK","ALLOWED_PARENT_DOMAINS","SERVICE_NOW_CONFIGURATION_ITEM","API_CLIENT_ID"],i=e=>{if(!window._env_)return"";if(void 0===window._env_[e]&&!o.includes(e))throw new Error("Missing required environment variable: "+e);return window._env_[e]},n=e=>e||i("CLIENT_ID"),r=e=>e||i("API_SCOPE"),s=e=>void 0!==e&&"true"===e;const a=function(){let e=import.meta.env.VITE_ENVIRONMENT_NAME;return e||(e=i("ENVIRONMENT_NAME")),e===t.PRODUCTION?"https://jsembark.equinor.com":`https://client-amplify-portal-${e===t.LOCALHOST?t.DEVELOP:e}.radix.equinor.com`}(),E={OPENID:"openid",PROFILE:"profile",USER_READ:"User.Read"},c={scopes:[E.OPENID,E.PROFILE,E.USER_READ]},I={scopes:[E.USER_READ]},_=e=>({scopes:[e]}),A=new e({auth:{clientId:n(import.meta.env.VITE_CLIENT_ID),authority:"https://login.microsoftonline.com/StatoilSRM.onmicrosoft.com/",redirectUri:window.location.origin},cache:{cacheLocation:"localStorage",storeAuthStateInCookie:!1}}),O=(l=import.meta.env.ALLOWED_PARENT_DOMAINS)?l.split(";"):i("ALLOWED_PARENT_DOMAINS")?.split(";")||[];var l;window.addEventListener("message",(async e=>{if(O.includes(e.origin)){const t=e.data;if(t){await A.initialize();try{await A.ssoSilent({sid:t}),console.log("postMessage successfully logged in user!")}catch(e){console.error("Something went wrong with postMessage"),console.error(e)}}}}));const m={fetchMsGraph:(e,t)=>fetch(e,{headers:{Authorization:`Bearer ${t}`}}),GRAPH_SCOPES:E,GRAPH_REQUESTS_LOGIN:c,GRAPH_REQUESTS_PHOTO:I,GRAPH_REQUESTS_BACKEND:_,GRAPH_ENDPOINTS:{PHOTO:"https://graph.microsoft.com/v1.0/me/photos/96x96/$value"},msalApp:A,getToken:async()=>{if(s(import.meta.env.VITE_IS_MOCK))return"";const e=A.getActiveAccount(),t=A.getAllAccounts();if(!e&&0===t.length)return"";return(await A.acquireTokenSilent(_(r(import.meta.env.VITE_API_SCOPE)))).accessToken},isReaderOnly:e=>{if(e){return!e.some((e=>e.includes("WRITE")))}return!0},isInIframe:()=>window.self!==window.top},N={getConfig:i,getAppName:e=>e||i("NAME"),getClientId:n,getApiUrl:e=>e||i("API_URL"),getApiScope:r,getApiClientId:e=>e||i("API_CLIENT_ID"),getEnvironmentName:e=>e||i("ENVIRONMENT_NAME"),getIsMock:s,getMockUserPhoto:e=>{if(void 0!==e)return"https://avatars.githubusercontent.com/u/97165289"},getMockRoles:e=>void 0===e?["admin"]:JSON.parse(e),getServiceNowConfigurationItem:e=>e||i("SERVICE_NOW_CONFIGURATION_ITEM"),PORTAL_URL_WITHOUT_LOCALHOST:a};export{m as auth,N as environment};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import"react";import"../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../molecules/RichTextEditor/MenuBar/MenuBar.js";import"@tiptap/react";import"../../molecules/RichTextEditor/RichTextEditor.styles.js";import"../../molecules/AnimatedCheckmark/AnimatedCheckmark.styles.js";import"../../molecules/ApplicationIcon/ApplicationIcon.js";import"../../molecules/Badge/Badge.styles.js";import"@equinor/eds-core-react";import"../../molecules/Banner/Banner.styles.js";import"@equinor/eds-icons";import"../../molecules/Chip/Chip.js";import"../../molecules/ContentMenu/ContentMenu.js";import"../../molecules/Dialog/Dialog.js";import"../../molecules/EquinorLogo/EquinorLogo.js";import"../style/colors.js";import"../../molecules/FileProgress/CompactFileProgress.styles.js";import"proj4";import"../../molecules/RichTextEditor/RichTextEditor.types.js";import"./auth_environment.js";import"html2canvas";import"../../molecules/FileProgress/RegularFileProgress.styles.js";import"../../molecules/FileUploadArea/FileUploadArea.js";import"../../molecules/FullPageSpinner/FullPageSpinner.js";import"../../molecules/InfoElement/InfoElement.js";import"../../molecules/OptionalTooltip/OptionalTooltip.js";import"../../molecules/ProfileAvatar/ProfileAvatar.js";import"../../molecules/RichTextEditor/MenuBar/MenuBar.styles.js";import"../../molecules/RichTextEditor/MenuBar/MenuButton.js";import"../../molecules/Search/Search.js";import"react-router-dom";import"../../molecules/Sieve/Sieve.styles.js";import"../../node_modules/lodash/lodash.js";import"../../molecules/SingleFilterMenu/SingleFilterMenu.js";import"../../molecules/Skeleton/SkeletonBase/SkeletonBase.js";import"../../molecules/Stepper/Stepper.js";import"../../molecules/OptionDrawer/OptionDrawer.js";import"../../molecules/Select/Select.styles.js";import"../../molecules/ListItem/ListItem.js";import"../../molecules/SelectionControls/Checkbox/Checkbox.js";import"../../molecules/SelectionControls/Radio/Radio.js";import"../../molecules/SelectionControls/Switch/Switch.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../enums/Environment.js";import"../../organisms/TopBar/Notifications/NotificationProvider.js";import"../../providers/AuthProvider/AuthProvider.js";import"../../providers/ReleaseNotesProvider.js";import"../../providers/SideBarProvider.js";import"../../providers/SnackbarProvider/SnackbarProvider.js";import"../../providers/TableOfContentsProvider.js";import"../../providers/ThemeProvider/ThemeProvider.js";import"../../providers/TutorialStepsProvider.js";import{ErrorType as o}from"../enums/Errors.js";import"../enums/Theme.js";import{GlitchAnimation as t}from"../../organisms/ErrorPage/illustrations/GlitchAnimation.js";import{QuestioningAnimation as r}from"../../organisms/ErrorPage/illustrations/QuestioningAnimation.js";const i=i=>[{type:o.DEFAULT,illustration:e(r,{}),title:"Oops! Something went wrong.",description:"Try again later or use our feedback form if the problem persists."},{type:o.ERROR_400,illustration:e(r,{}),title:"Bad Request, oh no!",description:"We got a little confused by your request. Try again later, or report the bug in the feedback form in the topbar if the problem persist."},{type:o.ERROR_401,illustration:e(t,{}),title:`You don’t have access to ${i}.`,description:`Beep boop, dont worry! You can apply for ${i} in AccessIT`,button:{text:"Apply for access",onClick:()=>window.open("https://accessit.equinor.com/#","_blank")}},{type:o.ERROR_403,illustration:e(t,{}),title:"It looks like you don't have permission to access this page.",description:""},{type:o.ERROR_404,illustration:e(r,{}),title:"Page not found!",description:"It looks like the page you're looking for has gone missing. Please check the URL and try again."},{type:o.ERROR_500,illustration:e(t,{}),title:"Oops, our server just hiccuped!",description:"It looks like the page you're looking for has gone missing. Please check the URL and try again."}],s=(e,t)=>{const r=i(e).find((e=>e.type===t));return r||i(e).find((e=>e.type===o.DEFAULT))};export{s as getErrorContent,i as getListOfErrors};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import{jsx as
|
|
2
|
-
padding-left: ${
|
|
3
|
-
margin-bottom: ${
|
|
1
|
+
import{jsx as e,jsxs as o}from"react/jsx-runtime";import{useState as t,useEffect as r}from"react";import{Button as i,TextField as s,Icon as l}from"@equinor/eds-core-react";import{delete_to_trash as m}from"@equinor/eds-icons";import{tokens as n}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import"../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../molecules/RichTextEditor/MenuBar/MenuBar.js";import"@tiptap/react";import"../../molecules/RichTextEditor/RichTextEditor.styles.js";import"../../molecules/AnimatedCheckmark/AnimatedCheckmark.styles.js";import"../../molecules/ApplicationIcon/ApplicationIcon.js";import"../../molecules/Badge/Badge.styles.js";import"../../molecules/Banner/Banner.styles.js";import"../../molecules/Chip/Chip.js";import"../../molecules/ContentMenu/ContentMenu.js";import"../../molecules/Dialog/Dialog.js";import"../../molecules/EquinorLogo/EquinorLogo.js";import"../../atoms/style/colors.js";import{spacings as a}from"../../atoms/style/spacings.js";import"../../molecules/FileProgress/CompactFileProgress.styles.js";import{date as p}from"../../atoms/utils/index.js";import"../../molecules/FileProgress/RegularFileProgress.styles.js";import"../../molecules/FileUploadArea/FileUploadArea.js";import"../../molecules/FullPageSpinner/FullPageSpinner.js";import"../../molecules/InfoElement/InfoElement.js";import"../../molecules/OptionalTooltip/OptionalTooltip.js";import"../../molecules/ProfileAvatar/ProfileAvatar.js";import"../../molecules/RichTextEditor/MenuBar/MenuBar.styles.js";import"../../molecules/RichTextEditor/MenuBar/MenuButton.js";import"../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../molecules/Search/Search.js";import"react-router-dom";import"../../molecules/Sieve/Sieve.styles.js";import"../../node_modules/lodash/lodash.js";import"../../molecules/SingleFilterMenu/SingleFilterMenu.js";import"../../molecules/Skeleton/SkeletonBase/SkeletonBase.js";import"../../molecules/Stepper/Stepper.js";import"../../molecules/OptionDrawer/OptionDrawer.js";import"../../molecules/Select/Select.styles.js";import"../../molecules/ListItem/ListItem.js";import"../../molecules/SelectionControls/Checkbox/Checkbox.js";import"../../molecules/SelectionControls/Radio/Radio.js";import"../../molecules/SelectionControls/Switch/Switch.js";import{useDebounce as c}from"../../atoms/hooks/useDebounce.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../atoms/enums/Environment.js";import"../../atoms/utils/auth_environment.js";import"../../organisms/TopBar/Notifications/NotificationProvider.js";import"../../providers/AuthProvider/AuthProvider.js";import"../../providers/ReleaseNotesProvider.js";import"../../providers/SideBarProvider.js";import"../../providers/SnackbarProvider/SnackbarProvider.js";import"../../providers/TableOfContentsProvider.js";import"../../providers/ThemeProvider/ThemeProvider.js";import"../../providers/TutorialStepsProvider.js";import u from"styled-components";const{colors:d}=n,j=u.div`
|
|
2
|
+
padding-left: ${a.small};
|
|
3
|
+
margin-bottom: ${a.small};
|
|
4
4
|
padding-top: 1em;
|
|
5
|
-
`,h=
|
|
5
|
+
`,h=u.div`
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
|
-
`,
|
|
8
|
+
`,g=u.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
position: relative;
|
|
11
11
|
align-items: center;
|
|
12
12
|
width: 100%;
|
|
13
13
|
padding-top: 3px;
|
|
14
14
|
padding-bottom: 3px;
|
|
15
|
-
`,
|
|
16
|
-
color: ${
|
|
15
|
+
`,v=u(i)`
|
|
16
|
+
color: ${d.text.static_icons__tertiary.rgba};
|
|
17
17
|
margin-top: 4px;
|
|
18
|
-
width: ${
|
|
19
|
-
height: ${
|
|
18
|
+
width: ${a.xxx_large};
|
|
19
|
+
height: ${a.xxx_large};
|
|
20
20
|
&:hover {
|
|
21
21
|
border-radius: 0;
|
|
22
22
|
}
|
|
23
|
-
`,
|
|
23
|
+
`,x=u(s)`
|
|
24
24
|
background: none;
|
|
25
25
|
|
|
26
26
|
div:focus-within {
|
|
@@ -31,10 +31,10 @@ import{jsx as o,jsxs as e}from"react/jsx-runtime";import{useState as r,useEffect
|
|
|
31
31
|
background: none;
|
|
32
32
|
outline: none;
|
|
33
33
|
box-shadow: none;
|
|
34
|
-
color: ${
|
|
34
|
+
color: ${d.text.static_icons__default.rgba};
|
|
35
35
|
&:focus {
|
|
36
36
|
outline: none;
|
|
37
|
-
box-shadow: inset 0 -2px 0 0 ${
|
|
37
|
+
box-shadow: inset 0 -2px 0 0 ${d.interactive.primary__resting.rgba};
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
`,
|
|
40
|
+
`,f=({value:i,createdDate:s,onChange:n,onDelete:a,id:u})=>{const[f,S]=t(i),b=c(f,600);return r((()=>{b!==i&&n(b)}),[b,i,n]),e(j,{children:e(h,{children:o(g,{children:[e(x,{id:`comment-${u}`,autoComplete:"off",label:`Posted ${p.formatDateTime(s)}`,value:f,placeholder:"Write comment here",onInput:e=>{const o=e.target.value;S(o)}}),e(v,{variant:"ghost_icon",onClick:()=>a(u),children:e(l,{name:"delete",size:24,color:d.interactive.primary__resting.rgba,data:m})})]})})})};export{f as default};
|