@guardian/stand 0.0.55 → 0.0.57

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 (43) hide show
  1. package/dist/ButtonGroup.cjs +5 -0
  2. package/dist/ButtonGroup.d.cts +5 -0
  3. package/dist/ButtonGroup.d.ts +5 -0
  4. package/dist/ButtonGroup.js +3 -0
  5. package/dist/Tabs.cjs +5 -0
  6. package/dist/Tabs.d.cts +5 -0
  7. package/dist/Tabs.d.ts +5 -0
  8. package/dist/Tabs.js +3 -0
  9. package/dist/components/ButtonGroup/ButtonGroup.cjs +25 -0
  10. package/dist/components/ButtonGroup/ButtonGroup.d.cts +11 -0
  11. package/dist/components/ButtonGroup/ButtonGroup.d.ts +11 -0
  12. package/dist/components/ButtonGroup/ButtonGroup.js +23 -0
  13. package/dist/components/ButtonGroup/styles.cjs +21 -0
  14. package/dist/components/ButtonGroup/styles.d.cts +9 -0
  15. package/dist/components/ButtonGroup/styles.d.ts +9 -0
  16. package/dist/components/ButtonGroup/styles.js +20 -0
  17. package/dist/components/ButtonGroup/types.d.cts +13 -0
  18. package/dist/components/ButtonGroup/types.d.ts +13 -0
  19. package/dist/components/Tabs/Tabs.cjs +88 -0
  20. package/dist/components/Tabs/Tabs.d.cts +15 -0
  21. package/dist/components/Tabs/Tabs.d.ts +15 -0
  22. package/dist/components/Tabs/Tabs.js +86 -0
  23. package/dist/components/Tabs/styles.cjs +146 -0
  24. package/dist/components/Tabs/styles.d.cts +17 -0
  25. package/dist/components/Tabs/styles.d.ts +17 -0
  26. package/dist/components/Tabs/styles.js +137 -0
  27. package/dist/components/Tabs/types.d.cts +63 -0
  28. package/dist/components/Tabs/types.d.ts +63 -0
  29. package/dist/index.cjs +4 -0
  30. package/dist/index.d.cts +3 -1
  31. package/dist/index.d.ts +3 -1
  32. package/dist/index.js +3 -1
  33. package/dist/styleD/build/css/component/buttonGroup.css +13 -0
  34. package/dist/styleD/build/css/component/tabs.css +49 -0
  35. package/dist/styleD/build/typescript/component/buttonGroup.cjs +15 -0
  36. package/dist/styleD/build/typescript/component/buttonGroup.d.cts +18 -0
  37. package/dist/styleD/build/typescript/component/buttonGroup.d.ts +18 -0
  38. package/dist/styleD/build/typescript/component/buttonGroup.js +15 -0
  39. package/dist/styleD/build/typescript/component/tabs.cjs +87 -0
  40. package/dist/styleD/build/typescript/component/tabs.d.cts +104 -0
  41. package/dist/styleD/build/typescript/component/tabs.d.ts +104 -0
  42. package/dist/styleD/build/typescript/component/tabs.js +87 -0
  43. package/package.json +32 -4
@@ -0,0 +1,104 @@
1
+ //#region src/styleD/build/typescript/component/tabs.d.ts
2
+ /**
3
+ * Do not edit directly, this file was auto-generated.
4
+ */
5
+ declare const componentTabs: {
6
+ tabs: {
7
+ shared: {
8
+ display: string;
9
+ maxWidth: string;
10
+ orientation: {
11
+ vertical: {
12
+ flexDirection: string;
13
+ width: string;
14
+ };
15
+ horizontal: {
16
+ flexDirection: string;
17
+ };
18
+ };
19
+ };
20
+ };
21
+ tab: {
22
+ shared: {
23
+ position: string;
24
+ display: string;
25
+ gap: string;
26
+ cursor: string;
27
+ flexDirection: string;
28
+ justifyContent: string;
29
+ alignItems: string;
30
+ padding: {
31
+ top: string;
32
+ bottom: string;
33
+ left: string;
34
+ right: string;
35
+ verticalRight: string;
36
+ withIcon: {
37
+ right: string;
38
+ verticalRight: string;
39
+ };
40
+ };
41
+ color: string;
42
+ border: string;
43
+ selected: {
44
+ background: string;
45
+ border: {
46
+ border: string;
47
+ size: string;
48
+ background: string;
49
+ };
50
+ };
51
+ disabled: {
52
+ cursor: string;
53
+ color: string;
54
+ };
55
+ focusVisible: {
56
+ outline: string;
57
+ outlineOffset: string;
58
+ };
59
+ };
60
+ md: {
61
+ height: string;
62
+ typography: {
63
+ font: string;
64
+ letterSpacing: string;
65
+ fontWidth: number;
66
+ };
67
+ };
68
+ sm: {
69
+ height: string;
70
+ typography: {
71
+ font: string;
72
+ letterSpacing: string;
73
+ fontWidth: number;
74
+ };
75
+ };
76
+ };
77
+ tabList: {
78
+ shared: {
79
+ display: string;
80
+ orientation: {
81
+ horizontal: {
82
+ flexDirection: string;
83
+ };
84
+ vertical: {
85
+ flexDirection: string;
86
+ };
87
+ };
88
+ };
89
+ };
90
+ tabPanels: {
91
+ shared: {
92
+ position: string;
93
+ overflow: string;
94
+ };
95
+ };
96
+ tabPanel: {
97
+ shared: {
98
+ position: string;
99
+ };
100
+ };
101
+ };
102
+ type ComponentTabs = typeof componentTabs;
103
+ //#endregion
104
+ export { ComponentTabs, componentTabs };
@@ -0,0 +1,104 @@
1
+ //#region src/styleD/build/typescript/component/tabs.d.ts
2
+ /**
3
+ * Do not edit directly, this file was auto-generated.
4
+ */
5
+ declare const componentTabs: {
6
+ tabs: {
7
+ shared: {
8
+ display: string;
9
+ maxWidth: string;
10
+ orientation: {
11
+ vertical: {
12
+ flexDirection: string;
13
+ width: string;
14
+ };
15
+ horizontal: {
16
+ flexDirection: string;
17
+ };
18
+ };
19
+ };
20
+ };
21
+ tab: {
22
+ shared: {
23
+ position: string;
24
+ display: string;
25
+ gap: string;
26
+ cursor: string;
27
+ flexDirection: string;
28
+ justifyContent: string;
29
+ alignItems: string;
30
+ padding: {
31
+ top: string;
32
+ bottom: string;
33
+ left: string;
34
+ right: string;
35
+ verticalRight: string;
36
+ withIcon: {
37
+ right: string;
38
+ verticalRight: string;
39
+ };
40
+ };
41
+ color: string;
42
+ border: string;
43
+ selected: {
44
+ background: string;
45
+ border: {
46
+ border: string;
47
+ size: string;
48
+ background: string;
49
+ };
50
+ };
51
+ disabled: {
52
+ cursor: string;
53
+ color: string;
54
+ };
55
+ focusVisible: {
56
+ outline: string;
57
+ outlineOffset: string;
58
+ };
59
+ };
60
+ md: {
61
+ height: string;
62
+ typography: {
63
+ font: string;
64
+ letterSpacing: string;
65
+ fontWidth: number;
66
+ };
67
+ };
68
+ sm: {
69
+ height: string;
70
+ typography: {
71
+ font: string;
72
+ letterSpacing: string;
73
+ fontWidth: number;
74
+ };
75
+ };
76
+ };
77
+ tabList: {
78
+ shared: {
79
+ display: string;
80
+ orientation: {
81
+ horizontal: {
82
+ flexDirection: string;
83
+ };
84
+ vertical: {
85
+ flexDirection: string;
86
+ };
87
+ };
88
+ };
89
+ };
90
+ tabPanels: {
91
+ shared: {
92
+ position: string;
93
+ overflow: string;
94
+ };
95
+ };
96
+ tabPanel: {
97
+ shared: {
98
+ position: string;
99
+ };
100
+ };
101
+ };
102
+ type ComponentTabs = typeof componentTabs;
103
+ //#endregion
104
+ export { ComponentTabs, componentTabs };
@@ -0,0 +1,87 @@
1
+ //#region src/styleD/build/typescript/component/tabs.ts
2
+ /**
3
+ * Do not edit directly, this file was auto-generated.
4
+ */
5
+ const componentTabs = {
6
+ tabs: { shared: {
7
+ display: "flex",
8
+ maxWidth: "100%",
9
+ orientation: {
10
+ vertical: {
11
+ flexDirection: "row",
12
+ width: "100%"
13
+ },
14
+ horizontal: { flexDirection: "column" }
15
+ }
16
+ } },
17
+ tab: {
18
+ shared: {
19
+ position: "relative",
20
+ display: "inline-flex",
21
+ gap: "0.375rem",
22
+ cursor: "pointer",
23
+ flexDirection: "row",
24
+ justifyContent: "center",
25
+ alignItems: "center",
26
+ padding: {
27
+ top: "0",
28
+ bottom: "0",
29
+ left: "1rem",
30
+ right: "1rem",
31
+ verticalRight: "1.25rem",
32
+ withIcon: {
33
+ right: "1.25rem",
34
+ verticalRight: "1.5rem"
35
+ }
36
+ },
37
+ color: "#545454",
38
+ border: "0.0625rem solid #cccccc",
39
+ selected: {
40
+ background: "#f6f6f6",
41
+ border: {
42
+ border: "0.5rem solid #0072a9",
43
+ size: "0.5rem",
44
+ background: "#0072a9"
45
+ }
46
+ },
47
+ disabled: {
48
+ cursor: "not-allowed",
49
+ color: "#999999"
50
+ },
51
+ focusVisible: {
52
+ outline: "0.125rem solid #0072a9",
53
+ outlineOffset: "-0.0625rem"
54
+ }
55
+ },
56
+ md: {
57
+ height: "3rem",
58
+ typography: {
59
+ font: "normal 700 1rem/1.15 Open Sans",
60
+ letterSpacing: "-0.03125rem",
61
+ fontWidth: 95
62
+ }
63
+ },
64
+ sm: {
65
+ height: "2.5rem",
66
+ typography: {
67
+ font: "normal 700 0.875rem/1.15 Open Sans",
68
+ letterSpacing: "-0.0125rem",
69
+ fontWidth: 95
70
+ }
71
+ }
72
+ },
73
+ tabList: { shared: {
74
+ display: "flex",
75
+ orientation: {
76
+ horizontal: { flexDirection: "row" },
77
+ vertical: { flexDirection: "column" }
78
+ }
79
+ } },
80
+ tabPanels: { shared: {
81
+ position: "relative",
82
+ overflow: "clip"
83
+ } },
84
+ tabPanel: { shared: { position: "initial" } }
85
+ };
86
+ //#endregion
87
+ export { componentTabs };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guardian/stand",
3
- "version": "0.0.55",
3
+ "version": "0.0.57",
4
4
  "repository": {
5
5
  "url": "https://github.com/guardian/stand"
6
6
  },
@@ -57,6 +57,16 @@
57
57
  "default": "./dist/Button.cjs"
58
58
  }
59
59
  },
60
+ "./ButtonGroup": {
61
+ "import": {
62
+ "types": "./dist/ButtonGroup.d.ts",
63
+ "default": "./dist/ButtonGroup.js"
64
+ },
65
+ "require": {
66
+ "types": "./dist/ButtonGroup.d.cts",
67
+ "default": "./dist/ButtonGroup.cjs"
68
+ }
69
+ },
60
70
  "./LinkButton": {
61
71
  "import": {
62
72
  "types": "./dist/LinkButton.d.ts",
@@ -307,6 +317,16 @@
307
317
  "default": "./dist/Modal.cjs"
308
318
  }
309
319
  },
320
+ "./Tabs": {
321
+ "import": {
322
+ "types": "./dist/Tabs.d.ts",
323
+ "default": "./dist/Tabs.js"
324
+ },
325
+ "require": {
326
+ "types": "./dist/Tabs.d.cts",
327
+ "default": "./dist/Tabs.cjs"
328
+ }
329
+ },
310
330
  "./utils": {
311
331
  "import": {
312
332
  "types": "./dist/utils.d.ts",
@@ -341,6 +361,7 @@
341
361
  "./component/userMenu.css": "./dist/styleD/build/css/component/userMenu.css",
342
362
  "./component/avatar.css": "./dist/styleD/build/css/component/avatar.css",
343
363
  "./component/button.css": "./dist/styleD/build/css/component/button.css",
364
+ "./component/buttonGroup.css": "./dist/styleD/build/css/component/buttonGroup.css",
344
365
  "./component/typography.css": "./dist/styleD/build/css/component/typography.css",
345
366
  "./component/icon.css": "./dist/styleD/build/css/component/icon.css",
346
367
  "./component/favicon.css": "./dist/styleD/build/css/component/favicon.css",
@@ -359,7 +380,8 @@
359
380
  "./component/link.css": "./dist/styleD/build/css/component/link.css",
360
381
  "./component/grid.css": "./dist/styleD/build/css/component/grid.css",
361
382
  "./component/layout.css": "./dist/styleD/build/css/component/layout.css",
362
- "./component/modal.css": "./dist/styleD/build/css/component/modal.css"
383
+ "./component/modal.css": "./dist/styleD/build/css/component/modal.css",
384
+ "./component/tabs.css": "./dist/styleD/build/css/component/tabs.css"
363
385
  },
364
386
  "main": "./dist/index.cjs",
365
387
  "module": "./dist/index.js",
@@ -378,6 +400,9 @@
378
400
  "Button": [
379
401
  "./dist/Button.d.ts"
380
402
  ],
403
+ "ButtonGroup": [
404
+ "./dist/ButtonGroup.d.ts"
405
+ ],
381
406
  "LinkButton": [
382
407
  "./dist/LinkButton.d.ts"
383
408
  ],
@@ -455,6 +480,9 @@
455
480
  ],
456
481
  "Modal": [
457
482
  "./dist/Modal.d.ts"
483
+ ],
484
+ "Tabs": [
485
+ "./dist/Tabs.d.ts"
458
486
  ]
459
487
  }
460
488
  },
@@ -501,7 +529,7 @@
501
529
  "prosemirror-view": "1.37.2",
502
530
  "publint": "0.3.21",
503
531
  "react": "17.0.2",
504
- "react-aria-components": "1.13.0",
532
+ "react-aria-components": "1.14.0",
505
533
  "react-dom": "17.0.2",
506
534
  "remark-gfm": "4.0.1",
507
535
  "rimraf": "6.1.3",
@@ -526,7 +554,7 @@
526
554
  "prosemirror-state": "^1.4.3",
527
555
  "prosemirror-view": "^1.37.2",
528
556
  "react": "^17.0.2 || ^18.0.0 || ^19.0.0",
529
- "react-aria-components": ">= 1.13.0 <= 1.18.0",
557
+ "react-aria-components": ">= 1.14.0 <= 1.19.0",
530
558
  "react-dom": "^17.0.2 || ^18.0.0 || ^19.0.0",
531
559
  "typescript": ">=5.0.0 <=5.9.3"
532
560
  },