@salesforcedevs/docs-components 1.34.4-topic-alpha.2 → 1.34.4-topic-alpha.4
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 +1 -1
- package/src/modules/doc/breadcrumbs/breadcrumbs.css +1 -0
- package/src/modules/doc/contentActionToolbar/contentActionToolbar.html +0 -1
- package/src/modules/doc/contentActionToolbar/contentActionToolbar.ts +12 -12
- package/src/modules/doc/header/header.ts +0 -19
- package/src/modules/doc/nav/nav.css +1 -1
- package/src/modules/doc/versionPicker/versionPicker.css +29 -27
- package/src/modules/doc/versionPicker/versionPicker.html +1 -1
package/package.json
CHANGED
|
@@ -127,26 +127,26 @@ export default class ContentActionToolbar extends LightningElement {
|
|
|
127
127
|
{
|
|
128
128
|
id: ACTION_COPY_MARKDOWN,
|
|
129
129
|
label: COPY_MARKDOWN_LABEL,
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
endIconSprite: "utility",
|
|
131
|
+
endIconSymbol: "copy"
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
id: ACTION_VIEW_MARKDOWN,
|
|
135
135
|
label: VIEW_MARKDOWN_LABEL,
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
endIconSprite: "utility",
|
|
137
|
+
endIconSymbol: "new_window"
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
id: ACTION_COPY_MARKDOWN_URL,
|
|
141
141
|
label: COPY_MARKDOWN_URL_LABEL,
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
endIconSprite: "utility",
|
|
143
|
+
endIconSymbol: "link"
|
|
144
144
|
},
|
|
145
145
|
...AI_ASSISTANTS.map(({ action, label }) => ({
|
|
146
146
|
id: action,
|
|
147
147
|
label,
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
endIconSprite: "utility",
|
|
149
|
+
endIconSymbol: "new_window"
|
|
150
150
|
}))
|
|
151
151
|
]
|
|
152
152
|
});
|
|
@@ -159,14 +159,14 @@ export default class ContentActionToolbar extends LightningElement {
|
|
|
159
159
|
{
|
|
160
160
|
id: ACTION_VIEW_LLMS,
|
|
161
161
|
label: VIEW_LLMS_LABEL,
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
endIconSprite: "utility",
|
|
163
|
+
endIconSymbol: "new_window"
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
id: ACTION_COPY_LLMS_URL,
|
|
167
167
|
label: COPY_LLMS_URL_LABEL,
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
endIconSprite: "utility",
|
|
169
|
+
endIconSymbol: "link"
|
|
170
170
|
}
|
|
171
171
|
]
|
|
172
172
|
});
|
|
@@ -5,7 +5,6 @@ import { HeaderBase } from "dxBaseElements/headerBase";
|
|
|
5
5
|
import { toJson, normalizeBoolean } from "dxUtils/normalizers";
|
|
6
6
|
import { track } from "dxUtils/analytics";
|
|
7
7
|
|
|
8
|
-
const TABLET_MATCH = "980px";
|
|
9
8
|
const MOBILE_MATCH = "768px";
|
|
10
9
|
|
|
11
10
|
const isStorybook = () => {
|
|
@@ -47,8 +46,6 @@ export default class Header extends HeaderBase {
|
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
private _scopedNavItems!: OptionWithNested[];
|
|
50
|
-
private tablet = false;
|
|
51
|
-
private tabletMatchMedia!: MediaQueryList;
|
|
52
49
|
private shouldRender: boolean = false;
|
|
53
50
|
private showDocDivider: boolean = false;
|
|
54
51
|
private _devCenter!: DevCenterConfig;
|
|
@@ -83,11 +80,6 @@ export default class Header extends HeaderBase {
|
|
|
83
80
|
|
|
84
81
|
connectedCallback(): void {
|
|
85
82
|
super.connectedCallback();
|
|
86
|
-
this.tabletMatchMedia = window.matchMedia(
|
|
87
|
-
`(max-width: ${TABLET_MATCH})`
|
|
88
|
-
);
|
|
89
|
-
this.onTabletChange(this.tabletMatchMedia);
|
|
90
|
-
this.tabletMatchMedia.addEventListener("change", this.onTabletChange);
|
|
91
83
|
|
|
92
84
|
if (
|
|
93
85
|
(!this.shouldHideHeader && this.isDocsPath) ||
|
|
@@ -106,23 +98,12 @@ export default class Header extends HeaderBase {
|
|
|
106
98
|
}
|
|
107
99
|
}
|
|
108
100
|
|
|
109
|
-
disconnectedCallback(): void {
|
|
110
|
-
super.disconnectedCallback();
|
|
111
|
-
this.tabletMatchMedia.removeEventListener(
|
|
112
|
-
"change",
|
|
113
|
-
this.onTabletChange
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
101
|
renderedCallback(): void {
|
|
118
102
|
if (this.hideDocHeader) {
|
|
119
103
|
this.shouldRender = !this.shouldHideHeader && this.isDocsPath;
|
|
120
104
|
}
|
|
121
105
|
}
|
|
122
106
|
|
|
123
|
-
private onTabletChange = (e: MediaQueryListEvent | MediaQueryList) =>
|
|
124
|
-
(this.tablet = e.matches);
|
|
125
|
-
|
|
126
107
|
protected additionalClasses(): string {
|
|
127
108
|
return cx(
|
|
128
109
|
this.brand && "has-brand",
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
@import "dxHelpers/reset";
|
|
2
2
|
|
|
3
|
-
/*
|
|
3
|
+
/* The large picker fills its row (the sidebar sets the row padding). The small
|
|
4
|
+
menu stops at --doc-version-picker-width, which the sidebar sets. */
|
|
4
5
|
:host {
|
|
6
|
+
display: block;
|
|
7
|
+
|
|
5
8
|
/* Menu labels wrap; break long unspaced labels instead of overflowing. */
|
|
6
9
|
--dx-c-dropdown-option-overflow-wrap: anywhere;
|
|
7
10
|
--popover-container-open-transform: translateY(4px);
|
|
@@ -44,16 +47,35 @@
|
|
|
44
47
|
|
|
45
48
|
.version-picker-button {
|
|
46
49
|
display: flex;
|
|
47
|
-
width:
|
|
50
|
+
width: 100%;
|
|
48
51
|
|
|
49
52
|
--dx-c-button-horizontal-spacing: var(--dx-g-spacing-sm);
|
|
50
|
-
--dx-
|
|
53
|
+
--dx-c-button-icon-color: var(--dx-g-gray-50);
|
|
54
|
+
|
|
55
|
+
/* A real 1px border at rest. Hover and the open menu turn it dark blue and
|
|
56
|
+
add a 1px inset shadow, so the edge looks 2px without resizing. */
|
|
57
|
+
--dx-c-button-custom-color: var(--dx-g-gray-10);
|
|
58
|
+
--dx-c-button-custom-color-hover: var(--dx-g-gray-10);
|
|
59
|
+
--dx-c-button-custom-background: white;
|
|
60
|
+
--dx-c-button-custom-background-hover: var(--dx-g-blue-vibrant-95);
|
|
61
|
+
--dx-c-button-custom-border: var(--dx-g-gray-50);
|
|
62
|
+
--dx-c-button-custom-border-hover: var(--dx-g-blue-vibrant-20);
|
|
63
|
+
--dx-c-button-custom-border-shadow-hover: inset 0 0 0 1px
|
|
64
|
+
var(--dx-g-blue-vibrant-20);
|
|
65
|
+
|
|
66
|
+
/* Focus keeps the 2px edge inside the white band. WES shows the ring while
|
|
67
|
+
the menu is open too, as a select does. */
|
|
68
|
+
--dx-c-button-focus-shadow: inset 0 0 0 1px var(--dx-g-blue-vibrant-20),
|
|
69
|
+
0 0 0 2px white;
|
|
70
|
+
--dx-c-button-custom-focus-outline-active: var(--dx-c-button-focus-outline);
|
|
71
|
+
--dx-c-button-custom-focus-offset-active: var(--dx-c-button-focus-offset);
|
|
72
|
+
--dx-c-button-custom-focus-shadow-active: var(--dx-c-button-focus-shadow);
|
|
51
73
|
}
|
|
52
74
|
|
|
53
75
|
.version-picker-button:hover,
|
|
54
76
|
.version-picker-button:focus-within,
|
|
55
77
|
.version-picker-button[aria-expanded="true"] {
|
|
56
|
-
--dx-
|
|
78
|
+
--dx-c-button-icon-color: var(--dx-g-blue-vibrant-20);
|
|
57
79
|
}
|
|
58
80
|
|
|
59
81
|
/**
|
|
@@ -65,27 +87,6 @@ dx-button::part(content) {
|
|
|
65
87
|
overflow: hidden;
|
|
66
88
|
}
|
|
67
89
|
|
|
68
|
-
/* The border is an inset box-shadow so thickening it on hover/focus doesn't
|
|
69
|
-
resize the small variant's fit-content box. */
|
|
70
|
-
.version-picker-button::part(container) {
|
|
71
|
-
background: white;
|
|
72
|
-
box-shadow: inset 0 0 0 1px var(--dx-g-gray-50);
|
|
73
|
-
color: var(--dx-g-gray-10);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.version-picker-button::part(container):hover {
|
|
77
|
-
background: var(--dx-g-blue-vibrant-95);
|
|
78
|
-
box-shadow: inset 0 0 0 2px var(--dx-g-blue-vibrant-20);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/* aria-expanded keeps the focus ring while the menu is open. */
|
|
82
|
-
.version-picker-button:focus-within::part(container),
|
|
83
|
-
.version-picker-button[aria-expanded="true"]::part(container) {
|
|
84
|
-
background: var(--dx-g-blue-vibrant-95);
|
|
85
|
-
box-shadow: inset 0 0 0 2px var(--dx-g-blue-vibrant-20), 0 0 0 2px white,
|
|
86
|
-
0 0 0 4px var(--dx-g-blue-vibrant-60);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
90
|
.selected-version {
|
|
90
91
|
display: flex;
|
|
91
92
|
flex-direction: row;
|
|
@@ -138,7 +139,8 @@ dx-type-badge.not-latest-badge {
|
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
/* width:100% re-ties to the 104px-capped host (container is width:inherit,
|
|
141
|
-
which copies width but not max-width). Border
|
|
142
|
+
which copies width but not max-width). Border, fill, and states come from the
|
|
143
|
+
dx-button hooks on .version-picker-button. */
|
|
142
144
|
.version-picker-button-small::part(container) {
|
|
143
145
|
width: 100%;
|
|
144
146
|
height: var(--dx-g-spacing-lg);
|
|
@@ -170,7 +172,7 @@ dx-type-badge.not-latest-badge {
|
|
|
170
172
|
.version-picker-readonly {
|
|
171
173
|
box-sizing: border-box;
|
|
172
174
|
display: inline-block;
|
|
173
|
-
width:
|
|
175
|
+
width: 100%;
|
|
174
176
|
height: var(--dx-g-spacing-xl);
|
|
175
177
|
margin: 0;
|
|
176
178
|
padding: 0 var(--dx-g-spacing-sm);
|