@progressive-development/pd-dialog 0.0.48 → 0.1.0
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 +4 -3
- package/src/PdBookDatePopup.js +7 -2
- package/src/PdPopup.js +3 -3
- package/src/PdPopupDialog.js +5 -5
- package/src/PdSubmitDialog.js +7 -6
- package/src/shared-global-styles.js +0 -56
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
|
|
6
|
+
"version": "0.1.0",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"module": "index.js",
|
|
9
9
|
"scripts": {
|
|
@@ -17,9 +17,10 @@
|
|
|
17
17
|
"storybook:build": "npm run analyze -- --exclude dist && build-storybook"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@progressive-development/pd-forms": "^0.1.
|
|
21
|
-
"@progressive-development/pd-icon": "^0.1.
|
|
20
|
+
"@progressive-development/pd-forms": "^0.1.5",
|
|
21
|
+
"@progressive-development/pd-icon": "^0.1.9",
|
|
22
22
|
"@progressive-development/pd-price": "0.0.8",
|
|
23
|
+
"@progressive-development/pd-shared-styles": "0.1.1",
|
|
23
24
|
"lit": "^2.0.2"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
package/src/PdBookDatePopup.js
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
import { LitElement, html, css } from 'lit';
|
|
7
7
|
|
|
8
8
|
import '@progressive-development/pd-price/pd-price.js';
|
|
9
|
+
|
|
10
|
+
import { PDFontStyles } from '@progressive-development/pd-shared-styles';
|
|
11
|
+
|
|
9
12
|
import '../pd-popup-dialog.js';
|
|
10
13
|
|
|
11
14
|
/**
|
|
@@ -24,14 +27,16 @@ export class PdBookDatePopup extends LitElement {
|
|
|
24
27
|
*/
|
|
25
28
|
|
|
26
29
|
static get styles() {
|
|
27
|
-
return
|
|
30
|
+
return [
|
|
31
|
+
PDFontStyles,
|
|
32
|
+
css`
|
|
28
33
|
p {
|
|
29
34
|
color: var(--pd-default-font-content-col);
|
|
30
35
|
font-size: var(--pd-default-font-content-size);
|
|
31
36
|
font-family: var(--pd-default-font-content-family);
|
|
32
37
|
max-width: 600px;
|
|
33
38
|
}
|
|
34
|
-
|
|
39
|
+
`];
|
|
35
40
|
}
|
|
36
41
|
|
|
37
42
|
static get properties() {
|
package/src/PdPopup.js
CHANGED
|
@@ -8,7 +8,7 @@ import { ICON_CLOSE as CLOSEICON } from '@progressive-development/pd-icon/src/Pd
|
|
|
8
8
|
|
|
9
9
|
import '@progressive-development/pd-icon';
|
|
10
10
|
|
|
11
|
-
import {
|
|
11
|
+
import { PDColorStyles } from '@progressive-development/pd-shared-styles';
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -21,7 +21,7 @@ import { SharedGlobalStyles } from './shared-global-styles.js';
|
|
|
21
21
|
export class PdPopup extends LitElement {
|
|
22
22
|
static get styles() {
|
|
23
23
|
return [
|
|
24
|
-
|
|
24
|
+
PDColorStyles,
|
|
25
25
|
css`
|
|
26
26
|
:host {
|
|
27
27
|
display: block;
|
|
@@ -35,7 +35,7 @@ export class PdPopup extends LitElement {
|
|
|
35
35
|
|
|
36
36
|
/* Modal Content */
|
|
37
37
|
.modal-content {
|
|
38
|
-
background-color: var(--pd-default-bg-
|
|
38
|
+
background-color: var(--pd-default-bg-col);
|
|
39
39
|
opacity: 1;
|
|
40
40
|
margin: auto;
|
|
41
41
|
padding: 20px;
|
package/src/PdPopupDialog.js
CHANGED
|
@@ -7,7 +7,7 @@ import { LitElement, html, css } from 'lit';
|
|
|
7
7
|
|
|
8
8
|
import '@progressive-development/pd-forms/pd-button.js';
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import { PDColorStyles, PDFontStyles } from '@progressive-development/pd-shared-styles';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* An example element.
|
|
@@ -22,7 +22,7 @@ export class PdPopupDialog extends LitElement {
|
|
|
22
22
|
|
|
23
23
|
static get styles() {
|
|
24
24
|
return [
|
|
25
|
-
|
|
25
|
+
PDColorStyles, PDFontStyles,
|
|
26
26
|
css`
|
|
27
27
|
:host {
|
|
28
28
|
display: block;
|
|
@@ -38,7 +38,7 @@ export class PdPopupDialog extends LitElement {
|
|
|
38
38
|
|
|
39
39
|
.modal-content {
|
|
40
40
|
margin: auto;
|
|
41
|
-
border: 1px solid
|
|
41
|
+
border: 1px solid var(--pd-default-light-col);
|
|
42
42
|
box-shadow: -4px 4px 10px var(--pd-default-dark-col);
|
|
43
43
|
max-width: var(--pd-popup-max-width, 700px);
|
|
44
44
|
}
|
|
@@ -55,7 +55,7 @@ export class PdPopupDialog extends LitElement {
|
|
|
55
55
|
padding-top: 8px;
|
|
56
56
|
font-family: var(--pd-default-font-title-family);
|
|
57
57
|
font-size: var(--pd-popup-header-font-size, 1.4em);
|
|
58
|
-
color: var(--pd-popup-header-font-col, var(--pd-default-bg-
|
|
58
|
+
color: var(--pd-popup-header-font-col, var(--pd-default-bg-col));
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.info-logo {
|
|
@@ -66,7 +66,7 @@ export class PdPopupDialog extends LitElement {
|
|
|
66
66
|
|
|
67
67
|
.content {
|
|
68
68
|
padding: 0.5rem 1rem 1rem 1rem;
|
|
69
|
-
background-color: var(--pd-popup-header-font-col, var(--pd-default-bg-
|
|
69
|
+
background-color: var(--pd-popup-header-font-col, var(--pd-default-bg-col));
|
|
70
70
|
height: 100%;
|
|
71
71
|
}
|
|
72
72
|
|
package/src/PdSubmitDialog.js
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
import { LitElement, html, css } from 'lit';
|
|
7
7
|
|
|
8
8
|
import '@progressive-development/pd-icon/pd-icon.js';
|
|
9
|
+
|
|
10
|
+
import { PDColorStyles } from '@progressive-development/pd-shared-styles';
|
|
11
|
+
|
|
9
12
|
import '../pd-popup-dialog.js';
|
|
10
13
|
|
|
11
14
|
export const STATUS_SEND = 1;
|
|
@@ -24,15 +27,13 @@ export class PdSubmitDialog extends LitElement {
|
|
|
24
27
|
*/
|
|
25
28
|
|
|
26
29
|
static get styles() {
|
|
27
|
-
return
|
|
30
|
+
return [
|
|
31
|
+
PDColorStyles,
|
|
32
|
+
css`
|
|
28
33
|
:host {
|
|
29
34
|
display: block;
|
|
30
35
|
}
|
|
31
36
|
|
|
32
|
-
.popup-dialog {
|
|
33
|
-
--popup-max-width: 800px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
37
|
.progress-container {
|
|
37
38
|
padding: 20px;
|
|
38
39
|
}
|
|
@@ -82,7 +83,7 @@ export class PdSubmitDialog extends LitElement {
|
|
|
82
83
|
transform: rotate(360deg);
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
|
-
|
|
86
|
+
`];
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
static get properties() {
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2021 PD Progressive Development UG. All rights reserved.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { css } from 'lit';
|
|
7
|
-
|
|
8
|
-
export const SharedGlobalStyles = css`
|
|
9
|
-
|
|
10
|
-
:host {
|
|
11
|
-
/**
|
|
12
|
-
* Set default fonts for all pd-components.
|
|
13
|
-
* Use content, title and input categories for fonts.
|
|
14
|
-
*/
|
|
15
|
-
--pd-default-font-title-family: var(--app-font-title-family);
|
|
16
|
-
--pd-default-font-content-family: var(--app-font-content-family);
|
|
17
|
-
--pd-default-font-input-family: var(--app-font-input-family);
|
|
18
|
-
|
|
19
|
-
--pd-default-font-title-col: var(--app-font-title-col, #0A3A48);
|
|
20
|
-
--pd-default-font-content-col: var(--app-font-content-col, #353738);
|
|
21
|
-
--pd-default-font-input-col: var(--app-font-input-col, #353738);
|
|
22
|
-
|
|
23
|
-
--pd-default-font-content-size: var(--app-font-content-size, 1em);
|
|
24
|
-
--pd-default-font-input-size: var(--app-font-input-size, 1em);
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Set default colors for all pd-components
|
|
28
|
-
*/
|
|
29
|
-
--pd-default-col: var(--app-primary-col, #067394);
|
|
30
|
-
--pd-default-light-col: var(--app-primary-light-col, #AFC1D2);
|
|
31
|
-
--pd-default-dark-col: var(--app-primary-dark-col, #0A3A48);
|
|
32
|
-
--pd-default-bg-color: var(--app-primary-bg-col, #fefefe);
|
|
33
|
-
|
|
34
|
-
--pd-default-hover-col: var(--app-hover-col, #f3d7a0);
|
|
35
|
-
--pd-default-error-col: var(--app-error-col, #cc2029);
|
|
36
|
-
--pd-default-error-light-col: var(--app-error-light-col, #ffe8e8);
|
|
37
|
-
--pd-default-success-col: var(--app-success-col, #42a01c);
|
|
38
|
-
--pd-default-success-light-col: var(--app-success-light-col, #f5ffe8);
|
|
39
|
-
--pd-default-disabled-col: var(--app-disabled-col, #888585);
|
|
40
|
-
--pd-default-disabled-light-col: var(--app-disabled-light-col, lightgrey);
|
|
41
|
-
|
|
42
|
-
--pd-default-modal-bg-rgba: rgba(175, 193, 210, 0.8); /* #AFC1D2 to rgba for opacity */
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.modal {
|
|
46
|
-
position: fixed; /* Stay in place */
|
|
47
|
-
z-index: 100; /* Sit on top */
|
|
48
|
-
left: 0;
|
|
49
|
-
top: 0;
|
|
50
|
-
width: 100%; /* Full width */
|
|
51
|
-
height: 100%; /* Full height */
|
|
52
|
-
overflow: auto; /* Enable scroll if needed */
|
|
53
|
-
background-color: var(--pd-popup-modal-bg-rgba, var(--pd-default-modal-bg-rgba)); /* RGBA Wert muss hier verwendet werden */
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
`;
|