@guardian/stand 0.0.64 → 0.0.66

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 (37) hide show
  1. package/dist/Badge.cjs +5 -0
  2. package/dist/Badge.d.cts +5 -0
  3. package/dist/Badge.d.ts +5 -0
  4. package/dist/Badge.js +3 -0
  5. package/dist/components/Badge/Badge.cjs +17 -0
  6. package/dist/components/Badge/Badge.d.cts +5 -0
  7. package/dist/components/Badge/Badge.d.ts +5 -0
  8. package/dist/components/Badge/Badge.js +17 -0
  9. package/dist/components/Badge/styles.cjs +26 -0
  10. package/dist/components/Badge/styles.d.cts +9 -0
  11. package/dist/components/Badge/styles.d.ts +9 -0
  12. package/dist/components/Badge/styles.js +25 -0
  13. package/dist/components/Badge/types.d.cts +23 -0
  14. package/dist/components/Badge/types.d.ts +23 -0
  15. package/dist/components/Select/Select.cjs +10 -5
  16. package/dist/components/Select/Select.d.cts +1 -1
  17. package/dist/components/Select/Select.d.ts +1 -1
  18. package/dist/components/Select/Select.js +11 -6
  19. package/dist/components/Select/styles.cjs +13 -5
  20. package/dist/components/Select/styles.d.cts +1 -0
  21. package/dist/components/Select/styles.d.ts +1 -0
  22. package/dist/components/Select/styles.js +13 -6
  23. package/dist/index.cjs +2 -0
  24. package/dist/index.d.cts +2 -1
  25. package/dist/index.d.ts +2 -1
  26. package/dist/index.js +2 -1
  27. package/dist/styleD/build/css/component/badge.css +69 -0
  28. package/dist/styleD/build/css/component/select.css +9 -10
  29. package/dist/styleD/build/typescript/component/badge.cjs +137 -0
  30. package/dist/styleD/build/typescript/component/badge.d.cts +162 -0
  31. package/dist/styleD/build/typescript/component/badge.d.ts +162 -0
  32. package/dist/styleD/build/typescript/component/badge.js +137 -0
  33. package/dist/styleD/build/typescript/component/select.cjs +56 -49
  34. package/dist/styleD/build/typescript/component/select.d.cts +16 -11
  35. package/dist/styleD/build/typescript/component/select.d.ts +16 -11
  36. package/dist/styleD/build/typescript/component/select.js +56 -49
  37. package/package.json +15 -1
@@ -0,0 +1,137 @@
1
+ //#region src/styleD/build/typescript/component/badge.ts
2
+ /**
3
+ * Do not edit directly, this file was auto-generated.
4
+ */
5
+ const componentBadge = {
6
+ shared: {
7
+ display: "inline-flex",
8
+ alignItems: "center",
9
+ justifyContent: "center"
10
+ },
11
+ size: {
12
+ md: {
13
+ padding: {
14
+ top: "4px",
15
+ right: "12px",
16
+ bottom: "4px",
17
+ left: "12px"
18
+ },
19
+ weight: {
20
+ strong: { typography: {
21
+ font: "normal 700 1rem/1.15 Open Sans",
22
+ letterSpacing: "-0.03125rem",
23
+ fontWidth: 95
24
+ } },
25
+ light: { typography: {
26
+ font: "normal 460 1rem/1.3 Open Sans",
27
+ letterSpacing: "0rem",
28
+ fontWidth: 95
29
+ } }
30
+ }
31
+ },
32
+ sm: {
33
+ padding: {
34
+ top: "4px",
35
+ right: "8px",
36
+ bottom: "4px",
37
+ left: "8px"
38
+ },
39
+ weight: {
40
+ strong: { typography: {
41
+ font: "normal 700 0.875rem/1.15 Open Sans",
42
+ letterSpacing: "-0.0125rem",
43
+ fontWidth: 95
44
+ } },
45
+ light: { typography: {
46
+ font: "normal 460 0.875rem/1.3 Open Sans",
47
+ letterSpacing: "0rem",
48
+ fontWidth: 95
49
+ } }
50
+ }
51
+ },
52
+ xs: {
53
+ padding: {
54
+ top: "1px",
55
+ right: "6px",
56
+ bottom: "3px",
57
+ left: "6px"
58
+ },
59
+ weight: {
60
+ strong: { typography: {
61
+ font: "normal 700 0.75rem/1.15 Open Sans",
62
+ letterSpacing: "0rem",
63
+ fontWidth: 95
64
+ } },
65
+ light: { typography: {
66
+ font: "normal 460 0.75rem/1.3 Open Sans",
67
+ letterSpacing: "0rem",
68
+ fontWidth: 95
69
+ } }
70
+ }
71
+ }
72
+ },
73
+ color: {
74
+ green: { weight: {
75
+ strong: {
76
+ background: "#aed2a6",
77
+ color: "#000000"
78
+ },
79
+ light: {
80
+ background: "#cde4c9",
81
+ color: "#24491d"
82
+ }
83
+ } },
84
+ yellow: { weight: {
85
+ strong: {
86
+ background: "#f1c21b",
87
+ color: "#000000"
88
+ },
89
+ light: {
90
+ background: "#ffedac",
91
+ color: "#5b4a0b"
92
+ }
93
+ } },
94
+ grey: { weight: {
95
+ strong: {
96
+ background: "#dcdcdc",
97
+ color: "#000000"
98
+ },
99
+ light: {
100
+ background: "#dcdcdc",
101
+ color: "#000000"
102
+ }
103
+ } },
104
+ orange: { weight: {
105
+ strong: {
106
+ background: "#fac7a1",
107
+ color: "#000000"
108
+ },
109
+ light: {
110
+ background: "#fcddc6",
111
+ color: "#693c16"
112
+ }
113
+ } },
114
+ warmPurple: { weight: {
115
+ strong: {
116
+ background: "#dac3e8",
117
+ color: "#000000"
118
+ },
119
+ light: {
120
+ background: "#dac3e8",
121
+ color: "#381350"
122
+ }
123
+ } },
124
+ red: { weight: {
125
+ strong: {
126
+ background: "#eea198",
127
+ color: "#000000"
128
+ },
129
+ light: {
130
+ background: "#f5c6c0",
131
+ color: "#65170e"
132
+ }
133
+ } }
134
+ }
135
+ };
136
+ //#endregion
137
+ exports.componentBadge = componentBadge;
@@ -0,0 +1,162 @@
1
+ //#region src/styleD/build/typescript/component/badge.d.ts
2
+ /**
3
+ * Do not edit directly, this file was auto-generated.
4
+ */
5
+ declare const componentBadge: {
6
+ shared: {
7
+ display: string;
8
+ alignItems: string;
9
+ justifyContent: string;
10
+ };
11
+ size: {
12
+ md: {
13
+ padding: {
14
+ top: string;
15
+ right: string;
16
+ bottom: string;
17
+ left: string;
18
+ };
19
+ weight: {
20
+ strong: {
21
+ typography: {
22
+ font: string;
23
+ letterSpacing: string;
24
+ fontWidth: number;
25
+ };
26
+ };
27
+ light: {
28
+ typography: {
29
+ font: string;
30
+ letterSpacing: string;
31
+ fontWidth: number;
32
+ };
33
+ };
34
+ };
35
+ };
36
+ sm: {
37
+ padding: {
38
+ top: string;
39
+ right: string;
40
+ bottom: string;
41
+ left: string;
42
+ };
43
+ weight: {
44
+ strong: {
45
+ typography: {
46
+ font: string;
47
+ letterSpacing: string;
48
+ fontWidth: number;
49
+ };
50
+ };
51
+ light: {
52
+ typography: {
53
+ font: string;
54
+ letterSpacing: string;
55
+ fontWidth: number;
56
+ };
57
+ };
58
+ };
59
+ };
60
+ xs: {
61
+ padding: {
62
+ top: string;
63
+ right: string;
64
+ bottom: string;
65
+ left: string;
66
+ };
67
+ weight: {
68
+ strong: {
69
+ typography: {
70
+ font: string;
71
+ letterSpacing: string;
72
+ fontWidth: number;
73
+ };
74
+ };
75
+ light: {
76
+ typography: {
77
+ font: string;
78
+ letterSpacing: string;
79
+ fontWidth: number;
80
+ };
81
+ };
82
+ };
83
+ };
84
+ };
85
+ color: {
86
+ green: {
87
+ weight: {
88
+ strong: {
89
+ background: string;
90
+ color: string;
91
+ };
92
+ light: {
93
+ background: string;
94
+ color: string;
95
+ };
96
+ };
97
+ };
98
+ yellow: {
99
+ weight: {
100
+ strong: {
101
+ background: string;
102
+ color: string;
103
+ };
104
+ light: {
105
+ background: string;
106
+ color: string;
107
+ };
108
+ };
109
+ };
110
+ grey: {
111
+ weight: {
112
+ strong: {
113
+ background: string;
114
+ color: string;
115
+ };
116
+ light: {
117
+ background: string;
118
+ color: string;
119
+ };
120
+ };
121
+ };
122
+ orange: {
123
+ weight: {
124
+ strong: {
125
+ background: string;
126
+ color: string;
127
+ };
128
+ light: {
129
+ background: string;
130
+ color: string;
131
+ };
132
+ };
133
+ };
134
+ warmPurple: {
135
+ weight: {
136
+ strong: {
137
+ background: string;
138
+ color: string;
139
+ };
140
+ light: {
141
+ background: string;
142
+ color: string;
143
+ };
144
+ };
145
+ };
146
+ red: {
147
+ weight: {
148
+ strong: {
149
+ background: string;
150
+ color: string;
151
+ };
152
+ light: {
153
+ background: string;
154
+ color: string;
155
+ };
156
+ };
157
+ };
158
+ };
159
+ };
160
+ type ComponentBadge = typeof componentBadge;
161
+ //#endregion
162
+ export { ComponentBadge, componentBadge };
@@ -0,0 +1,162 @@
1
+ //#region src/styleD/build/typescript/component/badge.d.ts
2
+ /**
3
+ * Do not edit directly, this file was auto-generated.
4
+ */
5
+ declare const componentBadge: {
6
+ shared: {
7
+ display: string;
8
+ alignItems: string;
9
+ justifyContent: string;
10
+ };
11
+ size: {
12
+ md: {
13
+ padding: {
14
+ top: string;
15
+ right: string;
16
+ bottom: string;
17
+ left: string;
18
+ };
19
+ weight: {
20
+ strong: {
21
+ typography: {
22
+ font: string;
23
+ letterSpacing: string;
24
+ fontWidth: number;
25
+ };
26
+ };
27
+ light: {
28
+ typography: {
29
+ font: string;
30
+ letterSpacing: string;
31
+ fontWidth: number;
32
+ };
33
+ };
34
+ };
35
+ };
36
+ sm: {
37
+ padding: {
38
+ top: string;
39
+ right: string;
40
+ bottom: string;
41
+ left: string;
42
+ };
43
+ weight: {
44
+ strong: {
45
+ typography: {
46
+ font: string;
47
+ letterSpacing: string;
48
+ fontWidth: number;
49
+ };
50
+ };
51
+ light: {
52
+ typography: {
53
+ font: string;
54
+ letterSpacing: string;
55
+ fontWidth: number;
56
+ };
57
+ };
58
+ };
59
+ };
60
+ xs: {
61
+ padding: {
62
+ top: string;
63
+ right: string;
64
+ bottom: string;
65
+ left: string;
66
+ };
67
+ weight: {
68
+ strong: {
69
+ typography: {
70
+ font: string;
71
+ letterSpacing: string;
72
+ fontWidth: number;
73
+ };
74
+ };
75
+ light: {
76
+ typography: {
77
+ font: string;
78
+ letterSpacing: string;
79
+ fontWidth: number;
80
+ };
81
+ };
82
+ };
83
+ };
84
+ };
85
+ color: {
86
+ green: {
87
+ weight: {
88
+ strong: {
89
+ background: string;
90
+ color: string;
91
+ };
92
+ light: {
93
+ background: string;
94
+ color: string;
95
+ };
96
+ };
97
+ };
98
+ yellow: {
99
+ weight: {
100
+ strong: {
101
+ background: string;
102
+ color: string;
103
+ };
104
+ light: {
105
+ background: string;
106
+ color: string;
107
+ };
108
+ };
109
+ };
110
+ grey: {
111
+ weight: {
112
+ strong: {
113
+ background: string;
114
+ color: string;
115
+ };
116
+ light: {
117
+ background: string;
118
+ color: string;
119
+ };
120
+ };
121
+ };
122
+ orange: {
123
+ weight: {
124
+ strong: {
125
+ background: string;
126
+ color: string;
127
+ };
128
+ light: {
129
+ background: string;
130
+ color: string;
131
+ };
132
+ };
133
+ };
134
+ warmPurple: {
135
+ weight: {
136
+ strong: {
137
+ background: string;
138
+ color: string;
139
+ };
140
+ light: {
141
+ background: string;
142
+ color: string;
143
+ };
144
+ };
145
+ };
146
+ red: {
147
+ weight: {
148
+ strong: {
149
+ background: string;
150
+ color: string;
151
+ };
152
+ light: {
153
+ background: string;
154
+ color: string;
155
+ };
156
+ };
157
+ };
158
+ };
159
+ };
160
+ type ComponentBadge = typeof componentBadge;
161
+ //#endregion
162
+ export { ComponentBadge, componentBadge };
@@ -0,0 +1,137 @@
1
+ //#region src/styleD/build/typescript/component/badge.ts
2
+ /**
3
+ * Do not edit directly, this file was auto-generated.
4
+ */
5
+ const componentBadge = {
6
+ shared: {
7
+ display: "inline-flex",
8
+ alignItems: "center",
9
+ justifyContent: "center"
10
+ },
11
+ size: {
12
+ md: {
13
+ padding: {
14
+ top: "4px",
15
+ right: "12px",
16
+ bottom: "4px",
17
+ left: "12px"
18
+ },
19
+ weight: {
20
+ strong: { typography: {
21
+ font: "normal 700 1rem/1.15 Open Sans",
22
+ letterSpacing: "-0.03125rem",
23
+ fontWidth: 95
24
+ } },
25
+ light: { typography: {
26
+ font: "normal 460 1rem/1.3 Open Sans",
27
+ letterSpacing: "0rem",
28
+ fontWidth: 95
29
+ } }
30
+ }
31
+ },
32
+ sm: {
33
+ padding: {
34
+ top: "4px",
35
+ right: "8px",
36
+ bottom: "4px",
37
+ left: "8px"
38
+ },
39
+ weight: {
40
+ strong: { typography: {
41
+ font: "normal 700 0.875rem/1.15 Open Sans",
42
+ letterSpacing: "-0.0125rem",
43
+ fontWidth: 95
44
+ } },
45
+ light: { typography: {
46
+ font: "normal 460 0.875rem/1.3 Open Sans",
47
+ letterSpacing: "0rem",
48
+ fontWidth: 95
49
+ } }
50
+ }
51
+ },
52
+ xs: {
53
+ padding: {
54
+ top: "1px",
55
+ right: "6px",
56
+ bottom: "3px",
57
+ left: "6px"
58
+ },
59
+ weight: {
60
+ strong: { typography: {
61
+ font: "normal 700 0.75rem/1.15 Open Sans",
62
+ letterSpacing: "0rem",
63
+ fontWidth: 95
64
+ } },
65
+ light: { typography: {
66
+ font: "normal 460 0.75rem/1.3 Open Sans",
67
+ letterSpacing: "0rem",
68
+ fontWidth: 95
69
+ } }
70
+ }
71
+ }
72
+ },
73
+ color: {
74
+ green: { weight: {
75
+ strong: {
76
+ background: "#aed2a6",
77
+ color: "#000000"
78
+ },
79
+ light: {
80
+ background: "#cde4c9",
81
+ color: "#24491d"
82
+ }
83
+ } },
84
+ yellow: { weight: {
85
+ strong: {
86
+ background: "#f1c21b",
87
+ color: "#000000"
88
+ },
89
+ light: {
90
+ background: "#ffedac",
91
+ color: "#5b4a0b"
92
+ }
93
+ } },
94
+ grey: { weight: {
95
+ strong: {
96
+ background: "#dcdcdc",
97
+ color: "#000000"
98
+ },
99
+ light: {
100
+ background: "#dcdcdc",
101
+ color: "#000000"
102
+ }
103
+ } },
104
+ orange: { weight: {
105
+ strong: {
106
+ background: "#fac7a1",
107
+ color: "#000000"
108
+ },
109
+ light: {
110
+ background: "#fcddc6",
111
+ color: "#693c16"
112
+ }
113
+ } },
114
+ warmPurple: { weight: {
115
+ strong: {
116
+ background: "#dac3e8",
117
+ color: "#000000"
118
+ },
119
+ light: {
120
+ background: "#dac3e8",
121
+ color: "#381350"
122
+ }
123
+ } },
124
+ red: { weight: {
125
+ strong: {
126
+ background: "#eea198",
127
+ color: "#000000"
128
+ },
129
+ light: {
130
+ background: "#f5c6c0",
131
+ color: "#65170e"
132
+ }
133
+ } }
134
+ }
135
+ };
136
+ //#endregion
137
+ export { componentBadge };
@@ -2,65 +2,72 @@
2
2
  /**
3
3
  * Do not edit directly, this file was auto-generated.
4
4
  */
5
- const componentSelect = { shared: {
6
- width: "100%",
7
- offset: 8,
8
- containerPadding: 0,
9
- hover: {
10
- backgroundColor: "#f6f6f6",
11
- outline: "none"
12
- },
13
- pressed: { backgroundColor: "#ededed" },
14
- button: {
15
- display: "flex",
16
- justifyContent: "space-between",
17
- alignItems: "center",
18
- marginTop: "0.25rem",
19
- backgroundColor: "#ffffff",
20
- border: "0.0625rem solid #545454",
21
- borderRadius: "0.25rem",
22
- height: "2.5rem",
23
- paddingLeft: "0.75rem",
24
- paddingRight: "0.25rem",
25
- color: "#545454",
26
- typography: {
27
- font: "normal 460 1rem/1.3 Open Sans",
28
- letterSpacing: "0rem",
29
- fontWidth: 95
5
+ const componentSelect = {
6
+ shared: {
7
+ width: "100%",
8
+ offset: 8,
9
+ containerPadding: 0,
10
+ hover: {
11
+ backgroundColor: "#f6f6f6",
12
+ outline: "none"
30
13
  },
31
- focused: {
32
- outline: "0.125rem solid #0072a9",
33
- outlineOffset: "0.125rem"
34
- },
35
- disabled: {
14
+ pressed: { backgroundColor: "#ededed" },
15
+ button: {
16
+ display: "flex",
17
+ justifyContent: "space-between",
18
+ alignItems: "center",
19
+ marginTop: "0.25rem",
36
20
  backgroundColor: "#ffffff",
37
- cursor: "not-allowed",
38
- color: "#999999",
39
- border: "0.0625rem solid #dcdcdc"
21
+ border: "0.0625rem solid #545454",
22
+ borderRadius: "0.25rem",
23
+ paddingLeft: "0.75rem",
24
+ paddingRight: "0.25rem",
25
+ color: "#000000",
26
+ focused: {
27
+ outline: "0.125rem solid #0072a9",
28
+ outlineOffset: "0.125rem"
29
+ },
30
+ disabled: {
31
+ backgroundColor: "#ffffff",
32
+ cursor: "not-allowed",
33
+ color: "#999999",
34
+ border: "0.0625rem solid #dcdcdc"
35
+ },
36
+ error: { border: "0.0625rem solid #b42a19" }
37
+ },
38
+ option: {
39
+ paddingLeft: "1rem",
40
+ paddingRight: "1rem",
41
+ paddingTop: "0.75rem",
42
+ paddingBottom: "0.75rem",
43
+ focused: {
44
+ outline: "0.125rem solid #0072a9",
45
+ outlineOffset: "0",
46
+ backgroundColor: "inherit"
47
+ }
40
48
  },
41
- error: { border: "0.0625rem solid #b42a19" }
49
+ listBox: {
50
+ border: "0.0625rem solid #cccccc",
51
+ backgroundColor: "#ffffff",
52
+ shadow: "0 0.125rem 0.375rem 0 rgb(0% 0% 0% / 0.3)"
53
+ }
42
54
  },
43
- option: {
44
- paddingLeft: "1rem",
45
- paddingRight: "1rem",
46
- paddingTop: "0.75rem",
47
- paddingBottom: "0.75rem",
48
- focused: {
49
- outline: "0.125rem solid #0072a9",
50
- outlineOffset: "0",
51
- backgroundColor: "inherit"
55
+ sm: {
56
+ height: "2rem",
57
+ typography: {
58
+ font: "normal 460 0.875rem/1.3 Open Sans",
59
+ letterSpacing: "0rem",
60
+ fontWidth: 95
52
61
  }
53
62
  },
54
- listBox: {
63
+ md: {
64
+ height: "2.5rem",
55
65
  typography: {
56
66
  font: "normal 460 1rem/1.3 Open Sans",
57
67
  letterSpacing: "0rem",
58
68
  fontWidth: 95
59
- },
60
- border: "0.0625rem solid #cccccc",
61
- backgroundColor: "#ffffff",
62
- shadow: "0 0.125rem 0.375rem 0 rgb(0% 0% 0% / 0.3)"
69
+ }
63
70
  }
64
- } };
71
+ };
65
72
  //#endregion
66
73
  exports.componentSelect = componentSelect;