@progressive-development/pd-contact 0.0.3 → 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 +2 -2
- package/stories/index.stories.js +24 -27
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.
|
|
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.
|
|
21
|
+
"@progressive-development/pd-forms": "0.0.17"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@custom-elements-manifest/analyzer": "^0.4.17",
|
package/stories/index.stories.js
CHANGED
|
@@ -2,43 +2,40 @@ 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
|
-
|
|
9
|
-
counter: { control: 'number' },
|
|
10
|
-
textColor: { control: 'color' },
|
|
8
|
+
|
|
11
9
|
},
|
|
12
10
|
};
|
|
13
11
|
|
|
14
|
-
function Template(
|
|
12
|
+
function Template() {
|
|
15
13
|
return html`
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
.title=${title}
|
|
19
|
-
.counter=${counter}
|
|
20
|
-
>
|
|
21
|
-
${slot}
|
|
22
|
-
</pd-contact>
|
|
14
|
+
<h3>Edit Contact</h3>
|
|
15
|
+
<pd-contact></pd-contact>
|
|
23
16
|
`;
|
|
24
17
|
}
|
|
25
18
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
+
}
|
|
32
34
|
|
|
33
|
-
export const
|
|
34
|
-
|
|
35
|
-
counter: 123456,
|
|
35
|
+
export const ContactForm = Template.bind({});
|
|
36
|
+
ContactForm.args = {
|
|
36
37
|
};
|
|
37
38
|
|
|
38
|
-
export const
|
|
39
|
-
|
|
40
|
-
slot: html`<p>Slotted content</p>`,
|
|
41
|
-
};
|
|
42
|
-
SlottedContent.argTypes = {
|
|
43
|
-
slot: { table: { disable: true } },
|
|
39
|
+
export const ContactView = TemplateView.bind({});
|
|
40
|
+
ContactView.args = {
|
|
44
41
|
};
|