igniteui-astro-components 0.0.26 → 0.0.28

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 (93) hide show
  1. package/README.md +82 -74
  2. package/package.json +16 -9
  3. package/src/components/CopyCode/CopyCode.astro +21 -7
  4. package/src/components/DocsBreadcrumb/DocsBreadcrumb.astro +33 -21
  5. package/src/components/DocsBreadcrumb/DocsBreadcrumb.scss +44 -43
  6. package/src/components/DocsBreadcrumb/README.md +10 -14
  7. package/src/components/DocsSidebar/DocsSidebar.astro +47 -45
  8. package/src/components/DocsSidebar/DocsSidebar.scss +120 -122
  9. package/src/components/DocsSidebar/README.md +25 -21
  10. package/src/components/DocsSidebar/SidebarFilterInput.astro +24 -29
  11. package/src/components/DocsSidebar/SidebarFilterInput.scss +90 -89
  12. package/src/components/DocsSidebar/SidebarLabel.astro +35 -26
  13. package/src/components/DocsSidebar/sidebar-filter.ts +93 -56
  14. package/src/components/DocsSubHeader/DocsSubHeader.astro +256 -185
  15. package/src/components/DocsSubHeader/DocsSubHeader.scss +181 -169
  16. package/src/components/DocsSubHeader/README.md +18 -16
  17. package/src/components/DocsToc/DocsToc.astro +301 -280
  18. package/src/components/DocsToc/DocsToc.scss +20 -21
  19. package/src/components/DocsToc/README.md +11 -9
  20. package/src/components/DocsToc/toTreeNodes.ts +3 -8
  21. package/src/components/DocsTree/DocsTree.astro +32 -20
  22. package/src/components/DocsTree/DocsTreeItem.astro +35 -30
  23. package/src/components/DocsTree/README.md +16 -15
  24. package/src/components/DocsTree/docs-tree.scss +267 -268
  25. package/src/components/GlobalFooter/GlobalFooter.astro +10 -10
  26. package/src/components/GlobalFooter/README.md +3 -2
  27. package/src/components/GlobalNavBar/GlobalNavBar.astro +4 -2
  28. package/src/components/GlobalNavBar/GlobalNavBar.module.scss +222 -222
  29. package/src/components/GlobalNavBar/README.md +3 -2
  30. package/src/components/LicenseIndicator/LicenseIndicator.astro +7 -5
  31. package/src/components/LicenseIndicator/LicenseIndicator.scss +3 -3
  32. package/src/components/MobileSidebarToggle/MobileSidebarToggle.astro +16 -17
  33. package/src/components/MobileSidebarToggle/README.md +3 -2
  34. package/src/components/MobileTocToggle/MobileTocToggle.astro +75 -61
  35. package/src/components/MobileTocToggle/MobileTocToggle.scss +65 -59
  36. package/src/components/Search/README.md +1 -0
  37. package/src/components/Search/Search.astro +137 -109
  38. package/src/components/Search/Search.scss +20 -20
  39. package/src/components/SearchAdvanced/README.md +21 -15
  40. package/src/components/SearchAdvanced/SearchAdvanced.astro +220 -133
  41. package/src/components/SearchAdvanced/SearchAdvanced.scss +152 -153
  42. package/src/components/mdx/ApiLink/ApiLink.astro +133 -113
  43. package/src/components/mdx/ApiLink/ApiLink.scss +9 -9
  44. package/src/components/mdx/ApiLink/README.md +26 -22
  45. package/src/components/mdx/ApiLink/api-link-index.ts +196 -173
  46. package/src/components/mdx/ApiRef/ApiRef.astro +54 -51
  47. package/src/components/mdx/ApiRef/README.md +20 -15
  48. package/src/components/mdx/Badge/Badge.astro +14 -14
  49. package/src/components/mdx/Badge/Badge.scss +61 -56
  50. package/src/components/mdx/Badge/README.md +24 -19
  51. package/src/components/mdx/DocsAside/DocsAside.astro +30 -37
  52. package/src/components/mdx/DocsAside/DocsAside.scss +82 -82
  53. package/src/components/mdx/DocsAside/README.md +22 -22
  54. package/src/components/mdx/Faq/Faq.astro +86 -0
  55. package/src/components/mdx/Faq/Faq.scss +105 -0
  56. package/src/components/mdx/Faq/FaqItem.astro +117 -0
  57. package/src/components/mdx/Faq/README.md +223 -0
  58. package/src/components/mdx/Faq/types.ts +34 -0
  59. package/src/components/mdx/PlatformBlock/PlatformBlock.astro +3 -2
  60. package/src/components/mdx/PlatformBlock/README.md +6 -8
  61. package/src/components/mdx/Sample/README.md +21 -16
  62. package/src/components/mdx/Sample/Sample.astro +97 -74
  63. package/src/components/mdx/Sample/Sample.scss +132 -132
  64. package/src/content-helper.ts +71 -72
  65. package/src/content.config.ts +1 -6
  66. package/src/integration.ts +566 -512
  67. package/src/layouts/DocsLayout/DocsLayout.astro +228 -182
  68. package/src/layouts/DocsLayout/DocsLayout.scss +261 -261
  69. package/src/layouts/DocsLayout/README.md +24 -35
  70. package/src/lib/nav-helpers.ts +88 -82
  71. package/src/lib/types.ts +76 -76
  72. package/src/llms.ts +205 -166
  73. package/src/platform.ts +312 -162
  74. package/src/plugins/rehype-heading-anchors.ts +45 -45
  75. package/src/plugins/rehype-pagefind-ignore.ts +19 -19
  76. package/src/plugins/rehype-table-wrapper.ts +30 -30
  77. package/src/plugins/remark-docfx.ts +12 -0
  78. package/src/plugins/remark-env-vars.ts +12 -4
  79. package/src/plugins/remark-md-links.ts +10 -4
  80. package/src/scripts/icon-manifest.ts +13 -5
  81. package/src/scripts/sample-widget.ts +557 -501
  82. package/src/sidebar.ts +103 -97
  83. package/src/styles/global/_code-blocks.scss +43 -44
  84. package/src/styles/global/_component-themes.scss +151 -153
  85. package/src/styles/global/_icon-gallery.scss +81 -81
  86. package/src/styles/global/_index.scss +0 -1
  87. package/src/styles/global/_markdown.scss +816 -787
  88. package/src/styles/global/_palette.scss +456 -110
  89. package/src/styles/global/_search-shared.scss +402 -398
  90. package/src/styles/global/_type-scale.scss +127 -127
  91. package/src/styles/global/_variables.scss +138 -111
  92. package/src/styles/theme.scss +49 -40
  93. package/src/virtual-modules.d.ts +11 -2
@@ -1,173 +1,185 @@
1
1
  @use 'igniteui-theming/sass/typography' as *;
2
2
 
3
3
  @layer components {
4
- .igd-docs-subheader {
5
- position: sticky;
6
- inset: 0;
7
- display: grid;
8
-
9
- // Subgrid: mirror the parent .igd-page-layout column tracks so the logo
10
- // column aligns with the sidebar column at all breakpoints.
11
- grid-template-columns: var(--igd-page-layout-grid);
12
- align-items: center;
13
- width: 100%;
14
- min-height: var(--igd-header-height);
15
- grid-column: 1 / -1;
16
- grid-row: 1;
17
- border-block-end: var(--igd-app-outline);
18
- z-index: 1;
19
- background-color: var(--igd-layout-sections-bg);
20
- view-transition-name: docs-subheader;
21
- padding-inline-start: rem(24px);
22
-
23
- .igd-logo {
24
- display: flex;
25
- align-items: center;
26
- height: 100%;
27
- padding-inline: 0 rem(16px);
28
-
29
- .igd-logo__text {
30
- display: flex;
31
- flex-direction: column;
32
- justify-content: center;
33
-
34
- > .igd-logo-text {
35
- @include type-style('h3') {
36
- margin-block-end: rem(6px);
37
- line-height: 1;
38
- };
39
-
40
- color: var(--ig-gray-800);
41
- }
42
- }
43
-
44
- .igd-logo__platform {
45
- @include type-style('subtitle', false) {
46
- line-height: 1;
47
- margin: 0;
48
- };
49
-
50
- color: var(--ig-gray-500);
51
-
52
- }
53
- }
54
-
55
- // TODO THIS AND THE FILTER CAN BE UNDEr ONCE CLASS SINCE THE THEME IS THE SAME NO NEED TO REPEAT
56
- igc-input {
57
- --ig-input-group-input-suffix-color: light-dark(var(--ig-gray-900), var(--ig-gray-800));
58
- --ig-input-group-input-suffix-color--filled: light-dark(var(--ig-gray-900), var(--ig-gray-800));
59
- --ig-input-group-input-suffix-color--focused: light-dark(var(--ig-gray-900), var(--ig-gray-800));
60
- --ig-input-group-idle-text-color: light-dark(var(--ig-gray-900), var(--ig-gray-800));
61
- --ig-input-group-filled-text-color: light-dark(var(--ig-gray-900), var(--ig-gray-900));
62
- --ig-input-group-placeholder-color: var(--ig-gray-500);
63
- --ig-input-group-hover-placeholder-color: var(--ig-gray-500);
64
-
65
- --input-prefix-background: transparent;
66
- --input-prefix-background--focused: transparent;
67
- --input-prefix-background--filled: transparent;
68
-
69
- --input-suffix-background: transparent;
70
- --input-suffix-background--focused: transparent;
71
- --input-suffix-background--filled: transparent;
72
-
73
- --ig-flat-button-hover-background: transparent;
74
- --ig-flat-button-focus-background: transparent;
75
- --ig-flat-button-icon-color-hover: var(--igd-accent);
76
- --ig-flat-button-icon-color-focus: var(--igd-accent);
77
- --border-border-radius: var(--igd-border-radius-xl);
78
- --border-background: light-dark(var(--ig-gray-50), var(--ig-gray-50));
79
- --border-color: transparent;
80
- --hover-border-color: var(--ig-gray-400);
81
- --focused-border-color: var(--igd-accent);
82
- }
4
+ .igd-docs-subheader {
5
+ position: sticky;
6
+ inset: 0;
7
+ display: grid;
8
+
9
+ // Subgrid: mirror the parent .igd-page-layout column tracks so the logo
10
+ // column aligns with the sidebar column at all breakpoints.
11
+ grid-template-columns: var(--igd-page-layout-grid);
12
+ align-items: center;
13
+ width: 100%;
14
+ min-height: var(--igd-header-height);
15
+ grid-column: 1 / -1;
16
+ grid-row: 1;
17
+ border-block-end: var(--igd-app-outline);
18
+ z-index: 1;
19
+ background-color: var(--igd-layout-sections-bg);
20
+ view-transition-name: docs-subheader;
21
+ padding-inline-start: rem(24px);
22
+
23
+ .igd-logo {
24
+ display: flex;
25
+ align-items: center;
26
+ height: 100%;
27
+ padding-inline: 0 rem(16px);
28
+
29
+ .igd-logo__text {
30
+ display: flex;
31
+ flex-direction: column;
32
+ justify-content: center;
33
+
34
+ > .igd-logo-text {
35
+ @include type-style('h3') {
36
+ margin-block-end: rem(6px);
37
+ line-height: 1;
38
+ }
39
+
40
+ color: var(--ig-gray-800);
41
+ }
42
+ }
43
+
44
+ .igd-logo__platform {
45
+ @include type-style('subtitle', false) {
46
+ line-height: 1;
47
+ margin: 0;
48
+ }
49
+
50
+ color: var(--ig-gray-500);
51
+ }
52
+ }
53
+
54
+ // TODO THIS AND THE FILTER CAN BE UNDEr ONCE CLASS SINCE THE THEME IS THE SAME NO NEED TO REPEAT
55
+ igc-input {
56
+ --ig-input-group-input-suffix-color: light-dark(var(--ig-gray-900), var(--ig-gray-800));
57
+ --ig-input-group-input-suffix-color--filled: light-dark(
58
+ var(--ig-gray-900),
59
+ var(--ig-gray-800)
60
+ );
61
+ --ig-input-group-input-suffix-color--focused: light-dark(
62
+ var(--ig-gray-900),
63
+ var(--ig-gray-800)
64
+ );
65
+ --ig-input-group-idle-text-color: light-dark(var(--ig-gray-900), var(--ig-gray-800));
66
+ --ig-input-group-filled-text-color: light-dark(var(--ig-gray-900), var(--ig-gray-900));
67
+ --ig-input-group-placeholder-color: var(--ig-gray-500);
68
+ --ig-input-group-hover-placeholder-color: var(--ig-gray-500);
69
+
70
+ --input-prefix-background: transparent;
71
+ --input-prefix-background--focused: transparent;
72
+ --input-prefix-background--filled: transparent;
73
+
74
+ --input-suffix-background: transparent;
75
+ --input-suffix-background--focused: transparent;
76
+ --input-suffix-background--filled: transparent;
77
+
78
+ --ig-flat-button-hover-background: transparent;
79
+ --ig-flat-button-focus-background: transparent;
80
+ --ig-flat-button-icon-color-hover: var(--igd-accent);
81
+ --ig-flat-button-icon-color-focus: var(--igd-accent);
82
+ --border-border-radius: var(--igd-border-radius-xl);
83
+ --border-background: light-dark(var(--ig-gray-50), var(--ig-gray-50));
84
+ --border-color: transparent;
85
+ --hover-border-color: var(--ig-gray-400);
86
+ --focused-border-color: var(--igd-accent);
87
+ }
88
+ }
89
+
90
+ .igd-docs-subheader__content {
91
+ display: flex;
92
+ align-items: center;
93
+ height: 100%;
94
+ gap: rem(16px);
95
+ min-width: 0;
96
+ justify-content: end;
97
+
98
+ &:last-child {
99
+ margin-inline-end: rem(24px);
100
+ }
101
+
102
+ > igc-input {
103
+ --border-color: transparent;
104
+ --hover-border-color: transparent;
105
+ --size: #{rem(38px)};
106
+
107
+ &::part(container) {
108
+ &::before {
109
+ display: none;
110
+ }
111
+ }
112
+
113
+ &:focus-within {
114
+ &::part(container) {
115
+ border-color: var(--focused-border-color);
116
+ }
117
+ }
118
+ }
119
+ }
120
+
121
+ .igd-package-select,
122
+ .igd-version-select {
123
+ flex-shrink: 0;
124
+ position: relative;
125
+ width: fit-content;
126
+ max-width: rem(250px);
127
+
128
+ &::part(base) {
129
+ position: absolute;
130
+ inset-block-start: 100%;
131
+ inset-inline-end: 0;
132
+ width: max-content;
133
+ min-width: 100%;
134
+ z-index: 100;
135
+ }
136
+ }
137
+
138
+ .igd-version-select {
139
+ &::part(native-input) {
140
+ field-sizing: content;
141
+ }
142
+ }
143
+
144
+ .igd-package-select {
145
+ &::part(native-input) {
146
+ min-width: 0;
147
+ overflow: hidden;
148
+ text-overflow: ellipsis;
149
+ white-space: nowrap;
150
+ }
151
+ }
152
+
153
+ // Hidden by default. DocsLayout.scss reveals it on tablet/mobile (when the sidebar is hidden).
154
+ .subheader-sidebar-toggle {
155
+ display: none;
156
+
157
+ --foreground: light-dark(var(--ig-gray-900), var(--ig-gray-900));
158
+ --background: transparent;
159
+ --border-color: transparent;
160
+
161
+ --hover-foreground: var(--igd-accent);
162
+ --hover-background: transparent;
163
+
164
+ --focus-foreground: var(--igd-accent);
165
+ --focus-background: transparent;
166
+
167
+ --active-foreground: var(--igd-accent);
168
+ --active-background: transparent;
169
+ }
170
+
171
+ #package-tooltip,
172
+ .igd-package-select-tooltip {
173
+ --ig-tooltip-background: #d2dbe8;
174
+ --ig-tooltip-text-color: #112031;
175
+ --ig-tooltip-border-radius: #{rem(4px)};
176
+
177
+ &::part(base) {
178
+ font-family: var(--igd-font-sans);
179
+ font-size: #{rem(12px)};
180
+ font-weight: 500;
181
+ line-height: #{rem(18px)};
182
+ letter-spacing: 0;
183
+ }
184
+ }
83
185
  }
84
-
85
- .igd-docs-subheader__content {
86
- display: flex;
87
- align-items: center;
88
- height: 100%;
89
- gap: rem(16px);
90
- min-width: 0;
91
- justify-content: end;
92
-
93
- &:last-child {
94
- margin-inline-end: rem(24px);
95
- }
96
-
97
- > igc-input {
98
- --border-color: transparent;
99
- --hover-border-color: transparent;
100
- --size: #{rem(38px)};
101
-
102
- &::part(container) {
103
- &::before {
104
- display: none;
105
- }
106
- }
107
-
108
- &:focus-within {
109
- &::part(container) {
110
- border-color: var(--focused-border-color);
111
- }
112
- }
113
- }
114
- }
115
-
116
- .igd-package-select,
117
- .igd-version-select {
118
- flex-shrink: 0;
119
- position: relative;
120
- width: fit-content;
121
- max-width: rem(250px);
122
-
123
- &::part(base) {
124
- position: absolute;
125
- inset-block-start: 100%;
126
- inset-inline-end: 0;
127
- width: max-content;
128
- min-width: 100%;
129
- z-index: 100;
130
- }
131
- }
132
-
133
- .igd-version-select,
134
- .igd-package-select {
135
- &::part(native-input) {
136
- field-sizing: content;
137
- }
138
- }
139
-
140
- // Hidden by default. DocsLayout.scss reveals it on tablet/mobile (when the sidebar is hidden).
141
- .subheader-sidebar-toggle {
142
- display: none;
143
-
144
- --foreground: light-dark(var(--ig-gray-900), var(--ig-gray-900));
145
- --background: transparent;
146
- --border-color: transparent;
147
-
148
- --hover-foreground: var(--igd-accent);
149
- --hover-background: transparent;
150
-
151
- --focus-foreground: var(--igd-accent);
152
- --focus-background: transparent;
153
-
154
- --active-foreground: var(--igd-accent);
155
- --active-background: transparent;
156
- }
157
-
158
- #package-tooltip {
159
- --ig-tooltip-background: #D2DBE8;
160
- --ig-tooltip-text-color: #112031;
161
- --ig-tooltip-border-radius: #{rem(4px)};
162
-
163
- &::part(base) {
164
- font-family: var(--igd-font-sans);
165
- font-size: #{rem(12px)};
166
- font-weight: 500;
167
- line-height: #{rem(18px)};
168
- letter-spacing: 0;
169
- }
170
- }
171
-
172
- }
173
-
@@ -12,23 +12,23 @@ import DocsSubHeader from 'igniteui-astro-components/components/DocsSubHeader.as
12
12
 
13
13
  ## Props
14
14
 
15
- | Prop | Type | Default | Description |
16
- |------|------|---------|-------------|
17
- | `productLinks` | `{ label: string; href: string; platform?: string }[]` | virtual module | Override the cross-product navigation links. |
18
- | `sidebarItems` | `SidebarEntry[]` | virtual module | Override the sidebar tree used for breadcrumb generation. |
19
- | `packages` | `string[]` | — | Package names for the package selector dropdown. Hidden when omitted. |
20
- | `selectedPackage` | `string` | — | Currently selected package (must match one of `packages`). |
21
- | `packageLabel` | `string` | `'Package'` | Label rendered before the package selector. |
22
- | `versions` | `string[]` | — | Version labels for the version selector dropdown. Hidden when omitted. |
23
- | `selectedVersion` | `string` | — | Currently selected version (must match one of `versions`). |
24
- | `versionLabel` | `string` | `'Version'` | Label rendered before the version selector. |
25
- | `showThemeToggle` | `boolean` | `false` | Show a light/dark theme toggle button. |
26
- | `themeStorageKey` | `string` | `'docs-theme'` | `localStorage` key for persisting the theme preference. |
15
+ | Prop | Type | Default | Description |
16
+ | ----------------- | ------------------------------------------------------ | -------------- | ---------------------------------------------------------------------- |
17
+ | `productLinks` | `{ label: string; href: string; platform?: string }[]` | virtual module | Override the cross-product navigation links. |
18
+ | `sidebarItems` | `SidebarEntry[]` | virtual module | Override the sidebar tree used for breadcrumb generation. |
19
+ | `packages` | `string[]` | — | Package names for the package selector dropdown. Hidden when omitted. |
20
+ | `selectedPackage` | `string` | — | Currently selected package (must match one of `packages`). |
21
+ | `packageLabel` | `string` | `'Package'` | Label rendered before the package selector. |
22
+ | `versions` | `string[]` | — | Version labels for the version selector dropdown. Hidden when omitted. |
23
+ | `selectedVersion` | `string` | — | Currently selected version (must match one of `versions`). |
24
+ | `versionLabel` | `string` | `'Version'` | Label rendered before the version selector. |
25
+ | `showThemeToggle` | `boolean` | `false` | Show a light/dark theme toggle button. |
26
+ | `themeStorageKey` | `string` | `'docs-theme'` | `localStorage` key for persisting the theme preference. |
27
27
 
28
28
  ## Slots
29
29
 
30
- | Slot | Default | Description |
31
- |------|---------|-------------|
30
+ | Slot | Default | Description |
31
+ | -------- | ------------ | ----------------------------------------------------- |
32
32
  | `search` | `<Search />` | Override the search widget rendered in the subheader. |
33
33
 
34
34
  ## Behaviour
@@ -46,11 +46,12 @@ import DocsSubHeader from 'igniteui-astro-components/components/DocsSubHeader.as
46
46
  import DocsSubHeader from 'igniteui-astro-components/components/DocsSubHeader.astro';
47
47
 
48
48
  const productLinks = [
49
- { label: 'Angular', href: '/angular/', platform: 'angular' },
50
- { label: 'React', href: '/react/', platform: 'react' },
49
+ { label: 'Angular', href: '/angular/', platform: 'angular' },
50
+ { label: 'React', href: '/react/', platform: 'react' },
51
51
  { label: 'Web Components', href: '/web-components/', platform: 'web-components' },
52
52
  ];
53
53
  ---
54
+
54
55
  <DocsSubHeader productLinks={productLinks} />
55
56
  ```
56
57
 
@@ -64,6 +65,7 @@ mount it directly when building a custom page shell.
64
65
  import DocsSubHeader from 'igniteui-astro-components/components/DocsSubHeader.astro';
65
66
  import SearchAdvanced from 'igniteui-astro-components/components/SearchAdvanced.astro';
66
67
  ---
68
+
67
69
  <DocsSubHeader
68
70
  siteTitle="Ignite UI for Angular"
69
71
  packages={['igniteui-angular', 'igniteui-charts']}