igniteui-astro-components 0.0.14 → 0.0.15

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": "igniteui-astro-components",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "Reusable Astro components, layouts, and integrations for Infragistics / Ignite UI documentation sites. Replaces the Starlight defaults with project-specific implementations.",
5
5
  "type": "module",
6
6
  "engines": {
@@ -87,6 +87,7 @@
87
87
  },
88
88
  "dependencies": {
89
89
  "@fontsource-variable/instrument-sans": "^5.2.8",
90
+ "@fontsource-variable/inter": "^5.2.8",
90
91
  "@fontsource-variable/jetbrains-mono": "^5.2.8",
91
92
  "igniteui-webcomponents": "^7.1.3",
92
93
  "jsdom": "^29.0.1"
@@ -8,8 +8,8 @@
8
8
  flex-direction: column;
9
9
  z-index: var(--igd-sidebar-z-index);
10
10
  border-inline-end: var(--igd-app-outline);
11
- padding-inline: var(--igd-padding-md);
12
- padding-block: calc(var(--igd-padding-lg) + rem(14px));
11
+ padding-inline: rem(16px);
12
+ padding-block: rem(24px);
13
13
  background-color: var(--igd-layout-sections-bg);
14
14
  position: sticky;
15
15
  top: var(--igd-header-height);
@@ -17,17 +17,16 @@
17
17
  max-height: 100dvh;
18
18
  align-self: start;
19
19
  gap: rem(24px);
20
+ view-transition-name: docs-sidebar;
20
21
 
21
22
  .sidebar-gutter {
22
23
  overflow-y: hidden;
23
- scrollbar-gutter: stable;
24
24
 
25
25
  // This Makes sure the input border is visible
26
26
  // This is the height of the input in fluent theme + 8px padding
27
27
  // TODO this can be made smart using a css variable to override the original height of the input and used here
28
28
  min-height: rem(40px);
29
29
 
30
-
31
30
  igc-icon {
32
31
  color: light-dark(var(--ig-gray-800), var(--ig-gray-300));
33
32
  }
@@ -74,37 +73,37 @@
74
73
  display: flex;
75
74
  align-items: center;
76
75
  gap: rem(8px);
76
+ padding: rem(4px);
77
77
 
78
78
  igc-badge {
79
79
  justify-self: end;
80
80
  }
81
+
81
82
  }
82
83
 
83
84
  .docs-tree-group {
84
85
  gap: rem(8px);
86
+ padding-inline-end: rem(4px);
85
87
  }
86
88
 
87
89
  .group-label-text {
88
90
  @include type-style('body-2') {
91
+ //font-weight: 600;
89
92
  margin-block: 0;
90
93
  };
91
94
 
92
- color: light-dark(var(--ig-gray-800), var(--ig-gray-600));
93
-
94
- &:hover {
95
- color: var(--igd-accent);
96
- }
97
- }
98
-
99
- igc-tree-item[active] {
100
- .group-label-text {
101
- color: var(--igd-accent);
102
- }
95
+ color: light-dark(var(--ig-gray-900), var(--ig-gray-500));
96
+ user-select: none;
103
97
  }
104
98
 
105
99
  .group-label-count {
106
- color: light-dark(var(--ig-gray-500), var(--ig-gray-600));
107
- margin-inline-start: rem(8px)
100
+ color: light-dark(var(--ig-gray-700), var(--ig-gray-600));
101
+ background: light-dark(var(--ig-gray-100), var(--ig-gray-200));
102
+ padding: rem(2px) rem(8px);
103
+ aspect-ratio: 1;
104
+ border-radius: rem(4px);
105
+ margin-inline-start: rem(8px);
106
+ font-size: 12px;
108
107
  }
109
108
 
110
109
  .igd-badge-container {
@@ -30,11 +30,10 @@ igc-input::part(container) {
30
30
  border-block-start: 0;
31
31
  border-block-end: rem(1px) solid light-dark(var(--ig-gray-200), var(--ig-gray-300));
32
32
  border-radius: 0;
33
- padding-inline: rem(16px);
34
33
 
35
34
  // TODO make this more stable using css vars
36
35
  // padding-inline-end is 8px(padding) - 5px(scrollbar width)
37
- padding-inline-end: rem(3px);
36
+ padding-inline-end: rem(12px);
38
37
 
39
38
  padding-block-end: rem(8px);
40
39
 
@@ -52,6 +52,6 @@ const badges = (node.meta?.badges ?? []) as SidebarBadge[];
52
52
  ) : (
53
53
  <span class="group-label-text">
54
54
  <span>{node.label}</span>
55
- <span class="group-label-count">/{childCount}/</span>
55
+ <!--<span class="group-label-count">{childCount}</span>-->
56
56
  </span>
57
57
  )}
@@ -104,7 +104,7 @@ const currentPlatform = virtualPlatform ?? null;
104
104
  const resolvedLinks = (productLinksProp ?? productLinks) as ProductLink[];
105
105
  const filteredLinks = resolvedLinks.filter((l: ProductLink) => l.platform !== currentPlatform);
106
106
  type PackageEntry = string | { label: string; value?: string; href?: string };
107
- const rawPackages = packagesProp ?? (virtualPackages.length > 0 ? virtualPackages : undefined);
107
+ const rawPackages = packagesProp ?? (virtualPackages?.length > 0 ? virtualPackages : undefined);
108
108
  const packages = (rawPackages as PackageEntry[] | undefined)?.map((p: PackageEntry) =>
109
109
  typeof p === 'string' ? { label: p, value: p, href: undefined } : { label: p.label, value: p.value ?? p.label, href: p.href }
110
110
  );
@@ -199,6 +199,35 @@ const crumbs = sidebarCrumbs.length > 0 ? sidebarCrumbs : (pageTitle ? [pageTitl
199
199
  const packageSelect = this.querySelector('#package-select');
200
200
  const packageTooltip = this.querySelector<any>('#package-tooltip');
201
201
  if (packageSelect) {
202
+ // Truncates the native input value directly so the '\u2026' is baked in,
203
+ // Keep the full package label in the native input and apply truncation
204
+ // only as a visual style so assistive technologies still get the full text.
205
+ function applyTriggerTruncation() {
206
+ const igcInput = (packageSelect as any).shadowRoot?.querySelector('igc-input');
207
+ const nativeInput = igcInput?.shadowRoot?.querySelector('input') as HTMLInputElement | null;
208
+ if (!nativeInput || !nativeInput.value) return;
209
+
210
+ const text = nativeInput.value;
211
+
212
+ // Preserve the full label for accessibility and hover disclosure.
213
+ nativeInput.setAttribute('aria-label', text);
214
+ nativeInput.title = text;
215
+
216
+ // Apply truncation only to the rendered text.
217
+ nativeInput.style.overflow = 'hidden';
218
+ nativeInput.style.textOverflow = 'ellipsis';
219
+ nativeInput.style.whiteSpace = 'nowrap';
220
+ }
221
+
222
+ // Run after igcInput's Lit render cycle settles (two rAFs = after microtasks + first paint)
223
+ requestAnimationFrame(() => requestAnimationFrame(() => applyTriggerTruncation()));
224
+
225
+ // igcInput re-renders with the full text each time the dropdown closes;
226
+ // re-apply truncation afterwards.
227
+ packageSelect.addEventListener('igcClosed', () =>
228
+ requestAnimationFrame(() => applyTriggerTruncation())
229
+ );
230
+
202
231
  packageSelect.addEventListener('igcChange', (e: Event) => {
203
232
  const val = (e as CustomEvent).detail?.value ?? (packageSelect as any).value;
204
233
  const item = packageSelect.querySelector<HTMLElement>(`igc-select-item[value="${val}"]`);
@@ -215,7 +244,11 @@ const crumbs = sidebarCrumbs.length > 0 ? sidebarCrumbs : (pageTitle ? [pageTitl
215
244
  packageTooltip.addEventListener('igcOpening', (e: Event) => {
216
245
  const igcInput = (packageSelect as any).shadowRoot?.querySelector('igc-input');
217
246
  const nativeInput = igcInput?.shadowRoot?.querySelector('input');
218
- if (!nativeInput || nativeInput.scrollWidth <= nativeInput.clientWidth) {
247
+ // Show when we applied manual truncation (ends with '\u2026') or
248
+ // when there is natural CSS overflow.
249
+ const truncated = nativeInput?.value?.endsWith('\u2026');
250
+ const overflows = nativeInput && nativeInput.scrollWidth > nativeInput.clientWidth;
251
+ if (!truncated && !overflows) {
219
252
  e.preventDefault();
220
253
  }
221
254
  });
@@ -18,6 +18,7 @@
18
18
  border-block-end: var(--igd-app-outline);
19
19
  z-index: 1;
20
20
  background-color: var(--igd-layout-sections-bg);
21
+ view-transition-name: docs-subheader;
21
22
 
22
23
  .igd-logo {
23
24
  display: flex;
@@ -91,7 +92,7 @@
91
92
  flex-shrink: 0;
92
93
  position: relative;
93
94
  width: fit-content;
94
- max-width: rem(180px);
95
+ max-width: rem(250px);
95
96
 
96
97
  &::part(base) {
97
98
  position: absolute;
@@ -121,6 +122,7 @@
121
122
  }
122
123
 
123
124
  &::part(native-input) {
125
+ field-sizing: content;
124
126
  min-width: 0;
125
127
  overflow: hidden;
126
128
  text-overflow: ellipsis;
@@ -13,7 +13,7 @@
13
13
  min-width: rem(280px);
14
14
  max-height: calc(100vh - var(--igd-header-height));
15
15
  overflow-y: auto;
16
- padding: rem(46px) rem(24px);
16
+ padding: rem(24px);
17
17
  border-inline-end: var(--igd-app-outline);
18
18
  border-block-end: var(--igd-app-outline);
19
19
  background-color: var(--igd-layout-sections-bg);
@@ -18,7 +18,9 @@ igc-tree {
18
18
  --ig-size: 1;
19
19
 
20
20
  position: relative;
21
+ }
21
22
 
23
+ igc-tree[data-variant='toc'] {
22
24
  &::before {
23
25
  content: '';
24
26
  position: absolute;
@@ -26,16 +28,16 @@ igc-tree {
26
28
  top: anchor(top);
27
29
  height: anchor-size(height);
28
30
  inset-inline-start: 0;
29
- width: rem(1px);
31
+ width: rem(2px);
30
32
  background-color: var(--igd-accent);
31
33
  transition: top 0.2s ease, height 0.2s ease;
32
- display: none;
33
34
  z-index: 1;
34
35
  }
35
-
36
+
36
37
  body.is-resizing &::before {
37
38
  transition: none;
38
39
  }
40
+
39
41
  &::after {
40
42
  content: '';
41
43
  position: absolute;
@@ -46,15 +48,6 @@ igc-tree {
46
48
  height: 100%;
47
49
  background: light-dark(var(--ig-gray-200), var(--ig-gray-300));
48
50
  }
49
-
50
- &:has(igc-tree-item[selected])::before {
51
- display: block;
52
- }
53
- }
54
-
55
- /* Sidebar: only leaf items get selected, so item height = single row */
56
- igc-tree[data-variant='sidebar'] igc-tree-item[selected] {
57
- anchor-name: --selected-tree-item;
58
51
  }
59
52
 
60
53
  /* TOC: groups can be selected (h2 with h3 children); anchor to the label div
@@ -63,21 +56,25 @@ igc-tree[data-variant='toc'] igc-tree-item[selected] > [slot='label'] {
63
56
  anchor-name: --selected-tree-item;
64
57
  }
65
58
 
59
+ igc-tree-item[data-has-children] {
60
+ margin-block-end: rem(8px);
61
+ }
62
+
66
63
  igc-tree-item {
67
- --igc-tree-indentation-size: #{rem(20px)};
64
+ --igc-tree-indentation-size: #{rem(12px)};
68
65
  --background: transparent;
69
66
  --foreground: light-dark(var(--ig-gray-600), var(--ig-gray-400));
70
67
  --background-selected: transparent;
71
68
  --background-active: transparent;
72
- --foreground-active: var(--igd-accent);
73
- --foreground-hover: var(--igd-accent);
69
+ --foreground-active: light-dark(var(--ig-gray-600), var(--ig-gray-400));
70
+ --foreground-hover: var(--igd-on-accent);
74
71
  --background-disabled: transparent;
75
72
  --hover-color: transparent;
76
73
  --hover-selected-color: transparent;
77
74
  --background-active-selected: transparent;
78
- --foreground-selected: var(--igd-accent);
79
- --foreground-active-selected: var(--igd-accent);
80
-
75
+ --foreground-selected: transparent;
76
+ --foreground-active-selected: light-dark(var(--ig-gray-600), var(--ig-gray-400));
77
+ //--ig-tree-size: #{rem(32px)};
81
78
 
82
79
  a {
83
80
  position: absolute;
@@ -94,22 +91,33 @@ igc-tree-item {
94
91
  }
95
92
 
96
93
  cursor: default;
97
-
98
- &:hover,
99
- &:focus {
100
- > a {
101
- color: var(--igd-accent);
94
+ }
95
+
96
+ igc-tree:not([data-variant='toc']) {
97
+ igc-tree-item::part(wrapper) {
98
+ @include type-style('body-2') {
99
+ margin-block: 0;
102
100
  }
101
+
102
+ padding-inline: 0;
103
103
  }
104
104
  }
105
105
 
106
- igc-tree-item::part(wrapper) {
107
- @include type-style('body-2') {
108
- margin-block: 0;
106
+ igc-tree[data-variant='toc'] {
107
+ igc-tree-item::part(wrapper) {
108
+ @include type-style('body-2') {
109
+ margin-block: 0;
110
+ }
111
+
112
+ padding-inline-start: rem(24px);
113
+ padding-inline-end: rem(8px);
114
+ }
115
+
116
+ igc-tree-item[active] {
117
+ .group-label-text {
118
+ color: var(--igd-accent);
119
+ }
109
120
  }
110
- ;
111
- padding-inline-start: rem(24px);
112
- padding-inline-end: rem(8px);
113
121
  }
114
122
 
115
123
  igc-tree-item::part(focused) {
@@ -123,11 +131,12 @@ igc-tree-item::part(indicator) {
123
131
  igc-tree-item::part(label) {
124
132
  width: 100%;
125
133
  max-height: 100%;
126
- padding-block: rem(6px);
134
+ padding-block: 0;
127
135
  text-overflow: unset;
128
136
  white-space: unset;
129
- word-break: break-all;
137
+ word-break: break-word;
130
138
  overflow: unset;
139
+
131
140
  }
132
141
 
133
142
  igc-tree-item[data-has-children] {
@@ -181,11 +190,104 @@ igc-tree-item[data-has-children] {
181
190
  }
182
191
 
183
192
  /* Hover accent applies to leaf items (sidebar) and all linked items (TOC) */
184
- .docs-tree-link:hover ~ .docs-tree-label,
193
+ //.docs-tree-link:hover ~ .docs-tree-label,
185
194
  igc-tree-item:not([data-has-children]):hover .docs-tree-label {
186
195
  color: var(--igd-accent);
187
196
  }
188
197
 
198
+ .igd-label-and-badge {
199
+ position: relative;
200
+ border-radius: rem(4px);
201
+ padding-inline: rem(8px) rem(4px);
202
+ height: 100%;
203
+ z-index: -1;
204
+
205
+ &::before {
206
+ content: '';
207
+ position: absolute;
208
+ inset-block-start: 0;
209
+ inset-inline-end: calc(100% + (var(--igc-tree-indentation-size) / 2));
210
+ width: rem(1px);
211
+ height: calc(100% + rem(4px));
212
+ border-radius: 0;
213
+ background: light-dark(var(--ig-gray-300), var(--ig-gray-300));
214
+ }
215
+ }
216
+
217
+ .docs-tree-link {
218
+ &:hover,
219
+ &:focus {
220
+ + .igd-label-and-badge {
221
+ color: var(--igd-accent);
222
+ background-color: var(--ig-gray-100);
223
+ }
224
+ }
225
+ }
226
+
227
+ igc-tree-item[selected] {
228
+ igc-tree-item[selected]:not([aria-expanded]) {
229
+ .igd-label-and-badge {
230
+ color: var(--igd-on-accent);
231
+ background-color: var(--igd-accent);
232
+
233
+ .docs-tree-label {
234
+ color: var(--igd-on-accent);
235
+ }
236
+ }
237
+
238
+ &:has(.igd-label-and-badge) {
239
+ &:hover,
240
+ &:focus {
241
+ .igd-label-and-badge {
242
+ background-color: var(--igd-accent);
243
+
244
+ .docs-tree-label {
245
+ color: #fff;
246
+ }
247
+ }
248
+ }
249
+ }
250
+
251
+ .sidebar-premium-icon {
252
+ color: var(--igd-on-accent);
253
+ }
254
+
255
+ igc-badge {
256
+ &.preview {
257
+ --border-color: var(--igd-on-accent);
258
+ }
259
+
260
+ &.new {
261
+ --background-color: var(--igd-new-bg);
262
+ --text-color: var(--igd-new-color);
263
+ --icon-color: var(--igd-new-color);
264
+ --border-color: var(--igd-on-accent);
265
+ }
266
+
267
+ &.updated {
268
+ --background-color: var(--igd-updated-bg);
269
+ --text-color: var(--igd-updated-color);
270
+ --icon-color: var(--igd-updated-color);
271
+ --border-color: var(--igd-on-accent);
272
+ }
273
+
274
+ &.premium {
275
+ --background-color: var(--igd-premium-bg);
276
+ --text-color: var(--igd-premium-color);
277
+ --icon-color: var(--igd-premium-color);
278
+ --border-color: var(--igd-on-accent);
279
+ }
280
+
281
+ &.opensource {
282
+ --background-color: var(--igd-opensource-bg);
283
+ --text-color: var(--igd-opensource-color);
284
+ --icon-color: var(--igd-opensource-color);
285
+ --border-color: var(--igd-on-accent);
286
+ }
287
+ }
288
+ }
289
+ }
290
+
189
291
  igc-tree[data-variant='sidebar'] {
190
292
  overflow: hidden;
191
293
 
@@ -17,3 +17,11 @@
17
17
  .igd-search-results {
18
18
  padding-inline-end: rem(26px);
19
19
  }
20
+
21
+ .igd-search-shell {
22
+ igc-input::part(container) {
23
+ &:focus-within {
24
+ box-shadow: inset 0 0 0 1px var(--igd-accent)
25
+ }
26
+ }
27
+ }
@@ -114,13 +114,14 @@ const resolvedIndexUrl = indexUrl ?? `${basePath}api-search-index/manifest.json`
114
114
  <igc-dialog aria-label={placeholder} class="igd-search-dialog" hide-default-action close-on-outside-click>
115
115
  <div class="igd-search-shell">
116
116
  <header class="igd-search-header">
117
- <igc-select placement="bottom-start" distance="17" slot="prefix" class="igd-search-scope" outlined aria-label="Search scope" value="current">
117
+ <igc-select placement="bottom-start" distance="17" id="search-scope-select" slot="prefix" class="igd-search-scope" outlined aria-label="Search scope" value="current">
118
118
  {platformIcon && <igc-icon id="search-scope-trigger-icon" name={platformIcon} collection="docs" slot="prefix" aria-hidden="true"></igc-icon>}
119
119
  <igc-select-item value="current">
120
120
  <span data-scope-label>Current package</span>
121
121
  </igc-select-item>
122
122
  <igc-select-item value="all">All packages</igc-select-item>
123
123
  </igc-select>
124
+ <igc-tooltip anchor="search-scope-select" class="igd-search-scope-tooltip" placement="bottom" with-arrow></igc-tooltip>
124
125
 
125
126
  <igc-divider vertical></igc-divider>
126
127
 
@@ -170,6 +171,7 @@ const resolvedIndexUrl = indexUrl ?? `${basePath}api-search-index/manifest.json`
170
171
  IgcListComponent,
171
172
  IgcListItemComponent,
172
173
  IgcDividerComponent,
174
+ IgcTooltipComponent,
173
175
  } from 'igniteui-webcomponents';
174
176
  import '../../scripts/icon-registry';
175
177
 
@@ -185,6 +187,7 @@ const resolvedIndexUrl = indexUrl ?? `${basePath}api-search-index/manifest.json`
185
187
  IgcListComponent,
186
188
  IgcListItemComponent,
187
189
  IgcDividerComponent,
190
+ IgcTooltipComponent,
188
191
  );
189
192
 
190
193
  type IndexedPage = {
@@ -246,6 +249,7 @@ const resolvedIndexUrl = indexUrl ?? `${basePath}api-search-index/manifest.json`
246
249
  private input!: IgcInputComponent;
247
250
  private clearBtn!: IgcIconButtonComponent;
248
251
  private scopeSelect: IgcSelectComponent | null = null;
252
+ private scopeTooltip: HTMLElement | null = null;
249
253
  private scopeTriggerIcon: HTMLElement | null = null;
250
254
  private platformIconName: string = '';
251
255
  private tabsEl!: IgcTabsComponent;
@@ -296,6 +300,7 @@ const resolvedIndexUrl = indexUrl ?? `${basePath}api-search-index/manifest.json`
296
300
  this.input = this.querySelector<IgcInputComponent>('igc-input.igd-search-input')!;
297
301
  this.clearBtn = this.querySelector<IgcIconButtonComponent>('.igd-search-clear')!;
298
302
  this.scopeSelect = this.querySelector<IgcSelectComponent>('igc-select.igd-search-scope');
303
+ this.scopeTooltip = this.querySelector<HTMLElement>('.igd-search-scope-tooltip');
299
304
  this.scopeTriggerIcon = this.querySelector('#search-scope-trigger-icon');
300
305
  this.platformIconName = this.dataset.platformIcon || '';
301
306
  this.tabsEl = this.querySelector<IgcTabsComponent>('igc-tabs.igd-search-tabs')!;
@@ -391,6 +396,30 @@ const resolvedIndexUrl = indexUrl ?? `${basePath}api-search-index/manifest.json`
391
396
  this.scopeSelect.addEventListener('igcChange', () => {
392
397
  this.scope = this.scopeSelect!.value === 'all' ? 'all' : 'current';
393
398
  if (this.currentQuery) this.runSearch();
399
+ this.syncScopeTooltip();
400
+ });
401
+
402
+ // igcInput re-renders with full text after the dropdown closes; re-apply truncation.
403
+ this.scopeSelect.addEventListener('igcClosed', () =>
404
+ requestAnimationFrame(() => this.applyScopeTruncation())
405
+ );
406
+ }
407
+
408
+ // Apply truncation once the dialog is fully open and the select has real dimensions.
409
+ this.dialog.addEventListener('igcOpened', () =>
410
+ requestAnimationFrame(() => requestAnimationFrame(() => this.applyScopeTruncation()))
411
+ );
412
+
413
+ // Only show the scope tooltip when the label is visually truncated
414
+ if (this.scopeTooltip && this.scopeSelect) {
415
+ this.scopeTooltip.addEventListener('igcOpening', (e: Event) => {
416
+ const igcInput = (this.scopeSelect as any).shadowRoot?.querySelector('igc-input');
417
+ const nativeInput = igcInput?.shadowRoot?.querySelector('input');
418
+ const truncated = nativeInput?.value?.endsWith('\u2026');
419
+ const overflows = nativeInput && nativeInput.scrollWidth > nativeInput.clientWidth;
420
+ if (!truncated && !overflows) {
421
+ e.preventDefault();
422
+ }
394
423
  });
395
424
  }
396
425
  }
@@ -422,6 +451,24 @@ const resolvedIndexUrl = indexUrl ?? `${basePath}api-search-index/manifest.json`
422
451
  this.scopeSelect.value = 'all';
423
452
  this.scope = 'all';
424
453
  }
454
+ this.syncScopeTooltip();
455
+ }
456
+
457
+ private syncScopeTooltip() {
458
+ if (!this.scopeTooltip || !this.scopeSelect) return;
459
+ const val = this.scopeSelect.value;
460
+ const item = this.scopeSelect.querySelector<HTMLElement>(`igc-select-item[value="${val}"]`);
461
+ this.scopeTooltip.textContent = item?.textContent?.trim() ?? val ?? '';
462
+ }
463
+
464
+ private applyScopeTruncation() {
465
+ if (!this.scopeSelect) return;
466
+ const igcInput = (this.scopeSelect as any).shadowRoot?.querySelector('igc-input');
467
+ const nativeInput = igcInput?.shadowRoot?.querySelector('input') as HTMLInputElement | null;
468
+ if (!nativeInput || !nativeInput.value) return;
469
+ nativeInput.style.overflow = 'hidden';
470
+ nativeInput.style.textOverflow = 'ellipsis';
471
+ nativeInput.style.whiteSpace = 'nowrap';
425
472
  }
426
473
 
427
474
  private closeModal() {
@@ -6,9 +6,21 @@
6
6
  display: contents;
7
7
 
8
8
 
9
- // Advanced header has a scope selector before the input, needs start padding
10
9
  .igd-search-header {
11
- padding-inline-start: rem(16px);
10
+ igc-input::part(container) {
11
+ &:focus-within {
12
+ box-shadow:
13
+ 0 0 0 1px var(--igd-accent),
14
+ inset 0 1px 0 var(--igd-accent),
15
+ inset 0 -1px 0 var(--igd-accent),
16
+ inset -1px 0 0 var(--igd-accent);
17
+ }
18
+ }
19
+ }
20
+
21
+
22
+ #search-scope-trigger-icon {
23
+ margin-inline-start: rem(16px);
12
24
  }
13
25
  }
14
26
 
@@ -100,5 +112,35 @@
100
112
  igc-divider {
101
113
  --color: light-dark(var(--ig-gray-400), var(--ig-gray-300));
102
114
  }
115
+
116
+ .igd-search-scope {
117
+ max-width: rem(250px);
118
+
119
+ &::part(input) {
120
+ min-width: 0;
121
+ overflow: hidden;
122
+ }
123
+
124
+ &::part(native-input) {
125
+ min-width: 0;
126
+ overflow: hidden;
127
+ text-overflow: ellipsis;
128
+ white-space: nowrap;
129
+ }
130
+ }
131
+
132
+ .igd-search-scope-tooltip {
133
+ --ig-tooltip-background: #D2DBE8;
134
+ --ig-tooltip-text-color: #112031;
135
+ --ig-tooltip-border-radius: #{rem(4px)};
136
+
137
+ &::part(base) {
138
+ font-family: var(--igd-font-sans);
139
+ font-size: #{rem(12px)};
140
+ font-weight: 500;
141
+ line-height: #{rem(18px)};
142
+ letter-spacing: 0;
143
+ }
144
+ }
103
145
  }
104
146
 
@@ -39,6 +39,7 @@
39
39
  * → <a href="…/enums/igniteui-react.igrcalendarselection.html">…</a>
40
40
  */
41
41
  import type { PlatformContext } from '../../../lib/types.ts';
42
+ import './ApiLink.scss';
42
43
 
43
44
  type ApiKind = 'class' | 'interface' | 'enum' | 'type' | 'variable' | 'function' | 'sass';
44
45
 
@@ -0,0 +1,13 @@
1
+ @use 'igniteui-theming/sass/typography' as *;
2
+
3
+ a:has(code) {
4
+ text-decoration: none;
5
+ color: inherit;
6
+
7
+ &:hover {
8
+ code {
9
+ color: var(--igd-accent);
10
+ border-color: var(--ig-primary-100);
11
+ }
12
+ }
13
+ }
@@ -80,13 +80,14 @@ igc-tab {
80
80
 
81
81
  // TODO Log issue in the component this is not suppose to be affected by the ig-typography
82
82
  igc-tab::part(content) {
83
- @include type-style('subtitle-1') {
83
+ @include type-style('detail-1', false) {
84
84
  margin: 0;
85
85
  }
86
86
  }
87
87
 
88
88
  igc-tab::part(tab-header) {
89
- min-height: rem(60px);
89
+ min-height: rem(30px);
90
+ padding: rem(4px) rem(16px)
90
91
  }
91
92
 
92
93
  .igd-code-view {
@@ -145,7 +146,7 @@ igc-tab::part(tab-header) {
145
146
  align-items: center;
146
147
  justify-content: flex-end;
147
148
  position: relative;
148
- padding: rem(16px) rem(26px);
149
+ padding: rem(16px);
149
150
  gap: rem(16px);
150
151
  }
151
152
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  import { ClientRouter } from 'astro:transitions';
3
- import '@fontsource-variable/instrument-sans/wght.css';
4
- import '@fontsource-variable/instrument-sans/wght-italic.css';
3
+ import '@fontsource-variable/inter/wght.css';
4
+ import '@fontsource-variable/inter/wght-italic.css';
5
5
  import '@fontsource-variable/jetbrains-mono/wght.css';
6
6
  import '@fontsource-variable/jetbrains-mono/wght-italic.css';
7
7
  import GlobalNavBar from '../../components/GlobalNavBar/GlobalNavBar.astro';
@@ -313,6 +313,10 @@
313
313
  }
314
314
  }
315
315
 
316
+ igc-divider:not([variant="vertical"]) {
317
+ margin-block: rem(24px);
318
+ }
319
+
316
320
  @media (max-width: #{$bp-hide-toc}) {
317
321
  .igd-main-content__inner {
318
322
  aside {
@@ -8,7 +8,7 @@
8
8
  ============================================================ */
9
9
 
10
10
  .shiki {
11
- border: 1px solid light-dark(var(--ig-gray-200), var(--ig-primary-900));
11
+ border: 1px solid var(--ig-gray-200);
12
12
  margin-bottom: rem(26px);
13
13
  }
14
14
 
@@ -26,25 +26,11 @@ pre.shiki code {
26
26
  word-break: break-word;
27
27
  }
28
28
 
29
- /* ── Light mode (default) ───────────────────────────────────
30
- Shiki's inline style already sets color:var(--shiki-light).
31
- Only strip the per-span background so the pre bg shows. */
32
- :root:not([data-theme='dark']) pre.shiki code span {
33
- background-color: transparent !important;
34
- }
35
-
36
- /* ── Dark mode ──────────────────────────────────────────────
37
- Override Shiki's inline light-colour styles with dark vars. */
38
- [data-theme='dark'] pre.shiki {
39
- background-color: var(--shiki-dark-bg) !important;
40
- }
41
-
42
- [data-theme='dark'] pre.shiki code span {
43
- color: var(--shiki-dark) !important;
44
- background-color: var(--shiki-dark-bg, transparent) !important;
45
- font-style: var(--shiki-dark-font-style) !important;
46
- font-weight: var(--shiki-dark-font-weight) !important;
47
- text-decoration: var(--shiki-dark-text-decoration) !important;
29
+ /* ── Always use the dark theme ──────────────────────────────
30
+ Single dark theme — Shiki outputs colors directly, no CSS
31
+ variable switching required. */
32
+ pre.shiki {
33
+ background-color: var(--shiki-color-background) !important;
48
34
  }
49
35
 
50
36
  /* Copy button */
@@ -7,17 +7,14 @@
7
7
  .igd-main-content__markdown {
8
8
  .license-indicator-badge {
9
9
  margin-block-end: rem(26px);
10
-
11
- // TODO, This has to be fixed inside the component
12
- span {
13
- top: rem(1px);
14
- }
15
10
  }
16
11
 
17
12
  p,
18
13
  .igd-p {
19
14
  @include type-style('body-1');
20
15
 
16
+ //text-wrap: balance;
17
+
21
18
  code {
22
19
  white-space: nowrap;
23
20
  /* Optional: allows the user to scroll horizontally if the code is too long */
@@ -69,28 +66,20 @@
69
66
  padding: var(--igd-page-padding);
70
67
  min-width: 0;
71
68
 
72
- pre {
69
+ pre:not(.astro-code) {
73
70
  @include type-style('code', false) {
74
- margin: 0;
71
+ margin-block: 0;
75
72
  };
76
73
 
77
- border: rem(1px) solid light-dark(var(--ig-gray-200), var(--ig-primary-900));
78
- border-radius: rem(4px);
79
- background-color: light-dark(var(--ig-gray-50), var(--ig-gray-50)) !important;
80
- color: light-dark(var(--ig-gray-900), var(--ig-gray-800));
81
- padding: rem(32px);
74
+ margin-block-end: rem(26px);
82
75
  }
83
76
 
84
77
  pre,
85
78
  code {
79
+ font-family: var(--font-mono) !important;
86
80
  margin-block-end: rem(26px);
87
81
  }
88
82
 
89
- code {
90
- --shiki-dark-bg: transparent;
91
- --shiki-light-bg: transparent;
92
- }
93
-
94
83
  kbd {
95
84
  @include type-style('code', false) {
96
85
  margin: 0;
@@ -106,14 +95,13 @@
106
95
  code:not(pre code) {
107
96
  @include type-style('code', false) {
108
97
  margin: 0;
98
+ line-height: normal;
109
99
  };
110
100
 
111
- background: light-dark(var(--ig-primary-50), #112031);
112
- color: light-dark(var(--ig-gray-600), var(--ig-gray-400));
113
- border: rem(1px) solid light-dark(var(--ig-gray-300), #1A314A);
114
-
115
- padding: 0 rem(4px);
116
101
  border-radius: rem(4px);
102
+ color: light-dark(var(--ig-gray-900), var(--ig-gray-800));
103
+ background: light-dark(var(--ig-gray-100), #112031);
104
+ border: rem(1px) solid light-dark(var(--ig-gray-200), #1A314A);
117
105
  }
118
106
 
119
107
  ul,
@@ -127,6 +115,10 @@
127
115
  padding-block: 0;
128
116
  color: inherit;
129
117
 
118
+ ::marker {
119
+ color: var(--ig-primary-500);
120
+ }
121
+
130
122
  li {
131
123
  > strong {
132
124
  @include type-style('subtitle-2') {
@@ -138,14 +130,14 @@
138
130
  position: relative;
139
131
  color: inherit;
140
132
  padding-inline: 0 rem(8px);
141
- padding-block: rem(8px);
133
+ padding-block: rem(4px);
142
134
 
143
- > .shiki {
144
- margin-top: rem(8px);
135
+ ::marker {
136
+ color: var(--ig-primary-500);
145
137
  }
146
138
 
147
- ::marker {
148
- color: var(--ig-gray-700);
139
+ > .shiki {
140
+ margin-top: rem(8px);
149
141
  }
150
142
 
151
143
  &:has(> ul) {
@@ -198,27 +190,63 @@
198
190
  }
199
191
 
200
192
  a {
201
- color: inherit;
202
193
  text-decoration: underline;
203
194
  }
204
195
 
205
196
  margin-block-end: rem(26px);
206
197
  }
207
198
 
208
- > a {
199
+ a {
209
200
  font-size: inherit;
210
- color: inherit;
201
+ color: light-dark(var(--ig-primary-500), var(--ig-primary-200));
211
202
  text-decoration: underline;
212
203
 
213
204
  &:hover,
214
205
  &:focus {
215
206
  color: light-dark(var(--ig-primary-600), var(--ig-primary-100));
216
- outline-offset: rem(2px);
217
- outline: solid rem(1px);
218
- outline-color: inherit;
207
+ }
208
+
209
+ &:focus,
210
+ &:focus-visible {
211
+ outline: none;
212
+ }
213
+
214
+ code {
215
+ color: inherit ;
216
+ }
217
+ }
218
+
219
+ a:has(code) {
220
+ &:hover,
221
+ &:focus {
222
+ code {
223
+ color: var(--igd-accent);
224
+ border-color: var(--ig-primary-100);
225
+ }
219
226
  }
220
227
  }
221
228
 
229
+ label {
230
+ @include type-style('body-2') {
231
+ margin-block: 0;
232
+ }
233
+ }
234
+
235
+ a[target="_blank"]::after {
236
+ content: "";
237
+ display: inline-block;
238
+ width: 1em;
239
+ height: 1em;
240
+ margin-inline-start: 0.2em;
241
+ vertical-align: middle;
242
+ background-color: currentColor;
243
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.21162 15C3.86637 15 3.57812 14.8844 3.34688 14.6531C3.11563 14.4219 3 14.1336 3 13.7884V4.21162C3 3.86637 3.11563 3.57812 3.34688 3.34688C3.57812 3.11563 3.86637 3 4.21162 3H8.42306V3.75H4.21162C4.09613 3.75 3.99031 3.79806 3.89419 3.89419C3.79806 3.99031 3.75 4.09613 3.75 4.21162V13.7884C3.75 13.9039 3.79806 14.0097 3.89419 14.1058C3.99031 14.2019 4.09613 14.25 4.21162 14.25H13.7884C13.9039 14.25 14.0097 14.2019 14.1058 14.1058C14.2019 14.0097 14.25 13.9039 14.25 13.7884V9.57694H15V13.7884C15 14.1336 14.8844 14.4219 14.6531 14.6531C14.4219 14.8844 14.1336 15 13.7884 15H4.21162ZM7.30388 11.2269L6.77306 10.6961L13.7192 3.75H10.5V3H15V7.5H14.25V4.28081L7.30388 11.2269Z'/%3E%3C/svg%3E");
244
+ mask-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.21162 15C3.86637 15 3.57812 14.8844 3.34688 14.6531C3.11563 14.4219 3 14.1336 3 13.7884V4.21162C3 3.86637 3.11563 3.57812 3.34688 3.34688C3.57812 3.11563 3.86637 3 4.21162 3H8.42306V3.75H4.21162C4.09613 3.75 3.99031 3.79806 3.89419 3.89419C3.79806 3.99031 3.75 4.09613 3.75 4.21162V13.7884C3.75 13.9039 3.79806 14.0097 3.89419 14.1058C3.99031 14.2019 4.09613 14.25 4.21162 14.25H13.7884C13.9039 14.25 14.0097 14.2019 14.1058 14.1058C14.2019 14.0097 14.25 13.9039 14.25 13.7884V9.57694H15V13.7884C15 14.1336 14.8844 14.4219 14.6531 14.6531C14.4219 14.8844 14.1336 15 13.7884 15H4.21162ZM7.30388 11.2269L6.77306 10.6961L13.7192 3.75H10.5V3H15V7.5H14.25V4.28081L7.30388 11.2269Z'/%3E%3C/svg%3E");
245
+ mask-size: contain;
246
+ mask-repeat: no-repeat;
247
+ mask-position: center;
248
+ }
249
+
222
250
  .igd-defined-in {
223
251
  > span {
224
252
  white-space: nowrap;
@@ -308,12 +336,10 @@
308
336
  img {
309
337
  display: block;
310
338
  max-width: 100%;
311
- width: 100%;
312
339
  height: auto;
313
340
  margin-block-end: rem(26px);
314
341
  border-radius: var(--igd-border-radius);
315
342
  content-visibility: auto;
316
- object-fit: cover;
317
343
  }
318
344
 
319
345
  // Image wrapped in a link — no underline, contain the block margin
@@ -351,7 +377,7 @@
351
377
  blockquote {
352
378
  padding: rem(16px);
353
379
  border-inline-start-width: rem(1px);
354
- border-inline-start-color: var(--ig-gray-500);
380
+ border-inline-start-color: var(--ig-gray-600);
355
381
  margin-block-end: rem(26px);
356
382
 
357
383
  p:only-child {
@@ -364,6 +390,13 @@
364
390
  }
365
391
  }
366
392
 
393
+ q {
394
+ @include type-style('detail-1', false) {
395
+ margin: 0;
396
+ font-style: italic;
397
+ }
398
+ }
399
+
367
400
  blockquote .small,
368
401
  blockquote footer,
369
402
  blockquote small {
@@ -303,16 +303,8 @@
303
303
  igc-input::part(container) {
304
304
  border: 0;
305
305
  height: 100%;
306
- padding: 0 rem(16px) !important;
306
+ padding: 0 !important;
307
307
  border-block-end: none !important;
308
-
309
- &:focus-within {
310
- box-shadow:
311
- 0 0 0 1px var(--igd-accent),
312
- inset 0 1px 0 var(--igd-accent),
313
- inset 0 -1px 0 var(--igd-accent),
314
- inset -1px 0 0 var(--igd-accent);
315
- }
316
308
  }
317
309
  }
318
310
 
@@ -371,6 +363,7 @@
371
363
 
372
364
  .igd-search-icon {
373
365
  color: light-dark(var(--ig-gray-900), var(--ig-gray-500));
366
+ margin-inline-start: rem(8px);
374
367
  }
375
368
 
376
369
  }
@@ -1,10 +1,8 @@
1
1
  @use 'igniteui-theming' as *;
2
2
 
3
- $typeface: 'Instrument Sans Variable', 'Segoe UI', system-ui, sans-serif;
4
-
5
3
  $h1: type-style(
6
- $font-size: rem(36px),
7
- $font-weight: 600,
4
+ $font-size: rem(32px),
5
+ $font-weight: 800,
8
6
  $letter-spacing: normal,
9
7
  $line-height: rem(40px),
10
8
  $text-transform: none,
@@ -13,50 +11,50 @@ $h1: type-style(
13
11
  );
14
12
 
15
13
  $h2: type-style(
16
- $font-size: rem(28px),
17
- $font-weight: 500,
14
+ $font-size: rem(24px),
15
+ $font-weight: 700,
18
16
  $letter-spacing: normal,
19
- $line-height: rem(28px),
17
+ $line-height: rem(32px),
20
18
  $text-transform: none,
21
19
  $margin-top: 0,
22
20
  $margin-bottom: rem(26px),
23
21
  );
24
22
 
25
23
  $h3: type-style(
26
- $font-size: rem(24px),
27
- $font-weight: 600,
24
+ $font-size: rem(20px),
25
+ $font-weight: 500,
28
26
  $letter-spacing: normal,
29
- $line-height: rem(24px),
27
+ $line-height: rem(28px),
30
28
  $text-transform: none,
31
29
  $margin-top: 0,
32
30
  $margin-bottom: rem(26px),
33
31
  );
34
32
 
35
33
  $h4: type-style(
36
- $font-size: rem(20px),
37
- $font-weight: 400,
34
+ $font-size: rem(16px),
35
+ $font-weight: 700,
38
36
  $letter-spacing: normal,
39
- $line-height: rem(20px),
37
+ $line-height: rem(24px),
40
38
  $text-transform: none,
41
39
  $margin-top: 0,
42
40
  $margin-bottom: rem(26px),
43
41
  );
44
42
 
45
43
  $h5: type-style(
46
- $font-size: rem(18px),
47
- $font-weight: 500,
44
+ $font-size: rem(14px),
45
+ $font-weight: 700,
48
46
  $letter-spacing: normal,
49
- $line-height: rem(18px),
47
+ $line-height: rem(20px),
50
48
  $text-transform: none,
51
49
  $margin-top: 0,
52
50
  $margin-bottom: rem(26px),
53
51
  );
54
52
 
55
53
  $h6: type-style(
56
- $font-size: rem(16px),
57
- $font-weight: 700,
54
+ $font-size: rem(14px),
55
+ $font-weight: 500,
58
56
  $letter-spacing: normal,
59
- $line-height: rem(18px),
57
+ $line-height: rem(20px),
60
58
  $text-transform: none,
61
59
  $margin-top: 0,
62
60
  $margin-bottom: rem(26px),
@@ -16,7 +16,7 @@
16
16
 
17
17
  --igd-accent: var(--ig-primary-500);
18
18
  --igd-illustration: var(--igd-accent);
19
- --igd-on-accent: var(--ig-primary-500-contrast);
19
+ --igd-on-accent: var(--ig-primary-600-contrast);
20
20
  --igd-border-radius: #{rem(4px)};
21
21
 
22
22
  --igd-app-bg: light-dark(var(--ig-surface-50), #0A0B10);
@@ -71,7 +71,7 @@
71
71
 
72
72
  // ASIDE MDX
73
73
  --igd-aside-padding: #{rem(16px)};
74
- --igd-aside-row-gap: #{rem(16px)};
74
+ --igd-aside-row-gap: #{rem(4px)};
75
75
  --igd-aside-column-gap: #{rem(16px)};
76
76
  --igd-aside-border-width: #{rem(2px)};
77
77
  --igd-aside-border-radius: 0;
@@ -81,21 +81,21 @@
81
81
  --igd-aside-info-title: light-dark(var(--ig-primary-700), var(--ig-primary-400));
82
82
  --igd-aside-info-content: light-dark(var(--ig-primary-800), var(--ig-primary-200));
83
83
  --igd-aside-info-icon: light-dark(var(--ig-primary-700), var(--ig-primary-400));
84
- --igd-aside-info-bg: transparent;
84
+ --igd-aside-info-bg: light-dark(var(--ig-primary-50), var(--ig-primary-900));
85
85
  --igd-aside-info-border: light-dark(var(--ig-primary-700), var(--ig-primary-400));
86
86
  --igd-aside-info-code-background: light-dark(var(--ig-primary-100), var(--ig-primary-900));
87
87
 
88
88
  --igd-aside-warning-title: light-dark(var(--ig-secondary-700), var(--ig-secondary-400));
89
89
  --igd-aside-warning-content: light-dark(var(--ig-secondary-700), var(--ig-secondary-300));
90
90
  --igd-aside-warning-icon: light-dark(var(--ig-secondary-700), var(--ig-secondary-400));
91
- --igd-aside-warning-bg: transparent;
91
+ --igd-aside-warning-bg: light-dark(var(--ig-secondary-50), var(--ig-secondary-900));
92
92
  --igd-aside-warning-border: light-dark(var(--ig-secondary-700), var(--ig-secondary-400));
93
93
  --igd-aside-warning-code-background: light-dark(var(--ig-secondary-100), var(--ig-secondary-900));
94
94
 
95
- --igd-aside-note-title: light-dark(var(--ig-gray-700), var(--ig-gray-400));
96
- --igd-aside-note-content: light-dark(var(--ig-gray-800), var(--ig-gray-200));
95
+ --igd-aside-note-title: light-dark(var(--ig-gray-700), var(--ig-gray-500));
96
+ --igd-aside-note-content: light-dark(var(--ig-gray-800), var(--ig-gray-400));
97
97
  --igd-aside-note-icon: light-dark(var(--ig-gray-700), var(--ig-gray-400));
98
- --igd-aside-note-bg: transparent;
98
+ --igd-aside-note-bg: light-dark(var(--ig-gray-100), var(--ig-gray-50));
99
99
  --igd-aside-note-border: light-dark(var(--ig-gray-700), var(--ig-gray-400));
100
100
  --igd-aside-note-code-background: light-dark(var(--ig-sgray-100), var(--ig-secondary-900));
101
101
 
@@ -33,7 +33,7 @@ body {
33
33
  // The actual @font-face rules come from @fontsource-variable (imported in DocsLayout.astro).
34
34
  :root {
35
35
  --ig-theme: fluent;
36
- --font-sans: 'Instrument Sans Variable';
36
+ --font-heading: 'aktiv-grotesk';
37
37
  --font-mono: 'JetBrains Mono Variable'; // fallback should be 'Cascadia Code', 'Fira Code', monospace
38
38
  }
39
39
 
@@ -42,7 +42,7 @@ body {
42
42
  @include elevations($material-elevations);
43
43
 
44
44
  @include typography(
45
- $font-family: '"Instrument Sans Variable", "Segoe UI", system-ui, sans-serif',
45
+ $font-family: '"Inter Variable", "Segoe UI", system-ui, sans-serif',
46
46
  $type-scale: $igd-type-scale
47
47
  );
48
48
 
@@ -57,6 +57,21 @@ body {
57
57
  font-family: var(--font-sans), 'Segoe UI', system-ui, sans-serif;
58
58
  }
59
59
 
60
+ h1,
61
+ .igd-h1,
62
+ h2,
63
+ .igd-h2,
64
+ h3,
65
+ .igd-h3,
66
+ h4,
67
+ .igd-h4,
68
+ h5,
69
+ .igd-h5,
70
+ h6,
71
+ .igd-h6 {
72
+ font-family: var(--font-heading), 'Inter Variable', 'Segoe UI', system-ui, sans-serif;
73
+ }
74
+
60
75
  .visually-hidden {
61
76
  visibility: hidden;
62
77
  opacity: 0;
@@ -87,6 +102,19 @@ body {
87
102
  }
88
103
  igc-dialog:not(:defined) { display: none; }
89
104
 
105
+ // Disable Astro view-transition animation for the sidebar and subheader so they
106
+ // switch instantly — only the main content and TOC cross-fade between pages.
107
+ ::view-transition-old(docs-sidebar),
108
+ ::view-transition-old(docs-subheader) {
109
+ animation: none;
110
+ opacity: 0;
111
+ }
112
+ ::view-transition-new(docs-sidebar),
113
+ ::view-transition-new(docs-subheader) {
114
+ animation: none;
115
+ opacity: 1;
116
+ }
117
+
90
118
  igc-icon {
91
119
  padding: 0;
92
120
  }
@@ -27,6 +27,10 @@ declare module 'virtual:docs-template/site-meta' {
27
27
  }>;
28
28
  /** Astro trailingSlash config value: 'always' | 'never' | 'ignore'. */
29
29
  export const trailingSlash: 'always' | 'never' | 'ignore';
30
+ /** Optional package switcher entries. */
31
+ export const packages: Array<string | { label: string; value?: string; href?: string }> | undefined;
32
+ /** Currently selected package. */
33
+ export const selectedPackage: string | undefined;
30
34
  }
31
35
 
32
36
  declare module 'virtual:docs-template/nav-html' {