@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,163 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import ReactSelect from 'react-select';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { DEFAULT_TRANSITION_MS } from '../../shared/constants.js';
|
|
6
|
+
import { fadedColor } from '../../shared/helpers.js';
|
|
7
|
+
import theme from '../../theme.js';
|
|
8
|
+
import { Label } from '../FieldLabel.js';
|
|
9
|
+
|
|
10
|
+
const Container = styled.div `
|
|
11
|
+
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
12
|
+
position: relative;
|
|
13
|
+
`;
|
|
14
|
+
const prefixStyles = (hasPrefix) => hasPrefix && {
|
|
15
|
+
paddingLeft: '2.5rem',
|
|
16
|
+
};
|
|
17
|
+
const disabledStyles = (isDisabled) => isDisabled && {
|
|
18
|
+
border: `1px solid ${theme.colors.gray.light1}`,
|
|
19
|
+
color: theme.colors.gray.dark1,
|
|
20
|
+
fill: theme.colors.gray.light1,
|
|
21
|
+
};
|
|
22
|
+
const Prefix = styled.div `
|
|
23
|
+
position: absolute;
|
|
24
|
+
z-index: 1;
|
|
25
|
+
top: 0.5rem;
|
|
26
|
+
margin: 0.35rem 0.75rem;
|
|
27
|
+
|
|
28
|
+
fill: ${theme.colors.gray.dark5};
|
|
29
|
+
transition: ${DEFAULT_TRANSITION_MS};
|
|
30
|
+
|
|
31
|
+
${props => props.isDisabled &&
|
|
32
|
+
`
|
|
33
|
+
fill: ${theme.colors.gray.light1};
|
|
34
|
+
`}
|
|
35
|
+
|
|
36
|
+
${props => props.isFocused &&
|
|
37
|
+
`
|
|
38
|
+
fill: ${props.theme.colors.text.dark};
|
|
39
|
+
`}
|
|
40
|
+
`;
|
|
41
|
+
const HelperText = styled.span `
|
|
42
|
+
display: block;
|
|
43
|
+
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
44
|
+
font-size: 0.81rem;
|
|
45
|
+
|
|
46
|
+
margin-top: 0.25rem;
|
|
47
|
+
margin-left: 0.85rem;
|
|
48
|
+
|
|
49
|
+
color: ${({ hasError }) => hasError ? theme.colors.error.main : theme.colors.text.dark};
|
|
50
|
+
`;
|
|
51
|
+
const Arrow = (props) => (jsxs("svg", Object.assign({}, props, { children: [jsx("symbol", Object.assign({ id: "icon-arrow", viewBox: "0 0 19 19" }, { children: jsx("path", { d: "M2.03039 7.95496L9.80856 15.7331C9.90619 15.8308 10.0645 15.8308 10.1621 15.7331L17.9403 7.95496L19.0009 9.01562L11.2228 16.7938C10.5394 17.4772 9.43132 17.4772 8.7479 16.7938L0.969727 9.01562L2.03039 7.95496Z" }, void 0) }), void 0), jsx("use", { xlinkHref: "#icon-arrow" }, void 0)] }), void 0));
|
|
52
|
+
const DropdownArrow = styled(Arrow) `
|
|
53
|
+
width: 0.8rem;
|
|
54
|
+
height: 0.8rem;
|
|
55
|
+
margin: 0 0.5rem;
|
|
56
|
+
${props => props.$isFocused && `color: ${props.$theme.colors.text.dark}`}
|
|
57
|
+
${props => props.$isDisabled && `color: ${props.$theme.colors.gray.dark1}`}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
path {
|
|
61
|
+
fill: currentColor;
|
|
62
|
+
stroke: currentColor;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
transition: transform ${DEFAULT_TRANSITION_MS};
|
|
66
|
+
|
|
67
|
+
transform: ${props => props.$isMenuOpen ? 'rotate(-180deg)' : 'rotate(0deg)'};
|
|
68
|
+
transform-origin: 50% 60%;
|
|
69
|
+
`;
|
|
70
|
+
const getBorderColor = (isFocused, hasError) => {
|
|
71
|
+
if (hasError) {
|
|
72
|
+
return theme.colors.error.main;
|
|
73
|
+
}
|
|
74
|
+
return isFocused ? theme.colors.text.dark : theme.colors.gray.light1;
|
|
75
|
+
};
|
|
76
|
+
const DropdownIndicator = ({ selectProps: { menuIsOpen = false }, isFocused = false, isDisabled, }) => {
|
|
77
|
+
return (jsx(DropdownArrow, { "$isDisabled": isDisabled, "$isFocused": isFocused, "$isMenuOpen": menuIsOpen, "$theme": theme }, void 0));
|
|
78
|
+
};
|
|
79
|
+
const Select = ({ color = 'primary', isDisabled = false, placeholder = '', helperText, height, className, hasError = false, onBlur = () => null, onFocus = () => null, forwardRef, onInputChange = () => null, ...props }) => {
|
|
80
|
+
const [isFocused, setIsFocused] = useState(false);
|
|
81
|
+
const [inputValue, setInputValue] = useState('');
|
|
82
|
+
const handleInputChange = (newValue, actionMeta) => {
|
|
83
|
+
onInputChange(newValue, actionMeta);
|
|
84
|
+
setInputValue(newValue);
|
|
85
|
+
};
|
|
86
|
+
const getOptionColor = ({ isSelected, isFocused }) => {
|
|
87
|
+
if (isSelected) {
|
|
88
|
+
return fadedColor(theme.colors[color].main, 0.72);
|
|
89
|
+
}
|
|
90
|
+
if (isFocused) {
|
|
91
|
+
return fadedColor(theme.colors[color].main, 0.18);
|
|
92
|
+
}
|
|
93
|
+
return 'white';
|
|
94
|
+
};
|
|
95
|
+
const handleFocus = (event) => {
|
|
96
|
+
setIsFocused(true);
|
|
97
|
+
onFocus(event);
|
|
98
|
+
};
|
|
99
|
+
const handleBlur = (event) => {
|
|
100
|
+
setIsFocused(false);
|
|
101
|
+
onBlur(event);
|
|
102
|
+
};
|
|
103
|
+
const borderColor = getBorderColor(isFocused, hasError);
|
|
104
|
+
return (jsxs(Container, Object.assign({ className: className }, { children: [props.label && (jsx(Label, Object.assign({ height: height, isFocused: isFocused, hasValue: Boolean(props.value || inputValue), disabled: isDisabled, theme: theme, hasError: hasError }, { children: props.label }), void 0)), props.prefix && (jsx(Prefix, Object.assign({ isDisabled: isDisabled, isFocused: isFocused }, { children: props.prefix }), void 0)), jsx(ReactSelect, Object.assign({}, props, { ref: forwardRef, isDisabled: isDisabled, onInputChange: handleInputChange, placeholder: placeholder, onFocus: handleFocus, onBlur: handleBlur, styles: {
|
|
105
|
+
control: styles => ({
|
|
106
|
+
...styles,
|
|
107
|
+
fontFamily: theme.typography.fontBaseFamily,
|
|
108
|
+
fontSize: '1rem',
|
|
109
|
+
fontWeight: 400,
|
|
110
|
+
cursor: 'pointer',
|
|
111
|
+
padding: '0.7rem 0.75rem',
|
|
112
|
+
backgroundColor: theme.colors.background.light,
|
|
113
|
+
borderColor,
|
|
114
|
+
boxShadow: 'none',
|
|
115
|
+
'&:hover': {
|
|
116
|
+
borderColor: 'none',
|
|
117
|
+
},
|
|
118
|
+
...disabledStyles(isDisabled),
|
|
119
|
+
...prefixStyles(Boolean(props.prefix)),
|
|
120
|
+
}),
|
|
121
|
+
placeholder: styles => ({
|
|
122
|
+
...styles,
|
|
123
|
+
display: !isFocused ? 'none' : 'static',
|
|
124
|
+
}),
|
|
125
|
+
singleValue: styles => ({
|
|
126
|
+
...styles,
|
|
127
|
+
...{
|
|
128
|
+
maxWidth: 'calc(100% - 3.3rem)',
|
|
129
|
+
width: 'calc(100% - 3.3rem)',
|
|
130
|
+
},
|
|
131
|
+
}),
|
|
132
|
+
menu: styles => ({
|
|
133
|
+
...styles,
|
|
134
|
+
zIndex: 2,
|
|
135
|
+
padding: '0.25rem 0',
|
|
136
|
+
}),
|
|
137
|
+
option: (styles, { isSelected, isFocused }) => {
|
|
138
|
+
return {
|
|
139
|
+
...styles,
|
|
140
|
+
padding: '1rem',
|
|
141
|
+
'&:hover': {
|
|
142
|
+
background: getOptionColor({ isFocused: true, isSelected }),
|
|
143
|
+
},
|
|
144
|
+
background: getOptionColor({ isSelected, isFocused }),
|
|
145
|
+
cursor: 'pointer',
|
|
146
|
+
...prefixStyles(Boolean(props.prefix)),
|
|
147
|
+
};
|
|
148
|
+
},
|
|
149
|
+
valueContainer: styles => ({
|
|
150
|
+
...styles,
|
|
151
|
+
...{
|
|
152
|
+
position: 'static',
|
|
153
|
+
padding: height ? `${height - 1}rem 0 ` : 0,
|
|
154
|
+
height: height ? 'auto' : '21px',
|
|
155
|
+
},
|
|
156
|
+
}),
|
|
157
|
+
}, components: {
|
|
158
|
+
IndicatorSeparator: () => null,
|
|
159
|
+
DropdownIndicator: DropdownIndicator,
|
|
160
|
+
} }), void 0), helperText && jsx(HelperText, Object.assign({ hasError: hasError }, { children: helperText }), void 0)] }), void 0));
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
export { Select, Select as default };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import styled, { css } from 'styled-components';
|
|
4
|
+
import theme from '../../theme.js';
|
|
5
|
+
import CheckCircle from '../Icons/CheckCircle.js';
|
|
6
|
+
import Close from '../Icons/Close.js';
|
|
7
|
+
import ErrorCircle from '../Icons/ErrorCircle.js';
|
|
8
|
+
import InfoCircle from '../Icons/InfoCircle.js';
|
|
9
|
+
import { CSSTransition } from 'react-transition-group';
|
|
10
|
+
|
|
11
|
+
const verticalStyles = {
|
|
12
|
+
top: css `
|
|
13
|
+
top: 0;
|
|
14
|
+
`,
|
|
15
|
+
bottom: css `
|
|
16
|
+
bottom: 0;
|
|
17
|
+
`,
|
|
18
|
+
};
|
|
19
|
+
const horizontalStyles = {
|
|
20
|
+
right: css `
|
|
21
|
+
right: 0;
|
|
22
|
+
`,
|
|
23
|
+
center: css `
|
|
24
|
+
left: 50%;
|
|
25
|
+
transform: translate(-50%, 0);
|
|
26
|
+
`,
|
|
27
|
+
left: css `
|
|
28
|
+
left: 0;
|
|
29
|
+
`,
|
|
30
|
+
};
|
|
31
|
+
const animationDuration = 200;
|
|
32
|
+
const transitionClassName = 'anim';
|
|
33
|
+
const Container = styled.div `
|
|
34
|
+
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
35
|
+
position: fixed;
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
|
|
39
|
+
line-height: 1rem;
|
|
40
|
+
margin: 1rem;
|
|
41
|
+
|
|
42
|
+
max-width: 630px;
|
|
43
|
+
|
|
44
|
+
border-radius: 0.4rem;
|
|
45
|
+
padding: 1.15rem 1.25rem;
|
|
46
|
+
|
|
47
|
+
font-weight: ${({ theme }) => theme.typography.fontBaseBoldWeight};
|
|
48
|
+
font-size: 0.875rem;
|
|
49
|
+
|
|
50
|
+
box-shadow: ${theme.elevations.elevation8};
|
|
51
|
+
background-color: ${props => props.color !== 'none'
|
|
52
|
+
? theme.colors[props.color].main
|
|
53
|
+
: theme.colors.background.light};
|
|
54
|
+
color: ${props => props.color !== 'none' ? theme.colors.text.light : theme.colors.text.dark};
|
|
55
|
+
|
|
56
|
+
${props => verticalStyles[props.origin.vertical || 'bottom']}
|
|
57
|
+
${props => horizontalStyles[props.origin.horizontal || 'left']}
|
|
58
|
+
|
|
59
|
+
transition: opacity ${animationDuration}ms ease-in;
|
|
60
|
+
|
|
61
|
+
&.${transitionClassName}-enter {
|
|
62
|
+
opacity: 0;
|
|
63
|
+
}
|
|
64
|
+
&.${transitionClassName}-enter-active {
|
|
65
|
+
opacity: 1;
|
|
66
|
+
}
|
|
67
|
+
&.${transitionClassName}-exit {
|
|
68
|
+
opacity: 1;
|
|
69
|
+
}
|
|
70
|
+
&.${transitionClassName}-exit-active {
|
|
71
|
+
opacity: 0;
|
|
72
|
+
}
|
|
73
|
+
`;
|
|
74
|
+
const Icon = styled.div `
|
|
75
|
+
display: inline-flex;
|
|
76
|
+
margin: -0.25rem 0;
|
|
77
|
+
margin-right: 0.75rem;
|
|
78
|
+
|
|
79
|
+
${props => props.type === 'text' && 'margin-right: 0;'}
|
|
80
|
+
|
|
81
|
+
svg {
|
|
82
|
+
width: 1.5rem;
|
|
83
|
+
height: 1.5rem;
|
|
84
|
+
fill: ${props => props.color !== 'none'
|
|
85
|
+
? theme.colors.background.light
|
|
86
|
+
: theme.colors.background.dark};
|
|
87
|
+
}
|
|
88
|
+
`;
|
|
89
|
+
const CloseIcon = styled(Icon) `
|
|
90
|
+
cursor: pointer;
|
|
91
|
+
|
|
92
|
+
/* Bigger click area */
|
|
93
|
+
padding: 0.25rem;
|
|
94
|
+
|
|
95
|
+
/* Negate padding */
|
|
96
|
+
margin: -0.25rem;
|
|
97
|
+
margin-left: 0.5rem;
|
|
98
|
+
|
|
99
|
+
svg {
|
|
100
|
+
width: 1rem;
|
|
101
|
+
height: 1rem;
|
|
102
|
+
}
|
|
103
|
+
`;
|
|
104
|
+
const Message = styled.span `
|
|
105
|
+
flex: 1;
|
|
106
|
+
`;
|
|
107
|
+
const icons = {
|
|
108
|
+
error: jsx(ErrorCircle, {}, void 0),
|
|
109
|
+
success: jsx(CheckCircle, {}, void 0),
|
|
110
|
+
info: jsx(InfoCircle, {}, void 0),
|
|
111
|
+
text: '',
|
|
112
|
+
};
|
|
113
|
+
const Snackbar = ({ message, color = 'none', type = 'info', action, isOpen, origin = {}, onClose = () => { }, onExited = () => { }, autoHideDuration = 4000, ...props }) => {
|
|
114
|
+
useEffect(() => {
|
|
115
|
+
const timeout = setTimeout(onClose, autoHideDuration);
|
|
116
|
+
return () => clearTimeout(timeout);
|
|
117
|
+
}, [autoHideDuration, onClose]);
|
|
118
|
+
return (jsx(CSSTransition, Object.assign({ in: isOpen, timeout: animationDuration, mountOnEnter: true, unmountOnExit: true, onExited: onExited, classNames: transitionClassName }, { children: jsxs(Container, Object.assign({}, props, { color: color, origin: origin }, { children: [jsx(Icon, Object.assign({ color: color, type: type }, { children: icons[type] }), void 0), jsx(Message, { children: message }, void 0), action && action, jsx(CloseIcon, Object.assign({ color: color !== null && color !== void 0 ? color : 'none', onClick: onClose }, { children: jsx(Close, {}, void 0) }), void 0)] }), void 0) }), void 0));
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export { Snackbar, Snackbar as default };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import styled, { keyframes } from 'styled-components';
|
|
3
|
+
import theme from '../../theme.js';
|
|
4
|
+
|
|
5
|
+
const getDuration = (speed) => {
|
|
6
|
+
const durations = {
|
|
7
|
+
slow: '2s',
|
|
8
|
+
default: '1s',
|
|
9
|
+
fast: '0.5s',
|
|
10
|
+
};
|
|
11
|
+
return durations[speed] || durations.default;
|
|
12
|
+
};
|
|
13
|
+
const getSize = (size) => {
|
|
14
|
+
const sizes = {
|
|
15
|
+
smaller: 1,
|
|
16
|
+
small: 2,
|
|
17
|
+
regular: 3,
|
|
18
|
+
large: 4,
|
|
19
|
+
};
|
|
20
|
+
if (typeof size === 'number') {
|
|
21
|
+
return size;
|
|
22
|
+
}
|
|
23
|
+
return sizes[size] || sizes.regular;
|
|
24
|
+
};
|
|
25
|
+
const spin = keyframes `
|
|
26
|
+
0% {
|
|
27
|
+
transform: rotate(0deg);
|
|
28
|
+
}
|
|
29
|
+
100% {
|
|
30
|
+
transform: rotate(360deg);
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
const StyledSpinner = styled.div `
|
|
34
|
+
display: inline-block;
|
|
35
|
+
border-radius: 50%;
|
|
36
|
+
border-top: ${({ theme, color, size }) => `${getSize(size) / 10}em solid ${theme.colors[color].main}`};
|
|
37
|
+
border-bottom: ${({ size }) => `${getSize(size) / 10}em solid rgba(0, 0, 0, 0.1);`};
|
|
38
|
+
border-right: ${({ size }) => `${getSize(size) / 10}em solid rgba(0, 0, 0, 0.1);`};
|
|
39
|
+
border-left: ${({ size }) => `${getSize(size) / 10}em solid rgba(0, 0, 0, 0.1);`};
|
|
40
|
+
width: ${({ size }) => getSize(size)}em;
|
|
41
|
+
height: ${({ size }) => getSize(size)}em;
|
|
42
|
+
animation: ${spin} ${({ speed }) => getDuration(speed)} infinite linear;
|
|
43
|
+
will-change: transform;
|
|
44
|
+
`;
|
|
45
|
+
const Spinner = ({ size = 'regular', color = 'primary', speed = 'default', ...props }) => (jsx(StyledSpinner, Object.assign({}, props, { role: "status", "aria-live": "polite", "aria-busy": "true", size: size, speed: speed, color: color, theme: theme }), void 0));
|
|
46
|
+
|
|
47
|
+
export { Spinner as default };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import theme from '../../theme.js';
|
|
4
|
+
import { Title } from '../../typography/Heading/index.js';
|
|
5
|
+
import '../../shared/media-queries.js';
|
|
6
|
+
|
|
7
|
+
const Container = styled.div `
|
|
8
|
+
min-height: 4rem;
|
|
9
|
+
`;
|
|
10
|
+
const Line = styled.div `
|
|
11
|
+
margin: auto;
|
|
12
|
+
width: 2px;
|
|
13
|
+
height: 100%;
|
|
14
|
+
background-color: ${theme.colors.primary.main};
|
|
15
|
+
`;
|
|
16
|
+
const Graphic = styled.div `
|
|
17
|
+
margin-right: 0.75rem;
|
|
18
|
+
`;
|
|
19
|
+
const Step = styled.div `
|
|
20
|
+
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
21
|
+
display: flex;
|
|
22
|
+
padding-bottom: 1rem;
|
|
23
|
+
|
|
24
|
+
&:last-child {
|
|
25
|
+
${Line} {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
const Circle = styled.div `
|
|
31
|
+
width: 3rem;
|
|
32
|
+
height: 3rem;
|
|
33
|
+
border-radius: 3rem;
|
|
34
|
+
|
|
35
|
+
color: white;
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
background-color: ${theme.colors.primary.main};
|
|
40
|
+
`;
|
|
41
|
+
const CircleText = styled(Title) `
|
|
42
|
+
font-size: 1.5rem;
|
|
43
|
+
font-variant: lining-nums;
|
|
44
|
+
`;
|
|
45
|
+
const Stepper = ({ children, ...props }) => {
|
|
46
|
+
return (jsx(Container, Object.assign({}, props, { children: children.map((step, index) => (jsxs(Step, { children: [jsxs(Graphic, { children: [jsx(Circle, { children: jsx(CircleText, { children: index + 1 }, void 0) }, void 0), jsx(Line, {}, void 0)] }, void 0), step] }, index))) }), void 0));
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export { Stepper };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useState, useCallback, useEffect } from 'react';
|
|
3
|
+
import styled, { css } from 'styled-components';
|
|
4
|
+
import theme from '../../theme.js';
|
|
5
|
+
import { Title } from '../../typography/Heading/index.js';
|
|
6
|
+
import CheckIcon from '../Icons/CheckIcon.js';
|
|
7
|
+
import Arrow from '../Icons/Arrow.js';
|
|
8
|
+
import { fadedColor } from '../../shared/helpers.js';
|
|
9
|
+
import { Collapse } from 'react-collapse';
|
|
10
|
+
import '../../shared/media-queries.js';
|
|
11
|
+
|
|
12
|
+
const DEFAULT_TRANSITION_TIME = '200ms';
|
|
13
|
+
const Container = styled.div `
|
|
14
|
+
.ReactCollapse--collapse {
|
|
15
|
+
transition: height ${DEFAULT_TRANSITION_TIME} ease-in-out;
|
|
16
|
+
}
|
|
17
|
+
`;
|
|
18
|
+
const HeaderExpandedProps = css `
|
|
19
|
+
margin-top: 0.25rem;
|
|
20
|
+
transform: rotate(-180deg);
|
|
21
|
+
`;
|
|
22
|
+
const Header = styled.div `
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
height: 4rem;
|
|
26
|
+
|
|
27
|
+
color: ${props => props.isDisabled ? theme.colors.text.disabled : theme.colors.text.dark};
|
|
28
|
+
`;
|
|
29
|
+
const StyledTitle = styled(Title) `
|
|
30
|
+
margin: 0;
|
|
31
|
+
`;
|
|
32
|
+
const HeaderArrow = styled(Arrow) `
|
|
33
|
+
margin-left: auto;
|
|
34
|
+
height: 1.25rem;
|
|
35
|
+
width: 1.25rem;
|
|
36
|
+
margin-top: -0.75rem;
|
|
37
|
+
|
|
38
|
+
fill: currentColor;
|
|
39
|
+
|
|
40
|
+
transition: ${DEFAULT_TRANSITION_TIME};
|
|
41
|
+
transform: rotate(0deg);
|
|
42
|
+
transform-origin: center;
|
|
43
|
+
${props => props.isExpanded && HeaderExpandedProps};
|
|
44
|
+
`;
|
|
45
|
+
const CircleIsCompleteStyles = (color) => css `
|
|
46
|
+
color: white;
|
|
47
|
+
background-color: ${theme.colors[color].main};
|
|
48
|
+
`;
|
|
49
|
+
const CircleIsDisabledStyles = (isComplete, color) => css `
|
|
50
|
+
fill: white;
|
|
51
|
+
border: 2px solid ${fadedColor(theme.colors[color].main, 0.2)};
|
|
52
|
+
|
|
53
|
+
${isComplete &&
|
|
54
|
+
`
|
|
55
|
+
border: 2px solid ${fadedColor(theme.colors[color].main, 0)};
|
|
56
|
+
background-color: ${fadedColor(theme.colors[color].main, 0.5)};
|
|
57
|
+
`}
|
|
58
|
+
`;
|
|
59
|
+
const Circle = styled.div `
|
|
60
|
+
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
|
|
65
|
+
font-size: 1.25rem;
|
|
66
|
+
margin-right: 0.75rem;
|
|
67
|
+
width: 2rem;
|
|
68
|
+
height: 2rem;
|
|
69
|
+
border-radius: 2rem;
|
|
70
|
+
border: 2px solid ${props => theme.colors[props.color].main};
|
|
71
|
+
|
|
72
|
+
svg {
|
|
73
|
+
fill: currentColor;
|
|
74
|
+
height: 1rem;
|
|
75
|
+
width: 1rem;
|
|
76
|
+
|
|
77
|
+
/* Kvd.se compatible stuff */
|
|
78
|
+
margin: 0;
|
|
79
|
+
top: inherit;
|
|
80
|
+
left: inherit;
|
|
81
|
+
font-size: inherit;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
span {
|
|
85
|
+
font-variant: lining-nums;
|
|
86
|
+
margin-top: 0.1rem;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
transition: background-color ${DEFAULT_TRANSITION_TIME};
|
|
90
|
+
${props => props.isComplete && CircleIsCompleteStyles(props.color)};
|
|
91
|
+
${props => props.isDisabled && CircleIsDisabledStyles(props.isComplete, props.color)};
|
|
92
|
+
`;
|
|
93
|
+
const StepperAccordion = (props) => {
|
|
94
|
+
const [isExpanded, setIsExpanded] = useState(props.isExpanded || false);
|
|
95
|
+
const toggleIsExpanded = useCallback(() => {
|
|
96
|
+
if (!props.isDisabled) {
|
|
97
|
+
setIsExpanded(previousValue => !previousValue);
|
|
98
|
+
}
|
|
99
|
+
}, [props.isDisabled]);
|
|
100
|
+
useEffect(() => {
|
|
101
|
+
setIsExpanded(props.isExpanded || false);
|
|
102
|
+
}, [props.isDisabled, props.isExpanded]);
|
|
103
|
+
const hasSteps = props.step || props.step === 0;
|
|
104
|
+
const handleClick = (event) => {
|
|
105
|
+
const onClick = props.onClick || toggleIsExpanded;
|
|
106
|
+
if (!props.isDisabled) {
|
|
107
|
+
onClick(event);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
return (jsxs(Container, { children: [jsxs(Header, Object.assign({}, props, { onClick: handleClick, isExpanded: isExpanded, isDisabled: props.isDisabled || false }, { children: [hasSteps && (jsx(Circle, Object.assign({ isComplete: props.isComplete || false, isDisabled: props.isDisabled || false, color: props.color || 'primary' }, { children: props.isComplete ? jsx(CheckIcon, {}, void 0) : jsx("span", { children: props.step }, void 0) }), void 0)), jsx(StyledTitle, { children: props.title }, void 0), jsx(HeaderArrow, { isExpanded: isExpanded }, void 0)] }), void 0), jsx(Collapse, Object.assign({ isOpened: isExpanded }, { children: props.children }), void 0), props.closedChildren && props.closedChildren] }, void 0));
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export { StepperAccordion, StepperAccordion as default };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Children } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
|
|
5
|
+
const TabsContainer = styled.div `
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
border-bottom: 1px solid ${({ theme }) => theme.colors.gray.light4};
|
|
8
|
+
`;
|
|
9
|
+
const TabWrapper = styled.div `
|
|
10
|
+
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
11
|
+
font-weight: ${({ theme }) => theme.typography.fontAlternativeRegularWeight};
|
|
12
|
+
padding: 1em;
|
|
13
|
+
border-bottom: ${({ theme, isActive, activeColor }) => isActive
|
|
14
|
+
? `3px solid ${theme.colors[activeColor].main}`
|
|
15
|
+
: '3px solid transparent'};
|
|
16
|
+
transition: color 0.3s ease, border 0.3s ease;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
`;
|
|
19
|
+
const Tab = ({ children, isActive = false, onClick, activeColor = 'primary', }) => {
|
|
20
|
+
return (jsx(TabWrapper, Object.assign({ isActive: isActive, onClick: onClick, activeColor: activeColor }, { children: children }), void 0));
|
|
21
|
+
};
|
|
22
|
+
const Tabs = ({ activeIndex, activeColor = 'primary', children, onTabClick, className, }) => {
|
|
23
|
+
if (Children.count(children) <= 1) {
|
|
24
|
+
console.error('<Tabs /> component has too few children!');
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return (jsx(TabsContainer, Object.assign({ className: className }, { children: Children.map(children, (child, index) => {
|
|
28
|
+
if (!child) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
const onClick = child.props.onClick;
|
|
32
|
+
return (jsx(TabWrapper, Object.assign({}, child.props, { isActive: activeIndex === index, activeColor: activeColor, onClick: event => {
|
|
33
|
+
onTabClick(index);
|
|
34
|
+
if (typeof onClick === 'function') {
|
|
35
|
+
onClick(event);
|
|
36
|
+
}
|
|
37
|
+
}, as: child.type || 'div' }, { children: child.props.children }), void 0));
|
|
38
|
+
}) }), void 0));
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export { Tab, Tabs, Tabs as default };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import styled, { css } from 'styled-components';
|
|
4
|
+
import theme from '../../theme.js';
|
|
5
|
+
import { Label } from '../FieldLabel.js';
|
|
6
|
+
import { BodyTextStyle } from '../../typography/BodyText/index.js';
|
|
7
|
+
|
|
8
|
+
const disabledStyles = css `
|
|
9
|
+
border: 1px solid ${theme.colors.gray.light1};
|
|
10
|
+
color: ${theme.colors.gray.dark1};
|
|
11
|
+
fill: ${theme.colors.gray.light1};
|
|
12
|
+
`;
|
|
13
|
+
const errorStyles = css `
|
|
14
|
+
border: 1px solid ${theme.colors.error.main};
|
|
15
|
+
`;
|
|
16
|
+
const focusStyles = css `
|
|
17
|
+
color: ${theme.colors.text.dark};
|
|
18
|
+
border: 1px solid ${theme.colors.text.dark};
|
|
19
|
+
fill: ${theme.colors.text.dark};
|
|
20
|
+
`;
|
|
21
|
+
const TextAreaWrapper = styled.div `
|
|
22
|
+
position: relative;
|
|
23
|
+
padding: 0;
|
|
24
|
+
display: inline-block;
|
|
25
|
+
`;
|
|
26
|
+
const InputWrapper = styled.div `
|
|
27
|
+
display: inline-black;
|
|
28
|
+
|
|
29
|
+
color: ${theme.colors.gray.light1};
|
|
30
|
+
fill: ${theme.colors.gray.light1};
|
|
31
|
+
background-color: ${theme.colors.background.light};
|
|
32
|
+
|
|
33
|
+
border: 1px solid ${theme.colors.gray.light1};
|
|
34
|
+
border-radius: 0.25em;
|
|
35
|
+
transition: all 150ms;
|
|
36
|
+
|
|
37
|
+
padding: 0.7rem 0.75rem;
|
|
38
|
+
|
|
39
|
+
${({ hasError, isFocused }) => !hasError && isFocused && focusStyles}
|
|
40
|
+
${({ disabled }) => disabled && disabledStyles}
|
|
41
|
+
${({ hasError }) => hasError && errorStyles}
|
|
42
|
+
${({ centered }) => centered && `text-align: center;`}
|
|
43
|
+
`;
|
|
44
|
+
const TextAreaInput = styled.textarea `
|
|
45
|
+
${BodyTextStyle}
|
|
46
|
+
|
|
47
|
+
width: 100%;
|
|
48
|
+
cursor: text;
|
|
49
|
+
outline: none;
|
|
50
|
+
border: none;
|
|
51
|
+
background-color: transparent;
|
|
52
|
+
|
|
53
|
+
${({ resize }) => !resize && 'resize: none;'}
|
|
54
|
+
`;
|
|
55
|
+
const Suffix = styled.div `
|
|
56
|
+
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
57
|
+
`;
|
|
58
|
+
const HelperText = styled.span `
|
|
59
|
+
display: block;
|
|
60
|
+
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
61
|
+
font-size: 0.81rem;
|
|
62
|
+
|
|
63
|
+
margin-top: 0.25rem;
|
|
64
|
+
margin-left: 0.85rem;
|
|
65
|
+
|
|
66
|
+
color: ${({ hasError }) => hasError ? theme.colors.error.main : theme.colors.text.dark};
|
|
67
|
+
|
|
68
|
+
${({ centered }) => centered && `width: 100%; text-align: center; display: block;`}
|
|
69
|
+
`;
|
|
70
|
+
/** The main text field used */
|
|
71
|
+
const TextArea = ({ placeholder = '', isDisabled = false, centered = false, hasError = false, className, helperText, label = '', resize = true, ...props }) => {
|
|
72
|
+
const [isFocused, setIsFocused] = useState(false);
|
|
73
|
+
const hasValue = Boolean(props.value);
|
|
74
|
+
return (jsxs(TextAreaWrapper, Object.assign({ className: className }, { children: [jsxs(InputWrapper, Object.assign({ isFocused: isFocused, disabled: isDisabled, centered: centered, hasError: hasError, hasPlaceholder: !!placeholder }, { children: [jsx(TextAreaInput, Object.assign({}, props, { resize: resize, onFocus: () => setIsFocused(true), onBlur: () => setIsFocused(false), disabled: isDisabled, theme: theme, placeholder: label && !isFocused ? '' : placeholder }), void 0), props.suffix && jsx(Suffix, { children: props.suffix }, void 0)] }), void 0), label && (jsx(Label, Object.assign({ isFocused: isFocused, centered: centered, hasError: hasError, hasValue: hasValue, disabled: isDisabled, theme: theme }, { children: label }), void 0)), helperText && (jsx(HelperText, Object.assign({ centered: centered, hasError: hasError }, { children: helperText }), void 0))] }), void 0));
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export { TextArea, TextArea as default };
|