@salesforcedevs/dx-components 1.3.357 → 1.3.358-alpha2

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": "1.3.357",
3
+ "version": "1.3.358-alpha2",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -45,6 +45,5 @@
45
45
  },
46
46
  "volta": {
47
47
  "node": "18.18.0"
48
- },
49
- "gitHead": "568e719998db5e10c4601b1fcd3a184aa9a380c0"
48
+ }
50
49
  }
@@ -6,7 +6,6 @@
6
6
  :host {
7
7
  width: 100%;
8
8
 
9
- /* --dx-c-featured-content-header-background-color */
10
9
  --dx-c-tree-graphic-color: var(--dx-g-indigo-vibrant-40);
11
10
  --dx-c-featured-content-header-padding-horizontal: var(
12
11
  --dx-g-page-padding-horizontal
@@ -44,26 +43,25 @@
44
43
  --bottom-spacing: var(--dx-g-spacing-4xl);
45
44
  --item-spacing: var(--dx-g-spacing-xl);
46
45
  --swoop-height: var(--dx-c-featured-content-header-swoop-height);
47
- --swoop-inset: calc(2.5 * var(--vertical-padding));
48
46
  --swoop-z-index: 11;
49
- --label-color: var(--dx-g-indigo-vibrant-40);
47
+ --label-color: var(--dx-themed-featured-content-header-text-color);
50
48
 
49
+ background-image: var(--dx-themed-featured-content-header-background-swoop);
50
+ background-size: cover;
51
+ background-repeat: no-repeat;
52
+ background-position: center;
51
53
  position: relative;
52
- background: var(
53
- --dx-c-featured-content-header-background-color,
54
- var(--dx-g-indigo-vibrant-90)
55
- );
56
54
  }
57
55
 
58
56
  .container-layout {
59
57
  padding: var(--dx-c-featured-content-header-padding-vertical)
60
58
  var(--dx-c-featured-content-header-padding-horizontal);
61
- background-image: var(--background-image);
59
+ background-image: var(--dx-c-featured-content-header-background-image);
60
+ background-size: var(--dx-c-featured-content-header-background-image-size);
62
61
  background-repeat: no-repeat;
63
62
  background-position: var(
64
63
  --dx-c-featured-content-header-background-image-position
65
64
  );
66
- background-size: var(--dx-c-featured-content-header-background-image-size);
67
65
  }
68
66
 
69
67
  /* LAYOUTS */
@@ -76,8 +74,6 @@
76
74
  }
77
75
 
78
76
  .img-placement_below .container-layout {
79
- --swoop-inset: calc(80px + 38vw);
80
-
81
77
  margin-bottom: calc(var(--dx-c-bottom-image-height) / 2);
82
78
  }
83
79
 
@@ -350,7 +346,7 @@ a.image-container > img {
350
346
 
351
347
  .label {
352
348
  grid-area: label;
353
- color: var(--dx-c-featured-content-label-color, var(--label-color));
349
+ color: var(--label-color);
354
350
  padding-bottom: var(--dx-g-spacing-lg);
355
351
  }
356
352
 
@@ -386,26 +382,6 @@ dx-image-and-label {
386
382
  padding-right: var(--dx-g-spacing-lg);
387
383
  }
388
384
 
389
- /* DARK VARIANT */
390
-
391
- .variant_dark {
392
- --label-color: rgb(190 199 246);
393
-
394
- background: var(
395
- --dx-c-featured-content-header-background-color,
396
- linear-gradient(-180deg, rgb(40 23 153) 0%, rgb(46 43 182) 100%)
397
- );
398
- }
399
-
400
- .variant_dark dx-image-and-label {
401
- --dx-c-image-and-label-text-color: white;
402
- }
403
-
404
- .variant_dark .title,
405
- .variant_dark .body {
406
- color: white;
407
- }
408
-
409
385
  /* SHARED LINK HOVERING */
410
386
 
411
387
  .container.link-hovered a.image-container > img {
@@ -413,21 +389,32 @@ dx-image-and-label {
413
389
  }
414
390
 
415
391
  .container.link-hovered .title-link {
416
- color: var(--dx-g-link-hover-color);
392
+ color: var(
393
+ --dx-themed-featured-content-header-title-link-light-hover-color
394
+ );
417
395
  }
418
396
 
419
397
  .container.link-hovered.variant_dark .title-link {
420
- color: var(--dx-g-indigo-vibrant-90);
398
+ color: var(
399
+ --dx-themed-featured-content-header-title-link-intense-hover-color
400
+ );
421
401
  }
422
402
 
423
- @media screen and (min-width: 1920px) {
424
- .swoop-container,
425
- .swoop-silhouette {
426
- left: initial;
427
- right: 0;
428
- transform: initial;
429
- width: 1920px;
430
- }
403
+ .variant_dark {
404
+ --label-color: var(--dx-themed-featured-content-header-intense-label-color);
405
+
406
+ background-image: var(
407
+ --dx-themed-featured-content-header-background-swoop-intense
408
+ );
409
+ }
410
+
411
+ .variant_dark dx-image-and-label {
412
+ --dx-c-image-and-label-text-color: white;
413
+ }
414
+
415
+ .variant_dark .title,
416
+ .variant_dark .body {
417
+ color: white;
431
418
  }
432
419
 
433
420
  @media screen and (max-width: 1401px) {
@@ -442,23 +429,17 @@ dx-image-and-label {
442
429
  }
443
430
  }
444
431
 
445
- @media screen and (min-width: 1400px) {
446
- .img-placement_below {
447
- --swoop-inset: 680px;
432
+ @media screen and (max-width: 1024px) {
433
+ div.container {
434
+ background-size: center;
448
435
  }
449
- }
450
436
 
451
- @media screen and (max-width: 1024px) {
452
437
  .container {
453
438
  --vertical-padding: 80px;
454
439
  --bottom-spacing: var(--dx-g-spacing-2xl);
455
440
  --item-spacing: var(--dx-g-spacing-md);
456
441
  }
457
442
 
458
- .container:not(.img-placement_below) {
459
- --swoop-inset: 64px;
460
- }
461
-
462
443
  .img-placement_inline .container-layout {
463
444
  display: grid;
464
445
  grid-template-areas: "label" "image" "main";
@@ -93,40 +93,6 @@
93
93
  >
94
94
  <img src={imgSrc} alt={imgAlt} />
95
95
  </a>
96
- <template if:false={noSwoop}>
97
- <svg
98
- class="swoop-silhouette"
99
- width="1920px"
100
- height="331px"
101
- viewBox="0 0 1920 331"
102
- version="1.1"
103
- xmlns="http://www.w3.org/2000/svg"
104
- preserveAspectRatio="none"
105
- >
106
- <defs>
107
- <path
108
- d="M1920,330 L76.7313881,330.008182 C51.2800917,330.255837 25.7029624,330.372286 0,330.357528 L0,330 L76.7313881,330.008182 C789.975765,323.067922 1404.39864,213.086385 1920,0.0635708029 L1920,0.0635708029 L1920,330 Z"
109
- id="path-1"
110
- ></path>
111
- </defs>
112
- <g
113
- id="Documentation-landing-page"
114
- stroke="none"
115
- stroke-width="1"
116
- fill="none"
117
- fill-rule="evenodd"
118
- >
119
- <mask id="mask-2" fill="white">
120
- <use xlink:href="#path-1"></use>
121
- </mask>
122
- <use
123
- id="Combined-Shape"
124
- fill={swoopUnderColor}
125
- xlink:href="#path-1"
126
- ></use>
127
- </g>
128
- </svg>
129
- </template>
130
96
  </div>
131
97
  <div class="blue-circle" if:true={hasIcon}>
132
98
  <dx-icon
@@ -21,7 +21,6 @@ export default class FeaturedContentHeader extends LightningElement {
21
21
  @api imgSrc?: string;
22
22
  @api imgAlt?: string = "Featured content image";
23
23
  @api imgPlacement?: "inline" | "below" = "inline";
24
- @api dark: boolean = false;
25
24
  @api href?: string;
26
25
  @api target?: string | null = null;
27
26
  @api header!: string;
@@ -35,8 +34,9 @@ export default class FeaturedContentHeader extends LightningElement {
35
34
  | "big-moon"
36
35
  | null = null;
37
36
  @api noSwoop: boolean = false;
37
+ @api dark: boolean = false;
38
38
  @api icon: string = "";
39
- @api swoopUnderColor: string = "#FFFFFF";
39
+ @api swoopUnderColor: string = "var(--dx-g-fch-swoop-under-color)";
40
40
 
41
41
  private _authors?: Array<ImageAndLabel>;
42
42
  private isSlotEmpty: boolean = true;
@@ -58,14 +58,6 @@ a:hover {
58
58
  --dx-c-breadcrumb-hover-color: var(--dx-g-cloud-blue-vibrant-40);
59
59
  }
60
60
 
61
- .helmet.variant_dark {
62
- background-color: var(--dx-g-blue-vibrant-40);
63
-
64
- --dx-c-home-link-color: white;
65
- --dx-c-breadcrumb-color: var(--dx-g-blue-vibrant-90);
66
- --dx-c-breadcrumb-hover-color: var(--dx-g-cloud-blue-vibrant-80);
67
- }
68
-
69
61
  .helmet.variant_light {
70
62
  background-color: var(--dx-g-cloud-blue-vibrant-95);
71
63
 
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.