@justeattakeaway/pie-switch 2.0.4 → 2.0.5

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.
@@ -80,14 +80,12 @@
80
80
  "type": {
81
81
  "text": "SwitchProps['label']"
82
82
  },
83
- "privacy": "public",
84
- "attribute": "label"
83
+ "privacy": "public"
85
84
  },
86
85
  {
87
86
  "kind": "field",
88
87
  "name": "labelPlacement",
89
- "privacy": "public",
90
- "attribute": "labelPlacement"
88
+ "privacy": "public"
91
89
  },
92
90
  {
93
91
  "kind": "field",
@@ -95,28 +93,22 @@
95
93
  "type": {
96
94
  "text": "SwitchProps['aria']"
97
95
  },
98
- "privacy": "public",
99
- "attribute": "aria"
96
+ "privacy": "public"
100
97
  },
101
98
  {
102
99
  "kind": "field",
103
100
  "name": "checked",
104
- "privacy": "public",
105
- "attribute": "checked",
106
- "reflects": true
101
+ "privacy": "public"
107
102
  },
108
103
  {
109
104
  "kind": "field",
110
105
  "name": "required",
111
- "privacy": "public",
112
- "attribute": "required",
113
- "reflects": true
106
+ "privacy": "public"
114
107
  },
115
108
  {
116
109
  "kind": "field",
117
110
  "name": "value",
118
- "privacy": "public",
119
- "attribute": "value"
111
+ "privacy": "public"
120
112
  },
121
113
  {
122
114
  "kind": "field",
@@ -124,16 +116,12 @@
124
116
  "type": {
125
117
  "text": "SwitchProps['name']"
126
118
  },
127
- "privacy": "public",
128
- "attribute": "name",
129
- "reflects": true
119
+ "privacy": "public"
130
120
  },
131
121
  {
132
122
  "kind": "field",
133
123
  "name": "disabled",
134
- "privacy": "public",
135
- "attribute": "disabled",
136
- "reflects": true
124
+ "privacy": "public"
137
125
  },
138
126
  {
139
127
  "kind": "field",
@@ -273,49 +261,6 @@
273
261
  "name": "change"
274
262
  }
275
263
  ],
276
- "attributes": [
277
- {
278
- "name": "label",
279
- "type": {
280
- "text": "SwitchProps['label']"
281
- },
282
- "fieldName": "label"
283
- },
284
- {
285
- "name": "labelPlacement",
286
- "fieldName": "labelPlacement"
287
- },
288
- {
289
- "name": "aria",
290
- "type": {
291
- "text": "SwitchProps['aria']"
292
- },
293
- "fieldName": "aria"
294
- },
295
- {
296
- "name": "checked",
297
- "fieldName": "checked"
298
- },
299
- {
300
- "name": "required",
301
- "fieldName": "required"
302
- },
303
- {
304
- "name": "value",
305
- "fieldName": "value"
306
- },
307
- {
308
- "name": "name",
309
- "type": {
310
- "text": "SwitchProps['name']"
311
- },
312
- "fieldName": "name"
313
- },
314
- {
315
- "name": "disabled",
316
- "fieldName": "disabled"
317
- }
318
- ],
319
264
  "mixins": [
320
265
  {
321
266
  "name": "FormControlMixin",
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
2
- import type { CSSResult } from 'lit';
3
- import type { FormControlInterface } from '@justeattakeaway/pie-webc-core';
4
- import type { GenericConstructor } from '@justeattakeaway/pie-webc-core';
2
+ import { CSSResult } from 'lit';
3
+ import { FormControlInterface } from '@justeattakeaway/pie-webc-core';
4
+ import { GenericConstructor } from '@justeattakeaway/pie-webc-core';
5
5
  import { PieElement } from '@justeattakeaway/pie-webc-core/src/internals/PieElement';
6
- import type { PIEInputElement } from '@justeattakeaway/pie-webc-core';
7
- import type { RTLInterface } from '@justeattakeaway/pie-webc-core';
8
- import type { TemplateResult } from 'lit-html';
6
+ import { PIEInputElement } from '@justeattakeaway/pie-webc-core';
7
+ import { RTLInterface } from '@justeattakeaway/pie-webc-core';
8
+ import { TemplateResult } from 'lit-html';
9
9
 
10
10
  declare type AriaProps = {
11
11
  label?: string;
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ const O = class O extends Ft {
9
9
  this.getAttribute("v") || this.setAttribute("v", O.v);
10
10
  }
11
11
  };
12
- O.v = "2.0.4";
12
+ O.v = "2.0.5";
13
13
  let q = O;
14
14
  (function() {
15
15
  (function(n) {
package/dist/react.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
2
- import type { CSSResult } from 'lit';
3
- import type { FormControlInterface } from '@justeattakeaway/pie-webc-core';
4
- import type { GenericConstructor } from '@justeattakeaway/pie-webc-core';
2
+ import { CSSResult } from 'lit';
3
+ import { FormControlInterface } from '@justeattakeaway/pie-webc-core';
4
+ import { GenericConstructor } from '@justeattakeaway/pie-webc-core';
5
5
  import { PieElement } from '@justeattakeaway/pie-webc-core/src/internals/PieElement';
6
- import type { PIEInputElement } from '@justeattakeaway/pie-webc-core';
6
+ import { PIEInputElement } from '@justeattakeaway/pie-webc-core';
7
7
  import * as React_2 from 'react';
8
- import type { RTLInterface } from '@justeattakeaway/pie-webc-core';
9
- import type { TemplateResult } from 'lit-html';
8
+ import { RTLInterface } from '@justeattakeaway/pie-webc-core';
9
+ import { TemplateResult } from 'lit-html';
10
10
 
11
11
  declare type AriaProps = {
12
12
  label?: string;
@@ -26,7 +26,7 @@ export declare const labelPlacements: readonly ["leading", "trailing"];
26
26
  */
27
27
  export declare const ON_SWITCH_CHANGED_EVENT = "change";
28
28
 
29
- export declare const PieSwitch: React_2.ForwardRefExoticComponent<SwitchProps & React_2.RefAttributes<PieSwitch_2> & PieSwitchEvents & ReactBaseType>;
29
+ export declare const PieSwitch: React_2.ForwardRefExoticComponent<React_2.PropsWithoutRef<SwitchProps> & React_2.RefAttributes<PieSwitch_2> & PieSwitchEvents & ReactBaseType>;
30
30
 
31
31
  /**
32
32
  * @tagname pie-switch
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.0.4",
4
+ "version": "2.0.5",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/justeattakeaway/pie",
@@ -39,14 +39,14 @@
39
39
  "license": "Apache-2.0",
40
40
  "devDependencies": {
41
41
  "@custom-elements-manifest/analyzer": "0.9.0",
42
- "@justeattakeaway/pie-components-config": "0.20.1",
43
- "@justeattakeaway/pie-css": "0.17.0",
44
- "@justeattakeaway/pie-monorepo-utils": "0.5.1",
42
+ "@justeattakeaway/pie-components-config": "0.21.0",
43
+ "@justeattakeaway/pie-css": "0.18.0",
44
+ "@justeattakeaway/pie-monorepo-utils": "0.6.0",
45
45
  "@justeattakeaway/pie-wrapper-react": "0.14.3",
46
46
  "cem-plugin-module-file-extensions": "0.0.5"
47
47
  },
48
48
  "dependencies": {
49
- "@justeattakeaway/pie-icons-webc": "1.13.0",
49
+ "@justeattakeaway/pie-icons-webc": "1.14.0",
50
50
  "@justeattakeaway/pie-webc-core": "1.0.0",
51
51
  "element-internals-polyfill": "1.3.11"
52
52
  },