@justeattakeaway/pie-form-label 0.8.5 → 0.9.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/custom-elements.json +116 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +0 -0
- package/dist/react.d.ts +2 -3
- package/dist/react.js +0 -0
- package/package.json +11 -4
- package/src/react.ts +14 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "src/defs.js",
|
|
8
|
+
"declarations": [],
|
|
9
|
+
"exports": []
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"kind": "javascript-module",
|
|
13
|
+
"path": "src/index.js",
|
|
14
|
+
"declarations": [
|
|
15
|
+
{
|
|
16
|
+
"kind": "class",
|
|
17
|
+
"description": "",
|
|
18
|
+
"name": "PieFormLabel",
|
|
19
|
+
"members": [
|
|
20
|
+
{
|
|
21
|
+
"kind": "field",
|
|
22
|
+
"name": "for",
|
|
23
|
+
"type": {
|
|
24
|
+
"text": "string | undefined"
|
|
25
|
+
},
|
|
26
|
+
"privacy": "public",
|
|
27
|
+
"attribute": "for",
|
|
28
|
+
"reflects": true
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"kind": "field",
|
|
32
|
+
"name": "optional",
|
|
33
|
+
"type": {
|
|
34
|
+
"text": "string | undefined"
|
|
35
|
+
},
|
|
36
|
+
"privacy": "public",
|
|
37
|
+
"attribute": "optional"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"kind": "field",
|
|
41
|
+
"name": "trailing",
|
|
42
|
+
"type": {
|
|
43
|
+
"text": "string | undefined"
|
|
44
|
+
},
|
|
45
|
+
"privacy": "public",
|
|
46
|
+
"attribute": "trailing"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"kind": "method",
|
|
50
|
+
"name": "_renderOptionalLabel",
|
|
51
|
+
"privacy": "private",
|
|
52
|
+
"return": {
|
|
53
|
+
"type": {
|
|
54
|
+
"text": "TemplateResult | typeof nothing"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"attributes": [
|
|
60
|
+
{
|
|
61
|
+
"name": "for",
|
|
62
|
+
"type": {
|
|
63
|
+
"text": "string | undefined"
|
|
64
|
+
},
|
|
65
|
+
"fieldName": "for"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "optional",
|
|
69
|
+
"type": {
|
|
70
|
+
"text": "string | undefined"
|
|
71
|
+
},
|
|
72
|
+
"fieldName": "optional"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "trailing",
|
|
76
|
+
"type": {
|
|
77
|
+
"text": "string | undefined"
|
|
78
|
+
},
|
|
79
|
+
"fieldName": "trailing"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"mixins": [
|
|
83
|
+
{
|
|
84
|
+
"name": "RtlMixin",
|
|
85
|
+
"package": "@justeattakeaway/pie-webc-core"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"superclass": {
|
|
89
|
+
"name": "LitElement",
|
|
90
|
+
"package": "lit"
|
|
91
|
+
},
|
|
92
|
+
"tagName": "pie-form-label",
|
|
93
|
+
"customElement": true
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"exports": [
|
|
97
|
+
{
|
|
98
|
+
"kind": "js",
|
|
99
|
+
"name": "*",
|
|
100
|
+
"declaration": {
|
|
101
|
+
"name": "*",
|
|
102
|
+
"package": "./defs"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"kind": "js",
|
|
107
|
+
"name": "PieFormLabel",
|
|
108
|
+
"declaration": {
|
|
109
|
+
"name": "PieFormLabel",
|
|
110
|
+
"module": "src/index.js"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CSSResult } from 'lit';
|
|
2
2
|
import type { GenericConstructor } from '@justeattakeaway/pie-webc-core';
|
|
3
3
|
import type { LitElement } from 'lit';
|
|
4
|
+
import type { RTLInterface } from '@justeattakeaway/pie-webc-core';
|
|
4
5
|
import type { TemplateResult } from 'lit';
|
|
5
6
|
|
|
6
7
|
export declare interface FormLabelProps {
|
|
@@ -30,8 +31,6 @@ export declare class PieFormLabel extends PieFormLabel_base implements FormLabel
|
|
|
30
31
|
static styles: CSSResult;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
declare const PieFormLabel_base: GenericConstructor<
|
|
34
|
-
isRTL: boolean;
|
|
35
|
-
}> & typeof LitElement;
|
|
34
|
+
declare const PieFormLabel_base: GenericConstructor<RTLInterface> & typeof LitElement;
|
|
36
35
|
|
|
37
36
|
export { }
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/react.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { CSSResult } from 'lit';
|
|
|
2
2
|
import type { GenericConstructor } from '@justeattakeaway/pie-webc-core';
|
|
3
3
|
import type { LitElement } from 'lit';
|
|
4
4
|
import type { ReactWebComponent } from '@lit/react';
|
|
5
|
+
import type { RTLInterface } from '@justeattakeaway/pie-webc-core';
|
|
5
6
|
import type { TemplateResult } from 'lit';
|
|
6
7
|
|
|
7
8
|
export declare interface FormLabelProps {
|
|
@@ -33,8 +34,6 @@ declare class PieFormLabel_2 extends PieFormLabel_base implements FormLabelProps
|
|
|
33
34
|
static styles: CSSResult;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
declare const PieFormLabel_base: GenericConstructor<
|
|
37
|
-
isRTL: boolean;
|
|
38
|
-
}> & typeof LitElement;
|
|
37
|
+
declare const PieFormLabel_base: GenericConstructor<RTLInterface> & typeof LitElement;
|
|
39
38
|
|
|
40
39
|
export { }
|
package/dist/react.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-form-label",
|
|
3
3
|
"description": "PIE Design System Form Label built using Web Components",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.9.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"files": [
|
|
10
|
+
"custom-elements.json",
|
|
10
11
|
"src",
|
|
11
12
|
"dist",
|
|
12
13
|
"**/*.d.ts"
|
|
13
14
|
],
|
|
14
15
|
"scripts": {
|
|
15
|
-
"build": "
|
|
16
|
+
"build": "run -T vite build",
|
|
17
|
+
"build:react-wrapper": "npx build-react-wrapper",
|
|
18
|
+
"create:manifest": "yarn cem analyze --litelement",
|
|
16
19
|
"lint:scripts": "run -T eslint .",
|
|
17
20
|
"lint:scripts:fix": "yarn lint:scripts --fix",
|
|
18
21
|
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
|
|
@@ -28,14 +31,18 @@
|
|
|
28
31
|
"author": "Just Eat Takeaway.com - Design System Team",
|
|
29
32
|
"license": "Apache-2.0",
|
|
30
33
|
"devDependencies": {
|
|
31
|
-
"@
|
|
34
|
+
"@custom-elements-manifest/analyzer": "0.9.0",
|
|
35
|
+
"@justeattakeaway/pie-components-config": "0.8.0",
|
|
36
|
+
"@justeattakeaway/pie-wrapper-react": "0.12.0",
|
|
37
|
+
"cem-plugin-module-file-extensions": "0.0.5"
|
|
32
38
|
},
|
|
33
39
|
"dependencies": {
|
|
34
|
-
"@justeattakeaway/pie-webc-core": "0.
|
|
40
|
+
"@justeattakeaway/pie-webc-core": "0.16.0"
|
|
35
41
|
},
|
|
36
42
|
"volta": {
|
|
37
43
|
"extends": "../../../package.json"
|
|
38
44
|
},
|
|
45
|
+
"customElements": "custom-elements.json",
|
|
39
46
|
"sideEffects": [
|
|
40
47
|
"dist/*.js"
|
|
41
48
|
]
|
package/src/react.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { createComponent } from '@lit/react';
|
|
4
|
+
import { PieFormLabel as PieFormLabelReact } from './index';
|
|
5
|
+
|
|
6
|
+
export * from './defs';
|
|
7
|
+
|
|
8
|
+
export const PieFormLabel = createComponent({
|
|
9
|
+
displayName: 'PieFormLabel',
|
|
10
|
+
elementClass: PieFormLabelReact,
|
|
11
|
+
react: React,
|
|
12
|
+
tagName: 'pie-form-label',
|
|
13
|
+
events: {},
|
|
14
|
+
});
|