igniteui-astro-components 0.0.2 → 0.0.3
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 +28 -58
- 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/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 +9 -0
- 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/components/DocsTree/docs-tree.css +0 -226
- package/src/styles/ig-theme.scss +0 -43
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* docs-tree.css — single styling locus for the DocsTree base component.
|
|
3
|
-
*
|
|
4
|
-
* Layered as:
|
|
5
|
-
* 1. Base rules + CSS custom-property contract (both variants)
|
|
6
|
-
* 2. Web component shadow-part normalization
|
|
7
|
-
* 3. [data-variant="sidebar"] overrides
|
|
8
|
-
* 4. [data-variant="toc"] overrides
|
|
9
|
-
*
|
|
10
|
-
* Designers tune values via the `--docs-tree-*` variables. Structural rules
|
|
11
|
-
* live below the variables; per-variant tweaks at the bottom.
|
|
12
|
-
*
|
|
13
|
-
* Layout rules that don't belong to the tree itself (sidebar-filter-igc,
|
|
14
|
-
* .sidebar-scroll, .toc-sidebar, docs-toc h2) stay in their owning component
|
|
15
|
-
* .astro files.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
/* ── 1. Base + CSS custom-property contract ──────────────────────────────── */
|
|
19
|
-
|
|
20
|
-
igc-tree {
|
|
21
|
-
display: block;
|
|
22
|
-
--docs-tree-row-pad-y: 0.3rem;
|
|
23
|
-
--docs-tree-row-pad-x: 0.5rem;
|
|
24
|
-
--docs-tree-row-radius: 0.25rem;
|
|
25
|
-
--docs-tree-row-color: var(--sl-color-text, inherit);
|
|
26
|
-
--docs-tree-row-hover-bg: color-mix(in srgb, var(--sl-color-accent) 8%, transparent);
|
|
27
|
-
--docs-tree-row-hover-color: var(--sl-color-accent, #3b82f6);
|
|
28
|
-
--docs-tree-row-active-bg: color-mix(in srgb, var(--sl-color-accent) 12%, transparent);
|
|
29
|
-
--docs-tree-row-active-color: var(--sl-color-accent, #3b82f6);
|
|
30
|
-
--docs-tree-group-color: var(--sl-color-gray-3, #888);
|
|
31
|
-
--docs-tree-nested-rule: 1px solid var(--sl-color-hairline, #e2e4e9);
|
|
32
|
-
--docs-tree-nested-pad-x: 0.75rem;
|
|
33
|
-
|
|
34
|
-
/* Web component variables consumed by igc-tree itself. */
|
|
35
|
-
--ig-tree-background: transparent;
|
|
36
|
-
--igc-tree-indentation-size: 0px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/* ── 2. Shadow-part normalization ─────────────────────────────────────────── */
|
|
40
|
-
|
|
41
|
-
igc-tree-item::part(wrapper) {
|
|
42
|
-
padding: 0;
|
|
43
|
-
background: transparent;
|
|
44
|
-
border-radius: 0;
|
|
45
|
-
min-height: unset;
|
|
46
|
-
gap: 0;
|
|
47
|
-
cursor: default;
|
|
48
|
-
}
|
|
49
|
-
igc-tree-item::part(wrapper):hover {
|
|
50
|
-
background: transparent;
|
|
51
|
-
}
|
|
52
|
-
igc-tree-item::part(label) {
|
|
53
|
-
flex: 1;
|
|
54
|
-
min-width: 0;
|
|
55
|
-
overflow: visible;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/*
|
|
59
|
-
* Hide the default expand indicator across both variants. The sidebar
|
|
60
|
-
* draws its own caret inside the label slot via SidebarLabel; the toc
|
|
61
|
-
* has no expand UI at all (the scroll-spy drives `expanded` behind the
|
|
62
|
-
* scenes). Replaces the old slot-override pattern.
|
|
63
|
-
*/
|
|
64
|
-
igc-tree-item::part(indicator) {
|
|
65
|
-
display: none;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/*
|
|
69
|
-
* Keyboard focus and active state are styled through the wrapper part:
|
|
70
|
-
* • :focus-visible — keyboard focus on the item host.
|
|
71
|
-
* • :has(a[aria-current]) — active page link (set at SSR time on the <a>).
|
|
72
|
-
* Using aria-current instead of the igc `active` attribute avoids
|
|
73
|
-
* triggering IgcTreeItemComponent.activeChange() during registration.
|
|
74
|
-
*/
|
|
75
|
-
igc-tree-item:focus-visible::part(wrapper) {
|
|
76
|
-
outline: 2px solid var(--sl-color-accent, #3b82f6);
|
|
77
|
-
outline-offset: -2px;
|
|
78
|
-
border-radius: var(--docs-tree-row-radius);
|
|
79
|
-
}
|
|
80
|
-
igc-tree-item:has(a[aria-current])::part(wrapper) {
|
|
81
|
-
border-radius: var(--docs-tree-row-radius);
|
|
82
|
-
background: color-mix(in srgb, var(--sl-color-accent) 5%, transparent);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/* Default label/link styling — used when consumer omits renderLabel. */
|
|
86
|
-
.docs-tree-link {
|
|
87
|
-
display: flex;
|
|
88
|
-
align-items: center;
|
|
89
|
-
gap: 0.5rem;
|
|
90
|
-
padding: var(--docs-tree-row-pad-y) var(--docs-tree-row-pad-x);
|
|
91
|
-
border-radius: var(--docs-tree-row-radius);
|
|
92
|
-
font-size: var(--sl-text-sm, 0.875rem);
|
|
93
|
-
color: var(--docs-tree-row-color);
|
|
94
|
-
text-decoration: none;
|
|
95
|
-
line-height: 1.4;
|
|
96
|
-
cursor: pointer;
|
|
97
|
-
}
|
|
98
|
-
.docs-tree-link:hover {
|
|
99
|
-
background: var(--docs-tree-row-hover-bg);
|
|
100
|
-
color: var(--docs-tree-row-hover-color);
|
|
101
|
-
text-decoration: none;
|
|
102
|
-
}
|
|
103
|
-
.docs-tree-link[aria-current='page'],
|
|
104
|
-
.docs-tree-link[aria-current='true'] {
|
|
105
|
-
background: var(--docs-tree-row-active-bg);
|
|
106
|
-
color: var(--docs-tree-row-active-color);
|
|
107
|
-
font-weight: 600;
|
|
108
|
-
}
|
|
109
|
-
.docs-tree-label {
|
|
110
|
-
flex: 1;
|
|
111
|
-
min-width: 0;
|
|
112
|
-
overflow: hidden;
|
|
113
|
-
text-overflow: ellipsis;
|
|
114
|
-
white-space: nowrap;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/* ── 3. Sidebar variant ──────────────────────────────────────────────────── */
|
|
118
|
-
|
|
119
|
-
/* Group label container (the .docs-tree-group emitted by DocsTreeItem). */
|
|
120
|
-
igc-tree[data-variant='sidebar'] .docs-tree-group {
|
|
121
|
-
display: flex;
|
|
122
|
-
align-items: center;
|
|
123
|
-
gap: 0.5rem;
|
|
124
|
-
font-size: var(--sl-text-xs, 0.75rem);
|
|
125
|
-
font-weight: 700;
|
|
126
|
-
text-transform: uppercase;
|
|
127
|
-
letter-spacing: 0.07em;
|
|
128
|
-
color: var(--docs-tree-group-color);
|
|
129
|
-
padding: 0.5rem 0 0.25rem;
|
|
130
|
-
cursor: pointer;
|
|
131
|
-
user-select: none;
|
|
132
|
-
}
|
|
133
|
-
igc-tree[data-variant='sidebar'] .group-label-text {
|
|
134
|
-
flex: 1;
|
|
135
|
-
min-width: 0;
|
|
136
|
-
overflow: hidden;
|
|
137
|
-
text-overflow: ellipsis;
|
|
138
|
-
white-space: nowrap;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/* Caret rotates when the parent <igc-tree-item> reflects [expanded]. */
|
|
142
|
-
igc-tree[data-variant='sidebar'] .group-caret {
|
|
143
|
-
flex-shrink: 0;
|
|
144
|
-
margin-inline-start: auto;
|
|
145
|
-
color: var(--docs-tree-group-color);
|
|
146
|
-
transform: rotate(0deg);
|
|
147
|
-
transition: transform 120ms ease-out;
|
|
148
|
-
}
|
|
149
|
-
igc-tree[data-variant='sidebar'] igc-tree-item[expanded] > [slot='label'] .group-caret {
|
|
150
|
-
transform: rotate(90deg);
|
|
151
|
-
}
|
|
152
|
-
@media (prefers-reduced-motion: reduce) {
|
|
153
|
-
igc-tree[data-variant='sidebar'] .group-caret { transition: none; }
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/* Nested items: rule + indent. data-depth >= 1 = nested. */
|
|
157
|
-
igc-tree[data-variant='sidebar'] igc-tree-item[data-depth]:not([data-depth='0'])::part(wrapper) {
|
|
158
|
-
padding-inline-start: var(--docs-tree-nested-pad-x);
|
|
159
|
-
border-inline-start: var(--docs-tree-nested-rule);
|
|
160
|
-
margin-inline-start: 0.25rem;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/* Badges (rendered by SidebarLabel.astro inside the leaf <a>). */
|
|
164
|
-
igc-tree[data-variant='sidebar'] .sl-badge {
|
|
165
|
-
display: inline-flex;
|
|
166
|
-
align-items: center;
|
|
167
|
-
border-radius: 0.25rem;
|
|
168
|
-
padding: 0.1rem 0.35rem;
|
|
169
|
-
font-size: 0.65rem;
|
|
170
|
-
font-weight: 700;
|
|
171
|
-
text-transform: uppercase;
|
|
172
|
-
letter-spacing: 0.05em;
|
|
173
|
-
border: 1px solid currentColor;
|
|
174
|
-
margin-inline-start: auto;
|
|
175
|
-
flex-shrink: 0;
|
|
176
|
-
}
|
|
177
|
-
igc-tree[data-variant='sidebar'] .sl-badge.default { color: var(--sl-color-gray-3); }
|
|
178
|
-
igc-tree[data-variant='sidebar'] .sl-badge.note { color: hsl(234, 90%, 60%); }
|
|
179
|
-
igc-tree[data-variant='sidebar'] .sl-badge.tip { color: hsl(134, 70%, 38%); }
|
|
180
|
-
igc-tree[data-variant='sidebar'] .sl-badge.success { color: hsl(134, 70%, 38%); }
|
|
181
|
-
igc-tree[data-variant='sidebar'] .sl-badge.caution { color: hsl(40, 90%, 45%); }
|
|
182
|
-
igc-tree[data-variant='sidebar'] .sl-badge.danger { color: hsl(0, 85%, 52%); }
|
|
183
|
-
|
|
184
|
-
/* Filter visibility — driven by <sidebar-filter>. */
|
|
185
|
-
sidebar-filter[data-filtering] igc-tree[data-variant='sidebar'] igc-tree-item[data-path]:not([data-filter-match]) {
|
|
186
|
-
display: none;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/* ── 4. Toc variant ──────────────────────────────────────────────────────── */
|
|
190
|
-
|
|
191
|
-
/*
|
|
192
|
-
* Toc has no visible expand UI — the scroll-spy drives `expanded` on
|
|
193
|
-
* parent items behind the scenes; nested entries simply appear when
|
|
194
|
-
* the active section enters their parent. The base `::part(indicator)`
|
|
195
|
-
* rule above already hides the native chevron.
|
|
196
|
-
*/
|
|
197
|
-
|
|
198
|
-
/* Toc rows are tighter than sidebar rows. */
|
|
199
|
-
igc-tree[data-variant='toc'] .docs-tree-link {
|
|
200
|
-
display: block;
|
|
201
|
-
padding: 0.25rem 0.5rem;
|
|
202
|
-
color: var(--sl-color-gray-4, #666);
|
|
203
|
-
transition: color 0.15s, background-color 0.15s;
|
|
204
|
-
}
|
|
205
|
-
igc-tree[data-variant='toc'] .docs-tree-link:hover {
|
|
206
|
-
color: var(--sl-color-text, inherit);
|
|
207
|
-
background-color: var(--sl-color-gray-1, #f5f5f5);
|
|
208
|
-
}
|
|
209
|
-
igc-tree[data-variant='toc'] .docs-tree-link[aria-current='true'] {
|
|
210
|
-
color: var(--sl-color-accent-high, #3b82f6);
|
|
211
|
-
background-color: var(--sl-color-accent-low, #eff6ff);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/* Top-level toc entries (h2) are bolder. */
|
|
215
|
-
igc-tree[data-variant='toc'] igc-tree-item[data-depth='0'] > [slot='label'] > .docs-tree-link {
|
|
216
|
-
font-weight: 600;
|
|
217
|
-
color: var(--sl-color-text, inherit);
|
|
218
|
-
}
|
|
219
|
-
igc-tree[data-variant='toc'] igc-tree-item[data-depth='0'] > [slot='label'] > .docs-tree-link:hover {
|
|
220
|
-
color: var(--sl-color-text, inherit);
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
/* Nested toc entries get a small indent. */
|
|
224
|
-
igc-tree[data-variant='toc'] igc-tree-item[data-depth]:not([data-depth='0'])::part(wrapper) {
|
|
225
|
-
padding-inline-start: var(--docs-tree-nested-pad-x);
|
|
226
|
-
}
|
package/src/styles/ig-theme.scss
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// =============================================================================
|
|
2
|
-
// Ignite UI Design Tokens
|
|
3
|
-
//
|
|
4
|
-
// Uses the official igniteui-theming Sass library to generate --ig-* CSS
|
|
5
|
-
// custom properties. ONLY palette variables are emitted — no IG component
|
|
6
|
-
// styles are included. Changing the palette() values here updates every shade
|
|
7
|
-
// automatically on the next build.
|
|
8
|
-
// =============================================================================
|
|
9
|
-
|
|
10
|
-
@use 'igniteui-theming' as *;
|
|
11
|
-
|
|
12
|
-
$ig-palette: palette(
|
|
13
|
-
$primary: #0099ff,
|
|
14
|
-
$secondary: #e41c77,
|
|
15
|
-
$surface: #ffffff,
|
|
16
|
-
$gray: #9e9e9e,
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
@include palette($ig-palette);
|
|
20
|
-
|
|
21
|
-
// Starlight accent bridge — maps IG palette shades to Starlight accent vars
|
|
22
|
-
[data-theme='light'] {
|
|
23
|
-
--sl-color-accent-low: var(--ig-primary-200);
|
|
24
|
-
--sl-color-accent: var(--ig-primary-500);
|
|
25
|
-
--sl-color-accent-high: var(--ig-primary-800);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// Dark mode — re-emit palette with lighter primary/secondary for legibility
|
|
29
|
-
// on dark surfaces. Starlight writes [data-theme='dark'] on <html>.
|
|
30
|
-
[data-theme='dark'] {
|
|
31
|
-
$ig-palette-dark: palette(
|
|
32
|
-
$primary: #4db8ff,
|
|
33
|
-
$secondary: #f06ea3,
|
|
34
|
-
$surface: #1e2e23,
|
|
35
|
-
$gray: #9e9e9e,
|
|
36
|
-
);
|
|
37
|
-
|
|
38
|
-
@include palette($ig-palette-dark);
|
|
39
|
-
|
|
40
|
-
--sl-color-accent-low: var(--ig-primary-900);
|
|
41
|
-
--sl-color-accent: var(--ig-primary-400);
|
|
42
|
-
--sl-color-accent-high: var(--ig-primary-200);
|
|
43
|
-
}
|