@guardian/stand 0.0.17 → 0.0.19
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/avatarButton.cjs +7 -0
- package/dist/avatarButton.js +1 -0
- package/dist/avatarLink.cjs +7 -0
- package/dist/avatarLink.js +1 -0
- package/dist/components/avatar/styles.cjs +24 -0
- package/dist/components/avatar/styles.js +24 -0
- package/dist/components/avatar-button/AvatarButton.cjs +14 -0
- package/dist/components/avatar-button/AvatarButton.js +12 -0
- package/dist/components/avatar-button/styles.cjs +29 -0
- package/dist/components/avatar-button/styles.js +26 -0
- package/dist/components/avatar-link/AvatarLink.cjs +14 -0
- package/dist/components/avatar-link/AvatarLink.js +12 -0
- package/dist/components/avatar-link/styles.cjs +24 -0
- package/dist/components/avatar-link/styles.js +21 -0
- package/dist/components/inline-message/InlineMessage.cjs +56 -0
- package/dist/components/inline-message/InlineMessage.js +27 -0
- package/dist/components/inline-message/styles.cjs +17 -0
- package/dist/components/inline-message/styles.js +14 -0
- package/dist/components/select/Select.cjs +67 -0
- package/dist/components/select/Select.js +33 -0
- package/dist/components/select/styles.cjs +126 -0
- package/dist/components/select/styles.js +117 -0
- package/dist/index.cjs +4 -0
- package/dist/index.js +2 -0
- package/dist/inline-message.cjs +9 -0
- package/dist/inline-message.js +2 -0
- package/dist/select.cjs +9 -0
- package/dist/select.js +2 -0
- package/dist/styleD/build/css/component/avatar.css +31 -0
- package/dist/styleD/build/css/component/inlineMessage.css +17 -0
- package/dist/styleD/build/css/component/select.css +57 -0
- package/dist/styleD/build/css/semantic/typography.css +38 -0
- package/dist/styleD/build/typescript/component/avatar.cjs +95 -12
- package/dist/styleD/build/typescript/component/avatar.js +95 -12
- package/dist/styleD/build/typescript/component/inlineMessage.cjs +28 -0
- package/dist/styleD/build/typescript/component/inlineMessage.js +26 -0
- package/dist/styleD/build/typescript/component/select.cjs +88 -0
- package/dist/styleD/build/typescript/component/select.js +86 -0
- package/dist/styleD/build/typescript/semantic/typography.cjs +50 -0
- package/dist/styleD/build/typescript/semantic/typography.js +50 -0
- package/dist/types/avatar-button.d.ts +18 -0
- package/dist/types/avatar-link.d.ts +18 -0
- package/dist/types/components/avatar-button/AvatarButton.d.ts +2 -0
- package/dist/types/components/avatar-button/sandbox.d.ts +5 -0
- package/dist/types/components/avatar-button/styles.d.ts +6 -0
- package/dist/types/components/avatar-button/types.d.ts +3 -0
- package/dist/types/components/avatar-link/AvatarLink.d.ts +2 -0
- package/dist/types/components/avatar-link/sandbox.d.ts +5 -0
- package/dist/types/components/avatar-link/styles.d.ts +6 -0
- package/dist/types/components/avatar-link/types.d.ts +3 -0
- package/dist/types/components/inline-message/InlineMessage.d.ts +2 -0
- package/dist/types/components/inline-message/sandbox.d.ts +5 -0
- package/dist/types/components/inline-message/styles.d.ts +8 -0
- package/dist/types/components/inline-message/types.d.ts +21 -0
- package/dist/types/components/select/Select.d.ts +3 -0
- package/dist/types/components/select/sandbox.d.ts +5 -0
- package/dist/types/components/select/styles.d.ts +13 -0
- package/dist/types/components/select/types.d.ts +21 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/inline-message.d.ts +19 -0
- package/dist/types/select.d.ts +20 -0
- package/dist/types/styleD/build/typescript/component/avatar.d.ts +83 -0
- package/dist/types/styleD/build/typescript/component/inlineMessage.d.ts +28 -0
- package/dist/types/styleD/build/typescript/component/select.d.ts +88 -0
- package/dist/types/styleD/build/typescript/semantic/typography.d.ts +50 -0
- package/package.json +39 -5
|
@@ -4,57 +4,123 @@ const componentAvatar = {
|
|
|
4
4
|
green: {
|
|
5
5
|
text: "#24491d",
|
|
6
6
|
background: "#cde4c9",
|
|
7
|
-
border: "unset"
|
|
7
|
+
border: "unset",
|
|
8
|
+
":hover": {
|
|
9
|
+
background: "#aed2a6"
|
|
10
|
+
},
|
|
11
|
+
":active": {
|
|
12
|
+
background: "#8ec183"
|
|
13
|
+
}
|
|
8
14
|
},
|
|
9
15
|
blue: {
|
|
10
16
|
text: "#092f62",
|
|
11
17
|
background: "#c5d9f4",
|
|
12
|
-
border: "unset"
|
|
18
|
+
border: "unset",
|
|
19
|
+
":hover": {
|
|
20
|
+
background: "#93b9ec"
|
|
21
|
+
},
|
|
22
|
+
":active": {
|
|
23
|
+
background: "#699ee5"
|
|
24
|
+
}
|
|
13
25
|
},
|
|
14
26
|
red: {
|
|
15
27
|
text: "#65170e",
|
|
16
28
|
background: "#f5c6c0",
|
|
17
|
-
border: "unset"
|
|
29
|
+
border: "unset",
|
|
30
|
+
":hover": {
|
|
31
|
+
background: "#eea198"
|
|
32
|
+
},
|
|
33
|
+
":active": {
|
|
34
|
+
background: "#e87c6f"
|
|
35
|
+
}
|
|
18
36
|
},
|
|
19
37
|
cyan: {
|
|
20
38
|
text: "#00344e",
|
|
21
39
|
background: "#b8d8e7",
|
|
22
|
-
border: "unset"
|
|
40
|
+
border: "unset",
|
|
41
|
+
":hover": {
|
|
42
|
+
background: "#8abed7"
|
|
43
|
+
},
|
|
44
|
+
":active": {
|
|
45
|
+
background: "#5ca5c8"
|
|
46
|
+
}
|
|
23
47
|
},
|
|
24
48
|
teal: {
|
|
25
49
|
text: "#0e2729",
|
|
26
50
|
background: "#c5dfe1",
|
|
27
|
-
border: "unset"
|
|
51
|
+
border: "unset",
|
|
52
|
+
":hover": {
|
|
53
|
+
background: "#a0cace"
|
|
54
|
+
},
|
|
55
|
+
":active": {
|
|
56
|
+
background: "#7bb5bb"
|
|
57
|
+
}
|
|
28
58
|
},
|
|
29
59
|
"cool-purple": {
|
|
30
60
|
text: "#394069",
|
|
31
61
|
background: "#dbdff7",
|
|
32
|
-
border: "unset"
|
|
62
|
+
border: "unset",
|
|
63
|
+
":hover": {
|
|
64
|
+
background: "#c3caf3"
|
|
65
|
+
},
|
|
66
|
+
":active": {
|
|
67
|
+
background: "#acb5ee"
|
|
68
|
+
}
|
|
33
69
|
},
|
|
34
70
|
"warm-purple": {
|
|
35
71
|
text: "#381350",
|
|
36
72
|
background: "#dac3e8",
|
|
37
|
-
border: "unset"
|
|
73
|
+
border: "unset",
|
|
74
|
+
":hover": {
|
|
75
|
+
background: "#c29dd9"
|
|
76
|
+
},
|
|
77
|
+
":active": {
|
|
78
|
+
background: "#aa76cb"
|
|
79
|
+
}
|
|
38
80
|
},
|
|
39
81
|
magenta: {
|
|
40
82
|
text: "#581734",
|
|
41
83
|
background: "#edc6d7",
|
|
42
|
-
border: "unset"
|
|
84
|
+
border: "unset",
|
|
85
|
+
":hover": {
|
|
86
|
+
background: "#e2a1be"
|
|
87
|
+
},
|
|
88
|
+
":active": {
|
|
89
|
+
background: "#d67ca4"
|
|
90
|
+
}
|
|
43
91
|
},
|
|
44
92
|
orange: {
|
|
45
93
|
text: "#693c16",
|
|
46
94
|
background: "#fcddc6",
|
|
47
|
-
border: "unset"
|
|
95
|
+
border: "unset",
|
|
96
|
+
":hover": {
|
|
97
|
+
background: "#fac7a1"
|
|
98
|
+
},
|
|
99
|
+
":active": {
|
|
100
|
+
background: "#f9b27c"
|
|
101
|
+
}
|
|
48
102
|
},
|
|
49
103
|
yellow: {
|
|
50
104
|
text: "#5b4a0b",
|
|
51
105
|
background: "#fbeebf",
|
|
52
|
-
border: "unset"
|
|
106
|
+
border: "unset",
|
|
107
|
+
":hover": {
|
|
108
|
+
background: "#f9e396"
|
|
109
|
+
},
|
|
110
|
+
":active": {
|
|
111
|
+
background: "#f6d86d"
|
|
112
|
+
}
|
|
53
113
|
},
|
|
54
114
|
outlined: {
|
|
55
115
|
text: "#000000",
|
|
56
116
|
background: "none",
|
|
57
|
-
border: "0.0625rem solid #8d8d8d"
|
|
117
|
+
border: "0.0625rem solid #8d8d8d",
|
|
118
|
+
":hover": {
|
|
119
|
+
background: "#ededed"
|
|
120
|
+
},
|
|
121
|
+
":active": {
|
|
122
|
+
background: "#dcdcdc"
|
|
123
|
+
}
|
|
58
124
|
}
|
|
59
125
|
},
|
|
60
126
|
display: "inline-flex",
|
|
@@ -63,7 +129,24 @@ const componentAvatar = {
|
|
|
63
129
|
overflow: "hidden",
|
|
64
130
|
"flex-shrink": "0",
|
|
65
131
|
"border-radius": "50%",
|
|
66
|
-
"user-select": "none"
|
|
132
|
+
"user-select": "none",
|
|
133
|
+
link: {
|
|
134
|
+
width: "fit-content",
|
|
135
|
+
":focus-visible": {
|
|
136
|
+
outline: "0.125rem solid #0072a9",
|
|
137
|
+
"outline-offset": "0.125rem"
|
|
138
|
+
},
|
|
139
|
+
"text-decoration": "none"
|
|
140
|
+
},
|
|
141
|
+
button: {
|
|
142
|
+
background: "none",
|
|
143
|
+
border: "none",
|
|
144
|
+
padding: "0",
|
|
145
|
+
cursor: "pointer",
|
|
146
|
+
":disabled": {
|
|
147
|
+
cursor: "not-allowed"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
67
150
|
},
|
|
68
151
|
sm: {
|
|
69
152
|
size: "2rem",
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const componentInlineMessage = {
|
|
4
|
+
shared: {
|
|
5
|
+
display: "inline-flex",
|
|
6
|
+
gap: "0.25rem",
|
|
7
|
+
"align-items": "center",
|
|
8
|
+
icon: {
|
|
9
|
+
size: "1.25rem"
|
|
10
|
+
},
|
|
11
|
+
typography: {
|
|
12
|
+
font: "normal 460 0.875rem/1.3 Open Sans",
|
|
13
|
+
letterSpacing: "0rem",
|
|
14
|
+
fontWidth: 95
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
error: {
|
|
18
|
+
color: "#8c2113"
|
|
19
|
+
},
|
|
20
|
+
success: {
|
|
21
|
+
color: "#326528"
|
|
22
|
+
},
|
|
23
|
+
information: {
|
|
24
|
+
color: "#00344e"
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
exports.componentInlineMessage = componentInlineMessage;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const componentInlineMessage = {
|
|
2
|
+
shared: {
|
|
3
|
+
display: "inline-flex",
|
|
4
|
+
gap: "0.25rem",
|
|
5
|
+
"align-items": "center",
|
|
6
|
+
icon: {
|
|
7
|
+
size: "1.25rem"
|
|
8
|
+
},
|
|
9
|
+
typography: {
|
|
10
|
+
font: "normal 460 0.875rem/1.3 Open Sans",
|
|
11
|
+
letterSpacing: "0rem",
|
|
12
|
+
fontWidth: 95
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
error: {
|
|
16
|
+
color: "#8c2113"
|
|
17
|
+
},
|
|
18
|
+
success: {
|
|
19
|
+
color: "#326528"
|
|
20
|
+
},
|
|
21
|
+
information: {
|
|
22
|
+
color: "#00344e"
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { componentInlineMessage };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const componentSelect = {
|
|
4
|
+
shared: {
|
|
5
|
+
display: "flex",
|
|
6
|
+
flexDirection: "column",
|
|
7
|
+
gap: "0.25rem",
|
|
8
|
+
maxWidth: "333px",
|
|
9
|
+
width: "100%",
|
|
10
|
+
hover: {
|
|
11
|
+
backgroundColor: "#f6f6f6",
|
|
12
|
+
outline: "none"
|
|
13
|
+
},
|
|
14
|
+
pressed: {
|
|
15
|
+
backgroundColor: "#ededed"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
label: {
|
|
19
|
+
color: "#000000",
|
|
20
|
+
typography: {
|
|
21
|
+
font: "normal 700 1rem/1.15 Open Sans",
|
|
22
|
+
letterSpacing: "-0.03125rem",
|
|
23
|
+
fontWidth: 95
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
helpText: {
|
|
27
|
+
color: "#545454",
|
|
28
|
+
typography: {
|
|
29
|
+
font: "normal 460 0.875rem/1.3 Open Sans",
|
|
30
|
+
letterSpacing: "0rem",
|
|
31
|
+
fontWidth: 95
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
button: {
|
|
35
|
+
display: "flex",
|
|
36
|
+
justifyContent: "space-between",
|
|
37
|
+
alignItems: "center",
|
|
38
|
+
marginTop: "0.25rem",
|
|
39
|
+
backgroundColor: "#ffffff",
|
|
40
|
+
border: "0.0625rem solid #545454",
|
|
41
|
+
borderRadius: "0.25rem",
|
|
42
|
+
height: "2.5rem",
|
|
43
|
+
paddingLeft: "0.75rem",
|
|
44
|
+
paddingRight: "0.25rem",
|
|
45
|
+
color: "#545454",
|
|
46
|
+
typography: {
|
|
47
|
+
font: "normal 460 1rem/1.3 Open Sans",
|
|
48
|
+
letterSpacing: "0rem",
|
|
49
|
+
fontWidth: 95
|
|
50
|
+
},
|
|
51
|
+
focused: {
|
|
52
|
+
outline: "0.125rem solid #0072a9",
|
|
53
|
+
"outline-offset": "0.125rem"
|
|
54
|
+
},
|
|
55
|
+
disabled: {
|
|
56
|
+
backgroundColor: "#ffffff",
|
|
57
|
+
cursor: "not-allowed",
|
|
58
|
+
color: "#999999",
|
|
59
|
+
border: "0.0625rem solid #dcdcdc"
|
|
60
|
+
},
|
|
61
|
+
error: {
|
|
62
|
+
border: "0.0625rem solid #b42a19"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
option: {
|
|
66
|
+
paddingLeft: "1rem",
|
|
67
|
+
paddingRight: "1rem",
|
|
68
|
+
paddingTop: "0.75rem",
|
|
69
|
+
paddingBottom: "0.75rem",
|
|
70
|
+
focused: {
|
|
71
|
+
outline: "0.125rem solid #0072a9",
|
|
72
|
+
"outline-offset": "0",
|
|
73
|
+
backgroundColor: "inherit"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
listBox: {
|
|
77
|
+
typography: {
|
|
78
|
+
font: "normal 460 1rem/1.3 Open Sans",
|
|
79
|
+
letterSpacing: "0rem",
|
|
80
|
+
fontWidth: 95
|
|
81
|
+
},
|
|
82
|
+
border: "0.0625rem solid #cccccc",
|
|
83
|
+
backgroundColor: "#ffffff",
|
|
84
|
+
shadow: "0 0.125rem 0.375rem 0 rgb(0% 0% 0% / 0.3)"
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
exports.componentSelect = componentSelect;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
const componentSelect = {
|
|
2
|
+
shared: {
|
|
3
|
+
display: "flex",
|
|
4
|
+
flexDirection: "column",
|
|
5
|
+
gap: "0.25rem",
|
|
6
|
+
maxWidth: "333px",
|
|
7
|
+
width: "100%",
|
|
8
|
+
hover: {
|
|
9
|
+
backgroundColor: "#f6f6f6",
|
|
10
|
+
outline: "none"
|
|
11
|
+
},
|
|
12
|
+
pressed: {
|
|
13
|
+
backgroundColor: "#ededed"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
label: {
|
|
17
|
+
color: "#000000",
|
|
18
|
+
typography: {
|
|
19
|
+
font: "normal 700 1rem/1.15 Open Sans",
|
|
20
|
+
letterSpacing: "-0.03125rem",
|
|
21
|
+
fontWidth: 95
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
helpText: {
|
|
25
|
+
color: "#545454",
|
|
26
|
+
typography: {
|
|
27
|
+
font: "normal 460 0.875rem/1.3 Open Sans",
|
|
28
|
+
letterSpacing: "0rem",
|
|
29
|
+
fontWidth: 95
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
button: {
|
|
33
|
+
display: "flex",
|
|
34
|
+
justifyContent: "space-between",
|
|
35
|
+
alignItems: "center",
|
|
36
|
+
marginTop: "0.25rem",
|
|
37
|
+
backgroundColor: "#ffffff",
|
|
38
|
+
border: "0.0625rem solid #545454",
|
|
39
|
+
borderRadius: "0.25rem",
|
|
40
|
+
height: "2.5rem",
|
|
41
|
+
paddingLeft: "0.75rem",
|
|
42
|
+
paddingRight: "0.25rem",
|
|
43
|
+
color: "#545454",
|
|
44
|
+
typography: {
|
|
45
|
+
font: "normal 460 1rem/1.3 Open Sans",
|
|
46
|
+
letterSpacing: "0rem",
|
|
47
|
+
fontWidth: 95
|
|
48
|
+
},
|
|
49
|
+
focused: {
|
|
50
|
+
outline: "0.125rem solid #0072a9",
|
|
51
|
+
"outline-offset": "0.125rem"
|
|
52
|
+
},
|
|
53
|
+
disabled: {
|
|
54
|
+
backgroundColor: "#ffffff",
|
|
55
|
+
cursor: "not-allowed",
|
|
56
|
+
color: "#999999",
|
|
57
|
+
border: "0.0625rem solid #dcdcdc"
|
|
58
|
+
},
|
|
59
|
+
error: {
|
|
60
|
+
border: "0.0625rem solid #b42a19"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
option: {
|
|
64
|
+
paddingLeft: "1rem",
|
|
65
|
+
paddingRight: "1rem",
|
|
66
|
+
paddingTop: "0.75rem",
|
|
67
|
+
paddingBottom: "0.75rem",
|
|
68
|
+
focused: {
|
|
69
|
+
outline: "0.125rem solid #0072a9",
|
|
70
|
+
"outline-offset": "0",
|
|
71
|
+
backgroundColor: "inherit"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
listBox: {
|
|
75
|
+
typography: {
|
|
76
|
+
font: "normal 460 1rem/1.3 Open Sans",
|
|
77
|
+
letterSpacing: "0rem",
|
|
78
|
+
fontWidth: 95
|
|
79
|
+
},
|
|
80
|
+
border: "0.0625rem solid #cccccc",
|
|
81
|
+
backgroundColor: "#ffffff",
|
|
82
|
+
shadow: "0 0.125rem 0.375rem 0 rgb(0% 0% 0% / 0.3)"
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export { componentSelect };
|
|
@@ -205,6 +205,56 @@ const semanticTypography = {
|
|
|
205
205
|
font: "normal 700 1rem/1 Open Sans",
|
|
206
206
|
letterSpacing: "-0.0125rem",
|
|
207
207
|
fontWidth: 95
|
|
208
|
+
},
|
|
209
|
+
"label-form-sm": {
|
|
210
|
+
font: "normal 700 0.875rem/1.15 Open Sans",
|
|
211
|
+
letterSpacing: "-0.0125rem",
|
|
212
|
+
fontWidth: 95
|
|
213
|
+
},
|
|
214
|
+
"label-form-md": {
|
|
215
|
+
font: "normal 700 1rem/1.15 Open Sans",
|
|
216
|
+
letterSpacing: "-0.03125rem",
|
|
217
|
+
fontWidth: 95
|
|
218
|
+
},
|
|
219
|
+
"label-form-inline-sm": {
|
|
220
|
+
font: "normal 460 0.875rem/1.3 Open Sans",
|
|
221
|
+
letterSpacing: "0rem",
|
|
222
|
+
fontWidth: 95
|
|
223
|
+
},
|
|
224
|
+
"label-form-inline-md": {
|
|
225
|
+
font: "normal 460 1rem/1.3 Open Sans",
|
|
226
|
+
letterSpacing: "0rem",
|
|
227
|
+
fontWidth: 95
|
|
228
|
+
},
|
|
229
|
+
"label-form-compact-sm": {
|
|
230
|
+
font: "normal 700 0.875rem/1.15 Open Sans",
|
|
231
|
+
letterSpacing: "0rem",
|
|
232
|
+
fontWidth: 88
|
|
233
|
+
},
|
|
234
|
+
"label-form-compact-md": {
|
|
235
|
+
font: "normal 700 1rem/1.15 Open Sans",
|
|
236
|
+
letterSpacing: "-0.0125rem",
|
|
237
|
+
fontWidth: 88
|
|
238
|
+
},
|
|
239
|
+
"label-form-inline-compact-sm": {
|
|
240
|
+
font: "normal 460 0.875rem/1.3 Open Sans",
|
|
241
|
+
letterSpacing: "0rem",
|
|
242
|
+
fontWidth: 88
|
|
243
|
+
},
|
|
244
|
+
"label-form-inline-compact-md": {
|
|
245
|
+
font: "normal 460 1rem/1.3 Open Sans",
|
|
246
|
+
letterSpacing: "0rem",
|
|
247
|
+
fontWidth: 88
|
|
248
|
+
},
|
|
249
|
+
"help-text-form-md": {
|
|
250
|
+
font: "normal 460 0.875rem/1.3 Open Sans",
|
|
251
|
+
letterSpacing: "0rem",
|
|
252
|
+
fontWidth: 95
|
|
253
|
+
},
|
|
254
|
+
"help-text-form-compact-md": {
|
|
255
|
+
font: "normal 460 0.875rem/1.3 Open Sans",
|
|
256
|
+
letterSpacing: "0rem",
|
|
257
|
+
fontWidth: 88
|
|
208
258
|
}
|
|
209
259
|
};
|
|
210
260
|
|
|
@@ -203,6 +203,56 @@ const semanticTypography = {
|
|
|
203
203
|
font: "normal 700 1rem/1 Open Sans",
|
|
204
204
|
letterSpacing: "-0.0125rem",
|
|
205
205
|
fontWidth: 95
|
|
206
|
+
},
|
|
207
|
+
"label-form-sm": {
|
|
208
|
+
font: "normal 700 0.875rem/1.15 Open Sans",
|
|
209
|
+
letterSpacing: "-0.0125rem",
|
|
210
|
+
fontWidth: 95
|
|
211
|
+
},
|
|
212
|
+
"label-form-md": {
|
|
213
|
+
font: "normal 700 1rem/1.15 Open Sans",
|
|
214
|
+
letterSpacing: "-0.03125rem",
|
|
215
|
+
fontWidth: 95
|
|
216
|
+
},
|
|
217
|
+
"label-form-inline-sm": {
|
|
218
|
+
font: "normal 460 0.875rem/1.3 Open Sans",
|
|
219
|
+
letterSpacing: "0rem",
|
|
220
|
+
fontWidth: 95
|
|
221
|
+
},
|
|
222
|
+
"label-form-inline-md": {
|
|
223
|
+
font: "normal 460 1rem/1.3 Open Sans",
|
|
224
|
+
letterSpacing: "0rem",
|
|
225
|
+
fontWidth: 95
|
|
226
|
+
},
|
|
227
|
+
"label-form-compact-sm": {
|
|
228
|
+
font: "normal 700 0.875rem/1.15 Open Sans",
|
|
229
|
+
letterSpacing: "0rem",
|
|
230
|
+
fontWidth: 88
|
|
231
|
+
},
|
|
232
|
+
"label-form-compact-md": {
|
|
233
|
+
font: "normal 700 1rem/1.15 Open Sans",
|
|
234
|
+
letterSpacing: "-0.0125rem",
|
|
235
|
+
fontWidth: 88
|
|
236
|
+
},
|
|
237
|
+
"label-form-inline-compact-sm": {
|
|
238
|
+
font: "normal 460 0.875rem/1.3 Open Sans",
|
|
239
|
+
letterSpacing: "0rem",
|
|
240
|
+
fontWidth: 88
|
|
241
|
+
},
|
|
242
|
+
"label-form-inline-compact-md": {
|
|
243
|
+
font: "normal 460 1rem/1.3 Open Sans",
|
|
244
|
+
letterSpacing: "0rem",
|
|
245
|
+
fontWidth: 88
|
|
246
|
+
},
|
|
247
|
+
"help-text-form-md": {
|
|
248
|
+
font: "normal 460 0.875rem/1.3 Open Sans",
|
|
249
|
+
letterSpacing: "0rem",
|
|
250
|
+
fontWidth: 95
|
|
251
|
+
},
|
|
252
|
+
"help-text-form-compact-md": {
|
|
253
|
+
font: "normal 460 0.875rem/1.3 Open Sans",
|
|
254
|
+
letterSpacing: "0rem",
|
|
255
|
+
fontWidth: 88
|
|
206
256
|
}
|
|
207
257
|
};
|
|
208
258
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Avatar button component entry point
|
|
3
|
+
*
|
|
4
|
+
* Peer dependencies required to use these components:
|
|
5
|
+
* - `@emotion/react`
|
|
6
|
+
* - `react`
|
|
7
|
+
* - `react-dom`
|
|
8
|
+
* - `react-aria-components`
|
|
9
|
+
* - `typescript`
|
|
10
|
+
*
|
|
11
|
+
* See the `peerDependencies` section of package.json for compatible versions.
|
|
12
|
+
*
|
|
13
|
+
* If you only need the built CSS (./component/avatar.css),
|
|
14
|
+
* you don't need to install these.
|
|
15
|
+
*/
|
|
16
|
+
export { AvatarButton } from './components/avatar-button/AvatarButton';
|
|
17
|
+
export type { AvatarButtonProps } from './components/avatar-button/types';
|
|
18
|
+
export type { PartialAvatarButtonTheme as AvatarButtonTheme } from './components/avatar-button/styles';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Avatar link component entry point
|
|
3
|
+
*
|
|
4
|
+
* Peer dependencies required to use these components:
|
|
5
|
+
* - `@emotion/react`
|
|
6
|
+
* - `react`
|
|
7
|
+
* - `react-dom`
|
|
8
|
+
* - `react-aria-components`
|
|
9
|
+
* - `typescript`
|
|
10
|
+
*
|
|
11
|
+
* See the `peerDependencies` section of package.json for compatible versions.
|
|
12
|
+
*
|
|
13
|
+
* If you only need the built CSS (./component/avatar.css),
|
|
14
|
+
* you don't need to install these.
|
|
15
|
+
*/
|
|
16
|
+
export { AvatarLink } from './components/avatar-link/AvatarLink';
|
|
17
|
+
export type { AvatarLinkProps } from './components/avatar-link/types';
|
|
18
|
+
export type { PartialAvatarLinkTheme as AvatarLinkTheme } from './components/avatar-link/styles';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const componentName = "AvatarButton";
|
|
2
|
+
export declare const componentTsx = "import { AvatarButton } from '@guardian/stand/AvatarButton';\n\nexport const Component = () => {\n\treturn (\n\t\t<>\n\t\t\t<AvatarButton initials=\"AB\" color=\"blue\" />\n\t\t\t<AvatarButton\n\t\t\t\tsrc=\"https://uploads.guimcode.co.uk/2026/01/27/f85e2e477ce54f4c3b671faa5cd21673aa9f8072fddb5d70a73e6038dc812eec.jpg\"\n\t\t\t\talt=\"Mahesh Makani\"\n\t\t\t\tinitials=\"MM\"\n\t\t\t\tcolor=\"blue\"\n\t\t\t\tsize=\"md\"\n\t\t\t/>\n\t\t</>\n\t);\n};\n";
|
|
3
|
+
export declare const componentCss = "@import \"@guardian/stand/component/avatar.css\";\n\n /* example setup of AvatarButton style using md size and blue color */\n .stand-AvatarButton {\n \tdisplay: var(--component-avatar-shared-display);\n \talign-items: var(--component-avatar-shared-align-items);\n \tjustify-content: var(--component-avatar-shared-justify-content);\n \toverflow: var(--component-avatar-shared-overflow);\n \tflex-shrink: var(--component-avatar-shared-flex-shrink);\n \tborder-radius: var(--component-avatar-shared-border-radius);\n \tbackground-color: var(--component-avatar-shared-color-blue-background);\n \twidth: var(--component-avatar-md-size);\n \theight: var(--component-avatar-md-size);\n \tborder: var(--component-avatar-shared-color-blue-border);\n \tcolor: var(--component-avatar-shared-color-blue-text);\n \tfont: var(--component-avatar-md-typography-font);\n \tletter-spacing: var(--component-avatar-md-typography-letter-spacing);\n \tfont-variation-settings: \"wdth\"\n \tvar(--component-avatar-md-typography-font-width);\n\n\t\tborder:\t var(--component-avatar-shared-button-border);\n\t\tpadding: var(--component-avatar-shared-button-padding);\n\t\tcursor: var(--component-avatar-shared-button-cursor);\n }\n\n /* example setup for AvatarButton image */\n .stand-AvatarButton > img {\n \twidth: 100%;\n \theight: 100%;\n \tobject-fit: cover;\n }";
|
|
4
|
+
export declare const componentHtml = "<div class=\"container\">\n\t<button href=\"#\" class=\"stand-AvatarButton\">AB</button>\n\t<button href=\"#\" class=\"stand-AvatarButton\">\n\t\t<img\n\t\t\tsrc=\"https://uploads.guimcode.co.uk/2026/01/27/f85e2e477ce54f4c3b671faa5cd21673aa9f8072fddb5d70a73e6038dc812eec.jpg\"\n\t\t\talt=\"Mahesh Makani\"\n\t\t/>\n\t</button>\n</div>";
|
|
5
|
+
export declare const componentJs = "\n\t// for ts/js\n\timport { componentAvatar } from \"@guardian/stand\";\n\n\tconst style = `\n\tdisplay: ${componentAvatar.shared.display};\n\talign-items: ${componentAvatar.shared[\"align-items\"]};\n\tjustify-content: ${componentAvatar.shared[\"justify-content\"]};\n\toverflow: ${componentAvatar.shared.overflow};\n\tflex-shrink: ${componentAvatar.shared[\"flex-shrink\"]};\n\tborder-radius: ${componentAvatar.shared[\"border-radius\"]};\n\tbackground-color: ${componentAvatar.shared.color.blue.background};\n\twidth: ${componentAvatar.md.size};\n\theight: ${componentAvatar.md.size};\n\tborder: ${componentAvatar.shared.color.blue.border};\n\tcolor: ${componentAvatar.shared.color.blue.text};\n\tfont: ${componentAvatar.md.typography.font};\n\tletter-spacing: ${componentAvatar.md.typography.letterSpacing};\n\tfont-variation-settings: 'wdth' ${componentAvatar.md.typography.fontWidth};\n\n\tbackground: ${componentAvatar.shared.button.background};\n\tborder: ${componentAvatar.shared.button.border};\n\tpadding: ${componentAvatar.shared.button.padding};\n\tcursor: ${componentAvatar.shared.button.cursor};\n\t`;\n\n\tconst imgStyle = `\n\twidth: 100%;\n\theight: 100%;\n\tobject-fit: cover;\n\t`;\n\n\t// e.g. adding to DOM using vanilla JS styles\n\tdocument.getElementById(\"app\").innerHTML = `\n\n\t<div class=\"container\">\n\t\t<button style=\"${style}\">AB</button>\n\t\t<button style=\"${style}\">\n\t\t\t<img\n\t\t\t\tstyle=\"${imgStyle}\"\n\t\t\t\tsrc=\"https://uploads.guimcode.co.uk/2026/01/27/f85e2e477ce54f4c3b671faa5cd21673aa9f8072fddb5d70a73e6038dc812eec.jpg\"\n\t\t\t\talt=\"Mahesh Makani\"\n\t\t\t/>\n\t\t</button>\n\t</div>\n`;\n";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
+
import type { AvatarTheme, PartialAvatarTheme } from '../avatar/styles';
|
|
3
|
+
export type AvatarButtonTheme = AvatarTheme;
|
|
4
|
+
export type PartialAvatarButtonTheme = PartialAvatarTheme;
|
|
5
|
+
export declare const defaultAvatarButtonTheme: AvatarButtonTheme;
|
|
6
|
+
export declare const avatarButtonStyles: (theme: AvatarButtonTheme) => SerializedStyles;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const componentName = "AvatarLink";
|
|
2
|
+
export declare const componentTsx = "import { AvatarLink } from '@guardian/stand/AvatarLink';\n\nexport const Component = () => {\n\treturn (\n\t\t<>\n\t\t\t<AvatarLink initials=\"AB\" color=\"blue\" />\n\t\t\t<AvatarLink\n\t\t\t\tsrc=\"https://uploads.guimcode.co.uk/2026/01/27/f85e2e477ce54f4c3b671faa5cd21673aa9f8072fddb5d70a73e6038dc812eec.jpg\"\n\t\t\t\talt=\"Mahesh Makani\"\n\t\t\t\tinitials=\"MM\"\n\t\t\t\tcolor=\"blue\"\n\t\t\t\tsize=\"md\"\n\t\t\t/>\n\t\t</>\n\t);\n};\n";
|
|
3
|
+
export declare const componentCss = "@import \"@guardian/stand/component/avatar.css\";\n\n /* example setup of AvatarLink style using md size and blue color */\n .stand-AvatarLink {\n \tdisplay: var(--component-avatar-shared-display);\n \talign-items: var(--component-avatar-shared-align-items);\n \tjustify-content: var(--component-avatar-shared-justify-content);\n \toverflow: var(--component-avatar-shared-overflow);\n \tflex-shrink: var(--component-avatar-shared-flex-shrink);\n \tborder-radius: var(--component-avatar-shared-border-radius);\n \tbackground-color: var(--component-avatar-shared-color-blue-background);\n \twidth: var(--component-avatar-md-size);\n \theight: var(--component-avatar-md-size);\n \tborder: var(--component-avatar-shared-color-blue-border);\n \tcolor: var(--component-avatar-shared-color-blue-text);\n \tfont: var(--component-avatar-md-typography-font);\n \tletter-spacing: var(--component-avatar-md-typography-letter-spacing);\n \tfont-variation-settings: \"wdth\"\n \tvar(--component-avatar-md-typography-font-width);\n\n\t\ttext-decoration: var(--component-avatar-shared-link-text-decoration);\n }\n\n /* example setup for AvatarLink image */\n .stand-AvatarLink > img {\n \twidth: 100%;\n \theight: 100%;\n \tobject-fit: cover;\n }";
|
|
4
|
+
export declare const componentHtml = "<div class=\"container\">\n\t<a href=\"#\" class=\"stand-AvatarLink\">AB</a>\n\t<a href=\"#\" class=\"stand-AvatarLink\">\n\t\t<img\n\t\t\tsrc=\"https://uploads.guimcode.co.uk/2026/01/27/f85e2e477ce54f4c3b671faa5cd21673aa9f8072fddb5d70a73e6038dc812eec.jpg\"\n\t\t\talt=\"Mahesh Makani\"\n\t\t/>\n\t</a>\n</div>";
|
|
5
|
+
export declare const componentJs = "\n\t// for ts/js\n\timport { componentAvatar } from \"@guardian/stand\";\n\n\tconst style = `\n\tdisplay: ${componentAvatar.shared.display};\n\talign-items: ${componentAvatar.shared[\"align-items\"]};\n\tjustify-content: ${componentAvatar.shared[\"justify-content\"]};\n\toverflow: ${componentAvatar.shared.overflow};\n\tflex-shrink: ${componentAvatar.shared[\"flex-shrink\"]};\n\tborder-radius: ${componentAvatar.shared[\"border-radius\"]};\n\tbackground-color: ${componentAvatar.shared.color.blue.background};\n\twidth: ${componentAvatar.md.size};\n\theight: ${componentAvatar.md.size};\n\tborder: ${componentAvatar.shared.color.blue.border};\n\tcolor: ${componentAvatar.shared.color.blue.text};\n\tfont: ${componentAvatar.md.typography.font};\n\tletter-spacing: ${componentAvatar.md.typography.letterSpacing};\n\tfont-variation-settings: 'wdth' ${componentAvatar.md.typography.fontWidth};\n\n\ttext-decoration: ${componentAvatar.shared.link.textDecoration};\n\t`;\n\n\tconst imgStyle = `\n\twidth: 100%;\n\theight: 100%;\n\tobject-fit: cover;\n\t`;\n\n\t// e.g. adding to DOM using vanilla JS styles\n\tdocument.getElementById(\"app\").innerHTML = `\n\n\t<div class=\"container\">\n\t\t<a href=\"#\" style=\"${style}\">AB</a>\n\t\t<a href=\"#\" style=\"${style}\">\n\t\t\t<img\n\t\t\t\tstyle=\"${imgStyle}\"\n\t\t\t\tsrc=\"https://uploads.guimcode.co.uk/2026/01/27/f85e2e477ce54f4c3b671faa5cd21673aa9f8072fddb5d70a73e6038dc812eec.jpg\"\n\t\t\t\talt=\"Mahesh Makani\"\n\t\t\t/>\n\t\t</a>\n\t</div>\n`;\n";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
+
import type { AvatarTheme, PartialAvatarTheme } from '../avatar/styles';
|
|
3
|
+
export type AvatarLinkTheme = AvatarTheme;
|
|
4
|
+
export type PartialAvatarLinkTheme = PartialAvatarTheme;
|
|
5
|
+
export declare const defaultAvatarLinkTheme: AvatarTheme;
|
|
6
|
+
export declare const avatarLinkStyles: (theme: AvatarLinkTheme) => SerializedStyles;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const componentName = "InlineMessage";
|
|
2
|
+
export declare const componentTsx = "import { InlineMessage } from '@guardian/stand/inline-message';\n\nexport const Component = () => (\n <>\n\t<InlineMessage level=\"error\">Something went wrong</InlineMessage>\n\t<InlineMessage level=\"success\">Changes saved successfully</InlineMessage>\n\t<InlineMessage level=\"information\">\n\t\tYour session will expire soon\n\t</InlineMessage>\n\t<InlineMessage level=\"error\" hideIcon>\n\t\tThis message has no icon\n\t</InlineMessage>\n\t<InlineMessage\n\tlevel=\"success\"\n\ticon={\n\t\t<svg viewBox=\"-3 -3 30 30\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<path\n\t\t\tfillRule=\"evenodd\"\n\t\t\tclipRule=\"evenodd\"\n\t\t\td=\"M12.36 2.5h-.905l-7.6 7.69-.905.905v.453h.905v9.056l.904.896h5.872v-6.333h2.715V21.5h5.89l.904-.932v-9.02h.905v-.453l-1.357-1.357-.001.005zm5.97 8.447-6.412-6.34-6.254 6.326v8.758h3.158V13.81l.452-.453h5.438l.443.453v5.88h3.176z\"\n\t\t/>\n\t\t</svg>\n\t}\n\t>\n\tThis message uses a custom svg icon\n\t</InlineMessage>\n </>\n);\n";
|
|
3
|
+
export declare const componentCss = "\n/* import the inlinemessage styles */\n@import '@guardian/stand/component/inlineMessage.css';\n\n.stand-inline-message {\n display: var(--component-inline-message-shared-display);\n align-items: var(--component-inline-message-shared-align-items);\n gap: var(--component-inline-message-shared-gap);\n font: var(--component-inline-message-shared-typography-font);\n letter-spacing: var(\n --component-inline-message-shared-typography-letter-spacing\n );\n font-variation-settings: \"wdth\"\n var(--component-inline-message-shared-typography-font-width);\n}\n\n.stand-inline-message > .material-symbols {\n font-size: var(--component-inline-message-shared-icon-size);\n}\n\n.stand-inline-message > svg {\n width: var(--component-inline-message-shared-icon-size);\n height: var(--component-inline-message-shared-icon-size);\n}\n\n.stand-inline-message-error {\n color: var(--component-inline-message-error-color);\n fill: var(--component-inline-message-error-color);\n}\n\n.stand-inline-message-success {\n color: var(--component-inline-message-success-color);\n fill: var(--component-inline-message-success-color);\n}\n\n.stand-inline-message-information {\n color: var(--component-inline-message-information-color);\n fill: var(--component-inline-message-information-color);\n}\n";
|
|
4
|
+
export declare const componentHtml = "<div class=\"container flow-column\">\n\t<span class=\"stand-inline-message stand-inline-message-error\">\n\t\t<span class=\"material-symbols\">warning</span> Something went wrong\n\t</span>\n\t<span class=\"stand-inline-message stand-inline-message-success\">\n\t\t<span class=\"material-symbols\">check_circle</span> Changes saved successfully\n\t</span>\n\t<span class=\"stand-inline-message stand-inline-message-information\">\n\t\t<span class=\"material-symbols\">info</span> Your session will expire soon\n\t</span>\n\t<span class=\"stand-inline-message stand-inline-message-error\">\n\t\tThis message has no icon\n\t</span>\n\t<span class=\"stand-inline-message stand-inline-message-success\">\n\t\t<svg viewBox=\"-3 -3 30 30\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<path\n\t\t\tfillRule=\"evenodd\"\n\t\t\tclipRule=\"evenodd\"\n\t\t\td=\"M12.36 2.5h-.905l-7.6 7.69-.905.905v.453h.905v9.056l.904.896h5.872v-6.333h2.715V21.5h5.89l.904-.932v-9.02h.905v-.453l-1.357-1.357-.001.005zm5.97 8.447-6.412-6.34-6.254 6.326v8.758h3.158V13.81l.452-.453h5.438l.443.453v5.88h3.176z\"\n\t\t/>\n\t\t</svg>\n\t\tThis message uses a custom svg icon\n\t</span>\n</div>\n";
|
|
5
|
+
export declare const componentJs = "\nimport { componentInlineMessage } from \"@guardian/stand\";\n\n// example of creating a stylesheet in js\nconst sheet = new CSSStyleSheet();\n\n// apply the rules to the sheet\nsheet.replaceSync(`\n\t.js-stand-inline-message {\n\t\tdisplay: ${componentInlineMessage.shared.display};\n\t\talign-items: ${componentInlineMessage.shared['align-items']};\n\t\tgap: ${componentInlineMessage.shared.gap};\n\t\tfont: ${componentInlineMessage.shared.typography.font};\n\t\tletter-spacing: ${componentInlineMessage.shared.typography.letterSpacing};\n\t\tfont-variation-settings: \"wdth\" ${componentInlineMessage.shared.typography.fontWidth};\n\t}\n\n\t.js-stand-inline-message > .material-symbols {\n\t\tfont-size: ${componentInlineMessage.shared.icon.size};\n\t}\n\n\t.js-stand-inline-message > svg {\n\t\twidth: ${componentInlineMessage.shared.icon.size};\n\t\theight: ${componentInlineMessage.shared.icon.size};\n\t}\n\n\t.js-stand-inline-message-error {\n\t\tcolor: ${componentInlineMessage.error.color};\n\t\tfill: ${componentInlineMessage.error.color};\n\t}\n\n\t.js-stand-inline-message-success {\n\t\tcolor: ${componentInlineMessage.success.color};\n\t\tfill: ${componentInlineMessage.success.color};\n\t}\n\n\t.js-stand-inline-message-information {\n\t\tcolor: ${componentInlineMessage.information.color};\n\t\tfill: ${componentInlineMessage.information.color};\n\t}\n`);\n\n// update the document with the sheet\ndocument.adoptedStyleSheets.push(sheet);\n\n// modify the dom with the button components using the generated stylesheet\ndocument.getElementById(\"app\").innerHTML = `\n<div class=\"container flow-column\">\n\t<span class=\"js-stand-inline-message js-stand-inline-message-error\">\n\t\t<span class=\"material-symbols\">warning</span> Something went wrong\n\t</span>\n\t<span class=\"js-stand-inline-message js-stand-inline-message-success\">\n\t\t<span class=\"material-symbols\">check_circle</span> Changes saved successfully\n\t</span>\n\t<span class=\"js-stand-inline-message js-stand-inline-message-information\">\n\t\t<span class=\"material-symbols\">info</span> Your session will expire soon\n\t</span>\n\t<span class=\"js-stand-inline-message js-stand-inline-message-error\">\n\t\tThis message has no icon\n\t</span>\n\t<span class=\"js-stand-inline-message js-stand-inline-message-success\">\n\t\t<svg viewBox=\"-3 -3 30 30\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<path\n\t\t\tfillRule=\"evenodd\"\n\t\t\tclipRule=\"evenodd\"\n\t\t\td=\"M12.36 2.5h-.905l-7.6 7.69-.905.905v.453h.905v9.056l.904.896h5.872v-6.333h2.715V21.5h5.89l.904-.932v-9.02h.905v-.453l-1.357-1.357-.001.005zm5.97 8.447-6.412-6.34-6.254 6.326v8.758h3.158V13.81l.452-.453h5.438l.443.453v5.88h3.176z\"\n\t\t/>\n\t\t</svg>\n\t\tThis message uses a custom svg icon\n\t</span>\n</div>\n`;\n";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
+
import type { ComponentInlineMessage } from '../../styleD/build/typescript/component/inlineMessage';
|
|
3
|
+
import type { DeepPartial, Prettify } from '../../util/types';
|
|
4
|
+
import type { InlineMessageProps } from './types';
|
|
5
|
+
export type InlineMessageTheme = Prettify<ComponentInlineMessage>;
|
|
6
|
+
export type PartialInlineMessageTheme = DeepPartial<InlineMessageTheme>;
|
|
7
|
+
export declare const defaultInlineMessageTheme: InlineMessageTheme;
|
|
8
|
+
export declare const inlineMessageStyles: (theme: InlineMessageTheme, { level }: Required<Pick<InlineMessageProps, 'level'>>) => SerializedStyles;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { DefaultPropsWithChildren } from '../../util/types';
|
|
2
|
+
import type { IconProps } from '../icon/types';
|
|
3
|
+
import type { InlineMessageTheme } from './styles';
|
|
4
|
+
export interface InlineMessageProps extends DefaultPropsWithChildren<InlineMessageTheme> {
|
|
5
|
+
/**
|
|
6
|
+
* The severity level of the message, which determines its styling.
|
|
7
|
+
* This is a required prop.
|
|
8
|
+
* Levels: 'error', 'success', 'information'
|
|
9
|
+
*/
|
|
10
|
+
level: keyof Omit<InlineMessageTheme, 'shared'>;
|
|
11
|
+
/**
|
|
12
|
+
* Optional prop to hide the default icon associated with the message level.
|
|
13
|
+
*/
|
|
14
|
+
hideIcon?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Override the default icon for the message by providing a custom icon, for example when not using material symbols.
|
|
17
|
+
* This can be either a string (for material symbols) or an SVG element.
|
|
18
|
+
* Passed to the Icon component, so can be either a string (for material symbols) or an SVG element.
|
|
19
|
+
*/
|
|
20
|
+
icon?: IconProps['symbol'] | Exclude<IconProps['children'], string>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { OptionProps, SelectProps } from './types';
|
|
2
|
+
export declare function Option({ children, theme }: OptionProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function Select({ children, label, contextualHelpText, theme, cssOverrides, className, isInvalid, errorMessage, ...props }: SelectProps): import("@emotion/react/jsx-runtime").JSX.Element;
|