@kvdbil/components 3.3.3 → 3.3.5-2
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/cjs/ColorCard.js +48 -0
- package/cjs/ElevationCard.js +35 -0
- package/cjs/Interfaces.js +2 -0
- package/cjs/Types.js +2 -0
- package/cjs/components/Accordion/index.js +124 -0
- package/cjs/components/Badge/index.js +78 -0
- package/cjs/components/Button/index.js +170 -0
- package/cjs/components/Card/index.js +28 -0
- package/cjs/components/CheckBox/index.js +109 -0
- package/cjs/components/Chip/index.js +99 -0
- package/cjs/components/DayPicker/DayPickerNavBar.js +60 -0
- package/cjs/components/DayPicker/index.js +76 -0
- package/cjs/components/DayPicker/localeUtils.js +60 -0
- package/cjs/components/Dialog/index.js +88 -0
- package/cjs/components/ErrorMessage/index.js +31 -0
- package/cjs/components/FieldLabel.js +59 -0
- package/cjs/components/Header/Hamburger.js +55 -0
- package/cjs/components/Header/Link.js +53 -0
- package/cjs/components/Header/index.js +118 -0
- package/cjs/components/Hero/index.js +65 -0
- package/cjs/components/Icon/index.js +115 -0
- package/cjs/components/IconButton.js +130 -0
- package/cjs/components/Icons/Arrow.js +16 -0
- package/cjs/components/Icons/CheckCircle.js +16 -0
- package/cjs/components/Icons/CheckIcon.js +16 -0
- package/cjs/components/Icons/Close.js +16 -0
- package/cjs/components/Icons/ErrorCircle.js +16 -0
- package/cjs/components/Icons/InfoCircle.js +16 -0
- package/cjs/components/InlineStepper/Step.js +116 -0
- package/cjs/components/InlineStepper/StepCircle.js +93 -0
- package/cjs/components/InlineStepper/index.js +51 -0
- package/cjs/components/ListItem/Bacon.js +16 -0
- package/cjs/components/ListItem/index.js +56 -0
- package/cjs/components/Logo/LogoEn.js +35 -0
- package/cjs/components/Logo/LogoSv.js +35 -0
- package/cjs/components/Logo/index.js +32 -0
- package/cjs/components/MenuItem/index.js +99 -0
- package/cjs/components/Modal/index.js +137 -0
- package/cjs/components/NotificationButton/index.js +39 -0
- package/cjs/components/OffCanvas/Overlay.js +70 -0
- package/cjs/components/OffCanvas/index.js +133 -0
- package/cjs/components/OffCanvas/useClickOutside.js +21 -0
- package/cjs/components/RadioButton/index.js +148 -0
- package/cjs/components/Range/index.js +82 -0
- package/cjs/components/Select/components/test-icon.js +16 -0
- package/cjs/components/Select/index.js +225 -0
- package/cjs/components/Snackbar/index.js +155 -0
- package/cjs/components/Spinner/index.js +68 -0
- package/cjs/components/Stepper/index.js +60 -0
- package/cjs/components/StepperAccordion/index.js +133 -0
- package/cjs/components/Tabs/index.js +71 -0
- package/cjs/components/TextArea/index.js +120 -0
- package/cjs/components/Textfield/index.js +130 -0
- package/cjs/components/TimePicker/index.js +49 -0
- package/cjs/components/TimePicker/testHelper.js +16 -0
- package/cjs/components/Toggle/index.js +83 -0
- package/cjs/icons/components/AccountCreateIcon.js +48 -0
- package/cjs/icons/components/AccountIcon.js +44 -0
- package/cjs/icons/components/AccountLoginIcon.js +50 -0
- package/cjs/icons/components/ArrowDownIcon.js +44 -0
- package/cjs/icons/components/ArrowLeftIcon.js +42 -0
- package/cjs/icons/components/ArrowLeftSharpIcon.js +44 -0
- package/cjs/icons/components/ArrowLeftSmallIcon.js +44 -0
- package/cjs/icons/components/ArrowLong.js +45 -0
- package/cjs/icons/components/ArrowRestartIcon.js +44 -0
- package/cjs/icons/components/ArrowRightIcon.js +42 -0
- package/cjs/icons/components/ArrowRightSharpIcon.js +44 -0
- package/cjs/icons/components/ArrowUpIcon.js +44 -0
- package/cjs/icons/components/AuctionIcon.js +42 -0
- package/cjs/icons/components/BackArrowIcon.js +42 -0
- package/cjs/icons/components/Baseline360Icon.js +45 -0
- package/cjs/icons/components/BellIcon.js +42 -0
- package/cjs/icons/components/BidIcon.js +42 -0
- package/cjs/icons/components/BidKrIcon.js +48 -0
- package/cjs/icons/components/BreaksIcon.js +42 -0
- package/cjs/icons/components/BuyCarIcon.js +42 -0
- package/cjs/icons/components/CabIcon.js +44 -0
- package/cjs/icons/components/CalendarIcon.js +51 -0
- package/cjs/icons/components/CameraIcon.js +42 -0
- package/cjs/icons/components/Car360Icon.js +67 -0
- package/cjs/icons/components/CarFrontIcon.js +42 -0
- package/cjs/icons/components/CarSearchIcon.js +42 -0
- package/cjs/icons/components/CarSideIcon.js +42 -0
- package/cjs/icons/components/CarTiresIcon.js +42 -0
- package/cjs/icons/components/CaravanIcon.js +42 -0
- package/cjs/icons/components/CardViewIcon.js +68 -0
- package/cjs/icons/components/CarloanIcon.js +44 -0
- package/cjs/icons/components/CertifiedIcon.js +52 -0
- package/cjs/icons/components/ChatIcon.js +43 -0
- package/cjs/icons/components/CheckIcon.js +43 -0
- package/cjs/icons/components/CheckThinIcon.js +43 -0
- package/cjs/icons/components/CheckmarkFilledIcon.js +42 -0
- package/cjs/icons/components/CheckmarkIcon.js +42 -0
- package/cjs/icons/components/ClipboardFilledIcon.js +42 -0
- package/cjs/icons/components/ClipboardIcon.js +42 -0
- package/cjs/icons/components/ClockFilledIcon.js +44 -0
- package/cjs/icons/components/ClockIcon.js +43 -0
- package/cjs/icons/components/CloseIcon.js +43 -0
- package/cjs/icons/components/CloseThinIcon.js +44 -0
- package/cjs/icons/components/CoffeeIcon.js +43 -0
- package/cjs/icons/components/CombiIcon.js +44 -0
- package/cjs/icons/components/CommentCircleFilledIcon.js +48 -0
- package/cjs/icons/components/CommentCircleIconIcon.js +46 -0
- package/cjs/icons/components/CommentIcon.js +46 -0
- package/cjs/icons/components/ContactIcon.js +46 -0
- package/cjs/icons/components/CoupeIcon.js +44 -0
- package/cjs/icons/components/CreditCardIcon.js +43 -0
- package/cjs/icons/components/CrossCircleIcon.js +42 -0
- package/cjs/icons/components/CrownIcon.js +43 -0
- package/cjs/icons/components/DealmakerIcon.js +48 -0
- package/cjs/icons/components/DeliveryIcon.js +51 -0
- package/cjs/icons/components/DetailedSearchIcon.js +43 -0
- package/cjs/icons/components/EcoFriendlyIcon.js +46 -0
- package/cjs/icons/components/EditIcon.js +43 -0
- package/cjs/icons/components/EngineIcon.js +42 -0
- package/cjs/icons/components/EnglandFlagIcon.js +60 -0
- package/cjs/icons/components/EvaluationIcon.js +46 -0
- package/cjs/icons/components/ExaminationMarkFilledIcon.js +42 -0
- package/cjs/icons/components/ExaminationMarkIcon.js +42 -0
- package/cjs/icons/components/ExteriorIcon.js +42 -0
- package/cjs/icons/components/EyeIcon.js +48 -0
- package/cjs/icons/components/FacebookBtnIcon.js +42 -0
- package/cjs/icons/components/FacebookIcon.js +44 -0
- package/cjs/icons/components/FatalIcon.js +44 -0
- package/cjs/icons/components/FavouriteIcon.js +42 -0
- package/cjs/icons/components/FavouriteSolidIcon.js +42 -0
- package/cjs/icons/components/FilterIcon.js +44 -0
- package/cjs/icons/components/FinanceIcon.js +42 -0
- package/cjs/icons/components/FindCarIcon.js +42 -0
- package/cjs/icons/components/FixedMonthlyCostIcon.js +48 -0
- package/cjs/icons/components/FlagIcon.js +42 -0
- package/cjs/icons/components/FlexibilityIcon.js +48 -0
- package/cjs/icons/components/ForumLargeIcon.js +42 -0
- package/cjs/icons/components/ForumSmallIcon.js +42 -0
- package/cjs/icons/components/GavelIcon.js +44 -0
- package/cjs/icons/components/GearboxIcon.js +44 -0
- package/cjs/icons/components/GiftIcon.js +58 -0
- package/cjs/icons/components/GridViewIcon.js +42 -0
- package/cjs/icons/components/GroupIcon.js +79 -0
- package/cjs/icons/components/GuaranteeIcon.js +42 -0
- package/cjs/icons/components/GuaranteeLargeIcon.js +42 -0
- package/cjs/icons/components/GuaranteeSmallIcon.js +42 -0
- package/cjs/icons/components/HalfCombiIcon.js +44 -0
- package/cjs/icons/components/HamburgerIcon.js +42 -0
- package/cjs/icons/components/HandshakeIcon.js +42 -0
- package/cjs/icons/components/HelpingHandIcon.js +60 -0
- package/cjs/icons/components/IdIcon.js +45 -0
- package/cjs/icons/components/InformationIcon.js +42 -0
- package/cjs/icons/components/InstagramIcon.js +49 -0
- package/cjs/icons/components/InsuranceIcon.js +42 -0
- package/cjs/icons/components/InteriorIcon.js +44 -0
- package/cjs/icons/components/InteriorThinIcon.js +44 -0
- package/cjs/icons/components/InternationalIcon.js +50 -0
- package/cjs/icons/components/KvdTestIcon.js +42 -0
- package/cjs/icons/components/KvdVenueIcon.js +42 -0
- package/cjs/icons/components/LifebuoyIcon.js +42 -0
- package/cjs/icons/components/LiftTruckIcon.js +42 -0
- package/cjs/icons/components/LinkedInIcon.js +42 -0
- package/cjs/icons/components/ListViewIcon.js +64 -0
- package/cjs/icons/components/MailIcon.js +44 -0
- package/cjs/icons/components/MinibusIcon.js +44 -0
- package/cjs/icons/components/MinivanIcon.js +45 -0
- package/cjs/icons/components/MobileIcon.js +52 -0
- package/cjs/icons/components/MotorcycleIcon.js +74 -0
- package/cjs/icons/components/MrfLogoIcon.js +53 -0
- package/cjs/icons/components/NotFoundIcon.js +42 -0
- package/cjs/icons/components/OverbidIcon.js +44 -0
- package/cjs/icons/components/PdfIconIcon.js +42 -0
- package/cjs/icons/components/PhoneIcon.js +44 -0
- package/cjs/icons/components/PickUpIcon.js +42 -0
- package/cjs/icons/components/PinIcon.js +42 -0
- package/cjs/icons/components/PlayIcon.js +42 -0
- package/cjs/icons/components/Pricetag.js +51 -0
- package/cjs/icons/components/PricetagFilledKronaIcon.js +47 -0
- package/cjs/icons/components/PrivateCarIcon.js +42 -0
- package/cjs/icons/components/ProfileCircleIcon.js +42 -0
- package/cjs/icons/components/ProfileIcon.js +42 -0
- package/cjs/icons/components/RadioIcon.js +54 -0
- package/cjs/icons/components/ReclamationIcon.js +42 -0
- package/cjs/icons/components/ReleasingIcon.js +48 -0
- package/cjs/icons/components/RemoveFilterIcon.js +42 -0
- package/cjs/icons/components/ReservedPriceIcon.js +42 -0
- package/cjs/icons/components/ResultIcon.js +42 -0
- package/cjs/icons/components/SafePaymentIcon.js +42 -0
- package/cjs/icons/components/SaleTagIcon.js +42 -0
- package/cjs/icons/components/SearchCheckIcon.js +48 -0
- package/cjs/icons/components/SearchIcon.js +42 -0
- package/cjs/icons/components/SedanIcon.js +44 -0
- package/cjs/icons/components/SellCarIcon.js +42 -0
- package/cjs/icons/components/SellCarsIcon.js +42 -0
- package/cjs/icons/components/ServiceIcon.js +47 -0
- package/cjs/icons/components/ShareIcon.js +68 -0
- package/cjs/icons/components/ShieldIcon.js +42 -0
- package/cjs/icons/components/SignInIcon.js +42 -0
- package/cjs/icons/components/SignOutIcon.js +42 -0
- package/cjs/icons/components/SpeedMeterIcon.js +44 -0
- package/cjs/icons/components/StarCircleIcon.js +42 -0
- package/cjs/icons/components/StartIcon.js +50 -0
- package/cjs/icons/components/StoreIcon.js +42 -0
- package/cjs/icons/components/SuvIcon.js +44 -0
- package/cjs/icons/components/SwedenFlag.js +50 -0
- package/cjs/icons/components/TankIcon.js +52 -0
- package/cjs/icons/components/TireIcon.js +42 -0
- package/cjs/icons/components/TransportIcon.js +42 -0
- package/cjs/icons/components/TrashcanIcon.js +42 -0
- package/cjs/icons/components/TrophyIcon.js +42 -0
- package/cjs/icons/components/TruckIcon.js +42 -0
- package/cjs/icons/components/UmbrellaIcon.js +42 -0
- package/cjs/icons/components/ValuationIcon.js +42 -0
- package/cjs/icons/components/ValueIcon.js +47 -0
- package/cjs/icons/components/WarningIcon.js +42 -0
- package/cjs/icons/components/YoutubeIcon.js +42 -0
- package/cjs/icons/components/index.js +320 -0
- package/cjs/index.js +438 -0
- package/cjs/react-app-env.d.js +2 -0
- package/cjs/shared/constants.js +7 -0
- package/cjs/shared/helpers.js +28 -0
- package/cjs/shared/helpers.spec.js +36 -0
- package/cjs/shared/media-queries.js +41 -0
- package/cjs/styled.d.js +4 -0
- package/cjs/theme.js +125 -0
- package/cjs/typography/BodyText/index.js +66 -0
- package/cjs/typography/ButtonText/index.js +48 -0
- package/cjs/typography/Heading/index.js +92 -0
- package/cjs/utils/utils.js +33 -0
- package/esm/ColorCard.js +40 -0
- package/esm/ElevationCard.js +27 -0
- package/esm/Interfaces.js +1 -0
- package/esm/Types.js +1 -0
- package/esm/components/Accordion/index.js +115 -0
- package/esm/components/Badge/index.js +69 -0
- package/esm/components/Button/index.js +161 -0
- package/esm/components/Card/index.js +19 -0
- package/esm/components/CheckBox/index.js +100 -0
- package/esm/components/Chip/index.js +90 -0
- package/esm/components/DayPicker/DayPickerNavBar.js +52 -0
- package/esm/components/DayPicker/index.js +66 -0
- package/esm/components/DayPicker/localeUtils.js +52 -0
- package/esm/components/Dialog/index.js +79 -0
- package/esm/components/ErrorMessage/index.js +22 -0
- package/esm/components/FieldLabel.js +51 -0
- package/esm/components/Header/Hamburger.js +47 -0
- package/esm/components/Header/Link.js +45 -0
- package/esm/components/Header/index.js +109 -0
- package/esm/components/Hero/index.js +56 -0
- package/esm/components/Icon/index.js +107 -0
- package/esm/components/IconButton.js +122 -0
- package/esm/components/Icons/Arrow.js +12 -0
- package/esm/components/Icons/CheckCircle.js +12 -0
- package/esm/components/Icons/CheckIcon.js +12 -0
- package/esm/components/Icons/Close.js +12 -0
- package/esm/components/Icons/ErrorCircle.js +12 -0
- package/esm/components/Icons/InfoCircle.js +12 -0
- package/esm/components/InlineStepper/Step.js +107 -0
- package/esm/components/InlineStepper/StepCircle.js +85 -0
- package/esm/components/InlineStepper/index.js +43 -0
- package/esm/components/ListItem/Bacon.js +12 -0
- package/esm/components/ListItem/index.js +48 -0
- package/esm/components/Logo/LogoEn.js +31 -0
- package/esm/components/Logo/LogoSv.js +31 -0
- package/esm/components/Logo/index.js +23 -0
- package/esm/components/MenuItem/index.js +90 -0
- package/esm/components/Modal/index.js +128 -0
- package/esm/components/NotificationButton/index.js +31 -0
- package/esm/components/OffCanvas/Overlay.js +61 -0
- package/esm/components/OffCanvas/index.js +124 -0
- package/esm/components/OffCanvas/useClickOutside.js +17 -0
- package/esm/components/RadioButton/index.js +139 -0
- package/esm/components/Range/index.js +73 -0
- package/esm/components/Select/components/test-icon.js +12 -0
- package/esm/components/Select/index.js +215 -0
- package/esm/components/Snackbar/index.js +146 -0
- package/esm/components/Spinner/index.js +60 -0
- package/esm/components/Stepper/index.js +52 -0
- package/esm/components/StepperAccordion/index.js +124 -0
- package/esm/components/Tabs/index.js +61 -0
- package/esm/components/TextArea/index.js +111 -0
- package/esm/components/Textfield/index.js +121 -0
- package/esm/components/TimePicker/index.js +40 -0
- package/esm/components/TimePicker/testHelper.js +12 -0
- package/esm/components/Toggle/index.js +75 -0
- package/esm/icons/components/AccountCreateIcon.js +22 -0
- package/esm/icons/components/AccountIcon.js +18 -0
- package/esm/icons/components/AccountLoginIcon.js +24 -0
- package/esm/icons/components/ArrowDownIcon.js +18 -0
- package/esm/icons/components/ArrowLeftIcon.js +16 -0
- package/esm/icons/components/ArrowLeftSharpIcon.js +18 -0
- package/esm/icons/components/ArrowLeftSmallIcon.js +18 -0
- package/esm/icons/components/ArrowLong.js +19 -0
- package/esm/icons/components/ArrowRestartIcon.js +18 -0
- package/esm/icons/components/ArrowRightIcon.js +16 -0
- package/esm/icons/components/ArrowRightSharpIcon.js +18 -0
- package/esm/icons/components/ArrowUpIcon.js +18 -0
- package/esm/icons/components/AuctionIcon.js +16 -0
- package/esm/icons/components/BackArrowIcon.js +16 -0
- package/esm/icons/components/Baseline360Icon.js +19 -0
- package/esm/icons/components/BellIcon.js +16 -0
- package/esm/icons/components/BidIcon.js +16 -0
- package/esm/icons/components/BidKrIcon.js +22 -0
- package/esm/icons/components/BreaksIcon.js +16 -0
- package/esm/icons/components/BuyCarIcon.js +16 -0
- package/esm/icons/components/CabIcon.js +18 -0
- package/esm/icons/components/CalendarIcon.js +25 -0
- package/esm/icons/components/CameraIcon.js +16 -0
- package/esm/icons/components/Car360Icon.js +41 -0
- package/esm/icons/components/CarFrontIcon.js +16 -0
- package/esm/icons/components/CarSearchIcon.js +16 -0
- package/esm/icons/components/CarSideIcon.js +16 -0
- package/esm/icons/components/CarTiresIcon.js +16 -0
- package/esm/icons/components/CaravanIcon.js +16 -0
- package/esm/icons/components/CardViewIcon.js +42 -0
- package/esm/icons/components/CarloanIcon.js +18 -0
- package/esm/icons/components/CertifiedIcon.js +26 -0
- package/esm/icons/components/ChatIcon.js +17 -0
- package/esm/icons/components/CheckIcon.js +17 -0
- package/esm/icons/components/CheckThinIcon.js +17 -0
- package/esm/icons/components/CheckmarkFilledIcon.js +16 -0
- package/esm/icons/components/CheckmarkIcon.js +16 -0
- package/esm/icons/components/ClipboardFilledIcon.js +16 -0
- package/esm/icons/components/ClipboardIcon.js +16 -0
- package/esm/icons/components/ClockFilledIcon.js +18 -0
- package/esm/icons/components/ClockIcon.js +17 -0
- package/esm/icons/components/CloseIcon.js +17 -0
- package/esm/icons/components/CloseThinIcon.js +18 -0
- package/esm/icons/components/CoffeeIcon.js +17 -0
- package/esm/icons/components/CombiIcon.js +18 -0
- package/esm/icons/components/CommentCircleFilledIcon.js +22 -0
- package/esm/icons/components/CommentCircleIconIcon.js +20 -0
- package/esm/icons/components/CommentIcon.js +20 -0
- package/esm/icons/components/ContactIcon.js +20 -0
- package/esm/icons/components/CoupeIcon.js +18 -0
- package/esm/icons/components/CreditCardIcon.js +17 -0
- package/esm/icons/components/CrossCircleIcon.js +16 -0
- package/esm/icons/components/CrownIcon.js +17 -0
- package/esm/icons/components/DealmakerIcon.js +22 -0
- package/esm/icons/components/DeliveryIcon.js +25 -0
- package/esm/icons/components/DetailedSearchIcon.js +17 -0
- package/esm/icons/components/EcoFriendlyIcon.js +20 -0
- package/esm/icons/components/EditIcon.js +17 -0
- package/esm/icons/components/EngineIcon.js +16 -0
- package/esm/icons/components/EnglandFlagIcon.js +34 -0
- package/esm/icons/components/EvaluationIcon.js +20 -0
- package/esm/icons/components/ExaminationMarkFilledIcon.js +16 -0
- package/esm/icons/components/ExaminationMarkIcon.js +16 -0
- package/esm/icons/components/ExteriorIcon.js +16 -0
- package/esm/icons/components/EyeIcon.js +22 -0
- package/esm/icons/components/FacebookBtnIcon.js +16 -0
- package/esm/icons/components/FacebookIcon.js +18 -0
- package/esm/icons/components/FatalIcon.js +18 -0
- package/esm/icons/components/FavouriteIcon.js +16 -0
- package/esm/icons/components/FavouriteSolidIcon.js +16 -0
- package/esm/icons/components/FilterIcon.js +18 -0
- package/esm/icons/components/FinanceIcon.js +16 -0
- package/esm/icons/components/FindCarIcon.js +16 -0
- package/esm/icons/components/FixedMonthlyCostIcon.js +22 -0
- package/esm/icons/components/FlagIcon.js +16 -0
- package/esm/icons/components/FlexibilityIcon.js +22 -0
- package/esm/icons/components/ForumLargeIcon.js +16 -0
- package/esm/icons/components/ForumSmallIcon.js +16 -0
- package/esm/icons/components/GavelIcon.js +18 -0
- package/esm/icons/components/GearboxIcon.js +18 -0
- package/esm/icons/components/GiftIcon.js +32 -0
- package/esm/icons/components/GridViewIcon.js +16 -0
- package/esm/icons/components/GroupIcon.js +53 -0
- package/esm/icons/components/GuaranteeIcon.js +16 -0
- package/esm/icons/components/GuaranteeLargeIcon.js +16 -0
- package/esm/icons/components/GuaranteeSmallIcon.js +16 -0
- package/esm/icons/components/HalfCombiIcon.js +18 -0
- package/esm/icons/components/HamburgerIcon.js +16 -0
- package/esm/icons/components/HandshakeIcon.js +16 -0
- package/esm/icons/components/HelpingHandIcon.js +34 -0
- package/esm/icons/components/IdIcon.js +19 -0
- package/esm/icons/components/InformationIcon.js +16 -0
- package/esm/icons/components/InstagramIcon.js +23 -0
- package/esm/icons/components/InsuranceIcon.js +16 -0
- package/esm/icons/components/InteriorIcon.js +18 -0
- package/esm/icons/components/InteriorThinIcon.js +18 -0
- package/esm/icons/components/InternationalIcon.js +24 -0
- package/esm/icons/components/KvdTestIcon.js +16 -0
- package/esm/icons/components/KvdVenueIcon.js +16 -0
- package/esm/icons/components/LifebuoyIcon.js +16 -0
- package/esm/icons/components/LiftTruckIcon.js +16 -0
- package/esm/icons/components/LinkedInIcon.js +16 -0
- package/esm/icons/components/ListViewIcon.js +38 -0
- package/esm/icons/components/MailIcon.js +18 -0
- package/esm/icons/components/MinibusIcon.js +18 -0
- package/esm/icons/components/MinivanIcon.js +19 -0
- package/esm/icons/components/MobileIcon.js +26 -0
- package/esm/icons/components/MotorcycleIcon.js +48 -0
- package/esm/icons/components/MrfLogoIcon.js +27 -0
- package/esm/icons/components/NotFoundIcon.js +16 -0
- package/esm/icons/components/OverbidIcon.js +18 -0
- package/esm/icons/components/PdfIconIcon.js +16 -0
- package/esm/icons/components/PhoneIcon.js +18 -0
- package/esm/icons/components/PickUpIcon.js +16 -0
- package/esm/icons/components/PinIcon.js +16 -0
- package/esm/icons/components/PlayIcon.js +16 -0
- package/esm/icons/components/Pricetag.js +25 -0
- package/esm/icons/components/PricetagFilledKronaIcon.js +21 -0
- package/esm/icons/components/PrivateCarIcon.js +16 -0
- package/esm/icons/components/ProfileCircleIcon.js +16 -0
- package/esm/icons/components/ProfileIcon.js +16 -0
- package/esm/icons/components/RadioIcon.js +28 -0
- package/esm/icons/components/ReclamationIcon.js +16 -0
- package/esm/icons/components/ReleasingIcon.js +22 -0
- package/esm/icons/components/RemoveFilterIcon.js +16 -0
- package/esm/icons/components/ReservedPriceIcon.js +16 -0
- package/esm/icons/components/ResultIcon.js +16 -0
- package/esm/icons/components/SafePaymentIcon.js +16 -0
- package/esm/icons/components/SaleTagIcon.js +16 -0
- package/esm/icons/components/SearchCheckIcon.js +22 -0
- package/esm/icons/components/SearchIcon.js +16 -0
- package/esm/icons/components/SedanIcon.js +18 -0
- package/esm/icons/components/SellCarIcon.js +16 -0
- package/esm/icons/components/SellCarsIcon.js +16 -0
- package/esm/icons/components/ServiceIcon.js +21 -0
- package/esm/icons/components/ShareIcon.js +42 -0
- package/esm/icons/components/ShieldIcon.js +16 -0
- package/esm/icons/components/SignInIcon.js +16 -0
- package/esm/icons/components/SignOutIcon.js +16 -0
- package/esm/icons/components/SpeedMeterIcon.js +18 -0
- package/esm/icons/components/StarCircleIcon.js +16 -0
- package/esm/icons/components/StartIcon.js +24 -0
- package/esm/icons/components/StoreIcon.js +16 -0
- package/esm/icons/components/SuvIcon.js +18 -0
- package/esm/icons/components/SwedenFlag.js +24 -0
- package/esm/icons/components/TankIcon.js +26 -0
- package/esm/icons/components/TireIcon.js +16 -0
- package/esm/icons/components/TransportIcon.js +16 -0
- package/esm/icons/components/TrashcanIcon.js +16 -0
- package/esm/icons/components/TrophyIcon.js +16 -0
- package/esm/icons/components/TruckIcon.js +16 -0
- package/esm/icons/components/UmbrellaIcon.js +16 -0
- package/esm/icons/components/ValuationIcon.js +16 -0
- package/esm/icons/components/ValueIcon.js +21 -0
- package/esm/icons/components/WarningIcon.js +16 -0
- package/esm/icons/components/YoutubeIcon.js +16 -0
- package/esm/icons/components/index.js +157 -0
- package/esm/index.js +220 -0
- package/esm/react-app-env.d.js +1 -0
- package/esm/shared/constants.js +3 -0
- package/esm/shared/helpers.js +23 -0
- package/esm/shared/helpers.spec.js +34 -0
- package/esm/shared/media-queries.js +35 -0
- package/esm/styled.d.js +1 -0
- package/esm/theme.js +121 -0
- package/esm/typography/BodyText/index.js +48 -0
- package/esm/typography/ButtonText/index.js +33 -0
- package/esm/typography/Heading/index.js +76 -0
- package/esm/utils/utils.js +28 -0
- package/package.json +11 -5
- package/{ColorCard.d.ts → types/ColorCard.d.ts} +0 -0
- package/{ElevationCard.d.ts → types/ElevationCard.d.ts} +0 -0
- package/{Interfaces.d.ts → types/Interfaces.d.ts} +0 -0
- package/{Types.d.ts → types/Types.d.ts} +0 -0
- package/{components → types/components}/Accordion/index.d.ts +0 -0
- package/{components → types/components}/Badge/index.d.ts +0 -0
- package/{components → types/components}/Button/index.d.ts +0 -0
- package/{components → types/components}/Card/index.d.ts +0 -0
- package/{components → types/components}/CheckBox/index.d.ts +0 -0
- package/{components → types/components}/Chip/index.d.ts +0 -0
- package/{components → types/components}/DayPicker/DayPickerNavBar.d.ts +0 -0
- package/{components → types/components}/DayPicker/index.d.ts +0 -0
- package/{components → types/components}/DayPicker/localeUtils.d.ts +0 -0
- package/{components → types/components}/Dialog/index.d.ts +0 -0
- package/{components → types/components}/ErrorMessage/index.d.ts +0 -0
- package/{components → types/components}/FieldLabel.d.ts +0 -0
- package/{components → types/components}/Header/Hamburger.d.ts +0 -0
- package/{components → types/components}/Header/Link.d.ts +0 -0
- package/{components → types/components}/Header/index.d.ts +0 -0
- package/{components → types/components}/Hero/index.d.ts +0 -0
- package/{components → types/components}/Icon/index.d.ts +0 -0
- package/{components → types/components}/IconButton.d.ts +0 -0
- package/{components → types/components}/Icons/Arrow.d.ts +0 -0
- package/{components → types/components}/Icons/CheckCircle.d.ts +0 -0
- package/{components → types/components}/Icons/CheckIcon.d.ts +0 -0
- package/{components → types/components}/Icons/Close.d.ts +0 -0
- package/{components → types/components}/Icons/ErrorCircle.d.ts +0 -0
- package/{components → types/components}/Icons/InfoCircle.d.ts +0 -0
- package/{components → types/components}/InlineStepper/Step.d.ts +0 -0
- package/{components → types/components}/InlineStepper/StepCircle.d.ts +0 -0
- package/{components → types/components}/InlineStepper/index.d.ts +0 -0
- package/{components → types/components}/ListItem/Bacon.d.ts +0 -0
- package/{components → types/components}/ListItem/index.d.ts +0 -0
- package/{components → types/components}/Logo/LogoEn.d.ts +0 -0
- package/{components → types/components}/Logo/LogoSv.d.ts +0 -0
- package/{components → types/components}/Logo/index.d.ts +0 -0
- package/{components → types/components}/MenuItem/index.d.ts +0 -0
- package/{components → types/components}/Modal/index.d.ts +0 -0
- package/{components → types/components}/NotificationButton/index.d.ts +0 -0
- package/{components → types/components}/OffCanvas/Overlay.d.ts +0 -0
- package/{components → types/components}/OffCanvas/index.d.ts +0 -0
- package/{components → types/components}/OffCanvas/useClickOutside.d.ts +0 -0
- package/{components → types/components}/RadioButton/index.d.ts +0 -0
- package/{components → types/components}/Range/index.d.ts +0 -0
- package/types/components/Select/components/test-icon.d.ts +1 -0
- package/{components → types/components}/Select/index.d.ts +0 -0
- package/{components → types/components}/Snackbar/index.d.ts +0 -0
- package/{components → types/components}/Spinner/index.d.ts +0 -0
- package/{components → types/components}/Stepper/index.d.ts +0 -0
- package/{components → types/components}/StepperAccordion/index.d.ts +0 -0
- package/{components → types/components}/Tabs/index.d.ts +0 -0
- package/{components → types/components}/TextArea/index.d.ts +0 -0
- package/{components → types/components}/Textfield/index.d.ts +0 -0
- package/{components → types/components}/TimePicker/index.d.ts +0 -0
- package/{components → types/components}/TimePicker/testHelper.d.ts +0 -0
- package/{components → types/components}/Toggle/index.d.ts +0 -0
- package/{icons → types/icons}/components/AccountCreateIcon.d.ts +0 -0
- package/{icons → types/icons}/components/AccountIcon.d.ts +0 -0
- package/{icons → types/icons}/components/AccountLoginIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowDownIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowLeftIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowLeftSharpIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowLeftSmallIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowLong.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowRestartIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowRightIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowRightSharpIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowUpIcon.d.ts +0 -0
- package/{icons → types/icons}/components/AuctionIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BackArrowIcon.d.ts +0 -0
- package/{icons → types/icons}/components/Baseline360Icon.d.ts +0 -0
- package/{icons → types/icons}/components/BellIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BidIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BidKrIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BreaksIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BuyCarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CabIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CalendarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CameraIcon.d.ts +0 -0
- package/{icons → types/icons}/components/Car360Icon.d.ts +0 -0
- package/{icons → types/icons}/components/CarFrontIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CarSearchIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CarSideIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CarTiresIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CaravanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CardViewIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CarloanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CertifiedIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ChatIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CheckIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CheckThinIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CheckmarkFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CheckmarkIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ClipboardFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ClipboardIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ClockFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ClockIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CloseIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CloseThinIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CoffeeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CombiIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CommentCircleFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CommentCircleIconIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CommentIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ContactIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CoupeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CreditCardIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CrossCircleIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CrownIcon.d.ts +0 -0
- package/{icons → types/icons}/components/DealmakerIcon.d.ts +0 -0
- package/{icons → types/icons}/components/DeliveryIcon.d.ts +0 -0
- package/{icons → types/icons}/components/DetailedSearchIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EcoFriendlyIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EditIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EngineIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EnglandFlagIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EvaluationIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ExaminationMarkFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ExaminationMarkIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ExteriorIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EyeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FacebookBtnIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FacebookIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FatalIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FavouriteIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FavouriteSolidIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FilterIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FinanceIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FindCarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FixedMonthlyCostIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FlagIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FlexibilityIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ForumLargeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ForumSmallIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GavelIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GearboxIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GiftIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GridViewIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GroupIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GuaranteeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GuaranteeLargeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GuaranteeSmallIcon.d.ts +0 -0
- package/{icons → types/icons}/components/HalfCombiIcon.d.ts +0 -0
- package/{icons → types/icons}/components/HamburgerIcon.d.ts +0 -0
- package/{icons → types/icons}/components/HandshakeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/HelpingHandIcon.d.ts +0 -0
- package/{icons → types/icons}/components/IdIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InformationIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InstagramIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InsuranceIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InteriorIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InteriorThinIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InternationalIcon.d.ts +0 -0
- package/{icons → types/icons}/components/KvdTestIcon.d.ts +0 -0
- package/{icons → types/icons}/components/KvdVenueIcon.d.ts +0 -0
- package/{icons → types/icons}/components/LifebuoyIcon.d.ts +0 -0
- package/{icons → types/icons}/components/LiftTruckIcon.d.ts +0 -0
- package/{icons → types/icons}/components/LinkedInIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ListViewIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MailIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MinibusIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MinivanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MobileIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MotorcycleIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MrfLogoIcon.d.ts +0 -0
- package/{icons → types/icons}/components/NotFoundIcon.d.ts +0 -0
- package/{icons → types/icons}/components/OverbidIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PdfIconIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PhoneIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PickUpIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PinIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PlayIcon.d.ts +0 -0
- package/{icons → types/icons}/components/Pricetag.d.ts +0 -0
- package/{icons → types/icons}/components/PricetagFilledKronaIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PrivateCarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ProfileCircleIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ProfileIcon.d.ts +0 -0
- package/{icons → types/icons}/components/RadioIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ReclamationIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ReleasingIcon.d.ts +0 -0
- package/{icons → types/icons}/components/RemoveFilterIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ReservedPriceIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ResultIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SafePaymentIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SaleTagIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SearchCheckIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SearchIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SedanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SellCarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SellCarsIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ServiceIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ShareIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ShieldIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SignInIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SignOutIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SpeedMeterIcon.d.ts +0 -0
- package/{icons → types/icons}/components/StarCircleIcon.d.ts +0 -0
- package/{icons → types/icons}/components/StartIcon.d.ts +0 -0
- package/{icons → types/icons}/components/StoreIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SuvIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SwedenFlag.d.ts +0 -0
- package/{icons → types/icons}/components/TankIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TireIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TransportIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TrashcanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TrophyIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TruckIcon.d.ts +0 -0
- package/{icons → types/icons}/components/UmbrellaIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ValuationIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ValueIcon.d.ts +0 -0
- package/{icons → types/icons}/components/WarningIcon.d.ts +0 -0
- package/{icons → types/icons}/components/YoutubeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/index.d.ts +0 -0
- package/types/icons/template.d.ts +10 -0
- package/{index.d.ts → types/index.d.ts} +0 -0
- package/types/serviceWorker.d.ts +2 -0
- package/{setupTests.d.ts → types/setupTests.d.ts} +0 -0
- package/{shared → types/shared}/constants.d.ts +0 -0
- package/{shared → types/shared}/helpers.d.ts +0 -0
- package/{shared → types/shared}/media-queries.d.ts +0 -0
- package/{testUtils.d.ts → types/testUtils.d.ts} +0 -0
- package/{theme.d.ts → types/theme.d.ts} +3 -3
- package/{typography → types/typography}/BodyText/index.d.ts +0 -0
- package/{typography → types/typography}/ButtonText/index.d.ts +0 -0
- package/{typography → types/typography}/Heading/index.d.ts +0 -0
- package/{utils → types/utils}/utils.d.ts +0 -0
- package/kvdbil-components.css +0 -224
- package/kvdbil-components.js +0 -1501
- package/kvdbil-components.js.map +0 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var components_Icons_Arrow = require('../Icons/Arrow.js');
|
|
7
|
+
var theme = require('../../theme.js');
|
|
8
|
+
var typography_BodyText_index = require('../../typography/BodyText/index.js');
|
|
9
|
+
var components_DayPicker_localeUtils = require('./localeUtils.js');
|
|
10
|
+
|
|
11
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
+
|
|
13
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
14
|
+
|
|
15
|
+
const NavBarWrapper = styled__default['default'].div`
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
`;
|
|
19
|
+
const NavTitle = styled__default['default'](typography_BodyText_index.BodyText)`
|
|
20
|
+
color: ${theme['default'].colors.text.dark};
|
|
21
|
+
`;
|
|
22
|
+
const NavButton = styled__default['default'].button`
|
|
23
|
+
appearance: none;
|
|
24
|
+
background-color: transparent;
|
|
25
|
+
border: 0;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
font-family: inherit;
|
|
28
|
+
outline: none;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
`;
|
|
32
|
+
const Arrow = styled__default['default'](components_Icons_Arrow['default'])`
|
|
33
|
+
width: 16px;
|
|
34
|
+
height: 16px;
|
|
35
|
+
fill: ${theme['default'].colors.gray.dark3};
|
|
36
|
+
`;
|
|
37
|
+
const BackArrow = styled__default['default'](Arrow)`
|
|
38
|
+
transform: rotate(90deg);
|
|
39
|
+
`;
|
|
40
|
+
const ForwardArrow = styled__default['default'](Arrow)`
|
|
41
|
+
transform: rotate(-90deg);
|
|
42
|
+
`;
|
|
43
|
+
const DayPickerNavBar = ({
|
|
44
|
+
month,
|
|
45
|
+
onPreviousClick,
|
|
46
|
+
onNextClick,
|
|
47
|
+
locale
|
|
48
|
+
}) => /* @__PURE__ */ React.createElement(NavBarWrapper, null, /* @__PURE__ */ React.createElement(NavButton, {
|
|
49
|
+
onClick: () => onPreviousClick()
|
|
50
|
+
}, /* @__PURE__ */ React.createElement(BackArrow, {
|
|
51
|
+
title: "prev-month"
|
|
52
|
+
})), /* @__PURE__ */ React.createElement(NavTitle, {
|
|
53
|
+
as: "h3"
|
|
54
|
+
}, components_DayPicker_localeUtils.formatMonthTitle(month, locale)), /* @__PURE__ */ React.createElement(NavButton, {
|
|
55
|
+
onClick: () => onNextClick()
|
|
56
|
+
}, /* @__PURE__ */ React.createElement(ForwardArrow, {
|
|
57
|
+
title: "next-month"
|
|
58
|
+
})));
|
|
59
|
+
|
|
60
|
+
exports['default'] = DayPickerNavBar;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('react-day-picker/lib/style.css');
|
|
6
|
+
var ReactDayPicker = require('react-day-picker');
|
|
7
|
+
var styled = require('styled-components');
|
|
8
|
+
var theme = require('../../theme.js');
|
|
9
|
+
var components_DayPicker_DayPickerNavBar = require('./DayPickerNavBar.js');
|
|
10
|
+
var components_DayPicker_localeUtils = require('./localeUtils.js');
|
|
11
|
+
require('../Icons/Arrow.js');
|
|
12
|
+
require('../../typography/BodyText/index.js');
|
|
13
|
+
|
|
14
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
15
|
+
|
|
16
|
+
var ReactDayPicker__default = /*#__PURE__*/_interopDefaultLegacy(ReactDayPicker);
|
|
17
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
18
|
+
|
|
19
|
+
const DayPickerWrapper = styled__default['default'].div`
|
|
20
|
+
font-family: ${({ theme: theme2 }) => theme2.typography.fontAlternativeFamily};
|
|
21
|
+
.DayPicker-wrapper {
|
|
22
|
+
&:focus {
|
|
23
|
+
outline: none;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.DayPicker-Weekday {
|
|
27
|
+
color: ${({ theme: theme2 }) => theme2.colors.gray.light1};
|
|
28
|
+
}
|
|
29
|
+
.DayPicker-Day {
|
|
30
|
+
font-size: 12px;
|
|
31
|
+
padding: 14px;
|
|
32
|
+
font-weight: ${({ theme: theme2 }) => theme2.typography.fontAlternativeBoldWeight};
|
|
33
|
+
color: ${({ theme: theme2 }) => theme2.colors.text.dark};
|
|
34
|
+
&:focus {
|
|
35
|
+
outline: none;
|
|
36
|
+
box-shadow: 0 0 4px ${theme['default'].colors.gray.dark3};
|
|
37
|
+
}
|
|
38
|
+
&:not(.DayPicker--interactionDisabled):not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside) {
|
|
39
|
+
&:focus {
|
|
40
|
+
box-shadow: 0 0 4px ${theme['default'].colors.gray.dark3};
|
|
41
|
+
}
|
|
42
|
+
&:hover {
|
|
43
|
+
background-color: rgba(253, 171, 74, 0.25);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
&.DayPicker-Day--disabled {
|
|
47
|
+
color: ${theme['default'].colors.gray.dark3};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
`;
|
|
51
|
+
const modifiersStyles = {
|
|
52
|
+
selected: {
|
|
53
|
+
color: theme['default'].colors.text.light,
|
|
54
|
+
background: theme['default'].colors.primary.main,
|
|
55
|
+
fontWeight: 700
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const DayPicker = ({ locale = "sv", ...props }) => {
|
|
59
|
+
return /* @__PURE__ */ React.createElement(DayPickerWrapper, null, /* @__PURE__ */ React.createElement(ReactDayPicker__default['default'], {
|
|
60
|
+
...props,
|
|
61
|
+
locale,
|
|
62
|
+
months: components_DayPicker_localeUtils.MONTHS[locale],
|
|
63
|
+
weekdaysLong: components_DayPicker_localeUtils.WEEKDAYS_LONG[locale],
|
|
64
|
+
weekdaysShort: components_DayPicker_localeUtils.WEEKDAYS_SHORT[locale],
|
|
65
|
+
firstDayOfWeek: components_DayPicker_localeUtils.FIRST_DAY_OF_THE_WEEK[locale],
|
|
66
|
+
navbarElement: (navProps) => /* @__PURE__ */ React.createElement(components_DayPicker_DayPickerNavBar['default'], {
|
|
67
|
+
...navProps,
|
|
68
|
+
locale
|
|
69
|
+
}),
|
|
70
|
+
captionElement: /* @__PURE__ */ React.createElement("div", null),
|
|
71
|
+
modifiersStyles
|
|
72
|
+
}));
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
exports.DayPicker = DayPicker;
|
|
76
|
+
exports['default'] = DayPicker;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const MONTHS = {
|
|
6
|
+
sv: [
|
|
7
|
+
"Januari",
|
|
8
|
+
"Februari",
|
|
9
|
+
"Mars",
|
|
10
|
+
"April",
|
|
11
|
+
"Maj",
|
|
12
|
+
"Juni",
|
|
13
|
+
"Juli",
|
|
14
|
+
"Augusti",
|
|
15
|
+
"September",
|
|
16
|
+
"Oktober",
|
|
17
|
+
"November",
|
|
18
|
+
"December"
|
|
19
|
+
],
|
|
20
|
+
en: [
|
|
21
|
+
"January",
|
|
22
|
+
"February",
|
|
23
|
+
"March",
|
|
24
|
+
"April",
|
|
25
|
+
"May",
|
|
26
|
+
"June",
|
|
27
|
+
"July",
|
|
28
|
+
"August",
|
|
29
|
+
"September",
|
|
30
|
+
"October",
|
|
31
|
+
"November",
|
|
32
|
+
"December"
|
|
33
|
+
]
|
|
34
|
+
};
|
|
35
|
+
const WEEKDAYS_LONG = {
|
|
36
|
+
sv: ["S\xF6ndag", "M\xE5ndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "L\xF6rdag"],
|
|
37
|
+
en: [
|
|
38
|
+
"Sunday",
|
|
39
|
+
"Monday",
|
|
40
|
+
"Tuesday",
|
|
41
|
+
"Wednesday",
|
|
42
|
+
"Thursday",
|
|
43
|
+
"Friday",
|
|
44
|
+
"Saturday"
|
|
45
|
+
]
|
|
46
|
+
};
|
|
47
|
+
const WEEKDAYS_SHORT = {
|
|
48
|
+
sv: ["S\xF6", "M\xE5", "Ti", "On", "To", "Fr", "L\xF6"],
|
|
49
|
+
en: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]
|
|
50
|
+
};
|
|
51
|
+
const FIRST_DAY_OF_THE_WEEK = { sv: 1, en: 1 };
|
|
52
|
+
const formatMonthTitle = (d, locale = "sv") => {
|
|
53
|
+
return `${MONTHS[locale][d.getMonth()]} ${d.getFullYear()}`;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
exports.FIRST_DAY_OF_THE_WEEK = FIRST_DAY_OF_THE_WEEK;
|
|
57
|
+
exports.MONTHS = MONTHS;
|
|
58
|
+
exports.WEEKDAYS_LONG = WEEKDAYS_LONG;
|
|
59
|
+
exports.WEEKDAYS_SHORT = WEEKDAYS_SHORT;
|
|
60
|
+
exports.formatMonthTitle = formatMonthTitle;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var shared_mediaQueries = require('../../shared/media-queries.js');
|
|
7
|
+
var components_Button_index = require('../Button/index.js');
|
|
8
|
+
var components_Modal_index = require('../Modal/index.js');
|
|
9
|
+
var typography_Heading_index = require('../../typography/Heading/index.js');
|
|
10
|
+
require('../../theme.js');
|
|
11
|
+
require('../Spinner/index.js');
|
|
12
|
+
require('../../typography/ButtonText/index.js');
|
|
13
|
+
require('react');
|
|
14
|
+
require('react-dom');
|
|
15
|
+
require('react-transition-group');
|
|
16
|
+
require('../Icons/Close.js');
|
|
17
|
+
|
|
18
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
|
+
|
|
20
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
21
|
+
|
|
22
|
+
const Content = styled__default['default'].div`
|
|
23
|
+
padding-top: 1rem;
|
|
24
|
+
`;
|
|
25
|
+
const Header = styled__default['default'].div`
|
|
26
|
+
top: 20px;
|
|
27
|
+
left: 32px;
|
|
28
|
+
position: absolute;
|
|
29
|
+
`;
|
|
30
|
+
const Title = styled__default['default'](typography_Heading_index.TinyTitle)`
|
|
31
|
+
font-weight: ${({ theme }) => theme.typography.fontAlternativeRegularWeight};
|
|
32
|
+
margin: 0;
|
|
33
|
+
`;
|
|
34
|
+
const ButtonWrapper = styled__default['default'].div`
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
${shared_mediaQueries.mq("tablet")} {
|
|
38
|
+
justify-content: flex-start;
|
|
39
|
+
}
|
|
40
|
+
overflow-x: hidden;
|
|
41
|
+
`;
|
|
42
|
+
const SecondaryActionButton = styled__default['default'](components_Button_index.Button)`
|
|
43
|
+
overflow-x: hidden;
|
|
44
|
+
margin-right: 2rem;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
width: 100%;
|
|
47
|
+
max-width: 110px;
|
|
48
|
+
`;
|
|
49
|
+
const PrimaryActionButton = styled__default['default'](components_Button_index.Button)`
|
|
50
|
+
justify-content: center;
|
|
51
|
+
width: 100%;
|
|
52
|
+
max-width: 245px;
|
|
53
|
+
`;
|
|
54
|
+
const Dialog = ({
|
|
55
|
+
isOpen,
|
|
56
|
+
title,
|
|
57
|
+
children,
|
|
58
|
+
modalStyles,
|
|
59
|
+
titleStyles,
|
|
60
|
+
primaryButtonText,
|
|
61
|
+
primaryButtonStyles,
|
|
62
|
+
secondaryButtonStyles,
|
|
63
|
+
secondaryButtonText,
|
|
64
|
+
primaryButtonAction,
|
|
65
|
+
secondaryButtonAction,
|
|
66
|
+
onClose
|
|
67
|
+
}) => {
|
|
68
|
+
return /* @__PURE__ */ React.createElement(components_Modal_index.Modal, {
|
|
69
|
+
contentStyles: modalStyles,
|
|
70
|
+
isOpen,
|
|
71
|
+
onClose
|
|
72
|
+
}, title && /* @__PURE__ */ React.createElement(Header, null, /* @__PURE__ */ React.createElement(Title, {
|
|
73
|
+
style: titleStyles
|
|
74
|
+
}, title)), /* @__PURE__ */ React.createElement(Content, null, children), /* @__PURE__ */ React.createElement(ButtonWrapper, null, secondaryButtonAction && /* @__PURE__ */ React.createElement(SecondaryActionButton, {
|
|
75
|
+
style: secondaryButtonStyles,
|
|
76
|
+
onClick: secondaryButtonAction,
|
|
77
|
+
variant: "outline",
|
|
78
|
+
color: "neutral"
|
|
79
|
+
}, secondaryButtonText), primaryButtonAction && /* @__PURE__ */ React.createElement(PrimaryActionButton, {
|
|
80
|
+
style: primaryButtonStyles,
|
|
81
|
+
onClick: primaryButtonAction,
|
|
82
|
+
variant: "solid",
|
|
83
|
+
color: "success"
|
|
84
|
+
}, primaryButtonText)));
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
exports.Dialog = Dialog;
|
|
88
|
+
exports['default'] = Dialog;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
10
|
+
|
|
11
|
+
const ErrorContainer = styled__default['default'].div`
|
|
12
|
+
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
13
|
+
font-weight: ${({ theme }) => theme.typography.fontAlternativeRegularWeight};
|
|
14
|
+
background: ${({ theme }) => theme.colors.error.main};
|
|
15
|
+
color: white;
|
|
16
|
+
border-radius: 0.25rem;
|
|
17
|
+
font-size: 13px;
|
|
18
|
+
padding: 10px;
|
|
19
|
+
${({ centered }) => centered && `text-align: center;`}
|
|
20
|
+
`;
|
|
21
|
+
const ErrorMessage = ({
|
|
22
|
+
children,
|
|
23
|
+
centered,
|
|
24
|
+
...props
|
|
25
|
+
}) => /* @__PURE__ */ React.createElement(ErrorContainer, {
|
|
26
|
+
centered,
|
|
27
|
+
...props
|
|
28
|
+
}, children);
|
|
29
|
+
|
|
30
|
+
exports.ErrorMessage = ErrorMessage;
|
|
31
|
+
exports['default'] = ErrorMessage;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
10
|
+
|
|
11
|
+
const activePadding = "0.5rem";
|
|
12
|
+
const activeStyles = (translateY) => styled.css`
|
|
13
|
+
background-color: ${(props) => props.theme.colors.background.light};
|
|
14
|
+
transform: scale(0.75) translateY(${translateY});
|
|
15
|
+
transform-origin: 0 0;
|
|
16
|
+
padding: 0 ${activePadding};
|
|
17
|
+
left: ${activePadding};
|
|
18
|
+
`;
|
|
19
|
+
const focusStyles = styled.css`
|
|
20
|
+
color: ${(props) => props.theme.colors.text.dark};
|
|
21
|
+
`;
|
|
22
|
+
const disabledStyles = styled.css`
|
|
23
|
+
color: ${(props) => props.theme.colors.gray.light1};
|
|
24
|
+
background-color: ${(props) => props.theme.colors.background.light};
|
|
25
|
+
`;
|
|
26
|
+
const errorStyles = styled.css`
|
|
27
|
+
color: ${(props) => props.theme.colors.error.main};
|
|
28
|
+
`;
|
|
29
|
+
const centerStyles = styled.css`
|
|
30
|
+
text-align: center;
|
|
31
|
+
width: 100%;
|
|
32
|
+
left: 0;
|
|
33
|
+
`;
|
|
34
|
+
const Label = styled__default['default'].div`
|
|
35
|
+
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
36
|
+
pointer-events: none;
|
|
37
|
+
position: absolute;
|
|
38
|
+
z-index: 1;
|
|
39
|
+
top: ${(props) => props.height ? `${props.height}rem` : "0.9rem"};
|
|
40
|
+
|
|
41
|
+
/* Left padding on input + one character size */
|
|
42
|
+
left: calc(0.75rem + 2px);
|
|
43
|
+
transition: 150ms;
|
|
44
|
+
|
|
45
|
+
/* Text styles */
|
|
46
|
+
height: 16px;
|
|
47
|
+
line-height: 16px;
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
|
|
50
|
+
color: ${(props) => props.theme.colors.gray.dark1};
|
|
51
|
+
|
|
52
|
+
${(props) => props.centered && centerStyles}
|
|
53
|
+
${(props) => (props.hasValue || props.isFocused) && activeStyles(props.height ? `-${(props.height + 0.25) * 1.35}rem` : "-1.75rem")}
|
|
54
|
+
${(props) => props.isFocused && focusStyles}
|
|
55
|
+
${(props) => props.disabled && disabledStyles}
|
|
56
|
+
${(props) => props.hasError && errorStyles}
|
|
57
|
+
`;
|
|
58
|
+
|
|
59
|
+
exports.Label = Label;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var shared_mediaQueries = require('../../shared/media-queries.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
|
+
|
|
12
|
+
const IconWrapper = styled__default['default'].button`
|
|
13
|
+
appearance: none;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
background-color: transparent;
|
|
16
|
+
border: 0;
|
|
17
|
+
outline: none;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
margin-right: 1.5rem;
|
|
21
|
+
margin-left: auto;
|
|
22
|
+
${shared_mediaQueries.mq("laptop")} {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
svg {
|
|
27
|
+
width: 1.5rem;
|
|
28
|
+
height: 1.5rem;
|
|
29
|
+
fill: ${({ theme }) => theme.colors.text.dark};
|
|
30
|
+
}
|
|
31
|
+
span {
|
|
32
|
+
display: none;
|
|
33
|
+
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
34
|
+
font-weight: ${({ theme }) => theme.typography.fontBaseBoldWeight};
|
|
35
|
+
font-size: 1rem;
|
|
36
|
+
margin-right: 0.75rem;
|
|
37
|
+
|
|
38
|
+
${shared_mediaQueries.mq("tablet")} {
|
|
39
|
+
display: inline;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
const Hamburger = ({ onClick = () => {
|
|
44
|
+
}, text }) => /* @__PURE__ */ React.createElement(IconWrapper, {
|
|
45
|
+
onClick
|
|
46
|
+
}, /* @__PURE__ */ React.createElement("span", null, text), /* @__PURE__ */ React.createElement("svg", null, /* @__PURE__ */ React.createElement("symbol", {
|
|
47
|
+
id: "icon-hamburger",
|
|
48
|
+
viewBox: "0 0 16 12"
|
|
49
|
+
}, /* @__PURE__ */ React.createElement("path", {
|
|
50
|
+
d: "M0 0h16v2H0zm0 5h16v2H0zm0 5h16v2H0z"
|
|
51
|
+
})), /* @__PURE__ */ React.createElement("use", {
|
|
52
|
+
xlinkHref: "#icon-hamburger"
|
|
53
|
+
})));
|
|
54
|
+
|
|
55
|
+
exports['default'] = Hamburger;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var shared_mediaQueries = require('../../shared/media-queries.js');
|
|
7
|
+
var theme = require('../../theme.js');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
+
|
|
11
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
12
|
+
|
|
13
|
+
const LinkItem = styled__default['default'].li`
|
|
14
|
+
font-family: ${({ theme: theme2 }) => theme2.typography.fontAlternativeFamily};
|
|
15
|
+
font-weight: ${({ theme: theme2 }) => theme2.typography.fontAlternativeRegularWeight};
|
|
16
|
+
font-size: 1rem;
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
border-radius: 0.25rem;
|
|
21
|
+
|
|
22
|
+
&:last-child {
|
|
23
|
+
margin-right: 0;
|
|
24
|
+
}
|
|
25
|
+
&:nth-child(n + 4) {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
${shared_mediaQueries.mq("laptop")} {
|
|
30
|
+
&:nth-child(n + 4) {
|
|
31
|
+
display: inherit;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
const CommonLink = styled__default['default'].a`
|
|
36
|
+
border-radius: 0.25rem;
|
|
37
|
+
padding: 0.75rem 1.5rem;
|
|
38
|
+
transition: 200ms;
|
|
39
|
+
color: ${theme['default'].colors.text.dark};
|
|
40
|
+
text-decoration: none;
|
|
41
|
+
|
|
42
|
+
&:hover,
|
|
43
|
+
&:active {
|
|
44
|
+
color: ${theme['default'].colors.primary.main};
|
|
45
|
+
background: ${theme['default'].colors.gray.light4};
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
|
+
const Link = ({ to, component, text, ...rest }) => /* @__PURE__ */ React.createElement(LinkItem, null, component || /* @__PURE__ */ React.createElement(CommonLink, {
|
|
49
|
+
href: to,
|
|
50
|
+
...rest
|
|
51
|
+
}, text));
|
|
52
|
+
|
|
53
|
+
exports['default'] = Link;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var shared_mediaQueries = require('../../shared/media-queries.js');
|
|
7
|
+
var theme = require('../../theme.js');
|
|
8
|
+
var components_Logo_index = require('../Logo/index.js');
|
|
9
|
+
var components_Header_Hamburger = require('./Hamburger.js');
|
|
10
|
+
var components_Header_Link = require('./Link.js');
|
|
11
|
+
require('../Logo/LogoSv.js');
|
|
12
|
+
require('../Logo/LogoEn.js');
|
|
13
|
+
|
|
14
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
15
|
+
|
|
16
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
17
|
+
|
|
18
|
+
const LogoWrapper = styled__default['default'].a`
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
padding: 0 0.625rem;
|
|
21
|
+
width: 100%;
|
|
22
|
+
display: flex;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
align-items: center;
|
|
25
|
+
background: ${theme['default'].colors.background.light};
|
|
26
|
+
|
|
27
|
+
${shared_mediaQueries.mq("tablet")} {
|
|
28
|
+
display: block;
|
|
29
|
+
width: auto;
|
|
30
|
+
padding: 0 1.5rem 0 0;
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
const HeaderContainer = styled__default['default'].nav`
|
|
34
|
+
width: 100%;
|
|
35
|
+
z-index: 17;
|
|
36
|
+
position: fixed;
|
|
37
|
+
top: 0;
|
|
38
|
+
left: 0;
|
|
39
|
+
color: ${theme['default'].colors.text.dark};
|
|
40
|
+
background-color: ${theme['default'].colors.background.light};
|
|
41
|
+
transition: 300ms;
|
|
42
|
+
`;
|
|
43
|
+
const HeaderContent = styled__default['default'].div`
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: space-between;
|
|
48
|
+
background-color: ${theme['default'].colors.background.gray};
|
|
49
|
+
|
|
50
|
+
${shared_mediaQueries.mq("tablet")} {
|
|
51
|
+
background-color: ${theme['default'].colors.background.light};
|
|
52
|
+
flex-direction: row;
|
|
53
|
+
padding: 0em 1.5em;
|
|
54
|
+
}
|
|
55
|
+
`;
|
|
56
|
+
const MainContent = styled__default['default'].div`
|
|
57
|
+
display: flex;
|
|
58
|
+
width: 100%;
|
|
59
|
+
`;
|
|
60
|
+
const PrimaryLinks = styled__default['default'].ul`
|
|
61
|
+
display: flex;
|
|
62
|
+
justify-content: space-around;
|
|
63
|
+
width: 100%;
|
|
64
|
+
position: relative;
|
|
65
|
+
margin: 0;
|
|
66
|
+
padding: 0;
|
|
67
|
+
flex-grow: 1;
|
|
68
|
+
|
|
69
|
+
${shared_mediaQueries.mq("tablet")} {
|
|
70
|
+
justify-content: flex-start;
|
|
71
|
+
padding: 0.5em 0;
|
|
72
|
+
display: flex;
|
|
73
|
+
padding: 0;
|
|
74
|
+
flex: 1;
|
|
75
|
+
}
|
|
76
|
+
`;
|
|
77
|
+
const SecondaryLinks = styled__default['default'].ul`
|
|
78
|
+
display: none;
|
|
79
|
+
|
|
80
|
+
${shared_mediaQueries.mq("laptop")} {
|
|
81
|
+
padding: 0.5em 0;
|
|
82
|
+
display: flex;
|
|
83
|
+
padding: 0;
|
|
84
|
+
}
|
|
85
|
+
`;
|
|
86
|
+
const Header = ({
|
|
87
|
+
locale,
|
|
88
|
+
primaryLinks,
|
|
89
|
+
secondaryLinks,
|
|
90
|
+
menuIconText,
|
|
91
|
+
onMenuClick,
|
|
92
|
+
onHeaderClick,
|
|
93
|
+
forwardRef,
|
|
94
|
+
css = "",
|
|
95
|
+
...props
|
|
96
|
+
}) => {
|
|
97
|
+
return /* @__PURE__ */ React.createElement(HeaderContainer, {
|
|
98
|
+
css,
|
|
99
|
+
...props,
|
|
100
|
+
ref: forwardRef
|
|
101
|
+
}, /* @__PURE__ */ React.createElement(HeaderContent, null, /* @__PURE__ */ React.createElement(LogoWrapper, {
|
|
102
|
+
onClick: onHeaderClick
|
|
103
|
+
}, /* @__PURE__ */ React.createElement(components_Logo_index.Logo, {
|
|
104
|
+
locale
|
|
105
|
+
})), /* @__PURE__ */ React.createElement(MainContent, null, /* @__PURE__ */ React.createElement(PrimaryLinks, null, primaryLinks.map((link, index) => /* @__PURE__ */ React.createElement(components_Header_Link['default'], {
|
|
106
|
+
key: link.text || index,
|
|
107
|
+
...link
|
|
108
|
+
}))), /* @__PURE__ */ React.createElement(components_Header_Hamburger['default'], {
|
|
109
|
+
text: menuIconText,
|
|
110
|
+
onClick: onMenuClick
|
|
111
|
+
})), /* @__PURE__ */ React.createElement(SecondaryLinks, null, secondaryLinks.map((link, index) => /* @__PURE__ */ React.createElement(components_Header_Link['default'], {
|
|
112
|
+
key: link.text || index,
|
|
113
|
+
...link
|
|
114
|
+
})))));
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
exports.Header = Header;
|
|
118
|
+
exports['default'] = Header;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var theme = require('../../theme.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
|
+
|
|
12
|
+
const Root = styled__default['default'].div`
|
|
13
|
+
position: relative;
|
|
14
|
+
height: 60vh;
|
|
15
|
+
max-height: 600px;
|
|
16
|
+
background-color: ${theme['default'].colors.primary.main};
|
|
17
|
+
background-size: cover;
|
|
18
|
+
`;
|
|
19
|
+
const Content = styled__default['default'].div`
|
|
20
|
+
position: relative;
|
|
21
|
+
display: flex;
|
|
22
|
+
padding: 50px;
|
|
23
|
+
z-index: 1;
|
|
24
|
+
`;
|
|
25
|
+
const Video = styled__default['default'].iframe`
|
|
26
|
+
position: absolute;
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
top: 0;
|
|
30
|
+
left: 0;
|
|
31
|
+
`;
|
|
32
|
+
const Image = styled__default['default'].img`
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 0;
|
|
35
|
+
left: 0;
|
|
36
|
+
height: 100%;
|
|
37
|
+
width: 100%;
|
|
38
|
+
object-fit: cover;
|
|
39
|
+
background-color: ${theme['default'].colors.primary.main};
|
|
40
|
+
`;
|
|
41
|
+
function Hero(props) {
|
|
42
|
+
const { imageProps, containerStyle, videoProps, children } = props;
|
|
43
|
+
const imageStyle = {
|
|
44
|
+
objectPosition: `${(imageProps == null ? void 0 : imageProps.x) ? imageProps.x : "50%"} ${(imageProps == null ? void 0 : imageProps.y) ? imageProps.y : "50%"}`
|
|
45
|
+
};
|
|
46
|
+
return /* @__PURE__ */ React.createElement(Root, {
|
|
47
|
+
style: containerStyle
|
|
48
|
+
}, videoProps ? /* @__PURE__ */ React.createElement(Video, {
|
|
49
|
+
"data-testid": "hero-video",
|
|
50
|
+
title: "video-frame",
|
|
51
|
+
src: videoProps.src,
|
|
52
|
+
width: "100%",
|
|
53
|
+
height: "100%",
|
|
54
|
+
frameBorder: "0",
|
|
55
|
+
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
|
|
56
|
+
allowFullScreen: true
|
|
57
|
+
}) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Image, {
|
|
58
|
+
src: imageProps == null ? void 0 : imageProps.src,
|
|
59
|
+
alt: "Hero background",
|
|
60
|
+
style: imageStyle
|
|
61
|
+
}), /* @__PURE__ */ React.createElement(Content, null, children)));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
exports.Hero = Hero;
|
|
65
|
+
exports['default'] = Hero;
|