Skip to content

Commit 49cd419

Browse files
committed
fix: add missing component exports to public API
Adds previously unexported components and types to the main barrel exports: Components: - Map: Main orchestrator component for map functionality - Features: Primitive component for displaying feature lists - ErrorStateDisplay: Error state UI component Types: - BadgeVariant, BadgeSize: Badge component type options - ButtonVariant: Button component type options - MapProps, ErrorStateDisplayProps: Component prop types - ErrorStateConfig, ErrorStateDefaults, ErrorStateProps: Error state utilities - Action, GenericList: Map-related data types - MapListItem (aliased from ListItem): Avoids naming conflict with List component Utilities: - getErrorState, resolveErrorStateValues: Error state helper functions This ensures all public components and types are properly exposed for consumers.
1 parent 4ca3dfb commit 49cd419

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

packages/ui/src/components/Map/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ export type { ErrorStateDisplayProps } from './ErrorStateDisplay';
2828
export { getErrorState, resolveErrorStateValues } from './useErrorState';
2929
export type { ErrorStateConfig, ErrorStateDefaults, ErrorStateProps } from './useErrorState';
3030

31-
export type { LocationData, Feature } from './types';
31+
export type { LocationData, Feature, Action, ListItem, GenericList } from './types';

packages/ui/src/components/index.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
// Primitives (basic building blocks)
44
export { Badge } from './Badge';
5-
export type { BadgeProps } from './Badge';
5+
export type { BadgeProps, BadgeVariant, BadgeSize } from './Badge';
66

77
export { Button } from './Button';
8-
export type { ButtonProps } from './Button';
8+
export type { ButtonProps, ButtonVariant } from './Button';
99

1010
export { Chip } from './Chip';
1111
export type { ChipProps, ChipSize, ChipVariant } from './Chip';
@@ -19,6 +19,9 @@ export type { IconProps } from './Icon';
1919
export { Skeleton } from './Skeleton';
2020
export type { SkeletonProps, SkeletonVariant } from './Skeleton';
2121

22+
export { Features } from './Feature';
23+
export type { FeaturesProps, FeatureItem } from './Feature';
24+
2225
// Composed (medium complexity, general-purpose)
2326
export { Card, ImageCard, SummaryCard, ListCard } from './Card';
2427
export type {
@@ -51,22 +54,34 @@ export type {
5154
} from './Album';
5255

5356
export {
57+
Map,
5458
MapView,
5559
CompactMap,
5660
LocationCarousel,
5761
LocationCard,
5862
FullscreenMap,
5963
MapSidebar,
6064
MapInspector,
65+
ErrorStateDisplay,
66+
getErrorState,
67+
resolveErrorStateValues,
6168
} from './Map';
6269
export type {
70+
MapProps,
6371
MapViewProps,
6472
CompactMapProps,
6573
LocationCarouselProps,
6674
LocationCardProps,
6775
FullscreenMapProps,
6876
MapSidebarProps,
6977
MapInspectorProps,
78+
ErrorStateDisplayProps,
79+
ErrorStateConfig,
80+
ErrorStateDefaults,
81+
ErrorStateProps,
7082
LocationData,
7183
Feature,
84+
Action,
85+
ListItem as MapListItem,
86+
GenericList,
7287
} from './Map';

0 commit comments

Comments
 (0)