@progressive-development/pd-content 0.0.9 → 0.0.11
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 +3 -3
- package/src/PdBoxView.js +2 -2
- package/src/PdCollapse.js +10 -10
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Progressive Development content components. ",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"author": "PD Progressive Development UG",
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.11",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"module": "index.js",
|
|
9
9
|
"scripts": {
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"lit": "^2.0.2",
|
|
21
|
-
"@progressive-development/pd-icon": "0.0.
|
|
22
|
-
"@progressive-development/pd-dialog": "0.0.
|
|
21
|
+
"@progressive-development/pd-icon": "0.0.7",
|
|
22
|
+
"@progressive-development/pd-dialog": "0.0.10",
|
|
23
23
|
"pwa-helpers": "^0.9.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
package/src/PdBoxView.js
CHANGED
|
@@ -15,10 +15,10 @@ export class PdBoxView extends LitElement {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
@media (min-width: 580px) {
|
|
18
|
-
.button-icon
|
|
18
|
+
.button-icon pd-icon {
|
|
19
19
|
margin: 0 0.5rem;
|
|
20
20
|
}
|
|
21
|
-
.button-icon.small
|
|
21
|
+
.button-icon.small pd-icon {
|
|
22
22
|
padding-right: 0.5rem;
|
|
23
23
|
}
|
|
24
24
|
}
|
package/src/PdCollapse.js
CHANGED
|
@@ -59,8 +59,8 @@ export class PdCollapse extends LitElement {
|
|
|
59
59
|
position: relative;
|
|
60
60
|
overflow: visible;
|
|
61
61
|
|
|
62
|
-
--
|
|
63
|
-
--
|
|
62
|
+
--pd-icon-fill: var(--my-icon-fill-color);
|
|
63
|
+
--pd-icon-fill-active: var(--my-icon-fill-active-color);
|
|
64
64
|
}
|
|
65
65
|
:host([popup]) {
|
|
66
66
|
position: unset;
|
|
@@ -122,8 +122,8 @@ export class PdCollapse extends LitElement {
|
|
|
122
122
|
.trigger:hover {
|
|
123
123
|
box-shadow: 1px 1px 2px rgb(var(--raw-game-color-dark-darker, grey)); /* ToDo*/
|
|
124
124
|
background: var(--my-header-background-hover-color);
|
|
125
|
-
--
|
|
126
|
-
--
|
|
125
|
+
--pd-icon-fill: var(--my-icon-fill-hover-color);
|
|
126
|
+
--pd-icon-fill-active: var(--my-icon-fill-active-hover-color);
|
|
127
127
|
}
|
|
128
128
|
.trigger.closed {
|
|
129
129
|
margin-bottom: 1rem;
|
|
@@ -147,8 +147,8 @@ export class PdCollapse extends LitElement {
|
|
|
147
147
|
.open .close-link {
|
|
148
148
|
position: fixed;
|
|
149
149
|
right: 0;
|
|
150
|
-
--
|
|
151
|
-
--
|
|
150
|
+
--pd-icon-fill: var(--app-primary-color);
|
|
151
|
+
--pd-icon-fill-active: var(--game-color-dark);
|
|
152
152
|
}
|
|
153
153
|
@media (min-width: 460px) {
|
|
154
154
|
:host {
|
|
@@ -184,19 +184,19 @@ export class PdCollapse extends LitElement {
|
|
|
184
184
|
@click="${this.onClick}"
|
|
185
185
|
>
|
|
186
186
|
<slot name="header"></slot>
|
|
187
|
-
<
|
|
187
|
+
<pd-icon
|
|
188
188
|
icon="${this.icon}"
|
|
189
189
|
?activeIcon="${this.active}"
|
|
190
190
|
class="small"
|
|
191
|
-
></
|
|
191
|
+
></pd-icon>
|
|
192
192
|
</div>
|
|
193
193
|
<div class="content ${this.active ? 'open' : 'closed'}">
|
|
194
194
|
${this.popup
|
|
195
|
-
? html`<
|
|
195
|
+
? html`<pd-icon
|
|
196
196
|
@click="${this.onClick}"
|
|
197
197
|
icon="closeLink"
|
|
198
198
|
class="link round close-link"
|
|
199
|
-
></
|
|
199
|
+
></pd-icon>`
|
|
200
200
|
: ''}
|
|
201
201
|
<slot name="content"></slot>
|
|
202
202
|
</div> `;
|