@salesforcedevs/dx-components 1.3.357 → 1.3.358-alpha
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 +2 -3
- package/src/modules/dx/featuredContentHeader/featuredContentHeader.css +31 -50
- package/src/modules/dx/featuredContentHeader/featuredContentHeader.html +0 -34
- package/src/modules/dx/featuredContentHeader/featuredContentHeader.ts +2 -2
- package/src/modules/dx/helmet/helmet.css +0 -8
- package/LICENSE +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.358-alpha",
|
|
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,24 @@
|
|
|
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-
|
|
47
|
+
--label-color: var(--dx-themed-featured-content-header-text-color);
|
|
50
48
|
|
|
49
|
+
background: var(--dx-themed-featured-content-header-background-swoop) cover
|
|
50
|
+
repeat-x;
|
|
51
|
+
background-size: auto 100%;
|
|
51
52
|
position: relative;
|
|
52
|
-
background: var(
|
|
53
|
-
--dx-c-featured-content-header-background-color,
|
|
54
|
-
var(--dx-g-indigo-vibrant-90)
|
|
55
|
-
);
|
|
56
53
|
}
|
|
57
54
|
|
|
58
55
|
.container-layout {
|
|
59
56
|
padding: var(--dx-c-featured-content-header-padding-vertical)
|
|
60
57
|
var(--dx-c-featured-content-header-padding-horizontal);
|
|
61
|
-
background-image: var(--background-image);
|
|
58
|
+
background-image: var(--dx-c-featured-content-header-background-image);
|
|
59
|
+
background-size: var(--dx-c-featured-content-header-background-image-size);
|
|
62
60
|
background-repeat: no-repeat;
|
|
63
61
|
background-position: var(
|
|
64
62
|
--dx-c-featured-content-header-background-image-position
|
|
65
63
|
);
|
|
66
|
-
background-size: var(--dx-c-featured-content-header-background-image-size);
|
|
67
64
|
}
|
|
68
65
|
|
|
69
66
|
/* LAYOUTS */
|
|
@@ -76,8 +73,6 @@
|
|
|
76
73
|
}
|
|
77
74
|
|
|
78
75
|
.img-placement_below .container-layout {
|
|
79
|
-
--swoop-inset: calc(80px + 38vw);
|
|
80
|
-
|
|
81
76
|
margin-bottom: calc(var(--dx-c-bottom-image-height) / 2);
|
|
82
77
|
}
|
|
83
78
|
|
|
@@ -350,7 +345,7 @@ a.image-container > img {
|
|
|
350
345
|
|
|
351
346
|
.label {
|
|
352
347
|
grid-area: label;
|
|
353
|
-
color: var(--
|
|
348
|
+
color: var(--label-color);
|
|
354
349
|
padding-bottom: var(--dx-g-spacing-lg);
|
|
355
350
|
}
|
|
356
351
|
|
|
@@ -386,15 +381,31 @@ dx-image-and-label {
|
|
|
386
381
|
padding-right: var(--dx-g-spacing-lg);
|
|
387
382
|
}
|
|
388
383
|
|
|
389
|
-
/*
|
|
384
|
+
/* SHARED LINK HOVERING */
|
|
385
|
+
|
|
386
|
+
.container.link-hovered a.image-container > img {
|
|
387
|
+
filter: var(--dx-g-button-image-filter-hover);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.container.link-hovered .title-link {
|
|
391
|
+
color: var(
|
|
392
|
+
--dx-themed-featured-content-header-title-link-light-hover-color
|
|
393
|
+
);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.container.link-hovered.variant_dark .title-link {
|
|
397
|
+
color: var(
|
|
398
|
+
--dx-themed-featured-content-header-title-link-intense-hover-color
|
|
399
|
+
);
|
|
400
|
+
}
|
|
390
401
|
|
|
391
402
|
.variant_dark {
|
|
392
|
-
--label-color:
|
|
403
|
+
--label-color: var(--dx-themed-featured-content-header-intense-label-color);
|
|
393
404
|
|
|
394
405
|
background: var(
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
406
|
+
--dx-themed-featured-content-header-background-swoop-intense
|
|
407
|
+
)
|
|
408
|
+
center repeat-x;
|
|
398
409
|
}
|
|
399
410
|
|
|
400
411
|
.variant_dark dx-image-and-label {
|
|
@@ -406,30 +417,6 @@ dx-image-and-label {
|
|
|
406
417
|
color: white;
|
|
407
418
|
}
|
|
408
419
|
|
|
409
|
-
/* SHARED LINK HOVERING */
|
|
410
|
-
|
|
411
|
-
.container.link-hovered a.image-container > img {
|
|
412
|
-
filter: var(--dx-g-button-image-filter-hover);
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
.container.link-hovered .title-link {
|
|
416
|
-
color: var(--dx-g-link-hover-color);
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
.container.link-hovered.variant_dark .title-link {
|
|
420
|
-
color: var(--dx-g-indigo-vibrant-90);
|
|
421
|
-
}
|
|
422
|
-
|
|
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
|
-
}
|
|
431
|
-
}
|
|
432
|
-
|
|
433
420
|
@media screen and (max-width: 1401px) {
|
|
434
421
|
.img-placement_below .image-container {
|
|
435
422
|
padding-top: var(--dx-c-featured-content-header-image-padding-top);
|
|
@@ -442,23 +429,17 @@ dx-image-and-label {
|
|
|
442
429
|
}
|
|
443
430
|
}
|
|
444
431
|
|
|
445
|
-
@media screen and (
|
|
446
|
-
.
|
|
447
|
-
|
|
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 = "
|
|
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.
|