@guardian/stand 0.0.8 → 0.0.10

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.
Files changed (170) hide show
  1. package/README.md +1148 -10
  2. package/dist/avatar.cjs +9 -0
  3. package/dist/avatar.js +2 -0
  4. package/dist/button.cjs +9 -0
  5. package/dist/button.js +2 -0
  6. package/dist/byline.cjs +9 -0
  7. package/dist/byline.js +2 -0
  8. package/dist/components/TitleText.cjs +28 -0
  9. package/dist/components/TitleText.js +22 -0
  10. package/dist/components/avatar/Avatar.cjs +57 -0
  11. package/dist/components/avatar/Avatar.js +27 -0
  12. package/dist/components/avatar/styles.cjs +33 -0
  13. package/dist/components/avatar/styles.js +29 -0
  14. package/dist/components/avatar/types.cjs +16 -0
  15. package/dist/components/avatar/types.js +14 -0
  16. package/dist/components/button/Button.cjs +29 -0
  17. package/dist/components/button/Button.js +14 -0
  18. package/dist/components/button/styles.cjs +58 -0
  19. package/dist/components/button/styles.js +53 -0
  20. package/dist/components/byline/styles.cjs +5 -5
  21. package/dist/components/byline/styles.js +1 -1
  22. package/dist/components/icon/Icon.cjs +46 -0
  23. package/dist/components/icon/Icon.js +19 -0
  24. package/dist/components/icon/styles.cjs +27 -0
  25. package/dist/components/icon/styles.js +20 -0
  26. package/dist/components/link-button/LinkButton.cjs +29 -0
  27. package/dist/components/link-button/LinkButton.js +14 -0
  28. package/dist/components/link-button/styles.cjs +9 -0
  29. package/dist/components/link-button/styles.js +6 -0
  30. package/dist/components/tag-picker/styles.cjs +11 -11
  31. package/dist/components/tag-picker/styles.js +1 -1
  32. package/dist/components/typography/Typography.cjs +26 -0
  33. package/dist/components/typography/Typography.js +13 -0
  34. package/dist/components/typography/styles.cjs +15 -0
  35. package/dist/components/typography/styles.js +12 -0
  36. package/dist/components/user-menu/PreferenceRadioGroup.cjs +53 -0
  37. package/dist/components/user-menu/PreferenceRadioGroup.js +19 -0
  38. package/dist/components/user-menu/UserMenu.cjs +67 -0
  39. package/dist/components/user-menu/UserMenu.js +11 -0
  40. package/dist/components/user-menu/default-options.cjs +109 -0
  41. package/dist/components/user-menu/default-options.js +105 -0
  42. package/dist/components/user-menu/styles.cjs +90 -0
  43. package/dist/components/user-menu/styles.js +83 -0
  44. package/dist/fonts/MaterialSymbolsOutlined.css +23 -0
  45. package/dist/fonts/MaterialSymbolsRound.css +23 -0
  46. package/dist/fonts/MaterialSymbolsSharp.css +23 -0
  47. package/dist/fonts/material-symbols-types.ts +3825 -0
  48. package/dist/icon.cjs +9 -0
  49. package/dist/icon.js +2 -0
  50. package/dist/index.cjs +22 -13
  51. package/dist/index.js +9 -4
  52. package/dist/link-button.cjs +7 -0
  53. package/dist/link-button.js +1 -0
  54. package/dist/styleD/build/css/{css/base → base}/colors.css +1 -1
  55. package/dist/styleD/build/css/{css/base → base}/sizing.css +4 -0
  56. package/dist/styleD/build/css/{css/base → base}/spacing.css +4 -0
  57. package/dist/styleD/build/css/{css/base → base}/typography.css +1 -0
  58. package/dist/styleD/build/css/component/avatar.css +54 -0
  59. package/dist/styleD/build/css/component/button.css +218 -0
  60. package/dist/styleD/build/css/{css/component → component}/byline.css +1 -1
  61. package/dist/styleD/build/css/component/icon.css +11 -0
  62. package/dist/styleD/build/css/component/typography.css +7 -0
  63. package/dist/styleD/build/css/component/userMenu.css +29 -0
  64. package/dist/styleD/build/css/semantic/colors.css +69 -0
  65. package/dist/styleD/build/css/{css/semantic → semantic}/sizing.css +2 -0
  66. package/dist/styleD/build/css/{css/semantic → semantic}/typography.css +9 -0
  67. package/dist/styleD/build/typescript/base/colors.cjs +1 -1
  68. package/dist/styleD/build/typescript/base/colors.js +1 -1
  69. package/dist/styleD/build/typescript/base/sizing.cjs +4 -0
  70. package/dist/styleD/build/typescript/base/sizing.js +4 -0
  71. package/dist/styleD/build/typescript/base/spacing.cjs +4 -0
  72. package/dist/styleD/build/typescript/base/spacing.js +4 -0
  73. package/dist/styleD/build/typescript/base/typography.cjs +2 -1
  74. package/dist/styleD/build/typescript/base/typography.js +2 -1
  75. package/dist/styleD/build/typescript/component/avatar.cjs +88 -0
  76. package/dist/styleD/build/typescript/component/avatar.js +86 -0
  77. package/dist/styleD/build/typescript/component/button.cjs +331 -0
  78. package/dist/styleD/build/typescript/component/button.js +329 -0
  79. package/dist/styleD/build/typescript/component/byline.cjs +1 -1
  80. package/dist/styleD/build/typescript/component/byline.js +1 -1
  81. package/dist/styleD/build/typescript/component/icon.cjs +19 -0
  82. package/dist/styleD/build/typescript/component/icon.js +17 -0
  83. package/dist/styleD/build/typescript/component/typography.cjs +7 -0
  84. package/dist/styleD/build/typescript/component/typography.js +5 -0
  85. package/dist/styleD/build/typescript/component/userMenu.cjs +37 -0
  86. package/dist/styleD/build/typescript/component/userMenu.js +35 -0
  87. package/dist/styleD/build/typescript/semantic/colors.cjs +47 -5
  88. package/dist/styleD/build/typescript/semantic/colors.js +47 -5
  89. package/dist/styleD/build/typescript/semantic/sizing.cjs +3 -1
  90. package/dist/styleD/build/typescript/semantic/sizing.js +3 -1
  91. package/dist/styleD/build/typescript/semantic/typography.cjs +15 -0
  92. package/dist/styleD/build/typescript/semantic/typography.js +15 -0
  93. package/dist/tag-picker.cjs +13 -0
  94. package/dist/tag-picker.js +4 -0
  95. package/dist/types/avatar.d.ts +19 -0
  96. package/dist/types/button.d.ts +20 -0
  97. package/dist/types/byline.d.ts +25 -0
  98. package/dist/types/components/TitleText.d.ts +6 -0
  99. package/dist/types/components/avatar/Avatar.d.ts +2 -0
  100. package/dist/types/components/avatar/styles.d.ts +8 -0
  101. package/dist/types/components/avatar/types.d.ts +45 -0
  102. package/dist/types/components/button/Button.d.ts +2 -0
  103. package/dist/types/components/button/styles.d.ts +7 -0
  104. package/dist/types/components/button/types.d.ts +13 -0
  105. package/dist/types/components/byline/Byline.d.ts +1 -1
  106. package/dist/types/components/byline/schema.d.ts +1 -1
  107. package/dist/types/components/byline/styles.d.ts +1 -1
  108. package/dist/types/components/byline/theme.d.ts +1 -1
  109. package/dist/types/components/icon/Icon.d.ts +2 -0
  110. package/dist/types/components/icon/styles.d.ts +8 -0
  111. package/dist/types/components/icon/types.d.ts +28 -0
  112. package/dist/types/components/link-button/LinkButton.d.ts +2 -0
  113. package/dist/types/components/link-button/styles.d.ts +330 -0
  114. package/dist/types/components/link-button/types.d.ts +13 -0
  115. package/dist/types/components/tag-picker/TagAutocomplete.d.ts +1 -1
  116. package/dist/types/components/tag-picker/TagTable.d.ts +1 -1
  117. package/dist/types/components/tag-picker/styles.d.ts +1 -1
  118. package/dist/types/components/typography/Typography.d.ts +6 -0
  119. package/dist/types/components/typography/styles.d.ts +7 -0
  120. package/dist/types/components/typography/types.d.ts +13 -0
  121. package/dist/types/components/user-menu/PreferenceRadioGroup.d.ts +15 -0
  122. package/dist/types/components/user-menu/UserMenu.d.ts +17 -0
  123. package/dist/types/components/user-menu/default-options.d.ts +5 -0
  124. package/dist/types/components/user-menu/model.d.ts +9 -0
  125. package/dist/types/components/user-menu/styles.d.ts +9 -0
  126. package/dist/types/components/user-menu/theme.d.ts +3 -0
  127. package/dist/types/components/user-menu/types.d.ts +5 -0
  128. package/dist/types/fonts/material-symbols-types.d.ts +3822 -0
  129. package/dist/types/icon.d.ts +27 -0
  130. package/dist/types/index.d.ts +25 -7
  131. package/dist/types/link-button.d.ts +20 -0
  132. package/dist/types/styleD/build/typescript/base/colors.d.ts +1 -1
  133. package/dist/types/styleD/build/typescript/base/sizing.d.ts +4 -0
  134. package/dist/types/styleD/build/typescript/base/spacing.d.ts +4 -0
  135. package/dist/types/styleD/build/typescript/base/typography.d.ts +1 -0
  136. package/dist/types/styleD/build/typescript/component/avatar.d.ts +88 -0
  137. package/dist/types/styleD/build/typescript/component/button.d.ts +331 -0
  138. package/dist/types/styleD/build/typescript/component/icon.d.ts +19 -0
  139. package/dist/types/styleD/build/typescript/component/typography.d.ts +7 -0
  140. package/dist/types/styleD/build/typescript/component/userMenu.d.ts +37 -0
  141. package/dist/types/styleD/build/typescript/semantic/colors.d.ts +45 -3
  142. package/dist/types/styleD/build/typescript/semantic/sizing.d.ts +2 -0
  143. package/dist/types/styleD/build/typescript/semantic/typography.d.ts +15 -0
  144. package/dist/types/tag-picker.d.ts +21 -0
  145. package/dist/types/typography.d.ts +19 -0
  146. package/dist/types/user-menu.d.ts +18 -0
  147. package/dist/types/util/mergeDeep.d.ts +1 -0
  148. package/dist/types/util/reset.d.ts +1 -0
  149. package/dist/types/util/storybookStyles.d.ts +1 -0
  150. package/dist/types/util/types.d.ts +34 -0
  151. package/dist/types/utils.d.ts +7 -0
  152. package/dist/typography.cjs +9 -0
  153. package/dist/typography.js +2 -0
  154. package/dist/user-menu.cjs +9 -0
  155. package/dist/user-menu.js +2 -0
  156. package/dist/util/css/reset.css +124 -0
  157. package/dist/util/reset.cjs +10 -0
  158. package/dist/util/reset.css.cjs +5 -0
  159. package/dist/util/reset.css.js +3 -0
  160. package/dist/util/reset.js +8 -0
  161. package/dist/utils.cjs +10 -0
  162. package/dist/utils.js +2 -0
  163. package/package.json +112 -3
  164. package/dist/styleD/build/css/css/semantic/colors.css +0 -29
  165. package/dist/types/components/util.d.ts +0 -4
  166. /package/dist/styleD/build/css/{css/base → base}/radius.css +0 -0
  167. /package/dist/styleD/build/css/{css/component → component}/tagAutocomplete.css +0 -0
  168. /package/dist/styleD/build/css/{css/component → component}/tagTable.css +0 -0
  169. /package/dist/{components/util.cjs → util/mergeDeep.cjs} +0 -0
  170. /package/dist/{components/util.js → util/mergeDeep.js} +0 -0
@@ -0,0 +1,329 @@
1
+ const componentButton = {
2
+ shared: {
3
+ display: "inline-flex",
4
+ "-webkit-appearance": "none",
5
+ "text-align": "inherit",
6
+ "box-shadow": "none",
7
+ cursor: "pointer",
8
+ "justify-content": "center",
9
+ "align-items": "center",
10
+ "text-decoration": "none",
11
+ ":disabled": {
12
+ cursor: "not-allowed"
13
+ },
14
+ ":focus-visible": {
15
+ outline: "0.125rem solid #0072a9",
16
+ "outline-offset": "0.125rem"
17
+ }
18
+ },
19
+ "emphasised-primary": {
20
+ shared: {
21
+ color: "#ffffff",
22
+ backgroundColor: "#0d4289",
23
+ borderRadius: "0.25rem",
24
+ border: "0.0625rem solid #0d4289",
25
+ ":hover": {
26
+ backgroundColor: "#092f62",
27
+ border: "0.0625rem solid #092f62"
28
+ },
29
+ ":active": {
30
+ backgroundColor: "#061d3c",
31
+ border: "0.0625rem solid #061d3c"
32
+ },
33
+ ":disabled": {
34
+ color: "#999999",
35
+ backgroundColor: "#dcdcdc",
36
+ border: "0.0625rem solid #dcdcdc"
37
+ }
38
+ },
39
+ xs: {
40
+ height: "1.5rem",
41
+ padding: {
42
+ top: "0.25rem",
43
+ right: "0.5rem",
44
+ bottom: "0.25rem",
45
+ left: "0.5rem"
46
+ },
47
+ typography: {
48
+ font: "normal 700 0.75rem/1 Open Sans",
49
+ letterSpacing: "0rem",
50
+ fontWidth: 95
51
+ }
52
+ },
53
+ sm: {
54
+ height: "2rem",
55
+ padding: {
56
+ top: "0.25rem",
57
+ right: "0.625rem",
58
+ bottom: "0.25rem",
59
+ left: "0.625rem"
60
+ },
61
+ typography: {
62
+ font: "normal 700 0.875rem/1 Open Sans",
63
+ letterSpacing: "-0.0125rem",
64
+ fontWidth: 95
65
+ }
66
+ },
67
+ md: {
68
+ height: "2.5rem",
69
+ padding: {
70
+ top: "0.25rem",
71
+ right: "0.75rem",
72
+ bottom: "0.25rem",
73
+ left: "0.75rem"
74
+ },
75
+ typography: {
76
+ font: "normal 700 0.875rem/1 Open Sans",
77
+ letterSpacing: "-0.0125rem",
78
+ fontWidth: 95
79
+ }
80
+ },
81
+ lg: {
82
+ height: "3rem",
83
+ padding: {
84
+ top: "0.25rem",
85
+ right: "1rem",
86
+ bottom: "0.25rem",
87
+ left: "1rem"
88
+ },
89
+ typography: {
90
+ font: "normal 700 1rem/1 Open Sans",
91
+ letterSpacing: "-0.0125rem",
92
+ fontWidth: 95
93
+ }
94
+ }
95
+ },
96
+ "emphasised-secondary": {
97
+ shared: {
98
+ color: "#000000",
99
+ backgroundColor: "none",
100
+ borderRadius: "0.25rem",
101
+ border: "0.0625rem solid #0d4289",
102
+ ":hover": {
103
+ backgroundColor: "#e8f0fb",
104
+ border: "0.0625rem solid #0d4289"
105
+ },
106
+ ":active": {
107
+ backgroundColor: "#c5d9f4",
108
+ border: "0.0625rem solid #0d4289"
109
+ },
110
+ ":disabled": {
111
+ color: "#999999",
112
+ backgroundColor: "none",
113
+ border: "0.0625rem solid #dcdcdc"
114
+ }
115
+ },
116
+ xs: {
117
+ height: "1.5rem",
118
+ padding: {
119
+ top: "0.25rem",
120
+ right: "0.5rem",
121
+ bottom: "0.25rem",
122
+ left: "0.5rem"
123
+ },
124
+ typography: {
125
+ font: "normal 700 0.75rem/1 Open Sans",
126
+ letterSpacing: "0rem",
127
+ fontWidth: 95
128
+ }
129
+ },
130
+ sm: {
131
+ height: "2rem",
132
+ padding: {
133
+ top: "0.25rem",
134
+ right: "0.625rem",
135
+ bottom: "0.25rem",
136
+ left: "0.625rem"
137
+ },
138
+ typography: {
139
+ font: "normal 700 0.875rem/1 Open Sans",
140
+ letterSpacing: "-0.0125rem",
141
+ fontWidth: 95
142
+ }
143
+ },
144
+ md: {
145
+ height: "2.5rem",
146
+ padding: {
147
+ top: "0.25rem",
148
+ right: "0.75rem",
149
+ bottom: "0.25rem",
150
+ left: "0.75rem"
151
+ },
152
+ typography: {
153
+ font: "normal 700 0.875rem/1 Open Sans",
154
+ letterSpacing: "-0.0125rem",
155
+ fontWidth: 95
156
+ }
157
+ },
158
+ lg: {
159
+ height: "3rem",
160
+ padding: {
161
+ top: "0.25rem",
162
+ right: "1rem",
163
+ bottom: "0.25rem",
164
+ left: "1rem"
165
+ },
166
+ typography: {
167
+ font: "normal 700 1rem/1 Open Sans",
168
+ letterSpacing: "-0.0125rem",
169
+ fontWidth: 95
170
+ }
171
+ }
172
+ },
173
+ "neutral-primary": {
174
+ shared: {
175
+ color: "#ffffff",
176
+ backgroundColor: "#545454",
177
+ borderRadius: "0.25rem",
178
+ border: "0.0625rem solid #545454",
179
+ ":hover": {
180
+ backgroundColor: "#333333",
181
+ border: "0.0625rem solid #333333"
182
+ },
183
+ ":active": {
184
+ backgroundColor: "#121212",
185
+ border: "0.0625rem solid #121212"
186
+ },
187
+ ":disabled": {
188
+ color: "#999999",
189
+ backgroundColor: "#dcdcdc",
190
+ border: "0.0625rem solid #dcdcdc"
191
+ }
192
+ },
193
+ xs: {
194
+ height: "1.5rem",
195
+ padding: {
196
+ top: "0.25rem",
197
+ right: "0.5rem",
198
+ bottom: "0.25rem",
199
+ left: "0.5rem"
200
+ },
201
+ typography: {
202
+ font: "normal 700 0.75rem/1 Open Sans",
203
+ letterSpacing: "0rem",
204
+ fontWidth: 95
205
+ }
206
+ },
207
+ sm: {
208
+ height: "2rem",
209
+ padding: {
210
+ top: "0.25rem",
211
+ right: "0.625rem",
212
+ bottom: "0.25rem",
213
+ left: "0.625rem"
214
+ },
215
+ typography: {
216
+ font: "normal 700 0.875rem/1 Open Sans",
217
+ letterSpacing: "-0.0125rem",
218
+ fontWidth: 95
219
+ }
220
+ },
221
+ md: {
222
+ height: "2.5rem",
223
+ padding: {
224
+ top: "0.25rem",
225
+ right: "0.75rem",
226
+ bottom: "0.25rem",
227
+ left: "0.75rem"
228
+ },
229
+ typography: {
230
+ font: "normal 700 0.875rem/1 Open Sans",
231
+ letterSpacing: "-0.0125rem",
232
+ fontWidth: 95
233
+ }
234
+ },
235
+ lg: {
236
+ height: "3rem",
237
+ padding: {
238
+ top: "0.25rem",
239
+ right: "1rem",
240
+ bottom: "0.25rem",
241
+ left: "1rem"
242
+ },
243
+ typography: {
244
+ font: "normal 700 1rem/1 Open Sans",
245
+ letterSpacing: "-0.0125rem",
246
+ fontWidth: 95
247
+ }
248
+ }
249
+ },
250
+ "neutral-secondary": {
251
+ shared: {
252
+ color: "#000000",
253
+ backgroundColor: "none",
254
+ borderRadius: "0.25rem",
255
+ border: "0.0625rem solid #545454",
256
+ ":hover": {
257
+ backgroundColor: "#ededed",
258
+ border: "0.0625rem solid #545454"
259
+ },
260
+ ":active": {
261
+ backgroundColor: "#dcdcdc",
262
+ border: "0.0625rem solid #545454"
263
+ },
264
+ ":disabled": {
265
+ color: "#999999",
266
+ backgroundColor: "none",
267
+ border: "0.0625rem solid #dcdcdc"
268
+ }
269
+ },
270
+ xs: {
271
+ height: "1.5rem",
272
+ padding: {
273
+ top: "0.25rem",
274
+ right: "0.5rem",
275
+ bottom: "0.25rem",
276
+ left: "0.5rem"
277
+ },
278
+ typography: {
279
+ font: "normal 700 0.75rem/1 Open Sans",
280
+ letterSpacing: "0rem",
281
+ fontWidth: 95
282
+ }
283
+ },
284
+ sm: {
285
+ height: "2rem",
286
+ padding: {
287
+ top: "0.25rem",
288
+ right: "0.625rem",
289
+ bottom: "0.25rem",
290
+ left: "0.625rem"
291
+ },
292
+ typography: {
293
+ font: "normal 700 0.875rem/1 Open Sans",
294
+ letterSpacing: "-0.0125rem",
295
+ fontWidth: 95
296
+ }
297
+ },
298
+ md: {
299
+ height: "2.5rem",
300
+ padding: {
301
+ top: "0.25rem",
302
+ right: "0.75rem",
303
+ bottom: "0.25rem",
304
+ left: "0.75rem"
305
+ },
306
+ typography: {
307
+ font: "normal 700 0.875rem/1 Open Sans",
308
+ letterSpacing: "-0.0125rem",
309
+ fontWidth: 95
310
+ }
311
+ },
312
+ lg: {
313
+ height: "3rem",
314
+ padding: {
315
+ top: "0.25rem",
316
+ right: "1rem",
317
+ bottom: "0.25rem",
318
+ left: "1rem"
319
+ },
320
+ typography: {
321
+ font: "normal 700 1rem/1 Open Sans",
322
+ letterSpacing: "-0.0125rem",
323
+ fontWidth: 95
324
+ }
325
+ }
326
+ }
327
+ };
328
+
329
+ export { componentButton };
@@ -16,7 +16,7 @@ const componentByline = {
16
16
  borderRadius: "8px",
17
17
  paddingX: "4px",
18
18
  paddingY: "2px",
19
- selectedBorderColor: "#bdd4f4",
19
+ selectedBorderColor: "#c5d9f4",
20
20
  taggedBackgroundColor: "#dcdcdc",
21
21
  untaggedColor: "#000000"
22
22
  },
@@ -14,7 +14,7 @@ const componentByline = {
14
14
  borderRadius: "8px",
15
15
  paddingX: "4px",
16
16
  paddingY: "2px",
17
- selectedBorderColor: "#bdd4f4",
17
+ selectedBorderColor: "#c5d9f4",
18
18
  taggedBackgroundColor: "#dcdcdc",
19
19
  untaggedColor: "#000000"
20
20
  },
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ const componentIcon = {
4
+ shared: {
5
+ display: "inline-flex",
6
+ "user-select": "none"
7
+ },
8
+ sm: {
9
+ size: "1.125rem"
10
+ },
11
+ md: {
12
+ size: "1.25rem"
13
+ },
14
+ lg: {
15
+ size: "1.5rem"
16
+ }
17
+ };
18
+
19
+ exports.componentIcon = componentIcon;
@@ -0,0 +1,17 @@
1
+ const componentIcon = {
2
+ shared: {
3
+ display: "inline-flex",
4
+ "user-select": "none"
5
+ },
6
+ sm: {
7
+ size: "1.125rem"
8
+ },
9
+ md: {
10
+ size: "1.25rem"
11
+ },
12
+ lg: {
13
+ size: "1.5rem"
14
+ }
15
+ };
16
+
17
+ export { componentIcon };
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ const componentTypography = {
4
+ color: "#000000"
5
+ };
6
+
7
+ exports.componentTypography = componentTypography;
@@ -0,0 +1,5 @@
1
+ const componentTypography = {
2
+ color: "#000000"
3
+ };
4
+
5
+ export { componentTypography };
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ const componentUserMenu = {
4
+ container: {
5
+ backgroundColor: "#dcdcdc",
6
+ width: "300px",
7
+ paddingY: "0.25rem",
8
+ paddingX: "0.25rem"
9
+ },
10
+ heading: {
11
+ fontWeight: 700,
12
+ fontSize: "1.125rem",
13
+ paddingTop: "0px",
14
+ paddingRight: "0px",
15
+ paddingBottom: "0px",
16
+ paddingLeft: "0px",
17
+ textAlign: "left"
18
+ },
19
+ label: {
20
+ fontWeight: 700,
21
+ fontSize: "0.875rem",
22
+ paddingTop: "15px",
23
+ paddingRight: "0px",
24
+ paddingBottom: "0.375rem",
25
+ paddingLeft: "0px",
26
+ textAlign: "left"
27
+ },
28
+ toggleButton: {
29
+ baseBackgroundColor: "#ededed",
30
+ disabledBackgroundColor: "#dcdcdc",
31
+ baseBorderColor: "#dcdcdc",
32
+ selectedBorderColor: "#0d4289",
33
+ gap: "0.25rem"
34
+ }
35
+ };
36
+
37
+ exports.componentUserMenu = componentUserMenu;
@@ -0,0 +1,35 @@
1
+ const componentUserMenu = {
2
+ container: {
3
+ backgroundColor: "#dcdcdc",
4
+ width: "300px",
5
+ paddingY: "0.25rem",
6
+ paddingX: "0.25rem"
7
+ },
8
+ heading: {
9
+ fontWeight: 700,
10
+ fontSize: "1.125rem",
11
+ paddingTop: "0px",
12
+ paddingRight: "0px",
13
+ paddingBottom: "0px",
14
+ paddingLeft: "0px",
15
+ textAlign: "left"
16
+ },
17
+ label: {
18
+ fontWeight: 700,
19
+ fontSize: "0.875rem",
20
+ paddingTop: "15px",
21
+ paddingRight: "0px",
22
+ paddingBottom: "0.375rem",
23
+ paddingLeft: "0px",
24
+ textAlign: "left"
25
+ },
26
+ toggleButton: {
27
+ baseBackgroundColor: "#ededed",
28
+ disabledBackgroundColor: "#dcdcdc",
29
+ baseBorderColor: "#dcdcdc",
30
+ selectedBorderColor: "#0d4289",
31
+ gap: "0.25rem"
32
+ }
33
+ };
34
+
35
+ export { componentUserMenu };
@@ -11,11 +11,23 @@ const semanticColors = {
11
11
  warning: "#433608",
12
12
  success: "#326528",
13
13
  information: "#00344e",
14
- disabled: "#999999"
14
+ disabled: "#999999",
15
+ green: "#24491d",
16
+ blue: "#092f62",
17
+ red: "#65170e",
18
+ cyan: "#00344e",
19
+ teal: "#0e2729",
20
+ "cool-purple": "#394069",
21
+ "warm-purple": "#381350",
22
+ magenta: "#581734",
23
+ orange: "#693c16",
24
+ yellow: "#5b4a0b",
25
+ "interactive-disabled": "#999999"
15
26
  },
16
27
  bg: {
17
- "default-onDark": "#121212",
18
- "default-onLight": "#ffffff"
28
+ base: "#ffffff",
29
+ "raised-1": "#f6f6f6",
30
+ "raised-2": "#ededed"
19
31
  },
20
32
  surface: {
21
33
  "light-1": "#f6f6f6",
@@ -23,16 +35,46 @@ const semanticColors = {
23
35
  "dark-1": "#333333"
24
36
  },
25
37
  border: {
26
- subtle: "#cccccc",
27
38
  default: "#8d8d8d",
39
+ secondary: "#cccccc",
40
+ tertiary: "#ededed",
28
41
  strong: "#545454",
29
- "inverse-strong": "#ffffff"
42
+ "inverse-strong": "#ffffff",
43
+ "interactive-emphasised": "#0d4289",
44
+ "interactive-neutral": "#545454",
45
+ "interactive-disabled": "#dcdcdc",
46
+ "interactive-focused": "#0072a9",
47
+ "interactive-selected": "#0072a9"
30
48
  },
31
49
  status: {
32
50
  "status-draft": "#f1c21b",
33
51
  "status-live": "#4e9e3e",
34
52
  "status-selected": "#0072a9",
35
53
  "status-focused": "#0072a9"
54
+ },
55
+ fill: {
56
+ "interactive-primary-emphasised": "#0d4289",
57
+ "interactive-primary-emphasised-hover": "#092f62",
58
+ "interactive-primary-emphasised-pressed": "#061d3c",
59
+ "interactive-secondary-emphasised-hover": "#e8f0fb",
60
+ "interactive-secondary-emphasised-pressed": "#c5d9f4",
61
+ "interactive-primary-neutral": "#545454",
62
+ "interactive-primary-neutral-hover": "#333333",
63
+ "interactive-primary-neutral-pressed": "#121212",
64
+ "interactive-secondary-neutral-hover": "#ededed",
65
+ "interactive-secondary-neutral-pressed": "#dcdcdc",
66
+ "interactive-disabled": "#dcdcdc",
67
+ "green-subtle": "#cde4c9",
68
+ "blue-subtle": "#c5d9f4",
69
+ "red-subtle": "#f5c6c0",
70
+ "cyan-subtle": "#b8d8e7",
71
+ "teal-subtle": "#c5dfe1",
72
+ "cool-purple-subtle": "#dbdff7",
73
+ "warm-purple-subtle": "#dac3e8",
74
+ "magenta-subtle": "#edc6d7",
75
+ "orange-subtle": "#fcddc6",
76
+ "yellow-subtle": "#fbeebf",
77
+ selected: "#005d8b"
36
78
  }
37
79
  };
38
80
 
@@ -9,11 +9,23 @@ const semanticColors = {
9
9
  warning: "#433608",
10
10
  success: "#326528",
11
11
  information: "#00344e",
12
- disabled: "#999999"
12
+ disabled: "#999999",
13
+ green: "#24491d",
14
+ blue: "#092f62",
15
+ red: "#65170e",
16
+ cyan: "#00344e",
17
+ teal: "#0e2729",
18
+ "cool-purple": "#394069",
19
+ "warm-purple": "#381350",
20
+ magenta: "#581734",
21
+ orange: "#693c16",
22
+ yellow: "#5b4a0b",
23
+ "interactive-disabled": "#999999"
13
24
  },
14
25
  bg: {
15
- "default-onDark": "#121212",
16
- "default-onLight": "#ffffff"
26
+ base: "#ffffff",
27
+ "raised-1": "#f6f6f6",
28
+ "raised-2": "#ededed"
17
29
  },
18
30
  surface: {
19
31
  "light-1": "#f6f6f6",
@@ -21,16 +33,46 @@ const semanticColors = {
21
33
  "dark-1": "#333333"
22
34
  },
23
35
  border: {
24
- subtle: "#cccccc",
25
36
  default: "#8d8d8d",
37
+ secondary: "#cccccc",
38
+ tertiary: "#ededed",
26
39
  strong: "#545454",
27
- "inverse-strong": "#ffffff"
40
+ "inverse-strong": "#ffffff",
41
+ "interactive-emphasised": "#0d4289",
42
+ "interactive-neutral": "#545454",
43
+ "interactive-disabled": "#dcdcdc",
44
+ "interactive-focused": "#0072a9",
45
+ "interactive-selected": "#0072a9"
28
46
  },
29
47
  status: {
30
48
  "status-draft": "#f1c21b",
31
49
  "status-live": "#4e9e3e",
32
50
  "status-selected": "#0072a9",
33
51
  "status-focused": "#0072a9"
52
+ },
53
+ fill: {
54
+ "interactive-primary-emphasised": "#0d4289",
55
+ "interactive-primary-emphasised-hover": "#092f62",
56
+ "interactive-primary-emphasised-pressed": "#061d3c",
57
+ "interactive-secondary-emphasised-hover": "#e8f0fb",
58
+ "interactive-secondary-emphasised-pressed": "#c5d9f4",
59
+ "interactive-primary-neutral": "#545454",
60
+ "interactive-primary-neutral-hover": "#333333",
61
+ "interactive-primary-neutral-pressed": "#121212",
62
+ "interactive-secondary-neutral-hover": "#ededed",
63
+ "interactive-secondary-neutral-pressed": "#dcdcdc",
64
+ "interactive-disabled": "#dcdcdc",
65
+ "green-subtle": "#cde4c9",
66
+ "blue-subtle": "#c5d9f4",
67
+ "red-subtle": "#f5c6c0",
68
+ "cyan-subtle": "#b8d8e7",
69
+ "teal-subtle": "#c5dfe1",
70
+ "cool-purple-subtle": "#dbdff7",
71
+ "warm-purple-subtle": "#dac3e8",
72
+ "magenta-subtle": "#edc6d7",
73
+ "orange-subtle": "#fcddc6",
74
+ "yellow-subtle": "#fbeebf",
75
+ selected: "#005d8b"
34
76
  }
35
77
  };
36
78
 
@@ -13,7 +13,9 @@ const semanticSizing = {
13
13
  lg: "1.5rem"
14
14
  },
15
15
  border: {
16
- md: "0.125rem"
16
+ default: "0.0625rem",
17
+ md: "0.125rem",
18
+ "extra-wide": "0.5rem"
17
19
  }
18
20
  };
19
21
 
@@ -11,7 +11,9 @@ const semanticSizing = {
11
11
  lg: "1.5rem"
12
12
  },
13
13
  border: {
14
- md: "0.125rem"
14
+ default: "0.0625rem",
15
+ md: "0.125rem",
16
+ "extra-wide": "0.5rem"
15
17
  }
16
18
  };
17
19
 
@@ -190,6 +190,21 @@ const semanticTypography = {
190
190
  font: "italic 700 1rem/1.4 GuardianTextEgyptian",
191
191
  letterSpacing: "0rem",
192
192
  fontWidth: 100
193
+ },
194
+ "interactive-xs": {
195
+ font: "normal 700 0.75rem/1 Open Sans",
196
+ letterSpacing: "0rem",
197
+ fontWidth: 95
198
+ },
199
+ "interactive-sm": {
200
+ font: "normal 700 0.875rem/1 Open Sans",
201
+ letterSpacing: "-0.0125rem",
202
+ fontWidth: 95
203
+ },
204
+ "interactive-md": {
205
+ font: "normal 700 1rem/1 Open Sans",
206
+ letterSpacing: "-0.0125rem",
207
+ fontWidth: 95
193
208
  }
194
209
  };
195
210
 
@@ -188,6 +188,21 @@ const semanticTypography = {
188
188
  font: "italic 700 1rem/1.4 GuardianTextEgyptian",
189
189
  letterSpacing: "0rem",
190
190
  fontWidth: 100
191
+ },
192
+ "interactive-xs": {
193
+ font: "normal 700 0.75rem/1 Open Sans",
194
+ letterSpacing: "0rem",
195
+ fontWidth: 95
196
+ },
197
+ "interactive-sm": {
198
+ font: "normal 700 0.875rem/1 Open Sans",
199
+ letterSpacing: "-0.0125rem",
200
+ fontWidth: 95
201
+ },
202
+ "interactive-md": {
203
+ font: "normal 700 1rem/1 Open Sans",
204
+ letterSpacing: "-0.0125rem",
205
+ fontWidth: 95
191
206
  }
192
207
  };
193
208