@salesforcedevs/dx-components 1.3.317 → 1.3.320

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.317",
3
+ "version": "1.3.320",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -18,7 +18,7 @@
18
18
  "@vimeo/player": "^2.16.4",
19
19
  "classnames": "^2.2.6",
20
20
  "composed-offset-position": "^0.0.4",
21
- "coveo-search-ui": "^2.10109.0",
21
+ "coveo-search-ui": "2.10113.0",
22
22
  "debounce": "^1.2.0",
23
23
  "js-cookie": "^3.0.1",
24
24
  "lodash.defaults": "^4.2.0",
@@ -46,5 +46,5 @@
46
46
  "volta": {
47
47
  "node": "16.19.1"
48
48
  },
49
- "gitHead": "9e40898b8728d5ec2c08afdd49ccbcb4b065cc5d"
49
+ "gitHead": "2f4e89a68c97e00c5776877ec86d332ed1aca6fb"
50
50
  }
@@ -14,7 +14,8 @@
14
14
  flex-direction: column;
15
15
  justify-content: center;
16
16
  align-items: flex-start;
17
- padding: var(--dx-g-spacing-2xl) 0 var(--dx-g-spacing-3xl) 0;
17
+ padding-top: var(--dx-g-spacing-4xl);
18
+ padding-bottom: var(--dx-g-spacing-3xl);
18
19
  min-height: 460px;
19
20
  text-align: left;
20
21
  background-position: center;
@@ -22,6 +23,30 @@
22
23
  background-repeat: no-repeat;
23
24
  }
24
25
 
26
+ .countries-list {
27
+ margin-top: var(--dx-g-spacing-smd);
28
+ width: 100%;
29
+ }
30
+
31
+ .countries-list > *:not(:first-child) {
32
+ margin-top: var(--dx-g-spacing-md);
33
+ }
34
+
35
+ .country {
36
+ display: flex;
37
+ align-items: center;
38
+ }
39
+
40
+ .country > span {
41
+ color: white;
42
+ }
43
+
44
+ .country > img {
45
+ height: 42px;
46
+ width: 42px;
47
+ margin-left: var(--dx-g-spacing-smd);
48
+ }
49
+
25
50
  .button-container {
26
51
  display: flex;
27
52
  gap: var(--dx-g-spacing-md);
@@ -41,6 +66,7 @@
41
66
  grid-template-columns: 1fr 1fr;
42
67
  margin-top: var(--dx-g-spacing-lg);
43
68
  gap: var(--dx-g-spacing-md);
69
+ width: 100%;
44
70
  }
45
71
 
46
72
  .feature-item {
@@ -20,6 +20,16 @@
20
20
  </div>
21
21
  </template>
22
22
  </div>
23
+ <div class="countries-list" if:true={renderCountriesList}>
24
+ <template for:each={countriesList} for:item="country">
25
+ <div key={country.name} class="country">
26
+ <span class="dx-text-display-7">
27
+ {country.label}&nbsp;{country.name}
28
+ </span>
29
+ <img src={country.flagSrc} alt={country.flagAltText} />
30
+ </div>
31
+ </template>
32
+ </div>
23
33
  <div class="button-container">
24
34
  <dx-button
25
35
  onclick={onCtaClick}
@@ -18,6 +18,8 @@ export default class FeaturesListHeader extends LightningElement {
18
18
  @api imgSrcMobile!: string;
19
19
  @api backgroundDark: boolean = false;
20
20
  @api backgroundColor?: string;
21
+ private _featuresList!: any;
22
+ private _countriesList?: any;
21
23
 
22
24
  @api
23
25
  get featuresList() {
@@ -27,6 +29,18 @@ export default class FeaturesListHeader extends LightningElement {
27
29
  this._featuresList = toJson(value);
28
30
  }
29
31
 
32
+ @api
33
+ get countriesList() {
34
+ return this._countriesList;
35
+ }
36
+ set countriesList(value: string) {
37
+ this._countriesList = toJson(value);
38
+ }
39
+
40
+ get renderCountriesList(): boolean {
41
+ return Boolean(this.countriesList?.length);
42
+ }
43
+
30
44
  // For use when displayed title will have embed HTML, i.e., is "rich text"
31
45
  @api
32
46
  get displayTitle() {
@@ -49,8 +63,6 @@ export default class FeaturesListHeader extends LightningElement {
49
63
  return cx("text-container", this.backgroundDark && "light-text");
50
64
  }
51
65
 
52
- private _featuresList!: any;
53
-
54
66
  private onCtaClick(e: Event) {
55
67
  if (e.currentTarget) {
56
68
  track(e.currentTarget, "custEv_ctaButtonClick", {
@@ -7944,7 +7944,7 @@ select.coveo-dropdown::-ms-expand {
7944
7944
 
7945
7945
  @font-face {
7946
7946
  font-family: "Lato";
7947
- src: url('https://static.cloud.coveo.com/searchui/v2.10115/0/fonts/lato.woff2'), url('https://staticdev.cloud.coveo.com/searchui/v2.10115/0/fonts/lato.woff2'), url('../fonts/lato.woff2'), url('https://static.cloud.coveo.com/searchui/v2.10115/0/fonts/lato.woff'), url('https://staticdev.cloud.coveo.com/searchui/v2.10115/0/fonts/lato.woff'), url('../fonts/lato.woff');
7947
+ src: url('https://static.cloud.coveo.com/searchui/v2.10113/0/fonts/lato.woff2'), url('https://staticdev.cloud.coveo.com/searchui/v2.10113/0/fonts/lato.woff2'), url('../fonts/lato.woff2'), url('https://static.cloud.coveo.com/searchui/v2.10113/0/fonts/lato.woff'), url('https://staticdev.cloud.coveo.com/searchui/v2.10113/0/fonts/lato.woff'), url('../fonts/lato.woff');
7948
7948
  font-weight: normal;
7949
7949
  font-style: normal;
7950
7950
  }