@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,156 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import styled, { css } from 'styled-components';
|
|
3
|
+
import theme from '../../theme.js';
|
|
4
|
+
import Spinner from '../Spinner/index.js';
|
|
5
|
+
import { BasicButtonTextStyle, ButtonRegularTextStyle, ButtonLargeTextStyle, ButtonSmallTextStyle } from '../../typography/ButtonText/index.js';
|
|
6
|
+
|
|
7
|
+
/****************************************************************************/
|
|
8
|
+
/* Font styles */
|
|
9
|
+
/****************************************************************************/
|
|
10
|
+
const getFontStyles = (size) => {
|
|
11
|
+
switch (size) {
|
|
12
|
+
case 'smaller':
|
|
13
|
+
return ButtonSmallTextStyle;
|
|
14
|
+
case 'small':
|
|
15
|
+
return ButtonRegularTextStyle;
|
|
16
|
+
case 'regular':
|
|
17
|
+
return ButtonRegularTextStyle;
|
|
18
|
+
case 'large':
|
|
19
|
+
return ButtonLargeTextStyle;
|
|
20
|
+
default:
|
|
21
|
+
return ButtonRegularTextStyle;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
/****************************************************************************/
|
|
25
|
+
/* Size styles */
|
|
26
|
+
/****************************************************************************/
|
|
27
|
+
const smallerSizeStyles = (isLoading) => `
|
|
28
|
+
min-width: 76px;
|
|
29
|
+
padding: ${isLoading ? '7px 10px 5.5px' : '10px 10px 8px'};
|
|
30
|
+
`;
|
|
31
|
+
const smallSizeStyles = (isLoading) => `
|
|
32
|
+
min-width: 76px;
|
|
33
|
+
padding: ${isLoading ? '8px 10px 6px' : '11px 10px 9px'};
|
|
34
|
+
`;
|
|
35
|
+
const regularSizeStyles = (isLoading) => `
|
|
36
|
+
min-width: 250px;
|
|
37
|
+
padding: ${isLoading ? '7px 22px 5px' : '15px 22px 13px'};
|
|
38
|
+
`;
|
|
39
|
+
const largeSizeStyles = (isLoading) => `
|
|
40
|
+
min-width: 250px;
|
|
41
|
+
padding: ${isLoading ? '9px 22px 6px' : '21px 22px 19px'};
|
|
42
|
+
`;
|
|
43
|
+
/****************************************************************************/
|
|
44
|
+
/* Color styles */
|
|
45
|
+
/****************************************************************************/
|
|
46
|
+
const solidColorStyles = (theme) => (color) => `
|
|
47
|
+
color: white;
|
|
48
|
+
border-color: ${theme.colors[color].main};
|
|
49
|
+
background-color: ${theme.colors[color].main};
|
|
50
|
+
|
|
51
|
+
:hover {
|
|
52
|
+
border-color: ${theme.colors[color].light};
|
|
53
|
+
background-color: ${theme.colors[color].light};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:active {
|
|
57
|
+
border-color: ${theme.colors[color].dark};
|
|
58
|
+
background-color: ${theme.colors[color].dark}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:focus {
|
|
62
|
+
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 2px ${theme.colors[color].dark};
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
65
|
+
const outlineColorStyles = (theme) => (color) => `
|
|
66
|
+
color: ${theme.colors[color].main};
|
|
67
|
+
border-color: ${theme.colors[color].main};
|
|
68
|
+
background-color: transparent;
|
|
69
|
+
|
|
70
|
+
:hover {
|
|
71
|
+
color: white;
|
|
72
|
+
border-color: ${theme.colors[color].light};
|
|
73
|
+
background-color: ${theme.colors[color].light};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:active {
|
|
77
|
+
color: white;
|
|
78
|
+
border-color: ${theme.colors[color].dark};
|
|
79
|
+
background-color: ${theme.colors[color].dark};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:focus {
|
|
83
|
+
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 2px ${theme.colors[color].dark};
|
|
84
|
+
}
|
|
85
|
+
`;
|
|
86
|
+
const flatColorStyles = (theme) => (color) => `
|
|
87
|
+
color: ${theme.colors[color].main};
|
|
88
|
+
border-color: transparent;
|
|
89
|
+
background-color: transparent;
|
|
90
|
+
|
|
91
|
+
:hover {
|
|
92
|
+
color: ${theme.colors[color].dark};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:active {
|
|
96
|
+
color: ${theme.colors[color].light};
|
|
97
|
+
}
|
|
98
|
+
`;
|
|
99
|
+
const disabledCommonColorStyles = (theme) => `
|
|
100
|
+
background-color: ${theme.colors.gray.light4};
|
|
101
|
+
border-color: ${theme.colors.gray.light4};
|
|
102
|
+
color: ${theme.colors.gray.light1};
|
|
103
|
+
cursor: not-allowed;
|
|
104
|
+
`;
|
|
105
|
+
const disabledFlatColorStyles = (theme) => `
|
|
106
|
+
border-color: transparent;
|
|
107
|
+
background-color: transparent;
|
|
108
|
+
color: ${theme.colors.gray.light1};
|
|
109
|
+
cursor: not-allowed;
|
|
110
|
+
`;
|
|
111
|
+
/****************************************************************************/
|
|
112
|
+
/* Root styles */
|
|
113
|
+
/****************************************************************************/
|
|
114
|
+
const Root = styled.button `
|
|
115
|
+
outline: none;
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
user-select: none;
|
|
118
|
+
position: relative;
|
|
119
|
+
white-space: nowrap;
|
|
120
|
+
border: 2px solid transparent;
|
|
121
|
+
border-radius: 3px;
|
|
122
|
+
width: ${({ fullWidth }) => fullWidth && '100%'};
|
|
123
|
+
|
|
124
|
+
${BasicButtonTextStyle}
|
|
125
|
+
${({ size }) => getFontStyles(size)}
|
|
126
|
+
${({ size, isLoading }) => css `
|
|
127
|
+
${size === 'smaller' && smallerSizeStyles(isLoading)}
|
|
128
|
+
${size === 'small' && smallSizeStyles(isLoading)}
|
|
129
|
+
${size === 'regular' && regularSizeStyles(isLoading)}
|
|
130
|
+
${size === 'large' && largeSizeStyles(isLoading)}
|
|
131
|
+
`}
|
|
132
|
+
background-color: transparent;
|
|
133
|
+
transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease;
|
|
134
|
+
${({ variant, color, disabled, theme }) => css `
|
|
135
|
+
${!disabled && variant === 'solid' && solidColorStyles(theme)(color)}
|
|
136
|
+
${!disabled && variant === 'outline' && outlineColorStyles(theme)(color)}
|
|
137
|
+
${!disabled && variant === 'flat' && flatColorStyles(theme)(color)}
|
|
138
|
+
${disabled && variant !== 'flat' && disabledCommonColorStyles(theme)}
|
|
139
|
+
${disabled && variant === 'flat' && disabledFlatColorStyles(theme)}
|
|
140
|
+
`}
|
|
141
|
+
`;
|
|
142
|
+
/****************************************************************************/
|
|
143
|
+
/* Main component */
|
|
144
|
+
/****************************************************************************/
|
|
145
|
+
const LoadingSpinner = styled(Spinner) ``;
|
|
146
|
+
const spinnerSizes = {
|
|
147
|
+
smaller: 1,
|
|
148
|
+
small: 1,
|
|
149
|
+
regular: 1.5,
|
|
150
|
+
large: 1.75,
|
|
151
|
+
};
|
|
152
|
+
const Button = ({ size = 'small', color = 'primary', variant = 'solid', fullWidth = false, isDisabled = false, isLoading = false, children, ...props }) => {
|
|
153
|
+
return (jsx(Root, Object.assign({}, props, { color: color, disabled: isDisabled || isLoading, fullWidth: fullWidth, theme: theme, variant: variant, size: size, isLoading: isLoading }, { children: isLoading ? (jsx(LoadingSpinner, { color: "neutral", size: spinnerSizes[size] }, void 0)) : (children) }), void 0));
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
export { Button, Button as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import theme from '../../theme.js';
|
|
4
|
+
|
|
5
|
+
const CardWrapper = styled.div `
|
|
6
|
+
background: ${theme.colors.background.light};
|
|
7
|
+
${({ boxShadow }) => boxShadow && `box-shadow: ${boxShadow};`}
|
|
8
|
+
${({ boxShadow }) => !boxShadow &&
|
|
9
|
+
`box-shadow: 0 2px 4px rgba(0, 0, 0, 10%), 0 2px 4px rgba(0, 0, 0, 9%),
|
|
10
|
+
0 1px 5px rgba(0, 0, 0, 15%);`}
|
|
11
|
+
border-radius: 0 0 3px 3px;
|
|
12
|
+
${({ topBorder }) => topBorder && `border-top: 4px solid ${topBorder};`}
|
|
13
|
+
`;
|
|
14
|
+
const Card = ({ ...props }) => {
|
|
15
|
+
return (jsx(CardWrapper, Object.assign({ topBorder: props.topBorder, boxShadow: props.boxShadow }, { children: props.children }), void 0));
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { Card, Card as default };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import styled, { css } from 'styled-components';
|
|
3
|
+
import { generateNameHash } from '../../shared/helpers.js';
|
|
4
|
+
import theme from '../../theme.js';
|
|
5
|
+
import IconButton from '../IconButton.js';
|
|
6
|
+
import CheckIcon from '../Icons/CheckIcon.js';
|
|
7
|
+
|
|
8
|
+
const regularSize = css `
|
|
9
|
+
width: 24px;
|
|
10
|
+
height: 24px;
|
|
11
|
+
|
|
12
|
+
svg {
|
|
13
|
+
width: 15px;
|
|
14
|
+
height: 15px;
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
const largeSize = css `
|
|
18
|
+
width: 32px;
|
|
19
|
+
height: 32px;
|
|
20
|
+
|
|
21
|
+
svg {
|
|
22
|
+
width: 20px;
|
|
23
|
+
height: 20px;
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
const sizes = {
|
|
27
|
+
regular: regularSize,
|
|
28
|
+
large: largeSize,
|
|
29
|
+
};
|
|
30
|
+
const disabledStyle = css `
|
|
31
|
+
cursor: default;
|
|
32
|
+
border: 2px solid ${theme.colors.gray.light1};
|
|
33
|
+
`;
|
|
34
|
+
const checkedStyle = (color) => css `
|
|
35
|
+
svg {
|
|
36
|
+
fill: #fefefe;
|
|
37
|
+
opacity: 1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:hover {
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
background: ${theme.colors[color].main};
|
|
44
|
+
border: 2px solid ${theme.colors[color].main};
|
|
45
|
+
`;
|
|
46
|
+
const checkedDisabledStyle = css `
|
|
47
|
+
background: ${theme.colors.gray.light1};
|
|
48
|
+
`;
|
|
49
|
+
const HiddenCheckbox = styled.input.attrs({ type: 'checkbox' }) `
|
|
50
|
+
display: none;
|
|
51
|
+
`;
|
|
52
|
+
const CheckboxWrapper = styled.label `
|
|
53
|
+
box-sizing: border-box;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
display: flex;
|
|
56
|
+
position: relative;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
|
|
60
|
+
border: 2px solid ${theme.colors.gray.light1};
|
|
61
|
+
border-radius: 3px;
|
|
62
|
+
|
|
63
|
+
${props => sizes[props.size]};
|
|
64
|
+
|
|
65
|
+
svg {
|
|
66
|
+
opacity: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
${props => props.isChecked && checkedStyle(props.color)};
|
|
70
|
+
${props => props.isDisabled && disabledStyle};
|
|
71
|
+
|
|
72
|
+
${props => props.isChecked && props.isDisabled && checkedDisabledStyle};
|
|
73
|
+
`;
|
|
74
|
+
const CheckBox = ({ name = generateNameHash('check-box'), isDisabled = false, size = 'regular', checked, color = 'secondary', onClick, ...rest }) => (jsxs(IconButton, Object.assign({ onClick: onClick, isActive: checked, isDisabled: isDisabled, color: color }, { children: [jsx(HiddenCheckbox, Object.assign({}, rest, { "data-validate": "checked", name: name, id: name, disabled: isDisabled }), void 0), jsx(CheckboxWrapper, Object.assign({ htmlFor: name, size: size, color: color, isChecked: checked, isDisabled: isDisabled }, { children: jsx(CheckIcon, {}, void 0) }), void 0)] }), void 0));
|
|
75
|
+
|
|
76
|
+
export { CheckBox, CheckBox as default };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { fadedColor } from '../../shared/helpers.js';
|
|
4
|
+
import theme from '../../theme.js';
|
|
5
|
+
|
|
6
|
+
const getBackgroundColor = ({ isDisabled, isActive, activeColor, }) => {
|
|
7
|
+
if (isActive && isDisabled) {
|
|
8
|
+
return fadedColor(theme.colors[activeColor].main, 0.5);
|
|
9
|
+
}
|
|
10
|
+
if (isDisabled) {
|
|
11
|
+
return theme.colors.gray.light4;
|
|
12
|
+
}
|
|
13
|
+
if (isActive) {
|
|
14
|
+
return theme.colors[activeColor].main;
|
|
15
|
+
}
|
|
16
|
+
return 'transparent';
|
|
17
|
+
};
|
|
18
|
+
const getColor = ({ isActive, isDisabled }) => {
|
|
19
|
+
if (isActive || (isActive && isDisabled)) {
|
|
20
|
+
return theme.colors.text.light;
|
|
21
|
+
}
|
|
22
|
+
if (isDisabled) {
|
|
23
|
+
return theme.colors.text.disabled;
|
|
24
|
+
}
|
|
25
|
+
return theme.colors.text.dark;
|
|
26
|
+
};
|
|
27
|
+
const getFontSize = (size = 'smaller') => {
|
|
28
|
+
const sizes = {
|
|
29
|
+
smaller: '0.8125rem',
|
|
30
|
+
small: '1rem',
|
|
31
|
+
regular: '1rem',
|
|
32
|
+
large: '1.25rem',
|
|
33
|
+
};
|
|
34
|
+
return sizes[size];
|
|
35
|
+
};
|
|
36
|
+
const Item = styled.div `
|
|
37
|
+
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
38
|
+
font-size: ${({ size }) => getFontSize(size)};
|
|
39
|
+
font-weight: ${({ theme }) => theme.typography.fontAlternativeBoldWeight};
|
|
40
|
+
line-height: 1.25;
|
|
41
|
+
letter-spacing: 0.1px;
|
|
42
|
+
display: inline-block;
|
|
43
|
+
cursor: ${({ isDisabled }) => (!isDisabled ? 'pointer' : 'auto')};
|
|
44
|
+
align-items: center;
|
|
45
|
+
background: ${getBackgroundColor};
|
|
46
|
+
color: ${getColor};
|
|
47
|
+
justify-content: center;
|
|
48
|
+
border-width: 1px;
|
|
49
|
+
border-style: solid;
|
|
50
|
+
border-color: ${({ isActive, isDisabled }) => !isActive && !isDisabled ? theme.colors.background.dark : 'transparent'};
|
|
51
|
+
border-radius: 1.293rem;
|
|
52
|
+
`;
|
|
53
|
+
const ContentWrapper = styled.span `
|
|
54
|
+
padding: 0.5rem 1rem;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
text-align: center;
|
|
59
|
+
`;
|
|
60
|
+
const Chip = ({ activeColor = 'primary', children, component = 'div', isActive, isDisabled, onClick, size, ...props }) => {
|
|
61
|
+
const handleClick = (e) => {
|
|
62
|
+
if (!isDisabled && onClick) {
|
|
63
|
+
onClick(e);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
return (jsx(Item, Object.assign({}, props, { as: component, activeColor: activeColor, isDisabled: isDisabled, isActive: isActive, size: size }, { children: jsx(ContentWrapper, Object.assign({ onClick: handleClick }, { children: children }), void 0) }), void 0));
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export { Chip, Chip as default };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import Arrow$1 from '../Icons/Arrow.js';
|
|
4
|
+
import theme from '../../theme.js';
|
|
5
|
+
import { BodyText } from '../../typography/BodyText/index.js';
|
|
6
|
+
import { formatMonthTitle } from './localeUtils.js';
|
|
7
|
+
|
|
8
|
+
const NavBarWrapper = styled.div `
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
`;
|
|
12
|
+
const NavTitle = styled(BodyText) `
|
|
13
|
+
color: ${theme.colors.text.dark};
|
|
14
|
+
`;
|
|
15
|
+
const NavButton = styled.button `
|
|
16
|
+
appearance: none;
|
|
17
|
+
background-color: transparent;
|
|
18
|
+
border: 0;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
font-family: inherit;
|
|
21
|
+
outline: none;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
`;
|
|
25
|
+
const Arrow = styled(Arrow$1) `
|
|
26
|
+
width: 16px;
|
|
27
|
+
height: 16px;
|
|
28
|
+
fill: ${theme.colors.gray.dark3};
|
|
29
|
+
`;
|
|
30
|
+
const BackArrow = styled(Arrow) `
|
|
31
|
+
transform: rotate(90deg);
|
|
32
|
+
`;
|
|
33
|
+
const ForwardArrow = styled(Arrow) `
|
|
34
|
+
transform: rotate(-90deg);
|
|
35
|
+
`;
|
|
36
|
+
const DayPickerNavBar = ({ month, onPreviousClick, onNextClick, locale, }) => (jsxs(NavBarWrapper, { children: [jsx(NavButton, Object.assign({ onClick: () => onPreviousClick() }, { children: jsx(BackArrow, { title: "prev-month" }, void 0) }), void 0), jsx(NavTitle, Object.assign({ as: "h3" }, { children: formatMonthTitle(month, locale) }), void 0), jsx(NavButton, Object.assign({ onClick: () => onNextClick() }, { children: jsx(ForwardArrow, { title: "next-month" }, void 0) }), void 0)] }, void 0));
|
|
37
|
+
|
|
38
|
+
export { DayPickerNavBar as default };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import 'react-day-picker/lib/style.css';
|
|
3
|
+
import ReactDayPicker from 'react-day-picker';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import theme from '../../theme.js';
|
|
6
|
+
import DayPickerNavBar from './DayPickerNavBar.js';
|
|
7
|
+
import { MONTHS, WEEKDAYS_LONG, WEEKDAYS_SHORT, FIRST_DAY_OF_THE_WEEK } from './localeUtils.js';
|
|
8
|
+
import '../Icons/Arrow.js';
|
|
9
|
+
import '../../typography/BodyText/index.js';
|
|
10
|
+
|
|
11
|
+
const DayPickerWrapper = styled.div `
|
|
12
|
+
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
13
|
+
.DayPicker-wrapper {
|
|
14
|
+
&:focus {
|
|
15
|
+
outline: none;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.DayPicker-Weekday {
|
|
19
|
+
color: ${({ theme }) => theme.colors.gray.light1};
|
|
20
|
+
}
|
|
21
|
+
.DayPicker-Day {
|
|
22
|
+
font-size: 12px;
|
|
23
|
+
padding: 14px;
|
|
24
|
+
font-weight: ${({ theme }) => theme.typography.fontAlternativeBoldWeight};
|
|
25
|
+
color: ${({ theme }) => theme.colors.text.dark};
|
|
26
|
+
&:focus {
|
|
27
|
+
outline: none;
|
|
28
|
+
box-shadow: 0 0 4px ${theme.colors.gray.dark3};
|
|
29
|
+
}
|
|
30
|
+
&:not(.DayPicker--interactionDisabled):not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside) {
|
|
31
|
+
&:focus {
|
|
32
|
+
box-shadow: 0 0 4px ${theme.colors.gray.dark3};
|
|
33
|
+
}
|
|
34
|
+
&:hover {
|
|
35
|
+
background-color: rgba(253, 171, 74, 0.25);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
&.DayPicker-Day--disabled {
|
|
39
|
+
color: ${theme.colors.gray.dark3};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
const modifiersStyles = {
|
|
44
|
+
selected: {
|
|
45
|
+
color: theme.colors.text.light,
|
|
46
|
+
background: theme.colors.primary.main,
|
|
47
|
+
fontWeight: 700,
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
const DayPicker = ({ locale = 'sv', ...props }) => {
|
|
51
|
+
return (jsx(DayPickerWrapper, { children: jsx(ReactDayPicker, Object.assign({}, props, { locale: locale, months: MONTHS[locale], weekdaysLong: WEEKDAYS_LONG[locale], weekdaysShort: WEEKDAYS_SHORT[locale], firstDayOfWeek: FIRST_DAY_OF_THE_WEEK[locale], navbarElement: navProps => (jsx(DayPickerNavBar, Object.assign({}, navProps, { locale: locale }), void 0)), captionElement: jsx("div", {}, void 0), modifiersStyles: modifiersStyles }), void 0) }, void 0));
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export { DayPicker, DayPicker as default };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const MONTHS = {
|
|
2
|
+
sv: [
|
|
3
|
+
'Januari',
|
|
4
|
+
'Februari',
|
|
5
|
+
'Mars',
|
|
6
|
+
'April',
|
|
7
|
+
'Maj',
|
|
8
|
+
'Juni',
|
|
9
|
+
'Juli',
|
|
10
|
+
'Augusti',
|
|
11
|
+
'September',
|
|
12
|
+
'Oktober',
|
|
13
|
+
'November',
|
|
14
|
+
'December',
|
|
15
|
+
],
|
|
16
|
+
en: [
|
|
17
|
+
'January',
|
|
18
|
+
'February',
|
|
19
|
+
'March',
|
|
20
|
+
'April',
|
|
21
|
+
'May',
|
|
22
|
+
'June',
|
|
23
|
+
'July',
|
|
24
|
+
'August',
|
|
25
|
+
'September',
|
|
26
|
+
'October',
|
|
27
|
+
'November',
|
|
28
|
+
'December',
|
|
29
|
+
],
|
|
30
|
+
};
|
|
31
|
+
const WEEKDAYS_LONG = {
|
|
32
|
+
sv: ['Söndag', 'Måndag', 'Tisdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lördag'],
|
|
33
|
+
en: [
|
|
34
|
+
'Sunday',
|
|
35
|
+
'Monday',
|
|
36
|
+
'Tuesday',
|
|
37
|
+
'Wednesday',
|
|
38
|
+
'Thursday',
|
|
39
|
+
'Friday',
|
|
40
|
+
'Saturday',
|
|
41
|
+
],
|
|
42
|
+
};
|
|
43
|
+
const WEEKDAYS_SHORT = {
|
|
44
|
+
sv: ['Sö', 'Må', 'Ti', 'On', 'To', 'Fr', 'Lö'],
|
|
45
|
+
en: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
|
|
46
|
+
};
|
|
47
|
+
const FIRST_DAY_OF_THE_WEEK = { sv: 1, en: 1 };
|
|
48
|
+
const formatMonthTitle = (d, locale = 'sv') => {
|
|
49
|
+
return `${MONTHS[locale][d.getMonth()]} ${d.getFullYear()}`;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export { FIRST_DAY_OF_THE_WEEK, MONTHS, WEEKDAYS_LONG, WEEKDAYS_SHORT, formatMonthTitle };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { mq } from '../../shared/media-queries.js';
|
|
4
|
+
import { Button } from '../Button/index.js';
|
|
5
|
+
import { Modal } from '../Modal/index.js';
|
|
6
|
+
import { TinyTitle } from '../../typography/Heading/index.js';
|
|
7
|
+
import '../../theme.js';
|
|
8
|
+
import '../Spinner/index.js';
|
|
9
|
+
import '../../typography/ButtonText/index.js';
|
|
10
|
+
import 'react';
|
|
11
|
+
import 'react-dom';
|
|
12
|
+
import 'react-transition-group';
|
|
13
|
+
import '../Icons/Close.js';
|
|
14
|
+
|
|
15
|
+
const Content = styled.div `
|
|
16
|
+
padding-top: 1rem;
|
|
17
|
+
`;
|
|
18
|
+
const Header = styled.div `
|
|
19
|
+
top: 20px;
|
|
20
|
+
left: 32px;
|
|
21
|
+
position: absolute;
|
|
22
|
+
`;
|
|
23
|
+
const Title = styled(TinyTitle) `
|
|
24
|
+
font-weight: ${({ theme }) => theme.typography.fontAlternativeRegularWeight};
|
|
25
|
+
margin: 0;
|
|
26
|
+
`;
|
|
27
|
+
const ButtonWrapper = styled.div `
|
|
28
|
+
display: flex;
|
|
29
|
+
justify-content: space-between;
|
|
30
|
+
${mq('tablet')} {
|
|
31
|
+
justify-content: flex-start;
|
|
32
|
+
}
|
|
33
|
+
overflow-x: hidden;
|
|
34
|
+
`;
|
|
35
|
+
const SecondaryActionButton = styled(Button) `
|
|
36
|
+
overflow-x: hidden;
|
|
37
|
+
margin-right: 2rem;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
width: 100%;
|
|
40
|
+
max-width: 110px;
|
|
41
|
+
`;
|
|
42
|
+
const PrimaryActionButton = styled(Button) `
|
|
43
|
+
justify-content: center;
|
|
44
|
+
width: 100%;
|
|
45
|
+
max-width: 245px;
|
|
46
|
+
`;
|
|
47
|
+
const Dialog = ({ isOpen, title, children, modalStyles, titleStyles, primaryButtonText, primaryButtonStyles, secondaryButtonStyles, secondaryButtonText, primaryButtonAction, secondaryButtonAction, onClose, }) => {
|
|
48
|
+
return (jsxs(Modal, Object.assign({ contentStyles: modalStyles, isOpen: isOpen, onClose: onClose }, { children: [title && (jsx(Header, { children: jsx(Title, Object.assign({ style: titleStyles }, { children: title }), void 0) }, void 0)), jsx(Content, { children: children }, void 0), jsxs(ButtonWrapper, { children: [secondaryButtonAction && (jsx(SecondaryActionButton, Object.assign({ style: secondaryButtonStyles, onClick: secondaryButtonAction, variant: "outline", color: "neutral" }, { children: secondaryButtonText }), void 0)), primaryButtonAction && (jsx(PrimaryActionButton, Object.assign({ style: primaryButtonStyles, onClick: primaryButtonAction, variant: "solid", color: "success" }, { children: primaryButtonText }), void 0))] }, void 0)] }), void 0));
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export { Dialog, Dialog as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
const ErrorContainer = styled.div `
|
|
5
|
+
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
6
|
+
font-weight: ${({ theme }) => theme.typography.fontAlternativeRegularWeight};
|
|
7
|
+
background: ${({ theme }) => theme.colors.error.main};
|
|
8
|
+
color: white;
|
|
9
|
+
border-radius: 0.25rem;
|
|
10
|
+
font-size: 13px;
|
|
11
|
+
padding: 10px;
|
|
12
|
+
${({ centered }) => centered && `text-align: center;`}
|
|
13
|
+
`;
|
|
14
|
+
const ErrorMessage = ({ children, centered, ...props }) => (jsx(ErrorContainer, Object.assign({ centered: centered }, props, { children: children }), void 0));
|
|
15
|
+
|
|
16
|
+
export { ErrorMessage, ErrorMessage as default };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const activePadding = '0.5rem';
|
|
4
|
+
const activeStyles = (translateY) => css `
|
|
5
|
+
background-color: ${props => props.theme.colors.background.light};
|
|
6
|
+
transform: scale(0.75) translateY(${translateY});
|
|
7
|
+
transform-origin: 0 0;
|
|
8
|
+
padding: 0 ${activePadding};
|
|
9
|
+
left: ${activePadding};
|
|
10
|
+
`;
|
|
11
|
+
const focusStyles = css `
|
|
12
|
+
color: ${props => props.theme.colors.text.dark};
|
|
13
|
+
`;
|
|
14
|
+
const disabledStyles = css `
|
|
15
|
+
color: ${props => props.theme.colors.gray.light1};
|
|
16
|
+
background-color: ${props => props.theme.colors.background.light};
|
|
17
|
+
`;
|
|
18
|
+
const errorStyles = css `
|
|
19
|
+
color: ${props => props.theme.colors.error.main};
|
|
20
|
+
`;
|
|
21
|
+
const centerStyles = css `
|
|
22
|
+
text-align: center;
|
|
23
|
+
width: 100%;
|
|
24
|
+
left: 0;
|
|
25
|
+
`;
|
|
26
|
+
// eslint-disable-next-line prettier/prettier
|
|
27
|
+
const Label = styled.div `
|
|
28
|
+
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
29
|
+
pointer-events: none;
|
|
30
|
+
position: absolute;
|
|
31
|
+
z-index: 1;
|
|
32
|
+
top: ${props => (props.height ? `${props.height}rem` : '0.9rem')};
|
|
33
|
+
|
|
34
|
+
/* Left padding on input + one character size */
|
|
35
|
+
left: calc(0.75rem + 2px);
|
|
36
|
+
transition: 150ms;
|
|
37
|
+
|
|
38
|
+
/* Text styles */
|
|
39
|
+
height: 16px;
|
|
40
|
+
line-height: 16px;
|
|
41
|
+
font-size: 16px;
|
|
42
|
+
|
|
43
|
+
color: ${props => props.theme.colors.gray.dark1};
|
|
44
|
+
|
|
45
|
+
${props => props.centered && centerStyles}
|
|
46
|
+
${props => (props.hasValue || props.isFocused) &&
|
|
47
|
+
activeStyles(props.height ? `-${(props.height + 0.25) * 1.35}rem` : '-1.75rem')}
|
|
48
|
+
${props => props.isFocused && focusStyles}
|
|
49
|
+
${props => props.disabled && disabledStyles}
|
|
50
|
+
${props => props.hasError && errorStyles}
|
|
51
|
+
`;
|
|
52
|
+
|
|
53
|
+
export { Label };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { mq } from '../../shared/media-queries.js';
|
|
4
|
+
|
|
5
|
+
const IconWrapper = styled.button `
|
|
6
|
+
appearance: none;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
background-color: transparent;
|
|
9
|
+
border: 0;
|
|
10
|
+
outline: none;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
margin-right: 1.5rem;
|
|
14
|
+
margin-left: auto;
|
|
15
|
+
${mq('laptop')} {
|
|
16
|
+
display: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
svg {
|
|
20
|
+
width: 1.5rem;
|
|
21
|
+
height: 1.5rem;
|
|
22
|
+
fill: ${({ theme }) => theme.colors.text.dark};
|
|
23
|
+
}
|
|
24
|
+
span {
|
|
25
|
+
display: none;
|
|
26
|
+
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
27
|
+
font-weight: ${({ theme }) => theme.typography.fontBaseBoldWeight};
|
|
28
|
+
font-size: 1rem;
|
|
29
|
+
margin-right: 0.75rem;
|
|
30
|
+
|
|
31
|
+
${mq('tablet')} {
|
|
32
|
+
display: inline;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
const Hamburger = ({ onClick = () => { }, text }) => (jsxs(IconWrapper, Object.assign({ onClick: onClick }, { children: [jsx("span", { children: text }, void 0), jsxs("svg", { children: [jsx("symbol", Object.assign({ id: "icon-hamburger", viewBox: "0 0 16 12" }, { children: jsx("path", { d: "M0 0h16v2H0zm0 5h16v2H0zm0 5h16v2H0z" }, void 0) }), void 0), jsx("use", { xlinkHref: "#icon-hamburger" }, void 0)] }, void 0)] }), void 0));
|
|
37
|
+
|
|
38
|
+
export { Hamburger as default };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { mq } from '../../shared/media-queries.js';
|
|
4
|
+
import theme from '../../theme.js';
|
|
5
|
+
|
|
6
|
+
const LinkItem = styled.li `
|
|
7
|
+
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
8
|
+
font-weight: ${({ theme }) => theme.typography.fontAlternativeRegularWeight};
|
|
9
|
+
font-size: 1rem;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
border-radius: 0.25rem;
|
|
14
|
+
|
|
15
|
+
&:last-child {
|
|
16
|
+
margin-right: 0;
|
|
17
|
+
}
|
|
18
|
+
&:nth-child(n + 4) {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
${mq('laptop')} {
|
|
23
|
+
&:nth-child(n + 4) {
|
|
24
|
+
display: inherit;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
const CommonLink = styled.a `
|
|
29
|
+
border-radius: 0.25rem;
|
|
30
|
+
padding: 0.75rem 1.5rem;
|
|
31
|
+
transition: 200ms;
|
|
32
|
+
color: ${theme.colors.text.dark};
|
|
33
|
+
text-decoration: none;
|
|
34
|
+
|
|
35
|
+
&:hover,
|
|
36
|
+
&:active {
|
|
37
|
+
color: ${theme.colors.primary.main};
|
|
38
|
+
background: ${theme.colors.gray.light4};
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
const Link = ({ to, component, text, ...rest }) => (jsx(LinkItem, { children: component || (jsx(CommonLink, Object.assign({ href: to }, rest, { children: text }), void 0)) }, void 0));
|
|
42
|
+
|
|
43
|
+
export { Link as default };
|