@@ -3,7 +3,6 @@ import { JSX, partition } from "../../../../utils";
33import type { PageEvent } from "../../../events" ;
44import { classNames , camelToTitleCase , wbr } from "../../lib" ;
55import type { DefaultThemeRenderContext } from "../DefaultThemeRenderContext" ;
6- import { icons } from "./icon" ;
76
87export function navigation ( context : DefaultThemeRenderContext , props : PageEvent < Reflection > ) {
98 return (
@@ -15,12 +14,12 @@ export function navigation(context: DefaultThemeRenderContext, props: PageEvent<
1514 ) ;
1615}
1716
18- function buildFilterItem ( name : string , displayName : string , defaultValue : boolean ) {
17+ function buildFilterItem ( context : DefaultThemeRenderContext , name : string , displayName : string , defaultValue : boolean ) {
1918 return (
2019 < li class = "tsd-filter-item" >
2120 < label class = "tsd-filter-input" >
2221 < input type = "checkbox" id = { `tsd-filter-${ name } ` } name = { name } checked = { defaultValue } />
23- { icons . checkbox ( ) }
22+ { context . icons . checkbox ( ) }
2423 < span > { displayName } </ span >
2524 </ label >
2625 </ li >
@@ -40,15 +39,15 @@ function settings(context: DefaultThemeRenderContext) {
4039 . toLowerCase ( ) ;
4140
4241 visibilityOptions . push (
43- buildFilterItem ( filterName , camelToTitleCase ( key . substring ( 1 ) ) , defaultFilters [ key ] )
42+ buildFilterItem ( context , filterName , camelToTitleCase ( key . substring ( 1 ) ) , defaultFilters [ key ] )
4443 ) ;
4544 } else if (
4645 ( key === "protected" && ! context . options . getValue ( "excludeProtected" ) ) ||
4746 ( key === "private" && ! context . options . getValue ( "excludePrivate" ) ) ||
4847 ( key === "external" && ! context . options . getValue ( "excludeExternals" ) ) ||
4948 key === "inherited"
5049 ) {
51- visibilityOptions . push ( buildFilterItem ( key , camelToTitleCase ( key ) , defaultFilters [ key ] ) ) ;
50+ visibilityOptions . push ( buildFilterItem ( context , key , camelToTitleCase ( key ) , defaultFilters [ key ] ) ) ;
5251 }
5352 }
5453
@@ -58,7 +57,7 @@ function settings(context: DefaultThemeRenderContext) {
5857 < div class = "tsd-navigation settings" >
5958 < details class = "tsd-index-accordion" open = { false } >
6059 < summary class = "tsd-accordion-summary" >
61- < h3 > { icons . chevronDown ( ) } Settings</ h3 >
60+ < h3 > { context . icons . chevronDown ( ) } Settings</ h3 >
6261 </ summary >
6362 < div class = "tsd-accordion-details" >
6463 { visibilityOptions . length && (
@@ -96,7 +95,7 @@ function primaryNavigation(context: DefaultThemeRenderContext, props: PageEvent<
9695 < nav class = "tsd-navigation primary" >
9796 < details class = "tsd-index-accordion" open = { true } >
9897 < summary class = "tsd-accordion-summary" >
99- < h3 > { icons . chevronDown ( ) } Modules</ h3 >
98+ < h3 > { context . icons . chevronDown ( ) } Modules</ h3 >
10099 </ summary >
101100 < div class = "tsd-accordion-details" >
102101 < ul >
@@ -153,7 +152,7 @@ function secondaryNavigation(context: DefaultThemeRenderContext, props: PageEven
153152 ) }
154153 >
155154 < a href = { context . urlTo ( child ) } class = "tsd-index-link" >
156- { icons [ child . kind ] ( ) }
155+ { context . icons [ child . kind ] ( ) }
157156 { wbr ( child . name ) }
158157 </ a >
159158 </ li >
@@ -181,7 +180,7 @@ function secondaryNavigation(context: DefaultThemeRenderContext, props: PageEven
181180 ) }
182181 >
183182 < a href = { context . urlTo ( effectivePageParent ) } class = "tsd-index-link" >
184- { icons [ effectivePageParent . kind ] ( ) }
183+ { context . icons [ effectivePageParent . kind ] ( ) }
185184 < span > { wbr ( effectivePageParent . name ) } </ span >
186185 </ a >
187186 { ! ! pageNavigation . length && < ul > { pageNavigation } </ ul > }
0 commit comments