@stackoverflow/stacks 2.0.6 → 2.0.8
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/components/modal/modal.d.ts +2 -2
- package/dist/components/table/table.d.ts +2 -2
- package/dist/components/uploader/uploader.d.ts +3 -3
- package/dist/css/stacks.css +30 -30
- package/dist/css/stacks.min.css +1 -1
- package/dist/js/stacks.js +4 -1
- package/dist/js/stacks.min.js +1 -1
- package/lib/atomic/__snapshots__/color.less.test.ts.snap +1312 -1312
- package/lib/atomic/misc.less +3 -3
- package/lib/atomic/v1/__snapshots__/color.less.test.ts.snap +2354 -2354
- package/lib/base/internal.less +1 -1
- package/lib/components/badge/badge.less +3 -3
- package/lib/components/banner/banner.less +6 -6
- package/lib/components/checkbox_radio/checkbox_radio.less +4 -4
- package/lib/components/code-block/code-block.a11y.test.ts +5 -6
- package/lib/components/modal/modal.test.ts +155 -0
- package/lib/components/modal/modal.ts +7 -3
- package/lib/components/prose/prose.less +1 -1
- package/lib/components/table/table.ts +2 -2
- package/lib/components/tag/tag.less +2 -2
- package/lib/components/toggle-switch/toggle-switch.less +2 -2
- package/lib/components/uploader/uploader.less +2 -2
- package/lib/components/uploader/uploader.ts +4 -3
- package/lib/exports/__snapshots__/color-mixins.less.test.ts.snap +96 -96
- package/package.json +24 -24
|
@@ -4,151 +4,151 @@ exports[`color-mixins > colors > .create-aliased-utility-classes 1`] = `
|
|
|
4
4
|
"/* .create-aliased-utility-classes() */
|
|
5
5
|
/* .create-aliased-utility-classes(dark) */
|
|
6
6
|
body .fc-light,
|
|
7
|
-
body .h
|
|
8
|
-
body .f
|
|
9
|
-
body .f
|
|
7
|
+
body .h\\:fc-light:hover,
|
|
8
|
+
body .f\\:fc-light:focus,
|
|
9
|
+
body .f\\:fc-light:focus-within {
|
|
10
10
|
color: var(--fc-light) !important;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
body .fc-medium,
|
|
14
|
-
body .h
|
|
15
|
-
body .f
|
|
16
|
-
body .f
|
|
14
|
+
body .h\\:fc-medium:hover,
|
|
15
|
+
body .f\\:fc-medium:focus,
|
|
16
|
+
body .f\\:fc-medium:focus-within {
|
|
17
17
|
color: var(--fc-medium) !important;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
body .fc-dark,
|
|
21
|
-
body .h
|
|
22
|
-
body .f
|
|
23
|
-
body .f
|
|
21
|
+
body .h\\:fc-dark:hover,
|
|
22
|
+
body .f\\:fc-dark:focus,
|
|
23
|
+
body .f\\:fc-dark:focus-within {
|
|
24
24
|
color: var(--fc-dark) !important;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
body .fc-error,
|
|
28
|
-
body .h
|
|
29
|
-
body .f
|
|
30
|
-
body .f
|
|
28
|
+
body .h\\:fc-error:hover,
|
|
29
|
+
body .f\\:fc-error:focus,
|
|
30
|
+
body .f\\:fc-error:focus-within {
|
|
31
31
|
color: var(--fc-error) !important;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
body .fc-danger,
|
|
35
|
-
body .h
|
|
36
|
-
body .f
|
|
37
|
-
body .f
|
|
35
|
+
body .h\\:fc-danger:hover,
|
|
36
|
+
body .f\\:fc-danger:focus,
|
|
37
|
+
body .f\\:fc-danger:focus-within {
|
|
38
38
|
color: var(--fc-danger) !important;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
body .fc-success,
|
|
42
|
-
body .h
|
|
43
|
-
body .f
|
|
44
|
-
body .f
|
|
42
|
+
body .h\\:fc-success:hover,
|
|
43
|
+
body .f\\:fc-success:focus,
|
|
44
|
+
body .f\\:fc-success:focus-within {
|
|
45
45
|
color: var(--fc-success) !important;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
body .fc-warning,
|
|
49
|
-
body .h
|
|
50
|
-
body .f
|
|
51
|
-
body .f
|
|
49
|
+
body .h\\:fc-warning:hover,
|
|
50
|
+
body .f\\:fc-warning:focus,
|
|
51
|
+
body .f\\:fc-warning:focus-within {
|
|
52
52
|
color: var(--fc-warning) !important;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
body .bg-error,
|
|
56
|
-
body .h
|
|
57
|
-
body .f
|
|
58
|
-
body .f
|
|
56
|
+
body .h\\:bg-error:hover,
|
|
57
|
+
body .f\\:bg-error:focus,
|
|
58
|
+
body .f\\:bg-error:focus-within {
|
|
59
59
|
background-color: var(--bg-error) !important;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
body .bg-danger,
|
|
63
|
-
body .h
|
|
64
|
-
body .f
|
|
65
|
-
body .f
|
|
63
|
+
body .h\\:bg-danger:hover,
|
|
64
|
+
body .f\\:bg-danger:focus,
|
|
65
|
+
body .f\\:bg-danger:focus-within {
|
|
66
66
|
background-color: var(--bg-danger) !important;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
body .bg-success,
|
|
70
|
-
body .h
|
|
71
|
-
body .f
|
|
72
|
-
body .f
|
|
70
|
+
body .h\\:bg-success:hover,
|
|
71
|
+
body .f\\:bg-success:focus,
|
|
72
|
+
body .f\\:bg-success:focus-within {
|
|
73
73
|
background-color: var(--bg-success) !important;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
body .bg-warning,
|
|
77
|
-
body .h
|
|
78
|
-
body .f
|
|
79
|
-
body .f
|
|
77
|
+
body .h\\:bg-warning:hover,
|
|
78
|
+
body .f\\:bg-warning:focus,
|
|
79
|
+
body .f\\:bg-warning:focus-within {
|
|
80
80
|
background-color: var(--bg-warning) !important;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
body .bc-error,
|
|
84
|
-
body .h
|
|
85
|
-
body .f
|
|
86
|
-
body .f
|
|
84
|
+
body .h\\:bc-error:hover,
|
|
85
|
+
body .f\\:bc-error:focus,
|
|
86
|
+
body .f\\:bc-error:focus-within {
|
|
87
87
|
border-color: var(--bc-error) !important;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
body .bc-danger,
|
|
91
|
-
body .h
|
|
92
|
-
body .f
|
|
93
|
-
body .f
|
|
91
|
+
body .h\\:bc-danger:hover,
|
|
92
|
+
body .f\\:bc-danger:focus,
|
|
93
|
+
body .f\\:bc-danger:focus-within {
|
|
94
94
|
border-color: var(--bc-danger) !important;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
body .bc-success,
|
|
98
|
-
body .h
|
|
99
|
-
body .f
|
|
100
|
-
body .f
|
|
98
|
+
body .h\\:bc-success:hover,
|
|
99
|
+
body .f\\:bc-success:focus,
|
|
100
|
+
body .f\\:bc-success:focus-within {
|
|
101
101
|
border-color: var(--bc-success) !important;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
body .bc-warning,
|
|
105
|
-
body .h
|
|
106
|
-
body .f
|
|
107
|
-
body .f
|
|
105
|
+
body .h\\:bc-warning:hover,
|
|
106
|
+
body .f\\:bc-warning:focus,
|
|
107
|
+
body .f\\:bc-warning:focus-within {
|
|
108
108
|
border-color: var(--bc-warning) !important;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
body.theme-dark .d
|
|
111
|
+
body.theme-dark .d\\:fc-light {
|
|
112
112
|
color: var(--fc-light) !important;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
body.theme-dark .d
|
|
115
|
+
body.theme-dark .d\\:fc-medium {
|
|
116
116
|
color: var(--fc-medium) !important;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
body.theme-dark .d
|
|
119
|
+
body.theme-dark .d\\:fc-dark {
|
|
120
120
|
color: var(--fc-dark) !important;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
body.theme-dark .d
|
|
123
|
+
body.theme-dark .d\\:fc-error {
|
|
124
124
|
color: var(--fc-error) !important;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
body.theme-dark .d
|
|
127
|
+
body.theme-dark .d\\:fc-danger {
|
|
128
128
|
color: var(--fc-danger) !important;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
body.theme-dark .d
|
|
131
|
+
body.theme-dark .d\\:fc-success {
|
|
132
132
|
color: var(--fc-success) !important;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
body.theme-dark .d
|
|
135
|
+
body.theme-dark .d\\:fc-warning {
|
|
136
136
|
color: var(--fc-warning) !important;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
body.theme-dark .d
|
|
139
|
+
body.theme-dark .d\\:bg-error {
|
|
140
140
|
background-color: var(--bg-error) !important;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
body.theme-dark .d
|
|
143
|
+
body.theme-dark .d\\:bg-danger {
|
|
144
144
|
background-color: var(--bg-danger) !important;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
body.theme-dark .d
|
|
147
|
+
body.theme-dark .d\\:bg-success {
|
|
148
148
|
background-color: var(--bg-success) !important;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
body.theme-dark .d
|
|
151
|
+
body.theme-dark .d\\:bg-warning {
|
|
152
152
|
background-color: var(--bg-warning) !important;
|
|
153
153
|
}
|
|
154
154
|
"
|
|
@@ -159,34 +159,34 @@ exports[`color-mixins > colors > create-color-classes 1`] = `
|
|
|
159
159
|
/* .create-color-classes(blue-400, var(--blue-400), dark, color) */
|
|
160
160
|
/* .create-color-classes(green-300, var(--green-300), light, background-color) */
|
|
161
161
|
body .bg-red-500,
|
|
162
|
-
body .h
|
|
163
|
-
body .f
|
|
164
|
-
body .f
|
|
162
|
+
body .h\\:bg-red-500:hover,
|
|
163
|
+
body .f\\:bg-red-500:focus,
|
|
164
|
+
body .f\\:bg-red-500:focus-within {
|
|
165
165
|
background-color: var(--red-500);
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
body .bc-red-500,
|
|
169
|
-
body .h
|
|
170
|
-
body .f
|
|
171
|
-
body .f
|
|
169
|
+
body .h\\:bc-red-500:hover,
|
|
170
|
+
body .f\\:bc-red-500:focus,
|
|
171
|
+
body .f\\:bc-red-500:focus-within {
|
|
172
172
|
border-color: var(--red-500);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
body .fc-red-500,
|
|
176
|
-
body .h
|
|
177
|
-
body .f
|
|
178
|
-
body .f
|
|
176
|
+
body .h\\:fc-red-500:hover,
|
|
177
|
+
body .f\\:fc-red-500:focus,
|
|
178
|
+
body .f\\:fc-red-500:focus-within {
|
|
179
179
|
color: var(--red-500);
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
body .d
|
|
182
|
+
body .d\\:fc-blue-500 {
|
|
183
183
|
color: var(--blue-500);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
body .bg-green-300,
|
|
187
|
-
body .h
|
|
188
|
-
body .f
|
|
189
|
-
body .f
|
|
187
|
+
body .h\\:bg-green-300:hover,
|
|
188
|
+
body .f\\:bg-green-300:focus,
|
|
189
|
+
body .f\\:bg-green-300:focus-within {
|
|
190
190
|
background-color: var(--green-300);
|
|
191
191
|
}
|
|
192
192
|
"
|
|
@@ -214,65 +214,65 @@ body {
|
|
|
214
214
|
}
|
|
215
215
|
/* .create-colors(.sets-test(), classes) */
|
|
216
216
|
body .bg-emerald,
|
|
217
|
-
body .h
|
|
218
|
-
body .f
|
|
219
|
-
body .f
|
|
217
|
+
body .h\\:bg-emerald:hover,
|
|
218
|
+
body .f\\:bg-emerald:focus,
|
|
219
|
+
body .f\\:bg-emerald:focus-within {
|
|
220
220
|
background-color: var(--emerald) !important;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
body .bc-emerald,
|
|
224
|
-
body .h
|
|
225
|
-
body .f
|
|
226
|
-
body .f
|
|
224
|
+
body .h\\:bc-emerald:hover,
|
|
225
|
+
body .f\\:bc-emerald:focus,
|
|
226
|
+
body .f\\:bc-emerald:focus-within {
|
|
227
227
|
border-color: var(--emerald) !important;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
body .fc-emerald,
|
|
231
|
-
body .h
|
|
232
|
-
body .f
|
|
233
|
-
body .f
|
|
231
|
+
body .h\\:fc-emerald:hover,
|
|
232
|
+
body .f\\:fc-emerald:focus,
|
|
233
|
+
body .f\\:fc-emerald:focus-within {
|
|
234
234
|
color: var(--emerald) !important;
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
body .bg-ruby-100,
|
|
238
|
-
body .h
|
|
239
|
-
body .f
|
|
240
|
-
body .f
|
|
238
|
+
body .h\\:bg-ruby-100:hover,
|
|
239
|
+
body .f\\:bg-ruby-100:focus,
|
|
240
|
+
body .f\\:bg-ruby-100:focus-within {
|
|
241
241
|
background-color: var(--ruby-100) !important;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
body .bc-ruby-100,
|
|
245
|
-
body .h
|
|
246
|
-
body .f
|
|
247
|
-
body .f
|
|
245
|
+
body .h\\:bc-ruby-100:hover,
|
|
246
|
+
body .f\\:bc-ruby-100:focus,
|
|
247
|
+
body .f\\:bc-ruby-100:focus-within {
|
|
248
248
|
border-color: var(--ruby-100) !important;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
body .fc-ruby-100,
|
|
252
|
-
body .h
|
|
253
|
-
body .f
|
|
254
|
-
body .f
|
|
252
|
+
body .h\\:fc-ruby-100:hover,
|
|
253
|
+
body .f\\:fc-ruby-100:focus,
|
|
254
|
+
body .f\\:fc-ruby-100:focus-within {
|
|
255
255
|
color: var(--ruby-100) !important;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
body .bg-ruby-600,
|
|
259
|
-
body .h
|
|
260
|
-
body .f
|
|
261
|
-
body .f
|
|
259
|
+
body .h\\:bg-ruby-600:hover,
|
|
260
|
+
body .f\\:bg-ruby-600:focus,
|
|
261
|
+
body .f\\:bg-ruby-600:focus-within {
|
|
262
262
|
background-color: var(--ruby-600) !important;
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
body .bc-ruby-600,
|
|
266
|
-
body .h
|
|
267
|
-
body .f
|
|
268
|
-
body .f
|
|
266
|
+
body .h\\:bc-ruby-600:hover,
|
|
267
|
+
body .f\\:bc-ruby-600:focus,
|
|
268
|
+
body .f\\:bc-ruby-600:focus-within {
|
|
269
269
|
border-color: var(--ruby-600) !important;
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
body .fc-ruby-600,
|
|
273
|
-
body .h
|
|
274
|
-
body .f
|
|
275
|
-
body .f
|
|
273
|
+
body .h\\:fc-ruby-600:hover,
|
|
274
|
+
body .f\\:fc-ruby-600:focus,
|
|
275
|
+
body .f\\:fc-ruby-600:focus-within {
|
|
276
276
|
color: var(--ruby-600) !important;
|
|
277
277
|
}
|
|
278
278
|
"
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/StackExchange/Stacks.git"
|
|
7
7
|
},
|
|
8
|
-
"version": "2.0.
|
|
8
|
+
"version": "2.0.8",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
11
|
"lib"
|
|
@@ -45,20 +45,20 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@11ty/eleventy": "^2.0.1",
|
|
47
47
|
"@highlightjs/cdn-assets": "^11.9.0",
|
|
48
|
-
"@open-wc/testing": "^
|
|
48
|
+
"@open-wc/testing": "^4.0.0",
|
|
49
49
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
50
50
|
"@rollup/plugin-replace": "^5.0.5",
|
|
51
51
|
"@stackoverflow/stacks-editor": "^0.9.1",
|
|
52
52
|
"@stackoverflow/stacks-icons": "^6.0.0",
|
|
53
53
|
"@testing-library/dom": "^9.3.3",
|
|
54
|
-
"@testing-library/user-event": "^14.5.
|
|
55
|
-
"@types/cssbeautify": "^0.3.
|
|
56
|
-
"@types/less": "^3.0.
|
|
57
|
-
"@types/mocha": "^10.0.
|
|
58
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
59
|
-
"@typescript-eslint/parser": "^6.
|
|
60
|
-
"@web/dev-server-esbuild": "^1.0.
|
|
61
|
-
"@web/dev-server-rollup": "^0.6.
|
|
54
|
+
"@testing-library/user-event": "^14.5.2",
|
|
55
|
+
"@types/cssbeautify": "^0.3.5",
|
|
56
|
+
"@types/less": "^3.0.6",
|
|
57
|
+
"@types/mocha": "^10.0.6",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^6.18.0",
|
|
59
|
+
"@typescript-eslint/parser": "^6.18.0",
|
|
60
|
+
"@web/dev-server-esbuild": "^1.0.1",
|
|
61
|
+
"@web/dev-server-rollup": "^0.6.1",
|
|
62
62
|
"@web/test-runner": "^0.18.0",
|
|
63
63
|
"@web/test-runner-playwright": "^0.11.0",
|
|
64
64
|
"@web/test-runner-visual-regression": "^0.9.0",
|
|
@@ -67,29 +67,29 @@
|
|
|
67
67
|
"concurrently": "^8.2.2",
|
|
68
68
|
"css-loader": "^6.8.1",
|
|
69
69
|
"cssbeautify": "^0.3.1",
|
|
70
|
-
"cssnano": "^6.0.
|
|
70
|
+
"cssnano": "^6.0.3",
|
|
71
71
|
"docsearch.js": "^2.6.3",
|
|
72
72
|
"eleventy-plugin-highlightjs": "^1.1.0",
|
|
73
73
|
"eleventy-plugin-nesting-toc": "^1.3.0",
|
|
74
|
-
"eslint": "^8.
|
|
75
|
-
"eslint-config-prettier": "^9.
|
|
74
|
+
"eslint": "^8.56.0",
|
|
75
|
+
"eslint-config-prettier": "^9.1.0",
|
|
76
76
|
"eslint-plugin-no-unsanitized": "^4.0.2",
|
|
77
77
|
"jquery": "^3.7.1",
|
|
78
|
-
"less-loader": "^11.1.
|
|
78
|
+
"less-loader": "^11.1.4",
|
|
79
79
|
"list.js": "^2.3.1",
|
|
80
|
-
"markdown-it": "^
|
|
80
|
+
"markdown-it": "^14.0.0",
|
|
81
81
|
"mini-css-extract-plugin": "^2.7.6",
|
|
82
82
|
"postcss-less": "^6.0.0",
|
|
83
|
-
"postcss-loader": "^7.3.
|
|
84
|
-
"prettier": "^3.
|
|
83
|
+
"postcss-loader": "^7.3.4",
|
|
84
|
+
"prettier": "^3.1.1",
|
|
85
85
|
"rollup-plugin-postcss": "^4.0.2",
|
|
86
|
-
"stylelint": "^
|
|
87
|
-
"stylelint-config-recommended": "^
|
|
88
|
-
"stylelint-config-standard": "^
|
|
89
|
-
"terser-webpack-plugin": "^5.3.
|
|
90
|
-
"ts-loader": "^9.5.
|
|
91
|
-
"typescript": "^5.
|
|
92
|
-
"vitest": "^
|
|
86
|
+
"stylelint": "^16.1.0",
|
|
87
|
+
"stylelint-config-recommended": "^14.0.0",
|
|
88
|
+
"stylelint-config-standard": "^36.0.0",
|
|
89
|
+
"terser-webpack-plugin": "^5.3.10",
|
|
90
|
+
"ts-loader": "^9.5.1",
|
|
91
|
+
"typescript": "^5.3.3",
|
|
92
|
+
"vitest": "^1.1.3",
|
|
93
93
|
"webpack": "^5.89.0",
|
|
94
94
|
"webpack-cli": "^5.1.4",
|
|
95
95
|
"webpack-merge": "^5.10.0"
|