@guardian/stand 0.0.19 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/TopBar.cjs +2 -0
- package/dist/TopBar.js +1 -1
- package/dist/components/form/Form.cjs +47 -0
- package/dist/components/form/Form.js +17 -0
- package/dist/components/form/styles.cjs +49 -0
- package/dist/components/form/styles.js +35 -0
- package/dist/components/form/types.cjs +7 -0
- package/dist/components/form/types.js +5 -0
- package/dist/components/menu/Menu.cjs +1 -7
- package/dist/components/menu/Menu.js +1 -9
- package/dist/components/menu/styles.cjs +25 -11
- package/dist/components/menu/styles.js +25 -11
- package/dist/components/select/Select.cjs +6 -15
- package/dist/components/select/Select.js +5 -5
- package/dist/components/select/styles.cjs +30 -55
- package/dist/components/select/styles.js +31 -53
- package/dist/components/text-input/TextInput.cjs +28 -0
- package/dist/components/text-input/TextInput.js +12 -0
- package/dist/components/text-input/styles.cjs +35 -0
- package/dist/components/text-input/styles.js +32 -0
- package/dist/form.cjs +7 -0
- package/dist/form.js +1 -0
- package/dist/index.cjs +4 -0
- package/dist/index.js +2 -0
- package/dist/styleD/build/css/component/form.css +28 -0
- package/dist/styleD/build/css/component/menu.css +2 -0
- package/dist/styleD/build/css/component/select.css +37 -46
- package/dist/styleD/build/css/component/textInput.css +29 -0
- package/dist/styleD/build/typescript/component/form.cjs +57 -0
- package/dist/styleD/build/typescript/component/form.js +55 -0
- package/dist/styleD/build/typescript/component/menu.cjs +5 -1
- package/dist/styleD/build/typescript/component/menu.js +5 -1
- package/dist/styleD/build/typescript/component/select.cjs +50 -69
- package/dist/styleD/build/typescript/component/select.js +50 -69
- package/dist/styleD/build/typescript/component/textInput.cjs +45 -0
- package/dist/styleD/build/typescript/component/textInput.js +43 -0
- package/dist/text-input.cjs +9 -0
- package/dist/text-input.js +2 -0
- package/dist/types/TopBar.d.ts +1 -1
- package/dist/types/components/form/Form.d.ts +5 -0
- package/dist/types/components/form/styles.d.ts +15 -0
- package/dist/types/components/form/types.d.ts +40 -0
- package/dist/types/components/menu/styles.d.ts +1 -1
- package/dist/types/components/select/Select.d.ts +1 -1
- package/dist/types/components/select/styles.d.ts +0 -3
- package/dist/types/components/select/types.d.ts +2 -14
- package/dist/types/components/text-input/TextInput.d.ts +2 -0
- package/dist/types/components/text-input/sandbox.d.ts +5 -0
- package/dist/types/components/text-input/styles.d.ts +7 -0
- package/dist/types/components/text-input/types.d.ts +4 -0
- package/dist/types/form.d.ts +8 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/menu.d.ts +0 -1
- package/dist/types/styleD/build/typescript/component/form.d.ts +57 -0
- package/dist/types/styleD/build/typescript/component/menu.d.ts +4 -0
- package/dist/types/styleD/build/typescript/component/select.d.ts +46 -65
- package/dist/types/styleD/build/typescript/component/textInput.d.ts +45 -0
- package/dist/types/text-input.d.ts +20 -0
- package/package.json +30 -17
|
@@ -97,11 +97,15 @@ export declare const componentMenu: {
|
|
|
97
97
|
};
|
|
98
98
|
':hover': {
|
|
99
99
|
'background-color': string;
|
|
100
|
+
outline: string;
|
|
100
101
|
};
|
|
101
102
|
':focus-visible': {
|
|
102
103
|
outline: string;
|
|
103
104
|
'outline-offset': string;
|
|
104
105
|
};
|
|
106
|
+
':pressed': {
|
|
107
|
+
'background-color': string;
|
|
108
|
+
};
|
|
105
109
|
};
|
|
106
110
|
sm: {
|
|
107
111
|
icon: {
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const componentSelect: {
|
|
5
5
|
shared: {
|
|
6
|
-
display: string;
|
|
7
|
-
flexDirection: string;
|
|
8
|
-
gap: string;
|
|
9
6
|
maxWidth: string;
|
|
10
7
|
width: string;
|
|
11
8
|
hover: {
|
|
@@ -15,74 +12,58 @@ export declare const componentSelect: {
|
|
|
15
12
|
pressed: {
|
|
16
13
|
backgroundColor: string;
|
|
17
14
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
letterSpacing: string;
|
|
24
|
-
fontWidth: number;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
helpText: {
|
|
28
|
-
color: string;
|
|
29
|
-
typography: {
|
|
30
|
-
font: string;
|
|
31
|
-
letterSpacing: string;
|
|
32
|
-
fontWidth: number;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
button: {
|
|
36
|
-
display: string;
|
|
37
|
-
justifyContent: string;
|
|
38
|
-
alignItems: string;
|
|
39
|
-
marginTop: string;
|
|
40
|
-
backgroundColor: string;
|
|
41
|
-
border: string;
|
|
42
|
-
borderRadius: string;
|
|
43
|
-
height: string;
|
|
44
|
-
paddingLeft: string;
|
|
45
|
-
paddingRight: string;
|
|
46
|
-
color: string;
|
|
47
|
-
typography: {
|
|
48
|
-
font: string;
|
|
49
|
-
letterSpacing: string;
|
|
50
|
-
fontWidth: number;
|
|
51
|
-
};
|
|
52
|
-
focused: {
|
|
53
|
-
outline: string;
|
|
54
|
-
'outline-offset': string;
|
|
55
|
-
};
|
|
56
|
-
disabled: {
|
|
15
|
+
button: {
|
|
16
|
+
display: string;
|
|
17
|
+
justifyContent: string;
|
|
18
|
+
alignItems: string;
|
|
19
|
+
marginTop: string;
|
|
57
20
|
backgroundColor: string;
|
|
58
|
-
cursor: string;
|
|
59
|
-
color: string;
|
|
60
21
|
border: string;
|
|
22
|
+
borderRadius: string;
|
|
23
|
+
height: string;
|
|
24
|
+
paddingLeft: string;
|
|
25
|
+
paddingRight: string;
|
|
26
|
+
color: string;
|
|
27
|
+
typography: {
|
|
28
|
+
font: string;
|
|
29
|
+
letterSpacing: string;
|
|
30
|
+
fontWidth: number;
|
|
31
|
+
};
|
|
32
|
+
focused: {
|
|
33
|
+
outline: string;
|
|
34
|
+
'outline-offset': string;
|
|
35
|
+
};
|
|
36
|
+
disabled: {
|
|
37
|
+
backgroundColor: string;
|
|
38
|
+
cursor: string;
|
|
39
|
+
color: string;
|
|
40
|
+
border: string;
|
|
41
|
+
};
|
|
42
|
+
error: {
|
|
43
|
+
border: string;
|
|
44
|
+
};
|
|
61
45
|
};
|
|
62
|
-
|
|
63
|
-
|
|
46
|
+
option: {
|
|
47
|
+
paddingLeft: string;
|
|
48
|
+
paddingRight: string;
|
|
49
|
+
paddingTop: string;
|
|
50
|
+
paddingBottom: string;
|
|
51
|
+
focused: {
|
|
52
|
+
outline: string;
|
|
53
|
+
'outline-offset': string;
|
|
54
|
+
backgroundColor: string;
|
|
55
|
+
};
|
|
64
56
|
};
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
outline: string;
|
|
73
|
-
'outline-offset': string;
|
|
57
|
+
listBox: {
|
|
58
|
+
typography: {
|
|
59
|
+
font: string;
|
|
60
|
+
letterSpacing: string;
|
|
61
|
+
fontWidth: number;
|
|
62
|
+
};
|
|
63
|
+
border: string;
|
|
74
64
|
backgroundColor: string;
|
|
65
|
+
shadow: string;
|
|
75
66
|
};
|
|
76
67
|
};
|
|
77
|
-
listBox: {
|
|
78
|
-
typography: {
|
|
79
|
-
font: string;
|
|
80
|
-
letterSpacing: string;
|
|
81
|
-
fontWidth: number;
|
|
82
|
-
};
|
|
83
|
-
border: string;
|
|
84
|
-
backgroundColor: string;
|
|
85
|
-
shadow: string;
|
|
86
|
-
};
|
|
87
68
|
};
|
|
88
69
|
export type ComponentSelect = typeof componentSelect;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
export declare const componentTextInput: {
|
|
5
|
+
shared: {
|
|
6
|
+
color: string;
|
|
7
|
+
cursor: string;
|
|
8
|
+
padding: {
|
|
9
|
+
top: string;
|
|
10
|
+
right: string;
|
|
11
|
+
bottom: string;
|
|
12
|
+
left: string;
|
|
13
|
+
};
|
|
14
|
+
'margin-top': string;
|
|
15
|
+
'border-radius': string;
|
|
16
|
+
border: string;
|
|
17
|
+
'background-color': string;
|
|
18
|
+
disabled: {
|
|
19
|
+
backgroundColor: string;
|
|
20
|
+
cursor: string;
|
|
21
|
+
color: string;
|
|
22
|
+
border: string;
|
|
23
|
+
};
|
|
24
|
+
error: {
|
|
25
|
+
border: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
sm: {
|
|
29
|
+
height: string;
|
|
30
|
+
typography: {
|
|
31
|
+
font: string;
|
|
32
|
+
letterSpacing: string;
|
|
33
|
+
fontWidth: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
md: {
|
|
37
|
+
height: string;
|
|
38
|
+
typography: {
|
|
39
|
+
font: string;
|
|
40
|
+
letterSpacing: string;
|
|
41
|
+
fontWidth: number;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export type ComponentTextInput = typeof componentTextInput;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TextInput component entry point
|
|
3
|
+
*
|
|
4
|
+
* Peer dependencies required to use these components:
|
|
5
|
+
* - `@emotion/react`
|
|
6
|
+
* - `react`
|
|
7
|
+
* - `react-dom`
|
|
8
|
+
* - `typescript`
|
|
9
|
+
* - `react-aria-components`
|
|
10
|
+
*
|
|
11
|
+
* See the `peerDependencies` section of package.json for compatible versions.
|
|
12
|
+
*
|
|
13
|
+
* If you only need the built CSS (./component/textInput.css),
|
|
14
|
+
* you don't need to install these.
|
|
15
|
+
*/
|
|
16
|
+
export { TextInput } from './components/text-input/TextInput';
|
|
17
|
+
export type { TextInputProps } from './components/text-input/types';
|
|
18
|
+
export type { TextInputTheme } from './components/text-input/styles';
|
|
19
|
+
export { componentTextInput } from './styleD/build/typescript/component/textInput';
|
|
20
|
+
export type { ComponentTextInput } from './styleD/build/typescript/component/textInput';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guardian/stand",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
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": {
|
|
@@ -69,6 +69,11 @@
|
|
|
69
69
|
"import": "./dist/TopBar.js",
|
|
70
70
|
"require": "./dist/TopBar.cjs"
|
|
71
71
|
},
|
|
72
|
+
"./form": {
|
|
73
|
+
"types": "./dist/types/form.d.ts",
|
|
74
|
+
"import": "./dist/form.js",
|
|
75
|
+
"require": "./dist/form.cjs"
|
|
76
|
+
},
|
|
72
77
|
"./inline-message": {
|
|
73
78
|
"types": "./dist/types/inline-message.d.ts",
|
|
74
79
|
"import": "./dist/inline-message.js",
|
|
@@ -79,6 +84,11 @@
|
|
|
79
84
|
"import": "./dist/select.js",
|
|
80
85
|
"require": "./dist/select.cjs"
|
|
81
86
|
},
|
|
87
|
+
"./text-input": {
|
|
88
|
+
"types": "./dist/types/text-input.d.ts",
|
|
89
|
+
"import": "./dist/text-input.js",
|
|
90
|
+
"require": "./dist/text-input.cjs"
|
|
91
|
+
},
|
|
82
92
|
"./byline": {
|
|
83
93
|
"types": "./dist/types/byline.d.ts",
|
|
84
94
|
"import": "./dist/byline.js",
|
|
@@ -124,8 +134,10 @@
|
|
|
124
134
|
"./component/favicon.css": "./dist/styleD/build/css/component/favicon.css",
|
|
125
135
|
"./component/menu.css": "./dist/styleD/build/css/component/menu.css",
|
|
126
136
|
"./component/TopBar.css": "./dist/styleD/build/css/component/TopBar.css",
|
|
137
|
+
"./component/form.css": "./dist/styleD/build/css/component/form.css",
|
|
127
138
|
"./component/inlineMessage.css": "./dist/styleD/build/css/component/inlineMessage.css",
|
|
128
|
-
"./component/select.css": "./dist/styleD/build/css/component/select.css"
|
|
139
|
+
"./component/select.css": "./dist/styleD/build/css/component/select.css",
|
|
140
|
+
"./component/textInput.css": "./dist/styleD/build/css/component/textInput.css"
|
|
129
141
|
},
|
|
130
142
|
"//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.",
|
|
131
143
|
"typesVersions": {
|
|
@@ -178,11 +190,17 @@
|
|
|
178
190
|
"menu": [
|
|
179
191
|
"./dist/types/menu.d.ts"
|
|
180
192
|
],
|
|
193
|
+
"form": [
|
|
194
|
+
"./dist/types/form.d.ts"
|
|
195
|
+
],
|
|
181
196
|
"inline-message": [
|
|
182
197
|
"./dist/types/inline-message.d.ts"
|
|
183
198
|
],
|
|
184
199
|
"select": [
|
|
185
200
|
"./dist/types/select.d.ts"
|
|
201
|
+
],
|
|
202
|
+
"text-input": [
|
|
203
|
+
"./dist/types/text-input.d.ts"
|
|
186
204
|
]
|
|
187
205
|
}
|
|
188
206
|
},
|
|
@@ -200,20 +218,19 @@
|
|
|
200
218
|
"@changesets/cli": "^2.30.0",
|
|
201
219
|
"@codesandbox/sandpack-react": "^2.20.0",
|
|
202
220
|
"@emotion/react": "11.11.4",
|
|
203
|
-
"@figma/rest-api-spec": "^0.
|
|
221
|
+
"@figma/rest-api-spec": "^0.37.0",
|
|
204
222
|
"@guardian/eslint-config": "14.0.1",
|
|
205
223
|
"@guardian/prettier": "10.0.0",
|
|
206
224
|
"@guardian/prosemirror-invisibles": "3.1.1",
|
|
207
225
|
"@guardian/tsconfig": "1.0.1",
|
|
208
226
|
"@material-design-icons/svg": "^0.14.15",
|
|
209
|
-
"@playwright/experimental-ct-react17": "^1.
|
|
210
|
-
"@react-aria/focus": "3.21.5",
|
|
227
|
+
"@playwright/experimental-ct-react17": "^1.59.1",
|
|
211
228
|
"@rollup/plugin-commonjs": "29.0.2",
|
|
212
229
|
"@rollup/plugin-node-resolve": "16.0.3",
|
|
213
230
|
"@rollup/plugin-typescript": "12.3.0",
|
|
214
|
-
"@storybook/addon-docs": "^10.3.
|
|
215
|
-
"@storybook/addon-themes": "^10.3.
|
|
216
|
-
"@storybook/react-vite": "^10.3.
|
|
231
|
+
"@storybook/addon-docs": "^10.3.4",
|
|
232
|
+
"@storybook/addon-themes": "^10.3.4",
|
|
233
|
+
"@storybook/react-vite": "^10.3.4",
|
|
217
234
|
"@testing-library/jest-dom": "^6.9.1",
|
|
218
235
|
"@types/jest": "30.0.0",
|
|
219
236
|
"@types/node": "^24.10.1",
|
|
@@ -221,7 +238,7 @@
|
|
|
221
238
|
"@types/react-dom": "17.0.25",
|
|
222
239
|
"change-case": "^5.4.4",
|
|
223
240
|
"eslint": "9.39.3",
|
|
224
|
-
"eslint-plugin-storybook": "^10.3.
|
|
241
|
+
"eslint-plugin-storybook": "^10.3.4",
|
|
225
242
|
"husky": "^9.1.7",
|
|
226
243
|
"jest": "30.3.0",
|
|
227
244
|
"jest-environment-jsdom": "^30.3.0",
|
|
@@ -242,18 +259,17 @@
|
|
|
242
259
|
"rollup-plugin-esbuild": "6.2.1",
|
|
243
260
|
"rollup-plugin-import-css": "^4.2.0",
|
|
244
261
|
"rollup-plugin-node-externals": "8.1.2",
|
|
245
|
-
"storybook": "^10.3.
|
|
262
|
+
"storybook": "^10.3.4",
|
|
246
263
|
"style-dictionary": "^5.4.0",
|
|
247
|
-
"ts-jest": "29.4.
|
|
264
|
+
"ts-jest": "29.4.9",
|
|
248
265
|
"tslib": "2.8.1",
|
|
249
266
|
"typescript": "5.1.3",
|
|
250
|
-
"vite": "^8.0.
|
|
251
|
-
"vite-plugin-svgr": "^5.
|
|
267
|
+
"vite": "^8.0.5",
|
|
268
|
+
"vite-plugin-svgr": "^5.2.0"
|
|
252
269
|
},
|
|
253
270
|
"peerDependencies": {
|
|
254
271
|
"@emotion/react": ">=11.11.4 <=11.14.0",
|
|
255
272
|
"@guardian/prosemirror-invisibles": "3.1.1",
|
|
256
|
-
"@react-aria/focus": "^3.21.5",
|
|
257
273
|
"prosemirror-dropcursor": "1.8.2",
|
|
258
274
|
"prosemirror-history": "1.4.1",
|
|
259
275
|
"prosemirror-keymap": "1.2.2",
|
|
@@ -272,9 +288,6 @@
|
|
|
272
288
|
"@guardian/prosemirror-invisibles": {
|
|
273
289
|
"optional": true
|
|
274
290
|
},
|
|
275
|
-
"@react-aria/focus": {
|
|
276
|
-
"optional": true
|
|
277
|
-
},
|
|
278
291
|
"prosemirror-dropcursor": {
|
|
279
292
|
"optional": true
|
|
280
293
|
},
|