Skip to content

Commit

Permalink
fix exports
Browse files Browse the repository at this point in the history
  • Loading branch information
mkilpatrick committed Aug 10, 2023
1 parent 2b50399 commit 500e72d
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 95 deletions.
22 changes: 11 additions & 11 deletions src/components/Filters/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export { CheckboxOption, CheckboxOptionProps, CheckboxCssClasses, FilterOptionConfig } from './CheckboxOption';
export { CollapsibleLabel, CollapsibleLabelProps, CollapsibleLabelCssClasses, builtInCssClasses as builtInCollapsibleLabelCssClasses } from './CollapsibleLabel';
export { CollapsibleSection, CollapsibleSectionProps } from './CollapsibleSection';
export { FacetsProvider, FacetsProviderProps } from './FacetsProvider';
export { FiltersContext, useFiltersContext, FiltersContextType } from './FiltersContext';
export { FilterGroupProvider, FilterGroupProviderProps } from './FilterGroupProvider';
export { FilterGroupContext, useFilterGroupContext, FilterGroupContextType } from './FilterGroupContext';
export { SearchInput, SearchInputProps } from './SearchInput';
export { StaticFiltersProvider, StaticFiltersProviderProps } from './StaticFiltersProvider';
export { HierarchicalFacetDisplay, HierarchicalFacetDisplayProps, HierarchicalFacetDisplayCssClasses } from './HierarchicalFacetDisplay';
export { RangeInput, RangeInputProps, RangeInputCssClasses } from './RangeInput';
export { CheckboxOption, type CheckboxOptionProps, type CheckboxCssClasses, type FilterOptionConfig } from './CheckboxOption';
export { CollapsibleLabel, type CollapsibleLabelProps, type CollapsibleLabelCssClasses, builtInCssClasses as builtInCollapsibleLabelCssClasses } from './CollapsibleLabel';
export { CollapsibleSection, type CollapsibleSectionProps } from './CollapsibleSection';
export { FacetsProvider, type FacetsProviderProps } from './FacetsProvider';
export { FiltersContext, useFiltersContext, type FiltersContextType } from './FiltersContext';
export { FilterGroupProvider, type FilterGroupProviderProps } from './FilterGroupProvider';
export { FilterGroupContext, useFilterGroupContext, type FilterGroupContextType } from './FilterGroupContext';
export { SearchInput, type SearchInputProps } from './SearchInput';
export { StaticFiltersProvider, type StaticFiltersProviderProps } from './StaticFiltersProvider';
export { HierarchicalFacetDisplay, type HierarchicalFacetDisplayProps, type HierarchicalFacetDisplayCssClasses } from './HierarchicalFacetDisplay';
export { RangeInput, type RangeInputProps, type RangeInputCssClasses } from './RangeInput';
4 changes: 1 addition & 3 deletions src/components/cards/standard/StandardCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,4 @@ export function StandardCard(props: StandardCardProps<any>): JSX.Element {
cta2={data.cta2}
/>
);
}

export { StandardCardCssClasses };
}
2 changes: 1 addition & 1 deletion src/components/cards/standard/StandardCardDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,4 @@ StandardCardDisplay.propTypes = {
})
};

export { StandardCardDisplay, StandardCardCssClasses };
export { StandardCardDisplay, type StandardCardCssClasses };
137 changes: 68 additions & 69 deletions src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,128 +1,127 @@
export {
SearchBar,
SearchBarCssClasses,
SearchBarProps,
VisualAutocompleteConfig,
RenderEntityPreviews,
onSearchFunc
type SearchBarCssClasses,
type SearchBarProps,
type VisualAutocompleteConfig,
type RenderEntityPreviews,
type onSearchFunc
} from './SearchBar';

export { DropdownItem, DropdownItemProps } from './Dropdown/DropdownItem';
export { AutocompleteResultCssClasses } from './utils/renderAutocompleteResult';
export { FocusedItemData } from './Dropdown/FocusContext';
export { DropdownItem, type DropdownItemProps } from './Dropdown/DropdownItem';
export { type AutocompleteResultCssClasses } from './utils/renderAutocompleteResult';
export { type FocusedItemData } from './Dropdown/FocusContext';

export {
SpellCheck,
SpellCheckCssClasses,
SpellCheckProps
type SpellCheckCssClasses,
type SpellCheckProps
} from './SpellCheck';

export {
DirectAnswer,
DirectAnswerCssClasses,
DirectAnswerProps,
UnknownFieldTypeDisplayComponent,
UnknownFieldTypeDisplayProps
type DirectAnswerCssClasses,
type DirectAnswerProps,
type UnknownFieldTypeDisplayComponent,
type UnknownFieldTypeDisplayProps
} from './DirectAnswer';

export {
ThumbsFeedback,
FeedbackType,
ThumbsFeedbackCssClasses,
ThumbsFeedbackProps
type FeedbackType,
type ThumbsFeedbackCssClasses,
type ThumbsFeedbackProps
} from './ThumbsFeedback';

export {
FilterSearch,
FilterSearchCssClasses,
FilterSearchProps,
OnSelectParams
type FilterSearchCssClasses,
type FilterSearchProps,
type OnSelectParams
} from './FilterSearch';

export {
LocationBias,
LocationBiasCssClasses,
LocationBiasProps
type LocationBiasCssClasses,
type LocationBiasProps
} from './LocationBias';

export {
Geolocation,
GeolocationCssClasses,
GeolocationProps
type GeolocationCssClasses,
type GeolocationProps
} from './Geolocation';

export {
AppliedFilters,
AppliedFiltersCssClasses,
AppliedFiltersProps
type AppliedFiltersCssClasses,
type AppliedFiltersProps
} from './AppliedFilters';

export {
UniversalResults,
UniversalResultsCssClasses,
UniversalResultsProps,
type UniversalResultsCssClasses,
type UniversalResultsProps,
} from './UniversalResults';

export {
VerticalResults,
VerticalResultsCssClasses,
VerticalResultsProps
type VerticalResultsCssClasses,
type VerticalResultsProps
} from './VerticalResults';

export {
Pagination,
PaginationCssClasses,
PaginationProps
type PaginationCssClasses,
type PaginationProps
} from './Pagination';

export {
StandardCard,
StandardCardCssClasses,
StandardCardProps
type StandardCardProps
} from './cards/standard/StandardCard';

export {
type StandardCardCssClasses,
} from './cards/standard/StandardCardDisplay';

export {
AlternativeVerticals,
AlternativeVerticalsCssClasses,
AlternativeVerticalsProps,
VerticalLabelMap
type AlternativeVerticalsCssClasses,
type AlternativeVerticalsProps,
type VerticalLabelMap
} from './AlternativeVerticals';

export {
ResultsCount,
ResultsCountCssClasses,
ResultsCountProps
type ResultsCountCssClasses,
type ResultsCountProps
} from './ResultsCount';

export {
FilterOptionConfig,
RangeInputCssClasses,
HierarchicalFacetDisplayCssClasses
} from './Filters';
export * from './Filters';

export {
StaticFilters,
StaticFiltersCssClasses,
StaticFiltersProps,
StaticFilterOptionConfig
type StaticFiltersCssClasses,
type StaticFiltersProps,
type StaticFilterOptionConfig
} from './StaticFilters';

export {
StandardFacets,
StandardFacetsCssClasses,
StandardFacetsProps
type StandardFacetsCssClasses,
type StandardFacetsProps
} from './StandardFacets';

export {
HierarchicalFacets,
HierarchicalFacetsCssClasses,
HierarchicalFacetsProps
type HierarchicalFacetsCssClasses,
type HierarchicalFacetsProps
} from './HierarchicalFacets';

export {
NumericalFacets,
NumericalFacetsCssClasses,
NumericalFacetsProps
type NumericalFacetsCssClasses,
type NumericalFacetsProps
} from './NumericalFacets';

export {
Expand All @@ -133,17 +132,17 @@ export {
} from './Facets';

export {
FacetsCssClasses,
FacetsProps,
FacetProps,
StandardFacetProps,
NumericalFacetProps,
HierarchicalFacetProps
type FacetsCssClasses,
type FacetsProps,
type FacetProps,
type StandardFacetProps,
type NumericalFacetProps,
type HierarchicalFacetProps
} from './FacetProps';

export {
FilterGroupProps,
FilterGroupCssClasses
type FilterGroupProps,
type FilterGroupCssClasses
} from './FilterGroup';

export {
Expand All @@ -152,22 +151,22 @@ export {

export {
ApplyFiltersButton,
ApplyFiltersButtonCssClasses,
ApplyFiltersButtonProps
type ApplyFiltersButtonCssClasses,
type ApplyFiltersButtonProps
} from './ApplyFiltersButton';

export {
MapboxMap,
PinComponent,
MapboxMapProps,
OnDragHandler,
CoordinateGetter,
Coordinate
type PinComponent,
type MapboxMapProps,
type OnDragHandler,
type CoordinateGetter,
type Coordinate
} from './MapboxMap';

export {
renderHighlightedValue,
HighlightedValueCssClasses
type HighlightedValueCssClasses
} from './utils/renderHighlightedValue';

export * from './sections';
Expand Down
6 changes: 3 additions & 3 deletions src/components/sections/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export {
StandardSection,
StandardSectionCssClasses,
StandardSectionProps
type StandardSectionCssClasses,
type StandardSectionProps
} from './StandardSection';

export { SectionHeaderCssClasses } from './SectionHeader';
export { type SectionHeaderCssClasses } from './SectionHeader';
2 changes: 1 addition & 1 deletion src/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export { useAnalytics } from './useAnalytics';
export { CardAnalyticsType, CardCtaEventType, CardAnalyticsDataType } from './useCardAnalytics';
export { type CardAnalyticsType, type CardCtaEventType, type CardAnalyticsDataType } from './useCardAnalytics';
export { useCardAnalyticsCallback } from './useCardAnalyticsCallback';
export { useCardFeedbackCallback } from './useCardFeedbackCallback';
export { useComposedCssClasses } from './useComposedCssClasses';
12 changes: 6 additions & 6 deletions src/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export { CardProps, CardComponent } from './cardComponent';
export { StandardCardData, CtaData, isCtaData } from './StandardCardData';
export { SectionProps, SectionComponent } from './sectionComponent';
export { VerticalLink } from './verticalLink';
export { VerticalConfig, VerticalConfigMap } from './verticalConfig';
export { DefaultRawDataType } from './DefaultRawDataType';
export { type CardProps, type CardComponent } from './cardComponent';
export { type StandardCardData, type CtaData, isCtaData } from './StandardCardData';
export { type SectionProps, type SectionComponent } from './sectionComponent';
export { type VerticalLink } from './verticalLink';
export { type VerticalConfig, type VerticalConfigMap } from './verticalConfig';
export { type DefaultRawDataType } from './DefaultRawDataType';
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"declarationMap": true,
"sourceMap": true,
"jsx": "react-jsx",
"target": "es2017"
"target": "es2017",
"isolatedModules": true
},
"include": [
"src"
Expand Down

0 comments on commit 500e72d

Please sign in to comment.