@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
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { useEffect } from 'react';
|
|
2
|
-
import styled, { css } from 'styled-components';
|
|
3
|
-
import theme from '../../theme.js';
|
|
4
|
-
import CheckCircle from '../Icons/CheckCircle.js';
|
|
5
|
-
import Close from '../Icons/Close.js';
|
|
6
|
-
import ErrorCircle from '../Icons/ErrorCircle.js';
|
|
7
|
-
import InfoCircle from '../Icons/InfoCircle.js';
|
|
8
|
-
import { CSSTransition } from 'react-transition-group';
|
|
9
|
-
|
|
10
|
-
const verticalStyles = {
|
|
11
|
-
top: css`
|
|
12
|
-
top: 0;
|
|
13
|
-
`,
|
|
14
|
-
bottom: css`
|
|
15
|
-
bottom: 0;
|
|
16
|
-
`
|
|
17
|
-
};
|
|
18
|
-
const horizontalStyles = {
|
|
19
|
-
right: css`
|
|
20
|
-
right: 0;
|
|
21
|
-
`,
|
|
22
|
-
center: css`
|
|
23
|
-
left: 50%;
|
|
24
|
-
transform: translate(-50%, 0);
|
|
25
|
-
`,
|
|
26
|
-
left: css`
|
|
27
|
-
left: 0;
|
|
28
|
-
`
|
|
29
|
-
};
|
|
30
|
-
const animationDuration = 200;
|
|
31
|
-
const transitionClassName = "anim";
|
|
32
|
-
const Container = styled.div`
|
|
33
|
-
font-family: ${({ theme: theme2 }) => theme2.typography.fontBaseFamily};
|
|
34
|
-
position: fixed;
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
|
|
38
|
-
line-height: 1rem;
|
|
39
|
-
margin: 1rem;
|
|
40
|
-
|
|
41
|
-
max-width: 630px;
|
|
42
|
-
|
|
43
|
-
border-radius: 0.4rem;
|
|
44
|
-
padding: 1.15rem 1.25rem;
|
|
45
|
-
|
|
46
|
-
font-weight: ${({ theme: theme2 }) => theme2.typography.fontBaseBoldWeight};
|
|
47
|
-
font-size: 0.875rem;
|
|
48
|
-
|
|
49
|
-
box-shadow: ${theme.elevations.elevation8};
|
|
50
|
-
background-color: ${(props) => props.color !== "none" ? theme.colors[props.color].main : theme.colors.background.light};
|
|
51
|
-
color: ${(props) => props.color !== "none" ? theme.colors.text.light : theme.colors.text.dark};
|
|
52
|
-
|
|
53
|
-
${(props) => verticalStyles[props.origin.vertical || "bottom"]}
|
|
54
|
-
${(props) => horizontalStyles[props.origin.horizontal || "left"]}
|
|
55
|
-
|
|
56
|
-
transition: opacity ${animationDuration}ms ease-in;
|
|
57
|
-
|
|
58
|
-
&.${transitionClassName}-enter {
|
|
59
|
-
opacity: 0;
|
|
60
|
-
}
|
|
61
|
-
&.${transitionClassName}-enter-active {
|
|
62
|
-
opacity: 1;
|
|
63
|
-
}
|
|
64
|
-
&.${transitionClassName}-exit {
|
|
65
|
-
opacity: 1;
|
|
66
|
-
}
|
|
67
|
-
&.${transitionClassName}-exit-active {
|
|
68
|
-
opacity: 0;
|
|
69
|
-
}
|
|
70
|
-
`;
|
|
71
|
-
const Icon = styled.div`
|
|
72
|
-
display: inline-flex;
|
|
73
|
-
margin: -0.25rem 0;
|
|
74
|
-
margin-right: 0.75rem;
|
|
75
|
-
|
|
76
|
-
${(props) => props.type === "text" && "margin-right: 0;"}
|
|
77
|
-
|
|
78
|
-
svg {
|
|
79
|
-
width: 1.5rem;
|
|
80
|
-
height: 1.5rem;
|
|
81
|
-
fill: ${(props) => props.color !== "none" ? theme.colors.background.light : theme.colors.background.dark};
|
|
82
|
-
}
|
|
83
|
-
`;
|
|
84
|
-
const CloseIcon = styled(Icon)`
|
|
85
|
-
cursor: pointer;
|
|
86
|
-
|
|
87
|
-
/* Bigger click area */
|
|
88
|
-
padding: 0.25rem;
|
|
89
|
-
|
|
90
|
-
/* Negate padding */
|
|
91
|
-
margin: -0.25rem;
|
|
92
|
-
margin-left: 0.5rem;
|
|
93
|
-
|
|
94
|
-
svg {
|
|
95
|
-
width: 1rem;
|
|
96
|
-
height: 1rem;
|
|
97
|
-
}
|
|
98
|
-
`;
|
|
99
|
-
const Message = styled.span`
|
|
100
|
-
flex: 1;
|
|
101
|
-
`;
|
|
102
|
-
const icons = {
|
|
103
|
-
error: /* @__PURE__ */ React.createElement(ErrorCircle, null),
|
|
104
|
-
success: /* @__PURE__ */ React.createElement(CheckCircle, null),
|
|
105
|
-
info: /* @__PURE__ */ React.createElement(InfoCircle, null),
|
|
106
|
-
text: ""
|
|
107
|
-
};
|
|
108
|
-
const Snackbar = ({
|
|
109
|
-
message,
|
|
110
|
-
color = "none",
|
|
111
|
-
type = "info",
|
|
112
|
-
action,
|
|
113
|
-
isOpen,
|
|
114
|
-
origin = {},
|
|
115
|
-
onClose = () => {
|
|
116
|
-
},
|
|
117
|
-
onExited = () => {
|
|
118
|
-
},
|
|
119
|
-
autoHideDuration = 4e3,
|
|
120
|
-
...props
|
|
121
|
-
}) => {
|
|
122
|
-
useEffect(() => {
|
|
123
|
-
const timeout = setTimeout(onClose, autoHideDuration);
|
|
124
|
-
return () => clearTimeout(timeout);
|
|
125
|
-
}, [autoHideDuration, onClose]);
|
|
126
|
-
return /* @__PURE__ */ React.createElement(CSSTransition, {
|
|
127
|
-
in: isOpen,
|
|
128
|
-
timeout: animationDuration,
|
|
129
|
-
mountOnEnter: true,
|
|
130
|
-
unmountOnExit: true,
|
|
131
|
-
onExited,
|
|
132
|
-
classNames: transitionClassName
|
|
133
|
-
}, /* @__PURE__ */ React.createElement(Container, {
|
|
134
|
-
...props,
|
|
135
|
-
color,
|
|
136
|
-
origin
|
|
137
|
-
}, /* @__PURE__ */ React.createElement(Icon, {
|
|
138
|
-
color,
|
|
139
|
-
type
|
|
140
|
-
}, icons[type]), /* @__PURE__ */ React.createElement(Message, null, message), action && action, /* @__PURE__ */ React.createElement(CloseIcon, {
|
|
141
|
-
color: color != null ? color : "none",
|
|
142
|
-
onClick: onClose
|
|
143
|
-
}, /* @__PURE__ */ React.createElement(Close, null))));
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
export { Snackbar, Snackbar as default };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import styled, { keyframes } from 'styled-components';
|
|
2
|
-
import theme from '../../theme.js';
|
|
3
|
-
|
|
4
|
-
const getDuration = (speed) => {
|
|
5
|
-
const durations = {
|
|
6
|
-
slow: "2s",
|
|
7
|
-
default: "1s",
|
|
8
|
-
fast: "0.5s"
|
|
9
|
-
};
|
|
10
|
-
return durations[speed] || durations.default;
|
|
11
|
-
};
|
|
12
|
-
const getSize = (size) => {
|
|
13
|
-
const sizes = {
|
|
14
|
-
smaller: 1,
|
|
15
|
-
small: 2,
|
|
16
|
-
regular: 3,
|
|
17
|
-
large: 4
|
|
18
|
-
};
|
|
19
|
-
if (typeof size === "number") {
|
|
20
|
-
return size;
|
|
21
|
-
}
|
|
22
|
-
return sizes[size] || sizes.regular;
|
|
23
|
-
};
|
|
24
|
-
const spin = keyframes`
|
|
25
|
-
0% {
|
|
26
|
-
transform: rotate(0deg);
|
|
27
|
-
}
|
|
28
|
-
100% {
|
|
29
|
-
transform: rotate(360deg);
|
|
30
|
-
}
|
|
31
|
-
`;
|
|
32
|
-
const StyledSpinner = styled.div`
|
|
33
|
-
display: inline-block;
|
|
34
|
-
border-radius: 50%;
|
|
35
|
-
border-top: ${({ theme: theme2, color, size }) => `${getSize(size) / 10}em solid ${theme2.colors[color].main}`};
|
|
36
|
-
border-bottom: ${({ size }) => `${getSize(size) / 10}em solid rgba(0, 0, 0, 0.1);`};
|
|
37
|
-
border-right: ${({ size }) => `${getSize(size) / 10}em solid rgba(0, 0, 0, 0.1);`};
|
|
38
|
-
border-left: ${({ size }) => `${getSize(size) / 10}em solid rgba(0, 0, 0, 0.1);`};
|
|
39
|
-
width: ${({ size }) => getSize(size)}em;
|
|
40
|
-
height: ${({ size }) => getSize(size)}em;
|
|
41
|
-
animation: ${spin} ${({ speed }) => getDuration(speed)} infinite linear;
|
|
42
|
-
will-change: transform;
|
|
43
|
-
`;
|
|
44
|
-
const Spinner = ({
|
|
45
|
-
size = "regular",
|
|
46
|
-
color = "primary",
|
|
47
|
-
speed = "default",
|
|
48
|
-
...props
|
|
49
|
-
}) => /* @__PURE__ */ React.createElement(StyledSpinner, {
|
|
50
|
-
...props,
|
|
51
|
-
role: "status",
|
|
52
|
-
"aria-live": "polite",
|
|
53
|
-
"aria-busy": "true",
|
|
54
|
-
size,
|
|
55
|
-
speed,
|
|
56
|
-
color,
|
|
57
|
-
theme
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
export { Spinner as default };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import theme from '../../theme.js';
|
|
3
|
-
import { Title } from '../../typography/Heading/index.js';
|
|
4
|
-
import '../../shared/media-queries.js';
|
|
5
|
-
|
|
6
|
-
const Container = styled.div`
|
|
7
|
-
min-height: 4rem;
|
|
8
|
-
`;
|
|
9
|
-
const Line = styled.div`
|
|
10
|
-
margin: auto;
|
|
11
|
-
width: 2px;
|
|
12
|
-
height: 100%;
|
|
13
|
-
background-color: ${theme.colors.primary.main};
|
|
14
|
-
`;
|
|
15
|
-
const Graphic = styled.div`
|
|
16
|
-
margin-right: 0.75rem;
|
|
17
|
-
`;
|
|
18
|
-
const Step = styled.div`
|
|
19
|
-
font-family: ${({ theme: theme2 }) => theme2.typography.fontBaseFamily};
|
|
20
|
-
display: flex;
|
|
21
|
-
padding-bottom: 1rem;
|
|
22
|
-
|
|
23
|
-
&:last-child {
|
|
24
|
-
${Line} {
|
|
25
|
-
display: none;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
`;
|
|
29
|
-
const Circle = styled.div`
|
|
30
|
-
width: 3rem;
|
|
31
|
-
height: 3rem;
|
|
32
|
-
border-radius: 3rem;
|
|
33
|
-
|
|
34
|
-
color: white;
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
justify-content: center;
|
|
38
|
-
background-color: ${theme.colors.primary.main};
|
|
39
|
-
`;
|
|
40
|
-
const CircleText = styled(Title)`
|
|
41
|
-
font-size: 1.5rem;
|
|
42
|
-
font-variant: lining-nums;
|
|
43
|
-
`;
|
|
44
|
-
const Stepper = ({ children, ...props }) => {
|
|
45
|
-
return /* @__PURE__ */ React.createElement(Container, {
|
|
46
|
-
...props
|
|
47
|
-
}, children.map((step, index) => /* @__PURE__ */ React.createElement(Step, {
|
|
48
|
-
key: index
|
|
49
|
-
}, /* @__PURE__ */ React.createElement(Graphic, null, /* @__PURE__ */ React.createElement(Circle, null, /* @__PURE__ */ React.createElement(CircleText, null, index + 1)), /* @__PURE__ */ React.createElement(Line, null)), step)));
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export { Stepper };
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { useState, useCallback, useEffect } from 'react';
|
|
2
|
-
import styled, { css } from 'styled-components';
|
|
3
|
-
import theme from '../../theme.js';
|
|
4
|
-
import { Title } from '../../typography/Heading/index.js';
|
|
5
|
-
import CheckIcon from '../Icons/CheckIcon.js';
|
|
6
|
-
import Arrow from '../Icons/Arrow.js';
|
|
7
|
-
import { fadedColor } from '../../shared/helpers.js';
|
|
8
|
-
import { Collapse } from 'react-collapse';
|
|
9
|
-
import '../../shared/media-queries.js';
|
|
10
|
-
|
|
11
|
-
const DEFAULT_TRANSITION_TIME = "200ms";
|
|
12
|
-
const Container = styled.div`
|
|
13
|
-
.ReactCollapse--collapse {
|
|
14
|
-
transition: height ${DEFAULT_TRANSITION_TIME} ease-in-out;
|
|
15
|
-
}
|
|
16
|
-
`;
|
|
17
|
-
const HeaderExpandedProps = css`
|
|
18
|
-
margin-top: 0.25rem;
|
|
19
|
-
transform: rotate(-180deg);
|
|
20
|
-
`;
|
|
21
|
-
const Header = styled.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
height: 4rem;
|
|
25
|
-
|
|
26
|
-
color: ${(props) => props.isDisabled ? theme.colors.text.disabled : theme.colors.text.dark};
|
|
27
|
-
`;
|
|
28
|
-
const StyledTitle = styled(Title)`
|
|
29
|
-
margin: 0;
|
|
30
|
-
`;
|
|
31
|
-
const HeaderArrow = styled(Arrow)`
|
|
32
|
-
margin-left: auto;
|
|
33
|
-
height: 1.25rem;
|
|
34
|
-
width: 1.25rem;
|
|
35
|
-
margin-top: -0.75rem;
|
|
36
|
-
|
|
37
|
-
fill: currentColor;
|
|
38
|
-
|
|
39
|
-
transition: ${DEFAULT_TRANSITION_TIME};
|
|
40
|
-
transform: rotate(0deg);
|
|
41
|
-
transform-origin: center;
|
|
42
|
-
${(props) => props.isExpanded && HeaderExpandedProps};
|
|
43
|
-
`;
|
|
44
|
-
const CircleIsCompleteStyles = (color) => css`
|
|
45
|
-
color: white;
|
|
46
|
-
background-color: ${theme.colors[color].main};
|
|
47
|
-
`;
|
|
48
|
-
const CircleIsDisabledStyles = (isComplete, color) => css`
|
|
49
|
-
fill: white;
|
|
50
|
-
border: 2px solid ${fadedColor(theme.colors[color].main, 0.2)};
|
|
51
|
-
|
|
52
|
-
${isComplete && `
|
|
53
|
-
border: 2px solid ${fadedColor(theme.colors[color].main, 0)};
|
|
54
|
-
background-color: ${fadedColor(theme.colors[color].main, 0.5)};
|
|
55
|
-
`}
|
|
56
|
-
`;
|
|
57
|
-
const Circle = styled.div`
|
|
58
|
-
font-family: ${({ theme: theme2 }) => theme2.typography.fontBaseFamily};
|
|
59
|
-
display: flex;
|
|
60
|
-
align-items: center;
|
|
61
|
-
justify-content: center;
|
|
62
|
-
|
|
63
|
-
font-size: 1.25rem;
|
|
64
|
-
margin-right: 0.75rem;
|
|
65
|
-
width: 2rem;
|
|
66
|
-
height: 2rem;
|
|
67
|
-
border-radius: 2rem;
|
|
68
|
-
border: 2px solid ${(props) => theme.colors[props.color].main};
|
|
69
|
-
|
|
70
|
-
svg {
|
|
71
|
-
fill: currentColor;
|
|
72
|
-
height: 1rem;
|
|
73
|
-
width: 1rem;
|
|
74
|
-
|
|
75
|
-
/* Kvd.se compatible stuff */
|
|
76
|
-
margin: 0;
|
|
77
|
-
top: inherit;
|
|
78
|
-
left: inherit;
|
|
79
|
-
font-size: inherit;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
span {
|
|
83
|
-
font-variant: lining-nums;
|
|
84
|
-
margin-top: 0.1rem;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
transition: background-color ${DEFAULT_TRANSITION_TIME};
|
|
88
|
-
${(props) => props.isComplete && CircleIsCompleteStyles(props.color)};
|
|
89
|
-
${(props) => props.isDisabled && CircleIsDisabledStyles(props.isComplete, props.color)};
|
|
90
|
-
`;
|
|
91
|
-
const StepperAccordion = (props) => {
|
|
92
|
-
const [isExpanded, setIsExpanded] = useState(props.isExpanded || false);
|
|
93
|
-
const toggleIsExpanded = useCallback(() => {
|
|
94
|
-
if (!props.isDisabled) {
|
|
95
|
-
setIsExpanded((previousValue) => !previousValue);
|
|
96
|
-
}
|
|
97
|
-
}, [props.isDisabled]);
|
|
98
|
-
useEffect(() => {
|
|
99
|
-
setIsExpanded(props.isExpanded || false);
|
|
100
|
-
}, [props.isDisabled, props.isExpanded]);
|
|
101
|
-
const hasSteps = props.step || props.step === 0;
|
|
102
|
-
const handleClick = (event) => {
|
|
103
|
-
const onClick = props.onClick || toggleIsExpanded;
|
|
104
|
-
if (!props.isDisabled) {
|
|
105
|
-
onClick(event);
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
return /* @__PURE__ */ React.createElement(Container, null, /* @__PURE__ */ React.createElement(Header, {
|
|
109
|
-
...props,
|
|
110
|
-
onClick: handleClick,
|
|
111
|
-
isExpanded,
|
|
112
|
-
isDisabled: props.isDisabled || false
|
|
113
|
-
}, hasSteps && /* @__PURE__ */ React.createElement(Circle, {
|
|
114
|
-
isComplete: props.isComplete || false,
|
|
115
|
-
isDisabled: props.isDisabled || false,
|
|
116
|
-
color: props.color || "primary"
|
|
117
|
-
}, props.isComplete ? /* @__PURE__ */ React.createElement(CheckIcon, null) : /* @__PURE__ */ React.createElement("span", null, props.step)), /* @__PURE__ */ React.createElement(StyledTitle, null, props.title), /* @__PURE__ */ React.createElement(HeaderArrow, {
|
|
118
|
-
isExpanded
|
|
119
|
-
})), /* @__PURE__ */ React.createElement(Collapse, {
|
|
120
|
-
isOpened: isExpanded
|
|
121
|
-
}, props.children), props.closedChildren && props.closedChildren);
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
export { StepperAccordion, StepperAccordion as default };
|
package/components/Tabs/index.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { Children } from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
const TabsContainer = styled.div`
|
|
5
|
-
display: inline-flex;
|
|
6
|
-
border-bottom: 1px solid ${({ theme }) => theme.colors.gray.light4};
|
|
7
|
-
`;
|
|
8
|
-
const TabWrapper = styled.div`
|
|
9
|
-
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
10
|
-
font-weight: ${({ theme }) => theme.typography.fontAlternativeRegularWeight};
|
|
11
|
-
padding: 1em;
|
|
12
|
-
border-bottom: ${({ theme, isActive, activeColor }) => isActive ? `3px solid ${theme.colors[activeColor].main}` : "3px solid transparent"};
|
|
13
|
-
transition: color 0.3s ease, border 0.3s ease;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
`;
|
|
16
|
-
const Tab = ({
|
|
17
|
-
children,
|
|
18
|
-
isActive = false,
|
|
19
|
-
onClick,
|
|
20
|
-
activeColor = "primary"
|
|
21
|
-
}) => {
|
|
22
|
-
return /* @__PURE__ */ React.createElement(TabWrapper, {
|
|
23
|
-
isActive,
|
|
24
|
-
onClick,
|
|
25
|
-
activeColor
|
|
26
|
-
}, children);
|
|
27
|
-
};
|
|
28
|
-
const Tabs = ({
|
|
29
|
-
activeIndex,
|
|
30
|
-
activeColor = "primary",
|
|
31
|
-
children,
|
|
32
|
-
onTabClick,
|
|
33
|
-
className
|
|
34
|
-
}) => {
|
|
35
|
-
if (Children.count(children) <= 1) {
|
|
36
|
-
console.error("<Tabs /> component has too few children!");
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
return /* @__PURE__ */ React.createElement(TabsContainer, {
|
|
40
|
-
className
|
|
41
|
-
}, Children.map(children, (child, index) => {
|
|
42
|
-
if (!child) {
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
|
-
const onClick = child.props.onClick;
|
|
46
|
-
return /* @__PURE__ */ React.createElement(TabWrapper, {
|
|
47
|
-
...child.props,
|
|
48
|
-
isActive: activeIndex === index,
|
|
49
|
-
activeColor,
|
|
50
|
-
onClick: (event) => {
|
|
51
|
-
onTabClick(index);
|
|
52
|
-
if (typeof onClick === "function") {
|
|
53
|
-
onClick(event);
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
as: child.type || "div"
|
|
57
|
-
}, child.props.children);
|
|
58
|
-
}));
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export { Tab, Tabs, Tabs as default };
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
import styled, { css } from 'styled-components';
|
|
3
|
-
import theme from '../../theme.js';
|
|
4
|
-
import { Label } from '../FieldLabel.js';
|
|
5
|
-
import { BodyTextStyle } from '../../typography/BodyText/index.js';
|
|
6
|
-
|
|
7
|
-
const disabledStyles = css`
|
|
8
|
-
border: 1px solid ${theme.colors.gray.light1};
|
|
9
|
-
color: ${theme.colors.gray.dark1};
|
|
10
|
-
fill: ${theme.colors.gray.light1};
|
|
11
|
-
`;
|
|
12
|
-
const errorStyles = css`
|
|
13
|
-
border: 1px solid ${theme.colors.error.main};
|
|
14
|
-
`;
|
|
15
|
-
const focusStyles = css`
|
|
16
|
-
color: ${theme.colors.text.dark};
|
|
17
|
-
border: 1px solid ${theme.colors.text.dark};
|
|
18
|
-
fill: ${theme.colors.text.dark};
|
|
19
|
-
`;
|
|
20
|
-
const TextAreaWrapper = styled.div`
|
|
21
|
-
position: relative;
|
|
22
|
-
padding: 0;
|
|
23
|
-
display: inline-block;
|
|
24
|
-
`;
|
|
25
|
-
const InputWrapper = styled.div`
|
|
26
|
-
display: inline-black;
|
|
27
|
-
|
|
28
|
-
color: ${theme.colors.gray.light1};
|
|
29
|
-
fill: ${theme.colors.gray.light1};
|
|
30
|
-
background-color: ${theme.colors.background.light};
|
|
31
|
-
|
|
32
|
-
border: 1px solid ${theme.colors.gray.light1};
|
|
33
|
-
border-radius: 0.25em;
|
|
34
|
-
transition: all 150ms;
|
|
35
|
-
|
|
36
|
-
padding: 0.7rem 0.75rem;
|
|
37
|
-
|
|
38
|
-
${({ hasError, isFocused }) => !hasError && isFocused && focusStyles}
|
|
39
|
-
${({ disabled }) => disabled && disabledStyles}
|
|
40
|
-
${({ hasError }) => hasError && errorStyles}
|
|
41
|
-
${({ centered }) => centered && `text-align: center;`}
|
|
42
|
-
`;
|
|
43
|
-
const TextAreaInput = styled.textarea`
|
|
44
|
-
${BodyTextStyle}
|
|
45
|
-
|
|
46
|
-
width: 100%;
|
|
47
|
-
cursor: text;
|
|
48
|
-
outline: none;
|
|
49
|
-
border: none;
|
|
50
|
-
background-color: transparent;
|
|
51
|
-
|
|
52
|
-
${({ resize }) => !resize && "resize: none;"}
|
|
53
|
-
`;
|
|
54
|
-
const Suffix = styled.div`
|
|
55
|
-
font-family: ${({ theme: theme2 }) => theme2.typography.fontBaseFamily};
|
|
56
|
-
`;
|
|
57
|
-
const HelperText = styled.span`
|
|
58
|
-
display: block;
|
|
59
|
-
font-family: ${({ theme: theme2 }) => theme2.typography.fontBaseFamily};
|
|
60
|
-
font-size: 0.81rem;
|
|
61
|
-
|
|
62
|
-
margin-top: 0.25rem;
|
|
63
|
-
margin-left: 0.85rem;
|
|
64
|
-
|
|
65
|
-
color: ${({ hasError }) => hasError ? theme.colors.error.main : theme.colors.text.dark};
|
|
66
|
-
|
|
67
|
-
${({ centered }) => centered && `width: 100%; text-align: center; display: block;`}
|
|
68
|
-
`;
|
|
69
|
-
const TextArea = ({
|
|
70
|
-
placeholder = "",
|
|
71
|
-
isDisabled = false,
|
|
72
|
-
centered = false,
|
|
73
|
-
hasError = false,
|
|
74
|
-
className,
|
|
75
|
-
helperText,
|
|
76
|
-
label = "",
|
|
77
|
-
resize = true,
|
|
78
|
-
...props
|
|
79
|
-
}) => {
|
|
80
|
-
const [isFocused, setIsFocused] = useState(false);
|
|
81
|
-
const hasValue = Boolean(props.value);
|
|
82
|
-
return /* @__PURE__ */ React.createElement(TextAreaWrapper, {
|
|
83
|
-
className
|
|
84
|
-
}, /* @__PURE__ */ React.createElement(InputWrapper, {
|
|
85
|
-
isFocused,
|
|
86
|
-
disabled: isDisabled,
|
|
87
|
-
centered,
|
|
88
|
-
hasError,
|
|
89
|
-
hasPlaceholder: !!placeholder
|
|
90
|
-
}, /* @__PURE__ */ React.createElement(TextAreaInput, {
|
|
91
|
-
...props,
|
|
92
|
-
resize,
|
|
93
|
-
onFocus: () => setIsFocused(true),
|
|
94
|
-
onBlur: () => setIsFocused(false),
|
|
95
|
-
disabled: isDisabled,
|
|
96
|
-
theme,
|
|
97
|
-
placeholder: label && !isFocused ? "" : placeholder
|
|
98
|
-
}), props.suffix && /* @__PURE__ */ React.createElement(Suffix, null, props.suffix)), label && /* @__PURE__ */ React.createElement(Label, {
|
|
99
|
-
isFocused,
|
|
100
|
-
centered,
|
|
101
|
-
hasError,
|
|
102
|
-
hasValue,
|
|
103
|
-
disabled: isDisabled,
|
|
104
|
-
theme
|
|
105
|
-
}, label), helperText && /* @__PURE__ */ React.createElement(HelperText, {
|
|
106
|
-
centered,
|
|
107
|
-
hasError
|
|
108
|
-
}, helperText));
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
export { TextArea, TextArea as default };
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
import styled, { css } from 'styled-components';
|
|
3
|
-
import theme from '../../theme.js';
|
|
4
|
-
import { Label } from '../FieldLabel.js';
|
|
5
|
-
import { BodyTextStyle, CaptionStyle } from '../../typography/BodyText/index.js';
|
|
6
|
-
|
|
7
|
-
const disabledStyles = css`
|
|
8
|
-
border: 1px solid ${theme.colors.gray.light1};
|
|
9
|
-
color: ${theme.colors.gray.dark1};
|
|
10
|
-
fill: ${theme.colors.gray.light1};
|
|
11
|
-
`;
|
|
12
|
-
const errorStyles = css`
|
|
13
|
-
border: 1px solid ${theme.colors.error.main};
|
|
14
|
-
`;
|
|
15
|
-
const focusStyles = css`
|
|
16
|
-
color: ${theme.colors.text.dark};
|
|
17
|
-
border: 1px solid ${theme.colors.text.dark};
|
|
18
|
-
fill: ${theme.colors.text.dark};
|
|
19
|
-
`;
|
|
20
|
-
const TextFieldWrapper = styled.div`
|
|
21
|
-
position: relative;
|
|
22
|
-
padding: 0;
|
|
23
|
-
display: block;
|
|
24
|
-
`;
|
|
25
|
-
const InputWrapper = styled.div`
|
|
26
|
-
display: flex;
|
|
27
|
-
text-align: center;
|
|
28
|
-
align-items: center;
|
|
29
|
-
|
|
30
|
-
color: ${theme.colors.gray.light1};
|
|
31
|
-
fill: ${theme.colors.gray.light1};
|
|
32
|
-
background-color: ${theme.colors.background.light};
|
|
33
|
-
|
|
34
|
-
border: 1px solid ${theme.colors.gray.light1};
|
|
35
|
-
border-radius: 0.25em;
|
|
36
|
-
transition: all 150ms;
|
|
37
|
-
|
|
38
|
-
padding: 0.7rem 0.75rem 0.6rem;
|
|
39
|
-
|
|
40
|
-
${({ hasError, isFocused }) => !hasError && isFocused && focusStyles}
|
|
41
|
-
${({ disabled }) => disabled && disabledStyles}
|
|
42
|
-
${({ hasError }) => hasError && errorStyles}
|
|
43
|
-
${({ centered }) => centered && `text-align: center;`}
|
|
44
|
-
`;
|
|
45
|
-
const Input = styled.input`
|
|
46
|
-
${BodyTextStyle}
|
|
47
|
-
width: 100%;
|
|
48
|
-
cursor: text;
|
|
49
|
-
outline: none;
|
|
50
|
-
border: none;
|
|
51
|
-
background-color: transparent;
|
|
52
|
-
`;
|
|
53
|
-
const Suffix = styled.div`
|
|
54
|
-
font-family: ${({ theme: theme2 }) => theme2.typography.fontBaseFamily};
|
|
55
|
-
line-height: 0px;
|
|
56
|
-
margin-top: 2px;
|
|
57
|
-
`;
|
|
58
|
-
const HelperText = styled.span`
|
|
59
|
-
${CaptionStyle}
|
|
60
|
-
line-height: normal;
|
|
61
|
-
display: block;
|
|
62
|
-
margin-top: 0.25rem;
|
|
63
|
-
margin-left: 0.85rem;
|
|
64
|
-
|
|
65
|
-
color: ${({ hasError }) => hasError ? theme.colors.error.main : theme.colors.text.dark};
|
|
66
|
-
|
|
67
|
-
${({ centered }) => centered && `width: 100%; text-align: center; display: block;`}
|
|
68
|
-
`;
|
|
69
|
-
const TextField = ({
|
|
70
|
-
placeholder = "",
|
|
71
|
-
isDisabled = false,
|
|
72
|
-
centered = false,
|
|
73
|
-
hasError = false,
|
|
74
|
-
className,
|
|
75
|
-
helperText,
|
|
76
|
-
label = "",
|
|
77
|
-
onBlur = () => null,
|
|
78
|
-
onFocus = () => null,
|
|
79
|
-
forwardRef,
|
|
80
|
-
...props
|
|
81
|
-
}) => {
|
|
82
|
-
const [isFocused, setIsFocused] = useState(false);
|
|
83
|
-
const hasValue = Boolean(props.value);
|
|
84
|
-
const handleFocus = (event) => {
|
|
85
|
-
setIsFocused(true);
|
|
86
|
-
onFocus(event);
|
|
87
|
-
};
|
|
88
|
-
const handleBlur = (event) => {
|
|
89
|
-
setIsFocused(false);
|
|
90
|
-
onBlur(event);
|
|
91
|
-
};
|
|
92
|
-
return /* @__PURE__ */ React.createElement(TextFieldWrapper, {
|
|
93
|
-
className
|
|
94
|
-
}, /* @__PURE__ */ React.createElement(InputWrapper, {
|
|
95
|
-
isFocused,
|
|
96
|
-
disabled: isDisabled,
|
|
97
|
-
centered,
|
|
98
|
-
hasError,
|
|
99
|
-
hasPlaceholder: !!placeholder
|
|
100
|
-
}, /* @__PURE__ */ React.createElement(Input, {
|
|
101
|
-
...props,
|
|
102
|
-
ref: forwardRef,
|
|
103
|
-
onFocus: handleFocus,
|
|
104
|
-
onBlur: handleBlur,
|
|
105
|
-
disabled: isDisabled,
|
|
106
|
-
theme,
|
|
107
|
-
placeholder: label && !isFocused ? "" : placeholder
|
|
108
|
-
}), props.suffix && /* @__PURE__ */ React.createElement(Suffix, null, props.suffix)), label && /* @__PURE__ */ React.createElement(Label, {
|
|
109
|
-
isFocused,
|
|
110
|
-
centered,
|
|
111
|
-
hasError,
|
|
112
|
-
hasValue,
|
|
113
|
-
disabled: isDisabled,
|
|
114
|
-
theme
|
|
115
|
-
}, label), helperText && /* @__PURE__ */ React.createElement(HelperText, {
|
|
116
|
-
centered,
|
|
117
|
-
hasError
|
|
118
|
-
}, helperText));
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
export { TextField, TextField as default };
|