@muonic/muon 0.0.2-experimental-192-46f35ef.0 → 0.0.2-experimental-194-283b2d1.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.0.2-beta.14](https://github.com/centrica-engineering/muon/compare/v0.0.2-beta.13...v0.0.2-beta.14) (2023-05-23)
6
+
7
+
8
+ ### Features
9
+
10
+ * include lineLength token ([f5d00f9](https://github.com/centrica-engineering/muon/commit/f5d00f94078e7f49d055c9b42da041fa95c788ee))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * commands ([351c59e](https://github.com/centrica-engineering/muon/commit/351c59e3e98d1aa2181ae3a6e498ee6fcb3ea891))
16
+ * default ([c766154](https://github.com/centrica-engineering/muon/commit/c766154159d7c4c8fcca59ed2d096bdbcf5d94c2))
17
+ * snapshots ([444b5ba](https://github.com/centrica-engineering/muon/commit/444b5bae280c962909088d2abc24b10b18170193))
18
+
5
19
  ### [0.0.2-beta.13](https://github.com/centrica-engineering/muon/compare/v0.0.2-beta.12...v0.0.2-beta.13) (2023-05-15)
6
20
 
7
21
  ### [0.0.2-beta.12](https://github.com/centrica-engineering/muon/compare/v0.0.2-beta.11...v0.0.2-beta.12) (2023-05-09)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muonic/muon",
3
- "version": "0.0.2-experimental-192-46f35ef.0",
3
+ "version": "0.0.2-experimental-194-283b2d1.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2,10 +2,7 @@
2
2
  export const snapshots = {};
3
3
 
4
4
  snapshots["card default"] =
5
- `<div
6
- class="card"
7
- style=""
8
- >
5
+ `<div class="card">
9
6
  <div class="body">
10
7
  <div class="header">
11
8
  <slot name="header">
@@ -25,10 +22,7 @@ snapshots["card default"] =
25
22
  /* end snapshot card default */
26
23
 
27
24
  snapshots["card standard"] =
28
- `<div
29
- class="card"
30
- style=""
31
- >
25
+ `<div class="card">
32
26
  <div class="body">
33
27
  <div class="header">
34
28
  <slot name="header">
@@ -48,10 +42,7 @@ snapshots["card standard"] =
48
42
  /* end snapshot card standard */
49
43
 
50
44
  snapshots["card standard with image"] =
51
- `<div
52
- class="card"
53
- style=""
54
- >
45
+ `<div class="card">
55
46
  <div class="media">
56
47
  <card-image
57
48
  alt="image alt"
@@ -5,7 +5,6 @@ snapshots["cta implements standard self"] =
5
5
  `<div
6
6
  aria-label="Buy a doughnut"
7
7
  class="cta standard"
8
- style=""
9
8
  >
10
9
  <span class="label-holder">
11
10
  <slot>
@@ -37,7 +36,6 @@ snapshots["cta implements with no icon"] =
37
36
  `<div
38
37
  aria-label="Click me please"
39
38
  class="cta standard"
40
- style=""
41
39
  >
42
40
  <span class="label-holder">
43
41
  <slot>
@@ -58,7 +56,6 @@ snapshots["cta implements with loading"] =
58
56
  <div
59
57
  aria-label="This is a button"
60
58
  class="cta loading standard"
61
- style=""
62
59
  >
63
60
  <span class="label-holder">
64
61
  Loading...
@@ -76,7 +73,6 @@ snapshots["cta implements with icon at start"] =
76
73
  `<div
77
74
  aria-label="Something something...danger zone"
78
75
  class="cta standard"
79
- style=""
80
76
  >
81
77
  <cta-icon
82
78
  class="icon"
@@ -96,7 +92,6 @@ snapshots["cta implements with a href"] =
96
92
  aria-label="This is a button"
97
93
  class="cta standard"
98
94
  href="https://example.com"
99
- style=""
100
95
  >
101
96
  <span class="label-holder">
102
97
  <slot>
@@ -115,7 +110,6 @@ snapshots["cta implements cta within an anchor element"] =
115
110
  `<div
116
111
  aria-label="This is a button"
117
112
  class="cta standard"
118
- style=""
119
113
  >
120
114
  <span class="label-holder">
121
115
  <slot>
@@ -134,7 +128,6 @@ snapshots["cta implements within a form"] =
134
128
  `<button
135
129
  aria-label="This is a button"
136
130
  class="cta standard"
137
- style=""
138
131
  >
139
132
  <span class="label-holder">
140
133
  <slot>
@@ -153,7 +146,6 @@ snapshots["cta implements with triggering button"] =
153
146
  `<button
154
147
  aria-label="This is a button"
155
148
  class="cta standard"
156
- style=""
157
149
  >
158
150
  <span class="label-holder">
159
151
  <slot>
@@ -180,7 +172,6 @@ snapshots["cta implements loading as a button"] =
180
172
  aria-label="This is a button"
181
173
  class="cta loading standard"
182
174
  disabled=""
183
- style=""
184
175
  >
185
176
  <span class="label-holder">
186
177
  Loading...
@@ -198,7 +189,6 @@ snapshots["cta implements with disabled"] =
198
189
  `<div
199
190
  aria-label="This is a button"
200
191
  class="cta disabled standard"
201
- style=""
202
192
  >
203
193
  <span class="label-holder">
204
194
  <slot>
@@ -217,7 +207,6 @@ snapshots["cta implements template `submit`"] =
217
207
  `<div
218
208
  aria-label="This is a button"
219
209
  class="cta submit"
220
- style=""
221
210
  >
222
211
  <span class="label-holder">
223
212
  <slot>
@@ -236,7 +225,6 @@ snapshots["cta implements template `reset`"] =
236
225
  `<div
237
226
  aria-label="This is a button"
238
227
  class="cta reset"
239
- style=""
240
228
  >
241
229
  <span class="label-holder">
242
230
  <slot>
@@ -5,7 +5,6 @@ snapshots["icon implements standard self"] =
5
5
  `<div
6
6
  aria-hidden="true"
7
7
  class="icon standard"
8
- style="--icon-size:100%;"
9
8
  >
10
9
  </div>
11
10
  `;
@@ -15,7 +14,6 @@ snapshots["icon no anonymous slot"] =
15
14
  `<div
16
15
  aria-hidden="true"
17
16
  class="icon standard"
18
- style="--icon-size:100%;"
19
17
  >
20
18
  </div>
21
19
  `;
@@ -35,7 +33,6 @@ snapshots["icon select icon name"] =
35
33
  `<div
36
34
  aria-hidden="true"
37
35
  class="icon standard"
38
- style="--icon-size:100%;"
39
36
  >
40
37
  </div>
41
38
  `;
@@ -55,7 +52,6 @@ snapshots["icon fails gracefully when using non existent name"] =
55
52
  `<div
56
53
  aria-hidden="true"
57
54
  class="icon standard"
58
- style="--icon-size:100%;"
59
55
  >
60
56
  </div>
61
57
  `;
@@ -77,7 +73,6 @@ snapshots["icon adds attributes for when describe used"] =
77
73
  aria-label="foobar"
78
74
  class="icon standard"
79
75
  role="img"
80
- style="--icon-size:100%;"
81
76
  >
82
77
  </div>
83
78
  `;
@@ -87,7 +82,6 @@ snapshots["icon caches not available"] =
87
82
  `<div
88
83
  aria-hidden="true"
89
84
  class="icon standard"
90
- style="--icon-size:100%;"
91
85
  >
92
86
  </div>
93
87
  `;
@@ -14,10 +14,7 @@ snapshots["image implements standard self"] =
14
14
  /* end snapshot image implements standard self */
15
15
 
16
16
  snapshots["image implements src image"] =
17
- `<div
18
- class="image"
19
- style="--image-ratio:16 / 9;"
20
- >
17
+ `<div class="image">
21
18
  <img
22
19
  alt=""
23
20
  class="blur-out image-lazy"
@@ -28,10 +25,7 @@ snapshots["image implements src image"] =
28
25
  /* end snapshot image implements src image */
29
26
 
30
27
  snapshots["image implements ratio"] =
31
- `<div
32
- class="image"
33
- style="--image-ratio:1 / 1;"
34
- >
28
+ `<div class="image">
35
29
  <img
36
30
  alt=""
37
31
  class="blur-out image-lazy"
@@ -42,24 +36,15 @@ snapshots["image implements ratio"] =
42
36
  /* end snapshot image implements ratio */
43
37
 
44
38
  snapshots["image implements background"] =
45
- `<div
46
- class="image is-background"
47
- style="--image-ratio:16 / 9;--background-size:cover;"
48
- >
49
- <div
50
- class="blur-out image-holder"
51
- style="--background-image:url(&quot;tests/components/image/images/150.png&quot;);"
52
- >
39
+ `<div class="image is-background">
40
+ <div class="blur-out image-holder">
53
41
  </div>
54
42
  </div>
55
43
  `;
56
44
  /* end snapshot image implements background */
57
45
 
58
46
  snapshots["image implements placeholder image"] =
59
- `<div
60
- class="image"
61
- style="--image-ratio:16 / 9;"
62
- >
47
+ `<div class="image">
63
48
  <img
64
49
  alt=""
65
50
  class="blur image-lazy"
@@ -70,10 +55,7 @@ snapshots["image implements placeholder image"] =
70
55
  /* end snapshot image implements placeholder image */
71
56
 
72
57
  snapshots["image implements alt"] =
73
- `<div
74
- class="image"
75
- style="--image-ratio:16 / 9;"
76
- >
58
+ `<div class="image">
77
59
  <img
78
60
  alt="alternative text for the image"
79
61
  class="blur-out image-lazy"
@@ -84,10 +66,7 @@ snapshots["image implements alt"] =
84
66
  /* end snapshot image implements alt */
85
67
 
86
68
  snapshots["image fallsback on ratio if not correct"] =
87
- `<div
88
- class="image"
89
- style="--image-ratio:16 / 9;"
90
- >
69
+ `<div class="image">
91
70
  <img
92
71
  alt=""
93
72
  class="blur-out image-lazy"
@@ -98,10 +77,7 @@ snapshots["image fallsback on ratio if not correct"] =
98
77
  /* end snapshot image fallsback on ratio if not correct */
99
78
 
100
79
  snapshots["image fallsback on image padding if aspect-ratio not available"] =
101
- `<div
102
- class="image"
103
- style="--image-padding:56.25%;"
104
- >
80
+ `<div class="image">
105
81
  <img
106
82
  alt=""
107
83
  class="blur-out image-lazy"
@@ -121,19 +97,13 @@ snapshots["image image fails to loads"] =
121
97
  /* end snapshot image image fails to loads */
122
98
 
123
99
  snapshots["image image fails to load"] =
124
- `<div
125
- class="image"
126
- style="--image-ratio:16 / 9;"
127
- >
100
+ `<div class="image">
128
101
  </div>
129
102
  `;
130
103
  /* end snapshot image image fails to load */
131
104
 
132
105
  snapshots["image image is eager"] =
133
- `<div
134
- class="image"
135
- style="--image-ratio:16 / 9;"
136
- >
106
+ `<div class="image">
137
107
  <img
138
108
  alt=""
139
109
  class="blur-out image-lazy"
@@ -144,23 +114,14 @@ snapshots["image image is eager"] =
144
114
  /* end snapshot image image is eager */
145
115
 
146
116
  snapshots["image image fails to load for background"] =
147
- `<div
148
- class="image"
149
- style="--image-ratio:16 / 9;"
150
- >
117
+ `<div class="image">
151
118
  </div>
152
119
  `;
153
120
  /* end snapshot image image fails to load for background */
154
121
 
155
122
  snapshots["image implements placeholder image for background"] =
156
- `<div
157
- class="image is-background"
158
- style="--image-ratio:16 / 9;--background-size:cover;"
159
- >
160
- <div
161
- class="blur image-holder"
162
- style="--background-image:url(&quot;tests/components/image/images/15.png&quot;);"
163
- >
123
+ `<div class="image is-background">
124
+ <div class="blur image-holder">
164
125
  </div>
165
126
  </div>
166
127
  `;
@@ -2,10 +2,7 @@
2
2
  export const snapshots = {};
3
3
 
4
4
  snapshots["Inputter standard default"] =
5
- `<div
6
- class="inputter"
7
- style=""
8
- >
5
+ `<div class="inputter">
9
6
  <slot name="label">
10
7
  </slot>
11
8
  <div class="wrapper">
@@ -17,10 +14,7 @@ snapshots["Inputter standard default"] =
17
14
  /* end snapshot Inputter standard default */
18
15
 
19
16
  snapshots["Inputter helper text"] =
20
- `<div
21
- class="inputter"
22
- style=""
23
- >
17
+ `<div class="inputter">
24
18
  <slot name="label">
25
19
  </slot>
26
20
  <div class="helper">
@@ -35,10 +29,7 @@ snapshots["Inputter helper text"] =
35
29
  /* end snapshot Inputter helper text */
36
30
 
37
31
  snapshots["Inputter helper detail"] =
38
- `<div
39
- class="inputter"
40
- style=""
41
- >
32
+ `<div class="inputter">
42
33
  <slot name="label">
43
34
  </slot>
44
35
  <inputter-detail>
@@ -57,10 +48,7 @@ snapshots["Inputter helper detail"] =
57
48
  /* end snapshot Inputter helper detail */
58
49
 
59
50
  snapshots["Inputter helper detail open"] =
60
- `<div
61
- class="inputter"
62
- style=""
63
- >
51
+ `<div class="inputter">
64
52
  <slot name="label">
65
53
  </slot>
66
54
  <inputter-detail open="">
@@ -79,10 +67,7 @@ snapshots["Inputter helper detail open"] =
79
67
  /* end snapshot Inputter helper detail open */
80
68
 
81
69
  snapshots["Inputter text disabled"] =
82
- `<div
83
- class="has-disabled inputter"
84
- style=""
85
- >
70
+ `<div class="has-disabled inputter">
86
71
  <slot name="label">
87
72
  </slot>
88
73
  <div class="wrapper">
@@ -94,10 +79,7 @@ snapshots["Inputter text disabled"] =
94
79
  /* end snapshot Inputter text disabled */
95
80
 
96
81
  snapshots["Inputter text mask text"] =
97
- `<div
98
- class="has-mask inputter"
99
- style="--maxlength:4;"
100
- >
82
+ `<div class="has-mask inputter">
101
83
  <slot name="label">
102
84
  </slot>
103
85
  <div class="wrapper">
@@ -115,10 +97,7 @@ snapshots["Inputter text mask text"] =
115
97
  /* end snapshot Inputter text mask text */
116
98
 
117
99
  snapshots["Inputter text validation on input"] =
118
- `<div
119
- class="inputter"
120
- style=""
121
- >
100
+ `<div class="inputter">
122
101
  <slot name="label">
123
102
  </slot>
124
103
  <div class="wrapper">
@@ -130,10 +109,7 @@ snapshots["Inputter text validation on input"] =
130
109
  /* end snapshot Inputter text validation on input */
131
110
 
132
111
  snapshots["Inputter text validation on change"] =
133
- `<div
134
- class="inputter"
135
- style=""
136
- >
112
+ `<div class="inputter">
137
113
  <slot name="label">
138
114
  </slot>
139
115
  <div class="wrapper">
@@ -145,10 +121,7 @@ snapshots["Inputter text validation on change"] =
145
121
  /* end snapshot Inputter text validation on change */
146
122
 
147
123
  snapshots["Inputter text mask & validation"] =
148
- `<div
149
- class="has-mask inputter"
150
- style="--maxlength:4;"
151
- >
124
+ `<div class="has-mask inputter">
152
125
  <slot name="label">
153
126
  </slot>
154
127
  <div class="wrapper">
@@ -166,10 +139,7 @@ snapshots["Inputter text mask & validation"] =
166
139
  /* end snapshot Inputter text mask & validation */
167
140
 
168
141
  snapshots["Inputter radio standard radio"] =
169
- `<div
170
- class="inputter radio"
171
- style=""
172
- >
142
+ `<div class="inputter radio">
173
143
  <span class="input-heading">
174
144
  What is your heating source?
175
145
  </span>
@@ -182,10 +152,7 @@ snapshots["Inputter radio standard radio"] =
182
152
  /* end snapshot Inputter radio standard radio */
183
153
 
184
154
  snapshots["Inputter radio radio mask"] =
185
- `<div
186
- class="has-mask inputter radio"
187
- style="--maxlength:3;"
188
- >
155
+ `<div class="has-mask inputter radio">
189
156
  <span class="input-heading">
190
157
  What is your heating source?
191
158
  </span>
@@ -198,10 +165,7 @@ snapshots["Inputter radio radio mask"] =
198
165
  /* end snapshot Inputter radio radio mask */
199
166
 
200
167
  snapshots["Inputter radio radio mask validation"] =
201
- `<div
202
- class="has-mask inputter radio"
203
- style="--maxlength:3;"
204
- >
168
+ `<div class="has-mask inputter radio">
205
169
  <span class="input-heading">
206
170
  What is your heating source?
207
171
  </span>
@@ -214,10 +178,7 @@ snapshots["Inputter radio radio mask validation"] =
214
178
  /* end snapshot Inputter radio radio mask validation */
215
179
 
216
180
  snapshots["Inputter select standard select"] =
217
- `<div
218
- class="inputter select"
219
- style=""
220
- >
181
+ `<div class="inputter select">
221
182
  <slot name="label">
222
183
  </slot>
223
184
  <div class="wrapper">
@@ -231,10 +192,7 @@ snapshots["Inputter select standard select"] =
231
192
  /* end snapshot Inputter select standard select */
232
193
 
233
194
  snapshots["Inputter search standard search"] =
234
- `<div
235
- class="inputter search"
236
- style=""
237
- >
195
+ `<div class="inputter search">
238
196
  <slot name="label">
239
197
  </slot>
240
198
  <div class="wrapper">
@@ -248,10 +206,7 @@ snapshots["Inputter search standard search"] =
248
206
  /* end snapshot Inputter search standard search */
249
207
 
250
208
  snapshots["Inputter date standard date"] =
251
- `<div
252
- class="date inputter"
253
- style=""
254
- >
209
+ `<div class="date inputter">
255
210
  <slot name="label">
256
211
  </slot>
257
212
  <div class="wrapper">
@@ -4,7 +4,9 @@ import { executeServerCommand } from '@web/test-runner-commands';
4
4
  export const defaultChecks = async (el) => {
5
5
  const snapshotOptions = await executeServerCommand('run-snapshots');
6
6
  if (snapshotOptions?.run === true) {
7
- await expect(el).shadowDom.to.equalSnapshot();
7
+ await expect(el).shadowDom.to.equalSnapshot({
8
+ ignoreAttributes: ['style'] // @TODO: until we can work out why Chromium is weird
9
+ });
8
10
  }
9
11
 
10
12
  await expect(el).to.be.accessible();
@@ -2,10 +2,7 @@
2
2
  export const snapshots = {};
3
3
 
4
4
  snapshots["detail standard"] =
5
- `<details
6
- class="details"
7
- style=""
8
- >
5
+ `<details class="details">
9
6
  <summary class="heading">
10
7
  <slot name="heading">
11
8
  </slot>
@@ -27,7 +24,6 @@ snapshots["detail standard open"] =
27
24
  `<details
28
25
  class="details"
29
26
  open=""
30
- style=""
31
27
  >
32
28
  <summary class="heading">
33
29
  <slot name="heading">
@@ -73,10 +69,7 @@ snapshots["detail standard heading"] =
73
69
  /* end snapshot detail standard heading */
74
70
 
75
71
  snapshots["detail standard slotted content"] =
76
- `<details
77
- class="details"
78
- style=""
79
- >
72
+ `<details class="details">
80
73
  <summary class="heading">
81
74
  <slot name="heading">
82
75
  </slot>
@@ -121,10 +114,7 @@ snapshots["detail standard toggle event"] =
121
114
  /* end snapshot detail standard toggle event */
122
115
 
123
116
  snapshots["detail standard toggle event true"] =
124
- `<details
125
- class="details"
126
- style=""
127
- >
117
+ `<details class="details">
128
118
  <summary class="heading">
129
119
  <slot name="heading">
130
120
  </slot>
@@ -146,7 +136,6 @@ snapshots["detail standard toggle event false"] =
146
136
  `<details
147
137
  class="details toggle-start"
148
138
  open=""
149
- style=""
150
139
  >
151
140
  <summary class="heading">
152
141
  <detail-icon
@@ -166,10 +155,7 @@ snapshots["detail standard toggle event false"] =
166
155
  /* end snapshot detail standard toggle event false */
167
156
 
168
157
  snapshots["detail standard icon"] =
169
- `<details
170
- class="details has-icon"
171
- style=""
172
- >
158
+ `<details class="details has-icon">
173
159
  <summary class="heading">
174
160
  <detail-icon
175
161
  class="icon"
@@ -212,10 +198,7 @@ snapshots["detail standard icon end"] =
212
198
  /* end snapshot detail standard icon end */
213
199
 
214
200
  snapshots["detail standard toggle"] =
215
- `<details
216
- class="details toggle-start"
217
- style=""
218
- >
201
+ `<details class="details toggle-start">
219
202
  <summary class="heading">
220
203
  <detail-icon
221
204
  class="toggle"
@@ -234,10 +217,7 @@ snapshots["detail standard toggle"] =
234
217
  /* end snapshot detail standard toggle */
235
218
 
236
219
  snapshots["detail standard toggle end"] =
237
- `<details
238
- class="details toggle-end"
239
- style=""
240
- >
220
+ `<details class="details toggle-end">
241
221
  <summary class="heading">
242
222
  <slot name="heading">
243
223
  </slot>