@gravitee/ui-components 3.28.5-add-webtypes-bf04202 → 3.28.5-add-webtypes-71e5a9a

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,108 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/v2-preview/web-types.json",
3
+ "name": "@gravitee/ui-components",
4
+ "version": "1.0.0",
5
+ "js-types-syntax": "typescript",
6
+ "description-markup": "markdown",
7
+ "default-icon": "./assets/images/gravitee-g-logo-dark-blue.svg",
8
+ "contributions": {
9
+ "html": {
10
+ "elements": [
11
+ {
12
+ "name": "gv-icon",
13
+ "description": "A simple icon component",
14
+ "source": {
15
+ "file": "./src/atoms/gv-icon/gv-icons.js",
16
+ "offset": 0
17
+ },
18
+ "priority": "highest",
19
+ "css": {
20
+ "classes": [
21
+ {
22
+ "name": "large",
23
+ "description": "Set the icon to 64x64px"
24
+ }
25
+ ],
26
+ "properties": [
27
+ {
28
+ "name": "--gv-icon--c",
29
+ "description": "Color"
30
+ },
31
+ {
32
+ "name": "--gv-icon-opacity--c",
33
+ "description": "Opacity (between 0 and 1)"
34
+ }
35
+ ]
36
+ },
37
+ "attributes": [
38
+ {
39
+ "name": "shape",
40
+ "description": "A concatenation of category name and icon name: `{category}:{iconName}`",
41
+ "value": {
42
+ "type": "enum"
43
+ },
44
+ "values": {
45
+ "name": "Shape values",
46
+ "pattern": {
47
+ "template": [
48
+ {
49
+ "items": "/html/shape-categories"
50
+ },
51
+ ":",
52
+ {
53
+ "items": "/html/shape-iconNames"
54
+ }
55
+ ]
56
+ }
57
+ },
58
+ "required": true
59
+ }
60
+ ]
61
+ },
62
+ {
63
+ "name": "gv-button",
64
+ "description": "A custom button component.",
65
+ "priority": "normal",
66
+ "attributes": [
67
+ {
68
+ "name": "type",
69
+ "description": "The type of the button",
70
+ "value": {
71
+ "kind": "expression",
72
+ "type": "string"
73
+ },
74
+ "default": "primary"
75
+ },
76
+ {
77
+ "name": "size",
78
+ "value": {
79
+ "kind": "expression",
80
+ "type": "enum"
81
+ },
82
+ "default": "medium"
83
+ }
84
+ ]
85
+ }
86
+ ],
87
+ "shape-categories": [
88
+ {
89
+ "name": "action"
90
+ },
91
+ {
92
+ "name": "alert"
93
+ }
94
+ ],
95
+ "shape-iconNames": [
96
+ {
97
+ "name": "3d_rotation"
98
+ },
99
+ {
100
+ "name": "accessibility"
101
+ },
102
+ {
103
+ "name": "alarm"
104
+ }
105
+ ]
106
+ }
107
+ }
108
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/ui-components",
3
- "version": "3.28.5-add-webtypes-bf04202",
3
+ "version": "3.28.5-add-webtypes-71e5a9a",
4
4
  "description": "Gravitee.io UI Components library, based on Web Components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,7 +16,8 @@
16
16
  "assets/icons",
17
17
  "assets/images",
18
18
  "src",
19
- "wc"
19
+ "wc",
20
+ "gravitee--ui-components-web-types.json"
20
21
  ],
21
22
  "scripts": {
22
23
  "build": "yarn docs && yarn check:i18n && yarn generate:theme && yarn generate:dist && build-storybook -s assets --modern --quiet",
@@ -25,7 +26,7 @@
25
26
  "compile:watch": "tsc -w",
26
27
  "danger": "danger ci",
27
28
  "docs": "wca analyze src/** --outFile .docs/custom-elements.json && node tasks/generate-docs.js",
28
- "generate:dist": "yarn compile && cp -R assets dist/ && cp package.json dist/",
29
+ "generate:dist": "yarn compile && cp -R assets dist/ && cp package.json dist/ && cp gravitee--ui-components-web-types.json dist/",
29
30
  "generate:icons": "node tasks/generate-icons.js && yarn lint:fix",
30
31
  "generate:theme": "node tasks/generate-theme.js && yarn lint:fix",
31
32
  "lint": "eslint src testing tasks && yarn prettier",