@tactics/lokaal-loket 0.0.103 → 0.0.104

Sign up to get free protection for your applications and to get access to all the features.
package/build/index.d.cts CHANGED
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React$1, { Ref, PropsWithChildren, ReactElement, ReactNode, FC } from 'react';
3
3
  import { TypographyFontKey, TypographyFontsKey, TypographyFontWeightKey, SpacingKey, Color, ColorVariant, ColorVariantKey, ColorKey } from '@tactics/tacky/contract';
4
4
  export { Color, ColorVariant, Radius, Spacing, ThemeI, ThemeVariantsI, TypographyFont, TypographyFonts } from '@tactics/tacky/contract';
5
+ import { Feature as Feature$1, Point, FeatureCollection, LineString } from 'geojson';
5
6
  import { ThemeMode } from '@tactics/tacky';
6
7
  export { BuildProvidersTree, ExternalStylesheetLoader, ExternalStylesheetLoaderI, StyleProviderAnimation, StyleProviderPreFlight, ThemeBuilder, ThemeCtx, ThemeMode } from '@tactics/tacky';
7
8
 
@@ -519,10 +520,10 @@ interface ITerm {
519
520
 
520
521
  declare const Term: ({ label, description, frame }: ITerm) => react_jsx_runtime.JSX.Element;
521
522
 
522
- interface ITerminal {
523
+ interface ITerminal$1 {
523
524
  }
524
525
 
525
- declare const Terminal: ({}: ITerminal) => react_jsx_runtime.JSX.Element;
526
+ declare const Terminal: ({}: ITerminal$1) => react_jsx_runtime.JSX.Element;
526
527
 
527
528
  declare enum YesNoContext {
528
529
  STANDARD = "STANDARD",
@@ -713,20 +714,12 @@ interface LocationI<T, R> {
713
714
  optionToDisplay: (option: T) => React$1.ReactNode;
714
715
  optionToDisplayWhenSelected?: (option: T) => React$1.ReactNode;
715
716
  optionToInputValue: (option: T) => string;
716
- radii: R[];
717
- radiiDefault: R;
718
- radiiToDisplay: (radius: R) => React$1.ReactNode;
719
- radiiToDisplayWhenSelected?: (radius: R) => React$1.ReactNode;
720
717
  onSelected?: (e: AutocompleteSelectEvent<T>) => void;
721
718
  onInputChange?: (e: AutocompleteChangeEvent) => void;
722
- onRadiusChange?: (e: LocationRadiusChangeEvent<R>) => void;
723
719
  onNavigate?: (e: AutocompleteOptionNavigatedEvent<T>) => void;
724
720
  onBlur?: (e: LocationBlurEvent) => void;
725
721
  onFocus?: (e: LocationFocusEvent) => void;
726
722
  }
727
- interface LocationRadiusChangeEvent<R> {
728
- radius: R;
729
- }
730
723
  interface LocationBlurEvent extends AutocompleteBlurEvent {
731
724
  }
732
725
  interface LocationFocusEvent extends AutocompleteFocusEvent {
@@ -771,11 +764,6 @@ interface RouteI<T, R, D> {
771
764
  destinationOptionToDisplay: (option: D) => React$1.ReactNode;
772
765
  destinationOptionToDisplayWhenSelected?: (option: D) => React$1.ReactNode;
773
766
  destinationOptionToInputValue: (option: D) => string;
774
- travelModes: R[];
775
- travelModeDefault: R;
776
- travelModeToDisplay: (option: R) => React$1.ReactNode;
777
- travelModeToDisplayWhenSelected?: (option: R) => React$1.ReactNode;
778
- onTravelModeChange?: (e: SelectChangeEvent<R>) => void;
779
767
  onOriginSelected?: (e: AutocompleteSelectEvent<T>) => void;
780
768
  onOriginInputChange?: (e: AutocompleteChangeEvent) => void;
781
769
  onOriginNavigate?: (e: AutocompleteOptionNavigatedEvent<T>) => void;
@@ -1069,30 +1057,66 @@ interface IFooter {
1069
1057
 
1070
1058
  declare const Footer: ({ top, left, right, bottom }: IFooter) => react_jsx_runtime.JSX.Element;
1071
1059
 
1072
- type IPointOnMap = {
1060
+ type TerminalType = "ORIGIN" | "DESTINATION";
1061
+ type PointType = "DAYCARE" | "CHILDMINDER" | "COOPERATIVE";
1062
+ interface ITerminal {
1073
1063
  key: string;
1074
- marker: React$1.ReactElement;
1075
- details: React$1.ReactElement;
1076
- latLng: google.maps.LatLngLiteral;
1077
- };
1078
- interface IMap {
1079
- children: ReactElement;
1080
- mapId: string;
1081
- defaultCenter: google.maps.LatLngLiteral;
1064
+ name: string;
1065
+ type: TerminalType;
1082
1066
  }
1083
- interface ILocationBasedMapBase {
1084
- points?: IPointOnMap[];
1085
- origin: IPointOnMap;
1067
+ interface IPoint {
1068
+ key: string;
1069
+ name: string;
1070
+ address: string;
1071
+ type: PointType;
1072
+ overlay: React$1.ReactNode;
1073
+ }
1074
+ interface ILine {
1075
+ index: number;
1076
+ label: string;
1077
+ }
1078
+ type IOrigin = Feature$1<Point, ITerminal>;
1079
+ type IDestination = Feature$1<Point, ITerminal>;
1080
+ type IPoints = FeatureCollection<Point, IPoint>;
1081
+ type IRoute = FeatureCollection<LineString, ILine>;
1082
+ type IRoutes = IRoute[];
1083
+ interface ILocationBasedMap {
1084
+ points?: IPoints;
1085
+ showLoader: boolean;
1086
+ loader?: React$1.ReactNode;
1087
+ origin: IOrigin;
1088
+ onRadiusChange?: (r: number) => void;
1089
+ onZoomChange?: (zoom: number) => void;
1090
+ onAreaChange?: (center: google.maps.LatLng, bounds: google.maps.LatLngBounds, radius: number) => void;
1086
1091
  }
1087
1092
  interface IDirectionBasedMapBase {
1088
- directions: google.maps.DirectionsResult;
1089
- points?: IPointOnMap[];
1093
+ routes: IRoutes;
1094
+ points?: IPoints;
1095
+ showLoader: boolean;
1096
+ loader?: React$1.ReactNode;
1097
+ origin: IOrigin;
1098
+ destination: IDestination;
1099
+ travelModeLabels: TravelModeLabels;
1100
+ onTravelModeChange?: (modes: google.maps.TravelMode[]) => void;
1101
+ onRouteChange?: (index: number, route: IRoute) => void;
1102
+ onZoomChange?: () => void;
1103
+ }
1104
+ interface IMap extends PropsWithChildren {
1105
+ mapId: string;
1106
+ defaultCenter: google.maps.LatLngLiteral;
1107
+ }
1108
+ interface TravelModeLabels {
1109
+ BEST_FIT: string;
1110
+ DRIVING: string;
1111
+ TRANSIT: string;
1112
+ WALKING: string;
1113
+ BICYCLING: string;
1090
1114
  }
1091
1115
 
1092
1116
  declare const Map: {
1093
- ({ children, mapId, defaultCenter }: IMap): react_jsx_runtime.JSX.Element;
1094
- Location: ({ points, origin }: ILocationBasedMapBase) => react_jsx_runtime.JSX.Element | null;
1095
- Direction: ({ directions }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
1117
+ (props: IMap): react_jsx_runtime.JSX.Element;
1118
+ Location: ({ points, showLoader, loader, origin, onRadiusChange, onZoomChange, onAreaChange, }: ILocationBasedMap) => react_jsx_runtime.JSX.Element | null;
1119
+ Direction: ({ routes, origin, destination, travelModeLabels, points, showLoader, loader, onTravelModeChange, onRouteChange, onZoomChange, }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
1096
1120
  };
1097
1121
 
1098
1122
  interface IWizard {
@@ -1161,7 +1185,7 @@ interface ICard {
1161
1185
  swipe?: React$1.ReactNode;
1162
1186
  badge: React$1.ReactElement<IBadge>;
1163
1187
  title: string;
1164
- info: React$1.ReactElement<ILabeledIcon>;
1188
+ info?: React$1.ReactElement<ILabeledIcon>[] | React$1.ReactElement<ILabeledIcon>;
1165
1189
  labels: React$1.ReactElement<ILabel>[];
1166
1190
  features: React$1.ReactElement<IFeatures>;
1167
1191
  action: React$1.ReactElement<IButton>;
@@ -1561,4 +1585,4 @@ declare const RouteLocationExample: ({ CompactAt, onChange, }: {
1561
1585
 
1562
1586
  declare const LocationExample: () => react_jsx_runtime.JSX.Element;
1563
1587
 
1564
- export { Accordeon, AccordeonContext, type AutoCompleteContextType, type AutocompleteBlurEvent, type AutocompleteChangeEvent, type AutocompleteFocusEvent, type AutocompleteI, AutocompleteInput, type AutocompleteInputI, AutocompleteOption, type AutocompleteOptionNavigatedEvent, AutocompleteOptionSelected, AutocompleteOptions, type AutocompleteOptionsI, type AutocompleteSelectEvent, Backdrop, BackdropContext, BackdropProvider, Badge, BadgeType, BasicPage, BigChoice, BigPick, Blur, BlurContext, BlurProvider, BottomNavigation, Brand, Breadcrumb, Button, ButtonContext, ButtonType, Card, CardChildminderExample, CardDaycareExample, Checkbox, CheckboxContext, Choice, ChoiceContext, Close, type CloseI, Collapsable, Collapse, CompactNavigation, CompactNavigationContext, Cta, Details, Drawer, DrawerContext, DrawerProvider, DrawerSize, Expand, Faq, Feature, Features, Figure, FigureSize, FigureType, Flip, FlyoutArrangementFull, FlyoutArrangementSplit, FlyoutHeading, Footer, FooterNavigation, Frame, GoogleAPIProvider, type GoogleAPIProviderProps, GoogleApiRoutesDirectionRendererContext, GoogleApiRoutesDirectionRendererProvider, Grid, type GridItemProps, type GridProps, HeaderAlternate, HeaderBottom, HeaderContext, HeaderTop, type HeadingArrangementI, HomeSectionCards, HomeSectionFaq, HomeSectionGettingStarted, HomeSectionLeftSplit, type IAccordeon, type IBackdrop, type IBackdropProvider, type IBadge, type IBasicPage, type IBigChoice, type IBigPick, type IBlur, type IBlurProvider, type IBottomNavigation, type IBrand, type IBreadcrumb, type IButton, type ICard, type ICheckbox, type IChoice, type ICollapsable, type ICollapse, type ICompactNavigation, type ICta, type IDetails, type IDrawer, type IDrawerProvider, type IExpand, type IFaq, type IFeature, type IFeatures, type IFigure, type IFlip, type IFlyoutArrangementFull, type IFlyoutArrangementSplit, type IFooter, type IFooterNavigation, type IFrame, type IHeaderBottom, type IHeaderTop, type IHomeSectionCards, type IHomeSectionFaq, type IHomeSectionGettingStarted, type IHomeSectionLeftSplit, type IIcon, type IInfoCard, type IInformation, type IInput, type IInstruction, type ILabeledIcon, type ILink, type IList, type ILogo, type IMap, type IMaskedImage, type IModal, type IModalProvider, type INavigation, type INavigationItem, type INotification, type IOnboarding, type IOnboardingArrangementInformation, type IOnboardingArrangementIntroduction, type IOnboardingArrangementStep, type IOverlay, type IOverlayProvider, type IPick, type IPill, type IPin, type IPlainText, type IProfileNavigation, type IQuickSearch, type IRadio, type IRecord, type IRecords, type IRouteLocation, type ISearch, type ISearchAutocomplete, type ISearchPage, type ISearchProvider, type ISearchSectionFilters, type ISearchStep, type ISearchStepAutocomplete, type ISearchWithMapPage, type ISharedSectionFooter, type ISharedSectionHeader, type IStatus, type IStatusList, type ISurface, type ITerm, type ITerminal, type IToggle, type ITopNavigation, type ITopNavigationItemBase, type IWave, type IWizard, type IWizardControls, type IWizardProvider, type IWizardStep, type IWizardStepProvider, type IYesNo, Icon, IconContext, IconSize, IconType, InfoCard, Information, InlineSelect, type InlineSelectI, InlineSelectIconAsOption, InlineSelectIconAsOptionSelected, InlineSelectLabelAsOption, InlineSelectLabelAsOptionSelected, type InlineSelectOptionI, Input, InputContext, Instruction, ItemType, LabeledIcon, Link, LinkContext, List, ListType, Location, LocationExample, type LocationI, Logo, LogoSize, Map, MaskType, MaskedImage, Modal, ModalContext, ModalProvider, Navigation, Notification, Onboarding, OnboardingArrangementInformation, OnboardingArrangementIntroduction, OnboardingArrangementStep, OnboardingButton, Overlay, OverlayContext, OverlayHeading, OverlayProvider, PageHeading, Pick, PickContext, Pill, Pin, PinType, PlainText, Position, ProcessingContext, type ProcessingContextType, ProcessingProvider, ProfileNavigation, type ProfileNavigationItemThemeableProps, type ProfileNavigationThemeableProps, type PropsForThemeModeProvider, QuickSearch, Radio, RadioContext, Record, Records, Route, type RouteI, RouteLocation, RouteLocationExample, Search, SearchAutocomplete, SearchAutocompleteStep, SearchContext, SearchPage, SearchProvider, SearchSectionFilters, SearchStep, SearchWithMapPage, type SelectBlurEvent, type SelectChangeEvent, type SelectFocusEvent, SharedSectionFooter, SharedSectionHeader, Status, StatusCompact, StatusContext, StatusList, Surface, Switch, type SwitchI, type SwitchItemContentI, type SwitchItemI, Term, Terminal, TextDecoration, ThemeModeContext, ThemeModeProvider, Toggle, TopNavigation, Wave, WavePosition, WaveType, Wizard, WizardContext, WizardControls, WizardProvider, WizardStep, WizardStepContext, WizardStepProvider, YesNo, YesNoContext, useIsProcessing };
1588
+ export { Accordeon, AccordeonContext, type AutoCompleteContextType, type AutocompleteBlurEvent, type AutocompleteChangeEvent, type AutocompleteFocusEvent, type AutocompleteI, AutocompleteInput, type AutocompleteInputI, AutocompleteOption, type AutocompleteOptionNavigatedEvent, AutocompleteOptionSelected, AutocompleteOptions, type AutocompleteOptionsI, type AutocompleteSelectEvent, Backdrop, BackdropContext, BackdropProvider, Badge, BadgeType, BasicPage, BigChoice, BigPick, Blur, BlurContext, BlurProvider, BottomNavigation, Brand, Breadcrumb, Button, ButtonContext, ButtonType, Card, CardChildminderExample, CardDaycareExample, Checkbox, CheckboxContext, Choice, ChoiceContext, Close, type CloseI, Collapsable, Collapse, CompactNavigation, CompactNavigationContext, Cta, Details, Drawer, DrawerContext, DrawerProvider, DrawerSize, Expand, Faq, Feature, Features, Figure, FigureSize, FigureType, Flip, FlyoutArrangementFull, FlyoutArrangementSplit, FlyoutHeading, Footer, FooterNavigation, Frame, GoogleAPIProvider, type GoogleAPIProviderProps, GoogleApiRoutesDirectionRendererContext, GoogleApiRoutesDirectionRendererProvider, Grid, type GridItemProps, type GridProps, HeaderAlternate, HeaderBottom, HeaderContext, HeaderTop, type HeadingArrangementI, HomeSectionCards, HomeSectionFaq, HomeSectionGettingStarted, HomeSectionLeftSplit, type IAccordeon, type IBackdrop, type IBackdropProvider, type IBadge, type IBasicPage, type IBigChoice, type IBigPick, type IBlur, type IBlurProvider, type IBottomNavigation, type IBrand, type IBreadcrumb, type IButton, type ICard, type ICheckbox, type IChoice, type ICollapsable, type ICollapse, type ICompactNavigation, type ICta, type IDetails, type IDrawer, type IDrawerProvider, type IExpand, type IFaq, type IFeature, type IFeatures, type IFigure, type IFlip, type IFlyoutArrangementFull, type IFlyoutArrangementSplit, type IFooter, type IFooterNavigation, type IFrame, type IHeaderBottom, type IHeaderTop, type IHomeSectionCards, type IHomeSectionFaq, type IHomeSectionGettingStarted, type IHomeSectionLeftSplit, type IIcon, type IInfoCard, type IInformation, type IInput, type IInstruction, type ILabeledIcon, type ILink, type IList, type ILogo, type IMap, type IMaskedImage, type IModal, type IModalProvider, type INavigation, type INavigationItem, type INotification, type IOnboarding, type IOnboardingArrangementInformation, type IOnboardingArrangementIntroduction, type IOnboardingArrangementStep, type IOverlay, type IOverlayProvider, type IPick, type IPill, type IPin, type IPlainText, type IProfileNavigation, type IQuickSearch, type IRadio, type IRecord, type IRecords, type IRouteLocation, type ISearch, type ISearchAutocomplete, type ISearchPage, type ISearchProvider, type ISearchSectionFilters, type ISearchStep, type ISearchStepAutocomplete, type ISearchWithMapPage, type ISharedSectionFooter, type ISharedSectionHeader, type IStatus, type IStatusList, type ISurface, type ITerm, type ITerminal$1 as ITerminal, type IToggle, type ITopNavigation, type ITopNavigationItemBase, type IWave, type IWizard, type IWizardControls, type IWizardProvider, type IWizardStep, type IWizardStepProvider, type IYesNo, Icon, IconContext, IconSize, IconType, InfoCard, Information, InlineSelect, type InlineSelectI, InlineSelectIconAsOption, InlineSelectIconAsOptionSelected, InlineSelectLabelAsOption, InlineSelectLabelAsOptionSelected, type InlineSelectOptionI, Input, InputContext, Instruction, ItemType, LabeledIcon, Link, LinkContext, List, ListType, Location, LocationExample, type LocationI, Logo, LogoSize, Map, MaskType, MaskedImage, Modal, ModalContext, ModalProvider, Navigation, Notification, Onboarding, OnboardingArrangementInformation, OnboardingArrangementIntroduction, OnboardingArrangementStep, OnboardingButton, Overlay, OverlayContext, OverlayHeading, OverlayProvider, PageHeading, Pick, PickContext, Pill, Pin, PinType, PlainText, Position, ProcessingContext, type ProcessingContextType, ProcessingProvider, ProfileNavigation, type ProfileNavigationItemThemeableProps, type ProfileNavigationThemeableProps, type PropsForThemeModeProvider, QuickSearch, Radio, RadioContext, Record, Records, Route, type RouteI, RouteLocation, RouteLocationExample, Search, SearchAutocomplete, SearchAutocompleteStep, SearchContext, SearchPage, SearchProvider, SearchSectionFilters, SearchStep, SearchWithMapPage, type SelectBlurEvent, type SelectChangeEvent, type SelectFocusEvent, SharedSectionFooter, SharedSectionHeader, Status, StatusCompact, StatusContext, StatusList, Surface, Switch, type SwitchI, type SwitchItemContentI, type SwitchItemI, Term, Terminal, TextDecoration, ThemeModeContext, ThemeModeProvider, Toggle, TopNavigation, Wave, WavePosition, WaveType, Wizard, WizardContext, WizardControls, WizardProvider, WizardStep, WizardStepContext, WizardStepProvider, YesNo, YesNoContext, useIsProcessing };
package/build/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React$1, { Ref, PropsWithChildren, ReactElement, ReactNode, FC } from 'react';
3
3
  import { TypographyFontKey, TypographyFontsKey, TypographyFontWeightKey, SpacingKey, Color, ColorVariant, ColorVariantKey, ColorKey } from '@tactics/tacky/contract';
4
4
  export { Color, ColorVariant, Radius, Spacing, ThemeI, ThemeVariantsI, TypographyFont, TypographyFonts } from '@tactics/tacky/contract';
5
+ import { Feature as Feature$1, Point, FeatureCollection, LineString } from 'geojson';
5
6
  import { ThemeMode } from '@tactics/tacky';
6
7
  export { BuildProvidersTree, ExternalStylesheetLoader, ExternalStylesheetLoaderI, StyleProviderAnimation, StyleProviderPreFlight, ThemeBuilder, ThemeCtx, ThemeMode } from '@tactics/tacky';
7
8
 
@@ -519,10 +520,10 @@ interface ITerm {
519
520
 
520
521
  declare const Term: ({ label, description, frame }: ITerm) => react_jsx_runtime.JSX.Element;
521
522
 
522
- interface ITerminal {
523
+ interface ITerminal$1 {
523
524
  }
524
525
 
525
- declare const Terminal: ({}: ITerminal) => react_jsx_runtime.JSX.Element;
526
+ declare const Terminal: ({}: ITerminal$1) => react_jsx_runtime.JSX.Element;
526
527
 
527
528
  declare enum YesNoContext {
528
529
  STANDARD = "STANDARD",
@@ -713,20 +714,12 @@ interface LocationI<T, R> {
713
714
  optionToDisplay: (option: T) => React$1.ReactNode;
714
715
  optionToDisplayWhenSelected?: (option: T) => React$1.ReactNode;
715
716
  optionToInputValue: (option: T) => string;
716
- radii: R[];
717
- radiiDefault: R;
718
- radiiToDisplay: (radius: R) => React$1.ReactNode;
719
- radiiToDisplayWhenSelected?: (radius: R) => React$1.ReactNode;
720
717
  onSelected?: (e: AutocompleteSelectEvent<T>) => void;
721
718
  onInputChange?: (e: AutocompleteChangeEvent) => void;
722
- onRadiusChange?: (e: LocationRadiusChangeEvent<R>) => void;
723
719
  onNavigate?: (e: AutocompleteOptionNavigatedEvent<T>) => void;
724
720
  onBlur?: (e: LocationBlurEvent) => void;
725
721
  onFocus?: (e: LocationFocusEvent) => void;
726
722
  }
727
- interface LocationRadiusChangeEvent<R> {
728
- radius: R;
729
- }
730
723
  interface LocationBlurEvent extends AutocompleteBlurEvent {
731
724
  }
732
725
  interface LocationFocusEvent extends AutocompleteFocusEvent {
@@ -771,11 +764,6 @@ interface RouteI<T, R, D> {
771
764
  destinationOptionToDisplay: (option: D) => React$1.ReactNode;
772
765
  destinationOptionToDisplayWhenSelected?: (option: D) => React$1.ReactNode;
773
766
  destinationOptionToInputValue: (option: D) => string;
774
- travelModes: R[];
775
- travelModeDefault: R;
776
- travelModeToDisplay: (option: R) => React$1.ReactNode;
777
- travelModeToDisplayWhenSelected?: (option: R) => React$1.ReactNode;
778
- onTravelModeChange?: (e: SelectChangeEvent<R>) => void;
779
767
  onOriginSelected?: (e: AutocompleteSelectEvent<T>) => void;
780
768
  onOriginInputChange?: (e: AutocompleteChangeEvent) => void;
781
769
  onOriginNavigate?: (e: AutocompleteOptionNavigatedEvent<T>) => void;
@@ -1069,30 +1057,66 @@ interface IFooter {
1069
1057
 
1070
1058
  declare const Footer: ({ top, left, right, bottom }: IFooter) => react_jsx_runtime.JSX.Element;
1071
1059
 
1072
- type IPointOnMap = {
1060
+ type TerminalType = "ORIGIN" | "DESTINATION";
1061
+ type PointType = "DAYCARE" | "CHILDMINDER" | "COOPERATIVE";
1062
+ interface ITerminal {
1073
1063
  key: string;
1074
- marker: React$1.ReactElement;
1075
- details: React$1.ReactElement;
1076
- latLng: google.maps.LatLngLiteral;
1077
- };
1078
- interface IMap {
1079
- children: ReactElement;
1080
- mapId: string;
1081
- defaultCenter: google.maps.LatLngLiteral;
1064
+ name: string;
1065
+ type: TerminalType;
1082
1066
  }
1083
- interface ILocationBasedMapBase {
1084
- points?: IPointOnMap[];
1085
- origin: IPointOnMap;
1067
+ interface IPoint {
1068
+ key: string;
1069
+ name: string;
1070
+ address: string;
1071
+ type: PointType;
1072
+ overlay: React$1.ReactNode;
1073
+ }
1074
+ interface ILine {
1075
+ index: number;
1076
+ label: string;
1077
+ }
1078
+ type IOrigin = Feature$1<Point, ITerminal>;
1079
+ type IDestination = Feature$1<Point, ITerminal>;
1080
+ type IPoints = FeatureCollection<Point, IPoint>;
1081
+ type IRoute = FeatureCollection<LineString, ILine>;
1082
+ type IRoutes = IRoute[];
1083
+ interface ILocationBasedMap {
1084
+ points?: IPoints;
1085
+ showLoader: boolean;
1086
+ loader?: React$1.ReactNode;
1087
+ origin: IOrigin;
1088
+ onRadiusChange?: (r: number) => void;
1089
+ onZoomChange?: (zoom: number) => void;
1090
+ onAreaChange?: (center: google.maps.LatLng, bounds: google.maps.LatLngBounds, radius: number) => void;
1086
1091
  }
1087
1092
  interface IDirectionBasedMapBase {
1088
- directions: google.maps.DirectionsResult;
1089
- points?: IPointOnMap[];
1093
+ routes: IRoutes;
1094
+ points?: IPoints;
1095
+ showLoader: boolean;
1096
+ loader?: React$1.ReactNode;
1097
+ origin: IOrigin;
1098
+ destination: IDestination;
1099
+ travelModeLabels: TravelModeLabels;
1100
+ onTravelModeChange?: (modes: google.maps.TravelMode[]) => void;
1101
+ onRouteChange?: (index: number, route: IRoute) => void;
1102
+ onZoomChange?: () => void;
1103
+ }
1104
+ interface IMap extends PropsWithChildren {
1105
+ mapId: string;
1106
+ defaultCenter: google.maps.LatLngLiteral;
1107
+ }
1108
+ interface TravelModeLabels {
1109
+ BEST_FIT: string;
1110
+ DRIVING: string;
1111
+ TRANSIT: string;
1112
+ WALKING: string;
1113
+ BICYCLING: string;
1090
1114
  }
1091
1115
 
1092
1116
  declare const Map: {
1093
- ({ children, mapId, defaultCenter }: IMap): react_jsx_runtime.JSX.Element;
1094
- Location: ({ points, origin }: ILocationBasedMapBase) => react_jsx_runtime.JSX.Element | null;
1095
- Direction: ({ directions }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
1117
+ (props: IMap): react_jsx_runtime.JSX.Element;
1118
+ Location: ({ points, showLoader, loader, origin, onRadiusChange, onZoomChange, onAreaChange, }: ILocationBasedMap) => react_jsx_runtime.JSX.Element | null;
1119
+ Direction: ({ routes, origin, destination, travelModeLabels, points, showLoader, loader, onTravelModeChange, onRouteChange, onZoomChange, }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
1096
1120
  };
1097
1121
 
1098
1122
  interface IWizard {
@@ -1161,7 +1185,7 @@ interface ICard {
1161
1185
  swipe?: React$1.ReactNode;
1162
1186
  badge: React$1.ReactElement<IBadge>;
1163
1187
  title: string;
1164
- info: React$1.ReactElement<ILabeledIcon>;
1188
+ info?: React$1.ReactElement<ILabeledIcon>[] | React$1.ReactElement<ILabeledIcon>;
1165
1189
  labels: React$1.ReactElement<ILabel>[];
1166
1190
  features: React$1.ReactElement<IFeatures>;
1167
1191
  action: React$1.ReactElement<IButton>;
@@ -1561,4 +1585,4 @@ declare const RouteLocationExample: ({ CompactAt, onChange, }: {
1561
1585
 
1562
1586
  declare const LocationExample: () => react_jsx_runtime.JSX.Element;
1563
1587
 
1564
- export { Accordeon, AccordeonContext, type AutoCompleteContextType, type AutocompleteBlurEvent, type AutocompleteChangeEvent, type AutocompleteFocusEvent, type AutocompleteI, AutocompleteInput, type AutocompleteInputI, AutocompleteOption, type AutocompleteOptionNavigatedEvent, AutocompleteOptionSelected, AutocompleteOptions, type AutocompleteOptionsI, type AutocompleteSelectEvent, Backdrop, BackdropContext, BackdropProvider, Badge, BadgeType, BasicPage, BigChoice, BigPick, Blur, BlurContext, BlurProvider, BottomNavigation, Brand, Breadcrumb, Button, ButtonContext, ButtonType, Card, CardChildminderExample, CardDaycareExample, Checkbox, CheckboxContext, Choice, ChoiceContext, Close, type CloseI, Collapsable, Collapse, CompactNavigation, CompactNavigationContext, Cta, Details, Drawer, DrawerContext, DrawerProvider, DrawerSize, Expand, Faq, Feature, Features, Figure, FigureSize, FigureType, Flip, FlyoutArrangementFull, FlyoutArrangementSplit, FlyoutHeading, Footer, FooterNavigation, Frame, GoogleAPIProvider, type GoogleAPIProviderProps, GoogleApiRoutesDirectionRendererContext, GoogleApiRoutesDirectionRendererProvider, Grid, type GridItemProps, type GridProps, HeaderAlternate, HeaderBottom, HeaderContext, HeaderTop, type HeadingArrangementI, HomeSectionCards, HomeSectionFaq, HomeSectionGettingStarted, HomeSectionLeftSplit, type IAccordeon, type IBackdrop, type IBackdropProvider, type IBadge, type IBasicPage, type IBigChoice, type IBigPick, type IBlur, type IBlurProvider, type IBottomNavigation, type IBrand, type IBreadcrumb, type IButton, type ICard, type ICheckbox, type IChoice, type ICollapsable, type ICollapse, type ICompactNavigation, type ICta, type IDetails, type IDrawer, type IDrawerProvider, type IExpand, type IFaq, type IFeature, type IFeatures, type IFigure, type IFlip, type IFlyoutArrangementFull, type IFlyoutArrangementSplit, type IFooter, type IFooterNavigation, type IFrame, type IHeaderBottom, type IHeaderTop, type IHomeSectionCards, type IHomeSectionFaq, type IHomeSectionGettingStarted, type IHomeSectionLeftSplit, type IIcon, type IInfoCard, type IInformation, type IInput, type IInstruction, type ILabeledIcon, type ILink, type IList, type ILogo, type IMap, type IMaskedImage, type IModal, type IModalProvider, type INavigation, type INavigationItem, type INotification, type IOnboarding, type IOnboardingArrangementInformation, type IOnboardingArrangementIntroduction, type IOnboardingArrangementStep, type IOverlay, type IOverlayProvider, type IPick, type IPill, type IPin, type IPlainText, type IProfileNavigation, type IQuickSearch, type IRadio, type IRecord, type IRecords, type IRouteLocation, type ISearch, type ISearchAutocomplete, type ISearchPage, type ISearchProvider, type ISearchSectionFilters, type ISearchStep, type ISearchStepAutocomplete, type ISearchWithMapPage, type ISharedSectionFooter, type ISharedSectionHeader, type IStatus, type IStatusList, type ISurface, type ITerm, type ITerminal, type IToggle, type ITopNavigation, type ITopNavigationItemBase, type IWave, type IWizard, type IWizardControls, type IWizardProvider, type IWizardStep, type IWizardStepProvider, type IYesNo, Icon, IconContext, IconSize, IconType, InfoCard, Information, InlineSelect, type InlineSelectI, InlineSelectIconAsOption, InlineSelectIconAsOptionSelected, InlineSelectLabelAsOption, InlineSelectLabelAsOptionSelected, type InlineSelectOptionI, Input, InputContext, Instruction, ItemType, LabeledIcon, Link, LinkContext, List, ListType, Location, LocationExample, type LocationI, Logo, LogoSize, Map, MaskType, MaskedImage, Modal, ModalContext, ModalProvider, Navigation, Notification, Onboarding, OnboardingArrangementInformation, OnboardingArrangementIntroduction, OnboardingArrangementStep, OnboardingButton, Overlay, OverlayContext, OverlayHeading, OverlayProvider, PageHeading, Pick, PickContext, Pill, Pin, PinType, PlainText, Position, ProcessingContext, type ProcessingContextType, ProcessingProvider, ProfileNavigation, type ProfileNavigationItemThemeableProps, type ProfileNavigationThemeableProps, type PropsForThemeModeProvider, QuickSearch, Radio, RadioContext, Record, Records, Route, type RouteI, RouteLocation, RouteLocationExample, Search, SearchAutocomplete, SearchAutocompleteStep, SearchContext, SearchPage, SearchProvider, SearchSectionFilters, SearchStep, SearchWithMapPage, type SelectBlurEvent, type SelectChangeEvent, type SelectFocusEvent, SharedSectionFooter, SharedSectionHeader, Status, StatusCompact, StatusContext, StatusList, Surface, Switch, type SwitchI, type SwitchItemContentI, type SwitchItemI, Term, Terminal, TextDecoration, ThemeModeContext, ThemeModeProvider, Toggle, TopNavigation, Wave, WavePosition, WaveType, Wizard, WizardContext, WizardControls, WizardProvider, WizardStep, WizardStepContext, WizardStepProvider, YesNo, YesNoContext, useIsProcessing };
1588
+ export { Accordeon, AccordeonContext, type AutoCompleteContextType, type AutocompleteBlurEvent, type AutocompleteChangeEvent, type AutocompleteFocusEvent, type AutocompleteI, AutocompleteInput, type AutocompleteInputI, AutocompleteOption, type AutocompleteOptionNavigatedEvent, AutocompleteOptionSelected, AutocompleteOptions, type AutocompleteOptionsI, type AutocompleteSelectEvent, Backdrop, BackdropContext, BackdropProvider, Badge, BadgeType, BasicPage, BigChoice, BigPick, Blur, BlurContext, BlurProvider, BottomNavigation, Brand, Breadcrumb, Button, ButtonContext, ButtonType, Card, CardChildminderExample, CardDaycareExample, Checkbox, CheckboxContext, Choice, ChoiceContext, Close, type CloseI, Collapsable, Collapse, CompactNavigation, CompactNavigationContext, Cta, Details, Drawer, DrawerContext, DrawerProvider, DrawerSize, Expand, Faq, Feature, Features, Figure, FigureSize, FigureType, Flip, FlyoutArrangementFull, FlyoutArrangementSplit, FlyoutHeading, Footer, FooterNavigation, Frame, GoogleAPIProvider, type GoogleAPIProviderProps, GoogleApiRoutesDirectionRendererContext, GoogleApiRoutesDirectionRendererProvider, Grid, type GridItemProps, type GridProps, HeaderAlternate, HeaderBottom, HeaderContext, HeaderTop, type HeadingArrangementI, HomeSectionCards, HomeSectionFaq, HomeSectionGettingStarted, HomeSectionLeftSplit, type IAccordeon, type IBackdrop, type IBackdropProvider, type IBadge, type IBasicPage, type IBigChoice, type IBigPick, type IBlur, type IBlurProvider, type IBottomNavigation, type IBrand, type IBreadcrumb, type IButton, type ICard, type ICheckbox, type IChoice, type ICollapsable, type ICollapse, type ICompactNavigation, type ICta, type IDetails, type IDrawer, type IDrawerProvider, type IExpand, type IFaq, type IFeature, type IFeatures, type IFigure, type IFlip, type IFlyoutArrangementFull, type IFlyoutArrangementSplit, type IFooter, type IFooterNavigation, type IFrame, type IHeaderBottom, type IHeaderTop, type IHomeSectionCards, type IHomeSectionFaq, type IHomeSectionGettingStarted, type IHomeSectionLeftSplit, type IIcon, type IInfoCard, type IInformation, type IInput, type IInstruction, type ILabeledIcon, type ILink, type IList, type ILogo, type IMap, type IMaskedImage, type IModal, type IModalProvider, type INavigation, type INavigationItem, type INotification, type IOnboarding, type IOnboardingArrangementInformation, type IOnboardingArrangementIntroduction, type IOnboardingArrangementStep, type IOverlay, type IOverlayProvider, type IPick, type IPill, type IPin, type IPlainText, type IProfileNavigation, type IQuickSearch, type IRadio, type IRecord, type IRecords, type IRouteLocation, type ISearch, type ISearchAutocomplete, type ISearchPage, type ISearchProvider, type ISearchSectionFilters, type ISearchStep, type ISearchStepAutocomplete, type ISearchWithMapPage, type ISharedSectionFooter, type ISharedSectionHeader, type IStatus, type IStatusList, type ISurface, type ITerm, type ITerminal$1 as ITerminal, type IToggle, type ITopNavigation, type ITopNavigationItemBase, type IWave, type IWizard, type IWizardControls, type IWizardProvider, type IWizardStep, type IWizardStepProvider, type IYesNo, Icon, IconContext, IconSize, IconType, InfoCard, Information, InlineSelect, type InlineSelectI, InlineSelectIconAsOption, InlineSelectIconAsOptionSelected, InlineSelectLabelAsOption, InlineSelectLabelAsOptionSelected, type InlineSelectOptionI, Input, InputContext, Instruction, ItemType, LabeledIcon, Link, LinkContext, List, ListType, Location, LocationExample, type LocationI, Logo, LogoSize, Map, MaskType, MaskedImage, Modal, ModalContext, ModalProvider, Navigation, Notification, Onboarding, OnboardingArrangementInformation, OnboardingArrangementIntroduction, OnboardingArrangementStep, OnboardingButton, Overlay, OverlayContext, OverlayHeading, OverlayProvider, PageHeading, Pick, PickContext, Pill, Pin, PinType, PlainText, Position, ProcessingContext, type ProcessingContextType, ProcessingProvider, ProfileNavigation, type ProfileNavigationItemThemeableProps, type ProfileNavigationThemeableProps, type PropsForThemeModeProvider, QuickSearch, Radio, RadioContext, Record, Records, Route, type RouteI, RouteLocation, RouteLocationExample, Search, SearchAutocomplete, SearchAutocompleteStep, SearchContext, SearchPage, SearchProvider, SearchSectionFilters, SearchStep, SearchWithMapPage, type SelectBlurEvent, type SelectChangeEvent, type SelectFocusEvent, SharedSectionFooter, SharedSectionHeader, Status, StatusCompact, StatusContext, StatusList, Surface, Switch, type SwitchI, type SwitchItemContentI, type SwitchItemI, Term, Terminal, TextDecoration, ThemeModeContext, ThemeModeProvider, Toggle, TopNavigation, Wave, WavePosition, WaveType, Wizard, WizardContext, WizardControls, WizardProvider, WizardStep, WizardStepContext, WizardStepProvider, YesNo, YesNoContext, useIsProcessing };