@justeattakeaway/pie-tag 0.2.0 → 0.3.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.
@@ -0,0 +1,149 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/defs.js",
8
+ "declarations": [
9
+ {
10
+ "kind": "variable",
11
+ "name": "variants",
12
+ "type": {
13
+ "text": "['neutral-alternative', 'neutral', 'outline', 'ghost', 'blue', 'green', 'yellow', 'red', 'brand']"
14
+ },
15
+ "default": "['neutral-alternative', 'neutral', 'outline', 'ghost', 'blue', 'green', 'yellow', 'red', 'brand']"
16
+ },
17
+ {
18
+ "kind": "variable",
19
+ "name": "sizes",
20
+ "type": {
21
+ "text": "['small', 'large']"
22
+ },
23
+ "default": "['small', 'large']"
24
+ }
25
+ ],
26
+ "exports": [
27
+ {
28
+ "kind": "js",
29
+ "name": "variants",
30
+ "declaration": {
31
+ "name": "variants",
32
+ "module": "src/defs.js"
33
+ }
34
+ },
35
+ {
36
+ "kind": "js",
37
+ "name": "sizes",
38
+ "declaration": {
39
+ "name": "sizes",
40
+ "module": "src/defs.js"
41
+ }
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "kind": "javascript-module",
47
+ "path": "src/index.js",
48
+ "declarations": [
49
+ {
50
+ "kind": "class",
51
+ "description": "",
52
+ "name": "PieTag",
53
+ "slots": [
54
+ {
55
+ "description": "The icon slot",
56
+ "name": "icon"
57
+ },
58
+ {
59
+ "description": "Default slot",
60
+ "name": ""
61
+ }
62
+ ],
63
+ "members": [
64
+ {
65
+ "kind": "field",
66
+ "name": "variant",
67
+ "type": {
68
+ "text": "TagProps['variant']"
69
+ },
70
+ "privacy": "public",
71
+ "default": "'neutral'",
72
+ "attribute": "variant"
73
+ },
74
+ {
75
+ "kind": "field",
76
+ "name": "size",
77
+ "type": {
78
+ "text": "TagProps['size']"
79
+ },
80
+ "privacy": "public",
81
+ "default": "'large'",
82
+ "attribute": "size"
83
+ },
84
+ {
85
+ "kind": "field",
86
+ "name": "isStrong",
87
+ "type": {
88
+ "text": "boolean"
89
+ },
90
+ "privacy": "public",
91
+ "default": "false",
92
+ "attribute": "isStrong"
93
+ }
94
+ ],
95
+ "attributes": [
96
+ {
97
+ "name": "variant",
98
+ "type": {
99
+ "text": "TagProps['variant']"
100
+ },
101
+ "default": "'neutral'",
102
+ "fieldName": "variant"
103
+ },
104
+ {
105
+ "name": "size",
106
+ "type": {
107
+ "text": "TagProps['size']"
108
+ },
109
+ "default": "'large'",
110
+ "fieldName": "size"
111
+ },
112
+ {
113
+ "name": "isStrong",
114
+ "type": {
115
+ "text": "boolean"
116
+ },
117
+ "default": "false",
118
+ "fieldName": "isStrong"
119
+ }
120
+ ],
121
+ "superclass": {
122
+ "name": "LitElement",
123
+ "package": "lit"
124
+ },
125
+ "tagName": "pie-tag",
126
+ "customElement": true
127
+ }
128
+ ],
129
+ "exports": [
130
+ {
131
+ "kind": "js",
132
+ "name": "*",
133
+ "declaration": {
134
+ "name": "*",
135
+ "package": "./defs"
136
+ }
137
+ },
138
+ {
139
+ "kind": "js",
140
+ "name": "PieTag",
141
+ "declaration": {
142
+ "name": "PieTag",
143
+ "module": "src/index.js"
144
+ }
145
+ }
146
+ ]
147
+ }
148
+ ]
149
+ }
package/dist/index.d.ts CHANGED
File without changes
package/dist/index.js CHANGED
File without changes
package/dist/react.d.ts CHANGED
File without changes
package/dist/react.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,18 +1,21 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-tag",
3
3
  "description": "PIE Design System Tag built using Web Components",
4
- "version": "0.2.0",
4
+ "version": "0.3.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": "yarn build:wrapper pie-tag && run -T vite 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
- "@justeattakeaway/pie-components-config": "0.7.0"
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.15.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 { PieTag as PieTagReact } from './index';
5
+
6
+ export * from './defs';
7
+
8
+ export const PieTag = createComponent({
9
+ displayName: 'PieTag',
10
+ elementClass: PieTagReact,
11
+ react: React,
12
+ tagName: 'pie-tag',
13
+ events: {},
14
+ });