@guardian/stand 0.0.17 → 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.
Files changed (51) hide show
  1. package/dist/avatarButton.cjs +7 -0
  2. package/dist/avatarButton.js +1 -0
  3. package/dist/avatarLink.cjs +7 -0
  4. package/dist/avatarLink.js +1 -0
  5. package/dist/components/avatar/styles.cjs +24 -0
  6. package/dist/components/avatar/styles.js +24 -0
  7. package/dist/components/avatar-button/AvatarButton.cjs +14 -0
  8. package/dist/components/avatar-button/AvatarButton.js +12 -0
  9. package/dist/components/avatar-button/styles.cjs +29 -0
  10. package/dist/components/avatar-button/styles.js +26 -0
  11. package/dist/components/avatar-link/AvatarLink.cjs +14 -0
  12. package/dist/components/avatar-link/AvatarLink.js +12 -0
  13. package/dist/components/avatar-link/styles.cjs +24 -0
  14. package/dist/components/avatar-link/styles.js +21 -0
  15. package/dist/components/inline-message/InlineMessage.cjs +56 -0
  16. package/dist/components/inline-message/InlineMessage.js +27 -0
  17. package/dist/components/inline-message/styles.cjs +17 -0
  18. package/dist/components/inline-message/styles.js +14 -0
  19. package/dist/index.cjs +2 -0
  20. package/dist/index.js +1 -0
  21. package/dist/inline-message.cjs +9 -0
  22. package/dist/inline-message.js +2 -0
  23. package/dist/styleD/build/css/component/avatar.css +31 -0
  24. package/dist/styleD/build/css/component/inlineMessage.css +17 -0
  25. package/dist/styleD/build/css/semantic/typography.css +38 -0
  26. package/dist/styleD/build/typescript/component/avatar.cjs +95 -12
  27. package/dist/styleD/build/typescript/component/avatar.js +95 -12
  28. package/dist/styleD/build/typescript/component/inlineMessage.cjs +28 -0
  29. package/dist/styleD/build/typescript/component/inlineMessage.js +26 -0
  30. package/dist/styleD/build/typescript/semantic/typography.cjs +50 -0
  31. package/dist/styleD/build/typescript/semantic/typography.js +50 -0
  32. package/dist/types/avatar-button.d.ts +18 -0
  33. package/dist/types/avatar-link.d.ts +18 -0
  34. package/dist/types/components/avatar-button/AvatarButton.d.ts +2 -0
  35. package/dist/types/components/avatar-button/sandbox.d.ts +5 -0
  36. package/dist/types/components/avatar-button/styles.d.ts +6 -0
  37. package/dist/types/components/avatar-button/types.d.ts +3 -0
  38. package/dist/types/components/avatar-link/AvatarLink.d.ts +2 -0
  39. package/dist/types/components/avatar-link/sandbox.d.ts +5 -0
  40. package/dist/types/components/avatar-link/styles.d.ts +6 -0
  41. package/dist/types/components/avatar-link/types.d.ts +3 -0
  42. package/dist/types/components/inline-message/InlineMessage.d.ts +2 -0
  43. package/dist/types/components/inline-message/sandbox.d.ts +5 -0
  44. package/dist/types/components/inline-message/styles.d.ts +8 -0
  45. package/dist/types/components/inline-message/types.d.ts +21 -0
  46. package/dist/types/index.d.ts +2 -0
  47. package/dist/types/inline-message.d.ts +19 -0
  48. package/dist/types/styleD/build/typescript/component/avatar.d.ts +83 -0
  49. package/dist/types/styleD/build/typescript/component/inlineMessage.d.ts +28 -0
  50. package/dist/types/styleD/build/typescript/semantic/typography.d.ts +50 -0
  51. package/package.json +24 -5
@@ -0,0 +1,19 @@
1
+ /**
2
+ * InlineMessage 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/inlineMessage.css),
13
+ * you don't need to install these.
14
+ */
15
+ export { InlineMessage } from './components/inline-message/InlineMessage';
16
+ export type { InlineMessageProps } from './components/inline-message/types';
17
+ export type { PartialInlineMessageTheme as InlineMessageTheme } from './components/inline-message/styles';
18
+ export { componentInlineMessage } from './styleD/build/typescript/component/inlineMessage';
19
+ export type { ComponentInlineMessage } from './styleD/build/typescript/component/inlineMessage';
@@ -8,56 +8,122 @@ export declare const componentAvatar: {
8
8
  text: string;
9
9
  background: string;
10
10
  border: string;
11
+ ':hover': {
12
+ background: string;
13
+ };
14
+ ':active': {
15
+ background: string;
16
+ };
11
17
  };
12
18
  blue: {
13
19
  text: string;
14
20
  background: string;
15
21
  border: string;
22
+ ':hover': {
23
+ background: string;
24
+ };
25
+ ':active': {
26
+ background: string;
27
+ };
16
28
  };
17
29
  red: {
18
30
  text: string;
19
31
  background: string;
20
32
  border: string;
33
+ ':hover': {
34
+ background: string;
35
+ };
36
+ ':active': {
37
+ background: string;
38
+ };
21
39
  };
22
40
  cyan: {
23
41
  text: string;
24
42
  background: string;
25
43
  border: string;
44
+ ':hover': {
45
+ background: string;
46
+ };
47
+ ':active': {
48
+ background: string;
49
+ };
26
50
  };
27
51
  teal: {
28
52
  text: string;
29
53
  background: string;
30
54
  border: string;
55
+ ':hover': {
56
+ background: string;
57
+ };
58
+ ':active': {
59
+ background: string;
60
+ };
31
61
  };
32
62
  'cool-purple': {
33
63
  text: string;
34
64
  background: string;
35
65
  border: string;
66
+ ':hover': {
67
+ background: string;
68
+ };
69
+ ':active': {
70
+ background: string;
71
+ };
36
72
  };
37
73
  'warm-purple': {
38
74
  text: string;
39
75
  background: string;
40
76
  border: string;
77
+ ':hover': {
78
+ background: string;
79
+ };
80
+ ':active': {
81
+ background: string;
82
+ };
41
83
  };
42
84
  magenta: {
43
85
  text: string;
44
86
  background: string;
45
87
  border: string;
88
+ ':hover': {
89
+ background: string;
90
+ };
91
+ ':active': {
92
+ background: string;
93
+ };
46
94
  };
47
95
  orange: {
48
96
  text: string;
49
97
  background: string;
50
98
  border: string;
99
+ ':hover': {
100
+ background: string;
101
+ };
102
+ ':active': {
103
+ background: string;
104
+ };
51
105
  };
52
106
  yellow: {
53
107
  text: string;
54
108
  background: string;
55
109
  border: string;
110
+ ':hover': {
111
+ background: string;
112
+ };
113
+ ':active': {
114
+ background: string;
115
+ };
56
116
  };
57
117
  outlined: {
58
118
  text: string;
59
119
  background: string;
60
120
  border: string;
121
+ ':hover': {
122
+ background: string;
123
+ };
124
+ ':active': {
125
+ background: string;
126
+ };
61
127
  };
62
128
  };
63
129
  display: string;
@@ -67,6 +133,23 @@ export declare const componentAvatar: {
67
133
  'flex-shrink': string;
68
134
  'border-radius': string;
69
135
  'user-select': string;
136
+ link: {
137
+ width: string;
138
+ ':focus-visible': {
139
+ outline: string;
140
+ 'outline-offset': string;
141
+ };
142
+ 'text-decoration': string;
143
+ };
144
+ button: {
145
+ background: string;
146
+ border: string;
147
+ padding: string;
148
+ cursor: string;
149
+ ':disabled': {
150
+ cursor: string;
151
+ };
152
+ };
70
153
  };
71
154
  sm: {
72
155
  size: 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;
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guardian/stand",
3
- "version": "0.0.17",
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
  },
@@ -203,7 +222,7 @@
203
222
  "react-dom": "17.0.2",
204
223
  "remark-gfm": "^4.0.1",
205
224
  "rimraf": "6.1.3",
206
- "rollup": "4.60.0",
225
+ "rollup": "4.60.1",
207
226
  "rollup-plugin-copy": "^3.5.0",
208
227
  "rollup-plugin-esbuild": "6.2.1",
209
228
  "rollup-plugin-import-css": "^4.2.0",
@@ -213,8 +232,8 @@
213
232
  "ts-jest": "29.4.6",
214
233
  "tslib": "2.8.1",
215
234
  "typescript": "5.1.3",
216
- "vite": "^8.0.2",
217
- "vite-plugin-svgr": "^4.5.0"
235
+ "vite": "^8.0.3",
236
+ "vite-plugin-svgr": "^5.0.0"
218
237
  },
219
238
  "peerDependencies": {
220
239
  "@emotion/react": ">=11.11.4 <=11.14.0",