igniteui-astro-components 0.0.27 → 0.0.29
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/README.md +82 -74
- package/package.json +16 -2
- package/src/assets/images/anatomy-test.png +0 -0
- package/src/components/CopyCode/CopyCode.astro +21 -7
- package/src/components/DocsBreadcrumb/DocsBreadcrumb.astro +33 -21
- package/src/components/DocsBreadcrumb/DocsBreadcrumb.scss +44 -43
- package/src/components/DocsBreadcrumb/README.md +10 -14
- package/src/components/DocsSidebar/DocsSidebar.astro +47 -45
- package/src/components/DocsSidebar/DocsSidebar.scss +120 -122
- package/src/components/DocsSidebar/README.md +25 -21
- package/src/components/DocsSidebar/SidebarFilterInput.astro +24 -29
- package/src/components/DocsSidebar/SidebarFilterInput.scss +90 -89
- package/src/components/DocsSidebar/SidebarLabel.astro +35 -26
- package/src/components/DocsSidebar/sidebar-filter.ts +93 -56
- package/src/components/DocsSubHeader/DocsSubHeader.astro +256 -195
- package/src/components/DocsSubHeader/DocsSubHeader.scss +181 -178
- package/src/components/DocsSubHeader/README.md +18 -16
- package/src/components/DocsToc/DocsToc.astro +301 -280
- package/src/components/DocsToc/DocsToc.scss +20 -21
- package/src/components/DocsToc/README.md +11 -9
- package/src/components/DocsToc/toTreeNodes.ts +3 -8
- package/src/components/DocsTree/DocsTree.astro +32 -20
- package/src/components/DocsTree/DocsTreeItem.astro +35 -30
- package/src/components/DocsTree/README.md +16 -15
- package/src/components/DocsTree/docs-tree.scss +267 -268
- package/src/components/GlobalFooter/GlobalFooter.astro +10 -10
- package/src/components/GlobalFooter/README.md +3 -2
- package/src/components/GlobalNavBar/GlobalNavBar.astro +4 -2
- package/src/components/GlobalNavBar/GlobalNavBar.module.scss +222 -222
- package/src/components/GlobalNavBar/README.md +3 -2
- package/src/components/LicenseIndicator/LicenseIndicator.astro +7 -5
- package/src/components/LicenseIndicator/LicenseIndicator.scss +3 -3
- package/src/components/MobileSidebarToggle/MobileSidebarToggle.astro +16 -17
- package/src/components/MobileSidebarToggle/README.md +3 -2
- package/src/components/MobileTocToggle/MobileTocToggle.astro +75 -61
- package/src/components/MobileTocToggle/MobileTocToggle.scss +65 -59
- package/src/components/Search/README.md +1 -0
- package/src/components/Search/Search.astro +137 -109
- package/src/components/Search/Search.scss +20 -20
- package/src/components/SearchAdvanced/README.md +21 -15
- package/src/components/SearchAdvanced/SearchAdvanced.astro +205 -133
- package/src/components/SearchAdvanced/SearchAdvanced.scss +152 -153
- package/src/components/mdx/Anatomy/Anatomy.astro +51 -0
- package/src/components/mdx/Anatomy/Anatomy.scss +40 -0
- package/src/components/mdx/ApiLink/ApiLink.astro +133 -113
- package/src/components/mdx/ApiLink/ApiLink.scss +9 -9
- package/src/components/mdx/ApiLink/README.md +26 -22
- package/src/components/mdx/ApiLink/api-link-index.ts +196 -173
- package/src/components/mdx/ApiRef/ApiRef.astro +54 -51
- package/src/components/mdx/ApiRef/README.md +20 -15
- package/src/components/mdx/Badge/Badge.astro +14 -14
- package/src/components/mdx/Badge/Badge.scss +61 -56
- package/src/components/mdx/Badge/README.md +24 -19
- package/src/components/mdx/DocsAside/DocsAside.astro +30 -37
- package/src/components/mdx/DocsAside/DocsAside.scss +82 -82
- package/src/components/mdx/DocsAside/README.md +22 -22
- package/src/components/mdx/Faq/Faq.astro +86 -0
- package/src/components/mdx/Faq/Faq.scss +105 -0
- package/src/components/mdx/Faq/FaqItem.astro +117 -0
- package/src/components/mdx/Faq/README.md +223 -0
- package/src/components/mdx/Faq/types.ts +34 -0
- package/src/components/mdx/PlatformBlock/PlatformBlock.astro +3 -2
- package/src/components/mdx/PlatformBlock/README.md +6 -8
- package/src/components/mdx/Sample/README.md +21 -16
- package/src/components/mdx/Sample/Sample.astro +97 -74
- package/src/components/mdx/Sample/Sample.scss +132 -132
- package/src/content-helper.ts +71 -72
- package/src/content.config.ts +1 -6
- package/src/integration.ts +566 -512
- package/src/layouts/DocsLayout/DocsLayout.astro +228 -182
- package/src/layouts/DocsLayout/DocsLayout.scss +261 -261
- package/src/layouts/DocsLayout/README.md +24 -35
- package/src/lib/nav-helpers.ts +88 -82
- package/src/lib/types.ts +76 -76
- package/src/llms.ts +205 -166
- package/src/platform.ts +312 -162
- package/src/plugins/rehype-heading-anchors.ts +45 -45
- package/src/plugins/rehype-pagefind-ignore.ts +19 -19
- package/src/plugins/rehype-table-wrapper.ts +30 -30
- package/src/plugins/remark-docfx.ts +12 -0
- package/src/plugins/remark-env-vars.ts +12 -4
- package/src/plugins/remark-md-links.ts +10 -4
- package/src/scripts/icon-manifest.ts +13 -5
- package/src/scripts/sample-widget.ts +557 -501
- package/src/sidebar.ts +103 -97
- package/src/styles/global/_code-blocks.scss +43 -44
- package/src/styles/global/_component-themes.scss +151 -153
- package/src/styles/global/_icon-gallery.scss +81 -81
- package/src/styles/global/_index.scss +0 -1
- package/src/styles/global/_markdown.scss +816 -787
- package/src/styles/global/_palette.scss +456 -110
- package/src/styles/global/_search-shared.scss +402 -398
- package/src/styles/global/_type-scale.scss +127 -127
- package/src/styles/global/_variables.scss +138 -111
- package/src/styles/theme.scss +41 -41
- package/src/virtual-modules.d.ts +11 -2
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
igc-tree {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
--ig-tree-background: transparent;
|
|
18
|
+
--ig-size: 1;
|
|
19
|
+
|
|
20
|
+
position: relative;
|
|
21
|
+
padding-inline: rem(12px);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
// TODO KEEP THIS IF WEE NEED ADDITIONAL VISUAL INDICATOR FOR THE TOC
|
|
@@ -58,341 +58,340 @@ igc-tree {
|
|
|
58
58
|
// anchor-name: --selected-tree-item;
|
|
59
59
|
//}
|
|
60
60
|
|
|
61
|
-
|
|
62
61
|
igc-tree[data-variant='sidebar'] {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
62
|
+
igc-tree-item + igc-tree-item[data-has-children] {
|
|
63
|
+
margin-block-start: rem(4px);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.docs-tree-label {
|
|
67
|
+
@include type-style('body-2') {
|
|
68
|
+
margin-block: 0;
|
|
69
|
+
line-height: rem(20px);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
igc-tree-item[aria-expanded] {
|
|
74
|
+
&::part(wrapper) {
|
|
75
|
+
border-radius: rem(4px);
|
|
76
|
+
|
|
77
|
+
&:hover {
|
|
78
|
+
background-color: var(--ig-gray-50);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.docs-tree-group {
|
|
83
|
+
padding-block: rem(8px);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
igc-tree-item[aria-expanded][active] {
|
|
88
|
+
&::part(wrapper) {
|
|
89
|
+
background-color: var(--ig-gray-50);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
94
92
|
}
|
|
95
93
|
|
|
96
94
|
igc-tree[data-variant='toc'] {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
95
|
+
igc-tree-item[data-depth='0']::part(label) {
|
|
96
|
+
font-weight: 600 !important;
|
|
97
|
+
color: var(--ig-gray-900);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
igc-tree-item:not([data-has-children]) {
|
|
101
|
+
margin-block: rem(6px);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
igc-tree-item:not([data-depth='0'], [data-has-children]) {
|
|
105
|
+
margin-left: rem(16px);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
igc-tree-item[data-depth='0'] {
|
|
109
|
+
margin-block: rem(16px) 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
igc-tree-item::part(wrapper) {
|
|
113
|
+
line-height: 22.75px !important;
|
|
114
|
+
margin: 0 !important;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
> igc-tree-item:first-of-type {
|
|
118
|
+
margin-block-start: 0;
|
|
119
|
+
}
|
|
122
120
|
}
|
|
123
121
|
|
|
124
122
|
igc-tree-item {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
123
|
+
--igc-tree-indentation-size: 0;
|
|
124
|
+
--background: transparent;
|
|
125
|
+
--foreground: light-dark(var(--ig-gray-600), var(--ig-gray-400));
|
|
126
|
+
--background-selected: transparent;
|
|
127
|
+
--background-active: transparent;
|
|
128
|
+
--foreground-active: light-dark(var(--ig-gray-600), var(--ig-gray-400));
|
|
129
|
+
--foreground-hover: light-dark(var(--ig-gray-600), var(--ig-gray-400));
|
|
130
|
+
--hover-background: light-dark(var(--ig-gray-600), var(--ig-gray-400));
|
|
131
|
+
--background-disabled: transparent;
|
|
132
|
+
--hover-color: transparent;
|
|
133
|
+
--hover-selected-color: transparent;
|
|
134
|
+
--background-active-selected: transparent;
|
|
135
|
+
--foreground-selected: transparent;
|
|
136
|
+
--foreground-active-selected: light-dark(var(--ig-gray-600), var(--ig-gray-400));
|
|
137
|
+
//--ig-tree-size: #{rem(32px)};
|
|
138
|
+
|
|
139
|
+
a {
|
|
140
|
+
position: absolute;
|
|
141
|
+
inset: 0;
|
|
142
|
+
align-items: center;
|
|
143
|
+
color: inherit;
|
|
144
|
+
text-decoration: none;
|
|
145
|
+
width: 100%;
|
|
146
|
+
height: 100%;
|
|
147
|
+
|
|
148
|
+
&:focus {
|
|
149
|
+
outline: none;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
cursor: default;
|
|
156
154
|
}
|
|
157
155
|
|
|
158
156
|
igc-tree:not([data-variant='toc']) {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
157
|
+
igc-tree-item::part(wrapper) {
|
|
158
|
+
@include type-style('body-2') {
|
|
159
|
+
margin-block: 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
padding-inline: 0;
|
|
163
|
+
}
|
|
166
164
|
}
|
|
167
165
|
|
|
168
166
|
igc-tree[data-variant='toc'] {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
167
|
+
igc-tree-item::part(wrapper) {
|
|
168
|
+
@include type-style('body-2') {
|
|
169
|
+
margin-block: 0;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
igc-tree-item[active] {
|
|
174
|
+
.group-label-text {
|
|
175
|
+
color: var(--igd-accent);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
180
178
|
}
|
|
181
179
|
|
|
182
180
|
igc-tree-item::part(focused) {
|
|
183
|
-
|
|
181
|
+
box-shadow: none;
|
|
184
182
|
}
|
|
185
183
|
|
|
186
184
|
igc-tree-item::part(indicator) {
|
|
187
|
-
|
|
185
|
+
display: none;
|
|
188
186
|
}
|
|
189
187
|
|
|
190
188
|
igc-tree-item::part(label) {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
189
|
+
width: 100%;
|
|
190
|
+
max-height: 100%;
|
|
191
|
+
padding-block: 0;
|
|
192
|
+
text-overflow: unset;
|
|
193
|
+
white-space: unset;
|
|
194
|
+
word-break: break-word;
|
|
195
|
+
overflow: unset;
|
|
199
196
|
}
|
|
200
197
|
|
|
201
198
|
igc-tree-item[data-has-children] {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
199
|
+
> [slot='label'] {
|
|
200
|
+
display: flex;
|
|
201
|
+
align-items: center;
|
|
202
|
+
width: 100%;
|
|
203
|
+
}
|
|
207
204
|
}
|
|
208
205
|
|
|
209
206
|
.tree-expand-icon {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
207
|
+
margin-inline-start: auto;
|
|
208
|
+
flex-shrink: 0;
|
|
209
|
+
color: inherit;
|
|
210
|
+
transform: rotate(-90deg);
|
|
211
|
+
transition: transform 0.2s ease;
|
|
212
|
+
margin-inline-end: rem(1px);
|
|
216
213
|
}
|
|
217
214
|
|
|
218
215
|
igc-tree-item[aria-expanded='false'] > [slot='label'] {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
216
|
+
.tree-expand-icon {
|
|
217
|
+
color: var(--igd-accent);
|
|
218
|
+
}
|
|
222
219
|
}
|
|
223
220
|
|
|
224
221
|
igc-tree-item[aria-expanded='true'] > [slot='label'] {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
222
|
+
.tree-expand-icon {
|
|
223
|
+
transform: rotate(0deg);
|
|
224
|
+
color: light-dark(var(--ig-gray-800), var(--ig-gray-300));
|
|
225
|
+
}
|
|
229
226
|
}
|
|
230
227
|
|
|
231
228
|
igc-tree-item[data-has-children][data-depth='0'] {
|
|
232
|
-
|
|
229
|
+
--igc-tree-indentation-size: 0;
|
|
233
230
|
}
|
|
234
231
|
|
|
235
232
|
igc-tree-item[data-has-children] {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
233
|
+
--foreground: light-dark(var(--ig-gray-900), var(--ig-gray-600));
|
|
234
|
+
--foreground-selected: light-dark(var(--ig-gray-900), var(--ig-gray-600));
|
|
235
|
+
--foreground-active-selected: light-dark(var(--ig-gray-900), var(--ig-gray-600));
|
|
236
|
+
--foreground-active: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
237
|
+
--foreground-hover: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
241
238
|
}
|
|
242
239
|
|
|
243
240
|
// This are the igc-tree-item that dont have igc-tree-item inside
|
|
244
241
|
igc-tree-item:not([data-has-children]) {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
242
|
+
&::part(wrapper) {
|
|
243
|
+
--size: auto;
|
|
244
|
+
|
|
245
|
+
margin-block: rem(2px) !important;
|
|
246
|
+
}
|
|
250
247
|
}
|
|
251
248
|
|
|
252
249
|
igc-tree-item:not([data-depth='0'], [data-has-children]) {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
250
|
+
.docs-tree-label {
|
|
251
|
+
font-weight: 400;
|
|
252
|
+
}
|
|
256
253
|
}
|
|
257
254
|
|
|
258
255
|
.docs-tree-label {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
256
|
+
display: -webkit-box;
|
|
257
|
+
-webkit-line-clamp: 2;
|
|
258
|
+
-webkit-box-orient: vertical;
|
|
259
|
+
overflow: hidden;
|
|
260
|
+
white-space: normal;
|
|
261
|
+
word-break: break-word;
|
|
265
262
|
}
|
|
266
263
|
|
|
267
264
|
/* Hover accent applies to leaf items (sidebar) and all linked items (TOC) */
|
|
268
265
|
//.docs-tree-link:hover ~ .docs-tree-label,
|
|
269
266
|
igc-tree-item:not([data-has-children]):hover .docs-tree-label {
|
|
270
|
-
|
|
267
|
+
color: var(--igd-accent);
|
|
271
268
|
}
|
|
272
269
|
|
|
273
270
|
.igd-label-and-badge {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
271
|
+
position: relative;
|
|
272
|
+
border-radius: rem(4px);
|
|
273
|
+
padding-block: rem(8px);
|
|
274
|
+
padding-inline-start: rem(12px);
|
|
275
|
+
padding-inline-end: rem(8px);
|
|
276
|
+
height: 100%;
|
|
277
|
+
z-index: -1;
|
|
278
|
+
|
|
279
|
+
//&::before {
|
|
280
|
+
// content: '';
|
|
281
|
+
// position: absolute;
|
|
282
|
+
// inset-block-start: 0;
|
|
283
|
+
// inset-inline-end: calc(100% + (var(--igc-tree-indentation-size) / 2));
|
|
284
|
+
// width: rem(1px);
|
|
285
|
+
// height: calc(100% + rem(4px));
|
|
286
|
+
// border-radius: 0;
|
|
287
|
+
// background: light-dark(var(--ig-gray-300), var(--ig-gray-300));
|
|
288
|
+
//}
|
|
292
289
|
}
|
|
293
290
|
|
|
294
291
|
.docs-tree-link {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
292
|
+
&:hover,
|
|
293
|
+
&:focus {
|
|
294
|
+
+ .igd-label-and-badge {
|
|
295
|
+
background-color: var(--ig-gray-50);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
301
298
|
}
|
|
302
299
|
|
|
303
300
|
igc-tree-item[selected] {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
301
|
+
igc-tree-item[selected]:not([aria-expanded]) {
|
|
302
|
+
.igd-label-and-badge {
|
|
303
|
+
color: var(--igd-on-accent);
|
|
304
|
+
background-color: var(--igd-accent);
|
|
305
|
+
|
|
306
|
+
.docs-tree-label {
|
|
307
|
+
color: var(--igd-on-accent);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
&:has(.igd-label-and-badge) {
|
|
312
|
+
&:hover,
|
|
313
|
+
&:focus {
|
|
314
|
+
.igd-label-and-badge {
|
|
315
|
+
background-color: var(--igd-accent);
|
|
316
|
+
|
|
317
|
+
.docs-tree-label {
|
|
318
|
+
color: #fff;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.sidebar-premium-icon {
|
|
325
|
+
color: var(--igd-on-accent);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
igc-badge {
|
|
329
|
+
&.preview {
|
|
330
|
+
--border-color: var(--igd-on-accent);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
&.new {
|
|
334
|
+
--background-color: var(--igd-new-bg);
|
|
335
|
+
--text-color: var(--igd-new-color);
|
|
336
|
+
--icon-color: var(--igd-new-color);
|
|
337
|
+
--border-color: var(--igd-on-accent);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
&.updated {
|
|
341
|
+
--background-color: var(--igd-updated-bg);
|
|
342
|
+
--text-color: var(--igd-updated-color);
|
|
343
|
+
--icon-color: var(--igd-updated-color);
|
|
344
|
+
--border-color: var(--igd-on-accent);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
&.premium {
|
|
348
|
+
--background-color: var(--igd-premium-bg);
|
|
349
|
+
--text-color: var(--igd-premium-color);
|
|
350
|
+
--icon-color: var(--igd-premium-color);
|
|
351
|
+
--border-color: var(--igd-on-accent);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
&.opensource {
|
|
355
|
+
--background-color: var(--igd-opensource-bg);
|
|
356
|
+
--text-color: var(--igd-opensource-color);
|
|
357
|
+
--icon-color: var(--igd-opensource-color);
|
|
358
|
+
--border-color: var(--igd-on-accent);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
365
362
|
}
|
|
366
363
|
|
|
367
364
|
igc-tree[data-variant='sidebar'] {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
365
|
+
overflow: hidden;
|
|
366
|
+
|
|
367
|
+
igc-tree-item[data-has-children] {
|
|
368
|
+
--foreground: light-dark(var(--ig-gray-900), var(--ig-gray-600));
|
|
369
|
+
--foreground-selected: light-dark(var(--ig-gray-900), var(--ig-gray-600));
|
|
370
|
+
--foreground-active-selected: light-dark(var(--ig-gray-900), var(--ig-gray-600));
|
|
371
|
+
--foreground-active: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
372
|
+
}
|
|
376
373
|
}
|
|
377
374
|
|
|
378
375
|
igc-tree[data-variant='toc'] {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
376
|
+
/* TOC variant — active link highlighted by scroll-spy via aria-current="true". */
|
|
377
|
+
.docs-tree-link[aria-current='true'] {
|
|
378
|
+
color: var(--igd-accent);
|
|
379
|
+
|
|
380
|
+
+ .docs-tree-label {
|
|
381
|
+
color: var(--igd-accent);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/* No expand/collapse icons in the TOC — all items are links */
|
|
386
|
+
.tree-expand-icon {
|
|
387
|
+
display: none;
|
|
388
|
+
}
|
|
392
389
|
}
|
|
393
390
|
|
|
394
391
|
/* Filter visibility — driven by <sidebar-filter>. */
|
|
395
392
|
// Removing this will break the filter in the sidebar
|
|
396
|
-
sidebar-filter[data-filtering]
|
|
397
|
-
|
|
393
|
+
sidebar-filter[data-filtering]
|
|
394
|
+
igc-tree[data-variant='sidebar']
|
|
395
|
+
igc-tree-item[data-path]:not([data-filter-match]) {
|
|
396
|
+
display: none;
|
|
398
397
|
}
|
|
@@ -26,15 +26,15 @@ const resolvedLang = lang;
|
|
|
26
26
|
// Fetch footer HTML directly (cached per locale per build).
|
|
27
27
|
const igNav = await fetchIgNav(resolvedLang);
|
|
28
28
|
---
|
|
29
|
-
<div class={styles.footer} data-igd-footer>
|
|
30
29
|
|
|
31
|
-
{
|
|
32
|
-
{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
30
|
+
<div class={styles.footer} data-igd-footer>
|
|
31
|
+
{/* === IgniteUI / default Infragistics footer — fetched via fetchIgNav() === */}
|
|
32
|
+
{
|
|
33
|
+
igNav?.prefetched && (
|
|
34
|
+
<>
|
|
35
|
+
<Fragment set:html={igNav.uiFooterHtml} />
|
|
36
|
+
{igNav.footerHtml && <Fragment set:html={igNav.footerHtml} />}
|
|
37
|
+
</>
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
40
|
</div>
|
|
@@ -10,8 +10,8 @@ import GlobalFooter from 'igniteui-astro-components/components/GlobalFooter.astr
|
|
|
10
10
|
|
|
11
11
|
## Props
|
|
12
12
|
|
|
13
|
-
| Prop
|
|
14
|
-
|
|
13
|
+
| Prop | Type | Description |
|
|
14
|
+
| ------ | --------- | -------------------------------------------------- |
|
|
15
15
|
| `lang` | `NavLang` | **Required.** Locale — `'en'` \| `'jp'` \| `'kr'`. |
|
|
16
16
|
|
|
17
17
|
## Behaviour
|
|
@@ -24,6 +24,7 @@ import GlobalFooter from 'igniteui-astro-components/components/GlobalFooter.astr
|
|
|
24
24
|
---
|
|
25
25
|
import GlobalFooter from 'igniteui-astro-components/components/GlobalFooter.astro';
|
|
26
26
|
---
|
|
27
|
+
|
|
27
28
|
<GlobalFooter lang="en" />
|
|
28
29
|
```
|
|
29
30
|
|