@guardian/stand 0.0.9 → 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 (138) hide show
  1. package/README.md +1122 -1
  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/components/TitleText.cjs +28 -0
  7. package/dist/components/TitleText.js +22 -0
  8. package/dist/components/avatar/Avatar.cjs +57 -0
  9. package/dist/components/avatar/Avatar.js +27 -0
  10. package/dist/components/avatar/styles.cjs +33 -0
  11. package/dist/components/avatar/styles.js +29 -0
  12. package/dist/components/avatar/types.cjs +16 -0
  13. package/dist/components/avatar/types.js +14 -0
  14. package/dist/components/button/Button.cjs +29 -0
  15. package/dist/components/button/Button.js +14 -0
  16. package/dist/components/button/styles.cjs +58 -0
  17. package/dist/components/button/styles.js +53 -0
  18. package/dist/components/icon/Icon.cjs +46 -0
  19. package/dist/components/icon/Icon.js +19 -0
  20. package/dist/components/icon/styles.cjs +27 -0
  21. package/dist/components/icon/styles.js +20 -0
  22. package/dist/components/link-button/LinkButton.cjs +29 -0
  23. package/dist/components/link-button/LinkButton.js +14 -0
  24. package/dist/components/link-button/styles.cjs +9 -0
  25. package/dist/components/link-button/styles.js +6 -0
  26. package/dist/components/typography/Typography.cjs +26 -0
  27. package/dist/components/typography/Typography.js +13 -0
  28. package/dist/components/typography/styles.cjs +15 -0
  29. package/dist/components/typography/styles.js +12 -0
  30. package/dist/components/user-menu/PreferenceRadioGroup.cjs +53 -0
  31. package/dist/components/user-menu/PreferenceRadioGroup.js +19 -0
  32. package/dist/components/user-menu/UserMenu.cjs +67 -0
  33. package/dist/components/user-menu/UserMenu.js +11 -0
  34. package/dist/components/user-menu/default-options.cjs +109 -0
  35. package/dist/components/user-menu/default-options.js +105 -0
  36. package/dist/components/user-menu/styles.cjs +90 -0
  37. package/dist/components/user-menu/styles.js +83 -0
  38. package/dist/fonts/MaterialSymbolsOutlined.css +23 -0
  39. package/dist/fonts/MaterialSymbolsRound.css +23 -0
  40. package/dist/fonts/MaterialSymbolsSharp.css +23 -0
  41. package/dist/fonts/material-symbols-types.ts +3825 -0
  42. package/dist/icon.cjs +9 -0
  43. package/dist/icon.js +2 -0
  44. package/dist/index.cjs +16 -4
  45. package/dist/index.js +6 -0
  46. package/dist/link-button.cjs +7 -0
  47. package/dist/link-button.js +1 -0
  48. package/dist/styleD/build/css/base/colors.css +1 -1
  49. package/dist/styleD/build/css/base/sizing.css +2 -0
  50. package/dist/styleD/build/css/component/avatar.css +54 -0
  51. package/dist/styleD/build/css/component/button.css +218 -0
  52. package/dist/styleD/build/css/component/byline.css +1 -1
  53. package/dist/styleD/build/css/component/icon.css +11 -0
  54. package/dist/styleD/build/css/component/typography.css +7 -0
  55. package/dist/styleD/build/css/component/userMenu.css +29 -0
  56. package/dist/styleD/build/css/semantic/colors.css +12 -8
  57. package/dist/styleD/build/css/semantic/sizing.css +1 -0
  58. package/dist/styleD/build/css/semantic/typography.css +3 -0
  59. package/dist/styleD/build/typescript/base/colors.cjs +1 -1
  60. package/dist/styleD/build/typescript/base/colors.js +1 -1
  61. package/dist/styleD/build/typescript/base/sizing.cjs +2 -0
  62. package/dist/styleD/build/typescript/base/sizing.js +2 -0
  63. package/dist/styleD/build/typescript/component/avatar.cjs +88 -0
  64. package/dist/styleD/build/typescript/component/avatar.js +86 -0
  65. package/dist/styleD/build/typescript/component/button.cjs +331 -0
  66. package/dist/styleD/build/typescript/component/button.js +329 -0
  67. package/dist/styleD/build/typescript/component/byline.cjs +1 -1
  68. package/dist/styleD/build/typescript/component/byline.js +1 -1
  69. package/dist/styleD/build/typescript/component/icon.cjs +19 -0
  70. package/dist/styleD/build/typescript/component/icon.js +17 -0
  71. package/dist/styleD/build/typescript/component/typography.cjs +7 -0
  72. package/dist/styleD/build/typescript/component/typography.js +5 -0
  73. package/dist/styleD/build/typescript/component/userMenu.cjs +37 -0
  74. package/dist/styleD/build/typescript/component/userMenu.js +35 -0
  75. package/dist/styleD/build/typescript/semantic/colors.cjs +14 -10
  76. package/dist/styleD/build/typescript/semantic/colors.js +14 -10
  77. package/dist/styleD/build/typescript/semantic/sizing.cjs +2 -1
  78. package/dist/styleD/build/typescript/semantic/sizing.js +2 -1
  79. package/dist/styleD/build/typescript/semantic/typography.cjs +5 -0
  80. package/dist/styleD/build/typescript/semantic/typography.js +5 -0
  81. package/dist/types/avatar.d.ts +19 -0
  82. package/dist/types/button.d.ts +20 -0
  83. package/dist/types/components/TitleText.d.ts +6 -0
  84. package/dist/types/components/avatar/Avatar.d.ts +2 -0
  85. package/dist/types/components/avatar/styles.d.ts +8 -0
  86. package/dist/types/components/avatar/types.d.ts +45 -0
  87. package/dist/types/components/button/Button.d.ts +2 -0
  88. package/dist/types/components/button/styles.d.ts +7 -0
  89. package/dist/types/components/button/types.d.ts +13 -0
  90. package/dist/types/components/byline/schema.d.ts +1 -1
  91. package/dist/types/components/icon/Icon.d.ts +2 -0
  92. package/dist/types/components/icon/styles.d.ts +8 -0
  93. package/dist/types/components/icon/types.d.ts +28 -0
  94. package/dist/types/components/link-button/LinkButton.d.ts +2 -0
  95. package/dist/types/components/link-button/styles.d.ts +330 -0
  96. package/dist/types/components/link-button/types.d.ts +13 -0
  97. package/dist/types/components/typography/Typography.d.ts +6 -0
  98. package/dist/types/components/typography/styles.d.ts +7 -0
  99. package/dist/types/components/typography/types.d.ts +13 -0
  100. package/dist/types/components/user-menu/PreferenceRadioGroup.d.ts +15 -0
  101. package/dist/types/components/user-menu/UserMenu.d.ts +17 -0
  102. package/dist/types/components/user-menu/default-options.d.ts +5 -0
  103. package/dist/types/components/user-menu/model.d.ts +9 -0
  104. package/dist/types/components/user-menu/styles.d.ts +9 -0
  105. package/dist/types/components/user-menu/theme.d.ts +3 -0
  106. package/dist/types/components/user-menu/types.d.ts +5 -0
  107. package/dist/types/fonts/material-symbols-types.d.ts +3822 -0
  108. package/dist/types/icon.d.ts +27 -0
  109. package/dist/types/index.d.ts +17 -0
  110. package/dist/types/link-button.d.ts +20 -0
  111. package/dist/types/styleD/build/typescript/base/colors.d.ts +1 -1
  112. package/dist/types/styleD/build/typescript/base/sizing.d.ts +2 -0
  113. package/dist/types/styleD/build/typescript/component/avatar.d.ts +88 -0
  114. package/dist/types/styleD/build/typescript/component/button.d.ts +331 -0
  115. package/dist/types/styleD/build/typescript/component/icon.d.ts +19 -0
  116. package/dist/types/styleD/build/typescript/component/typography.d.ts +7 -0
  117. package/dist/types/styleD/build/typescript/component/userMenu.d.ts +37 -0
  118. package/dist/types/styleD/build/typescript/semantic/colors.d.ts +7 -3
  119. package/dist/types/styleD/build/typescript/semantic/sizing.d.ts +1 -0
  120. package/dist/types/styleD/build/typescript/semantic/typography.d.ts +5 -0
  121. package/dist/types/typography.d.ts +19 -0
  122. package/dist/types/user-menu.d.ts +18 -0
  123. package/dist/types/util/reset.d.ts +1 -0
  124. package/dist/types/util/storybookStyles.d.ts +1 -0
  125. package/dist/types/util/types.d.ts +28 -0
  126. package/dist/types/utils.d.ts +1 -0
  127. package/dist/typography.cjs +9 -0
  128. package/dist/typography.js +2 -0
  129. package/dist/user-menu.cjs +9 -0
  130. package/dist/user-menu.js +2 -0
  131. package/dist/util/css/reset.css +124 -0
  132. package/dist/util/reset.cjs +10 -0
  133. package/dist/util/reset.css.cjs +5 -0
  134. package/dist/util/reset.css.js +3 -0
  135. package/dist/util/reset.js +8 -0
  136. package/dist/utils.cjs +2 -0
  137. package/dist/utils.js +1 -0
  138. package/package.json +65 -3
@@ -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 };
@@ -25,8 +25,9 @@ const semanticColors = {
25
25
  "interactive-disabled": "#999999"
26
26
  },
27
27
  bg: {
28
- "default-onDark": "#121212",
29
- "default-onLight": "#ffffff"
28
+ base: "#ffffff",
29
+ "raised-1": "#f6f6f6",
30
+ "raised-2": "#ededed"
30
31
  },
31
32
  surface: {
32
33
  "light-1": "#f6f6f6",
@@ -34,14 +35,16 @@ const semanticColors = {
34
35
  "dark-1": "#333333"
35
36
  },
36
37
  border: {
37
- subtle: "#cccccc",
38
38
  default: "#8d8d8d",
39
+ secondary: "#cccccc",
40
+ tertiary: "#ededed",
39
41
  strong: "#545454",
40
42
  "inverse-strong": "#ffffff",
41
43
  "interactive-emphasised": "#0d4289",
42
44
  "interactive-neutral": "#545454",
43
45
  "interactive-disabled": "#dcdcdc",
44
- "interactive-focused": "#0072a9"
46
+ "interactive-focused": "#0072a9",
47
+ "interactive-selected": "#0072a9"
45
48
  },
46
49
  status: {
47
50
  "status-draft": "#f1c21b",
@@ -52,17 +55,17 @@ const semanticColors = {
52
55
  fill: {
53
56
  "interactive-primary-emphasised": "#0d4289",
54
57
  "interactive-primary-emphasised-hover": "#092f62",
55
- "interactive-primary-emphasised-pressed": "#092f62",
58
+ "interactive-primary-emphasised-pressed": "#061d3c",
56
59
  "interactive-secondary-emphasised-hover": "#e8f0fb",
57
- "interactive-secondary-emphasised-pressed": "#e8f0fb",
60
+ "interactive-secondary-emphasised-pressed": "#c5d9f4",
58
61
  "interactive-primary-neutral": "#545454",
59
62
  "interactive-primary-neutral-hover": "#333333",
60
- "interactive-primary-neutral-pressed": "#333333",
63
+ "interactive-primary-neutral-pressed": "#121212",
61
64
  "interactive-secondary-neutral-hover": "#ededed",
62
- "interactive-secondary-neutral-pressed": "#ededed",
65
+ "interactive-secondary-neutral-pressed": "#dcdcdc",
63
66
  "interactive-disabled": "#dcdcdc",
64
67
  "green-subtle": "#cde4c9",
65
- "blue-subtle": "#bdd4f4",
68
+ "blue-subtle": "#c5d9f4",
66
69
  "red-subtle": "#f5c6c0",
67
70
  "cyan-subtle": "#b8d8e7",
68
71
  "teal-subtle": "#c5dfe1",
@@ -70,7 +73,8 @@ const semanticColors = {
70
73
  "warm-purple-subtle": "#dac3e8",
71
74
  "magenta-subtle": "#edc6d7",
72
75
  "orange-subtle": "#fcddc6",
73
- "yellow-subtle": "#fbeebf"
76
+ "yellow-subtle": "#fbeebf",
77
+ selected: "#005d8b"
74
78
  }
75
79
  };
76
80
 
@@ -23,8 +23,9 @@ const semanticColors = {
23
23
  "interactive-disabled": "#999999"
24
24
  },
25
25
  bg: {
26
- "default-onDark": "#121212",
27
- "default-onLight": "#ffffff"
26
+ base: "#ffffff",
27
+ "raised-1": "#f6f6f6",
28
+ "raised-2": "#ededed"
28
29
  },
29
30
  surface: {
30
31
  "light-1": "#f6f6f6",
@@ -32,14 +33,16 @@ const semanticColors = {
32
33
  "dark-1": "#333333"
33
34
  },
34
35
  border: {
35
- subtle: "#cccccc",
36
36
  default: "#8d8d8d",
37
+ secondary: "#cccccc",
38
+ tertiary: "#ededed",
37
39
  strong: "#545454",
38
40
  "inverse-strong": "#ffffff",
39
41
  "interactive-emphasised": "#0d4289",
40
42
  "interactive-neutral": "#545454",
41
43
  "interactive-disabled": "#dcdcdc",
42
- "interactive-focused": "#0072a9"
44
+ "interactive-focused": "#0072a9",
45
+ "interactive-selected": "#0072a9"
43
46
  },
44
47
  status: {
45
48
  "status-draft": "#f1c21b",
@@ -50,17 +53,17 @@ const semanticColors = {
50
53
  fill: {
51
54
  "interactive-primary-emphasised": "#0d4289",
52
55
  "interactive-primary-emphasised-hover": "#092f62",
53
- "interactive-primary-emphasised-pressed": "#092f62",
56
+ "interactive-primary-emphasised-pressed": "#061d3c",
54
57
  "interactive-secondary-emphasised-hover": "#e8f0fb",
55
- "interactive-secondary-emphasised-pressed": "#e8f0fb",
58
+ "interactive-secondary-emphasised-pressed": "#c5d9f4",
56
59
  "interactive-primary-neutral": "#545454",
57
60
  "interactive-primary-neutral-hover": "#333333",
58
- "interactive-primary-neutral-pressed": "#333333",
61
+ "interactive-primary-neutral-pressed": "#121212",
59
62
  "interactive-secondary-neutral-hover": "#ededed",
60
- "interactive-secondary-neutral-pressed": "#ededed",
63
+ "interactive-secondary-neutral-pressed": "#dcdcdc",
61
64
  "interactive-disabled": "#dcdcdc",
62
65
  "green-subtle": "#cde4c9",
63
- "blue-subtle": "#bdd4f4",
66
+ "blue-subtle": "#c5d9f4",
64
67
  "red-subtle": "#f5c6c0",
65
68
  "cyan-subtle": "#b8d8e7",
66
69
  "teal-subtle": "#c5dfe1",
@@ -68,7 +71,8 @@ const semanticColors = {
68
71
  "warm-purple-subtle": "#dac3e8",
69
72
  "magenta-subtle": "#edc6d7",
70
73
  "orange-subtle": "#fcddc6",
71
- "yellow-subtle": "#fbeebf"
74
+ "yellow-subtle": "#fbeebf",
75
+ selected: "#005d8b"
72
76
  }
73
77
  };
74
78
 
@@ -14,7 +14,8 @@ const semanticSizing = {
14
14
  },
15
15
  border: {
16
16
  default: "0.0625rem",
17
- md: "0.125rem"
17
+ md: "0.125rem",
18
+ "extra-wide": "0.5rem"
18
19
  }
19
20
  };
20
21
 
@@ -12,7 +12,8 @@ const semanticSizing = {
12
12
  },
13
13
  border: {
14
14
  default: "0.0625rem",
15
- md: "0.125rem"
15
+ md: "0.125rem",
16
+ "extra-wide": "0.5rem"
16
17
  }
17
18
  };
18
19
 
@@ -200,6 +200,11 @@ const semanticTypography = {
200
200
  font: "normal 700 0.875rem/1 Open Sans",
201
201
  letterSpacing: "-0.0125rem",
202
202
  fontWidth: 95
203
+ },
204
+ "interactive-md": {
205
+ font: "normal 700 1rem/1 Open Sans",
206
+ letterSpacing: "-0.0125rem",
207
+ fontWidth: 95
203
208
  }
204
209
  };
205
210
 
@@ -198,6 +198,11 @@ const semanticTypography = {
198
198
  font: "normal 700 0.875rem/1 Open Sans",
199
199
  letterSpacing: "-0.0125rem",
200
200
  fontWidth: 95
201
+ },
202
+ "interactive-md": {
203
+ font: "normal 700 1rem/1 Open Sans",
204
+ letterSpacing: "-0.0125rem",
205
+ fontWidth: 95
201
206
  }
202
207
  };
203
208
 
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Avatar component entry point
3
+ *
4
+ * Peer dependencies required to use these components:
5
+ * - `@emotion/react`
6
+ * - `react`
7
+ * - `react-dom`
8
+ * - `typescript`
9
+ *
10
+ * See the `peerDependencies` section of package.json for compatible versions.
11
+ *
12
+ * If you only need the built CSS (./component/avatar.css),
13
+ * you don't need to install these.
14
+ */
15
+ export { Avatar } from './components/avatar/Avatar';
16
+ export type { AvatarProps } from './components/avatar/types';
17
+ export type { AvatarTheme } from './components/avatar/styles';
18
+ export { componentAvatar } from './styleD/build/typescript/component/avatar';
19
+ export type { ComponentAvatar } from './styleD/build/typescript/component/avatar';
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Button component entry point
3
+ *
4
+ * Peer dependencies required to use these components:
5
+ * - `@emotion/react`
6
+ * - `react`
7
+ * - `react-dom`
8
+ * - `react-aria-components`
9
+ * - `typescript`
10
+ *
11
+ * See the `peerDependencies` section of package.json for compatible versions.
12
+ *
13
+ * If you only need the built CSS (./component/button.css),
14
+ * you don't need to install these.
15
+ */
16
+ export { Button } from './components/button/Button';
17
+ export type { ButtonProps } from './components/button/types';
18
+ export type { ButtonTheme } from './components/button/styles';
19
+ export { componentButton } from './styleD/build/typescript/component/button';
20
+ export type { ComponentButton } from './styleD/build/typescript/component/button';