@guardian/stand 0.0.71 → 0.0.73
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/AlertBanner.d.cts +2 -2
- package/dist/AlertBanner.d.ts +2 -2
- package/dist/Grid.d.cts +2 -2
- package/dist/Grid.d.ts +2 -2
- package/dist/HtmlPreviewLoader.d.cts +3 -1
- package/dist/HtmlPreviewLoader.d.ts +3 -1
- package/dist/Pagination.cjs +5 -0
- package/dist/Pagination.d.cts +5 -0
- package/dist/Pagination.d.ts +5 -0
- package/dist/Pagination.js +3 -0
- package/dist/ToggleSwitch.cjs +5 -0
- package/dist/ToggleSwitch.d.cts +5 -0
- package/dist/ToggleSwitch.d.ts +5 -0
- package/dist/ToggleSwitch.js +3 -0
- package/dist/Typography.d.cts +2 -2
- package/dist/Typography.d.ts +2 -2
- package/dist/UserMenu.d.cts +2 -1
- package/dist/UserMenu.d.ts +2 -1
- package/dist/components/AlertBanner/styles.d.cts +3 -2
- package/dist/components/AlertBanner/styles.d.ts +3 -2
- package/dist/components/Badge/types.d.cts +1 -1
- package/dist/components/Badge/types.d.ts +1 -1
- package/dist/components/Byline/lib.cjs +0 -1
- package/dist/components/Byline/lib.d.cts +0 -1
- package/dist/components/Byline/lib.d.ts +0 -1
- package/dist/components/Byline/lib.js +1 -1
- package/dist/components/HtmlPreviewLoader/styles.d.cts +3 -2
- package/dist/components/HtmlPreviewLoader/styles.d.ts +3 -2
- package/dist/components/Pagination/Pagination.cjs +97 -0
- package/dist/components/Pagination/Pagination.d.cts +5 -0
- package/dist/components/Pagination/Pagination.d.ts +5 -0
- package/dist/components/Pagination/Pagination.js +97 -0
- package/dist/components/Pagination/lib.cjs +30 -0
- package/dist/components/Pagination/lib.js +28 -0
- package/dist/components/Pagination/styles.cjs +112 -0
- package/dist/components/Pagination/styles.d.cts +8 -0
- package/dist/components/Pagination/styles.d.ts +8 -0
- package/dist/components/Pagination/styles.js +105 -0
- package/dist/components/Pagination/types.d.cts +59 -0
- package/dist/components/Pagination/types.d.ts +59 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.cjs +41 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.d.cts +5 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +5 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.js +41 -0
- package/dist/components/ToggleSwitch/styles.cjs +70 -0
- package/dist/components/ToggleSwitch/styles.d.cts +10 -0
- package/dist/components/ToggleSwitch/styles.d.ts +10 -0
- package/dist/components/ToggleSwitch/styles.js +64 -0
- package/dist/components/ToggleSwitch/types.d.cts +17 -0
- package/dist/components/ToggleSwitch/types.d.ts +17 -0
- package/dist/components/UserMenu/UserMenu.d.cts +2 -3
- package/dist/components/UserMenu/UserMenu.d.ts +2 -3
- package/dist/components/UserMenu/theme.d.cts +6 -0
- package/dist/components/UserMenu/theme.d.ts +6 -0
- package/dist/index.cjs +4 -0
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/styleD/build/css/component/checkbox.css +1 -1
- package/dist/styleD/build/css/component/pagination.css +51 -0
- package/dist/styleD/build/css/component/radioGroup.css +1 -1
- package/dist/styleD/build/css/component/sidebarStepperNavigation.css +1 -1
- package/dist/styleD/build/css/component/toggleSwitch.css +55 -0
- package/dist/styleD/build/css/semantic/colors.css +15 -3
- package/dist/styleD/build/css/semantic/sizing.css +1 -0
- package/dist/styleD/build/typescript/component/checkbox.cjs +1 -1
- package/dist/styleD/build/typescript/component/checkbox.js +1 -1
- package/dist/styleD/build/typescript/component/pagination.cjs +72 -0
- package/dist/styleD/build/typescript/component/pagination.d.cts +75 -0
- package/dist/styleD/build/typescript/component/pagination.d.ts +75 -0
- package/dist/styleD/build/typescript/component/pagination.js +72 -0
- package/dist/styleD/build/typescript/component/radioGroup.cjs +1 -1
- package/dist/styleD/build/typescript/component/radioGroup.js +1 -1
- package/dist/styleD/build/typescript/component/sidebarStepperNavigation.cjs +1 -1
- package/dist/styleD/build/typescript/component/sidebarStepperNavigation.js +1 -1
- package/dist/styleD/build/typescript/component/toggleSwitch.cjs +86 -0
- package/dist/styleD/build/typescript/component/toggleSwitch.d.cts +93 -0
- package/dist/styleD/build/typescript/component/toggleSwitch.d.ts +93 -0
- package/dist/styleD/build/typescript/component/toggleSwitch.js +86 -0
- package/dist/styleD/build/typescript/semantic/colors.cjs +16 -4
- package/dist/styleD/build/typescript/semantic/colors.d.cts +15 -3
- package/dist/styleD/build/typescript/semantic/colors.d.ts +15 -3
- package/dist/styleD/build/typescript/semantic/colors.js +16 -4
- package/dist/styleD/build/typescript/semantic/sizing.cjs +1 -0
- package/dist/styleD/build/typescript/semantic/sizing.d.cts +1 -0
- package/dist/styleD/build/typescript/semantic/sizing.d.ts +1 -0
- package/dist/styleD/build/typescript/semantic/sizing.js +1 -0
- package/package.json +46 -17
- package/dist/styleD/build/css/component/previewFrame.css +0 -10
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
//#region src/styleD/build/typescript/component/toggleSwitch.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
|
+
*/
|
|
5
|
+
declare const componentToggleSwitch: {
|
|
6
|
+
shared: {
|
|
7
|
+
display: string;
|
|
8
|
+
alignItems: string;
|
|
9
|
+
gap: string;
|
|
10
|
+
cursor: string;
|
|
11
|
+
color: string;
|
|
12
|
+
label: {
|
|
13
|
+
display: string;
|
|
14
|
+
flexDirection: string;
|
|
15
|
+
alignItems: string;
|
|
16
|
+
paddingBlock: string;
|
|
17
|
+
};
|
|
18
|
+
description: {
|
|
19
|
+
color: string;
|
|
20
|
+
typography: {
|
|
21
|
+
font: string;
|
|
22
|
+
letterSpacing: string;
|
|
23
|
+
fontWidth: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
track: {
|
|
27
|
+
display: string;
|
|
28
|
+
alignItems: string;
|
|
29
|
+
padding: string;
|
|
30
|
+
borderRadius: string;
|
|
31
|
+
backgroundColor: string;
|
|
32
|
+
transition: string;
|
|
33
|
+
selected: {
|
|
34
|
+
backgroundColor: string;
|
|
35
|
+
};
|
|
36
|
+
disabled: {
|
|
37
|
+
backgroundColor: string;
|
|
38
|
+
};
|
|
39
|
+
focusVisible: {
|
|
40
|
+
outline: string;
|
|
41
|
+
outlineOffset: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
thumb: {
|
|
45
|
+
borderRadius: string;
|
|
46
|
+
backgroundColor: string;
|
|
47
|
+
color: string;
|
|
48
|
+
disabled: {
|
|
49
|
+
color: string;
|
|
50
|
+
};
|
|
51
|
+
transition: string;
|
|
52
|
+
};
|
|
53
|
+
disabled: {
|
|
54
|
+
color: string;
|
|
55
|
+
cursor: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
sm: {
|
|
59
|
+
typography: {
|
|
60
|
+
font: string;
|
|
61
|
+
letterSpacing: string;
|
|
62
|
+
fontWidth: number;
|
|
63
|
+
};
|
|
64
|
+
track: {
|
|
65
|
+
width: string;
|
|
66
|
+
height: string;
|
|
67
|
+
};
|
|
68
|
+
thumb: {
|
|
69
|
+
size: string;
|
|
70
|
+
translateX: string;
|
|
71
|
+
iconSize: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
md: {
|
|
75
|
+
typography: {
|
|
76
|
+
font: string;
|
|
77
|
+
letterSpacing: string;
|
|
78
|
+
fontWidth: number;
|
|
79
|
+
};
|
|
80
|
+
track: {
|
|
81
|
+
width: string;
|
|
82
|
+
height: string;
|
|
83
|
+
};
|
|
84
|
+
thumb: {
|
|
85
|
+
size: string;
|
|
86
|
+
translateX: string;
|
|
87
|
+
iconSize: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
type ComponentToggleSwitch = typeof componentToggleSwitch;
|
|
92
|
+
//#endregion
|
|
93
|
+
export { ComponentToggleSwitch, componentToggleSwitch };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
//#region src/styleD/build/typescript/component/toggleSwitch.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
|
+
*/
|
|
5
|
+
declare const componentToggleSwitch: {
|
|
6
|
+
shared: {
|
|
7
|
+
display: string;
|
|
8
|
+
alignItems: string;
|
|
9
|
+
gap: string;
|
|
10
|
+
cursor: string;
|
|
11
|
+
color: string;
|
|
12
|
+
label: {
|
|
13
|
+
display: string;
|
|
14
|
+
flexDirection: string;
|
|
15
|
+
alignItems: string;
|
|
16
|
+
paddingBlock: string;
|
|
17
|
+
};
|
|
18
|
+
description: {
|
|
19
|
+
color: string;
|
|
20
|
+
typography: {
|
|
21
|
+
font: string;
|
|
22
|
+
letterSpacing: string;
|
|
23
|
+
fontWidth: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
track: {
|
|
27
|
+
display: string;
|
|
28
|
+
alignItems: string;
|
|
29
|
+
padding: string;
|
|
30
|
+
borderRadius: string;
|
|
31
|
+
backgroundColor: string;
|
|
32
|
+
transition: string;
|
|
33
|
+
selected: {
|
|
34
|
+
backgroundColor: string;
|
|
35
|
+
};
|
|
36
|
+
disabled: {
|
|
37
|
+
backgroundColor: string;
|
|
38
|
+
};
|
|
39
|
+
focusVisible: {
|
|
40
|
+
outline: string;
|
|
41
|
+
outlineOffset: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
thumb: {
|
|
45
|
+
borderRadius: string;
|
|
46
|
+
backgroundColor: string;
|
|
47
|
+
color: string;
|
|
48
|
+
disabled: {
|
|
49
|
+
color: string;
|
|
50
|
+
};
|
|
51
|
+
transition: string;
|
|
52
|
+
};
|
|
53
|
+
disabled: {
|
|
54
|
+
color: string;
|
|
55
|
+
cursor: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
sm: {
|
|
59
|
+
typography: {
|
|
60
|
+
font: string;
|
|
61
|
+
letterSpacing: string;
|
|
62
|
+
fontWidth: number;
|
|
63
|
+
};
|
|
64
|
+
track: {
|
|
65
|
+
width: string;
|
|
66
|
+
height: string;
|
|
67
|
+
};
|
|
68
|
+
thumb: {
|
|
69
|
+
size: string;
|
|
70
|
+
translateX: string;
|
|
71
|
+
iconSize: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
md: {
|
|
75
|
+
typography: {
|
|
76
|
+
font: string;
|
|
77
|
+
letterSpacing: string;
|
|
78
|
+
fontWidth: number;
|
|
79
|
+
};
|
|
80
|
+
track: {
|
|
81
|
+
width: string;
|
|
82
|
+
height: string;
|
|
83
|
+
};
|
|
84
|
+
thumb: {
|
|
85
|
+
size: string;
|
|
86
|
+
translateX: string;
|
|
87
|
+
iconSize: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
type ComponentToggleSwitch = typeof componentToggleSwitch;
|
|
92
|
+
//#endregion
|
|
93
|
+
export { ComponentToggleSwitch, componentToggleSwitch };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
//#region src/styleD/build/typescript/component/toggleSwitch.ts
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
|
+
*/
|
|
5
|
+
const componentToggleSwitch = {
|
|
6
|
+
shared: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
alignItems: "center",
|
|
9
|
+
gap: "0.5rem",
|
|
10
|
+
cursor: "pointer",
|
|
11
|
+
color: "#000000",
|
|
12
|
+
label: {
|
|
13
|
+
display: "flex",
|
|
14
|
+
flexDirection: "column",
|
|
15
|
+
alignItems: "flex-start",
|
|
16
|
+
paddingBlock: "0.125rem"
|
|
17
|
+
},
|
|
18
|
+
description: {
|
|
19
|
+
color: "#545454",
|
|
20
|
+
typography: {
|
|
21
|
+
font: "normal 460 0.75rem/1.3 Open Sans",
|
|
22
|
+
letterSpacing: "0rem",
|
|
23
|
+
fontWidth: 95
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
track: {
|
|
27
|
+
display: "flex",
|
|
28
|
+
alignItems: "center",
|
|
29
|
+
padding: "0.25rem",
|
|
30
|
+
borderRadius: "100px",
|
|
31
|
+
backgroundColor: "#666666",
|
|
32
|
+
transition: "background-color 200ms",
|
|
33
|
+
selected: { backgroundColor: "#0072a9" },
|
|
34
|
+
disabled: { backgroundColor: "#dcdcdc" },
|
|
35
|
+
focusVisible: {
|
|
36
|
+
outline: "0.125rem solid #0072a9",
|
|
37
|
+
outlineOffset: "0.125rem"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
thumb: {
|
|
41
|
+
borderRadius: "50%",
|
|
42
|
+
backgroundColor: "#ffffff",
|
|
43
|
+
color: "#0072a9",
|
|
44
|
+
disabled: { color: "#dcdcdc" },
|
|
45
|
+
transition: "transform 200ms"
|
|
46
|
+
},
|
|
47
|
+
disabled: {
|
|
48
|
+
color: "#999999",
|
|
49
|
+
cursor: "not-allowed"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
sm: {
|
|
53
|
+
typography: {
|
|
54
|
+
font: "normal 460 0.875rem/1.3 Open Sans",
|
|
55
|
+
letterSpacing: "0rem",
|
|
56
|
+
fontWidth: 95
|
|
57
|
+
},
|
|
58
|
+
track: {
|
|
59
|
+
width: "2.75rem",
|
|
60
|
+
height: "1.5rem"
|
|
61
|
+
},
|
|
62
|
+
thumb: {
|
|
63
|
+
size: "1.125rem",
|
|
64
|
+
translateX: "1.25rem",
|
|
65
|
+
iconSize: "1rem"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
md: {
|
|
69
|
+
typography: {
|
|
70
|
+
font: "normal 460 1rem/1.3 Open Sans",
|
|
71
|
+
letterSpacing: "0rem",
|
|
72
|
+
fontWidth: 95
|
|
73
|
+
},
|
|
74
|
+
track: {
|
|
75
|
+
width: "3.75rem",
|
|
76
|
+
height: "2rem"
|
|
77
|
+
},
|
|
78
|
+
thumb: {
|
|
79
|
+
size: "1.5rem",
|
|
80
|
+
translateX: "1.75rem",
|
|
81
|
+
iconSize: "1.25rem"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
//#endregion
|
|
86
|
+
export { componentToggleSwitch };
|
|
@@ -79,13 +79,24 @@ const semanticColors = {
|
|
|
79
79
|
orangeWeak: "#fcddc6",
|
|
80
80
|
orangeMedium: "#fac7a1",
|
|
81
81
|
yellowWeak: "#ffedac",
|
|
82
|
-
|
|
82
|
+
unselectedStrong: "#ffffff",
|
|
83
|
+
unselectedHoverStrong: "#005d8b",
|
|
84
|
+
unselectedPressedStrong: "#00496c",
|
|
85
|
+
selectedStrong: "#0072a9",
|
|
86
|
+
selectedHoverStrong: "#00496c",
|
|
87
|
+
selectedPressedStrong: "#00344e",
|
|
83
88
|
selectedWeaker: "#e6f1f6",
|
|
84
|
-
selectedWeak: "#c5dfec",
|
|
85
89
|
selectedHoverWeaker: "#c5dfec",
|
|
86
|
-
selectedHoverWeak: "#8abed7",
|
|
87
90
|
selectedPressedWeaker: "#8abed7",
|
|
91
|
+
unselectedWeaker: "#ffffff",
|
|
92
|
+
unselectedHoverWeaker: "#e6f1f6",
|
|
93
|
+
unselectedPressedWeaker: "#c5dfec",
|
|
94
|
+
selectedWeak: "#c5dfec",
|
|
95
|
+
selectedHoverWeak: "#8abed7",
|
|
88
96
|
selectedPressedWeak: "#5ca5c8",
|
|
97
|
+
unselectedWeak: "#ffffff",
|
|
98
|
+
unselectedHoverWeak: "#c5dfec",
|
|
99
|
+
unselectedPressedWeak: "#8abed7",
|
|
89
100
|
draftStrong: "#f1c21b",
|
|
90
101
|
liveWeak: "#aed2a6",
|
|
91
102
|
warningWeak: "#ffedac",
|
|
@@ -96,7 +107,8 @@ const semanticColors = {
|
|
|
96
107
|
errorStrong: "#b42a19",
|
|
97
108
|
successWeak: "#cde4c9",
|
|
98
109
|
successStrong: "#326528",
|
|
99
|
-
neutralWeak: "#ededed"
|
|
110
|
+
neutralWeak: "#ededed",
|
|
111
|
+
neutralMedium: "#666666"
|
|
100
112
|
}
|
|
101
113
|
};
|
|
102
114
|
//#endregion
|
|
@@ -79,13 +79,24 @@ declare const semanticColors: {
|
|
|
79
79
|
orangeWeak: string;
|
|
80
80
|
orangeMedium: string;
|
|
81
81
|
yellowWeak: string;
|
|
82
|
-
|
|
82
|
+
unselectedStrong: string;
|
|
83
|
+
unselectedHoverStrong: string;
|
|
84
|
+
unselectedPressedStrong: string;
|
|
85
|
+
selectedStrong: string;
|
|
86
|
+
selectedHoverStrong: string;
|
|
87
|
+
selectedPressedStrong: string;
|
|
83
88
|
selectedWeaker: string;
|
|
84
|
-
selectedWeak: string;
|
|
85
89
|
selectedHoverWeaker: string;
|
|
86
|
-
selectedHoverWeak: string;
|
|
87
90
|
selectedPressedWeaker: string;
|
|
91
|
+
unselectedWeaker: string;
|
|
92
|
+
unselectedHoverWeaker: string;
|
|
93
|
+
unselectedPressedWeaker: string;
|
|
94
|
+
selectedWeak: string;
|
|
95
|
+
selectedHoverWeak: string;
|
|
88
96
|
selectedPressedWeak: string;
|
|
97
|
+
unselectedWeak: string;
|
|
98
|
+
unselectedHoverWeak: string;
|
|
99
|
+
unselectedPressedWeak: string;
|
|
89
100
|
draftStrong: string;
|
|
90
101
|
liveWeak: string;
|
|
91
102
|
warningWeak: string;
|
|
@@ -97,6 +108,7 @@ declare const semanticColors: {
|
|
|
97
108
|
successWeak: string;
|
|
98
109
|
successStrong: string;
|
|
99
110
|
neutralWeak: string;
|
|
111
|
+
neutralMedium: string;
|
|
100
112
|
};
|
|
101
113
|
};
|
|
102
114
|
type SemanticColors = typeof semanticColors;
|
|
@@ -79,13 +79,24 @@ declare const semanticColors: {
|
|
|
79
79
|
orangeWeak: string;
|
|
80
80
|
orangeMedium: string;
|
|
81
81
|
yellowWeak: string;
|
|
82
|
-
|
|
82
|
+
unselectedStrong: string;
|
|
83
|
+
unselectedHoverStrong: string;
|
|
84
|
+
unselectedPressedStrong: string;
|
|
85
|
+
selectedStrong: string;
|
|
86
|
+
selectedHoverStrong: string;
|
|
87
|
+
selectedPressedStrong: string;
|
|
83
88
|
selectedWeaker: string;
|
|
84
|
-
selectedWeak: string;
|
|
85
89
|
selectedHoverWeaker: string;
|
|
86
|
-
selectedHoverWeak: string;
|
|
87
90
|
selectedPressedWeaker: string;
|
|
91
|
+
unselectedWeaker: string;
|
|
92
|
+
unselectedHoverWeaker: string;
|
|
93
|
+
unselectedPressedWeaker: string;
|
|
94
|
+
selectedWeak: string;
|
|
95
|
+
selectedHoverWeak: string;
|
|
88
96
|
selectedPressedWeak: string;
|
|
97
|
+
unselectedWeak: string;
|
|
98
|
+
unselectedHoverWeak: string;
|
|
99
|
+
unselectedPressedWeak: string;
|
|
89
100
|
draftStrong: string;
|
|
90
101
|
liveWeak: string;
|
|
91
102
|
warningWeak: string;
|
|
@@ -97,6 +108,7 @@ declare const semanticColors: {
|
|
|
97
108
|
successWeak: string;
|
|
98
109
|
successStrong: string;
|
|
99
110
|
neutralWeak: string;
|
|
111
|
+
neutralMedium: string;
|
|
100
112
|
};
|
|
101
113
|
};
|
|
102
114
|
type SemanticColors = typeof semanticColors;
|
|
@@ -79,13 +79,24 @@ const semanticColors = {
|
|
|
79
79
|
orangeWeak: "#fcddc6",
|
|
80
80
|
orangeMedium: "#fac7a1",
|
|
81
81
|
yellowWeak: "#ffedac",
|
|
82
|
-
|
|
82
|
+
unselectedStrong: "#ffffff",
|
|
83
|
+
unselectedHoverStrong: "#005d8b",
|
|
84
|
+
unselectedPressedStrong: "#00496c",
|
|
85
|
+
selectedStrong: "#0072a9",
|
|
86
|
+
selectedHoverStrong: "#00496c",
|
|
87
|
+
selectedPressedStrong: "#00344e",
|
|
83
88
|
selectedWeaker: "#e6f1f6",
|
|
84
|
-
selectedWeak: "#c5dfec",
|
|
85
89
|
selectedHoverWeaker: "#c5dfec",
|
|
86
|
-
selectedHoverWeak: "#8abed7",
|
|
87
90
|
selectedPressedWeaker: "#8abed7",
|
|
91
|
+
unselectedWeaker: "#ffffff",
|
|
92
|
+
unselectedHoverWeaker: "#e6f1f6",
|
|
93
|
+
unselectedPressedWeaker: "#c5dfec",
|
|
94
|
+
selectedWeak: "#c5dfec",
|
|
95
|
+
selectedHoverWeak: "#8abed7",
|
|
88
96
|
selectedPressedWeak: "#5ca5c8",
|
|
97
|
+
unselectedWeak: "#ffffff",
|
|
98
|
+
unselectedHoverWeak: "#c5dfec",
|
|
99
|
+
unselectedPressedWeak: "#8abed7",
|
|
89
100
|
draftStrong: "#f1c21b",
|
|
90
101
|
liveWeak: "#aed2a6",
|
|
91
102
|
warningWeak: "#ffedac",
|
|
@@ -96,7 +107,8 @@ const semanticColors = {
|
|
|
96
107
|
errorStrong: "#b42a19",
|
|
97
108
|
successWeak: "#cde4c9",
|
|
98
109
|
successStrong: "#326528",
|
|
99
|
-
neutralWeak: "#ededed"
|
|
110
|
+
neutralWeak: "#ededed",
|
|
111
|
+
neutralMedium: "#666666"
|
|
100
112
|
}
|
|
101
113
|
};
|
|
102
114
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guardian/stand",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.73",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/guardian/stand"
|
|
6
6
|
},
|
|
@@ -57,6 +57,16 @@
|
|
|
57
57
|
"default": "./dist/Badge.cjs"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
+
"./Pagination": {
|
|
61
|
+
"import": {
|
|
62
|
+
"types": "./dist/Pagination.d.ts",
|
|
63
|
+
"default": "./dist/Pagination.js"
|
|
64
|
+
},
|
|
65
|
+
"require": {
|
|
66
|
+
"types": "./dist/Pagination.d.cts",
|
|
67
|
+
"default": "./dist/Pagination.cjs"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
60
70
|
"./Button": {
|
|
61
71
|
"import": {
|
|
62
72
|
"types": "./dist/Button.d.ts",
|
|
@@ -217,6 +227,16 @@
|
|
|
217
227
|
"default": "./dist/Checkbox.cjs"
|
|
218
228
|
}
|
|
219
229
|
},
|
|
230
|
+
"./ToggleSwitch": {
|
|
231
|
+
"import": {
|
|
232
|
+
"types": "./dist/ToggleSwitch.d.ts",
|
|
233
|
+
"default": "./dist/ToggleSwitch.js"
|
|
234
|
+
},
|
|
235
|
+
"require": {
|
|
236
|
+
"types": "./dist/ToggleSwitch.d.cts",
|
|
237
|
+
"default": "./dist/ToggleSwitch.cjs"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
220
240
|
"./TextArea": {
|
|
221
241
|
"import": {
|
|
222
242
|
"types": "./dist/TextArea.d.ts",
|
|
@@ -431,6 +451,7 @@
|
|
|
431
451
|
"./component/userMenu.css": "./dist/styleD/build/css/component/userMenu.css",
|
|
432
452
|
"./component/avatar.css": "./dist/styleD/build/css/component/avatar.css",
|
|
433
453
|
"./component/badge.css": "./dist/styleD/build/css/component/badge.css",
|
|
454
|
+
"./component/pagination.css": "./dist/styleD/build/css/component/pagination.css",
|
|
434
455
|
"./component/button.css": "./dist/styleD/build/css/component/button.css",
|
|
435
456
|
"./component/buttonGroup.css": "./dist/styleD/build/css/component/buttonGroup.css",
|
|
436
457
|
"./component/typography.css": "./dist/styleD/build/css/component/typography.css",
|
|
@@ -444,6 +465,7 @@
|
|
|
444
465
|
"./component/textInput.css": "./dist/styleD/build/css/component/textInput.css",
|
|
445
466
|
"./component/radioGroup.css": "./dist/styleD/build/css/component/radioGroup.css",
|
|
446
467
|
"./component/checkbox.css": "./dist/styleD/build/css/component/checkbox.css",
|
|
468
|
+
"./component/toggleSwitch.css": "./dist/styleD/build/css/component/toggleSwitch.css",
|
|
447
469
|
"./component/textArea.css": "./dist/styleD/build/css/component/textArea.css",
|
|
448
470
|
"./component/alertBanner.css": "./dist/styleD/build/css/component/alertBanner.css",
|
|
449
471
|
"./component/datePicker.css": "./dist/styleD/build/css/component/datePicker.css",
|
|
@@ -476,6 +498,9 @@
|
|
|
476
498
|
"Badge": [
|
|
477
499
|
"./dist/Badge.d.ts"
|
|
478
500
|
],
|
|
501
|
+
"Pagination": [
|
|
502
|
+
"./dist/Pagination.d.ts"
|
|
503
|
+
],
|
|
479
504
|
"Button": [
|
|
480
505
|
"./dist/Button.d.ts"
|
|
481
506
|
],
|
|
@@ -539,6 +564,9 @@
|
|
|
539
564
|
"Checkbox": [
|
|
540
565
|
"./dist/Checkbox.d.ts"
|
|
541
566
|
],
|
|
567
|
+
"ToggleSwitch": [
|
|
568
|
+
"./dist/ToggleSwitch.d.ts"
|
|
569
|
+
],
|
|
542
570
|
"TextArea": [
|
|
543
571
|
"./dist/TextArea.d.ts"
|
|
544
572
|
],
|
|
@@ -588,10 +616,10 @@
|
|
|
588
616
|
],
|
|
589
617
|
"devDependencies": {
|
|
590
618
|
"@arethetypeswrong/core": "0.18.5",
|
|
591
|
-
"@changesets/cli": "
|
|
619
|
+
"@changesets/cli": "3.0.1",
|
|
592
620
|
"@codesandbox/sandpack-react": "2.20.0",
|
|
593
621
|
"@emotion/react": "11.11.4",
|
|
594
|
-
"@figma/rest-api-spec": "0.
|
|
622
|
+
"@figma/rest-api-spec": "0.42.0",
|
|
595
623
|
"@guardian/eslint-config": "16.0.0",
|
|
596
624
|
"@guardian/prettier": "11.0.0",
|
|
597
625
|
"@guardian/prosemirror-invisibles": "3.1.1",
|
|
@@ -599,12 +627,12 @@
|
|
|
599
627
|
"@internationalized/date": "3.12.1",
|
|
600
628
|
"@material-design-icons/svg": "0.14.15",
|
|
601
629
|
"@playwright/experimental-ct-react17": "1.62.1",
|
|
602
|
-
"@storybook/addon-a11y": "10.5.
|
|
603
|
-
"@storybook/addon-docs": "10.5.
|
|
604
|
-
"@storybook/addon-themes": "10.5.
|
|
605
|
-
"@storybook/react-vite": "10.5.
|
|
630
|
+
"@storybook/addon-a11y": "10.5.10",
|
|
631
|
+
"@storybook/addon-docs": "10.5.10",
|
|
632
|
+
"@storybook/addon-themes": "10.5.10",
|
|
633
|
+
"@storybook/react-vite": "10.5.10",
|
|
606
634
|
"@testing-library/dom": "^10.4.1",
|
|
607
|
-
"@testing-library/jest-dom": "7.0.
|
|
635
|
+
"@testing-library/jest-dom": "7.0.1",
|
|
608
636
|
"@tsdown/css": "0.22.14",
|
|
609
637
|
"@types/jest": "30.0.0",
|
|
610
638
|
"@types/node": "24.10.1",
|
|
@@ -614,11 +642,12 @@
|
|
|
614
642
|
"change-case": "5.4.4",
|
|
615
643
|
"eslint": "9.39.3",
|
|
616
644
|
"eslint-plugin-check-file": "3.3.2",
|
|
617
|
-
"eslint-plugin-storybook": "10.5.
|
|
645
|
+
"eslint-plugin-storybook": "10.5.10",
|
|
618
646
|
"husky": "9.1.7",
|
|
619
|
-
"jest": "30.
|
|
620
|
-
"jest-environment-jsdom": "30.
|
|
621
|
-
"
|
|
647
|
+
"jest": "30.5.0",
|
|
648
|
+
"jest-environment-jsdom": "30.5.0",
|
|
649
|
+
"knip": "^6.33.0",
|
|
650
|
+
"lint-staged": "17.4.1",
|
|
622
651
|
"prettier": "3.9.6",
|
|
623
652
|
"prosemirror-dropcursor": "1.8.2",
|
|
624
653
|
"prosemirror-history": "1.4.1",
|
|
@@ -626,20 +655,19 @@
|
|
|
626
655
|
"prosemirror-model": "1.25.0",
|
|
627
656
|
"prosemirror-state": "1.4.3",
|
|
628
657
|
"prosemirror-view": "1.37.2",
|
|
629
|
-
"publint": "0.3.
|
|
658
|
+
"publint": "0.3.24",
|
|
630
659
|
"react": "17.0.2",
|
|
631
660
|
"react-aria-components": "1.14.0",
|
|
632
661
|
"react-dom": "17.0.2",
|
|
633
662
|
"remark-gfm": "4.0.1",
|
|
634
|
-
"rimraf": "6.1.3",
|
|
635
663
|
"sort-package-json": "4.0.0",
|
|
636
|
-
"storybook": "10.5.
|
|
637
|
-
"style-dictionary": "5.5.
|
|
664
|
+
"storybook": "10.5.10",
|
|
665
|
+
"style-dictionary": "5.5.2",
|
|
638
666
|
"ts-jest": "29.4.12",
|
|
639
667
|
"tsdown": "0.22.14",
|
|
640
668
|
"tslib": "2.8.1",
|
|
641
669
|
"typescript": "5.1.3",
|
|
642
|
-
"vite": "8.2.
|
|
670
|
+
"vite": "8.2.2",
|
|
643
671
|
"vite-plugin-svgr": "5.2.0"
|
|
644
672
|
},
|
|
645
673
|
"peerDependencies": {
|
|
@@ -707,6 +735,7 @@
|
|
|
707
735
|
"create-component": "npx ts-node ./scripts/create-component.ts",
|
|
708
736
|
"format:check": "prettier --check .",
|
|
709
737
|
"format:fix": "prettier --write .",
|
|
738
|
+
"knip": "knip",
|
|
710
739
|
"lint": "eslint . --ext .ts,.tsx",
|
|
711
740
|
"lint:fix": "eslint --fix . --ext .ts,.tsx",
|
|
712
741
|
"lint:staged": "lint-staged",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Do not edit directly, this file was auto-generated.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
:root {
|
|
6
|
-
--component-preview-frame-background-color: #545454;
|
|
7
|
-
--component-preview-frame-border-width: 0.0625rem;
|
|
8
|
-
--component-preview-frame-border-style: solid;
|
|
9
|
-
--component-preview-frame-border-color: #545454;
|
|
10
|
-
}
|