@salesforcedevs/dx-components 1.40.7-remediation.1 → 1.40.7
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/LICENSE +12 -0
- package/package.json +3 -2
- package/src/modules/dx/button/button.css +1 -4
- package/src/modules/dx/cardEvent/cardEvent.css +1 -1
- package/src/modules/dx/cardTitle/cardTitle.css +1 -4
- package/src/modules/dx/codeBlock/codeBlock.css +9 -9
- package/src/modules/dx/filterMenu/filterMenu.css +1 -1
- package/src/modules/dx/mainContentHeader/mainContentHeader.css +1 -1
- package/src/modules/dx/searchHybrid/searchHybrid.html +1 -1
- package/src/modules/dx/searchHybrid/searchHybrid.ts +4 -0
- package/src/modules/dx/section/section.css +3 -4
- package/src/modules/dx/sectionBanner/sectionBanner.css +1 -1
- package/src/modules/dx/sidebar/sidebar.css +1 -1
- package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.css +1 -1
- package/src/modules/dxHelpers/text/text.css +18 -18
package/LICENSE
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
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.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "1.40.7
|
|
3
|
+
"version": "1.40.7",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -43,5 +43,6 @@
|
|
|
43
43
|
"eventsourcemock": "2.0.0",
|
|
44
44
|
"luxon": "3.4.4",
|
|
45
45
|
"msw": "^2.12.4"
|
|
46
|
-
}
|
|
46
|
+
},
|
|
47
|
+
"gitHead": "1df35017c1cc93551081329c96a37f42ed0780af"
|
|
47
48
|
}
|
|
@@ -60,10 +60,7 @@
|
|
|
60
60
|
display: inline;
|
|
61
61
|
vertical-align: var(--dx-c-button-icon-vertical-align, unset);
|
|
62
62
|
|
|
63
|
-
--dx-c-icon-color: var(
|
|
64
|
-
--dx-c-button-color-icon,
|
|
65
|
-
var(--dx-g-button-icon-color, currentcolor)
|
|
66
|
-
);
|
|
63
|
+
--dx-c-icon-color: var(--dx-g-button-icon-color, currentcolor);
|
|
67
64
|
}
|
|
68
65
|
|
|
69
66
|
.button.variant_inline dx-icon,
|
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
@import "dxHelpers/text";
|
|
3
3
|
|
|
4
4
|
:host {
|
|
5
|
-
--dx-c-card-title-color: var(
|
|
6
|
-
--dx-c-text-heading-color-text,
|
|
7
|
-
var(--dx-g-text-heading-color)
|
|
8
|
-
);
|
|
5
|
+
--dx-c-card-title-color: var(--dx-g-text-heading-color);
|
|
9
6
|
--dx-c-card-title-font-size: var(--dx-g-text-xl);
|
|
10
7
|
--dx-c-card-title-line-height: 28px;
|
|
11
8
|
--dx-c-card-title-letter-spacing: -0.1px;
|
|
@@ -30,12 +30,12 @@ pre {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.dx-theme-dark .header-text {
|
|
33
|
-
color:
|
|
33
|
+
color: white;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.header-text-icon {
|
|
37
37
|
margin-right: var(--dx-g-spacing-sm);
|
|
38
|
-
background-color:
|
|
38
|
+
background-color: white;
|
|
39
39
|
border-radius: 50%;
|
|
40
40
|
height: 24px;
|
|
41
41
|
width: 24px;
|
|
@@ -96,7 +96,7 @@ div.dx-theme-light {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.dx-theme-dark .dx-code-block-heading {
|
|
99
|
-
color:
|
|
99
|
+
color: white !important;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
.toolbar-item {
|
|
@@ -109,19 +109,19 @@ div.dx-theme-light {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
.dx-theme-dark .btn {
|
|
112
|
-
--dx-c-button-primary-color:
|
|
112
|
+
--dx-c-button-primary-color: #fff;
|
|
113
113
|
--dx-c-button-primary-color-hover: var(--dx-g-blue-natural-10);
|
|
114
114
|
--dx-c-button-secondary-color-hover: var(--dx-g-blue-vibrant-30);
|
|
115
|
-
--dx-c-button-custom-color:
|
|
116
|
-
--dx-c-button-custom-color-hover:
|
|
115
|
+
--dx-c-button-custom-color: #fff;
|
|
116
|
+
--dx-c-button-custom-color-hover: #fff;
|
|
117
117
|
--dx-c-button-custom-background-hover: var(--dx-g-blue-natural-10);
|
|
118
|
-
--dx-c-button-inline-color:
|
|
118
|
+
--dx-c-button-inline-color: #fff;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.dx-theme-light .btn {
|
|
122
122
|
--dx-c-button-primary-color: var(--dx-g-blue-vibrant-20);
|
|
123
123
|
--dx-c-button-primary-color-hover: var(--dx-g-gray-60);
|
|
124
|
-
--dx-c-button-secondary-color-hover:
|
|
124
|
+
--dx-c-button-secondary-color-hover: #dddbda;
|
|
125
125
|
--dx-c-button-custom-color: var(--dx-g-blue-vibrant-20);
|
|
126
126
|
--dx-c-button-custom-color-hover: var(--dx-g-blue-vibrant-20);
|
|
127
127
|
--dx-c-button-custom-background-hover: var(--dx-g-gray-60);
|
|
@@ -177,7 +177,7 @@ pre[class*="shiki"] {
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
dx-button {
|
|
180
|
-
--dx-
|
|
180
|
+
--dx-g-button-icon-color: var(--dx-g-cloud-blue-vibrant-50);
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
.code-block-loader {
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
decodeHtmlEntities,
|
|
9
9
|
highlightedSnippetHtml,
|
|
10
10
|
isSortOption,
|
|
11
|
+
resultHref,
|
|
11
12
|
SORT_OPTIONS,
|
|
12
13
|
type SearchResult,
|
|
13
14
|
type SortOption
|
|
@@ -30,6 +31,8 @@ const SORT_LABELS: Record<SortOption, string> = {
|
|
|
30
31
|
interface DisplayResult {
|
|
31
32
|
key: string;
|
|
32
33
|
url: string;
|
|
34
|
+
// Matched-section link; falls back to the page url.
|
|
35
|
+
href: string;
|
|
33
36
|
title: string;
|
|
34
37
|
description: string | null;
|
|
35
38
|
hasDescription: boolean;
|
|
@@ -167,6 +170,7 @@ export default class SearchHybrid extends LightningElement {
|
|
|
167
170
|
return {
|
|
168
171
|
key: `${r.url}-${i}`,
|
|
169
172
|
url: r.url,
|
|
173
|
+
href: resultHref(r),
|
|
170
174
|
title: decodeHtmlEntities(r.title),
|
|
171
175
|
description,
|
|
172
176
|
hasDescription: description !== null,
|
|
@@ -30,10 +30,9 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.section-dark {
|
|
33
|
-
--dx-
|
|
34
|
-
--dx-
|
|
35
|
-
--dx-
|
|
36
|
-
--dx-c-text-label-color-text: var(--dx-g-blue-vibrant-90);
|
|
33
|
+
--dx-g-text-heading-color: white;
|
|
34
|
+
--dx-g-text-body-color: var(--dx-g-blue-vibrant-90);
|
|
35
|
+
--dx-g-text-label-color: var(--dx-g-blue-vibrant-90);
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
.section.graphic-top:not(.graphic-overlap) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* WES Display 1 */
|
|
2
2
|
.dx-text-display-1 {
|
|
3
|
-
color: var(--dx-
|
|
3
|
+
color: var(--dx-g-text-heading-color);
|
|
4
4
|
font-family: var(--dx-g-font-display);
|
|
5
5
|
font-size: var(--dx-g-text-6xl);
|
|
6
6
|
letter-spacing: -1.8px;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
/* NO WES EQUIVALENT */
|
|
11
11
|
.dx-text-display-1b {
|
|
12
|
-
color: var(--dx-
|
|
12
|
+
color: var(--dx-g-text-heading-color);
|
|
13
13
|
font-family: var(--dx-g-font-display);
|
|
14
14
|
font-size: 64px;
|
|
15
15
|
letter-spacing: -1.4px;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
/* WES Display 2 */
|
|
20
20
|
.dx-text-display-2 {
|
|
21
|
-
color: var(--dx-
|
|
21
|
+
color: var(--dx-g-text-heading-color);
|
|
22
22
|
font-family: var(--dx-g-font-display);
|
|
23
23
|
font-size: var(--dx-g-text-5xl);
|
|
24
24
|
letter-spacing: -1.2px;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
/* WES Display 3 */
|
|
29
29
|
.dx-text-display-3 {
|
|
30
|
-
color: var(--dx-
|
|
30
|
+
color: var(--dx-g-text-heading-color);
|
|
31
31
|
font-family: var(--dx-g-font-display);
|
|
32
32
|
font-size: var(--dx-g-text-4xl);
|
|
33
33
|
letter-spacing: -1px;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
/* WES Display 4 */
|
|
38
38
|
.dx-text-display-4 {
|
|
39
|
-
color: var(--dx-
|
|
39
|
+
color: var(--dx-g-text-heading-color);
|
|
40
40
|
font-family: var(--dx-g-font-display);
|
|
41
41
|
font-size: var(--dx-g-text-3xl);
|
|
42
42
|
letter-spacing: -0.8px;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
/* Display 5 */
|
|
47
47
|
.dx-text-display-5 {
|
|
48
|
-
color: var(--dx-
|
|
48
|
+
color: var(--dx-g-text-heading-color);
|
|
49
49
|
font-family: var(--dx-g-font-display);
|
|
50
50
|
font-size: var(--dx-g-text-2xl);
|
|
51
51
|
letter-spacing: -0.4px;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
|
|
55
55
|
/* Display 6 */
|
|
56
56
|
.dx-text-display-6 {
|
|
57
|
-
color: var(--dx-
|
|
57
|
+
color: var(--dx-g-text-heading-color);
|
|
58
58
|
font-family: var(--dx-g-font-display);
|
|
59
59
|
font-size: var(--dx-g-text-xl);
|
|
60
60
|
letter-spacing: -0.4px;
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
|
|
64
64
|
/* Display 7 */
|
|
65
65
|
.dx-text-display-7 {
|
|
66
|
-
color: var(--dx-
|
|
66
|
+
color: var(--dx-g-text-heading-color);
|
|
67
67
|
font-family: var(--dx-g-font-display);
|
|
68
68
|
font-size: var(--dx-g-text-lg);
|
|
69
69
|
letter-spacing: -0.4px;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
/* Display 8 */
|
|
74
74
|
.dx-text-display-8 {
|
|
75
|
-
color: var(--dx-
|
|
75
|
+
color: var(--dx-g-text-heading-color);
|
|
76
76
|
font-family: var(--dx-g-font-display);
|
|
77
77
|
font-size: var(--dx-g-text-base);
|
|
78
78
|
letter-spacing: -0.5px;
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
|
|
82
82
|
/* Body 1 */
|
|
83
83
|
.dx-text-body-1 {
|
|
84
|
-
color: var(--dx-
|
|
84
|
+
color: var(--dx-g-text-body-color);
|
|
85
85
|
font-family: var(--dx-g-font-sans);
|
|
86
86
|
font-size: var(--dx-g-text-lg);
|
|
87
87
|
letter-spacing: 0;
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
|
|
91
91
|
/* Body 2 */
|
|
92
92
|
.dx-text-body-2 {
|
|
93
|
-
color: var(--dx-
|
|
93
|
+
color: var(--dx-g-text-body-color);
|
|
94
94
|
font-family: var(--dx-g-font-sans);
|
|
95
95
|
font-size: var(--dx-g-text-base);
|
|
96
96
|
letter-spacing: 0;
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
|
|
100
100
|
/* Body 3 */
|
|
101
101
|
.dx-text-body-3 {
|
|
102
|
-
color: var(--dx-
|
|
102
|
+
color: var(--dx-g-text-body-color);
|
|
103
103
|
font-family: var(--dx-g-font-sans);
|
|
104
104
|
font-size: var(--dx-g-text-sm);
|
|
105
105
|
letter-spacing: 0;
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
|
|
109
109
|
/* Body Caption */
|
|
110
110
|
.dx-text-body-4 {
|
|
111
|
-
color: var(--dx-
|
|
111
|
+
color: var(--dx-g-text-body-color);
|
|
112
112
|
font-family: var(--dx-g-font-sans);
|
|
113
113
|
font-size: var(--dx-g-text-xs);
|
|
114
114
|
letter-spacing: 0;
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
.dx-text-label-1 {
|
|
135
|
-
color: var(--dx-
|
|
135
|
+
color: var(--dx-g-text-heading-color);
|
|
136
136
|
font-family: var(--dx-g-font-display);
|
|
137
137
|
font-size: var(--dx-g-text-sm);
|
|
138
138
|
letter-spacing: 0.7px;
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
.dx-text-label-1-dark {
|
|
145
|
-
color: var(--dx-
|
|
145
|
+
color: var(--dx-g-text-label-color);
|
|
146
146
|
font-family: var(--dx-g-font-display);
|
|
147
147
|
font-size: var(--dx-g-text-sm);
|
|
148
148
|
letter-spacing: 0.7px;
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
.dx-text-label-2 {
|
|
155
|
-
color: var(--dx-
|
|
155
|
+
color: var(--dx-g-text-heading-color);
|
|
156
156
|
font-family: var(--dx-g-font-display);
|
|
157
157
|
font-size: var(--dx-g-text-xs);
|
|
158
158
|
letter-spacing: 0.7px;
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
.dx-text-label-3 {
|
|
164
|
-
color: var(--dx-
|
|
164
|
+
color: var(--dx-g-text-label-color);
|
|
165
165
|
font-family: var(--dx-g-font-display);
|
|
166
166
|
font-size: var(--dx-g-text-xs);
|
|
167
167
|
font-weight: var(--dx-g-font-demi);
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
.dx-text-label-4 {
|
|
174
|
-
color: var(--dx-
|
|
174
|
+
color: var(--dx-g-text-label-color);
|
|
175
175
|
font-family: var(--dx-g-font-display);
|
|
176
176
|
font-size: var(--dx-g-text-base);
|
|
177
177
|
font-weight: var(--dx-g-font-demi);
|