igniteui-astro-components 0.0.2 → 0.0.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/README.md +21 -0
- package/package.json +3 -1
- package/src/assets/icons/angular-logo.svg +38 -0
- package/src/assets/icons/arrow-down.svg +3 -0
- package/src/assets/icons/arrow.svg +3 -0
- package/src/assets/icons/blazor-logo.svg +10 -0
- package/src/assets/icons/bullet-poiont.svg +3 -0
- package/src/assets/icons/chatGPT,.svg +4 -0
- package/src/assets/icons/check-circle.svg +3 -0
- package/src/assets/icons/check.svg +3 -0
- package/src/assets/icons/cheked.svg +3 -0
- package/src/assets/icons/chevron.svg +3 -0
- package/src/assets/icons/classes.svg +3 -0
- package/src/assets/icons/claude.svg +3 -0
- package/src/assets/icons/clear.svg +3 -0
- package/src/assets/icons/close.svg +3 -0
- package/src/assets/icons/code.svg +3 -0
- package/src/assets/icons/collapse.svg +5 -0
- package/src/assets/icons/command.svg +3 -0
- package/src/assets/icons/copy-clipboard.svg +3 -0
- package/src/assets/icons/copy.svg +3 -0
- package/src/assets/icons/crown.svg +3 -0
- package/src/assets/icons/dot.svg +3 -0
- package/src/assets/icons/download.svg +3 -0
- package/src/assets/icons/dropdown-indicator-bold.svg +3 -0
- package/src/assets/icons/dropdown-indicator.svg +3 -0
- package/src/assets/icons/enter-fullscreen.svg +3 -0
- package/src/assets/icons/enumerations.svg +3 -0
- package/src/assets/icons/exit-fullscreen.svg +3 -0
- package/src/assets/icons/expand-all.svg +5 -0
- package/src/assets/icons/expand-icon.svg +3 -0
- package/src/assets/icons/eye.svg +3 -0
- package/src/assets/icons/filter-clear.svg +1 -0
- package/src/assets/icons/filter.svg +3 -0
- package/src/assets/icons/functions.svg +5 -0
- package/src/assets/icons/github-logo.svg +3 -0
- package/src/assets/icons/hamburger-menu.svg +3 -0
- package/src/assets/icons/info.svg +3 -0
- package/src/assets/icons/interfaces.svg +3 -0
- package/src/assets/icons/link-blank.svg +3 -0
- package/src/assets/icons/link.svg +3 -0
- package/src/assets/icons/moon.svg +3 -0
- package/src/assets/icons/note.svg +3 -0
- package/src/assets/icons/open-link-blank.svg +3 -0
- package/src/assets/icons/page.svg +3 -0
- package/src/assets/icons/palette,.svg +3 -0
- package/src/assets/icons/pen.svg +3 -0
- package/src/assets/icons/play-circle.svg +10 -0
- package/src/assets/icons/premium.svg +3 -0
- package/src/assets/icons/react.svg +4 -0
- package/src/assets/icons/refresh.svg +3 -0
- package/src/assets/icons/rocket.svg +10 -0
- package/src/assets/icons/search.svg +10 -0
- package/src/assets/icons/shine.svg +3 -0
- package/src/assets/icons/show-more.svg +3 -0
- package/src/assets/icons/source-code.svg +3 -0
- package/src/assets/icons/start.svg +3 -0
- package/src/assets/icons/sub-directory-indicator.svg +3 -0
- package/src/assets/icons/sun.svg +3 -0
- package/src/assets/icons/system-theme.svg +3 -0
- package/src/assets/icons/system.svg +3 -0
- package/src/assets/icons/type-alias.svg +3 -0
- package/src/assets/icons/variables.svg +3 -0
- package/src/assets/icons/warning.svg +3 -0
- package/src/assets/icons/web-component-logo.svg +23 -0
- package/src/assets/icons/wrap-text.svg +3 -0
- package/src/assets/ig-logo.svg +33 -0
- package/src/assets/illustrations/classes.svg +3 -0
- package/src/assets/illustrations/enumerations.svg +3 -0
- package/src/assets/illustrations/functions.svg +5 -0
- package/src/assets/illustrations/interfaces.svg +3 -0
- package/src/assets/illustrations/type-alias.svg +3 -0
- package/src/assets/illustrations/variables.svg +3 -0
- package/src/components/DocsBreadcrumb/DocsBreadcrumb.astro +57 -0
- package/src/components/DocsBreadcrumb/DocsBreadcrumb.scss +51 -0
- package/src/components/DocsBreadcrumb/README.md +66 -0
- package/src/components/DocsSidebar/DocsSidebar.astro +38 -61
- package/src/components/DocsSidebar/DocsSidebar.scss +18 -0
- package/src/components/DocsSidebar/SidebarFilterInput.astro +22 -57
- package/src/components/DocsSidebar/SidebarFilterInput.scss +69 -0
- package/src/components/DocsSidebar/SidebarLabel.astro +2 -7
- package/src/components/DocsSidebar/toTreeNodes.ts +17 -5
- package/src/components/DocsSubHeader/DocsSubHeader.astro +60 -248
- package/src/components/DocsSubHeader/DocsSubHeader.scss +69 -0
- package/src/components/DocsSubHeader/README.md +6 -37
- package/src/components/DocsToc/DocsToc.astro +38 -83
- package/src/components/DocsToc/DocsToc.scss +33 -0
- package/src/components/DocsTree/DocsTree.astro +16 -2
- package/src/components/DocsTree/DocsTreeItem.astro +16 -13
- package/src/components/DocsTree/docs-tree.scss +185 -0
- package/src/components/GlobalFooter/GlobalFooter.astro +1 -1
- package/src/components/GlobalFooter/GlobalFooter.module.scss +1 -0
- package/src/components/GlobalNavBar/GlobalNavBar.module.scss +217 -196
- package/src/components/MobileSidebarToggle/MobileSidebarToggle.astro +2 -47
- package/src/components/MobileSidebarToggle/MobileSidebarToggle.scss +0 -0
- package/src/components/Search/Search.astro +14 -103
- package/src/components/Search/Search.scss +50 -0
- package/src/components/ThemingWidget/ThemingWidget.astro +1 -5
- package/src/components/ThemingWidget/ThemingWidget.scss +3 -0
- package/src/components/mdx/DocsAside/DocsAside.astro +15 -47
- package/src/components/mdx/DocsAside/DocsAside.scss +36 -0
- package/src/components/mdx/DocsAside/README.md +6 -6
- package/src/components/mdx/Sample/Sample.astro +1 -32
- package/src/components/mdx/Sample/Sample.scss +32 -0
- package/src/integration.ts +20 -8
- package/src/layouts/DocsLayout/DocsLayout.astro +88 -244
- package/src/layouts/DocsLayout/DocsLayout.scss +125 -0
- package/src/scripts/icon-registry.ts +57 -0
- package/src/styles/custom.scss +17 -251
- package/src/styles/global/_breakpoints.scss +48 -0
- package/src/styles/global/_code-blocks.scss +77 -0
- package/src/styles/global/_component-themes.scss +68 -0
- package/src/styles/global/_index.scss +9 -0
- package/src/styles/global/_markdown.scss +120 -0
- package/src/styles/global/_members.scss +85 -0
- package/src/styles/global/_palette.scss +131 -0
- package/src/styles/global/_type-scale.scss +182 -0
- package/src/styles/global/_variables.scss +71 -0
- package/src/styles/theme.scss +58 -0
- package/src/virtual-modules.d.ts +2 -0
- package/src/components/DocsTree/docs-tree.css +0 -226
- package/src/styles/ig-theme.scss +0 -43
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'igniteui-theming/sass/typography/functions' as *;
|
|
2
|
+
|
|
1
3
|
/*
|
|
2
4
|
* GlobalNavBar — CSS Module styles
|
|
3
5
|
*
|
|
@@ -16,200 +18,219 @@
|
|
|
16
18
|
*/
|
|
17
19
|
|
|
18
20
|
.navBar {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
|
|
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
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
21
|
+
--nav-bg: #222;
|
|
22
|
+
--nav-color: #fff;
|
|
23
|
+
--nav-border: #333;
|
|
24
|
+
--nav-link: #fff;
|
|
25
|
+
--nav-link-hover: #eee;
|
|
26
|
+
--nav-btn-bg: #09f;
|
|
27
|
+
--nav-btn-color: #fff;
|
|
28
|
+
--nav-btn-border: #09f;
|
|
29
|
+
--nav-btn-hover-color: #09f;
|
|
30
|
+
--nav-btn-hover-bg: transparent;
|
|
31
|
+
--nav-height: auto;
|
|
32
|
+
|
|
33
|
+
background: var(--igd-layout-sections-bg);
|
|
34
|
+
color: var(--nav-color, inherit);
|
|
35
|
+
|
|
36
|
+
// Element selectors are never hashed by CSS Modules — no :global() needed.
|
|
37
|
+
header {
|
|
38
|
+
position: static;
|
|
39
|
+
top: 0;
|
|
40
|
+
left: 0;
|
|
41
|
+
right: 0;
|
|
42
|
+
z-index: 1000;
|
|
43
|
+
font-family: aktiv-grotesk, sans-serif;
|
|
44
|
+
|
|
45
|
+
:global(.navbar) {
|
|
46
|
+
border-width: 0 0 1px;
|
|
47
|
+
border-radius: 0;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Class names below come from the injected headerHtml / static fallback markup.
|
|
52
|
+
// CSS Modules would hash them, breaking the match — :global() prevents that.
|
|
53
|
+
:global(.globalnav__primary) {
|
|
54
|
+
padding-inline: rem(17px);
|
|
55
|
+
border-bottom: var(--igd-app-outline) !important;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:global(.navbar-inverse) {
|
|
59
|
+
background: var(--nav-bg, inherit);
|
|
60
|
+
min-height: 86px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:global(.fixed_header) {
|
|
64
|
+
position: fixed;
|
|
65
|
+
width: 100%;
|
|
66
|
+
padding-bottom: 10px;
|
|
67
|
+
padding-top: 10px;
|
|
68
|
+
margin: 0;
|
|
69
|
+
top: 0;
|
|
70
|
+
z-index: 9999;
|
|
71
|
+
left: 0;
|
|
72
|
+
background-color: #fff;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:global(.navbar) {
|
|
76
|
+
margin-bottom: 0;
|
|
77
|
+
border-bottom-color: var(--nav-border, #333);
|
|
78
|
+
border: inset;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:global(.navbar-brand) {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
font-family: 'aktiv-grotesk', sans-serif;
|
|
85
|
+
color: var(--nav-color, #fff);
|
|
86
|
+
font-size: 18px;
|
|
87
|
+
padding: 0;
|
|
88
|
+
|
|
89
|
+
span {
|
|
90
|
+
color: var(--nav-color, #fff);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:global(.navbar-wrapper) {
|
|
95
|
+
display: flex;
|
|
96
|
+
justify-content: space-between;
|
|
97
|
+
align-items: center;
|
|
98
|
+
height: var(--nav-height, auto);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:global(.navbar) :global(.navbar-nav) {
|
|
102
|
+
display: inline-block;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
:global(.navbar) :global(.nav.navbar-nav) {
|
|
106
|
+
width: 100%;
|
|
107
|
+
padding: 16px;
|
|
108
|
+
font-size: 0.75rem;
|
|
109
|
+
font-weight: 400;
|
|
110
|
+
|
|
111
|
+
li > a {
|
|
112
|
+
transition: all 0.25s ease-in-out;
|
|
113
|
+
text-align: center;
|
|
114
|
+
color: var(--nav-link, #fff);
|
|
115
|
+
|
|
116
|
+
&:hover,
|
|
117
|
+
&:focus {
|
|
118
|
+
color: var(--nav-link-hover, #eee);
|
|
119
|
+
background-color: transparent;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
:global(li.active) > a {
|
|
124
|
+
background-color: transparent !important;
|
|
125
|
+
font-weight: 500;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
:global(li.nav__cta) > a {
|
|
129
|
+
color: var(--nav-btn-color, #fff);
|
|
130
|
+
background-color: var(--nav-btn-bg, #09f);
|
|
131
|
+
text-transform: uppercase;
|
|
132
|
+
font-weight: bold;
|
|
133
|
+
font-size: inherit;
|
|
134
|
+
margin-left: 10px;
|
|
135
|
+
padding: 0.5em 1.5em;
|
|
136
|
+
border: 1px solid var(--nav-btn-border, #09f);
|
|
137
|
+
border-radius: 0;
|
|
138
|
+
transition: all 250ms ease-in-out;
|
|
139
|
+
white-space: nowrap;
|
|
140
|
+
|
|
141
|
+
&:hover,
|
|
142
|
+
&:focus {
|
|
143
|
+
color: var(--nav-btn-hover-color, #09f);
|
|
144
|
+
background-color: var(--nav-btn-hover-bg, transparent);
|
|
145
|
+
border-color: var(--nav-btn-border, #09f);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
:global(.navbar-frameworks) {
|
|
151
|
+
display: flex;
|
|
152
|
+
align-items: center;
|
|
153
|
+
|
|
154
|
+
a {
|
|
155
|
+
padding-right: 8px;
|
|
156
|
+
color: #9d9d9d;
|
|
157
|
+
font-size: 0.875rem;
|
|
158
|
+
text-decoration: none;
|
|
159
|
+
|
|
160
|
+
&:hover,
|
|
161
|
+
&:focus {
|
|
162
|
+
color: #eee;
|
|
163
|
+
background-color: transparent;
|
|
164
|
+
text-decoration: none;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
:global(.docfx-nav-header) {
|
|
170
|
+
display: flex;
|
|
171
|
+
justify-content: space-between;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
:global(.logo-breadcrumb) {
|
|
175
|
+
display: flex;
|
|
176
|
+
align-items: center;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
:global(.globalnav__logo) {
|
|
180
|
+
max-height: 48px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
:global(.globalnav__menu) {
|
|
184
|
+
list-style: none;
|
|
185
|
+
margin: 0;
|
|
186
|
+
padding: 0;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@media only screen and (min-width: 961px) {
|
|
190
|
+
[data-mega-menu='true'] :global(.globalnav__primary) :global(.globalnav__wrapper) {
|
|
191
|
+
position: static;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
:global(.globalnav__wrapper) {
|
|
195
|
+
max-width: 100%;
|
|
196
|
+
margin: auto 15px;
|
|
197
|
+
padding: 0;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
:global(.navbar) :global(.nav.navbar-nav) {
|
|
201
|
+
display: flex;
|
|
202
|
+
align-items: center;
|
|
203
|
+
padding: 0;
|
|
204
|
+
width: auto;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
@media only screen and (max-width: 1200px) {
|
|
209
|
+
:global(.navbar-frameworks) {
|
|
210
|
+
display: none;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@media only screen and (max-width: 965px) {
|
|
215
|
+
:global(.navbar-frameworks) {
|
|
216
|
+
display: none;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@media only screen and (max-width: 767px) {
|
|
221
|
+
:global(.navbar-frameworks) {
|
|
222
|
+
display: flex;
|
|
223
|
+
justify-content: center;
|
|
224
|
+
padding-top: 10px;
|
|
225
|
+
|
|
226
|
+
a {
|
|
227
|
+
font-size: 1rem !important;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
:global(.navbar) :global(.nav.navbar-nav) :global(li.nav__cta) > a {
|
|
232
|
+
margin-left: 0;
|
|
233
|
+
margin-top: 10px;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
215
236
|
}
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* Props:
|
|
7
7
|
* label – visible button text (e.g. group name). Default: 'Components List'.
|
|
8
8
|
*/
|
|
9
|
+
import './MobileSidebarToggle.scss';
|
|
10
|
+
|
|
9
11
|
interface Props {
|
|
10
12
|
label?: string;
|
|
11
13
|
}
|
|
@@ -63,50 +65,3 @@ const { label = "Components List" } = Astro.props;
|
|
|
63
65
|
});
|
|
64
66
|
</script>
|
|
65
67
|
|
|
66
|
-
<style is:global>
|
|
67
|
-
.mobile-sidebar-toggle {
|
|
68
|
-
position: fixed;
|
|
69
|
-
top: var(--sl-nav-height);
|
|
70
|
-
inset-inline-start: 0;
|
|
71
|
-
z-index: calc(var(--sl-z-index-navbar) - 2);
|
|
72
|
-
display: flex;
|
|
73
|
-
align-items: center;
|
|
74
|
-
justify-content: space-between;
|
|
75
|
-
width: 100%;
|
|
76
|
-
height: var(--docs-mobile-toggle-height);
|
|
77
|
-
padding: 0 var(--sl-sidebar-pad-x, 1rem);
|
|
78
|
-
background: var(--sl-color-bg-sidebar);
|
|
79
|
-
border: none;
|
|
80
|
-
border-bottom: 1px solid var(--sl-color-hairline-shade);
|
|
81
|
-
cursor: pointer;
|
|
82
|
-
color: var(--sl-color-text-accent);
|
|
83
|
-
font-size: 0.7rem;
|
|
84
|
-
font-weight: 700;
|
|
85
|
-
letter-spacing: 0.08em;
|
|
86
|
-
text-transform: uppercase;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.mobile-sidebar-toggle_chevron {
|
|
90
|
-
flex-shrink: 0;
|
|
91
|
-
transition: transform 0.2s ease;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.mobile-sidebar-toggle[aria-expanded="true"]
|
|
95
|
-
.mobile-sidebar-toggle_chevron {
|
|
96
|
-
transform: rotate(180deg);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
[data-mobile-menu-expanded] {
|
|
100
|
-
overflow: hidden;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@media (min-width: 50rem) {
|
|
104
|
-
.mobile-sidebar-toggle {
|
|
105
|
-
display: none;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
[data-mobile-menu-expanded] {
|
|
109
|
-
overflow: auto;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
</style>
|
|
File without changes
|
|
@@ -9,23 +9,26 @@
|
|
|
9
9
|
* In development the button is rendered but the dynamic import will 404
|
|
10
10
|
* gracefully — no errors surface to the user.
|
|
11
11
|
*/
|
|
12
|
+
import './Search.scss';
|
|
12
13
|
---
|
|
13
14
|
|
|
14
15
|
<button
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
id="search-trigger"
|
|
17
|
+
class="search-trigger"
|
|
18
|
+
aria-label="Search documentation"
|
|
19
|
+
title="Search (Ctrl+K)"
|
|
19
20
|
>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<circle cx="11" cy="11" r="8"/>
|
|
24
|
-
<line x1="21" y1="21" x2="16.65" y2="16.65"/>
|
|
25
|
-
</svg>
|
|
26
|
-
<span class="search-trigger-hint">Ctrl+K</span>
|
|
21
|
+
<igc-icon name="search" collection="docs" aria-hidden="true"></igc-icon>
|
|
22
|
+
<span class="search-trigger__label">Search</span>
|
|
23
|
+
<span class="search-trigger__hint"><span>Ctrl</span>K</span>
|
|
27
24
|
</button>
|
|
28
25
|
|
|
26
|
+
<script>
|
|
27
|
+
import { defineComponents, IgcIconComponent } from 'igniteui-webcomponents';
|
|
28
|
+
import '../../scripts/icon-registry';
|
|
29
|
+
defineComponents(IgcIconComponent);
|
|
30
|
+
</script>
|
|
31
|
+
|
|
29
32
|
<dialog id="search-dialog" class="search-dialog" aria-label="Search">
|
|
30
33
|
<div class="search-dialog-inner">
|
|
31
34
|
<div id="search-pagefind"></div>
|
|
@@ -128,95 +131,3 @@
|
|
|
128
131
|
}
|
|
129
132
|
</script>
|
|
130
133
|
|
|
131
|
-
<style is:global>
|
|
132
|
-
/* ── Trigger button ─────────────────────────────────────────────────────── */
|
|
133
|
-
|
|
134
|
-
.search-trigger {
|
|
135
|
-
width: 10rem;
|
|
136
|
-
display: flex;
|
|
137
|
-
align-items: center;
|
|
138
|
-
gap: 0.4rem;
|
|
139
|
-
padding: 0.25rem 0.5rem;
|
|
140
|
-
border: 1px solid var(--sl-color-hairline-shade);
|
|
141
|
-
border-radius: 0.375rem;
|
|
142
|
-
background: var(--sl-color-bg);
|
|
143
|
-
color: var(--sl-color-gray-3);
|
|
144
|
-
font-size: 0.75rem;
|
|
145
|
-
cursor: pointer;
|
|
146
|
-
white-space: nowrap;
|
|
147
|
-
transition: border-color 0.15s, color 0.15s;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.search-trigger:hover {
|
|
151
|
-
border-color: var(--sl-color-accent);
|
|
152
|
-
color: var(--sl-color-accent);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.search-trigger-hint {
|
|
156
|
-
font-size: 0.65rem;
|
|
157
|
-
opacity: 0.7;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
@media (max-width: 50rem) {
|
|
161
|
-
.search-trigger-hint { display: none; }
|
|
162
|
-
.search-trigger { border: none; background: none; padding: 0.25rem; }
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/* ── Modal dialog ───────────────────────────────────────────────────────── */
|
|
166
|
-
|
|
167
|
-
.search-dialog {
|
|
168
|
-
position: fixed;
|
|
169
|
-
inset: 0;
|
|
170
|
-
margin: 5rem auto auto;
|
|
171
|
-
width: 90%;
|
|
172
|
-
max-width: 40rem;
|
|
173
|
-
max-height: calc(100vh - 8rem);
|
|
174
|
-
padding: 0;
|
|
175
|
-
border: 1px solid var(--sl-color-hairline-shade);
|
|
176
|
-
border-radius: 0.5rem;
|
|
177
|
-
background: var(--sl-color-bg);
|
|
178
|
-
box-shadow: var(--sl-shadow-lg);
|
|
179
|
-
overflow: hidden;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.search-dialog::backdrop {
|
|
183
|
-
background: rgba(0, 0, 0, 0.5);
|
|
184
|
-
backdrop-filter: blur(2px);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.search-dialog-inner {
|
|
188
|
-
overflow-y: auto;
|
|
189
|
-
max-height: calc(100vh - 8rem);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/* ── Pagefind UI overrides — map to --sl-* tokens ───────────────────────── */
|
|
193
|
-
|
|
194
|
-
.search-dialog {
|
|
195
|
-
--pagefind-ui-scale: 0.9;
|
|
196
|
-
--pagefind-ui-primary: var(--sl-color-accent);
|
|
197
|
-
--pagefind-ui-text: var(--sl-color-text);
|
|
198
|
-
--pagefind-ui-background: var(--sl-color-bg);
|
|
199
|
-
--pagefind-ui-border: var(--sl-color-hairline-shade);
|
|
200
|
-
--pagefind-ui-tag: var(--sl-color-bg-sidebar);
|
|
201
|
-
--pagefind-ui-border-width: 1px;
|
|
202
|
-
--pagefind-ui-border-radius: 0.375rem;
|
|
203
|
-
--pagefind-ui-font: inherit;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
/* Remove pagefind's built-in margin/padding on the wrapper */
|
|
207
|
-
#search-pagefind .pagefind-ui {
|
|
208
|
-
padding: 0.75rem;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
#search-pagefind .pagefind-ui__search-input {
|
|
212
|
-
border-radius: 0.375rem;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
#search-pagefind .pagefind-ui__result {
|
|
216
|
-
border-top: 1px solid var(--sl-color-hairline);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
#search-pagefind .pagefind-ui__result-link {
|
|
220
|
-
color: var(--sl-color-accent);
|
|
221
|
-
}
|
|
222
|
-
</style>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@use '../../styles/global/breakpoints' as *;
|
|
2
|
+
@use 'igniteui-theming/sass/typography' as *;
|
|
3
|
+
|
|
4
|
+
.search-trigger {
|
|
5
|
+
--ig-size: 1;
|
|
6
|
+
|
|
7
|
+
width: 100%;
|
|
8
|
+
max-width: rem(330px);
|
|
9
|
+
display: flex;
|
|
10
|
+
height: 100%;
|
|
11
|
+
align-items: center;
|
|
12
|
+
border: none;
|
|
13
|
+
border-inline-end: var(--igd-app-outline);
|
|
14
|
+
padding-inline: var(--igd-padding-sm);
|
|
15
|
+
gap: rem(8px);
|
|
16
|
+
white-space: nowrap;
|
|
17
|
+
|
|
18
|
+
// Override native button styles
|
|
19
|
+
background-color: transparent;
|
|
20
|
+
box-shadow: none;
|
|
21
|
+
|
|
22
|
+
&:focus-visible {
|
|
23
|
+
outline: none;
|
|
24
|
+
box-shadow: inset 0 0 0 1px var(--igd-accent);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.search-trigger__hint {
|
|
29
|
+
@include type-style('subtitle-1') {
|
|
30
|
+
margin: 0;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
margin-inline-start: auto;
|
|
36
|
+
|
|
37
|
+
span {
|
|
38
|
+
@include type-style('detail-1', false) {
|
|
39
|
+
margin: 0;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.search-trigger__label {
|
|
45
|
+
@include type-style('body-2') {
|
|
46
|
+
margin: 0;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
color: var(--ig-gray-600);
|
|
50
|
+
}
|