@travelopia/web-components 0.0.4 → 0.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travelopia/web-components",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Accessible web components for the modern web",
5
5
  "scripts": {
6
6
  "build": "webpack --config ./webpack.config.js --mode production --env=production",
@@ -34,5 +34,6 @@
34
34
  "exports": {
35
35
  "./*": "./dist/*",
36
36
  "./package.json": "./package.json"
37
- }
37
+ },
38
+ "types": "src/definitions.d.ts"
38
39
  }
@@ -0,0 +1,8 @@
1
+ interface TPModalElement extends HTMLElement {
2
+ open: Function;
3
+ close: Function;
4
+ }
5
+
6
+ interface TPModalCloseElement extends HTMLElement {
7
+ closeModal: Function;
8
+ }
@@ -1,4 +0,0 @@
1
- /**
2
- * Styles.
3
- */
4
- import './style.scss';
@@ -1,13 +0,0 @@
1
- /**
2
- * TP Modal Close.
3
- */
4
- export declare class TPModalCloseElement extends HTMLElement {
5
- /**
6
- * Connected callback.
7
- */
8
- connectedCallback(): void;
9
- /**
10
- * Close the modal.
11
- */
12
- closeModal(): void;
13
- }
@@ -1,27 +0,0 @@
1
- /**
2
- * TP Modal.
3
- */
4
- export declare class TPModalElement extends HTMLElement {
5
- /**
6
- * Constructor.
7
- */
8
- constructor();
9
- /**
10
- * Connected callback.
11
- */
12
- connectedCallback(): void;
13
- /**
14
- * Open the modal.
15
- */
16
- open(): void;
17
- /**
18
- * Close the modal.
19
- */
20
- close(): void;
21
- /**
22
- * Handle when the component is clicked.
23
- *
24
- * @param {Event} e Event.
25
- */
26
- handleClick(e: Event): void;
27
- }