@salesforcedevs/dx-components 1.3.73 → 1.3.76

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.73",
3
+ "version": "1.3.76",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -40,5 +40,5 @@
40
40
  "eventsourcemock": "^2.0.0",
41
41
  "luxon": "^3.1.0"
42
42
  },
43
- "gitHead": "5aa812c3b3e4991f9d9da7eb2a901d1cc44c15bd"
43
+ "gitHead": "14f72dacd30bd66b65033fbf972f24510568296e"
44
44
  }
@@ -10,7 +10,10 @@
10
10
  flex-direction: column;
11
11
  }
12
12
 
13
- .dx-card-base_layout-horizontal dx-card-title {
13
+ .dx-card-base_layout-horizontal:not(.dx-card-base_featured) dx-card-title,
14
+ .card-event:not(.dx-card-base_featured)
15
+ .card-event_detail-section
16
+ dx-card-title {
14
17
  --dx-c-card-title-font-size: var(--dx-g-text-lg);
15
18
  }
16
19
 
@@ -49,10 +52,15 @@
49
52
  margin-bottom: var(--dx-g-spacing-sm);
50
53
  }
51
54
 
55
+ .dx-card-base .card-event_detail-section > *:not(:last-child) {
56
+ margin-bottom: var(--dx-g-spacing-smd);
57
+ }
58
+
52
59
  .dx-card-base_featured .card-event_detail-section > *:not(:last-child) {
53
60
  margin-bottom: var(--dx-g-card-item-spacing);
54
61
  }
55
62
 
63
+ .dx-card-base_featured .card-event_detail-datetime-row,
56
64
  .card-event_detail-datetime-row {
57
65
  display: flex;
58
66
  align-items: center;
@@ -88,10 +96,6 @@ dx-button {
88
96
  margin-top: var(--dx-g-spacing-sm);
89
97
  }
90
98
 
91
- dx-type-badge {
92
- margin-bottom: var(--dx-g-spacing-sm);
93
- }
94
-
95
99
  dx-formatted-date-time {
96
100
  --dx-g-text-body-color: var(--dx-g-indigo-vibrant-40);
97
101
  }
@@ -110,9 +114,17 @@ dx-formatted-date-time {
110
114
  font-size: 24px;
111
115
  line-height: 28px;
112
116
  }
117
+ }
113
118
 
114
- .dx-text-body-3 {
119
+ @media (min-width: 1024px) {
120
+ .dx-card-base_featured .dx-text-body-3 {
115
121
  font-size: 14px;
116
122
  line-height: 20px;
117
123
  }
124
+
125
+ .dx-card-base_featured .dx-text-body-2 {
126
+ font-size: 16px;
127
+ letter-spacing: 0;
128
+ line-height: 24px;
129
+ }
118
130
  }
@@ -15,7 +15,10 @@
15
15
  />
16
16
  </a>
17
17
  <div class="details">
18
- <div class="card-event_date card-event_date-section">
18
+ <div
19
+ class="card-event_date card-event_date-section"
20
+ if:true={featured}
21
+ >
19
22
  <dx-formatted-date-time
20
23
  class="dx-text-heading-5 month"
21
24
  value={startDatetime}
@@ -40,12 +43,8 @@
40
43
  target={target}
41
44
  title={title}
42
45
  ></dx-card-title>
43
- <div class="subtitle-container">
44
- <span
45
- class="subtitle dx-text-label-1-dark"
46
- if:true={location}
47
- part="subtitle"
48
- >
46
+ <div class="subtitle-container" if:true={showSubtitle}>
47
+ <span class="subtitle dx-text-label-1-dark" part="subtitle">
49
48
  {location}
50
49
  </span>
51
50
  </div>
@@ -39,4 +39,12 @@ export default class CardEvent extends LightningElement {
39
39
  private get typeBadgeColor() {
40
40
  return this.type === "Webinar" ? "green" : "red";
41
41
  }
42
+
43
+ private get showSubtitle() {
44
+ return this.featured && this.location;
45
+ }
46
+
47
+ private get showDescription() {
48
+ return this.featured && this.shortDescription;
49
+ }
42
50
  }
@@ -26,7 +26,7 @@ import {
26
26
  export const SESSION_KEY = "dx-sidebar-search-state";
27
27
 
28
28
  const DEFAULT_RESULT_COUNT = 20;
29
- const SEARCH_DEBOUNCE_DELAY = 780;
29
+ const SEARCH_DEBOUNCE_DELAY = 1200;
30
30
 
31
31
  const UserRecentSearches = new RecentSearches();
32
32