@travel-match/ui 0.2.0 → 0.4.0
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.
- package/dist/components/CtaSentence/CtaSentence.cjs +1 -1
- package/dist/components/CtaSentence/CtaSentence.cjs.map +1 -1
- package/dist/components/CtaSentence/CtaSentence.js +142 -69
- package/dist/components/CtaSentence/CtaSentence.js.map +1 -1
- package/dist/components/HeroColumns/heroMotion.cjs +1 -1
- package/dist/components/HeroColumns/heroMotion.cjs.map +1 -1
- package/dist/components/HeroColumns/heroMotion.js +7 -44
- package/dist/components/HeroColumns/heroMotion.js.map +1 -1
- package/dist/components/HeroMap/HeroMap.cjs +1 -1
- package/dist/components/HeroMap/HeroMap.cjs.map +1 -1
- package/dist/components/HeroMap/HeroMap.js +58 -67
- package/dist/components/HeroMap/HeroMap.js.map +1 -1
- package/dist/components/HeroSwitcher/HeroSwitcher.cjs +1 -1
- package/dist/components/HeroSwitcher/HeroSwitcher.cjs.map +1 -1
- package/dist/components/HeroSwitcher/HeroSwitcher.js +85 -92
- package/dist/components/HeroSwitcher/HeroSwitcher.js.map +1 -1
- package/dist/components/HowItWorksSteps/HowItWorksSteps.cjs +1 -1
- package/dist/components/HowItWorksSteps/HowItWorksSteps.cjs.map +1 -1
- package/dist/components/HowItWorksSteps/HowItWorksSteps.js +84 -102
- package/dist/components/HowItWorksSteps/HowItWorksSteps.js.map +1 -1
- package/dist/components/LogoAnimation/LogoAnimation.cjs +2 -0
- package/dist/components/LogoAnimation/LogoAnimation.cjs.map +1 -0
- package/dist/components/LogoAnimation/LogoAnimation.js +202 -0
- package/dist/components/LogoAnimation/LogoAnimation.js.map +1 -0
- package/dist/components/LogoAnimation/LogoAnimationArtwork.cjs +2 -0
- package/dist/components/LogoAnimation/LogoAnimationArtwork.cjs.map +1 -0
- package/dist/components/LogoAnimation/LogoAnimationArtwork.js +57 -0
- package/dist/components/LogoAnimation/LogoAnimationArtwork.js.map +1 -0
- package/dist/components/LogoAnimation/motion.cjs +2 -0
- package/dist/components/LogoAnimation/motion.cjs.map +1 -0
- package/dist/components/LogoAnimation/motion.js +180 -0
- package/dist/components/LogoAnimation/motion.js.map +1 -0
- package/dist/components/PackageAnimation/PackageAnimation.cjs +1 -1
- package/dist/components/PackageAnimation/PackageAnimation.cjs.map +1 -1
- package/dist/components/PackageAnimation/PackageAnimation.js +31 -40
- package/dist/components/PackageAnimation/PackageAnimation.js.map +1 -1
- package/dist/components/PartnerCarousel/PartnerCarousel.cjs +1 -1
- package/dist/components/PartnerCarousel/PartnerCarousel.cjs.map +1 -1
- package/dist/components/PartnerCarousel/PartnerCarousel.js +94 -101
- package/dist/components/PartnerCarousel/PartnerCarousel.js.map +1 -1
- package/dist/components/PartnerCarousel/autoplay.cjs +1 -1
- package/dist/components/PartnerCarousel/autoplay.cjs.map +1 -1
- package/dist/components/PartnerCarousel/autoplay.js +13 -9
- package/dist/components/PartnerCarousel/autoplay.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +62 -55
- package/dist/index.d.ts +62 -55
- package/dist/index.js +100 -99
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/components/PartnerCarousel/AutoplayToggle.cjs +0 -2
- package/dist/components/PartnerCarousel/AutoplayToggle.cjs.map +0 -1
- package/dist/components/PartnerCarousel/AutoplayToggle.js +0 -36
- package/dist/components/PartnerCarousel/AutoplayToggle.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoplay.js","names":["usePrefersReducedMotion","reduced","setReduced","useState","useEffect","query","update","useInView","inView","setInView","element","ref","observer","entry","entries","usePageVisible","visible","setVisible","useAutoplay","reducedMotion","rootRef","pageVisible","hovered","setHovered","focused","setFocused","
|
|
1
|
+
{"version":3,"file":"autoplay.js","names":["usePrefersReducedMotion","reduced","setReduced","useState","useEffect","query","update","useInView","inView","setInView","element","ref","observer","entry","entries","usePageVisible","visible","setVisible","useAutoplay","reducedMotion","rootRef","pageVisible","hovered","setHovered","focused","setFocused","running","enabled","paused","ignoreInteraction","tick","useRef","onTick","id","delay","resetKey","useCallback","event","keyboard","useIndexState","inner","setInner","defaultValue","current","count","n","value","changed","onValueChange","next"],"sources":["../../../src/components/PartnerCarousel/autoplay.ts"],"sourcesContent":["import { useCallback, useEffect, useRef, useState, type FocusEvent, type PointerEvent, type RefObject } from 'react';\n\n/** `true` while the user asks the system for reduced motion. Starts `false` so server and client markup agree. */\nexport function usePrefersReducedMotion(): boolean {\n const [reduced, setReduced] = useState(false);\n useEffect(() => {\n if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') return;\n const query = window.matchMedia('(prefers-reduced-motion: reduce)');\n const update = () => setReduced(query.matches);\n update();\n query.addEventListener?.('change', update);\n return () => query.removeEventListener?.('change', update);\n }, []);\n return reduced;\n}\n\n/** `false` while the element is scrolled out of the viewport. Without IntersectionObserver it counts as visible. */\nexport function useInView(ref: RefObject<Element | null>): boolean {\n const [inView, setInView] = useState(true);\n useEffect(() => {\n const element = ref.current;\n if (!element || typeof IntersectionObserver === 'undefined') return;\n const observer = new IntersectionObserver((entries) => {\n const entry = entries[entries.length - 1];\n if (entry) setInView(entry.isIntersecting);\n });\n observer.observe(element);\n return () => observer.disconnect();\n }, [ref]);\n return inView;\n}\n\n/** `false` while the browser tab is hidden. */\nexport function usePageVisible(): boolean {\n const [visible, setVisible] = useState(true);\n useEffect(() => {\n if (typeof document === 'undefined') return;\n const update = () => setVisible(document.visibilityState !== 'hidden');\n update();\n document.addEventListener('visibilitychange', update);\n return () => document.removeEventListener('visibilitychange', update);\n }, []);\n return visible;\n}\n\nexport interface UseAutoplayOptions {\n /** The component's `autoPlay` prop. */\n enabled: boolean;\n /** The component's `paused` prop. */\n paused?: boolean;\n /** Milliseconds between two ticks. */\n delay: number;\n /** Moves to the next state. */\n onTick: () => void;\n /** Root element: the loop stops while it is off-screen. */\n rootRef: RefObject<Element | null>;\n /** Restarts the countdown whenever it changes (pass the current step). */\n resetKey?: unknown;\n /** Keep running while the pointer is over the component or focus is inside it (decorative animations only). */\n ignoreInteraction?: boolean;\n}\n\nexport interface UseAutoplayResult {\n /** The loop is ticking right now. */\n running: boolean;\n /** The user asked for reduced motion: nothing plays by itself. */\n reducedMotion: boolean;\n /**\n * Spread on the root: holds the loop while a mouse hovers it or keyboard focus is inside. Pass the focus event to\n * `onFocus`: focus left behind by a click or a tap then does not hold the loop (without the event every focus does).\n */\n interactionProps: {\n onPointerEnter: (event: PointerEvent<HTMLElement>) => void;\n onPointerLeave: () => void;\n onFocus: (event?: FocusEvent<HTMLElement>) => void;\n onBlur: (event: FocusEvent<HTMLElement>) => void;\n };\n}\n\n/**\n * Shared autoplay loop of the animated components: ticks every `delay` ms, forever. It holds for reduced motion, a\n * hidden tab, an off-screen root, a hovering mouse, keyboard focus inside the root and the `paused` prop, and carries\n * on by itself as soon as none of them applies — there is no pause control and nothing the user does ends the loop.\n */\nexport function useAutoplay({ enabled, paused = false, delay, onTick, rootRef, resetKey, ignoreInteraction = false }: UseAutoplayOptions): UseAutoplayResult {\n const reducedMotion = usePrefersReducedMotion();\n const inView = useInView(rootRef);\n const pageVisible = usePageVisible();\n const [hovered, setHovered] = useState(false);\n const [focused, setFocused] = useState(false);\n\n const interacting = !ignoreInteraction && (hovered || focused);\n const running = enabled && !paused && !reducedMotion && inView && pageVisible && !interacting;\n\n const tick = useRef(onTick);\n useEffect(() => {\n tick.current = onTick;\n });\n\n useEffect(() => {\n if (!running) return;\n const id = setTimeout(() => tick.current(), Math.max(0, delay));\n return () => clearTimeout(id);\n }, [running, delay, resetKey]);\n\n const onPointerEnter = useCallback((event: PointerEvent<HTMLElement>) => {\n // Touch has no hover: a tap must not leave the loop paused.\n if (event.pointerType !== 'touch') setHovered(true);\n }, []);\n const onPointerLeave = useCallback(() => setHovered(false), []);\n const onFocus = useCallback((event?: FocusEvent<HTMLElement>) => {\n // Keyboard focus only: the focus a click or a tap leaves on a dot or a card must not hold the loop until the next blur.\n let keyboard = true;\n try {\n if (event) keyboard = event.target.matches(':focus-visible');\n } catch {\n /* :focus-visible unsupported — treat every focus as keyboard focus */\n }\n if (keyboard) setFocused(true);\n }, []);\n const onBlur = useCallback((event: FocusEvent<HTMLElement>) => {\n if (!event.currentTarget.contains(event.relatedTarget as Node | null)) setFocused(false);\n }, []);\n\n return { running, reducedMotion, interactionProps: { onPointerEnter, onPointerLeave, onFocus, onBlur } };\n}\n\n/** Controlled / uncontrolled 0-based index, kept inside `0 … count - 1`. */\nexport function useIndexState(value: number | undefined, defaultValue: number, onValueChange: ((value: number) => void) | undefined, count: number) {\n const [inner, setInner] = useState(defaultValue);\n const clamp = (n: number) => (count > 0 ? Math.max(0, Math.min(Math.round(n), count - 1)) : 0);\n const current = clamp(value ?? inner);\n const changed = useRef(onValueChange);\n useEffect(() => {\n changed.current = onValueChange;\n });\n const set = useCallback(\n (next: number) => {\n setInner(next);\n changed.current?.(next);\n },\n [],\n );\n return [current, set] as const;\n}\n"],"mappings":";;;AAGA,SAAgBA,IAAmC;CACjD,IAAM,CAACC,GAASC,KAAcC,EAAS,EAAK;CAS5C,OARAC,QAAgB;EACd,IAAI,OAAO,SAAW,OAAe,OAAO,OAAO,cAAe,YAAY;EAC9E,IAAMC,IAAQ,OAAO,WAAW,kCAAkC,GAC5DC,UAAeJ,EAAWG,EAAM,OAAO;EAG7C,OAFAC,EAAO,GACPD,EAAM,mBAAmB,UAAUC,CAAM,SAC5BD,EAAM,sBAAsB,UAAUC,CAAM;CAC3D,GAAG,CAAC,CAAC,GACEL;AACT;AAGA,SAAgBM,EAAU,GAAyC;CACjE,IAAM,CAACC,GAAQC,KAAaN,EAAS,EAAI;CAWzC,OAVAC,QAAgB;EACd,IAAMM,IAAUC,EAAI;EACpB,IAAI,CAACD,KAAW,OAAO,uBAAyB,KAAa;EAC7D,IAAME,IAAW,IAAI,sBAAsB,MAAY;GACrD,IAAMC,IAAQC,EAAQA,EAAQ,SAAS;GACvC,AAAID,KAAOJ,EAAUI,EAAM,cAAc;EAC3C,CAAC;EAED,OADAD,EAAS,QAAQF,CAAO,SACXE,EAAS,WAAW;CACnC,GAAG,CAACD,CAAG,CAAC,GACDH;AACT;AAGA,SAAgBO,IAA0B;CACxC,IAAM,CAACC,GAASC,KAAcd,EAAS,EAAI;CAQ3C,OAPAC,QAAgB;EACd,IAAI,OAAO,WAAa,KAAa;EACrC,IAAME,UAAeW,EAAW,SAAS,oBAAoB,QAAQ;EAGrE,OAFAX,EAAO,GACP,SAAS,iBAAiB,oBAAoBA,CAAM,SACvC,SAAS,oBAAoB,oBAAoBA,CAAM;CACtE,GAAG,CAAC,CAAC,GACEU;AACT;AAyCA,SAAgBE,EAAY,EAAE,YAAS,YAAS,IAAO,UAAO,WAAQ,YAAS,aAAU,uBAAoB,MAAgD;CAC3J,IAAMC,IAAgBnB,EAAwB,GACxCQ,IAASD,EAAUa,CAAO,GAC1BC,IAAcN,EAAe,GAC7B,CAACO,GAASC,KAAcpB,EAAS,EAAK,GACtC,CAACqB,GAASC,KAActB,EAAS,EAAK,GAGtCuB,IAAUC,KAAW,CAACC,KAAU,CAACT,KAAiBX,KAAUa,KAAe,EAD7D,CAACQ,MAAsBP,KAAWE,KAGhDM,IAAOC,EAAOC,CAAM;CA8B1B,OA7BA5B,QAAgB;EACd,EAAK,UAAU4B;CACjB,CAAC,GAED5B,QAAgB;EACd,IAAI,CAACsB,GAAS;EACd,IAAMO,IAAK,iBAAiBH,EAAK,QAAQ,GAAG,KAAK,IAAI,GAAGI,CAAK,CAAC;EAC9D,aAAa,aAAaD,CAAE;CAC9B,GAAG;EAACP;EAASQ;EAAOC;CAAQ,CAAC,GAqBtB;EAAE;EAAS;EAAe,kBAAkB;GAAE,gBAnB9BC,GAAa,MAAqC;IAEvE,AAAIC,EAAM,gBAAgB,WAASd,EAAW,EAAI;GACpD,GAAG,CAAC,CAgBiD;GAAgB,gBAf9Ca,QAAkBb,EAAW,EAAK,GAAG,CAAC,CAeQ;GAAgB,SAdrEa,GAAa,MAAoC;IAE/D,IAAIE,IAAW;IACf,IAAI;KACF,AAAID,MAAO,IAAWA,EAAM,OAAO,QAAQ,gBAAgB;IAC7D,QAAQ,CAER;IACA,AAAIC,KAAUb,EAAW,EAAI;GAC/B,GAAG,CAAC,CAKiF;GAAS,QAJ/EW,GAAa,MAAmC;IAC7D,AAAKC,EAAM,cAAc,SAASA,EAAM,aAA4B,KAAGZ,EAAW,EAAK;GACzF,GAAG,CAAC,CAE0F;EAAO;CAAE;AACzG;AAGA,SAAgBc,EAAc,GAA2B,GAAsB,GAAsD,GAAe;CAClJ,IAAM,CAACC,GAAOC,KAAYtC,EAASuC,CAAY,GAEzCC,MADS,MAAeC,IAAQ,IAAI,KAAK,IAAI,GAAG,KAAK,IAAI,KAAK,MAAMC,CAAC,GAAGD,IAAQ,CAAC,CAAC,IAAI,EAC5E,CAAME,KAASN,CAAK,GAC9BO,IAAUhB,EAAOiB,CAAa;CAWpC,OAVA5C,QAAgB;EACd,EAAQ,UAAU4C;CACpB,CAAC,GAQM,CAACL,GAPIP,GACT,MAAiB;EAEhB,AADAK,EAASQ,CAAI,GACbF,EAAQ,UAAUE,CAAI;CACxB,GACA,CAAC,CAEc,CAAG;AACtB"}
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});/* empty css */const ee=require("./utils/cn.cjs"),te=require("./icons/createIcon.cjs"),ne=require("./icons/generated/AirplaneSeatIcon.cjs"),re=require("./icons/generated/BackArrowIcon.cjs"),ie=require("./icons/generated/BaggageIcon.cjs"),ae=require("./icons/generated/BedIcon.cjs"),oe=require("./icons/generated/BookmarkIcon.cjs"),se=require("./icons/generated/BriefcaseIcon.cjs"),ce=require("./icons/generated/CalendarIcon.cjs"),le=require("./icons/generated/CarIcon.cjs"),ue=require("./icons/generated/CheckmarkIcon.cjs"),de=require("./icons/generated/CompareIcon.cjs"),fe=require("./icons/generated/DownArrowIcon.cjs"),pe=require("./icons/generated/EmailIcon.cjs"),me=require("./icons/generated/ErrorCircleIcon.cjs"),he=require("./icons/generated/EyeOpenIcon.cjs"),ge=require("./icons/generated/EyeSlashedIcon.cjs"),_e=require("./icons/generated/FlagIcon.cjs"),ve=require("./icons/generated/FlagFranceIcon.cjs"),ye=require("./icons/generated/FlagGermanyIcon.cjs"),be=require("./icons/generated/FlagItalyIcon.cjs"),xe=require("./icons/generated/FlagNetherlandsIcon.cjs"),Se=require("./icons/generated/FlagRoundIcon.cjs"),Ce=require("./icons/generated/FlagRussiaIcon.cjs"),we=require("./icons/generated/FlagUaeIcon.cjs"),Te=require("./icons/generated/ForkKnifeIcon.cjs"),e=require("./icons/generated/LanguageIcon.cjs"),t=require("./icons/generated/LockIcon.cjs"),n=require("./icons/generated/MapPinIcon.cjs"),r=require("./icons/generated/MenuIcon.cjs"),i=require("./icons/generated/MinusIcon.cjs"),a=require("./icons/generated/MountainIcon.cjs"),o=require("./icons/generated/NextArrowIcon.cjs"),s=require("./icons/generated/NotificationIcon.cjs"),c=require("./icons/generated/OtherIcon.cjs"),l=require("./icons/generated/PaperIcon.cjs"),u=require("./icons/generated/PassportIcon.cjs"),d=require("./icons/generated/PeopleIcon.cjs"),f=require("./icons/generated/PlaneIcon.cjs"),p=require("./icons/generated/PlaneLandingIcon.cjs"),m=require("./icons/generated/PlaneTakeoffIcon.cjs"),h=require("./icons/generated/PlusIcon.cjs"),g=require("./icons/generated/PreferencesIcon.cjs"),_=require("./icons/generated/ResizeFieldIcon.cjs"),v=require("./icons/generated/ReverseArrowIcon.cjs"),y=require("./icons/generated/RoadmapIcon.cjs"),b=require("./icons/generated/SaveTimeIcon.cjs"),x=require("./icons/generated/SearchIcon.cjs"),S=require("./icons/generated/ShieldIcon.cjs"),C=require("./icons/generated/StarIcon.cjs"),w=require("./icons/generated/StopsIcon.cjs"),T=require("./icons/generated/TicketIcon.cjs"),E=require("./icons/generated/TrashBinIcon.cjs"),D=require("./icons/generated/UpArrowIcon.cjs"),O=require("./icons/generated/UpDownArrowIcon.cjs"),Ee=require("./icons/generated/UserIcon.cjs"),De=require("./icons/generated/WalletIcon.cjs"),Oe=require("./icons/generated/XMarkIcon.cjs"),k=require("./icons/generated/index.cjs"),ke=require("./icons/Icon.cjs"),Ae=require("./components/Logo/Logo.cjs"),A=require("./components/AgencyLogo/AgencyLogo.cjs"),je=require("./components/Button/Button.cjs"),j=require("./components/Field/Field.cjs"),Me=require("./components/Text/Text.cjs"),Ne=require("./components/Tag/Tag.cjs"),Pe=require("./components/StatusTag/StatusTag.cjs"),Fe=require("./components/RequestStatus/RequestStatus.cjs"),Ie=require("./components/VerificationBadge/VerificationBadge.cjs"),Le=require("./components/Rating/Rating.cjs"),M=require("./components/ChoiceChip/ChoiceChip.cjs"),Re=require("./components/InclusionIndicator/InclusionIndicator.cjs"),ze=require("./components/TextInput/TextInput.cjs"),Be=require("./components/TextInput/PasswordInput.cjs"),Ve=require("./components/Textarea/Textarea.cjs"),N=require("./components/OptionList/OptionList.cjs"),He=require("./components/Select/SelectedItem.cjs"),Ue=require("./components/Select/Select.cjs"),We=require("./components/LanguageSelect/LanguageSelect.cjs"),Ge=require("./components/CurrencySelect/CurrencySelect.cjs"),Ke=require("./components/PhoneInput/PhoneInput.cjs"),P=require("./components/SearchInput/SearchInput.cjs"),qe=require("./components/DateField/DateField.cjs"),Je=require("./components/RouteField/RouteField.cjs"),F=require("./components/Checkbox/Checkbox.cjs"),I=require("./components/Radio/Radio.cjs"),Ye=require("./components/Toggle/Toggle.cjs"),Xe=require("./components/IconButton/IconButton.cjs"),Ze=require("./components/QuantityStepper/QuantityStepper.cjs"),Qe=require("./components/BudgetField/BudgetField.cjs"),L=require("./components/TravelerSelector/TravelerSelector.cjs"),$e=require("./components/CalendarDay/CalendarDay.cjs"),et=require("./components/HeaderItem/HeaderItem.cjs"),R=require("./components/Breadcrumb/Breadcrumb.cjs"),tt=require("./components/Pagination/Pagination.cjs"),nt=require("./components/FormProgress/FormProgress.cjs"),rt=require("./components/InlineAlert/InlineAlert.cjs"),it=require("./components/Calendar/Calendar.cjs"),z=require("./components/DatePicker/DatePicker.cjs"),B=require("./components/DateRangePicker/DateRangePicker.cjs"),V=require("./components/PortalHeader/PortalHeader.cjs"),at=require("./components/NotificationsButton/NotificationsButton.cjs"),ot=require("./components/NotificationsDropdown/NotificationsDropdown.cjs"),st=require("./components/NotificationsDropdown/NotificationsMenu.cjs"),H=require("./components/AccountMenu/AccountMenu.cjs"),ct=require("./components/SiteHeader/SiteHeader.cjs"),lt=require("./components/SiteFooter/SiteFooter.cjs"),ut=require("./components/PortalFooter/PortalFooter.cjs"),dt=require("./components/NotificationItem/NotificationItem.cjs"),ft=require("./components/RequestCard/RequestCard.cjs"),U=require("./components/RequestSummary/RequestSummary.cjs"),pt=require("./components/HelpQuestionCard/HelpQuestionCard.cjs"),mt=require("./components/AgencyCard/AgencyCard.cjs"),ht=require("./components/AgencyOfferCard/AgencyOfferCard.cjs"),W=require("./components/OfferComparison/OfferComparison.cjs"),gt=require("./components/PackageCard/PackageCardElement.cjs"),_t=require("./components/PackageCard/PackageCard.cjs"),vt=require("./components/PartnerCard/PartnerCard.cjs"),yt=require("./components/ReviewItem/ReviewItem.cjs"),bt=require("./components/ReviewsSummary/ReviewsSummary.cjs"),xt=require("./components/ReviewsEmptyState/ReviewsEmptyState.cjs"),G=require("./components/FaqItem/FaqItem.cjs"),St=require("./components/PopularQuestions/PopularQuestions.cjs"),Ct=require("./components/AgenciesFilter/AgenciesFilter.cjs"),K=require("./components/PlansPicker/PlansPicker.cjs"),q=require("./components/StepCard/StepCard.cjs"),wt=require("./components/PhotoAccordion/PhotoAccordion.cjs"),Tt=require("./components/DestinationAccordion/DestinationAccordion.cjs"),Et=require("./components/Destinations/Destinations.cjs"),Dt=require("./components/TripTypes/TripTypes.cjs"),J=require("./components/Dialog/Dialog.cjs"),Ot=require("./components/ConfirmationDialog/ConfirmationDialog.cjs"),Y=require("./components/NewRequestOverlay/NewRequestOverlay.cjs"),kt=require("./components/EmptyState/EmptyState.cjs"),At=require("./components/ErrorState/ErrorState.cjs"),jt=require("./components/RequestStatusTimeline/RequestStatusTimeline.cjs"),Mt=require("./components/HeroColumns/HeroColumns.cjs"),Nt=require("./components/HeroSwitcher/HeroSwitcher.cjs"),X=require("./components/HeroOrbit/HeroOrbit.cjs"),Pt=require("./components/HeroMap/HeroMap.cjs"),Z=require("./components/HowItWorksSteps/HowItWorksSteps.cjs"),Ft=require("./components/ExampleRequests/ExampleRequests.cjs"),Q=require("./components/WhyTravelMatch/WhyTravelMatch.cjs"),It=require("./components/PackageAnimation/PackageAnimation.cjs"),Lt=require("./components/PartnerCarousel/PartnerCarousel.cjs"),Rt=require("./components/CtaRequestFlow/CtaRequestFlow.cjs"),zt=require("./components/CtaSentence/CtaSentence.cjs"),Bt=require("./components/Sheet/Sheet.cjs"),Vt=require("./components/SelectSheet/SelectSheet.cjs"),Ht=require("./components/AccountSheet/AccountSheet.cjs"),Ut=require("./components/NotificationsPanel/NotificationsPanel.cjs"),$=require("./components/DatePickerSheet/DatePickerSheet.cjs"),Wt=require("./components/BackLink/BackLink.cjs"),Gt=require("./components/FilterChips/FilterChips.cjs"),Kt=require("./components/IconTile/IconTile.cjs"),qt=require("./components/SocialButton/SocialButton.cjs"),Jt=require("./components/Divider/Divider.cjs"),Yt=require("./components/SegmentedControl/SegmentedControl.cjs"),Xt=require("./components/PasswordStrength/PasswordStrength.cjs");exports.AccountMenu=H.AccountMenu,exports.AccountMenuItem=H.AccountMenuItem,exports.AccountMenuSeparator=H.AccountMenuSeparator,exports.AccountSheet=Ht.AccountSheet,exports.AgenciesFilter=Ct.AgenciesFilter,exports.AgencyCard=mt.AgencyCard,exports.AgencyLogo=A.AgencyLogo,exports.AgencyOfferCard=ht.AgencyOfferCard,exports.AirplaneSeatIcon=ne.AirplaneSeatIcon,exports.BackArrowIcon=re.BackArrowIcon,exports.BackLink=Wt.BackLink,exports.BaggageIcon=ie.BaggageIcon,exports.BedIcon=ae.BedIcon,exports.BookmarkIcon=oe.BookmarkIcon,exports.Breadcrumb=R.Breadcrumb,exports.BreadcrumbItem=R.BreadcrumbItem,exports.BriefcaseIcon=se.BriefcaseIcon,exports.BudgetField=Qe.BudgetField,exports.Button=je.Button,exports.Calendar=it.Calendar,exports.CalendarDay=$e.CalendarDay,exports.CalendarIcon=ce.CalendarIcon,exports.CarIcon=le.CarIcon,exports.Checkbox=F.Checkbox,exports.CheckmarkIcon=ue.CheckmarkIcon,exports.ChoiceChip=M.ChoiceChip,exports.ChoiceChipGroup=M.ChoiceChipGroup,exports.CompareIcon=de.CompareIcon,exports.ConfirmationDialog=Ot.ConfirmationDialog,exports.CtaRequestFlow=Rt.CtaRequestFlow,exports.CtaSentence=zt.CtaSentence,exports.CurrencySelect=Ge.CurrencySelect,exports.DateField=qe.DateField,exports.DatePicker=z.DatePicker,exports.DatePickerPanel=z.DatePickerPanel,exports.DatePickerSheet=$.DatePickerSheet,exports.DateRangePicker=B.DateRangePicker,exports.DateRangePickerPanel=B.DateRangePickerPanel,exports.DateRangePickerSheet=$.DateRangePickerSheet,exports.DestinationAccordion=Tt.DestinationAccordion,exports.Destinations=Et.Destinations,exports.Dialog=J.Dialog,exports.DialogClose=J.DialogClose,exports.Divider=Jt.Divider,exports.DownArrowIcon=fe.DownArrowIcon,exports.EmailIcon=pe.EmailIcon,exports.EmptyState=kt.EmptyState,exports.ErrorCircleIcon=me.ErrorCircleIcon,exports.ErrorState=At.ErrorState,exports.ExampleRequests=Ft.ExampleRequests,exports.EyeOpenIcon=he.EyeOpenIcon,exports.EyeSlashedIcon=ge.EyeSlashedIcon,exports.FaqItem=G.FaqItem,exports.FaqList=G.FaqList,exports.FieldMessage=j.FieldMessage,exports.FilterChips=Gt.FilterChips,exports.FlagFranceIcon=ve.FlagFranceIcon,exports.FlagGermanyIcon=ye.FlagGermanyIcon,exports.FlagIcon=_e.FlagIcon,exports.FlagItalyIcon=be.FlagItalyIcon,exports.FlagNetherlandsIcon=xe.FlagNetherlandsIcon,exports.FlagRoundIcon=Se.FlagRoundIcon,exports.FlagRussiaIcon=Ce.FlagRussiaIcon,exports.FlagUaeIcon=we.FlagUaeIcon,exports.ForkKnifeIcon=Te.ForkKnifeIcon,exports.FormField=j.FormField,exports.FormProgress=nt.FormProgress,exports.HeaderItem=et.HeaderItem,exports.HelpQuestionCard=pt.HelpQuestionCard,exports.HeroColumns=Mt.HeroColumns,exports.HeroMap=Pt.HeroMap,exports.HeroOrbit=X.HeroOrbit,exports.HeroOrbitCard=X.HeroOrbitCard,exports.HeroSwitcher=Nt.HeroSwitcher,exports.HowItWorksStepTag=Z.HowItWorksStepTag,exports.HowItWorksSteps=Z.HowItWorksSteps,exports.Icon=ke.Icon,exports.IconButton=Xe.IconButton,exports.IconTile=Kt.IconTile,exports.InclusionIndicator=Re.InclusionIndicator,exports.InlineAlert=rt.InlineAlert,exports.Label=j.Label,exports.LanguageIcon=e.LanguageIcon,exports.LanguageSelect=We.LanguageSelect,exports.LockIcon=t.LockIcon,exports.Logo=Ae.Logo,exports.MapPinIcon=n.MapPinIcon,exports.MenuIcon=r.MenuIcon,exports.MinusIcon=i.MinusIcon,exports.MountainIcon=a.MountainIcon,exports.NewRequestOptionCard=Y.NewRequestOptionCard,exports.NewRequestOverlay=Y.NewRequestOverlay,exports.NextArrowIcon=o.NextArrowIcon,exports.NotificationIcon=s.NotificationIcon,exports.NotificationItem=dt.NotificationItem,exports.NotificationsButton=at.NotificationsButton,exports.NotificationsDropdown=ot.NotificationsDropdown,exports.NotificationsMenu=st.NotificationsMenu,exports.NotificationsPanel=Ut.NotificationsPanel,exports.OfferComparison=W.OfferComparison,exports.OfferComparisonRow=W.OfferComparisonRow,exports.Option=N.Option,exports.OptionList=N.OptionList,exports.OtherIcon=c.OtherIcon,exports.PackageAnimation=It.PackageAnimation,exports.PackageCard=_t.PackageCard,exports.PackageCardElement=gt.PackageCardElement,exports.Pagination=tt.Pagination,exports.PaperIcon=l.PaperIcon,exports.PartnerCard=vt.PartnerCard,exports.PartnerCarousel=Lt.PartnerCarousel,exports.PassportIcon=u.PassportIcon,exports.PasswordInput=Be.PasswordInput,exports.PasswordStrength=Xt.PasswordStrength,exports.PeopleIcon=d.PeopleIcon,exports.PhoneInput=Ke.PhoneInput,exports.PhotoAccordion=wt.PhotoAccordion,exports.PlanCard=K.PlanCard,exports.PlaneIcon=f.PlaneIcon,exports.PlaneLandingIcon=p.PlaneLandingIcon,exports.PlaneTakeoffIcon=m.PlaneTakeoffIcon,exports.PlansPicker=K.PlansPicker,exports.PlusIcon=h.PlusIcon,exports.PopularQuestions=St.PopularQuestions,exports.PortalFooter=ut.PortalFooter,exports.PortalHeader=V.PortalHeader,exports.PortalHeaderMenuGroup=V.PortalHeaderMenuGroup,exports.PortalHeaderMenuItem=V.PortalHeaderMenuItem,exports.PortalHeaderShow=V.PortalHeaderShow,exports.PreferencesIcon=g.PreferencesIcon,exports.QuantityStepper=Ze.QuantityStepper,exports.Radio=I.Radio,exports.RadioGroup=I.RadioGroup,exports.Rating=Le.Rating,exports.RequestCard=ft.RequestCard,exports.RequestStatus=Fe.RequestStatus,exports.RequestStatusTimeline=jt.RequestStatusTimeline,exports.RequestSummary=U.RequestSummary,exports.RequestSummaryEditLink=U.RequestSummaryEditLink,exports.RequestSummaryRow=U.RequestSummaryRow,exports.RequestSummarySection=U.RequestSummarySection,exports.ResizeFieldIcon=_.ResizeFieldIcon,exports.ReverseArrowIcon=v.ReverseArrowIcon,exports.ReviewItem=yt.ReviewItem,exports.ReviewsEmptyState=xt.ReviewsEmptyState,exports.ReviewsSummary=bt.ReviewsSummary,exports.RoadmapIcon=y.RoadmapIcon,exports.RouteField=Je.RouteField,exports.SaveTimeIcon=b.SaveTimeIcon,exports.SearchIcon=x.SearchIcon,exports.SearchInput=P.SearchInput,exports.SearchResult=P.SearchResult,exports.SearchResultGroup=P.SearchResultGroup,exports.SegmentedControl=Yt.SegmentedControl,exports.Select=Ue.Select,exports.SelectSheet=Vt.SelectSheet,exports.SelectedItem=He.SelectedItem,exports.Sheet=Bt.Sheet,exports.ShieldIcon=S.ShieldIcon,exports.SiteFooter=lt.SiteFooter,exports.SiteHeader=ct.SiteHeader,exports.SocialButton=qt.SocialButton,exports.StarIcon=C.StarIcon,exports.StatusTag=Pe.StatusTag,exports.StepCard=q.StepCard,exports.Steps=q.Steps,exports.StopsIcon=w.StopsIcon,exports.Tag=Ne.Tag,exports.Text=Me.Text,exports.TextInput=ze.TextInput,exports.Textarea=Ve.Textarea,exports.TicketIcon=T.TicketIcon,exports.Toggle=Ye.Toggle,exports.TrashBinIcon=E.TrashBinIcon,exports.TravelerSelector=L.TravelerSelector,exports.TravelerSelectorNote=L.TravelerSelectorNote,exports.TravelerSelectorSection=L.TravelerSelectorSection,exports.TripTypes=Dt.TripTypes,exports.UpArrowIcon=D.UpArrowIcon,exports.UpDownArrowIcon=O.UpDownArrowIcon,exports.UserIcon=Ee.UserIcon,exports.VerificationBadge=Ie.VerificationBadge,exports.WalletIcon=De.WalletIcon,exports.WhyTravelMatch=Q.WhyTravelMatch,exports.WhyTravelMatchOffers=Q.WhyTravelMatchOffers,exports.XMarkIcon=Oe.XMarkIcon,exports.cn=ee.cn,exports.createIcon=te.createIcon,exports.getAgencyInitials=A.getAgencyInitials,exports.iconNames=k.iconNames,exports.icons=k.icons,exports.useDialogPlacement=J.useDialogPlacement,exports.useFieldIds=j.useFieldIds;
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});/* empty css */const ee=require("./utils/cn.cjs"),te=require("./icons/createIcon.cjs"),ne=require("./icons/generated/AirplaneSeatIcon.cjs"),re=require("./icons/generated/BackArrowIcon.cjs"),ie=require("./icons/generated/BaggageIcon.cjs"),ae=require("./icons/generated/BedIcon.cjs"),oe=require("./icons/generated/BookmarkIcon.cjs"),se=require("./icons/generated/BriefcaseIcon.cjs"),ce=require("./icons/generated/CalendarIcon.cjs"),le=require("./icons/generated/CarIcon.cjs"),ue=require("./icons/generated/CheckmarkIcon.cjs"),de=require("./icons/generated/CompareIcon.cjs"),fe=require("./icons/generated/DownArrowIcon.cjs"),pe=require("./icons/generated/EmailIcon.cjs"),me=require("./icons/generated/ErrorCircleIcon.cjs"),he=require("./icons/generated/EyeOpenIcon.cjs"),ge=require("./icons/generated/EyeSlashedIcon.cjs"),_e=require("./icons/generated/FlagIcon.cjs"),ve=require("./icons/generated/FlagFranceIcon.cjs"),ye=require("./icons/generated/FlagGermanyIcon.cjs"),be=require("./icons/generated/FlagItalyIcon.cjs"),xe=require("./icons/generated/FlagNetherlandsIcon.cjs"),Se=require("./icons/generated/FlagRoundIcon.cjs"),Ce=require("./icons/generated/FlagRussiaIcon.cjs"),we=require("./icons/generated/FlagUaeIcon.cjs"),Te=require("./icons/generated/ForkKnifeIcon.cjs"),e=require("./icons/generated/LanguageIcon.cjs"),t=require("./icons/generated/LockIcon.cjs"),n=require("./icons/generated/MapPinIcon.cjs"),r=require("./icons/generated/MenuIcon.cjs"),i=require("./icons/generated/MinusIcon.cjs"),a=require("./icons/generated/MountainIcon.cjs"),o=require("./icons/generated/NextArrowIcon.cjs"),s=require("./icons/generated/NotificationIcon.cjs"),c=require("./icons/generated/OtherIcon.cjs"),l=require("./icons/generated/PaperIcon.cjs"),u=require("./icons/generated/PassportIcon.cjs"),d=require("./icons/generated/PeopleIcon.cjs"),f=require("./icons/generated/PlaneIcon.cjs"),p=require("./icons/generated/PlaneLandingIcon.cjs"),m=require("./icons/generated/PlaneTakeoffIcon.cjs"),h=require("./icons/generated/PlusIcon.cjs"),g=require("./icons/generated/PreferencesIcon.cjs"),_=require("./icons/generated/ResizeFieldIcon.cjs"),v=require("./icons/generated/ReverseArrowIcon.cjs"),y=require("./icons/generated/RoadmapIcon.cjs"),b=require("./icons/generated/SaveTimeIcon.cjs"),x=require("./icons/generated/SearchIcon.cjs"),S=require("./icons/generated/ShieldIcon.cjs"),C=require("./icons/generated/StarIcon.cjs"),w=require("./icons/generated/StopsIcon.cjs"),T=require("./icons/generated/TicketIcon.cjs"),E=require("./icons/generated/TrashBinIcon.cjs"),D=require("./icons/generated/UpArrowIcon.cjs"),O=require("./icons/generated/UpDownArrowIcon.cjs"),Ee=require("./icons/generated/UserIcon.cjs"),De=require("./icons/generated/WalletIcon.cjs"),Oe=require("./icons/generated/XMarkIcon.cjs"),k=require("./icons/generated/index.cjs"),ke=require("./icons/Icon.cjs"),Ae=require("./components/Logo/Logo.cjs"),je=require("./components/LogoAnimation/LogoAnimation.cjs"),A=require("./components/AgencyLogo/AgencyLogo.cjs"),Me=require("./components/Button/Button.cjs"),j=require("./components/Field/Field.cjs"),Ne=require("./components/Text/Text.cjs"),Pe=require("./components/Tag/Tag.cjs"),Fe=require("./components/StatusTag/StatusTag.cjs"),Ie=require("./components/RequestStatus/RequestStatus.cjs"),Le=require("./components/VerificationBadge/VerificationBadge.cjs"),Re=require("./components/Rating/Rating.cjs"),M=require("./components/ChoiceChip/ChoiceChip.cjs"),ze=require("./components/InclusionIndicator/InclusionIndicator.cjs"),Be=require("./components/TextInput/TextInput.cjs"),Ve=require("./components/TextInput/PasswordInput.cjs"),He=require("./components/Textarea/Textarea.cjs"),N=require("./components/OptionList/OptionList.cjs"),Ue=require("./components/Select/SelectedItem.cjs"),We=require("./components/Select/Select.cjs"),Ge=require("./components/LanguageSelect/LanguageSelect.cjs"),Ke=require("./components/CurrencySelect/CurrencySelect.cjs"),qe=require("./components/PhoneInput/PhoneInput.cjs"),P=require("./components/SearchInput/SearchInput.cjs"),Je=require("./components/DateField/DateField.cjs"),Ye=require("./components/RouteField/RouteField.cjs"),Xe=require("./components/Checkbox/Checkbox.cjs"),F=require("./components/Radio/Radio.cjs"),Ze=require("./components/Toggle/Toggle.cjs"),I=require("./components/IconButton/IconButton.cjs"),Qe=require("./components/QuantityStepper/QuantityStepper.cjs"),$e=require("./components/BudgetField/BudgetField.cjs"),L=require("./components/TravelerSelector/TravelerSelector.cjs"),et=require("./components/CalendarDay/CalendarDay.cjs"),tt=require("./components/HeaderItem/HeaderItem.cjs"),R=require("./components/Breadcrumb/Breadcrumb.cjs"),nt=require("./components/Pagination/Pagination.cjs"),rt=require("./components/FormProgress/FormProgress.cjs"),it=require("./components/InlineAlert/InlineAlert.cjs"),at=require("./components/Calendar/Calendar.cjs"),z=require("./components/DatePicker/DatePicker.cjs"),B=require("./components/DateRangePicker/DateRangePicker.cjs"),V=require("./components/PortalHeader/PortalHeader.cjs"),ot=require("./components/NotificationsButton/NotificationsButton.cjs"),st=require("./components/NotificationsDropdown/NotificationsDropdown.cjs"),ct=require("./components/NotificationsDropdown/NotificationsMenu.cjs"),H=require("./components/AccountMenu/AccountMenu.cjs"),lt=require("./components/SiteHeader/SiteHeader.cjs"),ut=require("./components/SiteFooter/SiteFooter.cjs"),dt=require("./components/PortalFooter/PortalFooter.cjs"),ft=require("./components/NotificationItem/NotificationItem.cjs"),pt=require("./components/RequestCard/RequestCard.cjs"),U=require("./components/RequestSummary/RequestSummary.cjs"),mt=require("./components/HelpQuestionCard/HelpQuestionCard.cjs"),ht=require("./components/AgencyCard/AgencyCard.cjs"),gt=require("./components/AgencyOfferCard/AgencyOfferCard.cjs"),W=require("./components/OfferComparison/OfferComparison.cjs"),_t=require("./components/PackageCard/PackageCardElement.cjs"),vt=require("./components/PackageCard/PackageCard.cjs"),yt=require("./components/PartnerCard/PartnerCard.cjs"),bt=require("./components/ReviewItem/ReviewItem.cjs"),xt=require("./components/ReviewsSummary/ReviewsSummary.cjs"),St=require("./components/ReviewsEmptyState/ReviewsEmptyState.cjs"),G=require("./components/FaqItem/FaqItem.cjs"),Ct=require("./components/PopularQuestions/PopularQuestions.cjs"),wt=require("./components/AgenciesFilter/AgenciesFilter.cjs"),K=require("./components/PlansPicker/PlansPicker.cjs"),q=require("./components/StepCard/StepCard.cjs"),Tt=require("./components/PhotoAccordion/PhotoAccordion.cjs"),Et=require("./components/DestinationAccordion/DestinationAccordion.cjs"),Dt=require("./components/Destinations/Destinations.cjs"),Ot=require("./components/TripTypes/TripTypes.cjs"),J=require("./components/Dialog/Dialog.cjs"),kt=require("./components/ConfirmationDialog/ConfirmationDialog.cjs"),Y=require("./components/NewRequestOverlay/NewRequestOverlay.cjs"),At=require("./components/EmptyState/EmptyState.cjs"),jt=require("./components/ErrorState/ErrorState.cjs"),Mt=require("./components/RequestStatusTimeline/RequestStatusTimeline.cjs"),Nt=require("./components/HeroColumns/HeroColumns.cjs"),Pt=require("./components/HeroSwitcher/HeroSwitcher.cjs"),X=require("./components/HeroOrbit/HeroOrbit.cjs"),Ft=require("./components/HeroMap/HeroMap.cjs"),Z=require("./components/HowItWorksSteps/HowItWorksSteps.cjs"),It=require("./components/ExampleRequests/ExampleRequests.cjs"),Q=require("./components/WhyTravelMatch/WhyTravelMatch.cjs"),Lt=require("./components/PackageAnimation/PackageAnimation.cjs"),Rt=require("./components/PartnerCarousel/PartnerCarousel.cjs"),zt=require("./components/CtaRequestFlow/CtaRequestFlow.cjs"),Bt=require("./components/CtaSentence/CtaSentence.cjs"),Vt=require("./components/Sheet/Sheet.cjs"),Ht=require("./components/SelectSheet/SelectSheet.cjs"),Ut=require("./components/AccountSheet/AccountSheet.cjs"),Wt=require("./components/NotificationsPanel/NotificationsPanel.cjs"),$=require("./components/DatePickerSheet/DatePickerSheet.cjs"),Gt=require("./components/BackLink/BackLink.cjs"),Kt=require("./components/FilterChips/FilterChips.cjs"),qt=require("./components/IconTile/IconTile.cjs"),Jt=require("./components/SocialButton/SocialButton.cjs"),Yt=require("./components/Divider/Divider.cjs"),Xt=require("./components/SegmentedControl/SegmentedControl.cjs"),Zt=require("./components/PasswordStrength/PasswordStrength.cjs");exports.AccountMenu=H.AccountMenu,exports.AccountMenuItem=H.AccountMenuItem,exports.AccountMenuSeparator=H.AccountMenuSeparator,exports.AccountSheet=Ut.AccountSheet,exports.AgenciesFilter=wt.AgenciesFilter,exports.AgencyCard=ht.AgencyCard,exports.AgencyLogo=A.AgencyLogo,exports.AgencyOfferCard=gt.AgencyOfferCard,exports.AirplaneSeatIcon=ne.AirplaneSeatIcon,exports.BackArrowIcon=re.BackArrowIcon,exports.BackLink=Gt.BackLink,exports.BaggageIcon=ie.BaggageIcon,exports.BedIcon=ae.BedIcon,exports.BookmarkIcon=oe.BookmarkIcon,exports.Breadcrumb=R.Breadcrumb,exports.BreadcrumbItem=R.BreadcrumbItem,exports.BriefcaseIcon=se.BriefcaseIcon,exports.BudgetField=$e.BudgetField,exports.Button=Me.Button,exports.Calendar=at.Calendar,exports.CalendarDay=et.CalendarDay,exports.CalendarIcon=ce.CalendarIcon,exports.CarIcon=le.CarIcon,exports.Checkbox=Xe.Checkbox,exports.CheckmarkIcon=ue.CheckmarkIcon,exports.ChoiceChip=M.ChoiceChip,exports.ChoiceChipGroup=M.ChoiceChipGroup,exports.CompareIcon=de.CompareIcon,exports.ConfirmationDialog=kt.ConfirmationDialog,exports.CtaRequestFlow=zt.CtaRequestFlow,exports.CtaSentence=Bt.CtaSentence,exports.CurrencySelect=Ke.CurrencySelect,exports.DateField=Je.DateField,exports.DatePicker=z.DatePicker,exports.DatePickerPanel=z.DatePickerPanel,exports.DatePickerSheet=$.DatePickerSheet,exports.DateRangePicker=B.DateRangePicker,exports.DateRangePickerPanel=B.DateRangePickerPanel,exports.DateRangePickerSheet=$.DateRangePickerSheet,exports.DestinationAccordion=Et.DestinationAccordion,exports.Destinations=Dt.Destinations,exports.Dialog=J.Dialog,exports.DialogClose=J.DialogClose,exports.Divider=Yt.Divider,exports.DownArrowIcon=fe.DownArrowIcon,exports.EmailIcon=pe.EmailIcon,exports.EmptyState=At.EmptyState,exports.ErrorCircleIcon=me.ErrorCircleIcon,exports.ErrorState=jt.ErrorState,exports.ExampleRequests=It.ExampleRequests,exports.EyeOpenIcon=he.EyeOpenIcon,exports.EyeSlashedIcon=ge.EyeSlashedIcon,exports.FaqItem=G.FaqItem,exports.FaqList=G.FaqList,exports.FieldMessage=j.FieldMessage,exports.FilterChips=Kt.FilterChips,exports.FlagFranceIcon=ve.FlagFranceIcon,exports.FlagGermanyIcon=ye.FlagGermanyIcon,exports.FlagIcon=_e.FlagIcon,exports.FlagItalyIcon=be.FlagItalyIcon,exports.FlagNetherlandsIcon=xe.FlagNetherlandsIcon,exports.FlagRoundIcon=Se.FlagRoundIcon,exports.FlagRussiaIcon=Ce.FlagRussiaIcon,exports.FlagUaeIcon=we.FlagUaeIcon,exports.ForkKnifeIcon=Te.ForkKnifeIcon,exports.FormField=j.FormField,exports.FormProgress=rt.FormProgress,exports.HeaderItem=tt.HeaderItem,exports.HelpQuestionCard=mt.HelpQuestionCard,exports.HeroColumns=Nt.HeroColumns,exports.HeroMap=Ft.HeroMap,exports.HeroOrbit=X.HeroOrbit,exports.HeroOrbitCard=X.HeroOrbitCard,exports.HeroSwitcher=Pt.HeroSwitcher,exports.HowItWorksStepTag=Z.HowItWorksStepTag,exports.HowItWorksSteps=Z.HowItWorksSteps,exports.Icon=ke.Icon,exports.IconButton=I.IconButton,exports.IconTile=qt.IconTile,exports.InclusionIndicator=ze.InclusionIndicator,exports.InlineAlert=it.InlineAlert,exports.Label=j.Label,exports.LanguageIcon=e.LanguageIcon,exports.LanguageSelect=Ge.LanguageSelect,exports.LockIcon=t.LockIcon,exports.Logo=Ae.Logo,exports.LogoAnimation=je.LogoAnimation,exports.MapPinIcon=n.MapPinIcon,exports.MenuIcon=r.MenuIcon,exports.MinusIcon=i.MinusIcon,exports.MountainIcon=a.MountainIcon,exports.NewRequestOptionCard=Y.NewRequestOptionCard,exports.NewRequestOverlay=Y.NewRequestOverlay,exports.NextArrowIcon=o.NextArrowIcon,exports.NotificationIcon=s.NotificationIcon,exports.NotificationItem=ft.NotificationItem,exports.NotificationsButton=ot.NotificationsButton,exports.NotificationsDropdown=st.NotificationsDropdown,exports.NotificationsMenu=ct.NotificationsMenu,exports.NotificationsPanel=Wt.NotificationsPanel,exports.OfferComparison=W.OfferComparison,exports.OfferComparisonRow=W.OfferComparisonRow,exports.Option=N.Option,exports.OptionList=N.OptionList,exports.OtherIcon=c.OtherIcon,exports.PackageAnimation=Lt.PackageAnimation,exports.PackageCard=vt.PackageCard,exports.PackageCardElement=_t.PackageCardElement,exports.Pagination=nt.Pagination,exports.PaperIcon=l.PaperIcon,exports.PartnerCard=yt.PartnerCard,exports.PartnerCarousel=Rt.PartnerCarousel,exports.PassportIcon=u.PassportIcon,exports.PasswordInput=Ve.PasswordInput,exports.PasswordStrength=Zt.PasswordStrength,exports.PeopleIcon=d.PeopleIcon,exports.PhoneInput=qe.PhoneInput,exports.PhotoAccordion=Tt.PhotoAccordion,exports.PlanCard=K.PlanCard,exports.PlaneIcon=f.PlaneIcon,exports.PlaneLandingIcon=p.PlaneLandingIcon,exports.PlaneTakeoffIcon=m.PlaneTakeoffIcon,exports.PlansPicker=K.PlansPicker,exports.PlusIcon=h.PlusIcon,exports.PopularQuestions=Ct.PopularQuestions,exports.PortalFooter=dt.PortalFooter,exports.PortalHeader=V.PortalHeader,exports.PortalHeaderMenuGroup=V.PortalHeaderMenuGroup,exports.PortalHeaderMenuItem=V.PortalHeaderMenuItem,exports.PortalHeaderShow=V.PortalHeaderShow,exports.PreferencesIcon=g.PreferencesIcon,exports.QuantityStepper=Qe.QuantityStepper,exports.Radio=F.Radio,exports.RadioGroup=F.RadioGroup,exports.Rating=Re.Rating,exports.RequestCard=pt.RequestCard,exports.RequestStatus=Ie.RequestStatus,exports.RequestStatusTimeline=Mt.RequestStatusTimeline,exports.RequestSummary=U.RequestSummary,exports.RequestSummaryEditLink=U.RequestSummaryEditLink,exports.RequestSummaryRow=U.RequestSummaryRow,exports.RequestSummarySection=U.RequestSummarySection,exports.ResizeFieldIcon=_.ResizeFieldIcon,exports.ReverseArrowIcon=v.ReverseArrowIcon,exports.ReviewItem=bt.ReviewItem,exports.ReviewsEmptyState=St.ReviewsEmptyState,exports.ReviewsSummary=xt.ReviewsSummary,exports.RoadmapIcon=y.RoadmapIcon,exports.RouteField=Ye.RouteField,exports.SaveTimeIcon=b.SaveTimeIcon,exports.SearchIcon=x.SearchIcon,exports.SearchInput=P.SearchInput,exports.SearchResult=P.SearchResult,exports.SearchResultGroup=P.SearchResultGroup,exports.SegmentedControl=Xt.SegmentedControl,exports.Select=We.Select,exports.SelectSheet=Ht.SelectSheet,exports.SelectedItem=Ue.SelectedItem,exports.Sheet=Vt.Sheet,exports.ShieldIcon=S.ShieldIcon,exports.SiteFooter=ut.SiteFooter,exports.SiteHeader=lt.SiteHeader,exports.SocialButton=Jt.SocialButton,exports.StarIcon=C.StarIcon,exports.StatusTag=Fe.StatusTag,exports.StepCard=q.StepCard,exports.Steps=q.Steps,exports.StopsIcon=w.StopsIcon,exports.Tag=Pe.Tag,exports.Text=Ne.Text,exports.TextInput=Be.TextInput,exports.Textarea=He.Textarea,exports.TicketIcon=T.TicketIcon,exports.Toggle=Ze.Toggle,exports.TrashBinIcon=E.TrashBinIcon,exports.TravelerSelector=L.TravelerSelector,exports.TravelerSelectorNote=L.TravelerSelectorNote,exports.TravelerSelectorSection=L.TravelerSelectorSection,exports.TripTypes=Ot.TripTypes,exports.UpArrowIcon=D.UpArrowIcon,exports.UpDownArrowIcon=O.UpDownArrowIcon,exports.UserIcon=Ee.UserIcon,exports.VerificationBadge=Le.VerificationBadge,exports.WalletIcon=De.WalletIcon,exports.WhyTravelMatch=Q.WhyTravelMatch,exports.WhyTravelMatchOffers=Q.WhyTravelMatchOffers,exports.XMarkIcon=Oe.XMarkIcon,exports.cn=ee.cn,exports.createIcon=te.createIcon,exports.getAgencyInitials=A.getAgencyInitials,exports.iconNames=k.iconNames,exports.icons=k.icons,exports.useDialogPlacement=J.useDialogPlacement,exports.useFieldIds=j.useFieldIds;
|
package/dist/index.d.cts
CHANGED
|
@@ -223,6 +223,35 @@ export interface LogoProps extends Omit<SVGProps<SVGSVGElement>, "ref" | "childr
|
|
|
223
223
|
title?: string;
|
|
224
224
|
}
|
|
225
225
|
export declare const Logo: import("react").ForwardRefExoticComponent<LogoProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
226
|
+
type LogoMotionMode = "once" | "loop";
|
|
227
|
+
/** `once`: the intro — the plane draws the logo, lands and the logo stays. `loop`: the loader — it flies out, the line rewinds and it starts again. */
|
|
228
|
+
export type LogoAnimationMode = LogoMotionMode;
|
|
229
|
+
export interface LogoAnimationProps extends Omit<SVGProps<SVGSVGElement>, "ref" | "children" | "width" | "height" | "viewBox" | "mode"> {
|
|
230
|
+
/** `once` (intro, holds the final logo) or `loop` (loader, repeats forever). Both play by themselves. */
|
|
231
|
+
mode?: LogoAnimationMode;
|
|
232
|
+
/** Width in px. The height follows the 40 × 52 mark: `size × 1.3`. */
|
|
233
|
+
size?: number;
|
|
234
|
+
/** Seconds to wait before the dot appears. */
|
|
235
|
+
delay?: number;
|
|
236
|
+
/**
|
|
237
|
+
* Accessible name. Defaults to "TravelMatch" for `once` and "Loading" for `loop`; pass a translated string, or an
|
|
238
|
+
* empty string when the animation is decorative (it is then hidden from assistive technology).
|
|
239
|
+
*/
|
|
240
|
+
title?: string;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* The TravelMatch mark drawn by its paper plane: the dot appears, the plane takes off from it, draws the pin and grows
|
|
244
|
+
* the lower-left branch, then lands in the exact logo pose (the `Logo` mark artwork). `once` holds the logo; `loop`
|
|
245
|
+
* flies the plane out with a few puffs while the line rewinds into the dot, and starts again.
|
|
246
|
+
*
|
|
247
|
+
* - Plays by itself — there is no play or pause control. Frames stop while the tab is hidden or the logo is
|
|
248
|
+
* off-screen and pick up where they were, so an intro below the fold plays when it is scrolled into view.
|
|
249
|
+
* - `prefers-reduced-motion`: both modes show the still logo straight away (CSS does this from the first paint, before
|
|
250
|
+
* hydration). The loader keeps its "Loading" name for assistive technology.
|
|
251
|
+
* - Server rendering: the markup is the first frame (an empty, size-reserving box for `once`; the dot for `loop`), so
|
|
252
|
+
* hydration continues from it without a flash. Paths are measured and frames run in effects only.
|
|
253
|
+
*/
|
|
254
|
+
export declare const LogoAnimation: import("react").ForwardRefExoticComponent<LogoAnimationProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
226
255
|
export interface AgencyLogoProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
227
256
|
/** Logo image URL. Without it, or when it fails to load, the agency's initials are shown instead. */
|
|
228
257
|
src?: string | null;
|
|
@@ -2817,26 +2846,22 @@ export interface HeroSwitcherProps extends Omit<HTMLAttributes<HTMLDivElement>,
|
|
|
2817
2846
|
defaultValue?: string;
|
|
2818
2847
|
/** Called with the new value when the user picks a segment or autoplay advances. */
|
|
2819
2848
|
onValueChange?: (value: string) => void;
|
|
2820
|
-
/** Advances to the next item on its own
|
|
2849
|
+
/** Advances to the next item on its own, in an endless loop; after the user picks a segment it carries on from that item. */
|
|
2821
2850
|
autoPlay?: boolean;
|
|
2822
2851
|
/** Milliseconds each item stays before autoplay moves on (Figma prototype: 3s delay + 0.6s transition). */
|
|
2823
2852
|
interval?: number;
|
|
2824
|
-
/** Holds autoplay from outside (the selected item stays as it is). */
|
|
2853
|
+
/** Holds autoplay from outside (the selected item stays as it is); it carries on once this is `false` again. */
|
|
2825
2854
|
paused?: boolean;
|
|
2826
2855
|
/** Accessible name of the switch (tab list). */
|
|
2827
2856
|
"aria-label"?: string;
|
|
2828
2857
|
/** Heading level of the card title; pick the one that fits the page outline. */
|
|
2829
2858
|
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
2830
|
-
/** Accessible name of the pause button shown while autoplay runs. */
|
|
2831
|
-
pauseLabel?: string;
|
|
2832
|
-
/** Accessible name of the same button once autoplay is stopped. */
|
|
2833
|
-
playLabel?: string;
|
|
2834
2859
|
}
|
|
2835
2860
|
/**
|
|
2836
2861
|
* Photo, segmented switch and a sample request card that change together (Figma component set
|
|
2837
2862
|
* "Travel Requests / Hero switcher"). The switch is a real tab list — click or use the arrow keys — and autoplay
|
|
2838
|
-
*
|
|
2839
|
-
* for users who prefer reduced motion.
|
|
2863
|
+
* is an endless loop: it carries on from the segment the user picked, holds on hover and keyboard focus, off-screen
|
|
2864
|
+
* and in hidden tabs, and never starts for users who prefer reduced motion.
|
|
2840
2865
|
*/
|
|
2841
2866
|
export declare const HeroSwitcher: import("react").ForwardRefExoticComponent<HeroSwitcherProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
2842
2867
|
export interface HeroOrbitItem {
|
|
@@ -2944,22 +2969,18 @@ export interface HeroMapProps extends Omit<HTMLAttributes<HTMLDivElement>, "onCh
|
|
|
2944
2969
|
defaultActiveIndex?: number;
|
|
2945
2970
|
/** Called with the new index when autoplay advances. */
|
|
2946
2971
|
onActiveIndexChange?: (index: number) => void;
|
|
2947
|
-
/** Moves on to the next destination on its own. */
|
|
2972
|
+
/** Moves on to the next destination on its own, in an endless loop. */
|
|
2948
2973
|
autoPlay?: boolean;
|
|
2949
2974
|
/** Milliseconds each destination stays highlighted (Figma prototype: 2.2s delay + 0.5s transition). */
|
|
2950
2975
|
interval?: number;
|
|
2951
|
-
/** Holds autoplay from outside (the highlighted destination stays as it is). */
|
|
2976
|
+
/** Holds autoplay from outside (the highlighted destination stays as it is); it carries on once this is `false` again. */
|
|
2952
2977
|
paused?: boolean;
|
|
2953
|
-
/** Accessible name of the pause button shown while autoplay runs. */
|
|
2954
|
-
pauseLabel?: string;
|
|
2955
|
-
/** Accessible name of the same button once autoplay is stopped. */
|
|
2956
|
-
playLabel?: string;
|
|
2957
2978
|
}
|
|
2958
2979
|
/**
|
|
2959
2980
|
* Dotted map with a route from the origin to one sample request at a time (Figma component set "Join / Hero map").
|
|
2960
2981
|
* Every destination is a list item with its tag as real text, so the content does not depend on the animation;
|
|
2961
|
-
* autoplay
|
|
2962
|
-
*
|
|
2982
|
+
* autoplay loops endlessly, holds on hover, off-screen and in hidden tabs, and does not start for users who prefer
|
|
2983
|
+
* reduced motion.
|
|
2963
2984
|
*/
|
|
2964
2985
|
export declare const HeroMap: import("react").ForwardRefExoticComponent<HeroMapProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
2965
2986
|
export interface HowItWorksStepItem {
|
|
@@ -2983,18 +3004,14 @@ export interface HowItWorksStepsProps extends Omit<HTMLAttributes<HTMLDivElement
|
|
|
2983
3004
|
defaultValue?: string;
|
|
2984
3005
|
/** Called with the `value` of the step that became current, by a click or by auto-play. */
|
|
2985
3006
|
onValueChange?: (value: string) => void;
|
|
2986
|
-
/** Advances to the next step on a timer
|
|
3007
|
+
/** Advances to the next step on a timer, in an endless loop (on by default); after the user picks a step it carries on from that step. */
|
|
2987
3008
|
autoPlay?: boolean;
|
|
2988
3009
|
/** Time a step rests once its 500ms transition has finished, in ms (Figma: 2200 — a new step every 2.7s). */
|
|
2989
3010
|
interval?: number;
|
|
2990
|
-
/** Holds auto-play without unmounting it (e.g. while a dialog is open). */
|
|
3011
|
+
/** Holds auto-play without unmounting it (e.g. while a dialog is open); it carries on once this is `false` again. */
|
|
2991
3012
|
paused?: boolean;
|
|
2992
3013
|
/** Accessible name of the list of steps, e.g. "How it works". */
|
|
2993
3014
|
label?: string;
|
|
2994
|
-
/** Accessible name of the pause button shown while auto-playing. Translate it in the app. */
|
|
2995
|
-
pauseLabel?: string;
|
|
2996
|
-
/** Accessible name of the same button once auto-play is paused. Translate it in the app. */
|
|
2997
|
-
playLabel?: string;
|
|
2998
3015
|
/** Width of the component in px below which the steps stack (the Figma mobile layout). Default: 136px per step plus the gaps, at least 480. */
|
|
2999
3016
|
collapseBelow?: number;
|
|
3000
3017
|
}
|
|
@@ -3007,8 +3024,9 @@ export declare const HowItWorksStepTag: import("react").ForwardRefExoticComponen
|
|
|
3007
3024
|
/**
|
|
3008
3025
|
* The request journey as a numbered rail over a row of step cards, one of which is current
|
|
3009
3026
|
* (Figma "How it works / Steps"; its "Step=1…7" variants are the `value`). Every card is a button that makes its step
|
|
3010
|
-
* current; with `autoPlay` the steps also advance on a timer
|
|
3011
|
-
*
|
|
3027
|
+
* current; with `autoPlay` the steps also advance on a timer in an endless loop, which holds while the pointer or
|
|
3028
|
+
* keyboard focus is inside and carries on from the step the user picked. Below `collapseBelow` the cards stack and the
|
|
3029
|
+
* rail is dropped (Figma "Mobile / How it works / Steps").
|
|
3012
3030
|
*/
|
|
3013
3031
|
export declare const HowItWorksSteps: import("react").ForwardRefExoticComponent<HowItWorksStepsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3014
3032
|
export type ExampleRequestsHeadingLevel = 2 | 3 | 4 | 5 | 6;
|
|
@@ -3145,16 +3163,12 @@ export interface PackageAnimationProps extends Omit<HTMLAttributes<HTMLDivElemen
|
|
|
3145
3163
|
defaultValue?: number;
|
|
3146
3164
|
/** Called with the index of the card that comes to the front (click, keyboard focus or autoplay). */
|
|
3147
3165
|
onValueChange?: (value: number) => void;
|
|
3148
|
-
/** Swaps the cards by itself (the Figma prototype swaps on click only).
|
|
3166
|
+
/** Swaps the cards by itself, in an endless loop (on by default; the Figma prototype swaps on click only). Holds for hover, keyboard focus, a hidden tab, an off-screen stack and reduced motion. */
|
|
3149
3167
|
autoPlay?: boolean;
|
|
3150
3168
|
/** Time a card stays in front before the next swap, in ms. */
|
|
3151
3169
|
interval?: number;
|
|
3152
|
-
/** Holds the autoplay
|
|
3170
|
+
/** Holds the autoplay from outside; it carries on once this is `false` again. */
|
|
3153
3171
|
paused?: boolean;
|
|
3154
|
-
/** Name of the pause button shown with `autoPlay` — translate it. */
|
|
3155
|
-
pauseLabel?: string;
|
|
3156
|
-
/** Name of the play button shown with `autoPlay` — translate it. */
|
|
3157
|
-
playLabel?: string;
|
|
3158
3172
|
}
|
|
3159
3173
|
/**
|
|
3160
3174
|
* Two overlapping, tilted package cards that swap places (Figma component set "Package animation").
|
|
@@ -3173,15 +3187,15 @@ export interface PartnerCarouselProps extends Omit<HTMLAttributes<HTMLElement>,
|
|
|
3173
3187
|
defaultValue?: number;
|
|
3174
3188
|
/** Called with the new index when the carousel moves (swipe, dots or autoplay). */
|
|
3175
3189
|
onValueChange?: (value: number) => void;
|
|
3176
|
-
/** Moves one slide at a time by itself.
|
|
3190
|
+
/** Moves one slide at a time by itself, in an endless loop. Holds for hover, keyboard focus, a hidden tab, an off-screen carousel and reduced motion. */
|
|
3177
3191
|
autoPlay?: boolean;
|
|
3178
3192
|
/** Time a slide rests before the next move, in ms (Figma: 3000). */
|
|
3179
3193
|
interval?: number;
|
|
3180
|
-
/** Holds the autoplay
|
|
3194
|
+
/** Holds the autoplay from outside; it carries on once this is `false` again. */
|
|
3181
3195
|
paused?: boolean;
|
|
3182
3196
|
/** After the last slide the first one follows seamlessly, as in the Figma prototype. Needs more than two slides. */
|
|
3183
3197
|
loop?: boolean;
|
|
3184
|
-
/** Shows the dots
|
|
3198
|
+
/** Shows the dots. */
|
|
3185
3199
|
controls?: boolean;
|
|
3186
3200
|
/** Accessible name of a slide — translate it. */
|
|
3187
3201
|
getSlideLabel?: (index: number, count: number) => string;
|
|
@@ -3189,10 +3203,6 @@ export interface PartnerCarouselProps extends Omit<HTMLAttributes<HTMLElement>,
|
|
|
3189
3203
|
getPageLabel?: (page: number, pageCount: number) => string;
|
|
3190
3204
|
/** Name of the dots navigation — translate it. */
|
|
3191
3205
|
paginationLabel?: string;
|
|
3192
|
-
/** Name of the pause button — translate it. */
|
|
3193
|
-
pauseLabel?: string;
|
|
3194
|
-
/** Name of the play button — translate it. */
|
|
3195
|
-
playLabel?: string;
|
|
3196
3206
|
}
|
|
3197
3207
|
/**
|
|
3198
3208
|
* Carousel of partner cards (Figma component set "Home / Partner carousel"): a native scroll-snap track — so touch
|
|
@@ -3266,41 +3276,38 @@ export interface CtaSentenceExample {
|
|
|
3266
3276
|
key?: string;
|
|
3267
3277
|
/** Words and pills in reading order, e.g. `["I’d like", { value: "a Flight" }, "to", { value: "Paris" }]`. */
|
|
3268
3278
|
parts: CtaSentencePart[];
|
|
3269
|
-
/**
|
|
3279
|
+
/**
|
|
3280
|
+
* Insets the sentence by `spacing/3xl` on both sides so its lines break evenly. When the examples share one sentence
|
|
3281
|
+
* (see `CtaSentence`), the first example decides for all of them.
|
|
3282
|
+
*/
|
|
3270
3283
|
padded?: boolean;
|
|
3271
3284
|
}
|
|
3272
3285
|
export interface CtaSentenceProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
3273
|
-
/** The example
|
|
3286
|
+
/** The example requests the sentence cycles through. Any number. */
|
|
3274
3287
|
examples: CtaSentenceExample[];
|
|
3275
3288
|
/** Index (0-based) of the example shown — Figma "Example". Makes the component controlled. */
|
|
3276
3289
|
value?: number;
|
|
3277
3290
|
/** Example shown first when uncontrolled. */
|
|
3278
3291
|
defaultValue?: number;
|
|
3279
|
-
/** Called with the new index
|
|
3292
|
+
/** Called with the new index each time the sentence moves on to the next example. */
|
|
3280
3293
|
onValueChange?: (value: number) => void;
|
|
3281
|
-
/** Cycles through the examples by itself.
|
|
3294
|
+
/** Cycles through the examples by itself, endlessly. Holds for hover, focus, a hidden tab, an off-screen sentence and reduced motion. */
|
|
3282
3295
|
autoPlay?: boolean;
|
|
3283
3296
|
/** Time an example rests before the next one, in ms (Figma: 2600). */
|
|
3284
3297
|
interval?: number;
|
|
3285
|
-
/** Holds the autoplay
|
|
3298
|
+
/** Holds the autoplay. */
|
|
3286
3299
|
paused?: boolean;
|
|
3287
|
-
/** Shows the dots that pick an example and, with `autoPlay`, the pause / play button. */
|
|
3288
|
-
controls?: boolean;
|
|
3289
3300
|
/** Makes the pills buttons and is called with the example and part index of the pressed one, e.g. to open the request form. */
|
|
3290
3301
|
onPillClick?: (exampleIndex: number, partIndex: number) => void;
|
|
3291
|
-
/** Accessible name of a dot — translate it. */
|
|
3292
|
-
getPageLabel?: (page: number, pageCount: number) => string;
|
|
3293
|
-
/** Name of the dots navigation — translate it. */
|
|
3294
|
-
paginationLabel?: string;
|
|
3295
|
-
/** Name of the pause button — translate it. */
|
|
3296
|
-
pauseLabel?: string;
|
|
3297
|
-
/** Name of the play button — translate it. */
|
|
3298
|
-
playLabel?: string;
|
|
3299
3302
|
}
|
|
3300
3303
|
/**
|
|
3301
|
-
* A request written as
|
|
3302
|
-
*
|
|
3303
|
-
*
|
|
3304
|
+
* A request written as one sentence whose values are pills that look like selects (Figma component set
|
|
3305
|
+
* "How it works / CTA sentence"). The sentence stays where it is; every few seconds the values in the pills roll over
|
|
3306
|
+
* to the next example, one pill after another, endlessly. Each pill is as wide as its longest value, so nothing around
|
|
3307
|
+
* it moves. Only the values on show are exposed to assistive technology.
|
|
3308
|
+
*
|
|
3309
|
+
* The examples are expected to be the same sentence with different values (the same words and pills in the same
|
|
3310
|
+
* order). Examples built differently are shown one whole sentence at a time, fading from one to the next.
|
|
3304
3311
|
*/
|
|
3305
3312
|
export declare const CtaSentence: import("react").ForwardRefExoticComponent<CtaSentenceProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3306
3313
|
export interface SheetProps extends Omit<DialogProps, "size" | "placement" | "mobilePlacement" | "eyebrow" | "role"> {
|
package/dist/index.d.ts
CHANGED
|
@@ -223,6 +223,35 @@ export interface LogoProps extends Omit<SVGProps<SVGSVGElement>, "ref" | "childr
|
|
|
223
223
|
title?: string;
|
|
224
224
|
}
|
|
225
225
|
export declare const Logo: import("react").ForwardRefExoticComponent<LogoProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
226
|
+
type LogoMotionMode = "once" | "loop";
|
|
227
|
+
/** `once`: the intro — the plane draws the logo, lands and the logo stays. `loop`: the loader — it flies out, the line rewinds and it starts again. */
|
|
228
|
+
export type LogoAnimationMode = LogoMotionMode;
|
|
229
|
+
export interface LogoAnimationProps extends Omit<SVGProps<SVGSVGElement>, "ref" | "children" | "width" | "height" | "viewBox" | "mode"> {
|
|
230
|
+
/** `once` (intro, holds the final logo) or `loop` (loader, repeats forever). Both play by themselves. */
|
|
231
|
+
mode?: LogoAnimationMode;
|
|
232
|
+
/** Width in px. The height follows the 40 × 52 mark: `size × 1.3`. */
|
|
233
|
+
size?: number;
|
|
234
|
+
/** Seconds to wait before the dot appears. */
|
|
235
|
+
delay?: number;
|
|
236
|
+
/**
|
|
237
|
+
* Accessible name. Defaults to "TravelMatch" for `once` and "Loading" for `loop`; pass a translated string, or an
|
|
238
|
+
* empty string when the animation is decorative (it is then hidden from assistive technology).
|
|
239
|
+
*/
|
|
240
|
+
title?: string;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* The TravelMatch mark drawn by its paper plane: the dot appears, the plane takes off from it, draws the pin and grows
|
|
244
|
+
* the lower-left branch, then lands in the exact logo pose (the `Logo` mark artwork). `once` holds the logo; `loop`
|
|
245
|
+
* flies the plane out with a few puffs while the line rewinds into the dot, and starts again.
|
|
246
|
+
*
|
|
247
|
+
* - Plays by itself — there is no play or pause control. Frames stop while the tab is hidden or the logo is
|
|
248
|
+
* off-screen and pick up where they were, so an intro below the fold plays when it is scrolled into view.
|
|
249
|
+
* - `prefers-reduced-motion`: both modes show the still logo straight away (CSS does this from the first paint, before
|
|
250
|
+
* hydration). The loader keeps its "Loading" name for assistive technology.
|
|
251
|
+
* - Server rendering: the markup is the first frame (an empty, size-reserving box for `once`; the dot for `loop`), so
|
|
252
|
+
* hydration continues from it without a flash. Paths are measured and frames run in effects only.
|
|
253
|
+
*/
|
|
254
|
+
export declare const LogoAnimation: import("react").ForwardRefExoticComponent<LogoAnimationProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
226
255
|
export interface AgencyLogoProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
227
256
|
/** Logo image URL. Without it, or when it fails to load, the agency's initials are shown instead. */
|
|
228
257
|
src?: string | null;
|
|
@@ -2817,26 +2846,22 @@ export interface HeroSwitcherProps extends Omit<HTMLAttributes<HTMLDivElement>,
|
|
|
2817
2846
|
defaultValue?: string;
|
|
2818
2847
|
/** Called with the new value when the user picks a segment or autoplay advances. */
|
|
2819
2848
|
onValueChange?: (value: string) => void;
|
|
2820
|
-
/** Advances to the next item on its own
|
|
2849
|
+
/** Advances to the next item on its own, in an endless loop; after the user picks a segment it carries on from that item. */
|
|
2821
2850
|
autoPlay?: boolean;
|
|
2822
2851
|
/** Milliseconds each item stays before autoplay moves on (Figma prototype: 3s delay + 0.6s transition). */
|
|
2823
2852
|
interval?: number;
|
|
2824
|
-
/** Holds autoplay from outside (the selected item stays as it is). */
|
|
2853
|
+
/** Holds autoplay from outside (the selected item stays as it is); it carries on once this is `false` again. */
|
|
2825
2854
|
paused?: boolean;
|
|
2826
2855
|
/** Accessible name of the switch (tab list). */
|
|
2827
2856
|
"aria-label"?: string;
|
|
2828
2857
|
/** Heading level of the card title; pick the one that fits the page outline. */
|
|
2829
2858
|
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
2830
|
-
/** Accessible name of the pause button shown while autoplay runs. */
|
|
2831
|
-
pauseLabel?: string;
|
|
2832
|
-
/** Accessible name of the same button once autoplay is stopped. */
|
|
2833
|
-
playLabel?: string;
|
|
2834
2859
|
}
|
|
2835
2860
|
/**
|
|
2836
2861
|
* Photo, segmented switch and a sample request card that change together (Figma component set
|
|
2837
2862
|
* "Travel Requests / Hero switcher"). The switch is a real tab list — click or use the arrow keys — and autoplay
|
|
2838
|
-
*
|
|
2839
|
-
* for users who prefer reduced motion.
|
|
2863
|
+
* is an endless loop: it carries on from the segment the user picked, holds on hover and keyboard focus, off-screen
|
|
2864
|
+
* and in hidden tabs, and never starts for users who prefer reduced motion.
|
|
2840
2865
|
*/
|
|
2841
2866
|
export declare const HeroSwitcher: import("react").ForwardRefExoticComponent<HeroSwitcherProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
2842
2867
|
export interface HeroOrbitItem {
|
|
@@ -2944,22 +2969,18 @@ export interface HeroMapProps extends Omit<HTMLAttributes<HTMLDivElement>, "onCh
|
|
|
2944
2969
|
defaultActiveIndex?: number;
|
|
2945
2970
|
/** Called with the new index when autoplay advances. */
|
|
2946
2971
|
onActiveIndexChange?: (index: number) => void;
|
|
2947
|
-
/** Moves on to the next destination on its own. */
|
|
2972
|
+
/** Moves on to the next destination on its own, in an endless loop. */
|
|
2948
2973
|
autoPlay?: boolean;
|
|
2949
2974
|
/** Milliseconds each destination stays highlighted (Figma prototype: 2.2s delay + 0.5s transition). */
|
|
2950
2975
|
interval?: number;
|
|
2951
|
-
/** Holds autoplay from outside (the highlighted destination stays as it is). */
|
|
2976
|
+
/** Holds autoplay from outside (the highlighted destination stays as it is); it carries on once this is `false` again. */
|
|
2952
2977
|
paused?: boolean;
|
|
2953
|
-
/** Accessible name of the pause button shown while autoplay runs. */
|
|
2954
|
-
pauseLabel?: string;
|
|
2955
|
-
/** Accessible name of the same button once autoplay is stopped. */
|
|
2956
|
-
playLabel?: string;
|
|
2957
2978
|
}
|
|
2958
2979
|
/**
|
|
2959
2980
|
* Dotted map with a route from the origin to one sample request at a time (Figma component set "Join / Hero map").
|
|
2960
2981
|
* Every destination is a list item with its tag as real text, so the content does not depend on the animation;
|
|
2961
|
-
* autoplay
|
|
2962
|
-
*
|
|
2982
|
+
* autoplay loops endlessly, holds on hover, off-screen and in hidden tabs, and does not start for users who prefer
|
|
2983
|
+
* reduced motion.
|
|
2963
2984
|
*/
|
|
2964
2985
|
export declare const HeroMap: import("react").ForwardRefExoticComponent<HeroMapProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
2965
2986
|
export interface HowItWorksStepItem {
|
|
@@ -2983,18 +3004,14 @@ export interface HowItWorksStepsProps extends Omit<HTMLAttributes<HTMLDivElement
|
|
|
2983
3004
|
defaultValue?: string;
|
|
2984
3005
|
/** Called with the `value` of the step that became current, by a click or by auto-play. */
|
|
2985
3006
|
onValueChange?: (value: string) => void;
|
|
2986
|
-
/** Advances to the next step on a timer
|
|
3007
|
+
/** Advances to the next step on a timer, in an endless loop (on by default); after the user picks a step it carries on from that step. */
|
|
2987
3008
|
autoPlay?: boolean;
|
|
2988
3009
|
/** Time a step rests once its 500ms transition has finished, in ms (Figma: 2200 — a new step every 2.7s). */
|
|
2989
3010
|
interval?: number;
|
|
2990
|
-
/** Holds auto-play without unmounting it (e.g. while a dialog is open). */
|
|
3011
|
+
/** Holds auto-play without unmounting it (e.g. while a dialog is open); it carries on once this is `false` again. */
|
|
2991
3012
|
paused?: boolean;
|
|
2992
3013
|
/** Accessible name of the list of steps, e.g. "How it works". */
|
|
2993
3014
|
label?: string;
|
|
2994
|
-
/** Accessible name of the pause button shown while auto-playing. Translate it in the app. */
|
|
2995
|
-
pauseLabel?: string;
|
|
2996
|
-
/** Accessible name of the same button once auto-play is paused. Translate it in the app. */
|
|
2997
|
-
playLabel?: string;
|
|
2998
3015
|
/** Width of the component in px below which the steps stack (the Figma mobile layout). Default: 136px per step plus the gaps, at least 480. */
|
|
2999
3016
|
collapseBelow?: number;
|
|
3000
3017
|
}
|
|
@@ -3007,8 +3024,9 @@ export declare const HowItWorksStepTag: import("react").ForwardRefExoticComponen
|
|
|
3007
3024
|
/**
|
|
3008
3025
|
* The request journey as a numbered rail over a row of step cards, one of which is current
|
|
3009
3026
|
* (Figma "How it works / Steps"; its "Step=1…7" variants are the `value`). Every card is a button that makes its step
|
|
3010
|
-
* current; with `autoPlay` the steps also advance on a timer
|
|
3011
|
-
*
|
|
3027
|
+
* current; with `autoPlay` the steps also advance on a timer in an endless loop, which holds while the pointer or
|
|
3028
|
+
* keyboard focus is inside and carries on from the step the user picked. Below `collapseBelow` the cards stack and the
|
|
3029
|
+
* rail is dropped (Figma "Mobile / How it works / Steps").
|
|
3012
3030
|
*/
|
|
3013
3031
|
export declare const HowItWorksSteps: import("react").ForwardRefExoticComponent<HowItWorksStepsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3014
3032
|
export type ExampleRequestsHeadingLevel = 2 | 3 | 4 | 5 | 6;
|
|
@@ -3145,16 +3163,12 @@ export interface PackageAnimationProps extends Omit<HTMLAttributes<HTMLDivElemen
|
|
|
3145
3163
|
defaultValue?: number;
|
|
3146
3164
|
/** Called with the index of the card that comes to the front (click, keyboard focus or autoplay). */
|
|
3147
3165
|
onValueChange?: (value: number) => void;
|
|
3148
|
-
/** Swaps the cards by itself (the Figma prototype swaps on click only).
|
|
3166
|
+
/** Swaps the cards by itself, in an endless loop (on by default; the Figma prototype swaps on click only). Holds for hover, keyboard focus, a hidden tab, an off-screen stack and reduced motion. */
|
|
3149
3167
|
autoPlay?: boolean;
|
|
3150
3168
|
/** Time a card stays in front before the next swap, in ms. */
|
|
3151
3169
|
interval?: number;
|
|
3152
|
-
/** Holds the autoplay
|
|
3170
|
+
/** Holds the autoplay from outside; it carries on once this is `false` again. */
|
|
3153
3171
|
paused?: boolean;
|
|
3154
|
-
/** Name of the pause button shown with `autoPlay` — translate it. */
|
|
3155
|
-
pauseLabel?: string;
|
|
3156
|
-
/** Name of the play button shown with `autoPlay` — translate it. */
|
|
3157
|
-
playLabel?: string;
|
|
3158
3172
|
}
|
|
3159
3173
|
/**
|
|
3160
3174
|
* Two overlapping, tilted package cards that swap places (Figma component set "Package animation").
|
|
@@ -3173,15 +3187,15 @@ export interface PartnerCarouselProps extends Omit<HTMLAttributes<HTMLElement>,
|
|
|
3173
3187
|
defaultValue?: number;
|
|
3174
3188
|
/** Called with the new index when the carousel moves (swipe, dots or autoplay). */
|
|
3175
3189
|
onValueChange?: (value: number) => void;
|
|
3176
|
-
/** Moves one slide at a time by itself.
|
|
3190
|
+
/** Moves one slide at a time by itself, in an endless loop. Holds for hover, keyboard focus, a hidden tab, an off-screen carousel and reduced motion. */
|
|
3177
3191
|
autoPlay?: boolean;
|
|
3178
3192
|
/** Time a slide rests before the next move, in ms (Figma: 3000). */
|
|
3179
3193
|
interval?: number;
|
|
3180
|
-
/** Holds the autoplay
|
|
3194
|
+
/** Holds the autoplay from outside; it carries on once this is `false` again. */
|
|
3181
3195
|
paused?: boolean;
|
|
3182
3196
|
/** After the last slide the first one follows seamlessly, as in the Figma prototype. Needs more than two slides. */
|
|
3183
3197
|
loop?: boolean;
|
|
3184
|
-
/** Shows the dots
|
|
3198
|
+
/** Shows the dots. */
|
|
3185
3199
|
controls?: boolean;
|
|
3186
3200
|
/** Accessible name of a slide — translate it. */
|
|
3187
3201
|
getSlideLabel?: (index: number, count: number) => string;
|
|
@@ -3189,10 +3203,6 @@ export interface PartnerCarouselProps extends Omit<HTMLAttributes<HTMLElement>,
|
|
|
3189
3203
|
getPageLabel?: (page: number, pageCount: number) => string;
|
|
3190
3204
|
/** Name of the dots navigation — translate it. */
|
|
3191
3205
|
paginationLabel?: string;
|
|
3192
|
-
/** Name of the pause button — translate it. */
|
|
3193
|
-
pauseLabel?: string;
|
|
3194
|
-
/** Name of the play button — translate it. */
|
|
3195
|
-
playLabel?: string;
|
|
3196
3206
|
}
|
|
3197
3207
|
/**
|
|
3198
3208
|
* Carousel of partner cards (Figma component set "Home / Partner carousel"): a native scroll-snap track — so touch
|
|
@@ -3266,41 +3276,38 @@ export interface CtaSentenceExample {
|
|
|
3266
3276
|
key?: string;
|
|
3267
3277
|
/** Words and pills in reading order, e.g. `["I’d like", { value: "a Flight" }, "to", { value: "Paris" }]`. */
|
|
3268
3278
|
parts: CtaSentencePart[];
|
|
3269
|
-
/**
|
|
3279
|
+
/**
|
|
3280
|
+
* Insets the sentence by `spacing/3xl` on both sides so its lines break evenly. When the examples share one sentence
|
|
3281
|
+
* (see `CtaSentence`), the first example decides for all of them.
|
|
3282
|
+
*/
|
|
3270
3283
|
padded?: boolean;
|
|
3271
3284
|
}
|
|
3272
3285
|
export interface CtaSentenceProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
3273
|
-
/** The example
|
|
3286
|
+
/** The example requests the sentence cycles through. Any number. */
|
|
3274
3287
|
examples: CtaSentenceExample[];
|
|
3275
3288
|
/** Index (0-based) of the example shown — Figma "Example". Makes the component controlled. */
|
|
3276
3289
|
value?: number;
|
|
3277
3290
|
/** Example shown first when uncontrolled. */
|
|
3278
3291
|
defaultValue?: number;
|
|
3279
|
-
/** Called with the new index
|
|
3292
|
+
/** Called with the new index each time the sentence moves on to the next example. */
|
|
3280
3293
|
onValueChange?: (value: number) => void;
|
|
3281
|
-
/** Cycles through the examples by itself.
|
|
3294
|
+
/** Cycles through the examples by itself, endlessly. Holds for hover, focus, a hidden tab, an off-screen sentence and reduced motion. */
|
|
3282
3295
|
autoPlay?: boolean;
|
|
3283
3296
|
/** Time an example rests before the next one, in ms (Figma: 2600). */
|
|
3284
3297
|
interval?: number;
|
|
3285
|
-
/** Holds the autoplay
|
|
3298
|
+
/** Holds the autoplay. */
|
|
3286
3299
|
paused?: boolean;
|
|
3287
|
-
/** Shows the dots that pick an example and, with `autoPlay`, the pause / play button. */
|
|
3288
|
-
controls?: boolean;
|
|
3289
3300
|
/** Makes the pills buttons and is called with the example and part index of the pressed one, e.g. to open the request form. */
|
|
3290
3301
|
onPillClick?: (exampleIndex: number, partIndex: number) => void;
|
|
3291
|
-
/** Accessible name of a dot — translate it. */
|
|
3292
|
-
getPageLabel?: (page: number, pageCount: number) => string;
|
|
3293
|
-
/** Name of the dots navigation — translate it. */
|
|
3294
|
-
paginationLabel?: string;
|
|
3295
|
-
/** Name of the pause button — translate it. */
|
|
3296
|
-
pauseLabel?: string;
|
|
3297
|
-
/** Name of the play button — translate it. */
|
|
3298
|
-
playLabel?: string;
|
|
3299
3302
|
}
|
|
3300
3303
|
/**
|
|
3301
|
-
* A request written as
|
|
3302
|
-
*
|
|
3303
|
-
*
|
|
3304
|
+
* A request written as one sentence whose values are pills that look like selects (Figma component set
|
|
3305
|
+
* "How it works / CTA sentence"). The sentence stays where it is; every few seconds the values in the pills roll over
|
|
3306
|
+
* to the next example, one pill after another, endlessly. Each pill is as wide as its longest value, so nothing around
|
|
3307
|
+
* it moves. Only the values on show are exposed to assistive technology.
|
|
3308
|
+
*
|
|
3309
|
+
* The examples are expected to be the same sentence with different values (the same words and pills in the same
|
|
3310
|
+
* order). Examples built differently are shown one whole sentence at a time, fading from one to the next.
|
|
3304
3311
|
*/
|
|
3305
3312
|
export declare const CtaSentence: import("react").ForwardRefExoticComponent<CtaSentenceProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3306
3313
|
export interface SheetProps extends Omit<DialogProps, "size" | "placement" | "mobilePlacement" | "eyebrow" | "role"> {
|