@salesforcedevs/dx-components 1.3.331 → 1.3.333

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.331",
3
+ "version": "1.3.333",
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": "8c6dd7c5684bc4aa7b9397d5426b4bad8645c438"
49
+ "gitHead": "f8a9a7adc4db6429233975f512e1ec381b7ed0e6"
50
50
  }
@@ -14,7 +14,7 @@
14
14
 
15
15
  .image {
16
16
  width: 100%;
17
- height: 160px;
17
+ height: var(--dx-card-image-height);
18
18
  }
19
19
 
20
20
  /* text section */
@@ -121,7 +121,7 @@
121
121
  </mask>
122
122
  <use
123
123
  id="Combined-Shape"
124
- fill="#FFFFFF"
124
+ fill={swoopUnderColor}
125
125
  xlink:href="#path-1"
126
126
  ></use>
127
127
  </g>
@@ -36,6 +36,7 @@ export default class FeaturedContentHeader extends LightningElement {
36
36
  | null = null;
37
37
  @api noSwoop: boolean = false;
38
38
  @api icon: string = "";
39
+ @api swoopUnderColor: string = "#FFFFFF";
39
40
 
40
41
  private _authors?: Array<ImageAndLabel>;
41
42
  private isSlotEmpty: boolean = true;
@@ -104,12 +104,9 @@ span {
104
104
 
105
105
  .dx-card-base_ctas {
106
106
  /* this is a hack since we can't target the ::slotted ctas */
107
- display: grid;
108
- grid-gap: var(--dx-g-spacing-xs) var(--dx-g-spacing-xl);
109
- grid-template-columns: repeat(
110
- auto-fill,
111
- minmax(min-content, var(--dx-c-card-grid-max-width, 50px))
112
- );
107
+ display: flex;
108
+ gap: var(--dx-g-spacing-xs) var(--dx-g-spacing-xl);
109
+ justify-content: space-between;
113
110
  }
114
111
 
115
112
  /* card image */
@@ -41,7 +41,9 @@ export const colorToDxColors = (
41
41
  };
42
42
 
43
43
  export const toDxColor = (color: string) =>
44
- ["white", "transparent"].includes(color) || BROWSER_COLOR_REGEXP.test(color)
44
+ ["white", "transparent"].includes(color) ||
45
+ color?.includes("linear-gradient") ||
46
+ BROWSER_COLOR_REGEXP.test(color)
45
47
  ? color
46
48
  : `var(--dx-g-${color})`;
47
49