igniteui-astro-components 0.0.14 → 0.0.16
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 +2 -1
- package/src/components/CopyCode/CopyCode.astro +73 -0
- package/src/components/DocsSidebar/DocsSidebar.scss +19 -18
- package/src/components/DocsSidebar/SidebarFilterInput.scss +2 -3
- package/src/components/DocsSidebar/SidebarLabel.astro +1 -1
- package/src/components/DocsSidebar/sidebar-filter.ts +54 -13
- package/src/components/DocsSubHeader/DocsSubHeader.astro +35 -2
- package/src/components/DocsSubHeader/DocsSubHeader.scss +3 -1
- package/src/components/DocsToc/DocsToc.scss +1 -1
- package/src/components/DocsTree/docs-tree.scss +138 -32
- package/src/components/Search/Search.scss +8 -0
- package/src/components/SearchAdvanced/SearchAdvanced.astro +48 -1
- package/src/components/SearchAdvanced/SearchAdvanced.scss +44 -2
- package/src/components/mdx/ApiLink/ApiLink.astro +1 -0
- package/src/components/mdx/ApiLink/ApiLink.scss +13 -0
- package/src/components/mdx/Sample/Sample.scss +4 -3
- package/src/layouts/DocsLayout/DocsLayout.astro +5 -2
- package/src/styles/global/_code-blocks.scss +41 -42
- package/src/styles/global/_markdown.scss +83 -34
- package/src/styles/global/_search-shared.scss +2 -9
- package/src/styles/global/_type-scale.scss +17 -19
- package/src/styles/global/_variables.scss +7 -7
- package/src/styles/theme.scss +30 -2
- package/src/virtual-modules.d.ts +4 -0
|
@@ -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-
|
|
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(
|
|
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:
|
|
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:
|
|
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-
|
|
96
|
-
--igd-aside-note-content: light-dark(var(--ig-gray-800), var(--ig-gray-
|
|
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:
|
|
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
|
|
package/src/styles/theme.scss
CHANGED
|
@@ -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-
|
|
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: '"
|
|
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
|
}
|
package/src/virtual-modules.d.ts
CHANGED
|
@@ -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' {
|