@progressive-development/pd-dialog 0.0.8 → 0.0.10

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 dialog components.",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "PD Progressive Development",
6
- "version": "0.0.8",
6
+ "version": "0.0.10",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
@@ -18,9 +18,9 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "lit": "^2.0.2",
21
- "@progressive-development/pd-price": "0.0.3",
22
- "@progressive-development/pd-forms": "0.0.14",
23
- "@progressive-development/pd-icon": "0.0.4"
21
+ "@progressive-development/pd-price": "0.0.4",
22
+ "@progressive-development/pd-forms": "0.0.16",
23
+ "@progressive-development/pd-icon": "0.0.7"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@custom-elements-manifest/analyzer": "^0.4.17",
@@ -71,14 +71,14 @@ export class PdSubmitDialog extends LitElement {
71
71
 
72
72
  .success-icon {
73
73
  padding-top: 5px;
74
- --squi-icon-size: 2rem;
75
- --squi-icon-fill-active: green;
74
+ --pd-icon-size: 2rem;
75
+ --pd-icon-fill-active: green;
76
76
  }
77
77
 
78
78
  .error-icon {
79
79
  padding-top: 5px;
80
- --squi-icon-size: 2rem;
81
- --squi-icon-fill: darkred;
80
+ --pd-icon-size: 2rem;
81
+ --pd-icon-fill: darkred;
82
82
  }
83
83
 
84
84
  @keyframes spin {
@@ -184,11 +184,11 @@ export class PdSubmitDialog extends LitElement {
184
184
  break;
185
185
  case STATUS_SEND_SUCCESS:
186
186
  value = html` <div class="first-row-tmp">
187
- <squi-icon
187
+ <pd-icon
188
188
  class="success-icon"
189
189
  icon="checkBox"
190
190
  activeIcon
191
- ></squi-icon>
191
+ ></pd-icon>
192
192
  </div>
193
193
  <span
194
194
  >${this.type === 'mail'
@@ -198,7 +198,7 @@ export class PdSubmitDialog extends LitElement {
198
198
  break;
199
199
  case STATUS_SEND_FAILED:
200
200
  value = html` <div class="first-row-tmp">
201
- <squi-icon class="error-icon" icon="checkBox"></squi-icon>
201
+ <pd-icon class="error-icon" icon="checkBox"></pd-icon>
202
202
  </div>
203
203
  <span
204
204
  >${this.type === 'mail'
@@ -1,44 +1,16 @@
1
1
  import { html } from 'lit';
2
- import '../pd-dialog.js';
3
2
 
4
3
  export default {
5
4
  title: 'PdDialog',
6
5
  component: 'pd-dialog',
7
- argTypes: {
8
- title: { control: 'text' },
9
- counter: { control: 'number' },
10
- textColor: { control: 'color' },
6
+ argTypes: {
11
7
  },
12
8
  };
13
9
 
14
- function Template({ title = 'Hello world', counter = 5, textColor, slot }) {
10
+ function Template() {
15
11
  return html`
16
- <pd-dialog
17
- style="--pd-dialog-text-color: ${textColor || 'black'}"
18
- .title=${title}
19
- .counter=${counter}
20
- >
21
- ${slot}
22
- </pd-dialog>
12
+ <p>ToDo: Summary</p>
23
13
  `;
24
14
  }
25
15
 
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 } },
44
- };
16
+ export const Examples = Template.bind({});
@@ -0,0 +1,26 @@
1
+ import { html } from 'lit';
2
+ import '../pd-popup-dialog.js';
3
+
4
+ export default {
5
+ title: 'PdDialog/Popup Dialog',
6
+ component: 'pd-popup-dialog',
7
+ argTypes: {},
8
+ };
9
+
10
+ function PopupTemplate() {
11
+ return html`
12
+ <h1>Dialog Test</h1>
13
+ <button>Ok</button>
14
+ <pd-popup-dialog title="Title Information">
15
+ <div slot="content">
16
+ <p>
17
+ Tank you for your order. And another prima text here. Maybe more than
18
+ one line.
19
+ </p>
20
+ </div>
21
+ </pd-popup-dialog>
22
+ `;
23
+ }
24
+
25
+ export const PopupDialog = PopupTemplate.bind({});
26
+ PopupDialog.args = {};
@@ -0,0 +1,23 @@
1
+ import { html } from 'lit';
2
+ import '../pd-popup.js';
3
+
4
+ export default {
5
+ title: 'PdDialog/Popup',
6
+ component: 'pd-popup',
7
+ argTypes: {},
8
+ };
9
+
10
+ function PopupTemplate() {
11
+ return html`
12
+ <pd-popup>
13
+ <div slot="small-view">Open Popup</div>
14
+ <div slot="content">
15
+ <h2>Test PopUp Content</h2>
16
+ <p>Hier steht dann etwas....</p>
17
+ </div>
18
+ </pd-popup>
19
+ `;
20
+ }
21
+
22
+ export const Popup = PopupTemplate.bind({});
23
+ Popup.args = {};
@@ -0,0 +1,45 @@
1
+ import { html } from 'lit';
2
+ import {
3
+ STATUS_SEND,
4
+ STATUS_SEND_FAILED,
5
+ STATUS_SEND_SUCCESS,
6
+ } from '../pd-submit-dialog.js';
7
+
8
+ export default {
9
+ title: 'PdDialog/Submit Dialog',
10
+ component: 'pd-submit-dialog',
11
+ argTypes: {},
12
+ };
13
+
14
+ function PopupTemplate({ status, statusMsg }) {
15
+ return html`
16
+ <h1>Dialog Test</h1>
17
+
18
+ <pd-submit-dialog
19
+ title="Service informatie"
20
+ status="${status}"
21
+ confirmMail="myemail@web.de"
22
+ statusMsg="${statusMsg}"
23
+ >
24
+ </pd-submit-dialog>
25
+ `;
26
+ }
27
+
28
+ export const SubmitDialogSend = PopupTemplate.bind({});
29
+ SubmitDialogSend.args = {
30
+ status: STATUS_SEND,
31
+ statusMsg: '',
32
+ };
33
+
34
+ export const SubmitDialogSuccess = PopupTemplate.bind({});
35
+ SubmitDialogSuccess.args = {
36
+ status: STATUS_SEND_SUCCESS,
37
+ statusMsg: '',
38
+ };
39
+
40
+ export const SubmitDialogFailed = PopupTemplate.bind({});
41
+ SubmitDialogFailed.args = {
42
+ status: STATUS_SEND_FAILED,
43
+ statusMsg:
44
+ 'Sorry, there was a technical failure during order post. The order was not submitted, please try again later or contact us directly.',
45
+ };