igniteui-astro-components 0.0.17 → 0.0.19

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.
Files changed (44) hide show
  1. package/package.json +1 -1
  2. package/src/assets/icons/{chatGPT,.svg → chatgpt.svg} +0 -1
  3. package/src/assets/ig-logo.svg +1 -1
  4. package/src/components/DocsBreadcrumb/DocsBreadcrumb.astro +1 -3
  5. package/src/components/DocsBreadcrumb/DocsBreadcrumb.scss +12 -3
  6. package/src/components/DocsSidebar/DocsSidebar.astro +26 -7
  7. package/src/components/DocsSidebar/DocsSidebar.scss +35 -28
  8. package/src/components/DocsSidebar/SidebarFilterInput.astro +2 -2
  9. package/src/components/DocsSidebar/SidebarFilterInput.scss +76 -51
  10. package/src/components/DocsSidebar/sidebar-filter.ts +3 -18
  11. package/src/components/DocsSubHeader/DocsSubHeader.astro +93 -114
  12. package/src/components/DocsSubHeader/DocsSubHeader.scss +69 -121
  13. package/src/components/DocsToc/DocsToc.astro +14 -10
  14. package/src/components/DocsToc/DocsToc.scss +7 -5
  15. package/src/components/DocsTree/docs-tree.scss +125 -54
  16. package/src/components/GlobalFooter/GlobalFooter.module.scss +1 -1
  17. package/src/components/GlobalNavBar/GlobalNavBar.module.scss +1 -3
  18. package/src/components/Search/Search.astro +57 -23
  19. package/src/components/Search/Search.scss +15 -21
  20. package/src/components/SearchAdvanced/SearchAdvanced.astro +87 -53
  21. package/src/components/SearchAdvanced/SearchAdvanced.scss +22 -30
  22. package/src/components/mdx/DocsAside/DocsAside.scss +10 -14
  23. package/src/layouts/DocsLayout/DocsLayout.astro +5 -5
  24. package/src/layouts/DocsLayout/DocsLayout.scss +58 -97
  25. package/src/scripts/icon-manifest.ts +73 -0
  26. package/src/scripts/icon-registry.ts +4 -35
  27. package/src/styles/global/_breakpoints.scss +0 -1
  28. package/src/styles/global/_code-blocks.scss +1 -0
  29. package/src/styles/global/_component-themes.scss +133 -125
  30. package/src/styles/global/_icon-gallery.scss +108 -0
  31. package/src/styles/global/_index.scss +1 -0
  32. package/src/styles/global/_markdown.scss +127 -16
  33. package/src/styles/global/_palette.scss +101 -101
  34. package/src/styles/global/_search-shared.scss +302 -315
  35. package/src/styles/global/_type-scale.scss +17 -17
  36. package/src/styles/global/_variables.scss +15 -6
  37. package/src/styles/theme.scss +7 -61
  38. package/src/assets/icons/classes.svg +0 -3
  39. package/src/assets/icons/enumerations.svg +0 -3
  40. package/src/assets/icons/functions.svg +0 -5
  41. package/src/assets/icons/interfaces.svg +0 -3
  42. package/src/assets/icons/type-alias.svg +0 -3
  43. package/src/assets/icons/variables.svg +0 -3
  44. /package/src/assets/icons/{palette,.svg → palette.svg} +0 -0
@@ -1,370 +1,357 @@
1
- @use 'igniteui-theming/sass/typography' as *;
1
+ @use 'igniteui-theming' as *;
2
2
 
3
-
4
-
5
- // Centered-card sizing for both igc-dialog::part(base) and native <dialog>.
6
- // DocsLayout.scss flips this to fullscreen on mobile.
7
- @mixin search-dialog-base-styles {
8
- margin: auto;
9
- padding: 0;
10
- width: 90%;
11
- max-width: rem(672px);
12
- height: calc(100vh - #{rem(128px)});
13
- max-height: rem(768px);
14
- box-shadow: none;
15
- border: none;
16
- border-radius: 0;
17
- }
18
-
19
- /// Backdrop base state (before open animation).
20
- @mixin search-dialog-backdrop {
21
- background-color: light-dark(var(--ig-gray-800), var(--ig-gray-50));
22
- will-change: backdrop-filter, opacity;
23
- }
24
-
25
- // Backdrop visible/open state.
26
- @mixin search-dialog-backdrop-open {
27
- opacity: .6;
28
- -webkit-backdrop-filter: blur(10px);
29
- backdrop-filter: blur(10px);
3
+ @property --rot{
4
+ syntax: '<angle>';
5
+ inherits: false;
6
+ initial-value: 0deg;
30
7
  }
31
8
 
32
9
  // @layer components block (mixin definitions stay un-nested)
33
10
  @layer components {
34
- .search-trigger {
35
- --ig-size: 1;
36
-
37
- width: 100%;
38
- max-width: rem(330px);
39
- display: flex;
40
- height: 100%;
41
- align-items: center;
42
- border: none;
43
- border-inline-end: var(--igd-app-outline);
44
- padding-inline: var(--igd-padding-sm);
45
- gap: rem(8px);
46
- white-space: nowrap;
11
+ // Shared dialog chrome
12
+ [data-search-modal-open] {
13
+ overflow: hidden;
14
+ }
47
15
 
48
- // Override native button styles
49
- background-color: transparent;
50
- box-shadow: none;
16
+ .igd-search-shell {
17
+ --search-header-footer-height: #{rem(80px)};
18
+
19
+ display: grid;
20
+ min-height: 0;
21
+ flex: 1 1 auto;
22
+ }
51
23
 
52
- &:focus-visible {
53
- outline: none;
54
- box-shadow: inset 0 0 0 1px var(--igd-accent);
24
+ // Status
25
+ .igd-search-status {
26
+ @include type-style('body-1') {
27
+ margin: 0;
28
+ }
29
+
30
+ display: grid;
31
+ place-items: center;
32
+ height: 100%;
33
+ padding: rem(26px);
34
+ text-align: center;
35
+ color: light-dark(var(--ig-gray-500), var(--ig-gray-300));
36
+
37
+ &:empty {
38
+ display: none;
39
+ }
55
40
  }
56
- }
57
-
58
- .search-trigger__hint {
59
- @include type-style('subtitle-1') {
60
- margin: 0;
61
- };
62
41
 
63
- display: flex;
64
- align-items: center;
65
- margin-inline-start: auto;
66
- gap: rem(4px);
67
- background: transparent;
68
- box-shadow: none;
69
- border: none;
42
+ .igd-search-query {
43
+ color: var(--igd-accent);
44
+ }
70
45
 
71
- kbd {
72
- @include type-style('subtitle-1') {
73
- margin: 0;
74
- };
46
+ // Results
47
+ .igd-search-results {
48
+ --background: transparent;
75
49
 
76
- background: transparent;
77
- box-shadow: none;
78
- border: none;
79
- color: light-dark(var(--ig-gray-600), var(--ig-gray-400));
50
+ position: relative;
51
+
52
+ gap: rem(8px);
53
+
54
+ igc-list-item {
55
+ --item-border-radius: 0;
56
+ --item-background: transparent;
57
+ --item-background-hover: var(--ig-gray-50);
58
+ --item-background-focus: transparent;
59
+ --item-background-active: transparent;
60
+ --border-color: transparent;
61
+
62
+ padding: 0;
63
+ gap: 0;
64
+
65
+ &:focus-within {
66
+ --item-background-hover: transparent;
67
+ }
68
+ }
69
+
70
+ &:last-of-type {
71
+ padding-block-end: 0;
72
+ }
73
+
74
+ padding-inline: 0;
80
75
  }
81
- }
82
-
83
- .search-trigger__label {
84
- @include type-style('body-2') {
85
- margin: 0;
86
- };
87
76
 
88
- color: var(--ig-gray-600);
89
- }
90
-
91
- // Close button — hidden by default; DocsLayout.scss reveals it on mobile.
92
- .search-trigger.search-close {
93
- display: none;
94
- color: light-dark(var(--ig-gray-600), var(--ig-gray-400));
77
+ .igd-search-results,
78
+ .igd-search-results--flat {
79
+ overflow-y: auto;
80
+ flex: 1 1 auto;
81
+ min-height: 0;
82
+ }
95
83
 
96
- border-inline-start: rem(1px) solid light-dark(var(--ig-gray-400), var(--ig-gray-300));
97
- border-inline-end: 0;
84
+ .igd-search-results--flat {
85
+ display: flex;
86
+ flex-direction: column;
87
+ padding-bottom: 1rem;
88
+ }
98
89
 
99
- igc-icon {
100
- --size: #{rem(32px)};
90
+ .igd-search-link {
91
+ display: grid;
92
+ align-items: center;
93
+ padding: rem(8px) rem(16px);
94
+ gap: rem(4px);
95
+ text-decoration: none;
96
+ color: inherit;
97
+
98
+ &:focus-visible {
99
+ outline: transparent;
100
+ box-shadow: inset 0 0 0 rem(1px) var(--igd-accent);
101
+ }
101
102
  }
102
- }
103
-
104
- // Shared dialog chrome
105
- [data-search-modal-open] { overflow: hidden; }
106
-
107
- .igd-search-shell {
108
- display: flex;
109
- flex-direction: column;
110
- min-height: 0;
111
- flex: 1 1 auto;
112
- height: 100%;
113
- border-radius: 0;
114
- }
115
-
116
- // Status
117
- .igd-search-status {
118
- @include type-style('overline') {
119
- margin: 0;
103
+
104
+ .igd-search-result-title {
105
+ @include type-style('body-2') {
106
+ margin: 0;
107
+ }
108
+
109
+ color: light-dark(var(--ig-gray-900), var(--ig-gray-600));
110
+
111
+ mark {
112
+ background: transparent;
113
+ color: var(--igd-accent);
114
+ padding: 0 1px;
115
+ border-radius: 2px;
116
+ }
120
117
  }
121
118
 
122
- padding: rem(26px);
123
- color: light-dark(var(--ig-gray-900), var(--ig-gray-300));
119
+ .igd-search-kind {
120
+ @include type-style('caption') {
121
+ margin-block: 0;
122
+ }
123
+
124
+ margin-inline-end: rem(8px);
125
+ padding: rem(4px);
126
+ border-radius: rem(2px);
127
+ color: light-dark(var(--ig-gray-700), var(--ig-gray-500));
128
+ background: light-dark(var(--ig-gray-100), #112031);
129
+ }
124
130
 
125
- &:empty {
126
- display: none;
131
+ // Category header (above each result list in the All tab)
132
+ .igd-search-category-header {
133
+ @include type-style('body-2') {
134
+ margin: 0;
135
+ font-weight: 700;
136
+ }
137
+
138
+ display: inline-block;
139
+ color: light-dark(var(--ig-gray-900), var(--ig-gray-300));
140
+ padding-inline: rem(16px);
141
+ margin-block-end: rem(8px);
127
142
  }
128
- }
129
-
130
- .igd-search-query {
131
- color: var(--igd-accent);
132
- }
133
-
134
- // Results
135
- .igd-search-results {
136
- --background: transparent;
137
143
 
138
- position: relative;
144
+ .igd-search-more-btn {
145
+ --focus-visible-border-color: transparent;
146
+ --border-radius: #{rem(4px)};
147
+ --foreground: var(--igd-accent);
148
+ --icon-color: var(--igd-accent);
149
+ --icon-color-hover: var(--igd-accent);
150
+ --hover-background: transparent;
151
+ --hover-foreground: var(--igd-accent);
152
+ --focus-background: transparent;
153
+ --focus-foreground: var(--igd-accent);
154
+ --active-foreground: var(--igd-accent);
155
+ --active-background: transparent;
156
+ --focus-hover-background: var(--igd-accent);
157
+ --focus-hover-foreground: transparent;
158
+ --focus-visible-foreground: var(--igd-accent);
159
+ --focus-visible-background: transparent;
160
+
161
+ &::part(base) {
162
+ @include type-style('detail-2', false) {
163
+ margin: 0;
164
+ }
165
+
166
+ &:hover,
167
+ &:focus-visible {
168
+ text-decoration: underline;
169
+ }
170
+ }
171
+
172
+ display: flex;
173
+ justify-self: start;
174
+ margin-block-start: rem(16px);
175
+ }
139
176
 
140
- gap: rem(8px);
177
+ .igd-search-meta {
178
+ color: light-dark(var(--ig-gray-900), var(--ig-gray-300));
179
+ }
141
180
 
142
- igc-list-item {
143
- --item-border-radius: 0;
144
- --item-background: transparent;
145
- --item-background-hover: light-dark(var(--ig-gray-100), var(--ig-gray-50));
146
- --item-background-focus: transparent;
147
- --item-background-active: transparent;
148
- --border-color: transparent;
181
+ // Dialog chrome — shared by both Search and SearchAdvanced
182
+ .igd-search-dialog {
183
+ --background: var(--igd-layout-sections-bg);
184
+ --backdrop: #{color($color: gray, $variant: 800, $opacity: .6)};
149
185
 
150
- padding: 0;
151
- gap: 0;
186
+ &::part(base) {
187
+ margin: auto;
188
+ padding: 0;
189
+ width: 90%;
190
+ max-width: rem(672px);
191
+ height: calc(100vh - #{rem(128px)});
192
+ max-height: rem(768px);
193
+ border-radius: rem(8px);
194
+
195
+ overflow: hidden;
196
+
197
+ &:focus-visible {
198
+ outline: none;
199
+ }
200
+ }
152
201
 
153
- &:focus-within {
154
- --item-background-hover: transparent;
202
+ &::part(content) {
203
+ padding: 0;
204
+ display: flex;
205
+ flex-direction: column;
206
+ height: 100%;
207
+
208
+ }
209
+
210
+ igc-input::part(container) {
211
+ --border-color: var(--ig-gray-200);
212
+ --border-color-hover: var(--ig-gray-300);
213
+ --border-border-radius: #{rem(8px)};
155
214
  }
156
215
  }
157
216
 
158
- &:last-of-type {
159
- padding-block-end: 0;
217
+ // Search dialog header bar (input + optional scope)
218
+ .igd-search-footer,
219
+ .igd-search-header {
220
+ --ig-size: var(--ig-size-large);
221
+ padding: rem(16px);
222
+ gap: rem(8px);
223
+ height: var(--search-header-footer-height);
160
224
  }
161
225
 
162
- padding-inline: rem(26px);
163
- }
164
-
165
- .igd-search-results,
166
- .igd-search-results--flat {
167
- overflow-y: auto;
168
- flex: 1 1 auto;
169
- min-height: 0;
170
- }
171
-
172
- .igd-search-results--flat {
173
- display: flex;
174
- flex-direction: column;
175
- padding-bottom: 1rem;
176
- }
177
-
178
- .igd-search-link {
179
- display: grid;
180
- align-items: center;
181
- padding: rem(8px) rem(16px);
182
- gap: rem(4px);
183
- text-decoration: none;
184
- color: inherit;
185
-
186
- &:focus-visible {
187
- outline: transparent;
188
- box-shadow: inset 0 0 0 rem(1px) var(--igd-accent);
226
+ // Visible only on mobile devices
227
+ .igd-search-footer {
228
+ display: none;
189
229
  }
190
- }
191
-
192
- .igd-search-result-title {
193
- @include type-style('body-2') {
194
- margin: 0;
230
+
231
+ .igd-search-header {
232
+ display: flex;
195
233
  }
196
234
 
197
- color: light-dark(var(--ig-gray-900), var(--ig-gray-600));
198
-
199
- mark {
200
- background: transparent;
201
- color: var(--igd-accent);
202
- padding: 0 1px;
203
- border-radius: 2px;
235
+ .igd-search-scope {
236
+ flex-shrink: 0;
237
+ align-self: center;
204
238
  }
205
- }
206
-
207
- .igd-search-kind {
208
- @include type-style('caption') {
209
- margin-block: 0;
239
+
240
+ .igd-search-input {
241
+ --input-prefix-background: transparent;
242
+ --input-prefix-background--focused: transparent;
243
+ --input-prefix-background--filled: transparent;
244
+
245
+ --input-suffix-background: transparent;
246
+ --input-suffix-background--focused: transparent;
247
+ --input-suffix-background--filled: transparent;
248
+
249
+ width: 100%;
250
+ min-width: 0;
251
+ flex: 1 1 auto;
252
+
253
+ &::part(input) {
254
+ @include type-style('body-2') {
255
+ margin: 0;
256
+ }
257
+ }
210
258
  }
211
259
 
212
- margin-inline-end: rem(8px);
213
- padding: rem(4px);
214
- border-radius: rem(2px);
215
- color: light-dark(var(--ig-gray-700), var(--ig-gray-500));
216
- background: light-dark(var(--ig-gray-200), #112031);
217
- }
218
-
219
- // Category header (above each result list in the All tab)
220
- .igd-search-category-header {
221
- @include type-style('detail-2', false) {
222
- margin: 0;
260
+ .igd-search-clear {
261
+ --foreground: light-dark(var(--ig-gray-900), var(--ig-gray-900));
262
+ --hover-foreground: light-dark(var(--ig-gray-900), var(--ig-gray-900));
263
+ --focus-hover-foreground: light-dark(var(--ig-gray-900), var(--ig-gray-900));
264
+ --focus-foreground: light-dark(var(--ig-gray-900), var(--ig-gray-900));
265
+ --active-foreground: light-dark(var(--ig-gray-900), var(--ig-gray-900));
266
+ --shadow-color: transparent;
267
+ --background: transparent;
268
+ --hover-background: transparent;
269
+ --focus-background: transparent;
270
+ --focus-hover-background: transparent;
271
+ --active-background: transparent;
272
+ //--border-color: transparent;
273
+ --border-radius: 0;
274
+
275
+ &::part(base) {
276
+ --size: 18px;
277
+
278
+ padding: 0;
279
+
280
+ &::after {
281
+ border-radius: 4px;
282
+ }
283
+ }
223
284
  }
224
285
 
225
- display: inline-block;
226
- color: light-dark(var(--ig-gray-900), var(--ig-gray-300));
227
- margin-block-end: rem(16px);
228
- padding-inline: rem(26px);
229
- }
230
-
231
- .igd-search-more-btn {
232
- --focus-visible-border-color: transparent;
233
- --border-radius: #{rem(4px)};
234
- --foreground: light-dark(var(--ig-gray-700), var(--ig-gray-500));
235
- --icon-color: var(--igd-accent);
236
- --icon-color-hover: var(--igd-accent);
237
- --hover-background: transparent;
238
- --hover-foreground: var(--igd-accent);
239
- --focus-background: transparent;
240
- --focus-foreground: var(--igd-accent);
241
- --active-foreground: var(--igd-accent);
242
- --active-background: transparent;
243
- --focus-hover-background: var(--igd-accent);
244
- --focus-hover-foreground: transparent;
245
- --focus-visible-foreground: var(--igd-accent);
246
- --focus-visible-background: transparent;
286
+ .igd-search-icon {
287
+ color: light-dark(var(--ig-gray-900), var(--ig-gray-500));
288
+ padding-inline: rem(12px) rem(0);
289
+ }
247
290
 
248
- &::part(base) {
249
- @include type-style('detail-2', false) {
250
- margin: 0;
251
- }
291
+ .search-decoration {
292
+ padding: 1px;
293
+ border-radius: rem(11px);
294
+ animation: rotation 6s linear infinite;
295
+ animation-delay: 1s , 300ms;
296
+ background: conic-gradient(from var(--rot) at 50% 50%, var(--igd-accent) -56.25deg, var(--igd-accent) 43.12deg, var(--ig-secondary-500) 180deg, var(--igd-accent) 303.75deg, var(--igd-accent) 403.12deg);
297
+ box-sizing: border-box;
252
298
 
253
- &:hover,
254
- &:focus-visible {
255
- text-decoration: underline;
299
+ igc-input {
300
+ --border-color: transparent;
256
301
  }
257
302
  }
258
303
 
259
- display: flex;
260
- justify-self: center;
261
-
262
- margin-block-start: rem(26px);
263
- }
264
-
265
- .igd-search-meta {
266
- color: light-dark(var(--ig-gray-900), var(--ig-gray-300));
267
- }
268
-
269
- // Dialog chrome — shared by both Search and SearchAdvanced
270
- .igd-search-dialog {
271
- --border-radius: 0;
272
- --background: var(--igd-layout-sections-bg);
273
- --transition-duration: 150ms;
274
- border: none;
275
-
276
- &::part(base) {
277
- @include search-dialog-base-styles;
278
-
279
- &:focus-visible {
280
- outline: none;
304
+ .search-trigger {
305
+ cursor: pointer;
306
+
307
+ &::part(input) {
308
+ cursor: pointer;
281
309
  }
282
310
  }
283
-
284
- &::part(content) {
285
- padding: 0;
311
+
312
+ .search-trigger__hint {
286
313
  display: flex;
287
- flex-direction: column;
288
- height: 100%;
289
- }
290
-
291
- &::part(backdrop) {
292
- @include search-dialog-backdrop;
293
- }
294
-
295
- &[open]::part(backdrop) {
296
- @include search-dialog-backdrop-open;
297
- }
298
-
299
- igc-input {
300
- height: 100%;
314
+ gap: rem(4px);
315
+ align-items: center;
316
+ background: transparent;
317
+ color: var(--ig-gray-400);
318
+ font-size: inherit;
319
+ padding-inline: rem(16px);
320
+ box-shadow: none;
321
+
322
+ > kbd {
323
+ background: transparent;
324
+ color: inherit;
325
+ font-size: inherit;
326
+ font-weight: normal;
327
+ box-shadow: none;
328
+ }
329
+
330
+ kbd:first-child {
331
+ display: flex;
332
+ align-items: center;
333
+ line-height: 1;
334
+ font-size: 19px;
335
+ }
301
336
  }
302
-
303
- igc-input::part(container) {
304
- border: 0;
305
- height: 100%;
306
- padding: 0 !important;
307
- border-block-end: none !important;
337
+ .search-trigger-mobile {
338
+ display: none;
339
+ --background: var(--igd-layout-sections-bg);
340
+ --hover-background: var(--igd-layout-sections-bg);
341
+ --focus-background: var(--igd-layout-sections-bg);
342
+ --focus-hover-background: var(--igd-layout-sections-bg);
343
+ --active-background: var(--igd-layout-sections-bg);
308
344
  }
309
345
  }
310
346
 
311
- // Search dialog header bar (input + optional scope + close)
312
- .igd-search-header {
313
- display: flex;
314
- min-height: rem(75px);
315
- }
316
-
317
- .igd-search-scope {
318
- flex-shrink: 0;
319
- align-self: center;
320
- }
321
-
322
- .igd-search-input {
323
- --input-prefix-background: transparent;
324
- --input-prefix-background--focused: transparent;
325
- --input-prefix-background--filled: transparent;
326
-
327
- --input-suffix-background: transparent;
328
- --input-suffix-background--focused: transparent;
329
- --input-suffix-background--filled: transparent;
330
347
 
331
- width: 100%;
332
- min-width: 0;
333
- flex: 1 1 auto;
334
-
335
- &::part(input) {
336
- @include type-style('body-2') {
337
- margin: 0;
338
- }
348
+ @keyframes rotation {
349
+ from {
350
+ --rot: 0deg;
351
+
339
352
  }
340
- }
341
-
342
- .igd-search-clear {
343
- --foreground: light-dark(var(--ig-gray-900), var(--ig-gray-900));
344
- --hover-foreground: var(--igd-accent);
345
- --focus-hover-foreground: var(--igd-accent);
346
- --focus-foreground: var(--igd-accent);
347
- --active-foreground: var(--igd-accent);
348
- --shadow-color: transparent;
349
- --background: transparent;
350
- --hover-background: transparent;
351
- --focus-background: transparent;
352
- --focus-hover-background: transparent;
353
- --active-background: transparent;
354
- --border-color: transparent;
355
- --border-radius: 0;
356
-
357
- &::part(base) {
358
- &::after {
359
- display: none;
360
- }
353
+ to {
354
+ --rot: 360deg;
361
355
  }
362
356
  }
363
357
 
364
- .igd-search-icon {
365
- color: light-dark(var(--ig-gray-900), var(--ig-gray-500));
366
- margin-inline-start: rem(8px);
367
- }
368
-
369
- }
370
-