@salesforcedevs/dx-components 1.3.358 → 1.3.360

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.358",
3
+ "version": "1.3.360",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -46,5 +46,5 @@
46
46
  "volta": {
47
47
  "node": "18.18.0"
48
48
  },
49
- "gitHead": "1ea839245bb4d6a5149e141968458c385c188e09"
49
+ "gitHead": "359059437a3b75dc1f4fde44b77101b7e0497e47"
50
50
  }
@@ -5,9 +5,12 @@
5
5
  font-size: inherit;
6
6
 
7
7
  --dx-c-button-background-color: transparent;
8
- --dx-c-button-primary-color: var(--dx-g-blue-vibrant-50);
8
+ --dx-c-button-primary-color: var(--dx-g-button-primary-color);
9
+ --dx-c-button-secondary-color: var(--dx-g-button-secondary-color);
9
10
  --dx-c-button-primary-color-hover: var(--dx-g-blue-vibrant-40);
10
- --dx-c-button-secondary-color-hover: var(--dx-g-cloud-blue-vibrant-90);
11
+ --dx-c-button-secondary-color-hover: var(
12
+ --dx-g-button-secondary-color-hover
13
+ );
11
14
  --dx-c-button-inline-color-hover: var(--dx-g-blue-vibrant-30);
12
15
  --dx-c-button-justify-content: center;
13
16
  --dx-c-button-opacity: 1;
@@ -147,8 +150,8 @@
147
150
 
148
151
  .button.variant_secondary,
149
152
  .button.variant_quaternary {
150
- color: var(--dx-c-button-primary-color);
151
- border: 1px solid var(--dx-c-button-primary-color);
153
+ color: var(--dx-c-button-secondary-color);
154
+ border: 1px solid var(--dx-c-button-secondary-color);
152
155
  }
153
156
 
154
157
  .button.variant_secondary:hover,
@@ -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
@@ -20,10 +19,6 @@
20
19
  --dx-c-moon-graphic-color: var(--dx-g-indigo-vibrant-40);
21
20
  --dx-c-featured-content-header-image-container-transform: scale(0.7)
22
21
  translateY(14px);
23
- --dx-c-featured-content-header-swoop-display: block;
24
- --dx-c-featured-content-header-swoop-height: 30%;
25
- --dx-c-featured-content-header-background-image-position: top right;
26
- --dx-c-featured-content-header-background-image-size: contain;
27
22
  --dx-c-featured-content-header-image-padding-top: calc(
28
23
  50% + var(--dx-c-featured-content-header-padding-horizontal) / 2
29
24
  );
@@ -34,6 +29,11 @@
34
29
  var(--image-radius);
35
30
  }
36
31
 
32
+ .container-layout {
33
+ padding: var(--dx-c-featured-content-header-padding-vertical)
34
+ var(--dx-c-featured-content-header-padding-horizontal);
35
+ }
36
+
37
37
  .container {
38
38
  --image-radius: var(--dx-g-spacing-smd);
39
39
 
@@ -43,27 +43,20 @@
43
43
  /* actual spacing between bottom of graphic and rest of page content */
44
44
  --bottom-spacing: var(--dx-g-spacing-4xl);
45
45
  --item-spacing: var(--dx-g-spacing-xl);
46
- --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
 
51
49
  position: relative;
52
- background: var(
53
- --dx-c-featured-content-header-background-color,
54
- var(--dx-g-indigo-vibrant-90)
55
- );
50
+ background-image: var(--dx-themed-featured-content-header-background-swoop);
51
+ background-size: 100% 100%;
52
+ background-repeat: no-repeat;
53
+ background-position: center;
56
54
  }
57
55
 
58
- .container-layout {
59
- padding: var(--dx-c-featured-content-header-padding-vertical)
60
- var(--dx-c-featured-content-header-padding-horizontal);
61
- background-image: var(--background-image);
62
- background-repeat: no-repeat;
63
- background-position: var(
64
- --dx-c-featured-content-header-background-image-position
56
+ .container.variant_intense {
57
+ background-image: var(
58
+ --dx-themed-featured-content-header-background-swoop-intense
65
59
  );
66
- background-size: var(--dx-c-featured-content-header-background-image-size);
67
60
  }
68
61
 
69
62
  /* LAYOUTS */
@@ -76,8 +69,6 @@
76
69
  }
77
70
 
78
71
  .img-placement_below .container-layout {
79
- --swoop-inset: calc(80px + 38vw);
80
-
81
72
  margin-bottom: calc(var(--dx-c-bottom-image-height) / 2);
82
73
  }
83
74
 
@@ -85,22 +76,6 @@
85
76
  overflow: hidden;
86
77
  }
87
78
 
88
- /* SWOOP SILHOUETTE */
89
-
90
- .swoop-silhouette {
91
- display: var(--dx-c-featured-content-header-swoop-display);
92
- position: absolute;
93
- bottom: -2px;
94
- left: -1px;
95
- z-index: calc(var(--swoop-z-index) + 1);
96
- height: var(--swoop-height);
97
- overflow: hidden;
98
- pointer-events: none;
99
-
100
- /* Add 2px to cover subpixel rendering svg issue where a gap shows on the sides */
101
- width: calc(100vw + 2px);
102
- }
103
-
104
79
  /* BOTTOM GRAPHIC */
105
80
 
106
81
  .bg-image-container {
@@ -350,7 +325,7 @@ a.image-container > img {
350
325
 
351
326
  .label {
352
327
  grid-area: label;
353
- color: var(--dx-c-featured-content-label-color, var(--label-color));
328
+ color: var(--label-color);
354
329
  padding-bottom: var(--dx-g-spacing-lg);
355
330
  }
356
331
 
@@ -386,26 +361,6 @@ dx-image-and-label {
386
361
  padding-right: var(--dx-g-spacing-lg);
387
362
  }
388
363
 
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
364
  /* SHARED LINK HOVERING */
410
365
 
411
366
  .container.link-hovered a.image-container > img {
@@ -413,21 +368,28 @@ dx-image-and-label {
413
368
  }
414
369
 
415
370
  .container.link-hovered .title-link {
416
- color: var(--dx-g-link-hover-color);
371
+ color: var(
372
+ --dx-themed-featured-content-header-title-link-light-hover-color
373
+ );
417
374
  }
418
375
 
419
- .container.link-hovered.variant_dark .title-link {
420
- color: var(--dx-g-indigo-vibrant-90);
376
+ .container.link-hovered.variant_intense .title-link {
377
+ color: var(
378
+ --dx-themed-featured-content-header-title-link-intense-hover-color
379
+ );
421
380
  }
422
381
 
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
- }
382
+ .variant_intense {
383
+ --label-color: var(--dx-themed-featured-content-header-intense-label-color);
384
+ }
385
+
386
+ .variant_intense dx-image-and-label {
387
+ --dx-c-image-and-label-text-color: white;
388
+ }
389
+
390
+ .variant_intense .title,
391
+ .variant_intense .body {
392
+ color: white;
431
393
  }
432
394
 
433
395
  @media screen and (max-width: 1401px) {
@@ -442,12 +404,6 @@ dx-image-and-label {
442
404
  }
443
405
  }
444
406
 
445
- @media screen and (min-width: 1400px) {
446
- .img-placement_below {
447
- --swoop-inset: 680px;
448
- }
449
- }
450
-
451
407
  @media screen and (max-width: 1024px) {
452
408
  .container {
453
409
  --vertical-padding: 80px;
@@ -455,10 +411,6 @@ dx-image-and-label {
455
411
  --item-spacing: var(--dx-g-spacing-md);
456
412
  }
457
413
 
458
- .container:not(.img-placement_below) {
459
- --swoop-inset: 64px;
460
- }
461
-
462
414
  .img-placement_inline .container-layout {
463
415
  display: grid;
464
416
  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;
@@ -71,7 +71,7 @@ export default class FeaturedContentHeader extends LightningElement {
71
71
  return cx(
72
72
  "container",
73
73
  this.imgSrc && `img-placement_${this.imgPlacement}`,
74
- this.dark && "variant_dark",
74
+ this.dark && "variant_intense",
75
75
  this.isLinkHovered && "link-hovered",
76
76
  !this.isSlotEmpty && "has-slotted",
77
77
  this.backgroundImgId && `custom-bg-${this.backgroundImgId}`
@@ -119,7 +119,7 @@ footer.signup-variant-no-signup {
119
119
  width: 110px;
120
120
  margin-right: var(--dx-g-spacing-lg);
121
121
  background-image: url("https://a.sfdcstatic.com/developer-website/images/footer-graphic-trees.svg");
122
- filter: var(--dx-footer-themed-svg-filter);
122
+ filter: var(--dx-g-svg-filter);
123
123
  }
124
124
 
125
125
  .graphic-mountains {
@@ -127,7 +127,7 @@ footer.signup-variant-no-signup {
127
127
  width: 220px;
128
128
  margin-right: var(--dx-g-spacing-lg);
129
129
  background-image: url("https://a.sfdcstatic.com/developer-website/images/footer-graphic-mountains-2.svg");
130
- filter: var(--dx-footer-themed-svg-filter);
130
+ filter: var(--dx-g-svg-filter);
131
131
  }
132
132
 
133
133
  .graphic-mountains-mobile {
@@ -138,7 +138,7 @@ footer.signup-variant-no-signup {
138
138
  height: 56px;
139
139
  width: 100px;
140
140
  background-image: url("https://a.sfdcstatic.com/developer-website/images/footer-graphic-mountains-small-2.svg");
141
- filter: var(--dx-footer-themed-svg-filter);
141
+ filter: var(--dx-g-svg-filter);
142
142
  }
143
143
 
144
144
  .graphic-trees-small {
@@ -146,7 +146,7 @@ footer.signup-variant-no-signup {
146
146
  width: 52px;
147
147
  margin-left: var(--dx-g-spacing-lg);
148
148
  background-image: url("https://a.sfdcstatic.com/developer-website/images/footer-graphic-trees-small.svg");
149
- filter: var(--dx-footer-themed-svg-filter);
149
+ filter: var(--dx-g-svg-filter);
150
150
  }
151
151
 
152
152
  .graphic-large {
@@ -58,7 +58,7 @@ a:hover {
58
58
  --dx-c-breadcrumb-hover-color: var(--dx-g-cloud-blue-vibrant-40);
59
59
  }
60
60
 
61
- .helmet.variant_dark {
61
+ .helmet.variant_intense {
62
62
  background-color: var(--dx-g-blue-vibrant-40);
63
63
 
64
64
  --dx-c-home-link-color: white;