@kvdbil/components 3.3.5 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/ColorCard.js +25 -0
- package/cjs/ElevationCard.js +13 -0
- package/cjs/Interfaces.js +1 -0
- package/cjs/Types.js +1 -0
- package/cjs/components/Accordion/index.js +51 -0
- package/cjs/components/Badge/index.js +35 -0
- package/cjs/components/Button/index.js +100 -0
- package/cjs/components/Card/index.js +8 -0
- package/cjs/components/CheckBox/index.js +56 -0
- package/cjs/components/Chip/index.js +23 -0
- package/cjs/components/DayPicker/DayPickerNavBar.js +23 -0
- package/cjs/components/DayPicker/index.js +34 -0
- package/cjs/components/DayPicker/localeUtils.js +1 -0
- package/cjs/components/DayPicker/style.js +226 -0
- package/cjs/components/Dialog/index.js +27 -0
- package/cjs/components/ErrorMessage/index.js +10 -0
- package/cjs/components/FieldLabel.js +34 -0
- package/cjs/components/Header/Hamburger.js +31 -0
- package/cjs/components/Header/Link.js +34 -0
- package/cjs/components/Header/index.js +63 -0
- package/cjs/components/Hero/index.js +26 -0
- package/cjs/components/Icon/index.js +32 -0
- package/cjs/components/IconButton.js +80 -0
- package/cjs/components/Icons/Arrow.js +1 -0
- package/cjs/components/Icons/CheckCircle.js +1 -0
- package/cjs/components/Icons/CheckIcon.js +1 -0
- package/cjs/components/Icons/Close.js +1 -0
- package/cjs/components/Icons/ErrorCircle.js +1 -0
- package/cjs/components/Icons/InfoCircle.js +1 -0
- package/cjs/components/InlineStepper/Step.js +56 -0
- package/cjs/components/InlineStepper/StepCircle.js +43 -0
- package/cjs/components/InlineStepper/index.js +7 -0
- package/cjs/components/ListItem/Bacon.js +1 -0
- package/cjs/components/ListItem/index.js +24 -0
- package/cjs/components/Logo/LogoEn.js +1 -0
- package/cjs/components/Logo/LogoSv.js +1 -0
- package/cjs/components/Logo/index.js +3 -0
- package/cjs/components/MenuItem/index.js +38 -0
- package/cjs/components/Modal/index.js +77 -0
- package/cjs/components/NotificationButton/index.js +11 -0
- package/cjs/components/OffCanvas/Overlay.js +27 -0
- package/cjs/components/OffCanvas/index.js +57 -0
- package/cjs/components/OffCanvas/useClickOutside.js +1 -0
- package/cjs/components/RadioButton/index.js +88 -0
- package/cjs/components/Range/index.js +44 -0
- package/cjs/components/Select/components/test-icon.js +1 -0
- package/cjs/components/Select/index.js +44 -0
- package/cjs/components/Snackbar/index.js +78 -0
- package/cjs/components/Spinner/index.js +19 -0
- package/cjs/components/Stepper/index.js +33 -0
- package/cjs/components/StepperAccordion/index.js +72 -0
- package/cjs/components/Tabs/index.js +11 -0
- package/cjs/components/TextArea/index.js +55 -0
- package/cjs/components/Textfield/index.js +55 -0
- package/cjs/components/TimePicker/index.js +9 -0
- package/cjs/components/TimePicker/testHelper.js +1 -0
- package/cjs/components/Toggle/index.js +39 -0
- package/cjs/icons/components/AccountCreateIcon.js +1 -0
- package/cjs/icons/components/AccountIcon.js +1 -0
- package/cjs/icons/components/AccountLoginIcon.js +1 -0
- package/cjs/icons/components/ArrowDownIcon.js +1 -0
- package/cjs/icons/components/ArrowLeftIcon.js +1 -0
- package/cjs/icons/components/ArrowLeftSharpIcon.js +1 -0
- package/cjs/icons/components/ArrowLeftSmallIcon.js +1 -0
- package/cjs/icons/components/ArrowLong.js +1 -0
- package/cjs/icons/components/ArrowRestartIcon.js +1 -0
- package/cjs/icons/components/ArrowRightIcon.js +1 -0
- package/cjs/icons/components/ArrowRightSharpIcon.js +1 -0
- package/cjs/icons/components/ArrowUpIcon.js +1 -0
- package/cjs/icons/components/AuctionIcon.js +1 -0
- package/cjs/icons/components/BackArrowIcon.js +1 -0
- package/cjs/icons/components/Baseline360Icon.js +1 -0
- package/cjs/icons/components/BellIcon.js +1 -0
- package/cjs/icons/components/BidIcon.js +1 -0
- package/cjs/icons/components/BidKrIcon.js +1 -0
- package/cjs/icons/components/BreaksIcon.js +1 -0
- package/cjs/icons/components/BuyCarIcon.js +1 -0
- package/cjs/icons/components/CabIcon.js +1 -0
- package/cjs/icons/components/CalendarIcon.js +1 -0
- package/cjs/icons/components/CameraIcon.js +1 -0
- package/cjs/icons/components/Car360Icon.js +1 -0
- package/cjs/icons/components/CarFrontIcon.js +1 -0
- package/cjs/icons/components/CarSearchIcon.js +1 -0
- package/cjs/icons/components/CarSideIcon.js +1 -0
- package/cjs/icons/components/CarTiresIcon.js +1 -0
- package/cjs/icons/components/CaravanIcon.js +1 -0
- package/cjs/icons/components/CardViewIcon.js +1 -0
- package/cjs/icons/components/CarloanIcon.js +1 -0
- package/cjs/icons/components/CertifiedIcon.js +1 -0
- package/cjs/icons/components/ChatIcon.js +1 -0
- package/cjs/icons/components/CheckIcon.js +1 -0
- package/cjs/icons/components/CheckThinIcon.js +1 -0
- package/cjs/icons/components/CheckmarkFilledIcon.js +1 -0
- package/cjs/icons/components/CheckmarkIcon.js +1 -0
- package/cjs/icons/components/ClipboardFilledIcon.js +1 -0
- package/cjs/icons/components/ClipboardIcon.js +1 -0
- package/cjs/icons/components/ClockFilledIcon.js +1 -0
- package/cjs/icons/components/ClockIcon.js +1 -0
- package/cjs/icons/components/CloseIcon.js +1 -0
- package/cjs/icons/components/CloseThinIcon.js +1 -0
- package/cjs/icons/components/CoffeeIcon.js +1 -0
- package/cjs/icons/components/CombiIcon.js +1 -0
- package/cjs/icons/components/CommentCircleFilledIcon.js +1 -0
- package/cjs/icons/components/CommentCircleIconIcon.js +1 -0
- package/cjs/icons/components/CommentIcon.js +1 -0
- package/cjs/icons/components/ContactIcon.js +1 -0
- package/cjs/icons/components/CoupeIcon.js +1 -0
- package/cjs/icons/components/CreditCardIcon.js +1 -0
- package/cjs/icons/components/CrossCircleIcon.js +1 -0
- package/cjs/icons/components/CrownIcon.js +1 -0
- package/cjs/icons/components/DealmakerIcon.js +1 -0
- package/cjs/icons/components/DeliveryIcon.js +1 -0
- package/cjs/icons/components/DetailedSearchIcon.js +1 -0
- package/cjs/icons/components/EcoFriendlyIcon.js +1 -0
- package/cjs/icons/components/EditIcon.js +1 -0
- package/cjs/icons/components/EngineIcon.js +1 -0
- package/cjs/icons/components/EnglandFlagIcon.js +1 -0
- package/cjs/icons/components/EvaluationIcon.js +1 -0
- package/cjs/icons/components/ExaminationMarkFilledIcon.js +1 -0
- package/cjs/icons/components/ExaminationMarkIcon.js +1 -0
- package/cjs/icons/components/ExteriorIcon.js +1 -0
- package/cjs/icons/components/EyeIcon.js +1 -0
- package/cjs/icons/components/FacebookBtnIcon.js +1 -0
- package/cjs/icons/components/FacebookIcon.js +1 -0
- package/cjs/icons/components/FatalIcon.js +1 -0
- package/cjs/icons/components/FavouriteIcon.js +1 -0
- package/cjs/icons/components/FavouriteSolidIcon.js +1 -0
- package/cjs/icons/components/FilterIcon.js +1 -0
- package/cjs/icons/components/FinanceIcon.js +1 -0
- package/cjs/icons/components/FindCarIcon.js +1 -0
- package/cjs/icons/components/FixedMonthlyCostIcon.js +1 -0
- package/cjs/icons/components/FlagIcon.js +1 -0
- package/cjs/icons/components/FlexibilityIcon.js +1 -0
- package/cjs/icons/components/ForumLargeIcon.js +1 -0
- package/cjs/icons/components/ForumSmallIcon.js +1 -0
- package/cjs/icons/components/GavelIcon.js +1 -0
- package/cjs/icons/components/GearboxIcon.js +1 -0
- package/cjs/icons/components/GiftIcon.js +1 -0
- package/cjs/icons/components/GridViewIcon.js +1 -0
- package/cjs/icons/components/GroupIcon.js +1 -0
- package/cjs/icons/components/GuaranteeIcon.js +1 -0
- package/cjs/icons/components/GuaranteeLargeIcon.js +1 -0
- package/cjs/icons/components/GuaranteeSmallIcon.js +1 -0
- package/cjs/icons/components/HalfCombiIcon.js +1 -0
- package/cjs/icons/components/HamburgerIcon.js +1 -0
- package/cjs/icons/components/HandshakeIcon.js +1 -0
- package/cjs/icons/components/HelpingHandIcon.js +1 -0
- package/cjs/icons/components/IdIcon.js +1 -0
- package/cjs/icons/components/InformationIcon.js +1 -0
- package/cjs/icons/components/InstagramIcon.js +1 -0
- package/cjs/icons/components/InsuranceIcon.js +1 -0
- package/cjs/icons/components/InteriorIcon.js +1 -0
- package/cjs/icons/components/InteriorThinIcon.js +1 -0
- package/cjs/icons/components/InternationalIcon.js +1 -0
- package/cjs/icons/components/KvdTestIcon.js +1 -0
- package/cjs/icons/components/KvdVenueIcon.js +1 -0
- package/cjs/icons/components/LifebuoyIcon.js +1 -0
- package/cjs/icons/components/LiftTruckIcon.js +1 -0
- package/cjs/icons/components/LinkedInIcon.js +1 -0
- package/cjs/icons/components/ListViewIcon.js +1 -0
- package/cjs/icons/components/MailIcon.js +1 -0
- package/cjs/icons/components/MinibusIcon.js +1 -0
- package/cjs/icons/components/MinivanIcon.js +1 -0
- package/cjs/icons/components/MobileIcon.js +1 -0
- package/cjs/icons/components/MotorcycleIcon.js +1 -0
- package/cjs/icons/components/MrfLogoIcon.js +1 -0
- package/cjs/icons/components/NotFoundIcon.js +1 -0
- package/cjs/icons/components/OverbidIcon.js +1 -0
- package/cjs/icons/components/PdfIconIcon.js +1 -0
- package/cjs/icons/components/PhoneIcon.js +1 -0
- package/cjs/icons/components/PickUpIcon.js +1 -0
- package/cjs/icons/components/PinIcon.js +1 -0
- package/cjs/icons/components/PlayIcon.js +1 -0
- package/cjs/icons/components/Pricetag.js +1 -0
- package/cjs/icons/components/PricetagFilledKronaIcon.js +1 -0
- package/cjs/icons/components/PrivateCarIcon.js +1 -0
- package/cjs/icons/components/ProfileCircleIcon.js +1 -0
- package/cjs/icons/components/ProfileIcon.js +1 -0
- package/cjs/icons/components/RadioIcon.js +1 -0
- package/cjs/icons/components/ReclamationIcon.js +1 -0
- package/cjs/icons/components/ReleasingIcon.js +1 -0
- package/cjs/icons/components/RemoveFilterIcon.js +1 -0
- package/cjs/icons/components/ReservedPriceIcon.js +1 -0
- package/cjs/icons/components/ResultIcon.js +1 -0
- package/cjs/icons/components/SafePaymentIcon.js +1 -0
- package/cjs/icons/components/SaleTagIcon.js +1 -0
- package/cjs/icons/components/SearchCheckIcon.js +1 -0
- package/cjs/icons/components/SearchIcon.js +1 -0
- package/cjs/icons/components/SedanIcon.js +1 -0
- package/cjs/icons/components/SellCarIcon.js +1 -0
- package/cjs/icons/components/SellCarsIcon.js +1 -0
- package/cjs/icons/components/ServiceIcon.js +1 -0
- package/cjs/icons/components/ShareIcon.js +1 -0
- package/cjs/icons/components/ShieldIcon.js +1 -0
- package/cjs/icons/components/SignInIcon.js +1 -0
- package/cjs/icons/components/SignOutIcon.js +1 -0
- package/cjs/icons/components/SpeedMeterIcon.js +1 -0
- package/cjs/icons/components/StarCircleIcon.js +1 -0
- package/cjs/icons/components/StartIcon.js +1 -0
- package/cjs/icons/components/StoreIcon.js +1 -0
- package/cjs/icons/components/SuvIcon.js +1 -0
- package/cjs/icons/components/SwedenFlag.js +1 -0
- package/cjs/icons/components/TankIcon.js +1 -0
- package/cjs/icons/components/TireIcon.js +1 -0
- package/cjs/icons/components/TransportIcon.js +1 -0
- package/cjs/icons/components/TrashcanIcon.js +1 -0
- package/cjs/icons/components/TrophyIcon.js +1 -0
- package/cjs/icons/components/TruckIcon.js +1 -0
- package/cjs/icons/components/UmbrellaIcon.js +1 -0
- package/cjs/icons/components/ValuationIcon.js +1 -0
- package/cjs/icons/components/ValueIcon.js +1 -0
- package/cjs/icons/components/WarningIcon.js +1 -0
- package/cjs/icons/components/YoutubeIcon.js +1 -0
- package/cjs/icons/components/index.js +1 -0
- package/cjs/index.js +1 -0
- package/cjs/shared/constants.js +1 -0
- package/cjs/shared/helpers.js +1 -0
- package/cjs/shared/helpers.spec.js +1 -0
- package/cjs/shared/media-queries.js +1 -0
- package/cjs/theme.js +1 -0
- package/cjs/typography/BodyText/index.js +34 -0
- package/cjs/typography/ButtonText/index.js +21 -0
- package/cjs/typography/Heading/index.js +61 -0
- package/cjs/utils/utils.js +9 -0
- package/esm/ColorCard.js +25 -0
- package/esm/ElevationCard.js +13 -0
- package/esm/Interfaces.js +1 -0
- package/esm/Types.js +1 -0
- package/esm/components/Accordion/index.js +51 -0
- package/esm/components/Badge/index.js +35 -0
- package/esm/components/Button/index.js +100 -0
- package/esm/components/Card/index.js +8 -0
- package/esm/components/CheckBox/index.js +56 -0
- package/esm/components/Chip/index.js +23 -0
- package/esm/components/DayPicker/DayPickerNavBar.js +23 -0
- package/esm/components/DayPicker/index.js +34 -0
- package/esm/components/DayPicker/localeUtils.js +1 -0
- package/esm/components/DayPicker/style.js +226 -0
- package/esm/components/Dialog/index.js +27 -0
- package/esm/components/ErrorMessage/index.js +10 -0
- package/esm/components/FieldLabel.js +34 -0
- package/esm/components/Header/Hamburger.js +31 -0
- package/esm/components/Header/Link.js +34 -0
- package/esm/components/Header/index.js +63 -0
- package/esm/components/Hero/index.js +26 -0
- package/esm/components/Icon/index.js +32 -0
- package/esm/components/IconButton.js +80 -0
- package/esm/components/Icons/Arrow.js +1 -0
- package/esm/components/Icons/CheckCircle.js +1 -0
- package/esm/components/Icons/CheckIcon.js +1 -0
- package/esm/components/Icons/Close.js +1 -0
- package/esm/components/Icons/ErrorCircle.js +1 -0
- package/esm/components/Icons/InfoCircle.js +1 -0
- package/esm/components/InlineStepper/Step.js +56 -0
- package/esm/components/InlineStepper/StepCircle.js +43 -0
- package/esm/components/InlineStepper/index.js +7 -0
- package/esm/components/ListItem/Bacon.js +1 -0
- package/esm/components/ListItem/index.js +24 -0
- package/esm/components/Logo/LogoEn.js +1 -0
- package/esm/components/Logo/LogoSv.js +1 -0
- package/esm/components/Logo/index.js +3 -0
- package/esm/components/MenuItem/index.js +38 -0
- package/esm/components/Modal/index.js +77 -0
- package/esm/components/NotificationButton/index.js +11 -0
- package/esm/components/OffCanvas/Overlay.js +27 -0
- package/esm/components/OffCanvas/index.js +57 -0
- package/esm/components/OffCanvas/useClickOutside.js +1 -0
- package/esm/components/RadioButton/index.js +88 -0
- package/esm/components/Range/index.js +44 -0
- package/esm/components/Select/components/test-icon.js +1 -0
- package/esm/components/Select/index.js +44 -0
- package/esm/components/Snackbar/index.js +78 -0
- package/esm/components/Spinner/index.js +19 -0
- package/esm/components/Stepper/index.js +33 -0
- package/esm/components/StepperAccordion/index.js +72 -0
- package/esm/components/Tabs/index.js +11 -0
- package/esm/components/TextArea/index.js +55 -0
- package/esm/components/Textfield/index.js +55 -0
- package/esm/components/TimePicker/index.js +9 -0
- package/esm/components/TimePicker/testHelper.js +1 -0
- package/esm/components/Toggle/index.js +39 -0
- package/esm/icons/components/AccountCreateIcon.js +1 -0
- package/esm/icons/components/AccountIcon.js +1 -0
- package/esm/icons/components/AccountLoginIcon.js +1 -0
- package/esm/icons/components/ArrowDownIcon.js +1 -0
- package/esm/icons/components/ArrowLeftIcon.js +1 -0
- package/esm/icons/components/ArrowLeftSharpIcon.js +1 -0
- package/esm/icons/components/ArrowLeftSmallIcon.js +1 -0
- package/esm/icons/components/ArrowLong.js +1 -0
- package/esm/icons/components/ArrowRestartIcon.js +1 -0
- package/esm/icons/components/ArrowRightIcon.js +1 -0
- package/esm/icons/components/ArrowRightSharpIcon.js +1 -0
- package/esm/icons/components/ArrowUpIcon.js +1 -0
- package/esm/icons/components/AuctionIcon.js +1 -0
- package/esm/icons/components/BackArrowIcon.js +1 -0
- package/esm/icons/components/Baseline360Icon.js +1 -0
- package/esm/icons/components/BellIcon.js +1 -0
- package/esm/icons/components/BidIcon.js +1 -0
- package/esm/icons/components/BidKrIcon.js +1 -0
- package/esm/icons/components/BreaksIcon.js +1 -0
- package/esm/icons/components/BuyCarIcon.js +1 -0
- package/esm/icons/components/CabIcon.js +1 -0
- package/esm/icons/components/CalendarIcon.js +1 -0
- package/esm/icons/components/CameraIcon.js +1 -0
- package/esm/icons/components/Car360Icon.js +1 -0
- package/esm/icons/components/CarFrontIcon.js +1 -0
- package/esm/icons/components/CarSearchIcon.js +1 -0
- package/esm/icons/components/CarSideIcon.js +1 -0
- package/esm/icons/components/CarTiresIcon.js +1 -0
- package/esm/icons/components/CaravanIcon.js +1 -0
- package/esm/icons/components/CardViewIcon.js +1 -0
- package/esm/icons/components/CarloanIcon.js +1 -0
- package/esm/icons/components/CertifiedIcon.js +1 -0
- package/esm/icons/components/ChatIcon.js +1 -0
- package/esm/icons/components/CheckIcon.js +1 -0
- package/esm/icons/components/CheckThinIcon.js +1 -0
- package/esm/icons/components/CheckmarkFilledIcon.js +1 -0
- package/esm/icons/components/CheckmarkIcon.js +1 -0
- package/esm/icons/components/ClipboardFilledIcon.js +1 -0
- package/esm/icons/components/ClipboardIcon.js +1 -0
- package/esm/icons/components/ClockFilledIcon.js +1 -0
- package/esm/icons/components/ClockIcon.js +1 -0
- package/esm/icons/components/CloseIcon.js +1 -0
- package/esm/icons/components/CloseThinIcon.js +1 -0
- package/esm/icons/components/CoffeeIcon.js +1 -0
- package/esm/icons/components/CombiIcon.js +1 -0
- package/esm/icons/components/CommentCircleFilledIcon.js +1 -0
- package/esm/icons/components/CommentCircleIconIcon.js +1 -0
- package/esm/icons/components/CommentIcon.js +1 -0
- package/esm/icons/components/ContactIcon.js +1 -0
- package/esm/icons/components/CoupeIcon.js +1 -0
- package/esm/icons/components/CreditCardIcon.js +1 -0
- package/esm/icons/components/CrossCircleIcon.js +1 -0
- package/esm/icons/components/CrownIcon.js +1 -0
- package/esm/icons/components/DealmakerIcon.js +1 -0
- package/esm/icons/components/DeliveryIcon.js +1 -0
- package/esm/icons/components/DetailedSearchIcon.js +1 -0
- package/esm/icons/components/EcoFriendlyIcon.js +1 -0
- package/esm/icons/components/EditIcon.js +1 -0
- package/esm/icons/components/EngineIcon.js +1 -0
- package/esm/icons/components/EnglandFlagIcon.js +1 -0
- package/esm/icons/components/EvaluationIcon.js +1 -0
- package/esm/icons/components/ExaminationMarkFilledIcon.js +1 -0
- package/esm/icons/components/ExaminationMarkIcon.js +1 -0
- package/esm/icons/components/ExteriorIcon.js +1 -0
- package/esm/icons/components/EyeIcon.js +1 -0
- package/esm/icons/components/FacebookBtnIcon.js +1 -0
- package/esm/icons/components/FacebookIcon.js +1 -0
- package/esm/icons/components/FatalIcon.js +1 -0
- package/esm/icons/components/FavouriteIcon.js +1 -0
- package/esm/icons/components/FavouriteSolidIcon.js +1 -0
- package/esm/icons/components/FilterIcon.js +1 -0
- package/esm/icons/components/FinanceIcon.js +1 -0
- package/esm/icons/components/FindCarIcon.js +1 -0
- package/esm/icons/components/FixedMonthlyCostIcon.js +1 -0
- package/esm/icons/components/FlagIcon.js +1 -0
- package/esm/icons/components/FlexibilityIcon.js +1 -0
- package/esm/icons/components/ForumLargeIcon.js +1 -0
- package/esm/icons/components/ForumSmallIcon.js +1 -0
- package/esm/icons/components/GavelIcon.js +1 -0
- package/esm/icons/components/GearboxIcon.js +1 -0
- package/esm/icons/components/GiftIcon.js +1 -0
- package/esm/icons/components/GridViewIcon.js +1 -0
- package/esm/icons/components/GroupIcon.js +1 -0
- package/esm/icons/components/GuaranteeIcon.js +1 -0
- package/esm/icons/components/GuaranteeLargeIcon.js +1 -0
- package/esm/icons/components/GuaranteeSmallIcon.js +1 -0
- package/esm/icons/components/HalfCombiIcon.js +1 -0
- package/esm/icons/components/HamburgerIcon.js +1 -0
- package/esm/icons/components/HandshakeIcon.js +1 -0
- package/esm/icons/components/HelpingHandIcon.js +1 -0
- package/esm/icons/components/IdIcon.js +1 -0
- package/esm/icons/components/InformationIcon.js +1 -0
- package/esm/icons/components/InstagramIcon.js +1 -0
- package/esm/icons/components/InsuranceIcon.js +1 -0
- package/esm/icons/components/InteriorIcon.js +1 -0
- package/esm/icons/components/InteriorThinIcon.js +1 -0
- package/esm/icons/components/InternationalIcon.js +1 -0
- package/esm/icons/components/KvdTestIcon.js +1 -0
- package/esm/icons/components/KvdVenueIcon.js +1 -0
- package/esm/icons/components/LifebuoyIcon.js +1 -0
- package/esm/icons/components/LiftTruckIcon.js +1 -0
- package/esm/icons/components/LinkedInIcon.js +1 -0
- package/esm/icons/components/ListViewIcon.js +1 -0
- package/esm/icons/components/MailIcon.js +1 -0
- package/esm/icons/components/MinibusIcon.js +1 -0
- package/esm/icons/components/MinivanIcon.js +1 -0
- package/esm/icons/components/MobileIcon.js +1 -0
- package/esm/icons/components/MotorcycleIcon.js +1 -0
- package/esm/icons/components/MrfLogoIcon.js +1 -0
- package/esm/icons/components/NotFoundIcon.js +1 -0
- package/esm/icons/components/OverbidIcon.js +1 -0
- package/esm/icons/components/PdfIconIcon.js +1 -0
- package/esm/icons/components/PhoneIcon.js +1 -0
- package/esm/icons/components/PickUpIcon.js +1 -0
- package/esm/icons/components/PinIcon.js +1 -0
- package/esm/icons/components/PlayIcon.js +1 -0
- package/esm/icons/components/Pricetag.js +1 -0
- package/esm/icons/components/PricetagFilledKronaIcon.js +1 -0
- package/esm/icons/components/PrivateCarIcon.js +1 -0
- package/esm/icons/components/ProfileCircleIcon.js +1 -0
- package/esm/icons/components/ProfileIcon.js +1 -0
- package/esm/icons/components/RadioIcon.js +1 -0
- package/esm/icons/components/ReclamationIcon.js +1 -0
- package/esm/icons/components/ReleasingIcon.js +1 -0
- package/esm/icons/components/RemoveFilterIcon.js +1 -0
- package/esm/icons/components/ReservedPriceIcon.js +1 -0
- package/esm/icons/components/ResultIcon.js +1 -0
- package/esm/icons/components/SafePaymentIcon.js +1 -0
- package/esm/icons/components/SaleTagIcon.js +1 -0
- package/esm/icons/components/SearchCheckIcon.js +1 -0
- package/esm/icons/components/SearchIcon.js +1 -0
- package/esm/icons/components/SedanIcon.js +1 -0
- package/esm/icons/components/SellCarIcon.js +1 -0
- package/esm/icons/components/SellCarsIcon.js +1 -0
- package/esm/icons/components/ServiceIcon.js +1 -0
- package/esm/icons/components/ShareIcon.js +1 -0
- package/esm/icons/components/ShieldIcon.js +1 -0
- package/esm/icons/components/SignInIcon.js +1 -0
- package/esm/icons/components/SignOutIcon.js +1 -0
- package/esm/icons/components/SpeedMeterIcon.js +1 -0
- package/esm/icons/components/StarCircleIcon.js +1 -0
- package/esm/icons/components/StartIcon.js +1 -0
- package/esm/icons/components/StoreIcon.js +1 -0
- package/esm/icons/components/SuvIcon.js +1 -0
- package/esm/icons/components/SwedenFlag.js +1 -0
- package/esm/icons/components/TankIcon.js +1 -0
- package/esm/icons/components/TireIcon.js +1 -0
- package/esm/icons/components/TransportIcon.js +1 -0
- package/esm/icons/components/TrashcanIcon.js +1 -0
- package/esm/icons/components/TrophyIcon.js +1 -0
- package/esm/icons/components/TruckIcon.js +1 -0
- package/esm/icons/components/UmbrellaIcon.js +1 -0
- package/esm/icons/components/ValuationIcon.js +1 -0
- package/esm/icons/components/ValueIcon.js +1 -0
- package/esm/icons/components/WarningIcon.js +1 -0
- package/esm/icons/components/YoutubeIcon.js +1 -0
- package/esm/icons/components/index.js +1 -0
- package/esm/index.js +1 -0
- package/esm/shared/constants.js +1 -0
- package/esm/shared/helpers.js +1 -0
- package/esm/shared/helpers.spec.js +1 -0
- package/esm/shared/media-queries.js +1 -0
- package/esm/theme.js +1 -0
- package/esm/typography/BodyText/index.js +34 -0
- package/esm/typography/ButtonText/index.js +21 -0
- package/esm/typography/Heading/index.js +61 -0
- package/esm/utils/utils.js +9 -0
- package/package.json +20 -11
- 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 -1
- package/{components → types/components}/DayPicker/localeUtils.d.ts +0 -0
- package/types/components/DayPicker/style.d.ts +2 -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 +1 -1
- package/{components → types/components}/Header/Hamburger.d.ts +0 -0
- package/{components → types/components}/Header/Link.d.ts +1 -1
- 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 +1 -1
- package/{components → types/components}/Modal/index.d.ts +0 -0
- package/{components → types/components}/NotificationButton/index.d.ts +0 -0
- package/{components → types/components}/OffCanvas/Overlay.d.ts +0 -0
- package/{components → types/components}/OffCanvas/index.d.ts +0 -0
- package/{components → types/components}/OffCanvas/useClickOutside.d.ts +0 -0
- package/{components → types/components}/RadioButton/index.d.ts +0 -0
- package/{components → types/components}/Range/index.d.ts +0 -0
- package/types/components/Select/components/test-icon.d.ts +1 -0
- package/{components → types/components}/Select/index.d.ts +9 -8
- package/{components → types/components}/Snackbar/index.d.ts +0 -0
- package/{components → types/components}/Spinner/index.d.ts +0 -0
- package/{components → types/components}/Stepper/index.d.ts +0 -0
- package/{components → types/components}/StepperAccordion/index.d.ts +0 -0
- package/{components → types/components}/Tabs/index.d.ts +0 -0
- package/{components → types/components}/TextArea/index.d.ts +0 -0
- package/{components → types/components}/Textfield/index.d.ts +0 -0
- package/{components → types/components}/TimePicker/index.d.ts +0 -0
- package/{components → types/components}/TimePicker/testHelper.d.ts +0 -0
- package/{components → types/components}/Toggle/index.d.ts +0 -0
- package/{icons → types/icons}/components/AccountCreateIcon.d.ts +0 -0
- package/{icons → types/icons}/components/AccountIcon.d.ts +0 -0
- package/{icons → types/icons}/components/AccountLoginIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowDownIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowLeftIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowLeftSharpIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowLeftSmallIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowLong.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowRestartIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowRightIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowRightSharpIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowUpIcon.d.ts +0 -0
- package/{icons → types/icons}/components/AuctionIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BackArrowIcon.d.ts +0 -0
- package/{icons → types/icons}/components/Baseline360Icon.d.ts +0 -0
- package/{icons → types/icons}/components/BellIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BidIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BidKrIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BreaksIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BuyCarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CabIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CalendarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CameraIcon.d.ts +0 -0
- package/{icons → types/icons}/components/Car360Icon.d.ts +0 -0
- package/{icons → types/icons}/components/CarFrontIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CarSearchIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CarSideIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CarTiresIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CaravanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CardViewIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CarloanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CertifiedIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ChatIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CheckIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CheckThinIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CheckmarkFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CheckmarkIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ClipboardFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ClipboardIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ClockFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ClockIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CloseIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CloseThinIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CoffeeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CombiIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CommentCircleFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CommentCircleIconIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CommentIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ContactIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CoupeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CreditCardIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CrossCircleIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CrownIcon.d.ts +0 -0
- package/{icons → types/icons}/components/DealmakerIcon.d.ts +0 -0
- package/{icons → types/icons}/components/DeliveryIcon.d.ts +0 -0
- package/{icons → types/icons}/components/DetailedSearchIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EcoFriendlyIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EditIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EngineIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EnglandFlagIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EvaluationIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ExaminationMarkFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ExaminationMarkIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ExteriorIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EyeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FacebookBtnIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FacebookIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FatalIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FavouriteIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FavouriteSolidIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FilterIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FinanceIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FindCarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FixedMonthlyCostIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FlagIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FlexibilityIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ForumLargeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ForumSmallIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GavelIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GearboxIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GiftIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GridViewIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GroupIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GuaranteeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GuaranteeLargeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GuaranteeSmallIcon.d.ts +0 -0
- package/{icons → types/icons}/components/HalfCombiIcon.d.ts +0 -0
- package/{icons → types/icons}/components/HamburgerIcon.d.ts +0 -0
- package/{icons → types/icons}/components/HandshakeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/HelpingHandIcon.d.ts +0 -0
- package/{icons → types/icons}/components/IdIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InformationIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InstagramIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InsuranceIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InteriorIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InteriorThinIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InternationalIcon.d.ts +0 -0
- package/{icons → types/icons}/components/KvdTestIcon.d.ts +0 -0
- package/{icons → types/icons}/components/KvdVenueIcon.d.ts +0 -0
- package/{icons → types/icons}/components/LifebuoyIcon.d.ts +0 -0
- package/{icons → types/icons}/components/LiftTruckIcon.d.ts +0 -0
- package/{icons → types/icons}/components/LinkedInIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ListViewIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MailIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MinibusIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MinivanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MobileIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MotorcycleIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MrfLogoIcon.d.ts +0 -0
- package/{icons → types/icons}/components/NotFoundIcon.d.ts +0 -0
- package/{icons → types/icons}/components/OverbidIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PdfIconIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PhoneIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PickUpIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PinIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PlayIcon.d.ts +0 -0
- package/{icons → types/icons}/components/Pricetag.d.ts +0 -0
- package/{icons → types/icons}/components/PricetagFilledKronaIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PrivateCarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ProfileCircleIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ProfileIcon.d.ts +0 -0
- package/{icons → types/icons}/components/RadioIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ReclamationIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ReleasingIcon.d.ts +0 -0
- package/{icons → types/icons}/components/RemoveFilterIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ReservedPriceIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ResultIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SafePaymentIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SaleTagIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SearchCheckIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SearchIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SedanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SellCarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SellCarsIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ServiceIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ShareIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ShieldIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SignInIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SignOutIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SpeedMeterIcon.d.ts +0 -0
- package/{icons → types/icons}/components/StarCircleIcon.d.ts +0 -0
- package/{icons → types/icons}/components/StartIcon.d.ts +0 -0
- package/{icons → types/icons}/components/StoreIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SuvIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SwedenFlag.d.ts +0 -0
- package/{icons → types/icons}/components/TankIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TireIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TransportIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TrashcanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TrophyIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TruckIcon.d.ts +0 -0
- package/{icons → types/icons}/components/UmbrellaIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ValuationIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ValueIcon.d.ts +0 -0
- package/{icons → types/icons}/components/WarningIcon.d.ts +0 -0
- package/{icons → types/icons}/components/YoutubeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/index.d.ts +0 -0
- package/types/icons/template.d.ts +10 -0
- package/{index.d.ts → types/index.d.ts} +0 -0
- package/types/serviceWorker.d.ts +2 -0
- package/{setupTests.d.ts → types/setupTests.d.ts} +0 -0
- package/{shared → types/shared}/constants.d.ts +0 -0
- package/{shared → types/shared}/helpers.d.ts +0 -0
- package/{shared → types/shared}/media-queries.d.ts +0 -0
- package/{testUtils.d.ts → types/testUtils.d.ts} +0 -0
- package/{theme.d.ts → types/theme.d.ts} +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/kvdbil-components.css +0 -224
- package/kvdbil-components.js +0 -1495
- package/kvdbil-components.js.map +0 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import r from"react";import i from"styled-components";import t from"../../theme.js";import s from"../Icons/CheckIcon.js";const l=e=>({active:{background:t.colors.primary.main,color:t.colors.text.light,border:`1px solid ${t.colors.primary.main}`},completed:{background:t.colors.success.main,color:t.colors.text.light,border:`1px solid ${t.colors.success.main}`},disabled:{background:e,color:t.colors.primary.main,border:`1px solid ${t.colors.primary.main}`}}),a=i.div`
|
|
2
|
+
box-sizing: content-box;
|
|
3
|
+
width: 40px;
|
|
4
|
+
height: 40px;
|
|
5
|
+
border-radius: 50%;
|
|
6
|
+
position: relative;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
border: ${({state:e,backgroundColor:o})=>l(o)[e].border};
|
|
11
|
+
justify-content: center;
|
|
12
|
+
background-color: ${({state:e,backgroundColor:o})=>l(o)[e].background};
|
|
13
|
+
color: ${({state:e,backgroundColor:o})=>l(o)[e].color};
|
|
14
|
+
&:after {
|
|
15
|
+
content: '';
|
|
16
|
+
width: 42px;
|
|
17
|
+
height: 42px;
|
|
18
|
+
border-radius: 50%;
|
|
19
|
+
top: -11px;
|
|
20
|
+
left: -11px;
|
|
21
|
+
position: absolute;
|
|
22
|
+
z-index: 2;
|
|
23
|
+
border: ${({backgroundColor:e})=>`10px solid ${e}`};
|
|
24
|
+
}
|
|
25
|
+
`,d=i.div`
|
|
26
|
+
display: flex;
|
|
27
|
+
font-size: 1.25rem;
|
|
28
|
+
line-height: 1;
|
|
29
|
+
font-family: ${({theme:e})=>e.typography.fontAlternativeFamily};
|
|
30
|
+
font-weight: ${({theme:e})=>e.typography.fontAlternativeBoldWeight};
|
|
31
|
+
width: 100%;
|
|
32
|
+
height: 100%;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
`,m=i.div`
|
|
36
|
+
width: 14px;
|
|
37
|
+
height: 14px;
|
|
38
|
+
display: flex;
|
|
39
|
+
& svg {
|
|
40
|
+
fill: ${({theme:e})=>e.colors.text.light};
|
|
41
|
+
width: 100%;
|
|
42
|
+
}
|
|
43
|
+
`,p=({state:e,step:o,backgroundColor:c=t.colors.background.light,...n})=>r.createElement("div",null,r.createElement(a,{className:e,state:e,...n,backgroundColor:c},r.createElement(d,{as:"div"},e==="completed"?r.createElement(m,null,r.createElement(s,{className:""})):r.createElement("span",{className:"step-content-text"},o))));export{p as default};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import m,{cloneElement as i}from"react";import d from"styled-components";import h from"../../theme.js";const u=d.div`
|
|
2
|
+
min-height: 4rem;
|
|
3
|
+
padding: 10px 0;
|
|
4
|
+
display: ${({orientation:e})=>e==="horizontal"?"flex":"block"};
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
background-color: ${({backgroundColor:e})=>e};
|
|
7
|
+
`,y=(e,r)=>i(e,r),f=({children:e,activeStep:r=0,orientation:n="horizontal",backgroundColor:l=h.colors.background.light,...c})=>{const p=(Array.isArray(e)?e:[e]).map((o,t)=>{var s;const a={active:t===r,step:t+1,completed:t<r,disabled:t>r,children:(s=o==null?void 0:o.props)==null?void 0:s.children,orientation:n,backgroundColor:l};return y(o,a)});return m.createElement(u,{...c,orientation:n,backgroundColor:l},p)};export{f as InlineStepper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"react";const e=({color:c="black"})=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",viewBox:"0 0 1000 1000",fill:c},t.createElement("title",null,"Bacon"),t.createElement("path",{d:"M7204.2 5021.9c-224.4-46.1-422.8-204.4-537-430.8-32.1-66.1-98.2-226.4-144.3-358.7-128.3-368.7-210.4-521-362.7-677.3-210.4-214.4-458.9-312.6-903.8-354.7-364.7-36.1-527-90.2-659.3-222.4-104.2-104.2-150.3-246.5-188.4-585.1-16-162.3-44.1-332.6-62.1-378.7-100.2-284.5-320.6-410.8-799.5-456.9-342.7-32.1-515-98.2-637.2-242.5-100.2-116.2-132.3-224.4-164.3-569.1-38.1-424.8-88.2-545.1-268.5-667.3C2354.8-3.8 2220.6-39.9 1899.9-76c-148.3-18-328.6-50.1-402.8-72.1C1040.3-288.4 647.5-633 401-1108c-158.3-306.6-252.5-605.2-292.6-921.8-24-196.4 4-396.8 72.1-511 26-44.1 529-559.1 1116.2-1144.2 1004-1001.9 1074.1-1068 1176.3-1100.1 232.5-76.1 537 0 719.4 176.3 138.3 134.3 214.4 282.6 342.7 663.3 64.1 194.4 148.3 404.8 186.4 466.9 166.3 278.5 484.9 438.8 967.9 486.9 474.9 48.1 629.2 96.2 773.5 240.5 122.2 122.2 152.3 218.4 188.3 617.2 22.1 246.5 38.1 328.6 78.2 410.8 120.2 248.5 274.5 328.7 753.4 384.7 290.6 34.1 454.9 82.2 561.1 166.3 158.3 130.3 208.4 264.5 238.5 655.3 12 144.3 34.1 306.6 50.1 360.7 78.1 256.5 276.5 386.8 657.3 430.9 312.6 36.1 515 78.1 675.3 140.3 450.9 174.3 843.6 593.1 1066 1132.2 132.3 320.6 168.3 486.9 168.3 781.5-2 436.8 82.1 322.6-1140.2 1549-821.6 823.6-1066 1058.1-1144.2 1096.1-116.3 56.1-282.6 76.2-410.8 48.1zm356.7-527l130.3-126.3-70.1-118.2c-40.1-64.1-132.2-250.5-204.4-412.8-220.4-495-340.7-685.3-567.1-897.7-248.5-236.4-551.1-358.7-997.9-400.8-400.8-38.1-585.1-130.3-691.3-346.7-50.1-104.2-66.1-172.3-90.2-404.8-56.1-497-130.2-651.3-376.7-769.5-122.2-60.1-186.4-74.2-611.2-130.3-362.7-48.1-563.1-188.4-633.2-438.8-16-58.1-40.1-222.4-52.1-368.7-34.1-426.8-100.2-569.1-314.6-681.3-144.3-74.1-236.5-98.2-511-126.2-513-52.1-843.6-204.4-1160.2-535-172.3-180.4-288.6-348.7-400.8-583.1-90.2-188.4-188.4-472.9-208.4-611.2-8-52.1-22-98.2-30.1-104.2-8-4-72.1 50.1-140.3 122.3l-126.2 130.2 12 174.3c20 326.7 154.3 721.4 340.7 999.9 266.5 400.8 643.2 617.2 1142.2 655.3 615.2 48.1 983.9 316.6 1106.1 803.6 16 66.1 38.1 234.5 50.1 372.7 10 140.3 28.1 276.5 38.1 304.6 28.1 74.2 118.2 114.2 318.6 138.3 478.9 56.1 633.2 100.2 841.6 236.5 204.4 132.3 352.7 354.7 414.8 629.2 14 66.1 38.1 222.4 50.1 346.7 28.1 288.6 46.1 342.7 134.3 380.7 40.1 16 194.4 42.1 346.7 58.1 887.7 92.2 1300.5 422.8 1599.1 1270.4 108.2 308.6 134.3 364.7 198.4 440.9 66.1 78.1 150.3 118.2 254.5 120.2 67.9-.1 91.9-14.1 208.2-128.3zm1466.8-1563c-22-34.1-64.1-162.3-98.2-284.6-82.1-304.6-132.2-428.8-224.4-567.1-248.5-372.7-697.4-597.2-1498.9-753.5-288.5-56.1-382.7-94.2-480.9-192.4-128.3-126.2-182.4-290.5-232.5-703.3-70.1-577.1-188.4-721.4-611.2-747.5-623.2-40.1-923.8-214.4-1090.1-633.2-28.1-70.1-84.2-254.5-122.2-408.8-82.2-332.6-160.3-503-274.5-599.1-106.2-92.2-218.4-128.3-472.9-152.3-226.4-22-452.9-88.2-625.2-184.4-398.8-222.4-791.5-685.3-1076.1-1268.5-68.1-142.3-126.2-272.5-126.2-284.6 0-46.1-30.1-28-146.3 90.2L1831.9-3639l64.1 98.2c36.1 52.1 136.3 258.5 222.4 456.9 246.5 567.1 380.7 779.5 601.2 949.8 248.5 190.4 503 274.5 977.9 324.6 328.6 32.1 466.9 82.2 607.2 216.4 110.2 106.2 152.3 240.5 184.4 593.2 38.1 400.8 64.1 484.9 194.4 605.2 134.3 128.2 264.5 172.3 637.2 216.4 306.6 36.1 432.9 74.2 545.1 158.3 174.3 132.3 224.4 264.5 256.5 665.3 26 344.7 62.1 452.9 190.4 583.1 130.3 132.3 256.5 180.3 589.2 218.4 140.3 16 308.6 44.1 374.7 60.1 621.2 162.3 1120.2 755.5 1370.7 1633.2 24.1 82.2 48.1 162.3 52.1 178.3 6 20 68.1-28.1 186.4-146.3l178.3-176.3-36.4-63.9zm404.8-314.6c22-28.1 48.1-110.2 60.1-182.4 58.1-336.6-176.3-951.8-489-1288.5-242.5-260.5-505-392.8-853.6-432.8-460.9-52.1-639.2-104.2-845.6-242.5-68.1-44.1-158.3-128.2-200.4-184.4C6961.7 98.3 6913.6-58 6875.6-468.8c-16-162.3-38.1-314.6-52.1-338.7-36.1-68.1-134.3-96.2-430.8-130.3-539-60.1-835.6-218.4-1005.9-543-84.2-156.3-122.2-322.6-146.3-637.2-34.1-420.8 0-394.8-671.3-472.9-565.1-66.1-979.9-302.6-1208.3-691.3-48.1-82.1-132.3-288.6-202.4-499-68.1-196.4-138.3-384.7-160.3-420.8-88.2-142.3-244.5-230.4-358.7-202.4-54.1 14-144.3 84.2-144.3 114.2 0 8 28.1 62.1 64.1 118.2 34.1 58.1 138.3 274.5 228.4 484.9 218.4 497 318.6 663.3 529 875.7 296.6 298.6 631.2 432.8 1172.3 472.9 226.4 16 290.6 40.1 346.7 132.2 56.1 90.2 78.2 186.4 126.3 527 22 162.3 62.1 364.7 88.2 448.9C5192.3-779.3 5488.9-607 6116.1-607c228.4 0 268.5 6 346.7 46.1 96.2 48.1 168.3 138.3 200.4 252.5 12 40.1 38.1 194.4 60.1 342.7 22 148.3 58.1 330.7 82.1 402.8 82.2 264.5 270.5 428.8 557.1 488.9 561.1 116.2 761.5 184.4 1028 342.7 302.6 182.4 609.2 517 775.5 845.6 72.1 144.3 182.3 460.9 182.3 525 0 54.1 34.1 44.1 84.2-22z",transform:"matrix(.1 0 0 -.1 0 511)"}));export{e as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import e from"react";import t from"styled-components";import{BodyText as m}from"../../typography/BodyText/index.js";import{TinyTitle as d}from"../../typography/Heading/index.js";import"../../shared/media-queries.js";const p=t.li`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
padding-bottom: 20px;
|
|
5
|
+
&:last-child {
|
|
6
|
+
padding-bottom: 0;
|
|
7
|
+
}
|
|
8
|
+
`,s=t.div`
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
margin: 0;
|
|
12
|
+
`,c=t(d)`
|
|
13
|
+
margin: 0;
|
|
14
|
+
`,g=t.div`
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
margin-right: 24px;
|
|
18
|
+
svg {
|
|
19
|
+
width: 30px;
|
|
20
|
+
height: 100%;
|
|
21
|
+
}
|
|
22
|
+
`,x=t.div`
|
|
23
|
+
padding-left: ${({hasIcon:n})=>n?"54px":0};
|
|
24
|
+
`,y=({title:n,text:l,icon:i,component:a="li",children:o,...r})=>e.createElement(p,{as:a,...r},e.createElement(s,null,i&&e.createElement(g,null,i),e.createElement(c,null,n)),e.createElement(x,{hasIcon:Boolean(i)},e.createElement(m,null,l,o)));export{y as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import C from"react";const e=()=>C.createElement("svg",{viewBox:"0 0 622 223",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"kvdlogo-en"},C.createElement("title",{id:"kvdlogo-en"},"kvdcars.com"),C.createElement("path",{d:"M563.63 130.23C561.82 127.17 559.53 124.57 556.81 122.52C554.18 120.54 551.29 118.87 548.23 117.57C545.36 116.35 542.64 115.15 540.14 113.99C537.8 112.9 535.83 111.71 534.29 110.44C533.08 109.44 532.52 108.24 532.52 106.67C532.52 105.1 533 103.96 534.02 103.11C535.07 102.24 536.56 101.77 538.46 101.73L561.94 109.52V87.83L560.57 87.35C556.81 86.02 553.15 84.93 549.69 84.12C546.16 83.29 542.26 82.86 538.12 82.86C533.98 82.86 530.19 83.43 526.85 84.55C523.47 85.69 520.55 87.34 518.16 89.44C515.76 91.56 513.88 94.13 512.56 97.09C511.24 100.04 510.58 103.34 510.58 106.9C510.58 111.77 511.52 115.84 513.38 118.99C515.2 122.07 517.48 124.61 520.18 126.56C522.79 128.44 525.66 130 528.73 131.18C531.61 132.3 534.3 133.42 536.71 134.52C539.01 135.57 540.96 136.75 542.49 138.01C543.7 139.01 544.26 140.31 544.26 142.11C544.26 144.1 543.67 145.47 542.4 146.43C541.05 147.45 539.09 147.99 536.59 148.04L511.34 139.22V161.63L512.59 162.16C515.97 163.59 519.84 164.8 524.09 165.77C528.38 166.75 532.95 167.24 537.67 167.24C541.8 167.24 545.64 166.67 549.08 165.55C552.56 164.42 555.62 162.77 558.18 160.64C560.78 158.48 562.82 155.81 564.26 152.7C565.69 149.6 566.42 146.03 566.42 142.1C566.44 137.37 565.49 133.38 563.63 130.23Z",fill:"#1A2030"}),C.createElement("path",{d:"M124.01 84.33H99.02L77.58 114.92V56.04H55.16V166.56H77.58V132.24L101.06 166.56H127.94L96.57 123.5L124.01 84.33Z",fill:"#1A2030"}),C.createElement("path",{d:"M235.3 144.12C224.78 144.12 216.25 135.59 216.25 125.07C216.25 114.55 224.78 106.02 235.3 106.02C245.83 106.02 254.35 114.55 254.35 125.07C254.35 135.59 245.82 144.12 235.3 144.12ZM255.53 88.9C249.48 85.46 242.49 83.5 235.04 83.5C212.11 83.5 193.52 102.09 193.52 125.02C193.52 147.95 212.11 166.54 235.04 166.54C242.49 166.54 249.49 164.58 255.53 161.14V166.56H277.95V56.04H255.53V88.9Z",fill:"#1A2030"}),C.createElement("path",{d:"M175.62 84.33L161.08 131.23L146.54 84.33H124.32L149.81 166.56H150.13H172.04H172.35L197.84 84.33H175.62Z",fill:"#1A2030"}),C.createElement("path",{d:"M411.58 144.12C401.06 144.12 392.53 135.59 392.53 125.07C392.53 114.55 401.06 106.02 411.58 106.02C422.1 106.02 430.63 114.55 430.63 125.07C430.63 135.59 422.11 144.12 411.58 144.12ZM411.31 83.5C388.38 83.5 369.79 102.08 369.79 125.01C369.79 147.94 388.38 166.53 411.31 166.53C418.86 166.53 425.94 164.52 432.04 161V166.55H454.46V84.33H432.04V89.03C425.94 85.52 418.86 83.5 411.31 83.5Z",fill:"#1A2030"}),C.createElement("path",{d:"M342.97 130.89C340.51 138.56 333.32 144.12 324.83 144.12C314.3 144.12 305.78 135.59 305.78 125.07C305.78 114.55 314.31 106.02 324.83 106.02C333.59 106.02 340.95 111.94 343.18 120H366.04C363.56 99.44 346.06 83.5 324.84 83.5C301.91 83.5 283.33 102.09 283.33 125.01C283.33 147.94 301.9 166.52 324.84 166.52C345.77 166.52 363.08 151.02 365.93 130.88H342.97V130.89Z",fill:"#1A2030"}),C.createElement("path",{d:"M505.29 83.5C498.52 83.5 492.15 85.14 486.5 88.01V84.33H464.08V166.55H486.5V161.92V125.07H486.51C486.51 114.55 495.04 106.02 505.56 106.02C505.95 106.02 506.34 106.06 506.72 106.08V83.55C506.25 83.53 505.77 83.5 505.29 83.5Z",fill:"#1A2030"}));export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";const t=()=>e.createElement("svg",{viewBox:"0 0 492 223",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"kvdlogo-sv"},e.createElement("title",{id:"kvdlogo-sv"},"kvd.se"),e.createElement("path",{d:"M124.94 84.11H99.78L78.2 114.91V55.63H55.63V166.89H78.2V132.34L101.83 166.89H128.89L97.32 123.54L124.94 84.11Z",fill:"#1A2030"}),e.createElement("path",{d:"M393.79 87.26C389.7 87.26 385.88 86.1 382.64 84.1H382.51V166.88H405.08V84.1H404.95C401.69 86.1 397.87 87.26 393.79 87.26Z",fill:"#1A2030"}),e.createElement("path",{d:"M436.21 55.59H413.64V166.89H436.21V55.59Z",fill:"#1A2030"}),e.createElement("path",{d:"M393.79 49.9C384.96 49.9 377.77 57.09 377.77 65.92C377.77 74.75 384.95 81.94 393.79 81.94C402.63 81.94 409.81 74.76 409.81 65.92C409.8 57.09 402.62 49.9 393.79 49.9ZM393.79 72.85C389.97 72.85 386.86 69.74 386.86 65.92C386.86 62.1 389.97 58.99 393.79 58.99C397.61 58.99 400.72 62.1 400.72 65.92C400.72 69.74 397.61 72.85 393.79 72.85Z",fill:"#1A2030"}),e.createElement("path",{d:"M336.08 83.27C328.48 83.27 321.36 85.3 315.22 88.84V55.63H292.65V166.89H315.22V161.3C321.36 164.84 328.49 166.87 336.08 166.87C359.16 166.87 377.88 148.16 377.88 125.07C377.87 101.98 359.16 83.27 336.08 83.27ZM335.81 144.3C325.22 144.3 316.63 135.71 316.63 125.12C316.63 114.53 325.22 105.94 335.81 105.94C346.4 105.94 354.99 114.53 354.99 125.12C354.99 135.71 346.4 144.3 335.81 144.3Z",fill:"#1A2030"}),e.createElement("path",{d:"M257.34 88.71C251.25 85.25 244.21 83.27 236.71 83.27C213.62 83.27 194.91 101.98 194.91 125.07C194.91 148.15 213.62 166.87 236.71 166.87C244.21 166.87 251.25 164.89 257.34 161.43V166.89H279.91V55.63H257.34V88.71ZM236.98 144.3C226.39 144.3 217.8 135.71 217.8 125.12C217.8 114.53 226.39 105.94 236.98 105.94C247.57 105.94 256.16 114.53 256.16 125.12C256.16 135.71 247.57 144.3 236.98 144.3Z",fill:"#1A2030"}),e.createElement("path",{d:"M176.9 84.11L162.26 131.32L147.62 84.11H125.25L150.92 166.89H151.23H173.29H173.6L199.27 84.11H176.9Z",fill:"#1A2030"}));export{t as default};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import e from"react";import s from"styled-components";import m from"./LogoSv.js";import d from"./LogoEn.js";const a=(t,o)=>o||(t==="en"?175:132),c=s.div`
|
|
2
|
+
width: ${({width:t})=>t}px;
|
|
3
|
+
`,n=({locale:t,width:o})=>{const r=t==="en"?d:m,i=a(t,o);return e.createElement(c,{width:i,"data-testid":`logo-${t}`},e.createElement(r,null))};export{n as Logo,n as default};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import o from"react";import t from"styled-components";import m from"../../theme.js";const r={1:{size:"2rem",lineHeight:"3rem",bottom:"2rem",fontFamily:m.typography.fontAlternativeFamily},2:{size:"1.5rem",lineHeight:"2.5rem",bottom:"1rem",fontFamily:m.typography.fontAlternativeFamily},3:{size:"1rem",lineHeight:"1.5rem",bottom:"1rem",fontFamily:m.typography.fontBaseFamily}},p=t.li`
|
|
2
|
+
list-style-type: none;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
${({hasPreamble:e})=>e&&"grid-column-end: span 2"};
|
|
6
|
+
|
|
7
|
+
:hover {
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
`,a=t.span`
|
|
11
|
+
font-family: ${({theme:e})=>e.typography.fontAlternativeFamily};
|
|
12
|
+
font-weight: ${({theme:e})=>e.typography.fontAlternativeRegularWeight};
|
|
13
|
+
`,c=t.div`
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
padding-bottom: ${({level:e})=>r[e].bottom};
|
|
17
|
+
`,g=t(a)`
|
|
18
|
+
color: ${({theme:e})=>e.colors.text.dark};
|
|
19
|
+
font-size: ${({level:e})=>r[e].size};
|
|
20
|
+
line-height: ${({level:e})=>r[e].lineHeight};
|
|
21
|
+
font-family: ${({level:e})=>r[e].fontFamily};
|
|
22
|
+
|
|
23
|
+
${({level:e,theme:n})=>e===3&&`font-weight: ${n.typography.fontAlternativeRegularWeight}`};
|
|
24
|
+
`,d=t(a)`
|
|
25
|
+
font-size: 0.75rem;
|
|
26
|
+
font-weight: ${({theme:e})=>e.typography.fontAlternativeBoldWeight};
|
|
27
|
+
line-height: 1.25rem;
|
|
28
|
+
color: ${({theme:e})=>e.colors.text.dark};
|
|
29
|
+
text-transform: uppercase;
|
|
30
|
+
margin-bottom: 1.5rem;
|
|
31
|
+
`,$=t(a)`
|
|
32
|
+
font-size: 0.8125rem;
|
|
33
|
+
font-weight: ${({theme:e})=>e.typography.fontBaseRegularWeight};
|
|
34
|
+
line-height: 1.5rem;
|
|
35
|
+
font-family: ${({theme:e})=>e.typography.fontBaseFamily};
|
|
36
|
+
color: ${({theme:e})=>e.colors.text.dark};
|
|
37
|
+
margin-top: ${({level:e})=>e===3?"0.25rem":0};
|
|
38
|
+
`,h=({preamble:e,title:n,level:i,component:s="li",children:f,...y})=>{const l=Boolean(e);return o.createElement(p,{as:s,...y,hasPreamble:l},n&&o.createElement(d,null,n),o.createElement(c,{level:i},o.createElement(g,{level:i,hasPreamble:l},f),e&&o.createElement($,{level:i},e)))};export{h as MenuItem,h as default};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import t,{useEffect as u}from"react";import{createPortal as g}from"react-dom";import{CSSTransition as x}from"react-transition-group";import n,{css as h,createGlobalStyle as a}from"styled-components";import b from"../Icons/Close.js";const d=h`
|
|
2
|
+
.backgroundTransition-enter {
|
|
3
|
+
opacity: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.backgroundTransition-enter.backgroundTransition-enter-active {
|
|
7
|
+
opacity: 1;
|
|
8
|
+
transition: opacity 0.25s ease-in-out;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.backgroundTransition-exit {
|
|
12
|
+
opacity: 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.backgroundTransition-exit.backgroundTransition-exit-active {
|
|
16
|
+
opacity: 0;
|
|
17
|
+
transition: opacity 0.25s ease-in-out;
|
|
18
|
+
}
|
|
19
|
+
`,f=n.div`
|
|
20
|
+
${d}
|
|
21
|
+
position: fixed;
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
top: 0;
|
|
25
|
+
left: 0;
|
|
26
|
+
z-index: 200;
|
|
27
|
+
`,w=n.div`
|
|
28
|
+
z-index: -1;
|
|
29
|
+
position: absolute;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 100%;
|
|
32
|
+
background-color: rgba(34, 34, 34, 0.3);
|
|
33
|
+
`,y=n.div`
|
|
34
|
+
position: relative;
|
|
35
|
+
max-width: 512px;
|
|
36
|
+
padding: 24px 32px 24px 32px;
|
|
37
|
+
background-color: white;
|
|
38
|
+
border-radius: 3px;
|
|
39
|
+
box-shadow: 0px 24px 38px rgba(0, 0, 0, 0.1), 0px 9px 46px rgba(0, 0, 0, 0.09),
|
|
40
|
+
0px 11px 15px rgba(0, 0, 0, 0.15);
|
|
41
|
+
|
|
42
|
+
overflow-y: hidden;
|
|
43
|
+
margin: 1rem;
|
|
44
|
+
margin-top: 50vh;
|
|
45
|
+
transform: translate(0, -50%);
|
|
46
|
+
margin-left: 1rem;
|
|
47
|
+
margin-right: 1rem;
|
|
48
|
+
|
|
49
|
+
@media (min-width: 500px) {
|
|
50
|
+
margin-left: auto;
|
|
51
|
+
margin-right: auto;
|
|
52
|
+
min-width: 355px;
|
|
53
|
+
}
|
|
54
|
+
`,k=n.div`
|
|
55
|
+
position: absolute;
|
|
56
|
+
top: 24px;
|
|
57
|
+
right: 32px;
|
|
58
|
+
|
|
59
|
+
:hover {
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
svg {
|
|
64
|
+
width: 1rem;
|
|
65
|
+
height: 1rem;
|
|
66
|
+
}
|
|
67
|
+
`,v=a`
|
|
68
|
+
body {
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
|
|
71
|
+
${typeof window!="undefined"&&window.innerWidth>1024&&`
|
|
72
|
+
padding-right: 15px !important;
|
|
73
|
+
`}
|
|
74
|
+
}
|
|
75
|
+
`,E=a`
|
|
76
|
+
${d}
|
|
77
|
+
`,s=({children:c,isOpen:o,contentStyles:l,withPortal:m=!1,onClose:e})=>{u(()=>{const r=p=>{p.key==="Escape"&&o&&e()};return window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}},[e,o]);const i=t.createElement(x,{in:o,mountOnEnter:!0,unmountOnExit:!0,timeout:400,classNames:"backgroundTransition"},t.createElement(t.Fragment,null,t.createElement(E,null),t.createElement(f,null,t.createElement(w,{"data-testid":"background",onClick:e}),t.createElement(y,{style:l},t.createElement(k,{onClick:e,"data-testid":"close"},t.createElement(b,null)),c),t.createElement(v,null))));return m?g(i,document.body):i};export{s as Modal,s as default};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import o from"react";import e from"styled-components";import{Badge as i}from"../Badge/index.js";import{Button as r}from"../Button/index.js";import"../../theme.js";import"../Spinner/index.js";import"../../typography/ButtonText/index.js";const d=e.div`
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
`,a=e(i)`
|
|
5
|
+
position: absolute;
|
|
6
|
+
top: 0;
|
|
7
|
+
right: 0;
|
|
8
|
+
margin: -10px;
|
|
9
|
+
border: 2px solid white;
|
|
10
|
+
${t=>t.noPadding&&"padding: 0;"}
|
|
11
|
+
`,m=t=>{const n=(t.badgeProps.notificationAmount||0)<10;return o.createElement(d,null,o.createElement(r,{...t.buttonProps},t.children),o.createElement(a,{...t.badgeProps,noPadding:n}))};export{m as NotificationButton};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import n from"react";import{CSSTransition as a}from"react-transition-group";import c from"styled-components";const s={classNames:"backgroundTransition",timeout:{enter:400,exit:400},mountOnEnter:!0,unmountOnExit:!0},u=c.div`
|
|
2
|
+
position: fixed;
|
|
3
|
+
z-index: 1000;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
top: 0;
|
|
7
|
+
right: 0;
|
|
8
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
9
|
+
|
|
10
|
+
&.backgroundTransition-enter {
|
|
11
|
+
opacity: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&.backgroundTransition-enter.backgroundTransition-enter-active {
|
|
15
|
+
opacity: 1;
|
|
16
|
+
transition: opacity 0.2s ease-in-out;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.backgroundTransition-exit {
|
|
20
|
+
opacity: 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.backgroundTransition-exit.backgroundTransition-exit-active {
|
|
24
|
+
opacity: 0;
|
|
25
|
+
transition: opacity 0.2s ease-in-out;
|
|
26
|
+
}
|
|
27
|
+
`,d=({className:i,isOpen:o,onClick:t,transitionProps:e=s})=>{const r=()=>{t&&t()};return n.createElement(a,{in:o,...e,className:i},n.createElement(u,{onClick:r}))};export{d as default};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import e,{useRef as p}from"react";import{createPortal as v}from"react-dom";import d from"styled-components";import{CSSTransition as x}from"react-transition-group";import E from"./Overlay.js";import{useOutsideClick as b}from"./useClickOutside.js";const y="offCanvasAnimation",C={timeout:{enter:300,exit:300},mountOnEnter:!0,unmountOnExit:!0},O=d.div`
|
|
2
|
+
${({animationName:t,animationDuration:s,width:r,from:n,backgroundColor:l,theme:o})=>`
|
|
3
|
+
position: fixed;
|
|
4
|
+
z-index: 1001;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
top: 0;
|
|
8
|
+
${n==="left"?"left: 0;":"right: 0;"}
|
|
9
|
+
background-color: ${l||o.colors.background.light};
|
|
10
|
+
width: ${r};
|
|
11
|
+
box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.2);
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
&.${t}--right-enter {
|
|
15
|
+
transform: translate3d(${r}, 0, 0);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&.${t}--right-enter.${t}--right-enter-active {
|
|
19
|
+
transform: translate3d(0, 0, 0);
|
|
20
|
+
transition: transform 0.2s ease-in-out;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.${t}--right-exit {
|
|
24
|
+
transform: translate3d(0, 0, 0);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.${t}--right-exit.${t}--right-exit-active {
|
|
28
|
+
transform: translate3d(${r}, 0, 0);
|
|
29
|
+
transition: transform 0.2s ease-in-out;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.${t}--left-enter {
|
|
33
|
+
transform: translate3d(-${r}, 0, 0);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.${t}--left-enter.${t}--left-enter-active {
|
|
37
|
+
transform: translate3d(0, 0, 0);
|
|
38
|
+
transition: transform 0.2s ease-in-out;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.${t}--left-exit {
|
|
42
|
+
transform: translate3d(0, 0, 0);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.${t}--left-exit.${t}--left-exit-active {
|
|
46
|
+
transform: translate3d(-${r}, 0, 0);
|
|
47
|
+
transition: transform ${s}ms ease-in-out;
|
|
48
|
+
}
|
|
49
|
+
`}
|
|
50
|
+
`,w=d.div`
|
|
51
|
+
position: relative;
|
|
52
|
+
width: 100%;
|
|
53
|
+
height: 100%;
|
|
54
|
+
overflow-x: hidden;
|
|
55
|
+
overflow-y: auto;
|
|
56
|
+
-webkit-overflow-scrolling: touch;
|
|
57
|
+
`,$=({animationName:t=y,animationDuration:s=300,backgroundColor:r,backgroundOverlay:n,children:l,from:o="right",isOpen:i,onClickOutside:a,width:m="375px",withPortal:g,transitionProps:h})=>{const f=p(null);b(f,()=>a==null?void 0:a()),n&&!a&&console.error("Please provide a clickOutside handler when using backgroundOverlay option in OffCanvas component");const c=`${t}--${o}`,u=e.createElement(e.Fragment,null,n&&e.createElement(E,{isOpen:i}),e.createElement(e.Fragment,null,e.createElement(x,{in:i,className:`${t} ${c}`,classNames:c,...C,...h},e.createElement(O,{ref:f,animationName:t,animationDuration:s,backgroundColor:r,from:o,width:m},e.createElement(w,{className:`${t}-content`},l)))));return g?v(u,document.body):u};export{$ as OffCanvas,$ as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useCallback as r,useEffect as s}from"react";const u=(e,n)=>{const t=r(o=>{e.current&&!e.current.contains(o.target)&&n()},[n,e]);s(()=>(document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}),[t])};export{u as useOutsideClick};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import t from"react";import i,{css as o}from"styled-components";import{generateNameHash as g}from"../../shared/helpers.js";import r from"../../theme.js";import h from"../IconButton.js";const m=o`
|
|
2
|
+
.circle {
|
|
3
|
+
&--outer {
|
|
4
|
+
height: 24px;
|
|
5
|
+
width: 24px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&--inner {
|
|
9
|
+
height: 100%;
|
|
10
|
+
width: 100%;
|
|
11
|
+
transform: scale(0.6);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`,p=o`
|
|
15
|
+
.circle {
|
|
16
|
+
&--outer {
|
|
17
|
+
height: 32px;
|
|
18
|
+
width: 32px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&--inner {
|
|
22
|
+
height: 100%;
|
|
23
|
+
width: 100%;
|
|
24
|
+
transform: scale(0.6);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
`,b={regular:m,large:p},y=o`
|
|
28
|
+
cursor: default;
|
|
29
|
+
|
|
30
|
+
.circle {
|
|
31
|
+
&--inner {
|
|
32
|
+
background-color: ${r.colors.gray.light1};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&--outer {
|
|
36
|
+
border: 2px solid ${r.colors.gray.light1};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`,f=o`
|
|
40
|
+
.circle {
|
|
41
|
+
&--inner {
|
|
42
|
+
opacity: 1;
|
|
43
|
+
background-color: ${r.colors.gray.light1};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`,x=e=>o`
|
|
47
|
+
.circle {
|
|
48
|
+
&--inner {
|
|
49
|
+
opacity: 1;
|
|
50
|
+
background-color: ${r.colors[e].main};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&--outer {
|
|
54
|
+
border: 2px solid ${r.colors[e].main};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
`,$=i.label`
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
display: flex;
|
|
60
|
+
position: relative;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
|
|
64
|
+
${e=>b[e.size]};
|
|
65
|
+
|
|
66
|
+
${e=>!e.isDisabled&&e.isChecked&&x(e.color)};
|
|
67
|
+
${e=>e.isDisabled&&y};
|
|
68
|
+
|
|
69
|
+
${e=>e.isChecked&&e.isDisabled&&f};
|
|
70
|
+
`,k=i.input`
|
|
71
|
+
display: none;
|
|
72
|
+
`,z=i.span`
|
|
73
|
+
display: flex;
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
border-radius: 50%;
|
|
76
|
+
|
|
77
|
+
border: 2px solid ${r.colors.gray.light1};
|
|
78
|
+
`,B=i.span`
|
|
79
|
+
box-sizing: border-box;
|
|
80
|
+
opacity: 0;
|
|
81
|
+
margin: auto;
|
|
82
|
+
border-radius: 50%;
|
|
83
|
+
background-color: ${r.colors.gray.light1};
|
|
84
|
+
|
|
85
|
+
position: absolute;
|
|
86
|
+
top: 0;
|
|
87
|
+
left: 0;
|
|
88
|
+
`,n=({name:e=g("radio-button"),size:d="regular",checked:l=!1,isDisabled:c=!1,color:a="secondary",onChange:s,...u})=>t.createElement(h,{onClick:s,isActive:l,isDisabled:c,color:a},t.createElement(k,{"data-validate":"checked",type:"radio",name:e,id:e,onChange:s,disabled:c,...u}),t.createElement($,{htmlFor:e,size:d,color:a,isChecked:l,isDisabled:c},t.createElement(z,{className:"circle circle--outer"},t.createElement(B,{className:"circle circle--inner"}))));export{n as RadioButton,n as default};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import t from"react";import n from"styled-components";import i from"../../theme.js";import{CaptionLink as p}from"../../typography/BodyText/index.js";import{Display1 as m}from"../../typography/Heading/index.js";import"../../shared/media-queries.js";const c=n.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
position: relative;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: center;
|
|
6
|
+
`,d=n.div`
|
|
7
|
+
display: flex;
|
|
8
|
+
position: relative;
|
|
9
|
+
width: 100%;
|
|
10
|
+
`,g=n(m)`
|
|
11
|
+
color: ${({color:e})=>i.colors[e].main};
|
|
12
|
+
line-height: 1;
|
|
13
|
+
margin-top: 0;
|
|
14
|
+
margin-bottom: 0;
|
|
15
|
+
`,a=n(p)`
|
|
16
|
+
flex: 1;
|
|
17
|
+
color: ${i.colors.gray.light1};
|
|
18
|
+
line-height: 1.2;
|
|
19
|
+
position: relative;
|
|
20
|
+
text-align: center;
|
|
21
|
+
&:before {
|
|
22
|
+
content: '';
|
|
23
|
+
background: ${({color:e})=>i.colors[e].main};
|
|
24
|
+
margin: 0 auto 2px;
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
height: 12px;
|
|
29
|
+
top: 34px;
|
|
30
|
+
position: relative;
|
|
31
|
+
width: 2px;
|
|
32
|
+
}
|
|
33
|
+
`,f=n(a)`
|
|
34
|
+
&:after {
|
|
35
|
+
content: '';
|
|
36
|
+
position: absolute;
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 4px;
|
|
39
|
+
background: ${({color:e})=>i.colors[e].main};
|
|
40
|
+
top: 40px;
|
|
41
|
+
left: 50%;
|
|
42
|
+
transform: translate(0, -50%);
|
|
43
|
+
}
|
|
44
|
+
`,r=({displayValue:e,maxValue:l,minValue:s,color:o="primary"})=>t.createElement(c,null,e&&t.createElement(g,{as:"span",color:o},e),t.createElement(d,null,t.createElement(f,{as:"span",color:o},s),t.createElement(a,{as:"span",color:o},l)));export{r as Range,r as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"react";const e=()=>t.createElement("svg",{viewBox:"0 0 896.003 896.004",height:"18px",width:"18px",y:"0px",x:"0px",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M850.321,663.513C774.05,802.057,626.63,896.004,457.168,896.004c-247.688,0-448.478-200.578-448.478-448.002 S209.479,0,457.168,0c203.805,0,375.577,135.92,430.145,321.882L428.365,478.82L850.321,663.513z M614.342,318.945 c43.631,0,78.998-35.7,78.998-79.736c0-44.039-35.367-79.735-78.998-79.735c-43.63,0-78.999,35.696-78.999,79.735 C535.343,283.245,570.712,318.945,614.342,318.945"}));export{e as TestIcon};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import t,{useState as $}from"react";import z from"react-select";import d from"styled-components";import{DEFAULT_TRANSITION_MS as x}from"../../shared/constants.js";import r from"../../theme.js";import{Label as A}from"../FieldLabel.js";const M=d.div`
|
|
2
|
+
font-family: ${({theme:e})=>e.typography.fontBaseFamily};
|
|
3
|
+
position: relative;
|
|
4
|
+
`,F=e=>e&&{paddingLeft:"2.5rem"},O=e=>e&&{border:`1px solid ${r.colors.gray.light1}`,color:r.colors.gray.dark1,fill:r.colors.gray.light1},_=d.div`
|
|
5
|
+
position: absolute;
|
|
6
|
+
z-index: 1;
|
|
7
|
+
top: 0.5rem;
|
|
8
|
+
margin: 0.35rem 0.75rem;
|
|
9
|
+
|
|
10
|
+
fill: ${r.colors.gray.dark5};
|
|
11
|
+
transition: ${x};
|
|
12
|
+
|
|
13
|
+
${e=>e.isDisabled&&`
|
|
14
|
+
fill: ${r.colors.gray.light1};
|
|
15
|
+
`}
|
|
16
|
+
|
|
17
|
+
${e=>e.isFocused&&`
|
|
18
|
+
fill: ${e.theme.colors.text.dark};
|
|
19
|
+
`}
|
|
20
|
+
`,j=d.span`
|
|
21
|
+
display: block;
|
|
22
|
+
font-family: ${({theme:e})=>e.typography.fontBaseFamily};
|
|
23
|
+
font-size: 0.81rem;
|
|
24
|
+
margin-top: 0.25rem;
|
|
25
|
+
margin-left: 0.85rem;
|
|
26
|
+
color: ${({hasError:e})=>e?r.colors.error.main:r.colors.text.disabled};
|
|
27
|
+
`,T=e=>t.createElement("svg",{...e},t.createElement("symbol",{id:"icon-arrow",viewBox:"0 0 19 19"},t.createElement("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"})),t.createElement("use",{xlinkHref:"#icon-arrow"})),V=d(T)`
|
|
28
|
+
width: 0.8rem;
|
|
29
|
+
height: 0.8rem;
|
|
30
|
+
margin: 0 0.5rem;
|
|
31
|
+
${e=>e.$isFocused&&`color: ${e.$theme.colors.text.dark}`}
|
|
32
|
+
${e=>e.$isDisabled&&`color: ${e.$theme.colors.gray.dark1}`}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
path {
|
|
36
|
+
fill: currentColor;
|
|
37
|
+
stroke: currentColor;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
transition: transform ${x};
|
|
41
|
+
|
|
42
|
+
transform: ${e=>e.$isMenuOpen?"rotate(-180deg)":"rotate(0deg)"};
|
|
43
|
+
transform-origin: 50% 60%;
|
|
44
|
+
`,H=(e,a)=>a?r.colors.error.main:e?r.colors.text.dark:r.colors.gray.light1,N=({selectProps:{menuIsOpen:e=!1},isFocused:a=!1,isDisabled:m})=>t.createElement(V,{$isDisabled:m,$isFocused:a,$isMenuOpen:e,$theme:r}),k=({className:e,color:a="primary",forwardRef:m,hasError:u=!1,height:i,helperText:p,isDisabled:s=!1,onBlur:C=()=>null,onFocus:v=()=>null,onInputChange:w=()=>null,placeholder:L="",name:f,...n})=>{const[c,h]=$(!1),[B,I]=$(""),S=(o,l)=>{w(o,l),I(o)},y=({isSelected:o,isFocused:l,isDisabled:g})=>o?r.colors[a].main:g?r.colors.background.light:l?r.colors.background.gray:r.colors.background.light,E=o=>{h(!0),v(o)},D=o=>{h(!1),C(o)},R=H(c,u);return t.createElement(M,{className:e},n.label&&t.createElement(A,{htmlFor:f,height:i,isFocused:c,hasValue:Boolean(n.value||B),disabled:s,theme:r,hasError:u},n.label),n.prefix&&t.createElement(_,{isDisabled:s,isFocused:c},n.prefix),t.createElement(z,{...n,inputId:f,name:f,ref:m,isDisabled:s,onInputChange:S,placeholder:L,onFocus:E,onBlur:D,styles:{control:o=>({...o,borderRadius:0,color:r.colors.text.dark,fontFamily:r.typography.fontBaseFamily,fontSize:"1rem",fontWeight:400,cursor:"pointer",padding:"0.7rem 0.75rem",backgroundColor:r.colors.background.light,borderColor:R,boxShadow:"none","&:hover":{borderColor:"none"},...O(s),...F(Boolean(n.prefix))}),placeholder:o=>({...o,display:c?"static":"none"}),singleValue:o=>({...o,maxWidth:"calc(100% - 3.3rem)",width:"calc(100% - 3.3rem)"}),menuList:o=>({...o,padding:"8px 0"}),menu:o=>({...o,borderRadius:0,boxShadow:r.elevations.elevation2,zIndex:2,padding:"0"}),option:(o,{isSelected:l,isFocused:g,isDisabled:b})=>({...o,padding:"1rem",cursor:b?"not-allowed":"pointer","&:hover":{background:y({isSelected:l,isFocused:!0,isDisabled:b})},background:y({isSelected:l,isFocused:g}),...F(Boolean(n.prefix))}),valueContainer:o=>({...o,position:"static",padding:i?`${i-1}rem 0 `:0,height:i?"auto":"21px"})},components:{IndicatorSeparator:()=>null,DropdownIndicator:N}}),p&&t.createElement(j,{hasError:u},p))};export{k as Select,k as default};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import t,{useEffect as E}from"react";import a,{css as o}from"styled-components";import r from"../../theme.js";import $ from"../Icons/CheckCircle.js";import C from"../Icons/Close.js";import k from"../Icons/ErrorCircle.js";import b from"../Icons/InfoCircle.js";import{CSSTransition as v}from"react-transition-group";const I={top:o`
|
|
2
|
+
top: 0;
|
|
3
|
+
`,bottom:o`
|
|
4
|
+
bottom: 0;
|
|
5
|
+
`},j={right:o`
|
|
6
|
+
right: 0;
|
|
7
|
+
`,center:o`
|
|
8
|
+
left: 50%;
|
|
9
|
+
transform: translate(-50%, 0);
|
|
10
|
+
`,left:o`
|
|
11
|
+
left: 0;
|
|
12
|
+
`},g=200,n="anim",w=a.div`
|
|
13
|
+
font-family: ${({theme:e})=>e.typography.fontBaseFamily};
|
|
14
|
+
position: fixed;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
|
|
18
|
+
line-height: 1rem;
|
|
19
|
+
margin: 1rem;
|
|
20
|
+
|
|
21
|
+
max-width: 630px;
|
|
22
|
+
|
|
23
|
+
border-radius: 0.4rem;
|
|
24
|
+
padding: 1.15rem 1.25rem;
|
|
25
|
+
|
|
26
|
+
font-weight: ${({theme:e})=>e.typography.fontBaseBoldWeight};
|
|
27
|
+
font-size: 0.875rem;
|
|
28
|
+
|
|
29
|
+
box-shadow: ${r.elevations.elevation8};
|
|
30
|
+
background-color: ${e=>e.color!=="none"?r.colors[e.color].main:r.colors.background.light};
|
|
31
|
+
color: ${e=>e.color!=="none"?r.colors.text.light:r.colors.text.dark};
|
|
32
|
+
|
|
33
|
+
${e=>I[e.origin.vertical||"bottom"]}
|
|
34
|
+
${e=>j[e.origin.horizontal||"left"]}
|
|
35
|
+
|
|
36
|
+
transition: opacity ${g}ms ease-in;
|
|
37
|
+
|
|
38
|
+
&.${n}-enter {
|
|
39
|
+
opacity: 0;
|
|
40
|
+
}
|
|
41
|
+
&.${n}-enter-active {
|
|
42
|
+
opacity: 1;
|
|
43
|
+
}
|
|
44
|
+
&.${n}-exit {
|
|
45
|
+
opacity: 1;
|
|
46
|
+
}
|
|
47
|
+
&.${n}-exit-active {
|
|
48
|
+
opacity: 0;
|
|
49
|
+
}
|
|
50
|
+
`,f=a.div`
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
margin: -0.25rem 0;
|
|
53
|
+
margin-right: 0.75rem;
|
|
54
|
+
|
|
55
|
+
${e=>e.type==="text"&&"margin-right: 0;"}
|
|
56
|
+
|
|
57
|
+
svg {
|
|
58
|
+
width: 1.5rem;
|
|
59
|
+
height: 1.5rem;
|
|
60
|
+
fill: ${e=>e.color!=="none"?r.colors.background.light:r.colors.background.dark};
|
|
61
|
+
}
|
|
62
|
+
`,S=a(f)`
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
|
|
65
|
+
/* Bigger click area */
|
|
66
|
+
padding: 0.25rem;
|
|
67
|
+
|
|
68
|
+
/* Negate padding */
|
|
69
|
+
margin: -0.25rem;
|
|
70
|
+
margin-left: 0.5rem;
|
|
71
|
+
|
|
72
|
+
svg {
|
|
73
|
+
width: 1rem;
|
|
74
|
+
height: 1rem;
|
|
75
|
+
}
|
|
76
|
+
`,B=a.span`
|
|
77
|
+
flex: 1;
|
|
78
|
+
`,z={error:t.createElement(k,null),success:t.createElement($,null),info:t.createElement(b,null),text:""},h=({message:e,color:i="none",type:c="info",action:m,isOpen:p,origin:d={},onClose:l=()=>{},onExited:u=()=>{},autoHideDuration:s=4e3,...y})=>(E(()=>{const x=setTimeout(l,s);return()=>clearTimeout(x)},[s,l]),t.createElement(v,{in:p,timeout:g,mountOnEnter:!0,unmountOnExit:!0,onExited:u,classNames:n},t.createElement(w,{...y,color:i,origin:d},t.createElement(f,{color:i,type:c},z[c]),t.createElement(B,null,e),m&&m,t.createElement(S,{color:i!=null?i:"none",onClick:l},t.createElement(C,null)))));export{h as Snackbar,h as default};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import s from"react";import i,{keyframes as l}from"styled-components";import n from"../../theme.js";const m=e=>{const r={slow:"2s",default:"1s",fast:"0.5s"};return r[e]||r.default},t=e=>{const r={smaller:1,small:2,regular:3,large:4};return typeof e=="number"?e:r[e]||r.regular},d=l`
|
|
2
|
+
0% {
|
|
3
|
+
transform: rotate(0deg);
|
|
4
|
+
}
|
|
5
|
+
100% {
|
|
6
|
+
transform: rotate(360deg);
|
|
7
|
+
}
|
|
8
|
+
`,u=i.div`
|
|
9
|
+
display: inline-block;
|
|
10
|
+
border-radius: 50%;
|
|
11
|
+
border-top: ${({theme:e,color:r,size:o})=>`${t(o)/10}em solid ${e.colors[r].main}`};
|
|
12
|
+
border-bottom: ${({size:e})=>`${t(e)/10}em solid rgba(0, 0, 0, 0.1);`};
|
|
13
|
+
border-right: ${({size:e})=>`${t(e)/10}em solid rgba(0, 0, 0, 0.1);`};
|
|
14
|
+
border-left: ${({size:e})=>`${t(e)/10}em solid rgba(0, 0, 0, 0.1);`};
|
|
15
|
+
width: ${({size:e})=>t(e)}em;
|
|
16
|
+
height: ${({size:e})=>t(e)}em;
|
|
17
|
+
animation: ${d} ${({speed:e})=>m(e)} infinite linear;
|
|
18
|
+
will-change: transform;
|
|
19
|
+
`,f=({size:e="regular",color:r="primary",speed:o="default",...a})=>s.createElement(u,{...a,role:"status","aria-live":"polite","aria-busy":"true",size:e,speed:o,color:r,theme:n});export{f as default};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import e from"react";import t from"styled-components";import n from"../../theme.js";import{Title as l}from"../../typography/Heading/index.js";import"../../shared/media-queries.js";const c=t.div`
|
|
2
|
+
min-height: 4rem;
|
|
3
|
+
`,o=t.div`
|
|
4
|
+
margin: auto;
|
|
5
|
+
width: 2px;
|
|
6
|
+
height: 100%;
|
|
7
|
+
background-color: ${n.colors.primary.main};
|
|
8
|
+
`,s=t.div`
|
|
9
|
+
margin-right: 0.75rem;
|
|
10
|
+
`,d=t.div`
|
|
11
|
+
font-family: ${({theme:r})=>r.typography.fontBaseFamily};
|
|
12
|
+
display: flex;
|
|
13
|
+
padding-bottom: 1rem;
|
|
14
|
+
|
|
15
|
+
&:last-child {
|
|
16
|
+
${o} {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`,p=t.div`
|
|
21
|
+
width: 3rem;
|
|
22
|
+
height: 3rem;
|
|
23
|
+
border-radius: 3rem;
|
|
24
|
+
|
|
25
|
+
color: white;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
background-color: ${n.colors.primary.main};
|
|
30
|
+
`,h=t(l)`
|
|
31
|
+
font-size: 1.5rem;
|
|
32
|
+
font-variant: lining-nums;
|
|
33
|
+
`,y=({children:r,...m})=>e.createElement(c,{...m},r.map((a,i)=>e.createElement(d,{key:i},e.createElement(s,null,e.createElement(p,null,e.createElement(h,null,i+1)),e.createElement(o,null)),a)));export{y as Stepper};
|