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
|
@@ -9,69 +9,69 @@
|
|
|
9
9
|
// ────────────────────────────────────────────────────────────────────────────
|
|
10
10
|
|
|
11
11
|
.igd-page-layout {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
12
|
+
display: grid;
|
|
13
|
+
grid-template-columns: var(--igd-page-layout-grid);
|
|
14
|
+
background: var(--igd-app-bg);
|
|
15
|
+
color: var(--igd-on-app-bg);
|
|
16
|
+
margin: 0;
|
|
17
|
+
position: relative;
|
|
18
|
+
z-index: 0;
|
|
19
|
+
|
|
20
|
+
&:not(:has(.igd-right-sidebar)) {
|
|
21
|
+
.igd-main-pane {
|
|
22
|
+
> main {
|
|
23
|
+
margin: 0;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.igd-main-content {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
display: grid;
|
|
31
|
+
position: relative;
|
|
32
|
+
//background: var(--ig-surface-500);
|
|
33
|
+
|
|
34
|
+
&:not(:has(.igd-right-sidebar)) {
|
|
35
|
+
.igd-main-pane {
|
|
36
|
+
> main {
|
|
37
|
+
margin: 0;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.igd-main-content__page {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
display: grid;
|
|
45
|
+
background-color: var(--igd-layout-sections-bg);
|
|
46
|
+
border-inline-end: var(--igd-app-outline);
|
|
47
|
+
width: 100%;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.igd-main-content__inner:not(:has(aside)) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
.igd-main-content__page {
|
|
52
|
+
border-inline: var(--igd-app-outline);
|
|
53
|
+
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.igd-main-content__page + aside {
|
|
57
|
-
|
|
57
|
+
margin-inline-end: auto;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.igd-main-content__inner {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
display: flex;
|
|
62
|
+
position: relative;
|
|
63
|
+
|
|
64
|
+
&:has(aside) {
|
|
65
|
+
.igd-main-content__page {
|
|
66
|
+
margin-inline-end: 0;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.content {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
max-width: 60rem;
|
|
73
|
+
margin: 0 auto;
|
|
74
|
+
padding: 0;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
// ════════════════════════════════════════════════════════════════════════════
|
|
@@ -85,236 +85,236 @@
|
|
|
85
85
|
// the docs layout and the components rendered inside `.igd-page-layout`.
|
|
86
86
|
// ════════════════════════════════════════════════════════════════════════════
|
|
87
87
|
|
|
88
|
-
|
|
89
88
|
@media (min-width: #{$bp-desktop-wide}) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
89
|
+
.igd-page-layout {
|
|
90
|
+
--igd-page-layout-grid: #{rem(400px)} 1fr;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.igd-main-content__page {
|
|
94
|
+
gap: var(--ig-padding);
|
|
95
|
+
margin-inline: auto;
|
|
96
|
+
border-inline: var(--igd-app-outline);
|
|
97
|
+
width: clamp(rem(1200px), 100%, rem(1200px));
|
|
98
|
+
}
|
|
100
99
|
}
|
|
101
100
|
|
|
102
101
|
// ── Mobile + Tablet (< 1280px) — everything below desktop ──────────────────
|
|
103
102
|
@media (max-width: #{$bp-tablet-max}) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
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
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
103
|
+
:root {
|
|
104
|
+
--igd-header-height: #{rem(60px)};
|
|
105
|
+
--igd-page-padding: #{rem(24px)};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// Single-column page grid; subheader follows via subgrid.
|
|
109
|
+
.igd-page-layout {
|
|
110
|
+
--igd-page-layout-grid: auto 1fr;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.igd-logo__text {
|
|
114
|
+
display: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.igd-main-content {
|
|
118
|
+
grid-row: 2;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.igd-search-mobile-bar {
|
|
122
|
+
display: flex;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// Sidebar becomes a fixed slide-in overlay, hidden off-screen by default.
|
|
126
|
+
.docs-sidebar {
|
|
127
|
+
--igd-sidebar-z-index: 1000;
|
|
128
|
+
|
|
129
|
+
position: fixed;
|
|
130
|
+
inset-block: 0;
|
|
131
|
+
inset-inline-start: 0;
|
|
132
|
+
height: 100dvh;
|
|
133
|
+
max-height: 100dvh;
|
|
134
|
+
width: min(rem(360px), 85vw);
|
|
135
|
+
transform: translateX(-100%);
|
|
136
|
+
transition:
|
|
137
|
+
transform 250ms ease,
|
|
138
|
+
box-shadow 250ms ease;
|
|
139
|
+
box-shadow: none;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.docs-sidebar-backdrop {
|
|
143
|
+
display: block;
|
|
144
|
+
position: fixed;
|
|
145
|
+
inset: 0;
|
|
146
|
+
z-index: 99;
|
|
147
|
+
background: light-dark(var(--ig-gray-900), var(--ig-gray-100));
|
|
148
|
+
opacity: 0;
|
|
149
|
+
pointer-events: none;
|
|
150
|
+
transition: opacity 250ms ease;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
body[data-sidebar-open] {
|
|
154
|
+
overflow: hidden;
|
|
155
|
+
|
|
156
|
+
.docs-sidebar {
|
|
157
|
+
transform: translateX(0);
|
|
158
|
+
box-shadow: var(--ig-elevation-8);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.docs-sidebar-backdrop {
|
|
162
|
+
opacity: 0.6;
|
|
163
|
+
pointer-events: auto;
|
|
164
|
+
backdrop-filter: blur(10px);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
body[data-sidebar-open],
|
|
169
|
+
body[data-search-modal-open] {
|
|
170
|
+
.globalnav {
|
|
171
|
+
z-index: 0;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// Subheader sidebar toggle reveals when the sidebar is not persistent.
|
|
176
|
+
.subheader-sidebar-toggle {
|
|
177
|
+
display: flex;
|
|
178
|
+
flex-shrink: 0;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// Logo inside the slide-in sidebar (visible only when sidebar is an overlay).
|
|
182
|
+
.igd-sidebar-logo {
|
|
183
|
+
display: flex;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.igd-main-content__inner {
|
|
187
|
+
padding-inline: 0;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// This is the height of the input in fluent theme + 8px padding + height of the logo above
|
|
191
|
+
.sidebar-gutter {
|
|
192
|
+
min-height: rem(80px);
|
|
193
|
+
align-items: center;
|
|
194
|
+
}
|
|
194
195
|
}
|
|
195
196
|
|
|
196
197
|
// ── Mobile only (< 768px) ──────────────────────────────────────────────────
|
|
197
198
|
@media (max-width: #{$bp-mobile-max}) {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
}
|
|
199
|
+
.igd-search-content {
|
|
200
|
+
max-height: 100%;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.search-decoration {
|
|
204
|
+
width: 40px;
|
|
205
|
+
aspect-ratio: 1;
|
|
206
|
+
|
|
207
|
+
.search-trigger {
|
|
208
|
+
display: none;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&:has(.search-trigger:defined)::before {
|
|
212
|
+
animation: rotation 6s linear infinite;
|
|
213
|
+
opacity: 1;
|
|
214
|
+
transition-delay: 500ms;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.search-trigger-mobile {
|
|
219
|
+
--size: 100%;
|
|
220
|
+
--border-radius: #{rem(10px)};
|
|
221
|
+
|
|
222
|
+
display: flex;
|
|
223
|
+
|
|
224
|
+
width: 100%;
|
|
225
|
+
height: 100%;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.igniteui-page-logo {
|
|
229
|
+
display: block;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.igd-version-select {
|
|
233
|
+
max-width: rem(90px);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.igd-docs-subheader {
|
|
237
|
+
padding-inline: rem(16px);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.igd-docs-subheader__content:last-child {
|
|
241
|
+
margin-inline-end: 0;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.mobile-toc {
|
|
245
|
+
display: block;
|
|
246
|
+
position: sticky;
|
|
247
|
+
top: var(--igd-header-height);
|
|
248
|
+
z-index: 10;
|
|
249
|
+
grid-column: 1 / -1;
|
|
250
|
+
border-block-end: var(--igd-app-outline);
|
|
251
|
+
background-color: var(--igd-layout-sections-bg);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.igd-main-content__markdown {
|
|
255
|
+
padding-inline: rem(32px);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// Search dialog goes fullscreen on mobile only.
|
|
259
|
+
// `.igd-page-layout` prefix bumps specificity so this beats the
|
|
260
|
+
// centered-card base styles declared in Search.scss / SearchAdvanced.scss
|
|
261
|
+
// (those files load after this one in the Astro bundle).
|
|
262
|
+
.igd-page-layout .search-dialog,
|
|
263
|
+
.igd-page-layout .igd-search-dialog::part(base) {
|
|
264
|
+
--border-radius: #{rem(8px)};
|
|
265
|
+
|
|
266
|
+
margin: 0;
|
|
267
|
+
width: 100%;
|
|
268
|
+
max-width: 100%;
|
|
269
|
+
height: 100dvh;
|
|
270
|
+
max-height: 100dvh;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.igd-search-shell {
|
|
274
|
+
grid-template-rows: auto calc(100% - (var(--search-header-footer-height) * 2)) auto;
|
|
275
|
+
|
|
276
|
+
igc-divider {
|
|
277
|
+
margin-block-start: auto;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.igd-search-footer {
|
|
282
|
+
display: flex;
|
|
283
|
+
align-items: center;
|
|
284
|
+
justify-content: end;
|
|
285
|
+
border-block-start: var(--igd-app-outline);
|
|
286
|
+
}
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
@media (max-width: #{$bp-hide-toc}) {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
290
|
+
.igd-main-content__inner {
|
|
291
|
+
aside {
|
|
292
|
+
display: none;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.igd-main-content__page {
|
|
297
|
+
border: none;
|
|
298
|
+
}
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
// ── Tablet + Desktop (≥ 768px) ─────────────────────────────────────────────
|
|
302
302
|
@media (min-width: #{$bp-tablet-min}) {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
303
|
+
.search-decoration {
|
|
304
|
+
&:has(.search-trigger-mobile:defined)::before {
|
|
305
|
+
animation: rotation 6s linear infinite;
|
|
306
|
+
opacity: 1;
|
|
307
|
+
transition-delay: 500ms;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.sidebar-gutter {
|
|
312
|
+
&:has(.igd-sidebar-logo:only-child) {
|
|
313
|
+
display: none;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.igd-page-layout {
|
|
318
|
+
justify-content: center;
|
|
319
|
+
}
|
|
320
320
|
}
|
|
@@ -10,23 +10,23 @@ import DocsLayout from 'igniteui-astro-components/layouts/DocsLayout.astro';
|
|
|
10
10
|
|
|
11
11
|
## Props
|
|
12
12
|
|
|
13
|
-
| Prop
|
|
14
|
-
|
|
15
|
-
| `title`
|
|
16
|
-
| `description` | `string \| null` | —
|
|
17
|
-
| `keywords`
|
|
18
|
-
| `hasSidebar`
|
|
19
|
-
| `currentSlug` | `string`
|
|
20
|
-
| `siteTitle`
|
|
13
|
+
| Prop | Type | Default | Description |
|
|
14
|
+
| ------------- | ---------------- | -------------- | ------------------------------------------------------------------------------------------------------------- |
|
|
15
|
+
| `title` | `string` | — | Page `<title>` prepended to the site name. Omit to show the site name only. |
|
|
16
|
+
| `description` | `string \| null` | — | `<meta name="description">` value. |
|
|
17
|
+
| `keywords` | `string \| null` | — | `<meta name="keywords">` value. |
|
|
18
|
+
| `hasSidebar` | `boolean` | `true` | Renders the sidebar rail when `true`. Provide content via `<… slot="sidebar">`. |
|
|
19
|
+
| `currentSlug` | `string` | `''` | Slug of the current page — used for breadcrumbs in the sub-header. |
|
|
20
|
+
| `siteTitle` | `string` | virtual module | Override the site name used in `<title>` and the sub-header. Use this when not running `siteMetaIntegration`. |
|
|
21
21
|
|
|
22
22
|
## Slots
|
|
23
23
|
|
|
24
|
-
| Slot
|
|
25
|
-
|
|
26
|
-
|
|
|
27
|
-
| `sidebar`
|
|
28
|
-
| `toc`
|
|
29
|
-
| `head`
|
|
24
|
+
| Slot | Description |
|
|
25
|
+
| ----------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
26
|
+
| _(default)_ | Main page content. |
|
|
27
|
+
| `sidebar` | Sidebar content — typically `<DocsSidebar>`. Only rendered when `hasSidebar={true}`. |
|
|
28
|
+
| `toc` | "On this page" column — pass `<DocsToc slot="toc" headings={headings} />` here. Omit to hide the TOC sidebar entirely. |
|
|
29
|
+
| `head` | Extra `<head>` entries injected after platform defaults. |
|
|
30
30
|
|
|
31
31
|
## Example
|
|
32
32
|
|
|
@@ -48,20 +48,12 @@ const { headings } = Astro.props as { headings: MarkdownHeading[] };
|
|
|
48
48
|
const slug = Astro.params.slug ?? '';
|
|
49
49
|
|
|
50
50
|
const sidebar: SidebarEntry[] = [
|
|
51
|
-
{ label: 'Getting Started', collapsed: false, items: [
|
|
52
|
-
|
|
53
|
-
]},
|
|
54
|
-
{ label: 'Components', collapsed: false, items: [
|
|
55
|
-
{ label: 'Toast', slug: 'components/toast' },
|
|
56
|
-
]},
|
|
51
|
+
{ label: 'Getting Started', collapsed: false, items: [{ label: 'Introduction', slug: '' }] },
|
|
52
|
+
{ label: 'Components', collapsed: false, items: [{ label: 'Toast', slug: 'components/toast' }] },
|
|
57
53
|
];
|
|
58
54
|
---
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
siteTitle="My Library"
|
|
62
|
-
hasSidebar
|
|
63
|
-
currentSlug={slug}
|
|
64
|
-
>
|
|
55
|
+
|
|
56
|
+
<DocsLayout title="Toast" siteTitle="My Library" hasSidebar currentSlug={slug}>
|
|
65
57
|
<DocsSidebar slot="sidebar" items={sidebar} currentSlug={slug} />
|
|
66
58
|
<DocsToc slot="toc" headings={headings} offsetTarget=".docs-subheader" />
|
|
67
59
|
<slot />
|
|
@@ -79,6 +71,7 @@ import DocsSidebar from 'igniteui-astro-components/components/sidebar/DocsSideba
|
|
|
79
71
|
|
|
80
72
|
const slug = Astro.params.slug ?? '';
|
|
81
73
|
---
|
|
74
|
+
|
|
82
75
|
<DocsLayout title="Changelog" siteTitle="My Library" hasSidebar currentSlug={slug}>
|
|
83
76
|
<DocsSidebar slot="sidebar" currentSlug={slug} />
|
|
84
77
|
<slot />
|
|
@@ -99,12 +92,8 @@ import DocsToc from 'igniteui-astro-components/components/DocsToc.astro';
|
|
|
99
92
|
const { headings } = Astro.props;
|
|
100
93
|
const slug = Astro.params.slug ?? '';
|
|
101
94
|
---
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
description="Toast component documentation"
|
|
105
|
-
hasSidebar
|
|
106
|
-
currentSlug={slug}
|
|
107
|
-
>
|
|
95
|
+
|
|
96
|
+
<DocsLayout title="Toast" description="Toast component documentation" hasSidebar currentSlug={slug}>
|
|
108
97
|
<DocsSidebar slot="sidebar" currentSlug={slug} />
|
|
109
98
|
<DocsToc slot="toc" headings={headings} offsetTarget=".docs-subheader" />
|
|
110
99
|
<slot />
|
|
@@ -118,7 +107,7 @@ they are provided automatically. When not, supply minimal stubs via a Vite
|
|
|
118
107
|
plugin (see [playground/astro.config.mjs](../../../playground/astro.config.mjs)
|
|
119
108
|
for a reference implementation):
|
|
120
109
|
|
|
121
|
-
| Module
|
|
122
|
-
|
|
110
|
+
| Module | Used for | Can be overridden by prop |
|
|
111
|
+
| --------------------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
|
|
123
112
|
| `virtual:docs-template/site-meta` | Site title, sidebar tree, product links, extra `<head>` entries | `siteTitle` on `DocsLayout`, `items` on `DocsSidebar`, `productLinks`/`sidebarItems` on `DocsSubHeader` |
|
|
124
|
-
| `virtual:docs-template/nav-html`
|
|
113
|
+
| `virtual:docs-template/nav-html` | Pre-fetched nav/footer HTML, widget script URL, platform key | — (not yet prop-overridable) |
|