@progressive-development/pd-contact 0.0.5 → 0.0.6

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
@@ -3,7 +3,7 @@
3
3
  "description": "Progressive Development Contact component",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "PD Progressive Development",
6
- "version": "0.0.5",
6
+ "version": "0.0.6",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "lit": "^2.0.2",
21
- "@progressive-development/pd-forms": "0.0.16"
21
+ "@progressive-development/pd-forms": "0.0.17"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@custom-elements-manifest/analyzer": "^0.4.17",
@@ -2,7 +2,7 @@ import { html } from 'lit';
2
2
  import '../pd-contact.js';
3
3
 
4
4
  export default {
5
- title: 'PdContact',
5
+ title: 'PdContact/Contact',
6
6
  component: 'pd-contact',
7
7
  argTypes: {
8
8
 
@@ -13,21 +13,29 @@ function Template() {
13
13
  return html`
14
14
  <h3>Edit Contact</h3>
15
15
  <pd-contact></pd-contact>
16
-
17
- <h3>View Contact</h3>
18
- <pd-contact summary .contact="${{firstName: 'Peter',
19
- lastName: 'Musterman',
20
- street: 'Musterstrasse',
21
- streetNr: '23b',
22
- zip: '9040',
23
- city: 'Gent',
24
- phone: '0221/9923443',
25
- mobil: '0175/9923443',
26
- email: 'peter@muster.be'
27
- }}"></pd-contact>
28
16
  `;
29
17
  }
30
18
 
31
- export const Contact = Template.bind({});
32
- Contact.args = {
19
+ function TemplateView() {
20
+ return html`
21
+ <h3>View Contact</h3>
22
+ <pd-contact summary .contact="${{
23
+ firstName: 'Peter',
24
+ lastName: 'Musterman',
25
+ street: 'Musterstrasse',
26
+ streetNr: '23b',
27
+ zip: '9040',
28
+ city: 'Gent',
29
+ phone: '0221/9923443',
30
+ mobil: '0175/9923443',
31
+ email: 'peter@muster.be'
32
+ }}"></pd-contact>`;
33
+ }
34
+
35
+ export const ContactForm = Template.bind({});
36
+ ContactForm.args = {
37
+ };
38
+
39
+ export const ContactView = TemplateView.bind({});
40
+ ContactView.args = {
33
41
  };