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