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,108 +1,108 @@
1
1
  @use 'igniteui-theming' as *;
2
2
 
3
3
  .icon-gallery {
4
- container-type: inline-size;
4
+ container-type: inline-size;
5
5
  }
6
6
 
7
7
  igc-tabs.icon-gallery-tabs {
8
- --tabs-wrapper-padding: 0;
8
+ --tabs-wrapper-padding: 0;
9
9
  }
10
10
 
11
11
  .icon-gallery__grid {
12
- display: grid;
13
- grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
14
- gap: rem(16px);
15
- padding-block: rem(16px);
16
-
17
- &--illustrations {
18
- grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
19
- }
12
+ display: grid;
13
+ grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
14
+ gap: rem(16px);
15
+ padding-block: rem(16px);
16
+
17
+ &--illustrations {
18
+ grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
19
+ }
20
20
  }
21
21
 
22
22
  .icon-card {
23
- display: flex;
24
- flex-direction: column;
25
- align-items: center;
26
- gap: 0.5rem;
27
- padding: 1rem 0.75rem 0.75rem;
28
- border: 1px solid light-dark(var(--ig-gray-200), var(--ig-gray-100));
29
- border-radius: 0.625rem;
30
- background: light-dark(var(--ig-surface-500), var(--ig-surface-400));
31
- transition: border-color 0.15s, box-shadow 0.15s;
32
-
33
- &:hover {
34
- border-color: var(--ig-primary-300);
35
- box-shadow: 0 2px 8px light-dark(rgba(0, 0, 0, .06), rgba(0, 0, 0, .3));
36
- }
23
+ display: flex;
24
+ flex-direction: column;
25
+ align-items: center;
26
+ gap: 0.5rem;
27
+ padding: 1rem 0.75rem 0.75rem;
28
+ border: 1px solid light-dark(var(--ig-gray-200), var(--ig-gray-100));
29
+ border-radius: 0.625rem;
30
+ background: light-dark(var(--ig-surface-500), var(--ig-surface-400));
31
+ transition:
32
+ border-color 0.15s,
33
+ box-shadow 0.15s;
34
+
35
+ &:hover {
36
+ border-color: var(--ig-primary-300);
37
+ box-shadow: 0 2px 8px light-dark(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.3));
38
+ }
37
39
  }
38
40
 
39
41
  .icon-card__preview {
40
- display: flex;
41
- align-items: center;
42
- justify-content: center;
43
- margin-block: rem(16px);
44
-
45
- igc-icon {
46
- --size: 28px;
47
- color: inherit;
48
- }
49
-
50
- &--illustration {
51
- height: rem(32px);
52
-
53
-
54
- svg {
55
- width: 100%;
56
- height: 100%;
57
- object-fit: contain;
58
- fill: currentColor;
59
-
60
- path,
61
- rect,
62
- circle,
63
- polygon,
64
- polyline,
65
- ellipse {
66
- fill: currentColor;
67
- }
68
- }
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: center;
45
+ margin-block: rem(16px);
46
+
47
+ igc-icon {
48
+ --size: 28px;
49
+ color: inherit;
50
+ }
51
+
52
+ &--illustration {
53
+ height: rem(32px);
54
+
55
+ svg {
56
+ width: 100%;
57
+ height: 100%;
58
+ object-fit: contain;
59
+ fill: currentColor;
60
+
61
+ path,
62
+ rect,
63
+ circle,
64
+ polygon,
65
+ polyline,
66
+ ellipse {
67
+ fill: currentColor;
68
+ }
69
69
  }
70
+ }
70
71
  }
71
72
 
72
73
  .icon-card__name {
73
- @include type-style('caption') {
74
- margin-block-end: rem(24px);
75
- };
76
-
77
- text-align: center;
78
- word-break: break-all;
79
- color: light-dark(var(--ig-gray-700), var(--ig-gray-800));
74
+ @include type-style('caption') {
75
+ margin-block-end: rem(24px);
76
+ }
77
+
78
+ text-align: center;
79
+ word-break: break-all;
80
+ color: light-dark(var(--ig-gray-700), var(--ig-gray-800));
80
81
  }
81
82
 
82
83
  .icon-card__actions {
83
- display: flex;
84
- flex-direction: column;
85
- gap: rem(8px);
86
- width: 100%;
87
-
88
-
89
- igc-button {
90
- flex: 1;
91
-
92
- &::part(base) {
93
- @include type-style('caption') {
94
- margin: 0;
95
- };
96
- }
97
-
98
- &.icon-card__btn--copied::part(base) {
99
- background: light-dark(var(--ig-success-100), var(--ig-success-200));
100
- border-color: var(--ig-success-400);
101
- color: var(--ig-success-700);
102
- }
84
+ display: flex;
85
+ flex-direction: column;
86
+ gap: rem(8px);
87
+ width: 100%;
88
+
89
+ igc-button {
90
+ flex: 1;
91
+
92
+ &::part(base) {
93
+ @include type-style('caption') {
94
+ margin: 0;
95
+ }
96
+ }
97
+
98
+ &.icon-card__btn--copied::part(base) {
99
+ background: light-dark(var(--ig-success-100), var(--ig-success-200));
100
+ border-color: var(--ig-success-400);
101
+ color: var(--ig-success-700);
103
102
  }
103
+ }
104
104
  }
105
105
 
106
106
  dialog::backdrop {
107
- opacity: 1;
107
+ opacity: 1;
108
108
  }
@@ -6,4 +6,3 @@
6
6
  @use 'component-themes';
7
7
  @use 'icon-gallery';
8
8
  @forward 'type-scale' show $igd-type-scale;
9
-