@justeattakeaway/pie-switch 2.3.28 → 2.3.30

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.
@@ -35,7 +35,7 @@
35
35
  "type": {
36
36
  "text": "DefaultProps"
37
37
  },
38
- "default": "{\n checked: false,\n disabled: false,\n labelPlacement: 'leading',\n required: false,\n value: 'on',\n}"
38
+ "default": "{ checked: false, disabled: false, labelPlacement: 'leading', required: false, value: 'on', }"
39
39
  }
40
40
  ],
41
41
  "exports": [
@@ -80,12 +80,14 @@
80
80
  "type": {
81
81
  "text": "SwitchProps['label']"
82
82
  },
83
- "privacy": "public"
83
+ "privacy": "public",
84
+ "attribute": "label"
84
85
  },
85
86
  {
86
87
  "kind": "field",
87
88
  "name": "labelPlacement",
88
- "privacy": "public"
89
+ "privacy": "public",
90
+ "attribute": "labelPlacement"
89
91
  },
90
92
  {
91
93
  "kind": "field",
@@ -93,22 +95,28 @@
93
95
  "type": {
94
96
  "text": "SwitchProps['aria']"
95
97
  },
96
- "privacy": "public"
98
+ "privacy": "public",
99
+ "attribute": "aria"
97
100
  },
98
101
  {
99
102
  "kind": "field",
100
103
  "name": "checked",
101
- "privacy": "public"
104
+ "privacy": "public",
105
+ "attribute": "checked",
106
+ "reflects": true
102
107
  },
103
108
  {
104
109
  "kind": "field",
105
110
  "name": "required",
106
- "privacy": "public"
111
+ "privacy": "public",
112
+ "attribute": "required",
113
+ "reflects": true
107
114
  },
108
115
  {
109
116
  "kind": "field",
110
117
  "name": "value",
111
- "privacy": "public"
118
+ "privacy": "public",
119
+ "attribute": "value"
112
120
  },
113
121
  {
114
122
  "kind": "field",
@@ -116,12 +124,16 @@
116
124
  "type": {
117
125
  "text": "SwitchProps['name']"
118
126
  },
119
- "privacy": "public"
127
+ "privacy": "public",
128
+ "attribute": "name",
129
+ "reflects": true
120
130
  },
121
131
  {
122
132
  "kind": "field",
123
133
  "name": "disabled",
124
- "privacy": "public"
134
+ "privacy": "public",
135
+ "attribute": "disabled",
136
+ "reflects": true
125
137
  },
126
138
  {
127
139
  "kind": "field",
@@ -183,7 +195,7 @@
183
195
  "text": ""
184
196
  }
185
197
  },
186
- "description": "Returns a boolean value which indicates validity of the value of the component. If the value is invalid, this method also fires the invalid event on the component.\nhttps://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity"
198
+ "description": "Returns a boolean value which indicates validity of the value of the component. If the value is invalid, this method also fires the invalid event on the component.\r\nhttps://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity"
187
199
  },
188
200
  {
189
201
  "kind": "method",
@@ -194,7 +206,7 @@
194
206
  "text": ""
195
207
  }
196
208
  },
197
- "description": "If the value is invalid, this method also fires the invalid event on the element, and (if the event isn't canceled) reports the problem to the user.\nhttps://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/reportValidity"
209
+ "description": "If the value is invalid, this method also fires the invalid event on the element, and (if the event isn't canceled) reports the problem to the user.\r\nhttps://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/reportValidity"
198
210
  },
199
211
  {
200
212
  "kind": "method",
@@ -213,7 +225,7 @@
213
225
  }
214
226
  }
215
227
  ],
216
- "description": "Allows a consumer to set a custom validation message on the switch. An empty string counts as valid.\nhttps://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setCustomValidity"
228
+ "description": "Allows a consumer to set a custom validation message on the switch. An empty string counts as valid.\r\nhttps://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setCustomValidity"
217
229
  },
218
230
  {
219
231
  "kind": "field",
@@ -222,7 +234,7 @@
222
234
  "text": "ValidityState"
223
235
  },
224
236
  "privacy": "public",
225
- "description": "(Read-only) returns a ValidityState with the validity states that this element is in.\nhttps://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validity",
237
+ "description": "(Read-only) returns a ValidityState with the validity states that this element is in.\r\nhttps://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validity",
226
238
  "readonly": true
227
239
  },
228
240
  {
@@ -232,7 +244,7 @@
232
244
  "text": "string"
233
245
  },
234
246
  "privacy": "public",
235
- "description": "(Read-only) Returns a string representing a localized message that describes the validation constraints that the control does not satisfy (if any).\nThis string is empty if the component is valid.\nhttps://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validationMessage",
247
+ "description": "(Read-only) Returns a string representing a localized message that describes the validation constraints that the control does not satisfy (if any).\r\nThis string is empty if the component is valid.\r\nhttps://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validationMessage",
236
248
  "readonly": true
237
249
  },
238
250
  {
@@ -247,7 +259,7 @@
247
259
  }
248
260
  }
249
261
  ],
250
- "description": "If a label is provided, renders it if `labelPlacement` matches the given position.\nIf no label is provided, or `labelPlacement` does not match the given position, nothing is rendered."
262
+ "description": "If a label is provided, renders it if `labelPlacement` matches the given position.\r\nIf no label is provided, or `labelPlacement` does not match the given position, nothing is rendered."
251
263
  },
252
264
  {
253
265
  "kind": "method",
@@ -270,6 +282,49 @@
270
282
  "name": "change"
271
283
  }
272
284
  ],
285
+ "attributes": [
286
+ {
287
+ "name": "label",
288
+ "type": {
289
+ "text": "SwitchProps['label']"
290
+ },
291
+ "fieldName": "label"
292
+ },
293
+ {
294
+ "name": "labelPlacement",
295
+ "fieldName": "labelPlacement"
296
+ },
297
+ {
298
+ "name": "aria",
299
+ "type": {
300
+ "text": "SwitchProps['aria']"
301
+ },
302
+ "fieldName": "aria"
303
+ },
304
+ {
305
+ "name": "checked",
306
+ "fieldName": "checked"
307
+ },
308
+ {
309
+ "name": "required",
310
+ "fieldName": "required"
311
+ },
312
+ {
313
+ "name": "value",
314
+ "fieldName": "value"
315
+ },
316
+ {
317
+ "name": "name",
318
+ "type": {
319
+ "text": "SwitchProps['name']"
320
+ },
321
+ "fieldName": "name"
322
+ },
323
+ {
324
+ "name": "disabled",
325
+ "fieldName": "disabled"
326
+ }
327
+ ],
273
328
  "mixins": [
274
329
  {
275
330
  "name": "FormControlMixin",
@@ -294,7 +349,7 @@
294
349
  "name": "*",
295
350
  "declaration": {
296
351
  "name": "*",
297
- "package": "./defs"
352
+ "module": "src/defs"
298
353
  }
299
354
  },
300
355
  {
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ const O = class O extends St {
9
9
  this.getAttribute("v") || this.setAttribute("v", O.v);
10
10
  }
11
11
  };
12
- O.v = "2.3.28";
12
+ O.v = "2.3.30";
13
13
  let q = O;
14
14
  var dt = {}, ht;
15
15
  function $t() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-switch",
3
3
  "description": "PIE Design System Switch built using Web Components",
4
- "version": "2.3.28",
4
+ "version": "2.3.30",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/justeattakeaway/pie",
@@ -43,13 +43,13 @@
43
43
  "author": "Just Eat Takeaway.com - Design System Team",
44
44
  "license": "Apache-2.0",
45
45
  "devDependencies": {
46
- "@justeattakeaway/pie-components-config": "0.21.1",
46
+ "@justeattakeaway/pie-components-config": "0.21.2",
47
47
  "@justeattakeaway/pie-css": "1.1.1",
48
- "@justeattakeaway/pie-monorepo-utils": "0.9.0",
48
+ "@justeattakeaway/pie-monorepo-utils": "0.9.1",
49
49
  "@justeattakeaway/pie-wrapper-react": "0.14.4"
50
50
  },
51
51
  "dependencies": {
52
- "@justeattakeaway/pie-icons-webc": "1.22.0",
52
+ "@justeattakeaway/pie-icons-webc": "1.23.0",
53
53
  "@justeattakeaway/pie-webc-core": "14.0.1",
54
54
  "element-internals-polyfill": "1.3.11"
55
55
  },