@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
package/README.md
CHANGED
package/cjs/ColorCard.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var styled = require('styled-components');
|
|
7
|
+
var utils_utils = require('./utils/utils.js');
|
|
8
|
+
var theme = require('./theme.js');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
13
|
+
|
|
14
|
+
const SubList = styled__default['default'].ul `
|
|
15
|
+
padding-left: 2rem;
|
|
16
|
+
`;
|
|
17
|
+
const ColorItem = styled__default['default'].li `
|
|
18
|
+
list-style: none;
|
|
19
|
+
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.03);
|
|
20
|
+
border: 1px solid ${theme['default'].colors.gray.light2};
|
|
21
|
+
border-radius: 4px;
|
|
22
|
+
font-family: 'Ralway', sans-serif;
|
|
23
|
+
margin-top: 0.75rem;
|
|
24
|
+
`;
|
|
25
|
+
const Header = styled__default['default'].span `
|
|
26
|
+
text-transform: capitalize;
|
|
27
|
+
padding: 0.5em;
|
|
28
|
+
display: block;
|
|
29
|
+
border-bottom: 1px solid ${theme['default'].colors.gray.light2};
|
|
30
|
+
`;
|
|
31
|
+
const Color = styled__default['default'].li `
|
|
32
|
+
display: block;
|
|
33
|
+
background: ${({ hex }) => hex};
|
|
34
|
+
color: ${({ hex }) => (utils_utils.getLuminosity(hex) < 40 ? '#fff' : '#000')};
|
|
35
|
+
padding: 1em;
|
|
36
|
+
`;
|
|
37
|
+
const SwatchArea = styled__default['default'].ul `
|
|
38
|
+
margin: 0;
|
|
39
|
+
padding: 0;
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
`;
|
|
43
|
+
const getColor = variants => Object.entries(variants).map(([name, hex]) => typeof hex === 'string' ? (jsxRuntime.jsxs(Color, Object.assign({ hex: hex }, { children: [name, " (", hex, ")"] }), hex)) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Header, { children: name }, void 0), jsxRuntime.jsx(SubList, { children: getColor(hex) }, void 0)] }, void 0)));
|
|
44
|
+
const ColorCard = ({ colorName, variants }) => (jsxRuntime.jsxs(ColorItem, { children: [jsxRuntime.jsx(Header, { children: colorName }, void 0), jsxRuntime.jsx(SwatchArea, { children: getColor(variants) }, void 0)] }, void 0));
|
|
45
|
+
|
|
46
|
+
exports['default'] = ColorCard;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var styled = require('styled-components');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
|
+
|
|
12
|
+
const Card = styled__default['default'].div `
|
|
13
|
+
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
14
|
+
font-weight: ${({ theme }) => theme.typography.fontAlternativeRegularWeight};
|
|
15
|
+
font-size: 1.25rem;
|
|
16
|
+
box-shadow: ${({ elevation }) => elevation};
|
|
17
|
+
width: 14rem;
|
|
18
|
+
height: 10rem;
|
|
19
|
+
margin: 1rem;
|
|
20
|
+
border-radius: 4px;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
`;
|
|
25
|
+
const ElevationCard = ({ children, value, as = 'div', }) => {
|
|
26
|
+
return (jsxRuntime.jsx(Card, Object.assign({ as: as, elevation: value }, { children: children }), void 0));
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
exports.ElevationCard = ElevationCard;
|
package/cjs/Types.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var react = require('react');
|
|
7
|
+
var styled = require('styled-components');
|
|
8
|
+
var reactCollapse = require('react-collapse');
|
|
9
|
+
var shared_mediaQueries = require('../../shared/media-queries.js');
|
|
10
|
+
var icons_components_ArrowDownIcon = require('../../icons/components/ArrowDownIcon.js');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
15
|
+
|
|
16
|
+
const Container = styled__default['default'].div `
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
.ReactCollapse--collapse {
|
|
20
|
+
transition: height 300ms;
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
const List = styled__default['default'].ul `
|
|
24
|
+
margin: 0;
|
|
25
|
+
padding: 0;
|
|
26
|
+
list-style: none;
|
|
27
|
+
`;
|
|
28
|
+
const Title = styled__default['default'].div `
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: row;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
margin: 0.5rem 0;
|
|
34
|
+
`;
|
|
35
|
+
const Arrow = styled__default['default'].div `
|
|
36
|
+
display: flex;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
align-items: center;
|
|
39
|
+
font-size: 0.75rem;
|
|
40
|
+
color: ${({ theme }) => theme.colors.text.dark};
|
|
41
|
+
transition: 200ms ease-in-out;
|
|
42
|
+
transform: ${({ isOpen }) => `rotate(${isOpen ? '180deg' : '0deg'})`};
|
|
43
|
+
`;
|
|
44
|
+
const Item = styled__default['default'].li `
|
|
45
|
+
border-top: ${({ theme }) => `1px solid ${theme.colors.gray.light2}`};
|
|
46
|
+
padding: ${({ isOpen }) => (isOpen ? '0.5rem 0 1rem 0' : '0.5rem 0')};
|
|
47
|
+
|
|
48
|
+
&:last-child {
|
|
49
|
+
border-bottom: ${({ theme }) => `1px solid ${theme.colors.gray.light2}`};
|
|
50
|
+
}
|
|
51
|
+
`;
|
|
52
|
+
const Text = styled__default['default'].span `
|
|
53
|
+
color: ${({ theme }) => theme.colors.text.dark};
|
|
54
|
+
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
55
|
+
font-size: 0.9375rem;
|
|
56
|
+
font-weight: ${({ theme }) => theme.typography.fontBaseBoldWeight};
|
|
57
|
+
`;
|
|
58
|
+
const Content = styled__default['default'].div `
|
|
59
|
+
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
60
|
+
color: ${({ theme }) => theme.colors.text.dark};
|
|
61
|
+
font-size: 0.9375rem;
|
|
62
|
+
font-weight: ${({ theme }) => theme.typography.fontBaseRegularWeight};
|
|
63
|
+
line-height: 1.3;
|
|
64
|
+
transition: 200ms ease-in-out;
|
|
65
|
+
${shared_mediaQueries.mq('tablet')} {
|
|
66
|
+
padding: 0;
|
|
67
|
+
}
|
|
68
|
+
& > * {
|
|
69
|
+
margin-top: 0;
|
|
70
|
+
margin-bottom: 0;
|
|
71
|
+
}
|
|
72
|
+
`;
|
|
73
|
+
const Accordion = ({ items, ...props }) => {
|
|
74
|
+
const [isOpened, setIsOpened] = react.useState({});
|
|
75
|
+
const toggleIsOpened = (index) => {
|
|
76
|
+
setIsOpened(prevState => ({ ...prevState, [index]: !prevState[index] }));
|
|
77
|
+
};
|
|
78
|
+
const onClick = (index) => () => {
|
|
79
|
+
toggleIsOpened(index);
|
|
80
|
+
};
|
|
81
|
+
const onKeyPress = (index) => (e) => {
|
|
82
|
+
if (e.key === 'Enter') {
|
|
83
|
+
toggleIsOpened(index);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
return (jsxRuntime.jsx(Container, Object.assign({}, props, { children: jsxRuntime.jsx(List, Object.assign({ className: "accordionList" }, { children: items.map((item, index) => {
|
|
87
|
+
const isOpen = Boolean(isOpened[index]);
|
|
88
|
+
return (jsxRuntime.jsxs(Item, Object.assign({ isOpen: isOpen, className: "accordionItem" }, { children: [jsxRuntime.jsxs(Title, Object.assign({ onClick: onClick(index), onKeyPress: onKeyPress(index), className: "accordionItemTitle", role: "button", tabIndex: 0, "aria-expanded": isOpen, id: `panel${index}-header`, "aria-controls": `panel${index}-content` }, { children: [jsxRuntime.jsx(Text, Object.assign({ as: "span" }, { children: item.title }), void 0), jsxRuntime.jsx(Arrow, Object.assign({ isOpen: isOpen }, { children: jsxRuntime.jsx(icons_components_ArrowDownIcon['default'], {}, void 0) }), void 0)] }), void 0), jsxRuntime.jsx(reactCollapse.UnmountClosed, Object.assign({ isOpened: isOpen }, { children: jsxRuntime.jsx(Content, { "aria-labelledby": `panel${index}-header`, id: `panel${index}-content`, role: "region", className: "wysiwyg", dangerouslySetInnerHTML: {
|
|
89
|
+
__html: item.text,
|
|
90
|
+
} }, void 0) }), index)] }), item.title));
|
|
91
|
+
}) }), void 0) }), void 0));
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
exports.Accordion = Accordion;
|
|
95
|
+
exports['default'] = Accordion;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var styled = require('styled-components');
|
|
7
|
+
var theme = require('../../theme.js');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
+
|
|
11
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
12
|
+
|
|
13
|
+
const BadgeContainer = styled__default['default'].div `
|
|
14
|
+
border-radius: 0.75rem;
|
|
15
|
+
background: ${theme['default'].colors.secondary.main};
|
|
16
|
+
display: inline-flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
padding: 0.5rem;
|
|
20
|
+
min-width: 1.5rem;
|
|
21
|
+
height: 1.5rem;
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
cursor: default;
|
|
24
|
+
`;
|
|
25
|
+
const SmallBadgeContainer = styled__default['default'](BadgeContainer) `
|
|
26
|
+
width: 1rem;
|
|
27
|
+
height: 1rem;
|
|
28
|
+
border-radius: 50%;
|
|
29
|
+
min-width: 1rem;
|
|
30
|
+
position: relative;
|
|
31
|
+
`;
|
|
32
|
+
const MiddleDot = styled__default['default'].div `
|
|
33
|
+
display: block;
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 100%;
|
|
36
|
+
border-radius: 50%;
|
|
37
|
+
opacity: 0.1;
|
|
38
|
+
transform: scale(0.5);
|
|
39
|
+
background: ${theme['default'].colors.text.dark};
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: 0;
|
|
42
|
+
left: 0;
|
|
43
|
+
`;
|
|
44
|
+
const Label = styled__default['default'].span `
|
|
45
|
+
font-size: 0.75rem;
|
|
46
|
+
line-height: 0.75rem;
|
|
47
|
+
color: white;
|
|
48
|
+
font-weight: ${({ theme }) => theme.typography.fontAlternativeBoldWeight};
|
|
49
|
+
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
50
|
+
`;
|
|
51
|
+
const numberToLabel = (notificationAmount) => {
|
|
52
|
+
if (notificationAmount >= 100) {
|
|
53
|
+
return '99+';
|
|
54
|
+
}
|
|
55
|
+
return `${notificationAmount}`;
|
|
56
|
+
};
|
|
57
|
+
const Badge = ({ notificationAmount = 0, withNumber = true, ...rest }) => {
|
|
58
|
+
if ((notificationAmount <= 0 || !notificationAmount) && withNumber) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
if (!withNumber) {
|
|
62
|
+
return (jsxRuntime.jsx(SmallBadgeContainer, Object.assign({}, rest, { children: jsxRuntime.jsx(MiddleDot, { "data-test": "middle-dot" }, void 0) }), void 0));
|
|
63
|
+
}
|
|
64
|
+
const label = numberToLabel(notificationAmount);
|
|
65
|
+
return (jsxRuntime.jsx(BadgeContainer, Object.assign({}, rest, { children: jsxRuntime.jsx(Label, { children: label }, void 0) }), void 0));
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
exports.Badge = Badge;
|
|
69
|
+
exports['default'] = Badge;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var styled = require('styled-components');
|
|
7
|
+
var theme = require('../../theme.js');
|
|
8
|
+
var components_Spinner_index = require('../Spinner/index.js');
|
|
9
|
+
var typography_ButtonText_index = require('../../typography/ButtonText/index.js');
|
|
10
|
+
|
|
11
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
+
|
|
13
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
14
|
+
|
|
15
|
+
/****************************************************************************/
|
|
16
|
+
/* Font styles */
|
|
17
|
+
/****************************************************************************/
|
|
18
|
+
const getFontStyles = (size) => {
|
|
19
|
+
switch (size) {
|
|
20
|
+
case 'smaller':
|
|
21
|
+
return typography_ButtonText_index.ButtonSmallTextStyle;
|
|
22
|
+
case 'small':
|
|
23
|
+
return typography_ButtonText_index.ButtonRegularTextStyle;
|
|
24
|
+
case 'regular':
|
|
25
|
+
return typography_ButtonText_index.ButtonRegularTextStyle;
|
|
26
|
+
case 'large':
|
|
27
|
+
return typography_ButtonText_index.ButtonLargeTextStyle;
|
|
28
|
+
default:
|
|
29
|
+
return typography_ButtonText_index.ButtonRegularTextStyle;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
/****************************************************************************/
|
|
33
|
+
/* Size styles */
|
|
34
|
+
/****************************************************************************/
|
|
35
|
+
const smallerSizeStyles = (isLoading) => `
|
|
36
|
+
min-width: 76px;
|
|
37
|
+
padding: ${isLoading ? '7px 10px 5.5px' : '10px 10px 8px'};
|
|
38
|
+
`;
|
|
39
|
+
const smallSizeStyles = (isLoading) => `
|
|
40
|
+
min-width: 76px;
|
|
41
|
+
padding: ${isLoading ? '8px 10px 6px' : '11px 10px 9px'};
|
|
42
|
+
`;
|
|
43
|
+
const regularSizeStyles = (isLoading) => `
|
|
44
|
+
min-width: 250px;
|
|
45
|
+
padding: ${isLoading ? '7px 22px 5px' : '15px 22px 13px'};
|
|
46
|
+
`;
|
|
47
|
+
const largeSizeStyles = (isLoading) => `
|
|
48
|
+
min-width: 250px;
|
|
49
|
+
padding: ${isLoading ? '9px 22px 6px' : '21px 22px 19px'};
|
|
50
|
+
`;
|
|
51
|
+
/****************************************************************************/
|
|
52
|
+
/* Color styles */
|
|
53
|
+
/****************************************************************************/
|
|
54
|
+
const solidColorStyles = (theme) => (color) => `
|
|
55
|
+
color: white;
|
|
56
|
+
border-color: ${theme.colors[color].main};
|
|
57
|
+
background-color: ${theme.colors[color].main};
|
|
58
|
+
|
|
59
|
+
:hover {
|
|
60
|
+
border-color: ${theme.colors[color].light};
|
|
61
|
+
background-color: ${theme.colors[color].light};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:active {
|
|
65
|
+
border-color: ${theme.colors[color].dark};
|
|
66
|
+
background-color: ${theme.colors[color].dark}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
:focus {
|
|
70
|
+
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 2px ${theme.colors[color].dark};
|
|
71
|
+
}
|
|
72
|
+
`;
|
|
73
|
+
const outlineColorStyles = (theme) => (color) => `
|
|
74
|
+
color: ${theme.colors[color].main};
|
|
75
|
+
border-color: ${theme.colors[color].main};
|
|
76
|
+
background-color: transparent;
|
|
77
|
+
|
|
78
|
+
:hover {
|
|
79
|
+
color: white;
|
|
80
|
+
border-color: ${theme.colors[color].light};
|
|
81
|
+
background-color: ${theme.colors[color].light};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:active {
|
|
85
|
+
color: white;
|
|
86
|
+
border-color: ${theme.colors[color].dark};
|
|
87
|
+
background-color: ${theme.colors[color].dark};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:focus {
|
|
91
|
+
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 2px ${theme.colors[color].dark};
|
|
92
|
+
}
|
|
93
|
+
`;
|
|
94
|
+
const flatColorStyles = (theme) => (color) => `
|
|
95
|
+
color: ${theme.colors[color].main};
|
|
96
|
+
border-color: transparent;
|
|
97
|
+
background-color: transparent;
|
|
98
|
+
|
|
99
|
+
:hover {
|
|
100
|
+
color: ${theme.colors[color].dark};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:active {
|
|
104
|
+
color: ${theme.colors[color].light};
|
|
105
|
+
}
|
|
106
|
+
`;
|
|
107
|
+
const disabledCommonColorStyles = (theme) => `
|
|
108
|
+
background-color: ${theme.colors.gray.light4};
|
|
109
|
+
border-color: ${theme.colors.gray.light4};
|
|
110
|
+
color: ${theme.colors.gray.light1};
|
|
111
|
+
cursor: not-allowed;
|
|
112
|
+
`;
|
|
113
|
+
const disabledFlatColorStyles = (theme) => `
|
|
114
|
+
border-color: transparent;
|
|
115
|
+
background-color: transparent;
|
|
116
|
+
color: ${theme.colors.gray.light1};
|
|
117
|
+
cursor: not-allowed;
|
|
118
|
+
`;
|
|
119
|
+
/****************************************************************************/
|
|
120
|
+
/* Root styles */
|
|
121
|
+
/****************************************************************************/
|
|
122
|
+
const Root = styled__default['default'].button `
|
|
123
|
+
outline: none;
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
user-select: none;
|
|
126
|
+
position: relative;
|
|
127
|
+
white-space: nowrap;
|
|
128
|
+
border: 2px solid transparent;
|
|
129
|
+
border-radius: 3px;
|
|
130
|
+
width: ${({ fullWidth }) => fullWidth && '100%'};
|
|
131
|
+
|
|
132
|
+
${typography_ButtonText_index.BasicButtonTextStyle}
|
|
133
|
+
${({ size }) => getFontStyles(size)}
|
|
134
|
+
${({ size, isLoading }) => styled.css `
|
|
135
|
+
${size === 'smaller' && smallerSizeStyles(isLoading)}
|
|
136
|
+
${size === 'small' && smallSizeStyles(isLoading)}
|
|
137
|
+
${size === 'regular' && regularSizeStyles(isLoading)}
|
|
138
|
+
${size === 'large' && largeSizeStyles(isLoading)}
|
|
139
|
+
`}
|
|
140
|
+
background-color: transparent;
|
|
141
|
+
transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease;
|
|
142
|
+
${({ variant, color, disabled, theme }) => styled.css `
|
|
143
|
+
${!disabled && variant === 'solid' && solidColorStyles(theme)(color)}
|
|
144
|
+
${!disabled && variant === 'outline' && outlineColorStyles(theme)(color)}
|
|
145
|
+
${!disabled && variant === 'flat' && flatColorStyles(theme)(color)}
|
|
146
|
+
${disabled && variant !== 'flat' && disabledCommonColorStyles(theme)}
|
|
147
|
+
${disabled && variant === 'flat' && disabledFlatColorStyles(theme)}
|
|
148
|
+
`}
|
|
149
|
+
`;
|
|
150
|
+
/****************************************************************************/
|
|
151
|
+
/* Main component */
|
|
152
|
+
/****************************************************************************/
|
|
153
|
+
const LoadingSpinner = styled__default['default'](components_Spinner_index['default']) ``;
|
|
154
|
+
const spinnerSizes = {
|
|
155
|
+
smaller: 1,
|
|
156
|
+
small: 1,
|
|
157
|
+
regular: 1.5,
|
|
158
|
+
large: 1.75,
|
|
159
|
+
};
|
|
160
|
+
const Button = ({ size = 'small', color = 'primary', variant = 'solid', fullWidth = false, isDisabled = false, isLoading = false, children, ...props }) => {
|
|
161
|
+
return (jsxRuntime.jsx(Root, Object.assign({}, props, { color: color, disabled: isDisabled || isLoading, fullWidth: fullWidth, theme: theme['default'], variant: variant, size: size, isLoading: isLoading }, { children: isLoading ? (jsxRuntime.jsx(LoadingSpinner, { color: "neutral", size: spinnerSizes[size] }, void 0)) : (children) }), void 0));
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
exports.Button = Button;
|
|
165
|
+
exports['default'] = Button;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var styled = require('styled-components');
|
|
7
|
+
var theme = require('../../theme.js');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
+
|
|
11
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
12
|
+
|
|
13
|
+
const CardWrapper = styled__default['default'].div `
|
|
14
|
+
background: ${theme['default'].colors.background.light};
|
|
15
|
+
${({ boxShadow }) => boxShadow && `box-shadow: ${boxShadow};`}
|
|
16
|
+
${({ boxShadow }) => !boxShadow &&
|
|
17
|
+
`box-shadow: 0 2px 4px rgba(0, 0, 0, 10%), 0 2px 4px rgba(0, 0, 0, 9%),
|
|
18
|
+
0 1px 5px rgba(0, 0, 0, 15%);`}
|
|
19
|
+
border-radius: 0 0 3px 3px;
|
|
20
|
+
${({ topBorder }) => topBorder && `border-top: 4px solid ${topBorder};`}
|
|
21
|
+
`;
|
|
22
|
+
const Card = ({ ...props }) => {
|
|
23
|
+
return (jsxRuntime.jsx(CardWrapper, Object.assign({ topBorder: props.topBorder, boxShadow: props.boxShadow }, { children: props.children }), void 0));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
exports.Card = Card;
|
|
27
|
+
exports['default'] = Card;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var styled = require('styled-components');
|
|
7
|
+
var shared_helpers = require('../../shared/helpers.js');
|
|
8
|
+
var theme = require('../../theme.js');
|
|
9
|
+
var components_IconButton = require('../IconButton.js');
|
|
10
|
+
var components_Icons_CheckIcon = require('../Icons/CheckIcon.js');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
15
|
+
|
|
16
|
+
const regularSize = styled.css `
|
|
17
|
+
width: 24px;
|
|
18
|
+
height: 24px;
|
|
19
|
+
|
|
20
|
+
svg {
|
|
21
|
+
width: 15px;
|
|
22
|
+
height: 15px;
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
const largeSize = styled.css `
|
|
26
|
+
width: 32px;
|
|
27
|
+
height: 32px;
|
|
28
|
+
|
|
29
|
+
svg {
|
|
30
|
+
width: 20px;
|
|
31
|
+
height: 20px;
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
const sizes = {
|
|
35
|
+
regular: regularSize,
|
|
36
|
+
large: largeSize,
|
|
37
|
+
};
|
|
38
|
+
const disabledStyle = styled.css `
|
|
39
|
+
cursor: default;
|
|
40
|
+
border: 2px solid ${theme['default'].colors.gray.light1};
|
|
41
|
+
`;
|
|
42
|
+
const checkedStyle = (color) => styled.css `
|
|
43
|
+
svg {
|
|
44
|
+
fill: #fefefe;
|
|
45
|
+
opacity: 1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:hover {
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
background: ${theme['default'].colors[color].main};
|
|
52
|
+
border: 2px solid ${theme['default'].colors[color].main};
|
|
53
|
+
`;
|
|
54
|
+
const checkedDisabledStyle = styled.css `
|
|
55
|
+
background: ${theme['default'].colors.gray.light1};
|
|
56
|
+
`;
|
|
57
|
+
const HiddenCheckbox = styled__default['default'].input.attrs({ type: 'checkbox' }) `
|
|
58
|
+
display: none;
|
|
59
|
+
`;
|
|
60
|
+
const CheckboxWrapper = styled__default['default'].label `
|
|
61
|
+
box-sizing: border-box;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
display: flex;
|
|
64
|
+
position: relative;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
|
|
68
|
+
border: 2px solid ${theme['default'].colors.gray.light1};
|
|
69
|
+
border-radius: 3px;
|
|
70
|
+
|
|
71
|
+
${props => sizes[props.size]};
|
|
72
|
+
|
|
73
|
+
svg {
|
|
74
|
+
opacity: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
${props => props.isChecked && checkedStyle(props.color)};
|
|
78
|
+
${props => props.isDisabled && disabledStyle};
|
|
79
|
+
|
|
80
|
+
${props => props.isChecked && props.isDisabled && checkedDisabledStyle};
|
|
81
|
+
`;
|
|
82
|
+
const CheckBox = ({ name = shared_helpers.generateNameHash('check-box'), isDisabled = false, size = 'regular', checked, color = 'secondary', onClick, ...rest }) => (jsxRuntime.jsxs(components_IconButton['default'], Object.assign({ onClick: onClick, isActive: checked, isDisabled: isDisabled, color: color }, { children: [jsxRuntime.jsx(HiddenCheckbox, Object.assign({}, rest, { "data-validate": "checked", name: name, id: name, disabled: isDisabled }), void 0), jsxRuntime.jsx(CheckboxWrapper, Object.assign({ htmlFor: name, size: size, color: color, isChecked: checked, isDisabled: isDisabled }, { children: jsxRuntime.jsx(components_Icons_CheckIcon['default'], {}, void 0) }), void 0)] }), void 0));
|
|
83
|
+
|
|
84
|
+
exports.CheckBox = CheckBox;
|
|
85
|
+
exports['default'] = CheckBox;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var styled = require('styled-components');
|
|
7
|
+
var shared_helpers = require('../../shared/helpers.js');
|
|
8
|
+
var theme = require('../../theme.js');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
13
|
+
|
|
14
|
+
const getBackgroundColor = ({ isDisabled, isActive, activeColor, }) => {
|
|
15
|
+
if (isActive && isDisabled) {
|
|
16
|
+
return shared_helpers.fadedColor(theme['default'].colors[activeColor].main, 0.5);
|
|
17
|
+
}
|
|
18
|
+
if (isDisabled) {
|
|
19
|
+
return theme['default'].colors.gray.light4;
|
|
20
|
+
}
|
|
21
|
+
if (isActive) {
|
|
22
|
+
return theme['default'].colors[activeColor].main;
|
|
23
|
+
}
|
|
24
|
+
return 'transparent';
|
|
25
|
+
};
|
|
26
|
+
const getColor = ({ isActive, isDisabled }) => {
|
|
27
|
+
if (isActive || (isActive && isDisabled)) {
|
|
28
|
+
return theme['default'].colors.text.light;
|
|
29
|
+
}
|
|
30
|
+
if (isDisabled) {
|
|
31
|
+
return theme['default'].colors.text.disabled;
|
|
32
|
+
}
|
|
33
|
+
return theme['default'].colors.text.dark;
|
|
34
|
+
};
|
|
35
|
+
const getFontSize = (size = 'smaller') => {
|
|
36
|
+
const sizes = {
|
|
37
|
+
smaller: '0.8125rem',
|
|
38
|
+
small: '1rem',
|
|
39
|
+
regular: '1rem',
|
|
40
|
+
large: '1.25rem',
|
|
41
|
+
};
|
|
42
|
+
return sizes[size];
|
|
43
|
+
};
|
|
44
|
+
const Item = styled__default['default'].div `
|
|
45
|
+
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
46
|
+
font-size: ${({ size }) => getFontSize(size)};
|
|
47
|
+
font-weight: ${({ theme }) => theme.typography.fontAlternativeBoldWeight};
|
|
48
|
+
line-height: 1.25;
|
|
49
|
+
letter-spacing: 0.1px;
|
|
50
|
+
display: inline-block;
|
|
51
|
+
cursor: ${({ isDisabled }) => (!isDisabled ? 'pointer' : 'auto')};
|
|
52
|
+
align-items: center;
|
|
53
|
+
background: ${getBackgroundColor};
|
|
54
|
+
color: ${getColor};
|
|
55
|
+
justify-content: center;
|
|
56
|
+
border-width: 1px;
|
|
57
|
+
border-style: solid;
|
|
58
|
+
border-color: ${({ isActive, isDisabled }) => !isActive && !isDisabled ? theme['default'].colors.background.dark : 'transparent'};
|
|
59
|
+
border-radius: 1.293rem;
|
|
60
|
+
`;
|
|
61
|
+
const ContentWrapper = styled__default['default'].span `
|
|
62
|
+
padding: 0.5rem 1rem;
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
text-align: center;
|
|
67
|
+
`;
|
|
68
|
+
const Chip = ({ activeColor = 'primary', children, component = 'div', isActive, isDisabled, onClick, size, ...props }) => {
|
|
69
|
+
const handleClick = (e) => {
|
|
70
|
+
if (!isDisabled && onClick) {
|
|
71
|
+
onClick(e);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
return (jsxRuntime.jsx(Item, Object.assign({}, props, { as: component, activeColor: activeColor, isDisabled: isDisabled, isActive: isActive, size: size }, { children: jsxRuntime.jsx(ContentWrapper, Object.assign({ onClick: handleClick }, { children: children }), void 0) }), void 0));
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
exports.Chip = Chip;
|
|
78
|
+
exports['default'] = Chip;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var styled = require('styled-components');
|
|
7
|
+
var components_Icons_Arrow = require('../Icons/Arrow.js');
|
|
8
|
+
var theme = require('../../theme.js');
|
|
9
|
+
var typography_BodyText_index = require('../../typography/BodyText/index.js');
|
|
10
|
+
var components_DayPicker_localeUtils = require('./localeUtils.js');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
15
|
+
|
|
16
|
+
const NavBarWrapper = styled__default['default'].div `
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
`;
|
|
20
|
+
const NavTitle = styled__default['default'](typography_BodyText_index.BodyText) `
|
|
21
|
+
color: ${theme['default'].colors.text.dark};
|
|
22
|
+
`;
|
|
23
|
+
const NavButton = styled__default['default'].button `
|
|
24
|
+
appearance: none;
|
|
25
|
+
background-color: transparent;
|
|
26
|
+
border: 0;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
font-family: inherit;
|
|
29
|
+
outline: none;
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
`;
|
|
33
|
+
const Arrow = styled__default['default'](components_Icons_Arrow['default']) `
|
|
34
|
+
width: 16px;
|
|
35
|
+
height: 16px;
|
|
36
|
+
fill: ${theme['default'].colors.gray.dark3};
|
|
37
|
+
`;
|
|
38
|
+
const BackArrow = styled__default['default'](Arrow) `
|
|
39
|
+
transform: rotate(90deg);
|
|
40
|
+
`;
|
|
41
|
+
const ForwardArrow = styled__default['default'](Arrow) `
|
|
42
|
+
transform: rotate(-90deg);
|
|
43
|
+
`;
|
|
44
|
+
const DayPickerNavBar = ({ month, onPreviousClick, onNextClick, locale, }) => (jsxRuntime.jsxs(NavBarWrapper, { children: [jsxRuntime.jsx(NavButton, Object.assign({ onClick: () => onPreviousClick() }, { children: jsxRuntime.jsx(BackArrow, { title: "prev-month" }, void 0) }), void 0), jsxRuntime.jsx(NavTitle, Object.assign({ as: "h3" }, { children: components_DayPicker_localeUtils.formatMonthTitle(month, locale) }), void 0), jsxRuntime.jsx(NavButton, Object.assign({ onClick: () => onNextClick() }, { children: jsxRuntime.jsx(ForwardArrow, { title: "next-month" }, void 0) }), void 0)] }, void 0));
|
|
45
|
+
|
|
46
|
+
exports['default'] = DayPickerNavBar;
|