@guardian/stand 0.0.56 → 0.0.58
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/Tabs.cjs +5 -0
- package/dist/Tabs.d.cts +5 -0
- package/dist/Tabs.d.ts +5 -0
- package/dist/Tabs.js +3 -0
- package/dist/components/RadioGroup/RadioGroup.cjs +5 -2
- package/dist/components/RadioGroup/RadioGroup.d.cts +1 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +1 -0
- package/dist/components/RadioGroup/RadioGroup.js +5 -2
- package/dist/components/RadioGroup/styles.cjs +6 -2
- package/dist/components/RadioGroup/styles.js +6 -2
- package/dist/components/RadioGroup/types.d.cts +5 -0
- package/dist/components/RadioGroup/types.d.ts +5 -0
- package/dist/components/Tabs/Tabs.cjs +88 -0
- package/dist/components/Tabs/Tabs.d.cts +15 -0
- package/dist/components/Tabs/Tabs.d.ts +15 -0
- package/dist/components/Tabs/Tabs.js +86 -0
- package/dist/components/Tabs/styles.cjs +146 -0
- package/dist/components/Tabs/styles.d.cts +17 -0
- package/dist/components/Tabs/styles.d.ts +17 -0
- package/dist/components/Tabs/styles.js +137 -0
- package/dist/components/Tabs/types.d.cts +63 -0
- package/dist/components/Tabs/types.d.ts +63 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/styleD/build/css/component/radioGroup.css +2 -1
- package/dist/styleD/build/css/component/tabs.css +49 -0
- package/dist/styleD/build/typescript/component/radioGroup.cjs +4 -1
- package/dist/styleD/build/typescript/component/radioGroup.d.cts +8 -1
- package/dist/styleD/build/typescript/component/radioGroup.d.ts +8 -1
- package/dist/styleD/build/typescript/component/radioGroup.js +4 -1
- package/dist/styleD/build/typescript/component/tabs.cjs +87 -0
- package/dist/styleD/build/typescript/component/tabs.d.cts +104 -0
- package/dist/styleD/build/typescript/component/tabs.d.ts +104 -0
- package/dist/styleD/build/typescript/component/tabs.js +87 -0
- package/package.json +18 -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,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.
|
|
3
|
+
"version": "0.0.58",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/guardian/stand"
|
|
6
6
|
},
|
|
@@ -317,6 +317,16 @@
|
|
|
317
317
|
"default": "./dist/Modal.cjs"
|
|
318
318
|
}
|
|
319
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
|
+
},
|
|
320
330
|
"./utils": {
|
|
321
331
|
"import": {
|
|
322
332
|
"types": "./dist/utils.d.ts",
|
|
@@ -370,7 +380,8 @@
|
|
|
370
380
|
"./component/link.css": "./dist/styleD/build/css/component/link.css",
|
|
371
381
|
"./component/grid.css": "./dist/styleD/build/css/component/grid.css",
|
|
372
382
|
"./component/layout.css": "./dist/styleD/build/css/component/layout.css",
|
|
373
|
-
"./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"
|
|
374
385
|
},
|
|
375
386
|
"main": "./dist/index.cjs",
|
|
376
387
|
"module": "./dist/index.js",
|
|
@@ -469,6 +480,9 @@
|
|
|
469
480
|
],
|
|
470
481
|
"Modal": [
|
|
471
482
|
"./dist/Modal.d.ts"
|
|
483
|
+
],
|
|
484
|
+
"Tabs": [
|
|
485
|
+
"./dist/Tabs.d.ts"
|
|
472
486
|
]
|
|
473
487
|
}
|
|
474
488
|
},
|
|
@@ -515,7 +529,7 @@
|
|
|
515
529
|
"prosemirror-view": "1.37.2",
|
|
516
530
|
"publint": "0.3.21",
|
|
517
531
|
"react": "17.0.2",
|
|
518
|
-
"react-aria-components": "1.
|
|
532
|
+
"react-aria-components": "1.14.0",
|
|
519
533
|
"react-dom": "17.0.2",
|
|
520
534
|
"remark-gfm": "4.0.1",
|
|
521
535
|
"rimraf": "6.1.3",
|
|
@@ -540,7 +554,7 @@
|
|
|
540
554
|
"prosemirror-state": "^1.4.3",
|
|
541
555
|
"prosemirror-view": "^1.37.2",
|
|
542
556
|
"react": "^17.0.2 || ^18.0.0 || ^19.0.0",
|
|
543
|
-
"react-aria-components": ">= 1.
|
|
557
|
+
"react-aria-components": ">= 1.14.0 <= 1.19.0",
|
|
544
558
|
"react-dom": "^17.0.2 || ^18.0.0 || ^19.0.0",
|
|
545
559
|
"typescript": ">=5.0.0 <=5.9.3"
|
|
546
560
|
},
|