@italia/carousel 1.0.0-alpha.7

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,4 @@
1
+ import type { DefaultTranslation } from '@italia/i18n';
2
+ declare const translation: DefaultTranslation;
3
+ export default translation;
4
+ //# sourceMappingURL=en.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/locales/en.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD,QAAA,MAAM,WAAW,EAAE,kBAoBlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { DefaultTranslation } from '@italia/i18n';
2
+ declare const translation: DefaultTranslation;
3
+ export default translation;
4
+ //# sourceMappingURL=it.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../src/locales/it.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD,QAAA,MAAM,WAAW,EAAE,kBAoBlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,4 @@
1
+ export type CarouselVariants = 'single' | 'columns' | 'gallery-sm' | 'gallery-lg';
2
+ /** Splide slide movement type. Mirrors Splide's own `type` option for type safety. */
3
+ export type CarouselType = 'slide' | 'loop' | 'fade';
4
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,SAAS,GAAG,YAAY,GAAG,YAAY,CAAC;AAElF,sFAAsF;AACtF,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC"}
package/package.json ADDED
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "@italia/carousel",
3
+ "description": "Web component it-carousel del Design system .italia",
4
+ "version": "1.0.0-alpha.7",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "license": "BSD-3-Clause",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/italia/dev-kit-italia.git",
12
+ "directory": "packages/carousel"
13
+ },
14
+ "author": "Presidenza del Consiglio dei Ministri",
15
+ "homepage": "https://italia.github.io/dev-kit-italia",
16
+ "bugs": {
17
+ "url": "https://github.com/italia/dev-kit-italia/issues"
18
+ },
19
+ "type": "module",
20
+ "main": "./dist/src/index.js",
21
+ "module": "./dist/src/index.js",
22
+ "types": "./dist/src/index.d.ts",
23
+ "exports": {
24
+ ".": "./dist/src/index.js",
25
+ "./it-carousel.js": "./dist/src/it-carousel.js",
26
+ "./it-carousel-slide.js": "./dist/src/it-carousel-slide.js",
27
+ "./styles/*": "./styles/*"
28
+ },
29
+ "files": [
30
+ "dist/src",
31
+ "styles",
32
+ "README.md",
33
+ "AUTHORS",
34
+ "LICENSE",
35
+ "custom-elements.json"
36
+ ],
37
+ "dependencies": {
38
+ "bootstrap-italia": "github:italia/bootstrap-italia#8c67506065fb844becbec9cc74f2d11de7101404",
39
+ "lit": "^3.3.0",
40
+ "@splidejs/splide": "^4.1.4",
41
+ "@italia/card": "^1.0.0-alpha.7",
42
+ "@italia/i18n": "^1.0.0-alpha.7",
43
+ "@italia/globals": "^1.0.0-alpha.7"
44
+ },
45
+ "devDependencies": {
46
+ "@custom-elements-manifest/analyzer": "^0.10.3",
47
+ "@open-wc/testing": "^4.0.0",
48
+ "@rollup/plugin-node-resolve": "^16.0.1",
49
+ "@rollup/plugin-typescript": "^12.1.2",
50
+ "@types/mocha": "^10.0.10",
51
+ "@web/test-runner": "^0.18.2",
52
+ "rimraf": "^6.0.1",
53
+ "rollup": "^4.42.0",
54
+ "rollup-plugin-scss-lit": "^2.1.0",
55
+ "sass": "^1.89.0",
56
+ "tslib": "^2.6.3",
57
+ "typescript": "^5.5.3",
58
+ "@italia/test-config": "^0.0.0",
59
+ "@italia/typescript-config": "^0.0.0"
60
+ },
61
+ "customElements": "custom-elements.json",
62
+ "scripts": {
63
+ "analyze": "cem analyze --litelement --exclude dist",
64
+ "build": "rollup --config rollup.config.js",
65
+ "clean": "rimraf node_modules .turbo .rollup.cache dist coverage",
66
+ "prepublish": "pnpm build",
67
+ "lint": "eslint --ext .ts \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\" && stylelint \"styles/**/*.scss\" \"src/**/*.scss\" && prettier \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\" --check",
68
+ "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\"",
69
+ "test": "wtr --coverage --node-resolve --config web-test-runner.config.js",
70
+ "test:watch": "wtr --coverage --node-resolve --config web-test-runner.config.js --watch"
71
+ }
72
+ }
@@ -0,0 +1,12 @@
1
+ /* Lo shimmer è gestito da fouc.scss tramite il mixin it-shimmer.
2
+ Qui aggiungiamo solo i comportamenti non coperti dal mixin globale. */
3
+
4
+ it-carousel:not(:defined) {
5
+ overflow: hidden;
6
+
7
+ /* nasconde tutto il contenuto slottato (card, immagini, video)
8
+ evitando il flash di contenuto prima che Splide monti */
9
+ > * {
10
+ visibility: hidden;
11
+ }
12
+ }