@italia/modal 1.0.0-alpha.9 → 1.0.0-beta.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.
@@ -4,6 +4,11 @@ export declare const MODAL_VARIANTS: readonly ["alert", "popconfirm", "link-list
4
4
  export type ModalSize = (typeof MODAL_SIZES)[number] | '';
5
5
  export type ModalPosition = (typeof MODAL_POSITIONS)[number];
6
6
  export type ModalVariant = (typeof MODAL_VARIANTS)[number];
7
+ /**
8
+ * Detail degli eventi `it-modal-open` / `it-modal-close`.
9
+ * Entrambi gli eventi sono cancelable: `event.preventDefault()` impedisce
10
+ * rispettivamente l'apertura e la chiusura della modale.
11
+ */
7
12
  export interface ModalEventDetail {
8
13
  /** Riferimento all'elemento modale */
9
14
  modal: HTMLElement;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,6BAA8B,CAAC;AACvD,eAAO,MAAM,eAAe,sCAAuC,CAAC;AACpE,eAAO,MAAM,cAAc,+CAAgD,CAAC;AAE5E,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;AAC1D,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAC7D,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,MAAM,WAAW,gBAAgB;IAC/B,sCAAsC;IACtC,KAAK,EAAE,WAAW,CAAC;CACpB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,6BAA8B,CAAC;AACvD,eAAO,MAAM,eAAe,sCAAuC,CAAC;AACpE,eAAO,MAAM,cAAc,+CAAgD,CAAC;AAE5E,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;AAC1D,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAC7D,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,sCAAsC;IACtC,KAAK,EAAE,WAAW,CAAC;CACpB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@italia/modal",
3
3
  "description": "Web component it-modal del Design system .italia",
4
- "version": "1.0.0-alpha.9",
4
+ "version": "1.0.0-beta.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -34,9 +34,9 @@
34
34
  "custom-elements.json"
35
35
  ],
36
36
  "dependencies": {
37
- "bootstrap-italia": "3.0.0-alpha.9",
37
+ "bootstrap-italia": "3.0.0-beta.1",
38
38
  "lit": "^3.3.0",
39
- "@italia/globals": "^1.0.0-alpha.9"
39
+ "@italia/globals": "^1.0.0-beta.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@custom-elements-manifest/analyzer": "^0.10.3",
@@ -51,14 +51,14 @@
51
51
  "sass": "^1.89.0",
52
52
  "tslib": "^2.6.3",
53
53
  "typescript": "^5.5.3",
54
- "@italia/test-config": "^0.0.0",
55
- "@italia/button": "^1.0.0-alpha.9",
56
- "@italia/icon": "^1.0.0-alpha.9",
57
- "@italia/typescript-config": "^0.0.0"
54
+ "@italia/test-config": "^1.0.0-beta.0",
55
+ "@italia/button": "^1.0.0-beta.0",
56
+ "@italia/icon": "^1.0.0-beta.0",
57
+ "@italia/typescript-config": "^1.0.0-beta.0"
58
58
  },
59
59
  "peerDependencies": {
60
- "@italia/button": "^1.0.0-alpha.9",
61
- "@italia/icon": "^1.0.0-alpha.9"
60
+ "@italia/button": "^1.0.0-beta.0",
61
+ "@italia/icon": "^1.0.0-beta.0"
62
62
  },
63
63
  "customElements": "custom-elements.json",
64
64
  "scripts": {
@@ -1,8 +1,8 @@
1
1
  // Global styles that need to be imported at page level
2
2
  // These styles affect elements outside the shadow DOM
3
3
 
4
- @import 'bootstrap-italia/src/scss/base/functions';
5
- @import 'bootstrap-italia/src/scss/base/variables';
4
+ @use 'bootstrap-italia/src/scss/base/functions' as *;
5
+ @use 'bootstrap-italia/src/scss/base/variables' as *;
6
6
 
7
7
  // Body scroll lock when modal is open
8
8
  body.modal-open {