@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,56 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var typography_BodyText_index = require('../../typography/BodyText/index.js');
|
|
7
|
+
var typography_Heading_index = require('../../typography/Heading/index.js');
|
|
8
|
+
require('../../shared/media-queries.js');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
13
|
+
|
|
14
|
+
const ListItemWrapper = styled__default['default'].li`
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
padding-bottom: 20px;
|
|
18
|
+
&:last-child {
|
|
19
|
+
padding-bottom: 0;
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
const TitleWrapper = styled__default['default'].div`
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
margin: 0;
|
|
26
|
+
`;
|
|
27
|
+
const Title = styled__default['default'](typography_Heading_index.TinyTitle)`
|
|
28
|
+
margin: 0;
|
|
29
|
+
`;
|
|
30
|
+
const Icon = styled__default['default'].div`
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
margin-right: 24px;
|
|
34
|
+
svg {
|
|
35
|
+
width: 30px;
|
|
36
|
+
height: 100%;
|
|
37
|
+
}
|
|
38
|
+
`;
|
|
39
|
+
const Content = styled__default['default'].div`
|
|
40
|
+
padding-left: ${({ hasIcon }) => hasIcon ? "54px" : 0};
|
|
41
|
+
`;
|
|
42
|
+
const ListItem = ({
|
|
43
|
+
title,
|
|
44
|
+
text,
|
|
45
|
+
icon,
|
|
46
|
+
component: Component = "li",
|
|
47
|
+
children,
|
|
48
|
+
...props
|
|
49
|
+
}) => /* @__PURE__ */ React.createElement(ListItemWrapper, {
|
|
50
|
+
as: Component,
|
|
51
|
+
...props
|
|
52
|
+
}, /* @__PURE__ */ React.createElement(TitleWrapper, null, icon && /* @__PURE__ */ React.createElement(Icon, null, icon), /* @__PURE__ */ React.createElement(Title, null, title)), /* @__PURE__ */ React.createElement(Content, {
|
|
53
|
+
hasIcon: Boolean(icon)
|
|
54
|
+
}, /* @__PURE__ */ React.createElement(typography_BodyText_index.BodyText, null, text, children)));
|
|
55
|
+
|
|
56
|
+
exports['default'] = ListItem;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const LogoEn = () => /* @__PURE__ */ React.createElement("svg", {
|
|
6
|
+
viewBox: "0 0 622 223",
|
|
7
|
+
fill: "none",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
"aria-labelledby": "kvdlogo-en"
|
|
10
|
+
}, /* @__PURE__ */ React.createElement("title", {
|
|
11
|
+
id: "kvdlogo-en"
|
|
12
|
+
}, "kvdcars.com"), /* @__PURE__ */ React.createElement("path", {
|
|
13
|
+
d: "M563.63 130.23C561.82 127.17 559.53 124.57 556.81 122.52C554.18 120.54 551.29 118.87 548.23 117.57C545.36 116.35 542.64 115.15 540.14 113.99C537.8 112.9 535.83 111.71 534.29 110.44C533.08 109.44 532.52 108.24 532.52 106.67C532.52 105.1 533 103.96 534.02 103.11C535.07 102.24 536.56 101.77 538.46 101.73L561.94 109.52V87.83L560.57 87.35C556.81 86.02 553.15 84.93 549.69 84.12C546.16 83.29 542.26 82.86 538.12 82.86C533.98 82.86 530.19 83.43 526.85 84.55C523.47 85.69 520.55 87.34 518.16 89.44C515.76 91.56 513.88 94.13 512.56 97.09C511.24 100.04 510.58 103.34 510.58 106.9C510.58 111.77 511.52 115.84 513.38 118.99C515.2 122.07 517.48 124.61 520.18 126.56C522.79 128.44 525.66 130 528.73 131.18C531.61 132.3 534.3 133.42 536.71 134.52C539.01 135.57 540.96 136.75 542.49 138.01C543.7 139.01 544.26 140.31 544.26 142.11C544.26 144.1 543.67 145.47 542.4 146.43C541.05 147.45 539.09 147.99 536.59 148.04L511.34 139.22V161.63L512.59 162.16C515.97 163.59 519.84 164.8 524.09 165.77C528.38 166.75 532.95 167.24 537.67 167.24C541.8 167.24 545.64 166.67 549.08 165.55C552.56 164.42 555.62 162.77 558.18 160.64C560.78 158.48 562.82 155.81 564.26 152.7C565.69 149.6 566.42 146.03 566.42 142.1C566.44 137.37 565.49 133.38 563.63 130.23Z",
|
|
14
|
+
fill: "#1A2030"
|
|
15
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
16
|
+
d: "M124.01 84.33H99.02L77.58 114.92V56.04H55.16V166.56H77.58V132.24L101.06 166.56H127.94L96.57 123.5L124.01 84.33Z",
|
|
17
|
+
fill: "#1A2030"
|
|
18
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
19
|
+
d: "M235.3 144.12C224.78 144.12 216.25 135.59 216.25 125.07C216.25 114.55 224.78 106.02 235.3 106.02C245.83 106.02 254.35 114.55 254.35 125.07C254.35 135.59 245.82 144.12 235.3 144.12ZM255.53 88.9C249.48 85.46 242.49 83.5 235.04 83.5C212.11 83.5 193.52 102.09 193.52 125.02C193.52 147.95 212.11 166.54 235.04 166.54C242.49 166.54 249.49 164.58 255.53 161.14V166.56H277.95V56.04H255.53V88.9Z",
|
|
20
|
+
fill: "#1A2030"
|
|
21
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
22
|
+
d: "M175.62 84.33L161.08 131.23L146.54 84.33H124.32L149.81 166.56H150.13H172.04H172.35L197.84 84.33H175.62Z",
|
|
23
|
+
fill: "#1A2030"
|
|
24
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
25
|
+
d: "M411.58 144.12C401.06 144.12 392.53 135.59 392.53 125.07C392.53 114.55 401.06 106.02 411.58 106.02C422.1 106.02 430.63 114.55 430.63 125.07C430.63 135.59 422.11 144.12 411.58 144.12ZM411.31 83.5C388.38 83.5 369.79 102.08 369.79 125.01C369.79 147.94 388.38 166.53 411.31 166.53C418.86 166.53 425.94 164.52 432.04 161V166.55H454.46V84.33H432.04V89.03C425.94 85.52 418.86 83.5 411.31 83.5Z",
|
|
26
|
+
fill: "#1A2030"
|
|
27
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
28
|
+
d: "M342.97 130.89C340.51 138.56 333.32 144.12 324.83 144.12C314.3 144.12 305.78 135.59 305.78 125.07C305.78 114.55 314.31 106.02 324.83 106.02C333.59 106.02 340.95 111.94 343.18 120H366.04C363.56 99.44 346.06 83.5 324.84 83.5C301.91 83.5 283.33 102.09 283.33 125.01C283.33 147.94 301.9 166.52 324.84 166.52C345.77 166.52 363.08 151.02 365.93 130.88H342.97V130.89Z",
|
|
29
|
+
fill: "#1A2030"
|
|
30
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
31
|
+
d: "M505.29 83.5C498.52 83.5 492.15 85.14 486.5 88.01V84.33H464.08V166.55H486.5V161.92V125.07H486.51C486.51 114.55 495.04 106.02 505.56 106.02C505.95 106.02 506.34 106.06 506.72 106.08V83.55C506.25 83.53 505.77 83.5 505.29 83.5Z",
|
|
32
|
+
fill: "#1A2030"
|
|
33
|
+
}));
|
|
34
|
+
|
|
35
|
+
exports['default'] = LogoEn;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const LogoSv = () => /* @__PURE__ */ React.createElement("svg", {
|
|
6
|
+
viewBox: "0 0 492 223",
|
|
7
|
+
fill: "none",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
"aria-labelledby": "kvdlogo-sv"
|
|
10
|
+
}, /* @__PURE__ */ React.createElement("title", {
|
|
11
|
+
id: "kvdlogo-sv"
|
|
12
|
+
}, "kvd.se"), /* @__PURE__ */ React.createElement("path", {
|
|
13
|
+
d: "M124.94 84.11H99.78L78.2 114.91V55.63H55.63V166.89H78.2V132.34L101.83 166.89H128.89L97.32 123.54L124.94 84.11Z",
|
|
14
|
+
fill: "#1A2030"
|
|
15
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
16
|
+
d: "M393.79 87.26C389.7 87.26 385.88 86.1 382.64 84.1H382.51V166.88H405.08V84.1H404.95C401.69 86.1 397.87 87.26 393.79 87.26Z",
|
|
17
|
+
fill: "#1A2030"
|
|
18
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
19
|
+
d: "M436.21 55.59H413.64V166.89H436.21V55.59Z",
|
|
20
|
+
fill: "#1A2030"
|
|
21
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
22
|
+
d: "M393.79 49.9C384.96 49.9 377.77 57.09 377.77 65.92C377.77 74.75 384.95 81.94 393.79 81.94C402.63 81.94 409.81 74.76 409.81 65.92C409.8 57.09 402.62 49.9 393.79 49.9ZM393.79 72.85C389.97 72.85 386.86 69.74 386.86 65.92C386.86 62.1 389.97 58.99 393.79 58.99C397.61 58.99 400.72 62.1 400.72 65.92C400.72 69.74 397.61 72.85 393.79 72.85Z",
|
|
23
|
+
fill: "#1A2030"
|
|
24
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
25
|
+
d: "M336.08 83.27C328.48 83.27 321.36 85.3 315.22 88.84V55.63H292.65V166.89H315.22V161.3C321.36 164.84 328.49 166.87 336.08 166.87C359.16 166.87 377.88 148.16 377.88 125.07C377.87 101.98 359.16 83.27 336.08 83.27ZM335.81 144.3C325.22 144.3 316.63 135.71 316.63 125.12C316.63 114.53 325.22 105.94 335.81 105.94C346.4 105.94 354.99 114.53 354.99 125.12C354.99 135.71 346.4 144.3 335.81 144.3Z",
|
|
26
|
+
fill: "#1A2030"
|
|
27
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
28
|
+
d: "M257.34 88.71C251.25 85.25 244.21 83.27 236.71 83.27C213.62 83.27 194.91 101.98 194.91 125.07C194.91 148.15 213.62 166.87 236.71 166.87C244.21 166.87 251.25 164.89 257.34 161.43V166.89H279.91V55.63H257.34V88.71ZM236.98 144.3C226.39 144.3 217.8 135.71 217.8 125.12C217.8 114.53 226.39 105.94 236.98 105.94C247.57 105.94 256.16 114.53 256.16 125.12C256.16 135.71 247.57 144.3 236.98 144.3Z",
|
|
29
|
+
fill: "#1A2030"
|
|
30
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
31
|
+
d: "M176.9 84.11L162.26 131.32L147.62 84.11H125.25L150.92 166.89H151.23H173.29H173.6L199.27 84.11H176.9Z",
|
|
32
|
+
fill: "#1A2030"
|
|
33
|
+
}));
|
|
34
|
+
|
|
35
|
+
exports['default'] = LogoSv;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var components_Logo_LogoSv = require('./LogoSv.js');
|
|
7
|
+
var components_Logo_LogoEn = require('./LogoEn.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 getWidth = (locale, width) => {
|
|
14
|
+
if (width) {
|
|
15
|
+
return width;
|
|
16
|
+
}
|
|
17
|
+
return locale === "en" ? 175 : 132;
|
|
18
|
+
};
|
|
19
|
+
const LogoContainer = styled__default['default'].div`
|
|
20
|
+
width: ${({ width }) => width}px;
|
|
21
|
+
`;
|
|
22
|
+
const Logo = ({ locale, width }) => {
|
|
23
|
+
const Logo2 = locale === "en" ? components_Logo_LogoEn['default'] : components_Logo_LogoSv['default'];
|
|
24
|
+
const containerWidth = getWidth(locale, width);
|
|
25
|
+
return /* @__PURE__ */ React.createElement(LogoContainer, {
|
|
26
|
+
width: containerWidth,
|
|
27
|
+
"data-testid": `logo-${locale}`
|
|
28
|
+
}, /* @__PURE__ */ React.createElement(Logo2, null));
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
exports.Logo = Logo;
|
|
32
|
+
exports['default'] = Logo;
|
|
@@ -0,0 +1,99 @@
|
|
|
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 fontSizes = {
|
|
13
|
+
1: {
|
|
14
|
+
size: "2rem",
|
|
15
|
+
lineHeight: "3rem",
|
|
16
|
+
bottom: "2rem",
|
|
17
|
+
fontFamily: theme['default'].typography.fontAlternativeFamily
|
|
18
|
+
},
|
|
19
|
+
2: {
|
|
20
|
+
size: "1.5rem",
|
|
21
|
+
lineHeight: "2.5rem",
|
|
22
|
+
bottom: "1rem",
|
|
23
|
+
fontFamily: theme['default'].typography.fontAlternativeFamily
|
|
24
|
+
},
|
|
25
|
+
3: {
|
|
26
|
+
size: "1rem",
|
|
27
|
+
lineHeight: "1.5rem",
|
|
28
|
+
bottom: "1rem",
|
|
29
|
+
fontFamily: theme['default'].typography.fontBaseFamily
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const Wrapper = styled__default['default'].li`
|
|
33
|
+
list-style-type: none;
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
${({ hasPreamble }) => hasPreamble && "grid-column-end: span 2"};
|
|
37
|
+
|
|
38
|
+
:hover {
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
}
|
|
41
|
+
`;
|
|
42
|
+
const BaseText = styled__default['default'].span`
|
|
43
|
+
font-family: ${({ theme: theme2 }) => theme2.typography.fontAlternativeFamily};
|
|
44
|
+
font-weight: ${({ theme: theme2 }) => theme2.typography.fontAlternativeRegularWeight};
|
|
45
|
+
`;
|
|
46
|
+
const TextContainer = styled__default['default'].div`
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
padding-bottom: ${({ level }) => fontSizes[level].bottom};
|
|
50
|
+
`;
|
|
51
|
+
const Text = styled__default['default'](BaseText)`
|
|
52
|
+
color: ${({ theme: theme2 }) => theme2.colors.text.dark};
|
|
53
|
+
font-size: ${({ level }) => fontSizes[level].size};
|
|
54
|
+
line-height: ${({ level }) => fontSizes[level].lineHeight};
|
|
55
|
+
font-family: ${({ level }) => fontSizes[level].fontFamily};
|
|
56
|
+
|
|
57
|
+
${({ level, theme: theme2 }) => level === 3 && `font-weight: ${theme2.typography.fontAlternativeRegularWeight}`};
|
|
58
|
+
`;
|
|
59
|
+
const Title = styled__default['default'](BaseText)`
|
|
60
|
+
font-size: 0.75rem;
|
|
61
|
+
font-weight: ${({ theme: theme2 }) => theme2.typography.fontAlternativeBoldWeight};
|
|
62
|
+
line-height: 1.25rem;
|
|
63
|
+
color: ${({ theme: theme2 }) => theme2.colors.text.dark};
|
|
64
|
+
text-transform: uppercase;
|
|
65
|
+
margin-bottom: 1.5rem;
|
|
66
|
+
`;
|
|
67
|
+
const Preamble = styled__default['default'](BaseText)`
|
|
68
|
+
font-size: 0.8125rem;
|
|
69
|
+
font-weight: ${({ theme: theme2 }) => theme2.typography.fontBaseRegularWeight};
|
|
70
|
+
line-height: 1.5rem;
|
|
71
|
+
font-family: ${({ theme: theme2 }) => theme2.typography.fontBaseFamily};
|
|
72
|
+
color: ${({ theme: theme2 }) => theme2.colors.text.dark};
|
|
73
|
+
margin-top: ${({ level }) => level === 3 ? "0.25rem" : 0};
|
|
74
|
+
`;
|
|
75
|
+
const MenuItem = ({
|
|
76
|
+
preamble,
|
|
77
|
+
title,
|
|
78
|
+
level,
|
|
79
|
+
component: Component = "li",
|
|
80
|
+
children,
|
|
81
|
+
...props
|
|
82
|
+
}) => {
|
|
83
|
+
const hasPreamble = Boolean(preamble);
|
|
84
|
+
return /* @__PURE__ */ React.createElement(Wrapper, {
|
|
85
|
+
as: Component,
|
|
86
|
+
...props,
|
|
87
|
+
hasPreamble
|
|
88
|
+
}, title && /* @__PURE__ */ React.createElement(Title, null, title), /* @__PURE__ */ React.createElement(TextContainer, {
|
|
89
|
+
level
|
|
90
|
+
}, /* @__PURE__ */ React.createElement(Text, {
|
|
91
|
+
level,
|
|
92
|
+
hasPreamble
|
|
93
|
+
}, children), preamble && /* @__PURE__ */ React.createElement(Preamble, {
|
|
94
|
+
level
|
|
95
|
+
}, preamble)));
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
exports.MenuItem = MenuItem;
|
|
99
|
+
exports['default'] = MenuItem;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React$1 = require('react');
|
|
6
|
+
var reactDom = require('react-dom');
|
|
7
|
+
var reactTransitionGroup = require('react-transition-group');
|
|
8
|
+
var styled = require('styled-components');
|
|
9
|
+
var components_Icons_Close = require('../Icons/Close.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 transitions = styled.css`
|
|
16
|
+
.backgroundTransition-enter {
|
|
17
|
+
opacity: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.backgroundTransition-enter.backgroundTransition-enter-active {
|
|
21
|
+
opacity: 1;
|
|
22
|
+
transition: opacity 0.25s ease-in-out;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.backgroundTransition-exit {
|
|
26
|
+
opacity: 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.backgroundTransition-exit.backgroundTransition-exit-active {
|
|
30
|
+
opacity: 0;
|
|
31
|
+
transition: opacity 0.25s ease-in-out;
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
const Container = styled__default['default'].div`
|
|
35
|
+
${transitions}
|
|
36
|
+
position: fixed;
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 100%;
|
|
39
|
+
top: 0;
|
|
40
|
+
left: 0;
|
|
41
|
+
z-index: 200;
|
|
42
|
+
`;
|
|
43
|
+
const Background = styled__default['default'].div`
|
|
44
|
+
z-index: -1;
|
|
45
|
+
position: absolute;
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 100%;
|
|
48
|
+
background-color: rgba(34, 34, 34, 0.3);
|
|
49
|
+
`;
|
|
50
|
+
const Content = styled__default['default'].div`
|
|
51
|
+
position: relative;
|
|
52
|
+
max-width: 512px;
|
|
53
|
+
padding: 24px 32px 24px 32px;
|
|
54
|
+
background-color: white;
|
|
55
|
+
border-radius: 3px;
|
|
56
|
+
box-shadow: 0px 24px 38px rgba(0, 0, 0, 0.1), 0px 9px 46px rgba(0, 0, 0, 0.09),
|
|
57
|
+
0px 11px 15px rgba(0, 0, 0, 0.15);
|
|
58
|
+
|
|
59
|
+
overflow-y: hidden;
|
|
60
|
+
margin: 1rem;
|
|
61
|
+
margin-top: 50vh;
|
|
62
|
+
transform: translate(0, -50%);
|
|
63
|
+
margin-left: 1rem;
|
|
64
|
+
margin-right: 1rem;
|
|
65
|
+
|
|
66
|
+
@media (min-width: 500px) {
|
|
67
|
+
margin-left: auto;
|
|
68
|
+
margin-right: auto;
|
|
69
|
+
min-width: 355px;
|
|
70
|
+
}
|
|
71
|
+
`;
|
|
72
|
+
const CloseContainer = styled__default['default'].div`
|
|
73
|
+
position: absolute;
|
|
74
|
+
top: 24px;
|
|
75
|
+
right: 32px;
|
|
76
|
+
|
|
77
|
+
:hover {
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
svg {
|
|
82
|
+
width: 1rem;
|
|
83
|
+
height: 1rem;
|
|
84
|
+
}
|
|
85
|
+
`;
|
|
86
|
+
const BodyStyleInjector = styled.createGlobalStyle`
|
|
87
|
+
body {
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
|
|
90
|
+
${typeof window !== "undefined" && window.innerWidth > 1024 && `
|
|
91
|
+
padding-right: 15px !important;
|
|
92
|
+
`}
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
95
|
+
const Transitions = styled.createGlobalStyle`
|
|
96
|
+
${transitions}
|
|
97
|
+
`;
|
|
98
|
+
const Modal = ({
|
|
99
|
+
children,
|
|
100
|
+
isOpen,
|
|
101
|
+
contentStyles,
|
|
102
|
+
withPortal = false,
|
|
103
|
+
onClose
|
|
104
|
+
}) => {
|
|
105
|
+
React$1.useEffect(() => {
|
|
106
|
+
const handleKeyDown = (event) => {
|
|
107
|
+
if (event.key === "Escape") {
|
|
108
|
+
if (isOpen) {
|
|
109
|
+
onClose();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
114
|
+
return () => {
|
|
115
|
+
window.removeEventListener("keydown", handleKeyDown);
|
|
116
|
+
};
|
|
117
|
+
}, [onClose, isOpen]);
|
|
118
|
+
const Component = /* @__PURE__ */ React.createElement(reactTransitionGroup.CSSTransition, {
|
|
119
|
+
in: isOpen,
|
|
120
|
+
mountOnEnter: true,
|
|
121
|
+
unmountOnExit: true,
|
|
122
|
+
timeout: 400,
|
|
123
|
+
classNames: "backgroundTransition"
|
|
124
|
+
}, /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Transitions, null), /* @__PURE__ */ React.createElement(Container, null, /* @__PURE__ */ React.createElement(Background, {
|
|
125
|
+
"data-testid": "background",
|
|
126
|
+
onClick: onClose
|
|
127
|
+
}), /* @__PURE__ */ React.createElement(Content, {
|
|
128
|
+
style: contentStyles
|
|
129
|
+
}, /* @__PURE__ */ React.createElement(CloseContainer, {
|
|
130
|
+
onClick: onClose,
|
|
131
|
+
"data-testid": "close"
|
|
132
|
+
}, /* @__PURE__ */ React.createElement(components_Icons_Close['default'], null)), children), /* @__PURE__ */ React.createElement(BodyStyleInjector, null))));
|
|
133
|
+
return withPortal ? reactDom.createPortal(Component, document.body) : Component;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
exports.Modal = Modal;
|
|
137
|
+
exports['default'] = Modal;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var components_Badge_index = require('../Badge/index.js');
|
|
7
|
+
var components_Button_index = require('../Button/index.js');
|
|
8
|
+
require('../../theme.js');
|
|
9
|
+
require('../Spinner/index.js');
|
|
10
|
+
require('../../typography/ButtonText/index.js');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
15
|
+
|
|
16
|
+
const Container = styled__default['default'].div`
|
|
17
|
+
position: relative;
|
|
18
|
+
display: inline-block;
|
|
19
|
+
`;
|
|
20
|
+
const StyledBadge = styled__default['default'](components_Badge_index.Badge)`
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 0;
|
|
23
|
+
right: 0;
|
|
24
|
+
margin: -10px;
|
|
25
|
+
border: 2px solid white;
|
|
26
|
+
${(props) => props.noPadding && `padding: 0;`}
|
|
27
|
+
`;
|
|
28
|
+
const NotificationButton = (props) => {
|
|
29
|
+
const count = props.badgeProps.notificationAmount || 0;
|
|
30
|
+
const noPadding = count < 10;
|
|
31
|
+
return /* @__PURE__ */ React.createElement(Container, null, /* @__PURE__ */ React.createElement(components_Button_index.Button, {
|
|
32
|
+
...props.buttonProps
|
|
33
|
+
}, props.children), /* @__PURE__ */ React.createElement(StyledBadge, {
|
|
34
|
+
...props.badgeProps,
|
|
35
|
+
noPadding
|
|
36
|
+
}));
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
exports.NotificationButton = NotificationButton;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var reactTransitionGroup = require('react-transition-group');
|
|
7
|
+
var styled = require('styled-components');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
+
|
|
11
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
13
|
+
|
|
14
|
+
const defaultTransitionProps = {
|
|
15
|
+
classNames: "backgroundTransition",
|
|
16
|
+
timeout: {
|
|
17
|
+
enter: 400,
|
|
18
|
+
exit: 400
|
|
19
|
+
},
|
|
20
|
+
mountOnEnter: true,
|
|
21
|
+
unmountOnExit: true
|
|
22
|
+
};
|
|
23
|
+
const Background = styled__default['default'].div`
|
|
24
|
+
position: fixed;
|
|
25
|
+
z-index: 1000;
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
top: 0;
|
|
29
|
+
right: 0;
|
|
30
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
31
|
+
|
|
32
|
+
&.backgroundTransition-enter {
|
|
33
|
+
opacity: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.backgroundTransition-enter.backgroundTransition-enter-active {
|
|
37
|
+
opacity: 1;
|
|
38
|
+
transition: opacity 0.2s ease-in-out;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.backgroundTransition-exit {
|
|
42
|
+
opacity: 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.backgroundTransition-exit.backgroundTransition-exit-active {
|
|
46
|
+
opacity: 0;
|
|
47
|
+
transition: opacity 0.2s ease-in-out;
|
|
48
|
+
}
|
|
49
|
+
`;
|
|
50
|
+
const Overlay = ({
|
|
51
|
+
className,
|
|
52
|
+
isOpen,
|
|
53
|
+
onClick,
|
|
54
|
+
transitionProps = defaultTransitionProps
|
|
55
|
+
}) => {
|
|
56
|
+
const handleClick = () => {
|
|
57
|
+
if (onClick) {
|
|
58
|
+
onClick();
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
return /* @__PURE__ */ React__default['default'].createElement(reactTransitionGroup.CSSTransition, {
|
|
62
|
+
in: isOpen,
|
|
63
|
+
...transitionProps,
|
|
64
|
+
className
|
|
65
|
+
}, /* @__PURE__ */ React__default['default'].createElement(Background, {
|
|
66
|
+
onClick: handleClick
|
|
67
|
+
}));
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
exports['default'] = Overlay;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React$1 = require('react');
|
|
6
|
+
var reactDom = require('react-dom');
|
|
7
|
+
var styled = require('styled-components');
|
|
8
|
+
var reactTransitionGroup = require('react-transition-group');
|
|
9
|
+
var components_OffCanvas_Overlay = require('./Overlay.js');
|
|
10
|
+
var components_OffCanvas_useClickOutside = require('./useClickOutside.js');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
15
|
+
|
|
16
|
+
const defaultAnimationName = "offCanvasAnimation";
|
|
17
|
+
const defaultTransitionProps = {
|
|
18
|
+
timeout: {
|
|
19
|
+
enter: 300,
|
|
20
|
+
exit: 300
|
|
21
|
+
},
|
|
22
|
+
mountOnEnter: true,
|
|
23
|
+
unmountOnExit: true
|
|
24
|
+
};
|
|
25
|
+
const Container = styled__default['default'].div`
|
|
26
|
+
${({
|
|
27
|
+
animationName,
|
|
28
|
+
animationDuration,
|
|
29
|
+
width,
|
|
30
|
+
from,
|
|
31
|
+
backgroundColor,
|
|
32
|
+
theme
|
|
33
|
+
}) => {
|
|
34
|
+
return `
|
|
35
|
+
position: fixed;
|
|
36
|
+
z-index: 1001;
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 100%;
|
|
39
|
+
top: 0;
|
|
40
|
+
${from === "left" ? "left: 0;" : "right: 0;"}
|
|
41
|
+
background-color: ${backgroundColor || theme.colors.background.light};
|
|
42
|
+
width: ${width};
|
|
43
|
+
box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.2);
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
&.${animationName}--right-enter {
|
|
47
|
+
transform: translate3d(${width}, 0, 0);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.${animationName}--right-enter.${animationName}--right-enter-active {
|
|
51
|
+
transform: translate3d(0, 0, 0);
|
|
52
|
+
transition: transform 0.2s ease-in-out;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.${animationName}--right-exit {
|
|
56
|
+
transform: translate3d(0, 0, 0);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.${animationName}--right-exit.${animationName}--right-exit-active {
|
|
60
|
+
transform: translate3d(${width}, 0, 0);
|
|
61
|
+
transition: transform 0.2s ease-in-out;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.${animationName}--left-enter {
|
|
65
|
+
transform: translate3d(-${width}, 0, 0);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.${animationName}--left-enter.${animationName}--left-enter-active {
|
|
69
|
+
transform: translate3d(0, 0, 0);
|
|
70
|
+
transition: transform 0.2s ease-in-out;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.${animationName}--left-exit {
|
|
74
|
+
transform: translate3d(0, 0, 0);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&.${animationName}--left-exit.${animationName}--left-exit-active {
|
|
78
|
+
transform: translate3d(-${width}, 0, 0);
|
|
79
|
+
transition: transform ${animationDuration}ms ease-in-out;
|
|
80
|
+
}
|
|
81
|
+
`;
|
|
82
|
+
}}
|
|
83
|
+
`;
|
|
84
|
+
const Contents = styled__default['default'].div`
|
|
85
|
+
position: relative;
|
|
86
|
+
width: 100%;
|
|
87
|
+
height: 100%;
|
|
88
|
+
overflow-x: hidden;
|
|
89
|
+
overflow-y: auto;
|
|
90
|
+
-webkit-overflow-scrolling: touch;
|
|
91
|
+
`;
|
|
92
|
+
const OffCanvas = ({
|
|
93
|
+
animationName = defaultAnimationName,
|
|
94
|
+
animationDuration = 300,
|
|
95
|
+
backgroundColor,
|
|
96
|
+
backgroundOverlay,
|
|
97
|
+
children,
|
|
98
|
+
from = "right",
|
|
99
|
+
isOpen,
|
|
100
|
+
onClickOutside,
|
|
101
|
+
width = "375px",
|
|
102
|
+
withPortal,
|
|
103
|
+
transitionProps
|
|
104
|
+
}) => {
|
|
105
|
+
const contentRef = React$1.useRef(null);
|
|
106
|
+
components_OffCanvas_useClickOutside.useOutsideClick(contentRef, () => onClickOutside == null ? void 0 : onClickOutside());
|
|
107
|
+
if (backgroundOverlay && !onClickOutside) {
|
|
108
|
+
console.error("Please provide a clickOutside handler when using backgroundOverlay option in OffCanvas component");
|
|
109
|
+
}
|
|
110
|
+
const className = `${animationName}--${from}`;
|
|
111
|
+
const component = /* @__PURE__ */ React.createElement(React.Fragment, null, backgroundOverlay && /* @__PURE__ */ React.createElement(components_OffCanvas_Overlay['default'], {
|
|
112
|
+
isOpen
|
|
113
|
+
}), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(reactTransitionGroup.CSSTransition, {
|
|
114
|
+
in: isOpen,
|
|
115
|
+
className: `${animationName} ${className}`,
|
|
116
|
+
classNames: className,
|
|
117
|
+
...defaultTransitionProps,
|
|
118
|
+
...transitionProps
|
|
119
|
+
}, /* @__PURE__ */ React.createElement(Container, {
|
|
120
|
+
ref: contentRef,
|
|
121
|
+
animationName,
|
|
122
|
+
animationDuration,
|
|
123
|
+
backgroundColor,
|
|
124
|
+
from,
|
|
125
|
+
width
|
|
126
|
+
}, /* @__PURE__ */ React.createElement(Contents, {
|
|
127
|
+
className: `${animationName}-content`
|
|
128
|
+
}, children)))));
|
|
129
|
+
return withPortal ? reactDom.createPortal(component, document.body) : component;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
exports.OffCanvas = OffCanvas;
|
|
133
|
+
exports['default'] = OffCanvas;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
|
|
7
|
+
const useOutsideClick = (ref, callback) => {
|
|
8
|
+
const handleClick = React.useCallback((event) => {
|
|
9
|
+
if (ref.current && !ref.current.contains(event.target)) {
|
|
10
|
+
callback();
|
|
11
|
+
}
|
|
12
|
+
}, [callback, ref]);
|
|
13
|
+
React.useEffect(() => {
|
|
14
|
+
document.addEventListener("mousedown", handleClick);
|
|
15
|
+
return () => {
|
|
16
|
+
document.removeEventListener("mousedown", handleClick);
|
|
17
|
+
};
|
|
18
|
+
}, [handleClick]);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
exports.useOutsideClick = useOutsideClick;
|