@progressive-development/pd-contact 0.0.3 → 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
@@ -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.3",
6
+ "version": "0.0.5",
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.14"
21
+ "@progressive-development/pd-forms": "0.0.16"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@custom-elements-manifest/analyzer": "^0.4.17",
@@ -5,40 +5,29 @@ export default {
5
5
  title: 'PdContact',
6
6
  component: 'pd-contact',
7
7
  argTypes: {
8
- title: { control: 'text' },
9
- counter: { control: 'number' },
10
- textColor: { control: 'color' },
8
+
11
9
  },
12
10
  };
13
11
 
14
- function Template({ title = 'Hello world', counter = 5, textColor, slot }) {
12
+ function Template() {
15
13
  return html`
16
- <pd-contact
17
- style="--pd-contact-text-color: ${textColor || 'black'}"
18
- .title=${title}
19
- .counter=${counter}
20
- >
21
- ${slot}
22
- </pd-contact>
14
+ <h3>Edit Contact</h3>
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>
23
28
  `;
24
29
  }
25
30
 
26
- export const Regular = Template.bind({});
27
-
28
- export const CustomTitle = Template.bind({});
29
- CustomTitle.args = {
30
- title: 'My title',
31
- };
32
-
33
- export const CustomCounter = Template.bind({});
34
- CustomCounter.args = {
35
- counter: 123456,
36
- };
37
-
38
- export const SlottedContent = Template.bind({});
39
- SlottedContent.args = {
40
- slot: html`<p>Slotted content</p>`,
41
- };
42
- SlottedContent.argTypes = {
43
- slot: { table: { disable: true } },
31
+ export const Contact = Template.bind({});
32
+ Contact.args = {
44
33
  };