@salesforcedevs/dx-components 0.53.2 → 0.53.7-loading-img-update

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "0.53.2",
3
+ "version": "0.53.7-loading-img-update",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -27,6 +27,5 @@
27
27
  "@types/debounce": "^1.2.0",
28
28
  "@types/lodash.get": "^4.4.6",
29
29
  "@types/vimeo__player": "^2.16.2"
30
- },
31
- "gitHead": "37bfd27f1580498841761daaeb7da20f5a539d3e"
30
+ }
32
31
  }
@@ -1,9 +1,3 @@
1
- <svg width="100%" height="128" fill="none"
2
- xmlns="http://www.w3.org/2000/svg">
3
- <mask id="mask0_581_15739" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="16" y="8" width="267" height="112">
4
- <path fill-rule="evenodd" clip-rule="evenodd" d="M24 8C19.5817 8 16 11.5817 16 16C16 20.4183 19.5817 24 24 24H252C256.418 24 260 20.4183 260 16C260 11.5817 256.418 8 252 8H24ZM24 40C19.5817 40 16 43.5817 16 48C16 52.4183 19.5817 56 24 56H213C217.418 56 221 52.4183 221 48C221 43.5817 217.418 40 213 40H24ZM16 80C16 75.5817 19.5817 72 24 72H275C279.418 72 283 75.5817 283 80C283 84.4183 279.418 88 275 88H24C19.5817 88 16 84.4183 16 80ZM24 104C19.5817 104 16 107.582 16 112C16 116.418 19.5817 120 24 120H175C179.418 120 183 116.418 183 112C183 107.582 179.418 104 175 104H24Z" fill="#E5E5E5"/>
5
- </mask>
6
- <g mask="url(#mask0_581_15739)">
7
- <rect width="100%" height="128" fill="#E5E5E5"/>
8
- </g>
1
+ <svg width="100%" height="112" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58171 16 7.99999 16H212.24C216.658 16 220.24 12.4183 220.24 8C220.24 3.58172 216.658 0 212.24 0H8ZM8 32C3.58172 32 0 35.5817 0 40C0 44.4183 3.58172 48 8 48H177.037C181.456 48 185.037 44.4183 185.037 40C185.037 35.5817 181.456 32 177.037 32H8ZM0 72C0 67.5817 3.58172 64 8 64H233C237.418 64 241 67.5817 241 72C241 76.4183 237.418 80 233 80H8C3.58172 80 0 76.4183 0 72ZM8 96C3.58172 96 0 99.5817 0 104C0 108.418 3.58172 112 8 112H142.738C147.156 112 150.738 108.418 150.738 104C150.738 99.5817 147.156 96 142.738 96H8Z" fill="#E5E5E5" />
9
3
  </svg>
@@ -4,7 +4,7 @@ dx-card-content {
4
4
  --dx-c-body-max-lines: 3;
5
5
  }
6
6
 
7
- @media screen and (max-width: 1024px) {
7
+ @media screen and (max-width: 768px) {
8
8
  dx-card-content::part(body),
9
9
  dx-card-content::part(datetime) {
10
10
  display: none;
@@ -26,7 +26,7 @@
26
26
 
27
27
  /* mobile responsiveness */
28
28
 
29
- @media screen and (max-width: 1024px) {
29
+ @media screen and (max-width: 768px) {
30
30
  .card-content:not(.dx-card-base_featured) {
31
31
  flex-direction: row;
32
32
  }
@@ -12,7 +12,7 @@
12
12
  z-index: 1;
13
13
  }
14
14
 
15
- @media screen and (max-width: 1024px) {
15
+ @media screen and (max-width: 768px) {
16
16
  .badge {
17
17
  --badge-size: 56px;
18
18
  }
@@ -7,7 +7,7 @@
7
7
  z-index: 1;
8
8
  }
9
9
 
10
- @media screen and (max-width: 1024px) {
10
+ @media screen and (max-width: 768px) {
11
11
  dx-card-content::part(datetime) {
12
12
  display: block;
13
13
  }
@@ -16,6 +16,7 @@
16
16
  slot="image-badge"
17
17
  ></dx-icon-badge>
18
18
  <dx-formatted-date-time
19
+ if:true={datetime}
19
20
  slot="datetime"
20
21
  day="2-digit"
21
22
  month="long"
@@ -2,7 +2,7 @@ import { LightningElement, api } from "lwc";
2
2
 
3
3
  export default class CardVideoPreview extends LightningElement {
4
4
  @api body?: string | null = null;
5
- @api datetime!: string;
5
+ @api datetime?: string;
6
6
  @api featured?: boolean = false;
7
7
  @api href!: string;
8
8
  @api imgAlt?: string;
@@ -69,7 +69,7 @@
69
69
  margin-bottom: var(--dx-g-spacing-md);
70
70
  }
71
71
 
72
- .text > .label {
72
+ .text > .label:not(:last-child) {
73
73
  margin-bottom: var(--dx-g-spacing-lg);
74
74
  }
75
75
 
@@ -3,16 +3,16 @@ import cx from "classnames";
3
3
  import { toDxColor } from "utils/css";
4
4
 
5
5
  export default class Section extends LightningElement {
6
- @api backgroundColor?: string | null = "transparent";
7
- @api dark?: boolean = false;
6
+ @api backgroundColor: string = "transparent";
7
+ @api dark: boolean = false;
8
8
  @api headingLevel: "1" | "2" | "3" | "4" | "5" = "3";
9
- @api label?: string | null = null;
10
- @api subtitle?: string | null = null;
11
- @api textAlign?: "center" | "left" = "left";
12
- @api title?: string | null = null;
13
- @api topGraphic?: boolean = false;
14
- @api graphicOverlap?: boolean = false;
15
- @api bottomGraphic?: boolean = false;
9
+ @api label?: string;
10
+ @api subtitle?: string;
11
+ @api textAlign: "center" | "left" = "left";
12
+ @api title?: string;
13
+ @api topGraphic: boolean = false;
14
+ @api graphicOverlap: boolean = false;
15
+ @api bottomGraphic: boolean = false;
16
16
 
17
17
  private get style(): string {
18
18
  return `--dx-c-section-background-color: ${toDxColor(
@@ -13,6 +13,11 @@ button:focus {
13
13
  outline-offset: -1px;
14
14
  }
15
15
 
16
+ .tree-children-loading {
17
+ margin: var(--dx-g-spacing-xs) var(--dx-g-spacing-md) var(--dx-g-spacing-md)
18
+ var(--dx-g-spacing-md);
19
+ }
20
+
16
21
  @media (max-width: 768px) {
17
22
  .tree-children-loading {
18
23
  width: 100%;
@@ -1,3 +1,3 @@
1
1
  <template>
2
- <div class="video-container"></div>
2
+ <div class="video-container" lwc:dom="manual"></div>
3
3
  </template>
@@ -184,18 +184,6 @@ a.dx-card-base:hover dx-card-title {
184
184
 
185
185
  /* Desktop Only */
186
186
  @media screen and (min-width: 1024px) {
187
- .dx-card-base_layout-horizontal .dx-card-base_borderless-image_link {
188
- align-self: flex-start;
189
- flex-shrink: 0;
190
- width: 0;
191
- height: unset;
192
- margin-right: var(--dx-g-card-img-spacing);
193
- margin-bottom: unset;
194
- padding-top: unset;
195
- padding-right: 45%;
196
- padding-bottom: 22.5%;
197
- }
198
-
199
187
  .dx-card-base_featured dx-card-title {
200
188
  --dx-c-card-title-letter-spacing: -0.6px;
201
189
  --dx-c-card-title-font-size: 32px;
@@ -216,6 +204,21 @@ a.dx-card-base:hover dx-card-title {
216
204
  }
217
205
  }
218
206
 
207
+ /* Tablet + Desktop Only */
208
+ @media screen and (min-width: 764px) {
209
+ .dx-card-base_layout-horizontal .dx-card-base_borderless-image_link {
210
+ align-self: flex-start;
211
+ flex-shrink: 0;
212
+ width: 0;
213
+ height: unset;
214
+ margin-right: var(--dx-g-card-img-spacing);
215
+ margin-bottom: unset;
216
+ padding-top: unset;
217
+ padding-right: 45%;
218
+ padding-bottom: 22.5%;
219
+ }
220
+ }
221
+
219
222
  /* Tablet */
220
223
  @media screen and (max-width: 1024px) {
221
224
  :host {
@@ -223,10 +226,6 @@ a.dx-card-base:hover dx-card-title {
223
226
  --dx-g-card-img-spacing: 16px;
224
227
  }
225
228
 
226
- .dx-card-base_borderless-image {
227
- min-height: unset;
228
- }
229
-
230
229
  /* text resp */
231
230
  .dx-text-body-2,
232
231
  .dx-text-body-3 {
@@ -256,3 +255,9 @@ a.dx-card-base:hover dx-card-title {
256
255
  font-size: var(--dx-g-text-sm);
257
256
  }
258
257
  }
258
+
259
+ @media screen and (max-width: 764px) {
260
+ .dx-card-base_borderless-image {
261
+ min-height: unset;
262
+ }
263
+ }
package/LICENSE DELETED
@@ -1,12 +0,0 @@
1
- Copyright (c) 2020, Salesforce.com, Inc.
2
- All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
-
6
- * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
-
8
- * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9
-
10
- * Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11
-
12
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.