@italia/chip 1.0.0-alpha.9 → 1.0.0-beta.1
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/README.md +6 -70
- package/custom-elements.json +103 -2
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +0 -0
- package/dist/src/index.js.map +0 -0
- package/dist/src/it-chip.d.ts +21 -0
- package/dist/src/it-chip.d.ts.map +1 -1
- package/dist/src/it-chip.js +280 -22
- package/dist/src/it-chip.js.map +1 -1
- package/dist/src/types.d.ts +9 -0
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +29 -29
- package/styles/globals.scss +3 -1
package/dist/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,mEAAoE,CAAC;AAC/F,eAAO,MAAM,UAAU,uBAAwB,CAAC;AAEhD,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AACzD,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AACnD,MAAM,MAAM,SAAS,GAAG;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,mEAAoE,CAAC;AAC/F,eAAO,MAAM,UAAU,uBAAwB,CAAC;AAEhD,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AACzD,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AACnD;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,oCAAoC;IACpC,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@italia/chip",
|
|
3
3
|
"description": "Web component it-chip del Design system .italia",
|
|
4
|
-
"version": "1.0.0-
|
|
4
|
+
"version": "1.0.0-beta.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -33,44 +33,44 @@
|
|
|
33
33
|
"LICENSE",
|
|
34
34
|
"custom-elements.json"
|
|
35
35
|
],
|
|
36
|
+
"scripts": {
|
|
37
|
+
"analyze": "cem analyze --litelement --exclude dist",
|
|
38
|
+
"build": "rollup --config rollup.config.js",
|
|
39
|
+
"clean": "rimraf node_modules .turbo .rollup.cache dist coverage",
|
|
40
|
+
"prepublish": "pnpm build",
|
|
41
|
+
"lint": "eslint --ext .ts \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\" && stylelint \"styles/**/*.scss\" \"src/**/*.scss\" && prettier \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\" --check",
|
|
42
|
+
"format": "eslint --fix --ext .ts \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\" && stylelint --fix \"styles/**/*.scss\" \"src/**/*.scss\" && prettier --write \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\"",
|
|
43
|
+
"test": "wtr --coverage --node-resolve --config web-test-runner.config.js",
|
|
44
|
+
"test:watch": "wtr --coverage --node-resolve --config web-test-runner.config.js --watch"
|
|
45
|
+
},
|
|
36
46
|
"dependencies": {
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
47
|
+
"@italia/globals": "workspace:^",
|
|
48
|
+
"bootstrap-italia": "catalog:",
|
|
49
|
+
"lit": "catalog:"
|
|
40
50
|
},
|
|
41
51
|
"devDependencies": {
|
|
42
52
|
"@custom-elements-manifest/analyzer": "^0.10.3",
|
|
43
|
-
"@
|
|
53
|
+
"@italia/avatar": "workspace:^",
|
|
54
|
+
"@italia/button": "workspace:^",
|
|
55
|
+
"@italia/icon": "workspace:^",
|
|
56
|
+
"@italia/test-config": "workspace:^",
|
|
57
|
+
"@italia/typescript-config": "workspace:^",
|
|
58
|
+
"@open-wc/testing": "catalog:",
|
|
44
59
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
45
60
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
46
|
-
"@types/mocha": "
|
|
47
|
-
"@web/test-runner": "
|
|
61
|
+
"@types/mocha": "catalog:",
|
|
62
|
+
"@web/test-runner": "catalog:",
|
|
48
63
|
"rimraf": "^6.0.1",
|
|
49
64
|
"rollup": "^4.42.0",
|
|
50
65
|
"rollup-plugin-scss-lit": "^2.1.0",
|
|
51
|
-
"sass": "
|
|
66
|
+
"sass": "catalog:",
|
|
52
67
|
"tslib": "^2.6.3",
|
|
53
|
-
"typescript": "
|
|
54
|
-
"@italia/avatar": "^1.0.0-alpha.9",
|
|
55
|
-
"@italia/button": "^1.0.0-alpha.9",
|
|
56
|
-
"@italia/icon": "^1.0.0-alpha.9",
|
|
57
|
-
"@italia/test-config": "^0.0.0",
|
|
58
|
-
"@italia/typescript-config": "^0.0.0"
|
|
68
|
+
"typescript": "catalog:"
|
|
59
69
|
},
|
|
60
70
|
"peerDependencies": {
|
|
61
|
-
"@italia/avatar": "
|
|
62
|
-
"@italia/button": "
|
|
63
|
-
"@italia/icon": "
|
|
71
|
+
"@italia/avatar": "workspace:^",
|
|
72
|
+
"@italia/button": "workspace:^",
|
|
73
|
+
"@italia/icon": "workspace:^"
|
|
64
74
|
},
|
|
65
|
-
"customElements": "custom-elements.json"
|
|
66
|
-
|
|
67
|
-
"analyze": "cem analyze --litelement --exclude dist",
|
|
68
|
-
"build": "rollup --config rollup.config.js",
|
|
69
|
-
"clean": "rimraf node_modules .turbo .rollup.cache dist coverage",
|
|
70
|
-
"prepublish": "pnpm build",
|
|
71
|
-
"lint": "eslint --ext .ts \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\" && stylelint \"styles/**/*.scss\" \"src/**/*.scss\" && prettier \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\" --check",
|
|
72
|
-
"format": "eslint --fix --ext .ts \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\" && stylelint --fix \"styles/**/*.scss\" \"src/**/*.scss\" && prettier --write \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\"",
|
|
73
|
-
"test": "wtr --coverage --node-resolve --config web-test-runner.config.js",
|
|
74
|
-
"test:watch": "wtr --coverage --node-resolve --config web-test-runner.config.js --watch"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
75
|
+
"customElements": "custom-elements.json"
|
|
76
|
+
}
|
package/styles/globals.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'bootstrap-italia/src/scss/base/config' as *;
|
|
2
|
+
|
|
1
3
|
it-chip {
|
|
2
4
|
display: inline-flex;
|
|
3
5
|
align-items: center;
|
|
@@ -44,7 +46,7 @@ it-chip:not(:defined) {
|
|
|
44
46
|
order: 1;
|
|
45
47
|
font-size: var(--it-chip-fouc-font-size);
|
|
46
48
|
font-weight: var(--it-font-weight-semibold);
|
|
47
|
-
line-height: var(
|
|
49
|
+
line-height: var(--#{$prefix}font-leading-5);
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
it-button,
|