@guardian/stand 0.0.16 → 0.0.18
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/README.md +1 -0
- package/dist/TopBar.cjs +9 -3
- package/dist/TopBar.js +4 -1
- package/dist/avatarButton.cjs +7 -0
- package/dist/avatarButton.js +1 -0
- package/dist/avatarLink.cjs +7 -0
- package/dist/avatarLink.js +1 -0
- package/dist/components/avatar/styles.cjs +24 -0
- package/dist/components/avatar/styles.js +24 -0
- package/dist/components/avatar-button/AvatarButton.cjs +14 -0
- package/dist/components/avatar-button/AvatarButton.js +12 -0
- package/dist/components/avatar-button/styles.cjs +29 -0
- package/dist/components/avatar-button/styles.js +26 -0
- package/dist/components/avatar-link/AvatarLink.cjs +14 -0
- package/dist/components/avatar-link/AvatarLink.js +12 -0
- package/dist/components/avatar-link/styles.cjs +24 -0
- package/dist/components/avatar-link/styles.js +21 -0
- package/dist/components/button/Button.cjs +1 -1
- package/dist/components/button/Button.js +1 -1
- package/dist/components/icon-button/IconButton.cjs +1 -1
- package/dist/components/icon-button/IconButton.js +1 -1
- package/dist/components/icon-link-button/IconLinkButton.cjs +1 -1
- package/dist/components/icon-link-button/IconLinkButton.js +1 -1
- package/dist/components/inline-message/InlineMessage.cjs +56 -0
- package/dist/components/inline-message/InlineMessage.js +27 -0
- package/dist/components/inline-message/styles.cjs +17 -0
- package/dist/components/inline-message/styles.js +14 -0
- package/dist/components/link-button/LinkButton.cjs +1 -1
- package/dist/components/link-button/LinkButton.js +1 -1
- package/dist/components/menu/styles.cjs +1 -0
- package/dist/components/menu/styles.js +1 -0
- package/dist/components/topbar/TopBar.cjs +101 -0
- package/dist/components/topbar/TopBar.js +63 -0
- package/dist/components/topbar/styles.cjs +30 -0
- package/dist/components/topbar/styles.js +25 -0
- package/dist/components/topbar/topBarItem/TopBarItem.cjs +28 -0
- package/dist/components/topbar/topBarItem/TopBarItem.js +10 -0
- package/dist/components/topbar/topBarItem/styles.cjs +20 -0
- package/dist/components/topbar/topBarItem/styles.js +17 -0
- package/dist/components/topbar/topBarNavigation/TopBarNavigation.cjs +70 -0
- package/dist/components/topbar/topBarNavigation/TopBarNavigation.js +23 -0
- package/dist/components/topbar/topBarNavigation/styles.cjs +68 -0
- package/dist/components/topbar/topBarNavigation/styles.js +61 -0
- package/dist/components/topbar/{toolName → topBarToolName}/TopBarToolName.cjs +3 -2
- package/dist/components/topbar/topBarToolName/TopBarToolName.js +13 -0
- package/dist/index.cjs +2 -0
- package/dist/index.js +1 -0
- package/dist/inline-message.cjs +9 -0
- package/dist/inline-message.js +2 -0
- package/dist/styleD/build/css/base/typography.css +3 -3
- package/dist/styleD/build/css/component/TopBar.css +55 -1
- package/dist/styleD/build/css/component/avatar.css +32 -1
- package/dist/styleD/build/css/component/button.css +177 -255
- package/dist/styleD/build/css/component/favicon.css +1 -1
- package/dist/styleD/build/css/component/inlineMessage.css +17 -0
- package/dist/styleD/build/css/component/menu.css +5 -4
- package/dist/styleD/build/css/component/tagAutocomplete.css +1 -1
- package/dist/styleD/build/css/component/tagTable.css +1 -1
- package/dist/styleD/build/css/component/topBarItem.css +7 -0
- package/dist/styleD/build/css/component/userMenu.css +6 -6
- package/dist/styleD/build/css/semantic/colors.css +45 -46
- package/dist/styleD/build/css/semantic/sizing.css +1 -0
- package/dist/styleD/build/css/semantic/typography.css +68 -30
- package/dist/styleD/build/typescript/base/typography.cjs +3 -3
- package/dist/styleD/build/typescript/base/typography.js +3 -3
- package/dist/styleD/build/typescript/component/TopBar.cjs +94 -0
- package/dist/styleD/build/typescript/component/TopBar.js +94 -0
- package/dist/styleD/build/typescript/component/avatar.cjs +95 -12
- package/dist/styleD/build/typescript/component/avatar.js +95 -12
- package/dist/styleD/build/typescript/component/button.cjs +5 -130
- package/dist/styleD/build/typescript/component/button.js +5 -130
- package/dist/styleD/build/typescript/component/inlineMessage.cjs +28 -0
- package/dist/styleD/build/typescript/component/inlineMessage.js +26 -0
- package/dist/styleD/build/typescript/component/menu.cjs +2 -1
- package/dist/styleD/build/typescript/component/menu.js +2 -1
- package/dist/styleD/build/typescript/semantic/colors.cjs +47 -52
- package/dist/styleD/build/typescript/semantic/colors.js +47 -52
- package/dist/styleD/build/typescript/semantic/sizing.cjs +1 -0
- package/dist/styleD/build/typescript/semantic/sizing.js +1 -0
- package/dist/styleD/build/typescript/semantic/typography.cjs +50 -0
- package/dist/styleD/build/typescript/semantic/typography.js +50 -0
- package/dist/types/TopBar.d.ts +12 -3
- package/dist/types/avatar-button.d.ts +18 -0
- package/dist/types/avatar-link.d.ts +18 -0
- package/dist/types/components/avatar-button/AvatarButton.d.ts +2 -0
- package/dist/types/components/avatar-button/sandbox.d.ts +5 -0
- package/dist/types/components/avatar-button/styles.d.ts +6 -0
- package/dist/types/components/avatar-button/types.d.ts +3 -0
- package/dist/types/components/avatar-link/AvatarLink.d.ts +2 -0
- package/dist/types/components/avatar-link/sandbox.d.ts +5 -0
- package/dist/types/components/avatar-link/styles.d.ts +6 -0
- package/dist/types/components/avatar-link/types.d.ts +3 -0
- package/dist/types/components/button/sandbox.d.ts +4 -4
- package/dist/types/components/button/types.d.ts +1 -1
- package/dist/types/components/icon-button/sandbox.d.ts +4 -4
- package/dist/types/components/icon-button/styles.d.ts +3 -128
- package/dist/types/components/icon-button/types.d.ts +1 -1
- package/dist/types/components/icon-link-button/sandbox.d.ts +4 -4
- package/dist/types/components/icon-link-button/styles.d.ts +3 -128
- package/dist/types/components/icon-link-button/types.d.ts +1 -1
- package/dist/types/components/inline-message/InlineMessage.d.ts +2 -0
- package/dist/types/components/inline-message/sandbox.d.ts +5 -0
- package/dist/types/components/inline-message/styles.d.ts +8 -0
- package/dist/types/components/inline-message/types.d.ts +21 -0
- package/dist/types/components/link-button/sandbox.d.ts +4 -4
- package/dist/types/components/link-button/styles.d.ts +3 -128
- package/dist/types/components/link-button/types.d.ts +1 -1
- package/dist/types/components/topbar/TopBar.d.ts +8 -0
- package/dist/types/components/topbar/sandbox.d.ts +5 -0
- package/dist/types/components/topbar/styles.d.ts +9 -0
- package/dist/types/components/topbar/topBarItem/TopBarItem.d.ts +2 -0
- package/dist/types/components/topbar/topBarItem/sandbox.d.ts +5 -0
- package/dist/types/components/topbar/topBarItem/styles.d.ts +8 -0
- package/dist/types/components/topbar/topBarItem/types.d.ts +14 -0
- package/dist/types/components/topbar/topBarNavigation/TopBarNavigation.d.ts +2 -0
- package/dist/types/components/topbar/topBarNavigation/sandbox.d.ts +5 -0
- package/dist/types/components/topbar/topBarNavigation/styles.d.ts +12 -0
- package/dist/types/components/topbar/topBarNavigation/types.d.ts +44 -0
- package/dist/types/components/topbar/types.d.ts +3 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/inline-message.d.ts +19 -0
- package/dist/types/styleD/build/typescript/base/typography.d.ts +3 -3
- package/dist/types/styleD/build/typescript/component/TopBar.d.ts +94 -0
- package/dist/types/styleD/build/typescript/component/avatar.d.ts +83 -0
- package/dist/types/styleD/build/typescript/component/button.d.ts +3 -128
- package/dist/types/styleD/build/typescript/component/inlineMessage.d.ts +28 -0
- package/dist/types/styleD/build/typescript/component/menu.d.ts +1 -0
- package/dist/types/styleD/build/typescript/semantic/colors.d.ts +44 -49
- package/dist/types/styleD/build/typescript/semantic/sizing.d.ts +1 -0
- package/dist/types/styleD/build/typescript/semantic/typography.d.ts +50 -0
- package/dist/util/css/reset.css +10 -0
- package/dist/util/reset.css.cjs +1 -1
- package/dist/util/reset.css.js +1 -1
- package/package.json +35 -18
- package/dist/components/topbar/toolName/TopBarToolName.js +0 -12
- /package/dist/components/topbar/{toolName → topBarToolName}/styles.cjs +0 -0
- /package/dist/components/topbar/{toolName → topBarToolName}/styles.js +0 -0
- /package/dist/types/components/topbar/{toolName → topBarToolName}/TopBarToolName.d.ts +0 -0
- /package/dist/types/components/topbar/{toolName → topBarToolName}/sandbox.d.ts +0 -0
- /package/dist/types/components/topbar/{toolName → topBarToolName}/styles.d.ts +0 -0
- /package/dist/types/components/topbar/{toolName → topBarToolName}/types.d.ts +0 -0
|
@@ -19,7 +19,7 @@ export declare const componentButton: {
|
|
|
19
19
|
'outline-offset': string;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
primary: {
|
|
23
23
|
shared: {
|
|
24
24
|
color: string;
|
|
25
25
|
backgroundColor: string;
|
|
@@ -144,7 +144,7 @@ export declare const componentButton: {
|
|
|
144
144
|
};
|
|
145
145
|
};
|
|
146
146
|
};
|
|
147
|
-
|
|
147
|
+
secondary: {
|
|
148
148
|
shared: {
|
|
149
149
|
color: string;
|
|
150
150
|
backgroundColor: string;
|
|
@@ -269,132 +269,7 @@ export declare const componentButton: {
|
|
|
269
269
|
};
|
|
270
270
|
};
|
|
271
271
|
};
|
|
272
|
-
|
|
273
|
-
shared: {
|
|
274
|
-
color: string;
|
|
275
|
-
backgroundColor: string;
|
|
276
|
-
borderRadius: string;
|
|
277
|
-
border: string;
|
|
278
|
-
':hover': {
|
|
279
|
-
backgroundColor: string;
|
|
280
|
-
border: string;
|
|
281
|
-
};
|
|
282
|
-
':active': {
|
|
283
|
-
backgroundColor: string;
|
|
284
|
-
border: string;
|
|
285
|
-
};
|
|
286
|
-
':disabled': {
|
|
287
|
-
color: string;
|
|
288
|
-
backgroundColor: string;
|
|
289
|
-
border: string;
|
|
290
|
-
};
|
|
291
|
-
};
|
|
292
|
-
xs: {
|
|
293
|
-
height: string;
|
|
294
|
-
padding: {
|
|
295
|
-
top: string;
|
|
296
|
-
right: string;
|
|
297
|
-
bottom: string;
|
|
298
|
-
left: string;
|
|
299
|
-
withIcon: {
|
|
300
|
-
iconLeft: {
|
|
301
|
-
left: string;
|
|
302
|
-
};
|
|
303
|
-
};
|
|
304
|
-
};
|
|
305
|
-
typography: {
|
|
306
|
-
font: string;
|
|
307
|
-
letterSpacing: string;
|
|
308
|
-
fontWidth: number;
|
|
309
|
-
};
|
|
310
|
-
icon: {
|
|
311
|
-
size: string;
|
|
312
|
-
gap: string;
|
|
313
|
-
};
|
|
314
|
-
iconButton: {
|
|
315
|
-
width: string;
|
|
316
|
-
};
|
|
317
|
-
};
|
|
318
|
-
sm: {
|
|
319
|
-
height: string;
|
|
320
|
-
padding: {
|
|
321
|
-
top: string;
|
|
322
|
-
right: string;
|
|
323
|
-
bottom: string;
|
|
324
|
-
left: string;
|
|
325
|
-
withIcon: {
|
|
326
|
-
iconLeft: {
|
|
327
|
-
left: string;
|
|
328
|
-
};
|
|
329
|
-
};
|
|
330
|
-
};
|
|
331
|
-
typography: {
|
|
332
|
-
font: string;
|
|
333
|
-
letterSpacing: string;
|
|
334
|
-
fontWidth: number;
|
|
335
|
-
};
|
|
336
|
-
icon: {
|
|
337
|
-
size: string;
|
|
338
|
-
gap: string;
|
|
339
|
-
};
|
|
340
|
-
iconButton: {
|
|
341
|
-
width: string;
|
|
342
|
-
};
|
|
343
|
-
};
|
|
344
|
-
md: {
|
|
345
|
-
height: string;
|
|
346
|
-
padding: {
|
|
347
|
-
top: string;
|
|
348
|
-
right: string;
|
|
349
|
-
bottom: string;
|
|
350
|
-
left: string;
|
|
351
|
-
withIcon: {
|
|
352
|
-
iconLeft: {
|
|
353
|
-
left: string;
|
|
354
|
-
};
|
|
355
|
-
};
|
|
356
|
-
};
|
|
357
|
-
typography: {
|
|
358
|
-
font: string;
|
|
359
|
-
letterSpacing: string;
|
|
360
|
-
fontWidth: number;
|
|
361
|
-
};
|
|
362
|
-
icon: {
|
|
363
|
-
size: string;
|
|
364
|
-
gap: string;
|
|
365
|
-
};
|
|
366
|
-
iconButton: {
|
|
367
|
-
width: string;
|
|
368
|
-
};
|
|
369
|
-
};
|
|
370
|
-
lg: {
|
|
371
|
-
height: string;
|
|
372
|
-
padding: {
|
|
373
|
-
top: string;
|
|
374
|
-
right: string;
|
|
375
|
-
bottom: string;
|
|
376
|
-
left: string;
|
|
377
|
-
withIcon: {
|
|
378
|
-
iconLeft: {
|
|
379
|
-
left: string;
|
|
380
|
-
};
|
|
381
|
-
};
|
|
382
|
-
};
|
|
383
|
-
typography: {
|
|
384
|
-
font: string;
|
|
385
|
-
letterSpacing: string;
|
|
386
|
-
fontWidth: number;
|
|
387
|
-
};
|
|
388
|
-
icon: {
|
|
389
|
-
size: string;
|
|
390
|
-
gap: string;
|
|
391
|
-
};
|
|
392
|
-
iconButton: {
|
|
393
|
-
width: string;
|
|
394
|
-
};
|
|
395
|
-
};
|
|
396
|
-
};
|
|
397
|
-
'neutral-secondary': {
|
|
272
|
+
tertiary: {
|
|
398
273
|
shared: {
|
|
399
274
|
color: string;
|
|
400
275
|
backgroundColor: string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
export declare const componentInlineMessage: {
|
|
5
|
+
shared: {
|
|
6
|
+
display: string;
|
|
7
|
+
gap: string;
|
|
8
|
+
'align-items': string;
|
|
9
|
+
icon: {
|
|
10
|
+
size: string;
|
|
11
|
+
};
|
|
12
|
+
typography: {
|
|
13
|
+
font: string;
|
|
14
|
+
letterSpacing: string;
|
|
15
|
+
fontWidth: number;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
error: {
|
|
19
|
+
color: string;
|
|
20
|
+
};
|
|
21
|
+
success: {
|
|
22
|
+
color: string;
|
|
23
|
+
};
|
|
24
|
+
information: {
|
|
25
|
+
color: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export type ComponentInlineMessage = typeof componentInlineMessage;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const semanticColors: {
|
|
5
5
|
text: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
'inverse
|
|
9
|
-
'inverse
|
|
10
|
-
'inverse
|
|
6
|
+
strong: string;
|
|
7
|
+
weak: string;
|
|
8
|
+
'strong-inverse': string;
|
|
9
|
+
'weak-inverse': string;
|
|
10
|
+
'stronger-inverse': string;
|
|
11
11
|
error: string;
|
|
12
12
|
warning: string;
|
|
13
13
|
success: string;
|
|
@@ -23,59 +23,54 @@ export declare const semanticColors: {
|
|
|
23
23
|
magenta: string;
|
|
24
24
|
orange: string;
|
|
25
25
|
yellow: string;
|
|
26
|
-
'interactive-disabled': string;
|
|
27
26
|
};
|
|
28
27
|
bg: {
|
|
29
28
|
base: string;
|
|
30
|
-
'raised-1': string;
|
|
31
|
-
'raised-2': string;
|
|
32
|
-
};
|
|
33
|
-
surface: {
|
|
34
|
-
'light-1': string;
|
|
35
|
-
'light-2': string;
|
|
36
|
-
'dark-1': string;
|
|
29
|
+
'raised-level-1': string;
|
|
30
|
+
'raised-level-2': string;
|
|
37
31
|
};
|
|
38
32
|
border: {
|
|
39
|
-
|
|
40
|
-
secondary: string;
|
|
41
|
-
tertiary: string;
|
|
33
|
+
stronger: string;
|
|
42
34
|
strong: string;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
'
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
'
|
|
52
|
-
'status-live': string;
|
|
53
|
-
'status-selected': string;
|
|
54
|
-
'status-focused': string;
|
|
35
|
+
weak: string;
|
|
36
|
+
weaker: string;
|
|
37
|
+
'strong-inverse': string;
|
|
38
|
+
disabled: string;
|
|
39
|
+
accent: string;
|
|
40
|
+
error: string;
|
|
41
|
+
focused: string;
|
|
42
|
+
selected: string;
|
|
43
|
+
'selected-inverse': string;
|
|
55
44
|
};
|
|
56
45
|
fill: {
|
|
57
|
-
'
|
|
58
|
-
'
|
|
59
|
-
'
|
|
60
|
-
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
|
|
64
|
-
'
|
|
65
|
-
'
|
|
66
|
-
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
'
|
|
74
|
-
'
|
|
75
|
-
'
|
|
76
|
-
'
|
|
77
|
-
'yellow-subtle': string;
|
|
46
|
+
'accent-strong': string;
|
|
47
|
+
'accent-strong-hover': string;
|
|
48
|
+
'accent-strong-pressed': string;
|
|
49
|
+
strong: string;
|
|
50
|
+
'strong-hover': string;
|
|
51
|
+
'strong-pressed': string;
|
|
52
|
+
weak: string;
|
|
53
|
+
'weak-hover': string;
|
|
54
|
+
'weak-pressed': string;
|
|
55
|
+
disabled: string;
|
|
56
|
+
'green-weak': string;
|
|
57
|
+
'blue-weak': string;
|
|
58
|
+
'red-weak': string;
|
|
59
|
+
'cyan-weak': string;
|
|
60
|
+
'teal-weak': string;
|
|
61
|
+
'cool-purple-weak': string;
|
|
62
|
+
'warm-purple-weak': string;
|
|
63
|
+
'magenta-weak': string;
|
|
64
|
+
'orange-weak': string;
|
|
65
|
+
'yellow-weak': string;
|
|
78
66
|
selected: string;
|
|
67
|
+
'draft-strong': string;
|
|
68
|
+
'live-weak': string;
|
|
69
|
+
'warning-weak': string;
|
|
70
|
+
'information-weak': string;
|
|
71
|
+
'error-weak': string;
|
|
72
|
+
'error-strong': string;
|
|
73
|
+
'success-weak': string;
|
|
79
74
|
};
|
|
80
75
|
};
|
|
81
76
|
export type SemanticColors = typeof semanticColors;
|
|
@@ -207,5 +207,55 @@ export declare const semanticTypography: {
|
|
|
207
207
|
letterSpacing: string;
|
|
208
208
|
fontWidth: number;
|
|
209
209
|
};
|
|
210
|
+
'label-form-sm': {
|
|
211
|
+
font: string;
|
|
212
|
+
letterSpacing: string;
|
|
213
|
+
fontWidth: number;
|
|
214
|
+
};
|
|
215
|
+
'label-form-md': {
|
|
216
|
+
font: string;
|
|
217
|
+
letterSpacing: string;
|
|
218
|
+
fontWidth: number;
|
|
219
|
+
};
|
|
220
|
+
'label-form-inline-sm': {
|
|
221
|
+
font: string;
|
|
222
|
+
letterSpacing: string;
|
|
223
|
+
fontWidth: number;
|
|
224
|
+
};
|
|
225
|
+
'label-form-inline-md': {
|
|
226
|
+
font: string;
|
|
227
|
+
letterSpacing: string;
|
|
228
|
+
fontWidth: number;
|
|
229
|
+
};
|
|
230
|
+
'label-form-compact-sm': {
|
|
231
|
+
font: string;
|
|
232
|
+
letterSpacing: string;
|
|
233
|
+
fontWidth: number;
|
|
234
|
+
};
|
|
235
|
+
'label-form-compact-md': {
|
|
236
|
+
font: string;
|
|
237
|
+
letterSpacing: string;
|
|
238
|
+
fontWidth: number;
|
|
239
|
+
};
|
|
240
|
+
'label-form-inline-compact-sm': {
|
|
241
|
+
font: string;
|
|
242
|
+
letterSpacing: string;
|
|
243
|
+
fontWidth: number;
|
|
244
|
+
};
|
|
245
|
+
'label-form-inline-compact-md': {
|
|
246
|
+
font: string;
|
|
247
|
+
letterSpacing: string;
|
|
248
|
+
fontWidth: number;
|
|
249
|
+
};
|
|
250
|
+
'help-text-form-md': {
|
|
251
|
+
font: string;
|
|
252
|
+
letterSpacing: string;
|
|
253
|
+
fontWidth: number;
|
|
254
|
+
};
|
|
255
|
+
'help-text-form-compact-md': {
|
|
256
|
+
font: string;
|
|
257
|
+
letterSpacing: string;
|
|
258
|
+
fontWidth: number;
|
|
259
|
+
};
|
|
210
260
|
};
|
|
211
261
|
export type SemanticTypography = typeof semanticTypography;
|
package/dist/util/css/reset.css
CHANGED
package/dist/util/reset.css.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var reset = "/*\nSelect CSS resets for use with the stand design system.\nModified from https://github.com/guardian/csnx/blob/0f68024f6f3bee003b5f95e66d29fb74987a8dec/libs/%40guardian/source/src/foundations/utils/resets.ts\n*/\n*,\n*::after,\n*::before {\n\tbox-sizing: border-box;\n}\n\nhtml {\n\ttext-size-adjust: none;\n\t-webkit-text-size-adjust: none;\n\t-webkit-tap-highlight-color: transparent;\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n}\n\nhtml,\nbody {\n\ttext-rendering: optimizeLegibility;\n\tfont-feature-settings: 'kern';\n\tfont-kerning: normal; /* Safari 7+, Firefox 24+, Chrome 33(?)+, Opera 21 */\n\tfont-variant-ligatures: common-ligatures;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nmenu,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tfont-size: 100%;\n\tfont: inherit;\n\tvertical-align: baseline;\n}\n\n*[hidden] {\n\tdisplay: none;\n}\n\nbody {\n\tmin-height: 100svh;\n}\n";
|
|
3
|
+
var reset = "/*\nSelect CSS resets for use with the stand design system.\nModified from https://github.com/guardian/csnx/blob/0f68024f6f3bee003b5f95e66d29fb74987a8dec/libs/%40guardian/source/src/foundations/utils/resets.ts\n*/\n*,\n*::after,\n*::before {\n\tbox-sizing: border-box;\n}\n\nhtml {\n\ttext-size-adjust: none;\n\t-webkit-text-size-adjust: none;\n\t-webkit-tap-highlight-color: transparent;\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n}\n\nhtml,\nbody {\n\ttext-rendering: optimizeLegibility;\n\tfont-feature-settings: 'kern';\n\tfont-kerning: normal; /* Safari 7+, Firefox 24+, Chrome 33(?)+, Opera 21 */\n\tfont-variant-ligatures: common-ligatures;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nmenu,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tfont-size: 100%;\n\tfont: inherit;\n\tvertical-align: baseline;\n}\n\n*[hidden] {\n\tdisplay: none;\n}\n\nbody {\n\tmin-height: 100svh;\n}\n\n.focus-ring {\n\toutline: 0.125rem solid blue;\n\toutline-offset: -1px;\n}\n\n.focus-focus {\n\toutline: 0.125rem solid red;\n\toutline-offset: -1px;\n}\n";
|
|
4
4
|
|
|
5
5
|
module.exports = reset;
|
package/dist/util/reset.css.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var reset = "/*\nSelect CSS resets for use with the stand design system.\nModified from https://github.com/guardian/csnx/blob/0f68024f6f3bee003b5f95e66d29fb74987a8dec/libs/%40guardian/source/src/foundations/utils/resets.ts\n*/\n*,\n*::after,\n*::before {\n\tbox-sizing: border-box;\n}\n\nhtml {\n\ttext-size-adjust: none;\n\t-webkit-text-size-adjust: none;\n\t-webkit-tap-highlight-color: transparent;\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n}\n\nhtml,\nbody {\n\ttext-rendering: optimizeLegibility;\n\tfont-feature-settings: 'kern';\n\tfont-kerning: normal; /* Safari 7+, Firefox 24+, Chrome 33(?)+, Opera 21 */\n\tfont-variant-ligatures: common-ligatures;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nmenu,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tfont-size: 100%;\n\tfont: inherit;\n\tvertical-align: baseline;\n}\n\n*[hidden] {\n\tdisplay: none;\n}\n\nbody {\n\tmin-height: 100svh;\n}\n";
|
|
1
|
+
var reset = "/*\nSelect CSS resets for use with the stand design system.\nModified from https://github.com/guardian/csnx/blob/0f68024f6f3bee003b5f95e66d29fb74987a8dec/libs/%40guardian/source/src/foundations/utils/resets.ts\n*/\n*,\n*::after,\n*::before {\n\tbox-sizing: border-box;\n}\n\nhtml {\n\ttext-size-adjust: none;\n\t-webkit-text-size-adjust: none;\n\t-webkit-tap-highlight-color: transparent;\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n}\n\nhtml,\nbody {\n\ttext-rendering: optimizeLegibility;\n\tfont-feature-settings: 'kern';\n\tfont-kerning: normal; /* Safari 7+, Firefox 24+, Chrome 33(?)+, Opera 21 */\n\tfont-variant-ligatures: common-ligatures;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nmenu,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tfont-size: 100%;\n\tfont: inherit;\n\tvertical-align: baseline;\n}\n\n*[hidden] {\n\tdisplay: none;\n}\n\nbody {\n\tmin-height: 100svh;\n}\n\n.focus-ring {\n\toutline: 0.125rem solid blue;\n\toutline-offset: -1px;\n}\n\n.focus-focus {\n\toutline: 0.125rem solid red;\n\toutline-offset: -1px;\n}\n";
|
|
2
2
|
|
|
3
3
|
export { reset as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guardian/stand",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"//exports": "Each component has its own entry point for optimal tree-shaking. Main entry point only includes design tokens and utilities. New components/foundations should follow the same pattern.",
|
|
6
6
|
"exports": {
|
|
@@ -14,6 +14,16 @@
|
|
|
14
14
|
"import": "./dist/avatar.js",
|
|
15
15
|
"require": "./dist/avatar.cjs"
|
|
16
16
|
},
|
|
17
|
+
"./avatar-link": {
|
|
18
|
+
"types": "./dist/types/avatar-link.d.ts",
|
|
19
|
+
"import": "./dist/avatar-link.js",
|
|
20
|
+
"require": "./dist/avatar-link.cjs"
|
|
21
|
+
},
|
|
22
|
+
"./avatar-button": {
|
|
23
|
+
"types": "./dist/types/avatar-button.d.ts",
|
|
24
|
+
"import": "./dist/avatar-button.js",
|
|
25
|
+
"require": "./dist/avatar-button.cjs"
|
|
26
|
+
},
|
|
17
27
|
"./button": {
|
|
18
28
|
"types": "./dist/types/button.d.ts",
|
|
19
29
|
"import": "./dist/button.js",
|
|
@@ -59,6 +69,11 @@
|
|
|
59
69
|
"import": "./dist/TopBar.js",
|
|
60
70
|
"require": "./dist/TopBar.cjs"
|
|
61
71
|
},
|
|
72
|
+
"./inline-message": {
|
|
73
|
+
"types": "./dist/types/inline-message.d.ts",
|
|
74
|
+
"import": "./dist/inline-message.js",
|
|
75
|
+
"require": "./dist/inline-message.cjs"
|
|
76
|
+
},
|
|
62
77
|
"./byline": {
|
|
63
78
|
"types": "./dist/types/byline.d.ts",
|
|
64
79
|
"import": "./dist/byline.js",
|
|
@@ -103,7 +118,8 @@
|
|
|
103
118
|
"./component/icon.css": "./dist/styleD/build/css/component/icon.css",
|
|
104
119
|
"./component/favicon.css": "./dist/styleD/build/css/component/favicon.css",
|
|
105
120
|
"./component/menu.css": "./dist/styleD/build/css/component/menu.css",
|
|
106
|
-
"./component/TopBar.css": "./dist/styleD/build/css/component/TopBar.css"
|
|
121
|
+
"./component/TopBar.css": "./dist/styleD/build/css/component/TopBar.css",
|
|
122
|
+
"./component/inlineMessage.css": "./dist/styleD/build/css/component/inlineMessage.css"
|
|
107
123
|
},
|
|
108
124
|
"//typesVersions": "Provides backward compatibility for TypeScript moduleResolution: node - maps subpath imports to correct type definition files. When adding new components with their own entry points, ensure to add them here.",
|
|
109
125
|
"typesVersions": {
|
|
@@ -149,6 +165,9 @@
|
|
|
149
165
|
],
|
|
150
166
|
"menu": [
|
|
151
167
|
"./dist/types/menu.d.ts"
|
|
168
|
+
],
|
|
169
|
+
"inline-message": [
|
|
170
|
+
"./dist/types/inline-message.d.ts"
|
|
152
171
|
]
|
|
153
172
|
}
|
|
154
173
|
},
|
|
@@ -163,24 +182,23 @@
|
|
|
163
182
|
"types": "./dist/types/index.d.ts",
|
|
164
183
|
"sideEffects": false,
|
|
165
184
|
"devDependencies": {
|
|
166
|
-
"@changesets/cli": "^2.
|
|
185
|
+
"@changesets/cli": "^2.30.0",
|
|
167
186
|
"@codesandbox/sandpack-react": "^2.20.0",
|
|
168
187
|
"@emotion/react": "11.11.4",
|
|
169
188
|
"@figma/rest-api-spec": "^0.36.0",
|
|
170
|
-
"@guardian/eslint-config": "14.0.
|
|
189
|
+
"@guardian/eslint-config": "14.0.1",
|
|
171
190
|
"@guardian/prettier": "10.0.0",
|
|
172
191
|
"@guardian/prosemirror-invisibles": "3.1.1",
|
|
173
192
|
"@guardian/tsconfig": "1.0.1",
|
|
174
193
|
"@material-design-icons/svg": "^0.14.15",
|
|
175
194
|
"@playwright/experimental-ct-react17": "^1.58.2",
|
|
176
195
|
"@react-aria/focus": "3.21.5",
|
|
177
|
-
"@rollup/plugin-commonjs": "29.0.
|
|
196
|
+
"@rollup/plugin-commonjs": "29.0.2",
|
|
178
197
|
"@rollup/plugin-node-resolve": "16.0.3",
|
|
179
198
|
"@rollup/plugin-typescript": "12.3.0",
|
|
180
|
-
"@storybook/addon-docs": "^10.
|
|
181
|
-
"@storybook/addon-themes": "^10.
|
|
182
|
-
"@storybook/react-vite": "^10.
|
|
183
|
-
"@terrazzo/cli": "^0.10.5",
|
|
199
|
+
"@storybook/addon-docs": "^10.3.3",
|
|
200
|
+
"@storybook/addon-themes": "^10.3.3",
|
|
201
|
+
"@storybook/react-vite": "^10.3.3",
|
|
184
202
|
"@testing-library/jest-dom": "^6.9.1",
|
|
185
203
|
"@types/jest": "30.0.0",
|
|
186
204
|
"@types/node": "^24.10.1",
|
|
@@ -188,10 +206,10 @@
|
|
|
188
206
|
"@types/react-dom": "17.0.25",
|
|
189
207
|
"change-case": "^5.4.4",
|
|
190
208
|
"eslint": "9.39.3",
|
|
191
|
-
"eslint-plugin-storybook": "^10.
|
|
209
|
+
"eslint-plugin-storybook": "^10.3.3",
|
|
192
210
|
"husky": "^9.1.7",
|
|
193
|
-
"jest": "30.
|
|
194
|
-
"jest-environment-jsdom": "^30.
|
|
211
|
+
"jest": "30.3.0",
|
|
212
|
+
"jest-environment-jsdom": "^30.3.0",
|
|
195
213
|
"prettier": "3.8.1",
|
|
196
214
|
"prosemirror-dropcursor": "1.8.2",
|
|
197
215
|
"prosemirror-history": "1.4.1",
|
|
@@ -204,18 +222,18 @@
|
|
|
204
222
|
"react-dom": "17.0.2",
|
|
205
223
|
"remark-gfm": "^4.0.1",
|
|
206
224
|
"rimraf": "6.1.3",
|
|
207
|
-
"rollup": "4.
|
|
225
|
+
"rollup": "4.60.1",
|
|
208
226
|
"rollup-plugin-copy": "^3.5.0",
|
|
209
227
|
"rollup-plugin-esbuild": "6.2.1",
|
|
210
228
|
"rollup-plugin-import-css": "^4.2.0",
|
|
211
229
|
"rollup-plugin-node-externals": "8.1.2",
|
|
212
|
-
"storybook": "^10.
|
|
213
|
-
"style-dictionary": "^5.
|
|
230
|
+
"storybook": "^10.3.3",
|
|
231
|
+
"style-dictionary": "^5.4.0",
|
|
214
232
|
"ts-jest": "29.4.6",
|
|
215
233
|
"tslib": "2.8.1",
|
|
216
234
|
"typescript": "5.1.3",
|
|
217
|
-
"vite": "^
|
|
218
|
-
"vite-plugin-svgr": "^
|
|
235
|
+
"vite": "^8.0.3",
|
|
236
|
+
"vite-plugin-svgr": "^5.0.0"
|
|
219
237
|
},
|
|
220
238
|
"peerDependencies": {
|
|
221
239
|
"@emotion/react": ">=11.11.4 <=11.14.0",
|
|
@@ -280,7 +298,6 @@
|
|
|
280
298
|
"build-storybook": "storybook build",
|
|
281
299
|
"lint": "eslint . --ext .ts,.tsx",
|
|
282
300
|
"lint:fix": "eslint --fix . --ext .ts,.tsx",
|
|
283
|
-
"lint:tokens": "tz check",
|
|
284
301
|
"format:check": "prettier --check .",
|
|
285
302
|
"format:fix": "prettier --write .",
|
|
286
303
|
"tsc": "tsc",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx, Fragment } from '@emotion/react/jsx-runtime';
|
|
2
|
-
import { mergeDeep } from '../../../util/mergeDeep.js';
|
|
3
|
-
import { Favicon } from '../../favicon/Favicon.js';
|
|
4
|
-
import { Icon } from '../../icon/Icon.js';
|
|
5
|
-
import { toolNameTypography, dividerStyles, subsectionTypography, subsectionStyles, toolNameStyles, defaultToolNameTheme } from './styles.js';
|
|
6
|
-
|
|
7
|
-
const TopBarToolName = ({ name, favicon, subsection, subsectionIcon, theme = {}, cssOverrides }) => {
|
|
8
|
-
const mergedTheme = mergeDeep(defaultToolNameTheme, theme);
|
|
9
|
-
return jsxs("div", { css: [toolNameStyles(mergedTheme), cssOverrides], children: [jsx(Favicon, { ...favicon }), jsx("div", { css: [toolNameTypography(mergedTheme)], children: name }), subsection && jsxs(Fragment, { children: [jsx("div", { css: dividerStyles(mergedTheme), children: "\xA0" }), jsxs("div", { css: subsectionStyles(mergedTheme), children: [subsectionIcon && jsx(Icon, { size: "sm", children: subsectionIcon }), jsx("div", { css: subsectionTypography(mergedTheme), children: subsection })] })] })] });
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { TopBarToolName };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|