@kvdbil/components 3.3.3 → 3.3.5-2
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 +48 -0
- package/cjs/ElevationCard.js +35 -0
- package/cjs/Interfaces.js +2 -0
- package/cjs/Types.js +2 -0
- package/cjs/components/Accordion/index.js +124 -0
- package/cjs/components/Badge/index.js +78 -0
- package/cjs/components/Button/index.js +170 -0
- package/cjs/components/Card/index.js +28 -0
- package/cjs/components/CheckBox/index.js +109 -0
- package/cjs/components/Chip/index.js +99 -0
- package/cjs/components/DayPicker/DayPickerNavBar.js +60 -0
- package/cjs/components/DayPicker/index.js +76 -0
- package/cjs/components/DayPicker/localeUtils.js +60 -0
- package/cjs/components/Dialog/index.js +88 -0
- package/cjs/components/ErrorMessage/index.js +31 -0
- package/cjs/components/FieldLabel.js +59 -0
- package/cjs/components/Header/Hamburger.js +55 -0
- package/cjs/components/Header/Link.js +53 -0
- package/cjs/components/Header/index.js +118 -0
- package/cjs/components/Hero/index.js +65 -0
- package/cjs/components/Icon/index.js +115 -0
- package/cjs/components/IconButton.js +130 -0
- package/cjs/components/Icons/Arrow.js +16 -0
- package/cjs/components/Icons/CheckCircle.js +16 -0
- package/cjs/components/Icons/CheckIcon.js +16 -0
- package/cjs/components/Icons/Close.js +16 -0
- package/cjs/components/Icons/ErrorCircle.js +16 -0
- package/cjs/components/Icons/InfoCircle.js +16 -0
- package/cjs/components/InlineStepper/Step.js +116 -0
- package/cjs/components/InlineStepper/StepCircle.js +93 -0
- package/cjs/components/InlineStepper/index.js +51 -0
- package/cjs/components/ListItem/Bacon.js +16 -0
- package/cjs/components/ListItem/index.js +56 -0
- package/cjs/components/Logo/LogoEn.js +35 -0
- package/cjs/components/Logo/LogoSv.js +35 -0
- package/cjs/components/Logo/index.js +32 -0
- package/cjs/components/MenuItem/index.js +99 -0
- package/cjs/components/Modal/index.js +137 -0
- package/cjs/components/NotificationButton/index.js +39 -0
- package/cjs/components/OffCanvas/Overlay.js +70 -0
- package/cjs/components/OffCanvas/index.js +133 -0
- package/cjs/components/OffCanvas/useClickOutside.js +21 -0
- package/cjs/components/RadioButton/index.js +148 -0
- package/cjs/components/Range/index.js +82 -0
- package/cjs/components/Select/components/test-icon.js +16 -0
- package/cjs/components/Select/index.js +225 -0
- package/cjs/components/Snackbar/index.js +155 -0
- package/cjs/components/Spinner/index.js +68 -0
- package/cjs/components/Stepper/index.js +60 -0
- package/cjs/components/StepperAccordion/index.js +133 -0
- package/cjs/components/Tabs/index.js +71 -0
- package/cjs/components/TextArea/index.js +120 -0
- package/cjs/components/Textfield/index.js +130 -0
- package/cjs/components/TimePicker/index.js +49 -0
- package/cjs/components/TimePicker/testHelper.js +16 -0
- package/cjs/components/Toggle/index.js +83 -0
- package/cjs/icons/components/AccountCreateIcon.js +48 -0
- package/cjs/icons/components/AccountIcon.js +44 -0
- package/cjs/icons/components/AccountLoginIcon.js +50 -0
- package/cjs/icons/components/ArrowDownIcon.js +44 -0
- package/cjs/icons/components/ArrowLeftIcon.js +42 -0
- package/cjs/icons/components/ArrowLeftSharpIcon.js +44 -0
- package/cjs/icons/components/ArrowLeftSmallIcon.js +44 -0
- package/cjs/icons/components/ArrowLong.js +45 -0
- package/cjs/icons/components/ArrowRestartIcon.js +44 -0
- package/cjs/icons/components/ArrowRightIcon.js +42 -0
- package/cjs/icons/components/ArrowRightSharpIcon.js +44 -0
- package/cjs/icons/components/ArrowUpIcon.js +44 -0
- package/cjs/icons/components/AuctionIcon.js +42 -0
- package/cjs/icons/components/BackArrowIcon.js +42 -0
- package/cjs/icons/components/Baseline360Icon.js +45 -0
- package/cjs/icons/components/BellIcon.js +42 -0
- package/cjs/icons/components/BidIcon.js +42 -0
- package/cjs/icons/components/BidKrIcon.js +48 -0
- package/cjs/icons/components/BreaksIcon.js +42 -0
- package/cjs/icons/components/BuyCarIcon.js +42 -0
- package/cjs/icons/components/CabIcon.js +44 -0
- package/cjs/icons/components/CalendarIcon.js +51 -0
- package/cjs/icons/components/CameraIcon.js +42 -0
- package/cjs/icons/components/Car360Icon.js +67 -0
- package/cjs/icons/components/CarFrontIcon.js +42 -0
- package/cjs/icons/components/CarSearchIcon.js +42 -0
- package/cjs/icons/components/CarSideIcon.js +42 -0
- package/cjs/icons/components/CarTiresIcon.js +42 -0
- package/cjs/icons/components/CaravanIcon.js +42 -0
- package/cjs/icons/components/CardViewIcon.js +68 -0
- package/cjs/icons/components/CarloanIcon.js +44 -0
- package/cjs/icons/components/CertifiedIcon.js +52 -0
- package/cjs/icons/components/ChatIcon.js +43 -0
- package/cjs/icons/components/CheckIcon.js +43 -0
- package/cjs/icons/components/CheckThinIcon.js +43 -0
- package/cjs/icons/components/CheckmarkFilledIcon.js +42 -0
- package/cjs/icons/components/CheckmarkIcon.js +42 -0
- package/cjs/icons/components/ClipboardFilledIcon.js +42 -0
- package/cjs/icons/components/ClipboardIcon.js +42 -0
- package/cjs/icons/components/ClockFilledIcon.js +44 -0
- package/cjs/icons/components/ClockIcon.js +43 -0
- package/cjs/icons/components/CloseIcon.js +43 -0
- package/cjs/icons/components/CloseThinIcon.js +44 -0
- package/cjs/icons/components/CoffeeIcon.js +43 -0
- package/cjs/icons/components/CombiIcon.js +44 -0
- package/cjs/icons/components/CommentCircleFilledIcon.js +48 -0
- package/cjs/icons/components/CommentCircleIconIcon.js +46 -0
- package/cjs/icons/components/CommentIcon.js +46 -0
- package/cjs/icons/components/ContactIcon.js +46 -0
- package/cjs/icons/components/CoupeIcon.js +44 -0
- package/cjs/icons/components/CreditCardIcon.js +43 -0
- package/cjs/icons/components/CrossCircleIcon.js +42 -0
- package/cjs/icons/components/CrownIcon.js +43 -0
- package/cjs/icons/components/DealmakerIcon.js +48 -0
- package/cjs/icons/components/DeliveryIcon.js +51 -0
- package/cjs/icons/components/DetailedSearchIcon.js +43 -0
- package/cjs/icons/components/EcoFriendlyIcon.js +46 -0
- package/cjs/icons/components/EditIcon.js +43 -0
- package/cjs/icons/components/EngineIcon.js +42 -0
- package/cjs/icons/components/EnglandFlagIcon.js +60 -0
- package/cjs/icons/components/EvaluationIcon.js +46 -0
- package/cjs/icons/components/ExaminationMarkFilledIcon.js +42 -0
- package/cjs/icons/components/ExaminationMarkIcon.js +42 -0
- package/cjs/icons/components/ExteriorIcon.js +42 -0
- package/cjs/icons/components/EyeIcon.js +48 -0
- package/cjs/icons/components/FacebookBtnIcon.js +42 -0
- package/cjs/icons/components/FacebookIcon.js +44 -0
- package/cjs/icons/components/FatalIcon.js +44 -0
- package/cjs/icons/components/FavouriteIcon.js +42 -0
- package/cjs/icons/components/FavouriteSolidIcon.js +42 -0
- package/cjs/icons/components/FilterIcon.js +44 -0
- package/cjs/icons/components/FinanceIcon.js +42 -0
- package/cjs/icons/components/FindCarIcon.js +42 -0
- package/cjs/icons/components/FixedMonthlyCostIcon.js +48 -0
- package/cjs/icons/components/FlagIcon.js +42 -0
- package/cjs/icons/components/FlexibilityIcon.js +48 -0
- package/cjs/icons/components/ForumLargeIcon.js +42 -0
- package/cjs/icons/components/ForumSmallIcon.js +42 -0
- package/cjs/icons/components/GavelIcon.js +44 -0
- package/cjs/icons/components/GearboxIcon.js +44 -0
- package/cjs/icons/components/GiftIcon.js +58 -0
- package/cjs/icons/components/GridViewIcon.js +42 -0
- package/cjs/icons/components/GroupIcon.js +79 -0
- package/cjs/icons/components/GuaranteeIcon.js +42 -0
- package/cjs/icons/components/GuaranteeLargeIcon.js +42 -0
- package/cjs/icons/components/GuaranteeSmallIcon.js +42 -0
- package/cjs/icons/components/HalfCombiIcon.js +44 -0
- package/cjs/icons/components/HamburgerIcon.js +42 -0
- package/cjs/icons/components/HandshakeIcon.js +42 -0
- package/cjs/icons/components/HelpingHandIcon.js +60 -0
- package/cjs/icons/components/IdIcon.js +45 -0
- package/cjs/icons/components/InformationIcon.js +42 -0
- package/cjs/icons/components/InstagramIcon.js +49 -0
- package/cjs/icons/components/InsuranceIcon.js +42 -0
- package/cjs/icons/components/InteriorIcon.js +44 -0
- package/cjs/icons/components/InteriorThinIcon.js +44 -0
- package/cjs/icons/components/InternationalIcon.js +50 -0
- package/cjs/icons/components/KvdTestIcon.js +42 -0
- package/cjs/icons/components/KvdVenueIcon.js +42 -0
- package/cjs/icons/components/LifebuoyIcon.js +42 -0
- package/cjs/icons/components/LiftTruckIcon.js +42 -0
- package/cjs/icons/components/LinkedInIcon.js +42 -0
- package/cjs/icons/components/ListViewIcon.js +64 -0
- package/cjs/icons/components/MailIcon.js +44 -0
- package/cjs/icons/components/MinibusIcon.js +44 -0
- package/cjs/icons/components/MinivanIcon.js +45 -0
- package/cjs/icons/components/MobileIcon.js +52 -0
- package/cjs/icons/components/MotorcycleIcon.js +74 -0
- package/cjs/icons/components/MrfLogoIcon.js +53 -0
- package/cjs/icons/components/NotFoundIcon.js +42 -0
- package/cjs/icons/components/OverbidIcon.js +44 -0
- package/cjs/icons/components/PdfIconIcon.js +42 -0
- package/cjs/icons/components/PhoneIcon.js +44 -0
- package/cjs/icons/components/PickUpIcon.js +42 -0
- package/cjs/icons/components/PinIcon.js +42 -0
- package/cjs/icons/components/PlayIcon.js +42 -0
- package/cjs/icons/components/Pricetag.js +51 -0
- package/cjs/icons/components/PricetagFilledKronaIcon.js +47 -0
- package/cjs/icons/components/PrivateCarIcon.js +42 -0
- package/cjs/icons/components/ProfileCircleIcon.js +42 -0
- package/cjs/icons/components/ProfileIcon.js +42 -0
- package/cjs/icons/components/RadioIcon.js +54 -0
- package/cjs/icons/components/ReclamationIcon.js +42 -0
- package/cjs/icons/components/ReleasingIcon.js +48 -0
- package/cjs/icons/components/RemoveFilterIcon.js +42 -0
- package/cjs/icons/components/ReservedPriceIcon.js +42 -0
- package/cjs/icons/components/ResultIcon.js +42 -0
- package/cjs/icons/components/SafePaymentIcon.js +42 -0
- package/cjs/icons/components/SaleTagIcon.js +42 -0
- package/cjs/icons/components/SearchCheckIcon.js +48 -0
- package/cjs/icons/components/SearchIcon.js +42 -0
- package/cjs/icons/components/SedanIcon.js +44 -0
- package/cjs/icons/components/SellCarIcon.js +42 -0
- package/cjs/icons/components/SellCarsIcon.js +42 -0
- package/cjs/icons/components/ServiceIcon.js +47 -0
- package/cjs/icons/components/ShareIcon.js +68 -0
- package/cjs/icons/components/ShieldIcon.js +42 -0
- package/cjs/icons/components/SignInIcon.js +42 -0
- package/cjs/icons/components/SignOutIcon.js +42 -0
- package/cjs/icons/components/SpeedMeterIcon.js +44 -0
- package/cjs/icons/components/StarCircleIcon.js +42 -0
- package/cjs/icons/components/StartIcon.js +50 -0
- package/cjs/icons/components/StoreIcon.js +42 -0
- package/cjs/icons/components/SuvIcon.js +44 -0
- package/cjs/icons/components/SwedenFlag.js +50 -0
- package/cjs/icons/components/TankIcon.js +52 -0
- package/cjs/icons/components/TireIcon.js +42 -0
- package/cjs/icons/components/TransportIcon.js +42 -0
- package/cjs/icons/components/TrashcanIcon.js +42 -0
- package/cjs/icons/components/TrophyIcon.js +42 -0
- package/cjs/icons/components/TruckIcon.js +42 -0
- package/cjs/icons/components/UmbrellaIcon.js +42 -0
- package/cjs/icons/components/ValuationIcon.js +42 -0
- package/cjs/icons/components/ValueIcon.js +47 -0
- package/cjs/icons/components/WarningIcon.js +42 -0
- package/cjs/icons/components/YoutubeIcon.js +42 -0
- package/cjs/icons/components/index.js +320 -0
- package/cjs/index.js +438 -0
- package/cjs/react-app-env.d.js +2 -0
- package/cjs/shared/constants.js +7 -0
- package/cjs/shared/helpers.js +28 -0
- package/cjs/shared/helpers.spec.js +36 -0
- package/cjs/shared/media-queries.js +41 -0
- package/cjs/styled.d.js +4 -0
- package/cjs/theme.js +125 -0
- package/cjs/typography/BodyText/index.js +66 -0
- package/cjs/typography/ButtonText/index.js +48 -0
- package/cjs/typography/Heading/index.js +92 -0
- package/cjs/utils/utils.js +33 -0
- package/esm/ColorCard.js +40 -0
- package/esm/ElevationCard.js +27 -0
- package/esm/Interfaces.js +1 -0
- package/esm/Types.js +1 -0
- package/esm/components/Accordion/index.js +115 -0
- package/esm/components/Badge/index.js +69 -0
- package/esm/components/Button/index.js +161 -0
- package/esm/components/Card/index.js +19 -0
- package/esm/components/CheckBox/index.js +100 -0
- package/esm/components/Chip/index.js +90 -0
- package/esm/components/DayPicker/DayPickerNavBar.js +52 -0
- package/esm/components/DayPicker/index.js +66 -0
- package/esm/components/DayPicker/localeUtils.js +52 -0
- package/esm/components/Dialog/index.js +79 -0
- package/esm/components/ErrorMessage/index.js +22 -0
- package/esm/components/FieldLabel.js +51 -0
- package/esm/components/Header/Hamburger.js +47 -0
- package/esm/components/Header/Link.js +45 -0
- package/esm/components/Header/index.js +109 -0
- package/esm/components/Hero/index.js +56 -0
- package/esm/components/Icon/index.js +107 -0
- package/esm/components/IconButton.js +122 -0
- package/esm/components/Icons/Arrow.js +12 -0
- package/esm/components/Icons/CheckCircle.js +12 -0
- package/esm/components/Icons/CheckIcon.js +12 -0
- package/esm/components/Icons/Close.js +12 -0
- package/esm/components/Icons/ErrorCircle.js +12 -0
- package/esm/components/Icons/InfoCircle.js +12 -0
- package/esm/components/InlineStepper/Step.js +107 -0
- package/esm/components/InlineStepper/StepCircle.js +85 -0
- package/esm/components/InlineStepper/index.js +43 -0
- package/esm/components/ListItem/Bacon.js +12 -0
- package/esm/components/ListItem/index.js +48 -0
- package/esm/components/Logo/LogoEn.js +31 -0
- package/esm/components/Logo/LogoSv.js +31 -0
- package/esm/components/Logo/index.js +23 -0
- package/esm/components/MenuItem/index.js +90 -0
- package/esm/components/Modal/index.js +128 -0
- package/esm/components/NotificationButton/index.js +31 -0
- package/esm/components/OffCanvas/Overlay.js +61 -0
- package/esm/components/OffCanvas/index.js +124 -0
- package/esm/components/OffCanvas/useClickOutside.js +17 -0
- package/esm/components/RadioButton/index.js +139 -0
- package/esm/components/Range/index.js +73 -0
- package/esm/components/Select/components/test-icon.js +12 -0
- package/esm/components/Select/index.js +215 -0
- package/esm/components/Snackbar/index.js +146 -0
- package/esm/components/Spinner/index.js +60 -0
- package/esm/components/Stepper/index.js +52 -0
- package/esm/components/StepperAccordion/index.js +124 -0
- package/esm/components/Tabs/index.js +61 -0
- package/esm/components/TextArea/index.js +111 -0
- package/esm/components/Textfield/index.js +121 -0
- package/esm/components/TimePicker/index.js +40 -0
- package/esm/components/TimePicker/testHelper.js +12 -0
- package/esm/components/Toggle/index.js +75 -0
- package/esm/icons/components/AccountCreateIcon.js +22 -0
- package/esm/icons/components/AccountIcon.js +18 -0
- package/esm/icons/components/AccountLoginIcon.js +24 -0
- package/esm/icons/components/ArrowDownIcon.js +18 -0
- package/esm/icons/components/ArrowLeftIcon.js +16 -0
- package/esm/icons/components/ArrowLeftSharpIcon.js +18 -0
- package/esm/icons/components/ArrowLeftSmallIcon.js +18 -0
- package/esm/icons/components/ArrowLong.js +19 -0
- package/esm/icons/components/ArrowRestartIcon.js +18 -0
- package/esm/icons/components/ArrowRightIcon.js +16 -0
- package/esm/icons/components/ArrowRightSharpIcon.js +18 -0
- package/esm/icons/components/ArrowUpIcon.js +18 -0
- package/esm/icons/components/AuctionIcon.js +16 -0
- package/esm/icons/components/BackArrowIcon.js +16 -0
- package/esm/icons/components/Baseline360Icon.js +19 -0
- package/esm/icons/components/BellIcon.js +16 -0
- package/esm/icons/components/BidIcon.js +16 -0
- package/esm/icons/components/BidKrIcon.js +22 -0
- package/esm/icons/components/BreaksIcon.js +16 -0
- package/esm/icons/components/BuyCarIcon.js +16 -0
- package/esm/icons/components/CabIcon.js +18 -0
- package/esm/icons/components/CalendarIcon.js +25 -0
- package/esm/icons/components/CameraIcon.js +16 -0
- package/esm/icons/components/Car360Icon.js +41 -0
- package/esm/icons/components/CarFrontIcon.js +16 -0
- package/esm/icons/components/CarSearchIcon.js +16 -0
- package/esm/icons/components/CarSideIcon.js +16 -0
- package/esm/icons/components/CarTiresIcon.js +16 -0
- package/esm/icons/components/CaravanIcon.js +16 -0
- package/esm/icons/components/CardViewIcon.js +42 -0
- package/esm/icons/components/CarloanIcon.js +18 -0
- package/esm/icons/components/CertifiedIcon.js +26 -0
- package/esm/icons/components/ChatIcon.js +17 -0
- package/esm/icons/components/CheckIcon.js +17 -0
- package/esm/icons/components/CheckThinIcon.js +17 -0
- package/esm/icons/components/CheckmarkFilledIcon.js +16 -0
- package/esm/icons/components/CheckmarkIcon.js +16 -0
- package/esm/icons/components/ClipboardFilledIcon.js +16 -0
- package/esm/icons/components/ClipboardIcon.js +16 -0
- package/esm/icons/components/ClockFilledIcon.js +18 -0
- package/esm/icons/components/ClockIcon.js +17 -0
- package/esm/icons/components/CloseIcon.js +17 -0
- package/esm/icons/components/CloseThinIcon.js +18 -0
- package/esm/icons/components/CoffeeIcon.js +17 -0
- package/esm/icons/components/CombiIcon.js +18 -0
- package/esm/icons/components/CommentCircleFilledIcon.js +22 -0
- package/esm/icons/components/CommentCircleIconIcon.js +20 -0
- package/esm/icons/components/CommentIcon.js +20 -0
- package/esm/icons/components/ContactIcon.js +20 -0
- package/esm/icons/components/CoupeIcon.js +18 -0
- package/esm/icons/components/CreditCardIcon.js +17 -0
- package/esm/icons/components/CrossCircleIcon.js +16 -0
- package/esm/icons/components/CrownIcon.js +17 -0
- package/esm/icons/components/DealmakerIcon.js +22 -0
- package/esm/icons/components/DeliveryIcon.js +25 -0
- package/esm/icons/components/DetailedSearchIcon.js +17 -0
- package/esm/icons/components/EcoFriendlyIcon.js +20 -0
- package/esm/icons/components/EditIcon.js +17 -0
- package/esm/icons/components/EngineIcon.js +16 -0
- package/esm/icons/components/EnglandFlagIcon.js +34 -0
- package/esm/icons/components/EvaluationIcon.js +20 -0
- package/esm/icons/components/ExaminationMarkFilledIcon.js +16 -0
- package/esm/icons/components/ExaminationMarkIcon.js +16 -0
- package/esm/icons/components/ExteriorIcon.js +16 -0
- package/esm/icons/components/EyeIcon.js +22 -0
- package/esm/icons/components/FacebookBtnIcon.js +16 -0
- package/esm/icons/components/FacebookIcon.js +18 -0
- package/esm/icons/components/FatalIcon.js +18 -0
- package/esm/icons/components/FavouriteIcon.js +16 -0
- package/esm/icons/components/FavouriteSolidIcon.js +16 -0
- package/esm/icons/components/FilterIcon.js +18 -0
- package/esm/icons/components/FinanceIcon.js +16 -0
- package/esm/icons/components/FindCarIcon.js +16 -0
- package/esm/icons/components/FixedMonthlyCostIcon.js +22 -0
- package/esm/icons/components/FlagIcon.js +16 -0
- package/esm/icons/components/FlexibilityIcon.js +22 -0
- package/esm/icons/components/ForumLargeIcon.js +16 -0
- package/esm/icons/components/ForumSmallIcon.js +16 -0
- package/esm/icons/components/GavelIcon.js +18 -0
- package/esm/icons/components/GearboxIcon.js +18 -0
- package/esm/icons/components/GiftIcon.js +32 -0
- package/esm/icons/components/GridViewIcon.js +16 -0
- package/esm/icons/components/GroupIcon.js +53 -0
- package/esm/icons/components/GuaranteeIcon.js +16 -0
- package/esm/icons/components/GuaranteeLargeIcon.js +16 -0
- package/esm/icons/components/GuaranteeSmallIcon.js +16 -0
- package/esm/icons/components/HalfCombiIcon.js +18 -0
- package/esm/icons/components/HamburgerIcon.js +16 -0
- package/esm/icons/components/HandshakeIcon.js +16 -0
- package/esm/icons/components/HelpingHandIcon.js +34 -0
- package/esm/icons/components/IdIcon.js +19 -0
- package/esm/icons/components/InformationIcon.js +16 -0
- package/esm/icons/components/InstagramIcon.js +23 -0
- package/esm/icons/components/InsuranceIcon.js +16 -0
- package/esm/icons/components/InteriorIcon.js +18 -0
- package/esm/icons/components/InteriorThinIcon.js +18 -0
- package/esm/icons/components/InternationalIcon.js +24 -0
- package/esm/icons/components/KvdTestIcon.js +16 -0
- package/esm/icons/components/KvdVenueIcon.js +16 -0
- package/esm/icons/components/LifebuoyIcon.js +16 -0
- package/esm/icons/components/LiftTruckIcon.js +16 -0
- package/esm/icons/components/LinkedInIcon.js +16 -0
- package/esm/icons/components/ListViewIcon.js +38 -0
- package/esm/icons/components/MailIcon.js +18 -0
- package/esm/icons/components/MinibusIcon.js +18 -0
- package/esm/icons/components/MinivanIcon.js +19 -0
- package/esm/icons/components/MobileIcon.js +26 -0
- package/esm/icons/components/MotorcycleIcon.js +48 -0
- package/esm/icons/components/MrfLogoIcon.js +27 -0
- package/esm/icons/components/NotFoundIcon.js +16 -0
- package/esm/icons/components/OverbidIcon.js +18 -0
- package/esm/icons/components/PdfIconIcon.js +16 -0
- package/esm/icons/components/PhoneIcon.js +18 -0
- package/esm/icons/components/PickUpIcon.js +16 -0
- package/esm/icons/components/PinIcon.js +16 -0
- package/esm/icons/components/PlayIcon.js +16 -0
- package/esm/icons/components/Pricetag.js +25 -0
- package/esm/icons/components/PricetagFilledKronaIcon.js +21 -0
- package/esm/icons/components/PrivateCarIcon.js +16 -0
- package/esm/icons/components/ProfileCircleIcon.js +16 -0
- package/esm/icons/components/ProfileIcon.js +16 -0
- package/esm/icons/components/RadioIcon.js +28 -0
- package/esm/icons/components/ReclamationIcon.js +16 -0
- package/esm/icons/components/ReleasingIcon.js +22 -0
- package/esm/icons/components/RemoveFilterIcon.js +16 -0
- package/esm/icons/components/ReservedPriceIcon.js +16 -0
- package/esm/icons/components/ResultIcon.js +16 -0
- package/esm/icons/components/SafePaymentIcon.js +16 -0
- package/esm/icons/components/SaleTagIcon.js +16 -0
- package/esm/icons/components/SearchCheckIcon.js +22 -0
- package/esm/icons/components/SearchIcon.js +16 -0
- package/esm/icons/components/SedanIcon.js +18 -0
- package/esm/icons/components/SellCarIcon.js +16 -0
- package/esm/icons/components/SellCarsIcon.js +16 -0
- package/esm/icons/components/ServiceIcon.js +21 -0
- package/esm/icons/components/ShareIcon.js +42 -0
- package/esm/icons/components/ShieldIcon.js +16 -0
- package/esm/icons/components/SignInIcon.js +16 -0
- package/esm/icons/components/SignOutIcon.js +16 -0
- package/esm/icons/components/SpeedMeterIcon.js +18 -0
- package/esm/icons/components/StarCircleIcon.js +16 -0
- package/esm/icons/components/StartIcon.js +24 -0
- package/esm/icons/components/StoreIcon.js +16 -0
- package/esm/icons/components/SuvIcon.js +18 -0
- package/esm/icons/components/SwedenFlag.js +24 -0
- package/esm/icons/components/TankIcon.js +26 -0
- package/esm/icons/components/TireIcon.js +16 -0
- package/esm/icons/components/TransportIcon.js +16 -0
- package/esm/icons/components/TrashcanIcon.js +16 -0
- package/esm/icons/components/TrophyIcon.js +16 -0
- package/esm/icons/components/TruckIcon.js +16 -0
- package/esm/icons/components/UmbrellaIcon.js +16 -0
- package/esm/icons/components/ValuationIcon.js +16 -0
- package/esm/icons/components/ValueIcon.js +21 -0
- package/esm/icons/components/WarningIcon.js +16 -0
- package/esm/icons/components/YoutubeIcon.js +16 -0
- package/esm/icons/components/index.js +157 -0
- package/esm/index.js +220 -0
- package/esm/react-app-env.d.js +1 -0
- package/esm/shared/constants.js +3 -0
- package/esm/shared/helpers.js +23 -0
- package/esm/shared/helpers.spec.js +34 -0
- package/esm/shared/media-queries.js +35 -0
- package/esm/styled.d.js +1 -0
- package/esm/theme.js +121 -0
- package/esm/typography/BodyText/index.js +48 -0
- package/esm/typography/ButtonText/index.js +33 -0
- package/esm/typography/Heading/index.js +76 -0
- package/esm/utils/utils.js +28 -0
- package/package.json +11 -5
- 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/types/components/Select/components/test-icon.d.ts +1 -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/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} +3 -3
- 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 -1501
- package/kvdbil-components.js.map +0 -1
package/cjs/theme.js
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const theme = {
|
|
6
|
+
typography: {
|
|
7
|
+
fontBaseFamily: "'Open Sans', sans-serif",
|
|
8
|
+
fontAlternativeFamily: "'Next Book', sans-serif",
|
|
9
|
+
fontBaseRegularWeight: 400,
|
|
10
|
+
fontBaseBoldWeight: 600,
|
|
11
|
+
fontAlternativeRegularWeight: 400,
|
|
12
|
+
fontAlternativeBoldWeight: 700
|
|
13
|
+
},
|
|
14
|
+
colors: {
|
|
15
|
+
primary: {
|
|
16
|
+
darker: "#d98500",
|
|
17
|
+
dark: "#e8a100",
|
|
18
|
+
main: "#f5b400",
|
|
19
|
+
light: "#f7cf57",
|
|
20
|
+
lighter: "#fce5ab",
|
|
21
|
+
lighter2: "#fff7e5"
|
|
22
|
+
},
|
|
23
|
+
secondary: {
|
|
24
|
+
darker: "#00474d",
|
|
25
|
+
dark: "#007069",
|
|
26
|
+
main: "#2a9d8f",
|
|
27
|
+
light: "#6bb8a6",
|
|
28
|
+
lighter: "#bae3cc",
|
|
29
|
+
lighter2: "#e5f5ed"
|
|
30
|
+
},
|
|
31
|
+
tertiary: {
|
|
32
|
+
darker: "#5e2636",
|
|
33
|
+
dark: "#a63640",
|
|
34
|
+
main: "#ef5b5b",
|
|
35
|
+
light: "#f5968a",
|
|
36
|
+
lighter: "#f5c7bf",
|
|
37
|
+
lighter2: "#fcedeb"
|
|
38
|
+
},
|
|
39
|
+
info: {
|
|
40
|
+
darker: "#17395d",
|
|
41
|
+
dark: "#004773",
|
|
42
|
+
main: "#007ab8",
|
|
43
|
+
light: "#57c2ff",
|
|
44
|
+
lighter: "#abe0ff",
|
|
45
|
+
lighter2: "#e5f5ff"
|
|
46
|
+
},
|
|
47
|
+
success: {
|
|
48
|
+
darker: "#175c36",
|
|
49
|
+
dark: "#269940",
|
|
50
|
+
main: "#59d771",
|
|
51
|
+
light: "#91e5a1",
|
|
52
|
+
lighter: "#c7f2cf",
|
|
53
|
+
lighter2: "#edfaf0"
|
|
54
|
+
},
|
|
55
|
+
warning: {
|
|
56
|
+
darker: "#d98500",
|
|
57
|
+
dark: "#e8a100",
|
|
58
|
+
main: "#f5b400",
|
|
59
|
+
light: "#f7cf57",
|
|
60
|
+
lighter: "#fce5ab",
|
|
61
|
+
lighter2: "#fff7e5"
|
|
62
|
+
},
|
|
63
|
+
error: {
|
|
64
|
+
darker: "#5e2636",
|
|
65
|
+
dark: "#a63640",
|
|
66
|
+
main: "#ef5b5b",
|
|
67
|
+
light: "#f5968a",
|
|
68
|
+
lighter: "#f5c7bf",
|
|
69
|
+
lighter2: "#fcedeb"
|
|
70
|
+
},
|
|
71
|
+
neutral: {
|
|
72
|
+
darker: "#1a2030",
|
|
73
|
+
dark: "#1a2030",
|
|
74
|
+
main: "#1a2030",
|
|
75
|
+
light: "#474d59",
|
|
76
|
+
lighter: "#5e6369",
|
|
77
|
+
lighte2: "#707378"
|
|
78
|
+
},
|
|
79
|
+
text: {
|
|
80
|
+
dark: "#1a2030",
|
|
81
|
+
light: "#ffffff",
|
|
82
|
+
disabled: "#5e6369"
|
|
83
|
+
},
|
|
84
|
+
background: {
|
|
85
|
+
dark: "#1a2030",
|
|
86
|
+
gray: "#f2f2f2",
|
|
87
|
+
sand: "#f2efe6",
|
|
88
|
+
light: "#ffffff"
|
|
89
|
+
},
|
|
90
|
+
common: {
|
|
91
|
+
black: "#000000",
|
|
92
|
+
white: "#ffffff",
|
|
93
|
+
purple: {
|
|
94
|
+
darker: "#42214f",
|
|
95
|
+
dark: "#732e70",
|
|
96
|
+
main: "#a13d8f",
|
|
97
|
+
light: "#c27db5",
|
|
98
|
+
lighter: "#e0bfd9",
|
|
99
|
+
lighter2: "#f5edf2"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
gray: {
|
|
103
|
+
dark1: "#1a2030",
|
|
104
|
+
dark2: "#303842",
|
|
105
|
+
dark3: "#474d59",
|
|
106
|
+
dark4: "#5e6369",
|
|
107
|
+
dark5: "#707378",
|
|
108
|
+
light1: "#8c8f91",
|
|
109
|
+
light2: "#a3a6a8",
|
|
110
|
+
light3: "#c7c7c4",
|
|
111
|
+
light4: "#d9d9d6",
|
|
112
|
+
light5: "#e8e8e8",
|
|
113
|
+
light6: "#f2f2f2"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
elevations: {
|
|
117
|
+
elevation2: "0px 1px 5px rgba(0, 0, 0, 0.15), 0px 2px 4px rgba(0, 0, 0, 0.09), 0px 2px 4px rgba(0, 0, 0, 0.1)",
|
|
118
|
+
elevation4: "0px 1px 10px rgba(0, 0, 0, 0.15), 0px 4px 5px rgba(0, 0, 0, 0.09), 0px 2px 4px rgba(0, 0, 0, 0.1)",
|
|
119
|
+
elevation8: "0px 4px 5px rgba(0, 0, 0, 0.15), 0px 3px 14px rgba(0, 0, 0, 0.09), 0px 8px 10px rgba(0, 0, 0, 0.1)",
|
|
120
|
+
elevation16: "0px 8px 10px rgba(0, 0, 0, 0.15), 0px 6px 30px rgba(0, 0, 0, 0.09), 0px 16px 24px rgba(0, 0, 0, 0.1)",
|
|
121
|
+
elevation24: "0px 11px 15px rgba(0, 0, 0, 0.15), 0px 9px 46px rgba(0, 0, 0, 0.09), 0px 24px 38px rgba(0, 0, 0, 0.1)"
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
exports['default'] = theme;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
10
|
+
|
|
11
|
+
const BodyTextStylePrimary = styled.css`
|
|
12
|
+
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
13
|
+
font-weight: ${({ theme }) => theme.typography.fontBaseRegularWeight};
|
|
14
|
+
`;
|
|
15
|
+
const StyledBodyText = styled__default['default'].p`
|
|
16
|
+
${BodyTextStylePrimary}
|
|
17
|
+
font-feature-settings: 'lnum' on;
|
|
18
|
+
`;
|
|
19
|
+
const Quote = styled__default['default'](StyledBodyText)`
|
|
20
|
+
font-family: Georgia, Cambria, Cochin, Times, 'Times New Roman', serif;
|
|
21
|
+
font-style: italic;
|
|
22
|
+
`;
|
|
23
|
+
const BodyTextStyle = styled.css`
|
|
24
|
+
${BodyTextStylePrimary}
|
|
25
|
+
font-size: 1rem;
|
|
26
|
+
line-height: 1.5rem;
|
|
27
|
+
`;
|
|
28
|
+
const BodyText = styled__default['default'](StyledBodyText)`
|
|
29
|
+
font-size: 1rem;
|
|
30
|
+
line-height: 1.5rem;
|
|
31
|
+
`;
|
|
32
|
+
const BodyLink = styled__default['default'](BodyText)`
|
|
33
|
+
font-weight: ${({ theme }) => theme.typography.fontBaseBoldWeight};
|
|
34
|
+
`;
|
|
35
|
+
const CaptionStyle = styled.css`
|
|
36
|
+
${BodyTextStylePrimary}
|
|
37
|
+
font-size: 0.81rem;
|
|
38
|
+
line-height: 1.5rem;
|
|
39
|
+
`;
|
|
40
|
+
const Caption = styled__default['default'](StyledBodyText)`
|
|
41
|
+
font-size: 0.81rem;
|
|
42
|
+
line-height: 1.5rem;
|
|
43
|
+
`;
|
|
44
|
+
const CaptionLink = styled__default['default'](Caption)`
|
|
45
|
+
font-weight: ${({ theme }) => theme.typography.fontBaseBoldWeight};
|
|
46
|
+
`;
|
|
47
|
+
const Status = styled__default['default'](StyledBodyText)`
|
|
48
|
+
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
49
|
+
font-size: 0.75rem;
|
|
50
|
+
line-height: 1.25rem;
|
|
51
|
+
font-weight: ${({ theme }) => theme.typography.fontAlternativeBoldWeight};
|
|
52
|
+
text-transform: uppercase;
|
|
53
|
+
`;
|
|
54
|
+
const BodyTexts = () => /* @__PURE__ */ React.createElement("div", null);
|
|
55
|
+
|
|
56
|
+
exports.BodyLink = BodyLink;
|
|
57
|
+
exports.BodyText = BodyText;
|
|
58
|
+
exports.BodyTextStyle = BodyTextStyle;
|
|
59
|
+
exports.BodyTexts = BodyTexts;
|
|
60
|
+
exports.Caption = Caption;
|
|
61
|
+
exports.CaptionLink = CaptionLink;
|
|
62
|
+
exports.CaptionStyle = CaptionStyle;
|
|
63
|
+
exports.Quote = Quote;
|
|
64
|
+
exports.Status = Status;
|
|
65
|
+
exports.StyledBodyText = StyledBodyText;
|
|
66
|
+
exports['default'] = BodyTexts;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
10
|
+
|
|
11
|
+
const BasicButtonTextStyle = styled.css`
|
|
12
|
+
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
13
|
+
font-weight: ${({ theme }) => theme.typography.fontAlternativeBoldWeight};
|
|
14
|
+
`;
|
|
15
|
+
const StyledButtonText = styled__default['default'].span`
|
|
16
|
+
${BasicButtonTextStyle}
|
|
17
|
+
`;
|
|
18
|
+
const ButtonLargeTextStyle = styled.css`
|
|
19
|
+
font-size: 1.25rem;
|
|
20
|
+
line-height: 1.25rem;
|
|
21
|
+
`;
|
|
22
|
+
const ButtonLarge = styled__default['default'](StyledButtonText)`
|
|
23
|
+
${ButtonLargeTextStyle}
|
|
24
|
+
`;
|
|
25
|
+
const ButtonRegularTextStyle = styled.css`
|
|
26
|
+
font-size: 1rem;
|
|
27
|
+
line-height: 1rem;
|
|
28
|
+
`;
|
|
29
|
+
const Button = styled__default['default'](StyledButtonText)`
|
|
30
|
+
${ButtonRegularTextStyle}
|
|
31
|
+
`;
|
|
32
|
+
const ButtonSmallTextStyle = styled.css`
|
|
33
|
+
font-size: 0.81rem;
|
|
34
|
+
line-height: 0.81rem;
|
|
35
|
+
`;
|
|
36
|
+
const ButtonSmall = styled__default['default'](StyledButtonText)`
|
|
37
|
+
${ButtonSmallTextStyle}
|
|
38
|
+
`;
|
|
39
|
+
const Buttons = () => /* @__PURE__ */ React.createElement("div", null);
|
|
40
|
+
|
|
41
|
+
exports.BasicButtonTextStyle = BasicButtonTextStyle;
|
|
42
|
+
exports.Button = Button;
|
|
43
|
+
exports.ButtonLarge = ButtonLarge;
|
|
44
|
+
exports.ButtonLargeTextStyle = ButtonLargeTextStyle;
|
|
45
|
+
exports.ButtonRegularTextStyle = ButtonRegularTextStyle;
|
|
46
|
+
exports.ButtonSmall = ButtonSmall;
|
|
47
|
+
exports.ButtonSmallTextStyle = ButtonSmallTextStyle;
|
|
48
|
+
exports['default'] = Buttons;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var shared_mediaQueries = require('../../shared/media-queries.js');
|
|
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 StyledHeading = styled__default['default'].p`
|
|
13
|
+
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
14
|
+
font-weight: ${({ theme }) => theme.typography.fontAlternativeRegularWeight};
|
|
15
|
+
`;
|
|
16
|
+
const StyledDisplay = styled__default['default'](StyledHeading)`
|
|
17
|
+
font-weight: ${({ theme }) => theme.typography.fontAlternativeBoldWeight};
|
|
18
|
+
`;
|
|
19
|
+
const Display3 = styled__default['default'](StyledDisplay)`
|
|
20
|
+
font-size: 2rem;
|
|
21
|
+
line-height: 3rem;
|
|
22
|
+
|
|
23
|
+
${shared_mediaQueries.mq("laptop")} {
|
|
24
|
+
font-size: 3.75rem;
|
|
25
|
+
line-height: 4.5rem;
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
const Display2 = styled__default['default'](StyledDisplay)`
|
|
29
|
+
font-size: 1.81rem;
|
|
30
|
+
line-height: 2.5rem;
|
|
31
|
+
|
|
32
|
+
${shared_mediaQueries.mq("laptop")} {
|
|
33
|
+
font-size: 3rem;
|
|
34
|
+
line-height: 4rem;
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
37
|
+
const Display1 = styled__default['default'](StyledDisplay)`
|
|
38
|
+
font-size: 1.63rem;
|
|
39
|
+
line-height: 2.5rem;
|
|
40
|
+
|
|
41
|
+
${shared_mediaQueries.mq("laptop")} {
|
|
42
|
+
font-size: 2.5rem;
|
|
43
|
+
line-height: 3.5rem;
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
const Headline = styled__default['default'](StyledHeading)`
|
|
47
|
+
font-size: 1.44rem;
|
|
48
|
+
line-height: 2rem;
|
|
49
|
+
|
|
50
|
+
${shared_mediaQueries.mq("laptop")} {
|
|
51
|
+
font-size: 2rem;
|
|
52
|
+
line-height: 3rem;
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
55
|
+
const Title = styled__default['default'](StyledHeading)`
|
|
56
|
+
font-size: 1.25rem;
|
|
57
|
+
line-height: 2rem;
|
|
58
|
+
|
|
59
|
+
${shared_mediaQueries.mq("laptop")} {
|
|
60
|
+
font-size: 1.56rem;
|
|
61
|
+
line-height: 2.5rem;
|
|
62
|
+
}
|
|
63
|
+
`;
|
|
64
|
+
const Subtitle = styled__default['default'](StyledHeading)`
|
|
65
|
+
font-size: 1.125rem;
|
|
66
|
+
line-height: 2rem;
|
|
67
|
+
|
|
68
|
+
${shared_mediaQueries.mq("laptop")} {
|
|
69
|
+
font-size: 1.25rem;
|
|
70
|
+
}
|
|
71
|
+
`;
|
|
72
|
+
const TinyTitle = styled__default['default'](StyledHeading)`
|
|
73
|
+
font-size: 1rem;
|
|
74
|
+
line-height: 1.5rem;
|
|
75
|
+
font-weight: ${({ theme }) => theme.typography.fontAlternativeBoldWeight};
|
|
76
|
+
`;
|
|
77
|
+
const Rubric = styled__default['default'](StyledHeading)`
|
|
78
|
+
font-weight: ${({ theme }) => theme.typography.fontAlternativeBoldWeight};
|
|
79
|
+
font-size: 1rem;
|
|
80
|
+
line-height: 1.5rem;
|
|
81
|
+
`;
|
|
82
|
+
const Headings = () => /* @__PURE__ */ React.createElement("div", null);
|
|
83
|
+
|
|
84
|
+
exports.Display1 = Display1;
|
|
85
|
+
exports.Display2 = Display2;
|
|
86
|
+
exports.Display3 = Display3;
|
|
87
|
+
exports.Headline = Headline;
|
|
88
|
+
exports.Rubric = Rubric;
|
|
89
|
+
exports.Subtitle = Subtitle;
|
|
90
|
+
exports.TinyTitle = TinyTitle;
|
|
91
|
+
exports.Title = Title;
|
|
92
|
+
exports['default'] = Headings;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
|
|
7
|
+
const getLuminosity = (hexColor) => {
|
|
8
|
+
let red = 0;
|
|
9
|
+
let green = 0;
|
|
10
|
+
let blue = 0;
|
|
11
|
+
if (hexColor.length === 4) {
|
|
12
|
+
red = parseInt("0x" + hexColor[1] + hexColor[1]);
|
|
13
|
+
green = parseInt("0x" + hexColor[2] + hexColor[2]);
|
|
14
|
+
blue = parseInt("0x" + hexColor[3] + hexColor[3]);
|
|
15
|
+
} else if (hexColor.length === 7) {
|
|
16
|
+
red = parseInt("0x" + hexColor[1] + hexColor[2]);
|
|
17
|
+
green = parseInt("0x" + hexColor[3] + hexColor[4]);
|
|
18
|
+
blue = parseInt("0x" + hexColor[5] + hexColor[6]);
|
|
19
|
+
}
|
|
20
|
+
return (Math.max(Number(red / 255), Number(green / 255), Number(blue / 255)) + Math.min(Number(red / 255), Number(green / 255), Number(blue / 255))) / 2 * 100;
|
|
21
|
+
};
|
|
22
|
+
const resetButtonStyle = styled.css`
|
|
23
|
+
appearance: none;
|
|
24
|
+
background-color: transparent;
|
|
25
|
+
border: 0;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
font-family: inherit;
|
|
28
|
+
outline: none;
|
|
29
|
+
padding: 0;
|
|
30
|
+
`;
|
|
31
|
+
|
|
32
|
+
exports.getLuminosity = getLuminosity;
|
|
33
|
+
exports.resetButtonStyle = resetButtonStyle;
|
package/esm/ColorCard.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { getLuminosity } from './utils/utils.js';
|
|
3
|
+
import theme from './theme.js';
|
|
4
|
+
|
|
5
|
+
const SubList = styled.ul`
|
|
6
|
+
padding-left: 2rem;
|
|
7
|
+
`;
|
|
8
|
+
const ColorItem = styled.li`
|
|
9
|
+
list-style: none;
|
|
10
|
+
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.03);
|
|
11
|
+
border: 1px solid ${theme.colors.gray.light2};
|
|
12
|
+
border-radius: 4px;
|
|
13
|
+
font-family: 'Ralway', sans-serif;
|
|
14
|
+
margin-top: 0.75rem;
|
|
15
|
+
`;
|
|
16
|
+
const Header = styled.span`
|
|
17
|
+
text-transform: capitalize;
|
|
18
|
+
padding: 0.5em;
|
|
19
|
+
display: block;
|
|
20
|
+
border-bottom: 1px solid ${theme.colors.gray.light2};
|
|
21
|
+
`;
|
|
22
|
+
const Color = styled.li`
|
|
23
|
+
display: block;
|
|
24
|
+
background: ${({ hex }) => hex};
|
|
25
|
+
color: ${({ hex }) => getLuminosity(hex) < 40 ? "#fff" : "#000"};
|
|
26
|
+
padding: 1em;
|
|
27
|
+
`;
|
|
28
|
+
const SwatchArea = styled.ul`
|
|
29
|
+
margin: 0;
|
|
30
|
+
padding: 0;
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
`;
|
|
34
|
+
const getColor = (variants) => Object.entries(variants).map(([name, hex]) => typeof hex === "string" ? /* @__PURE__ */ React.createElement(Color, {
|
|
35
|
+
hex,
|
|
36
|
+
key: hex
|
|
37
|
+
}, name, " (", hex, ")") : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Header, null, name), /* @__PURE__ */ React.createElement(SubList, null, getColor(hex))));
|
|
38
|
+
const ColorCard = ({ colorName, variants }) => /* @__PURE__ */ React.createElement(ColorItem, null, /* @__PURE__ */ React.createElement(Header, null, colorName), /* @__PURE__ */ React.createElement(SwatchArea, null, getColor(variants)));
|
|
39
|
+
|
|
40
|
+
export { ColorCard as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const Card = styled.div`
|
|
4
|
+
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
5
|
+
font-weight: ${({ theme }) => theme.typography.fontAlternativeRegularWeight};
|
|
6
|
+
font-size: 1.25rem;
|
|
7
|
+
box-shadow: ${({ elevation }) => elevation};
|
|
8
|
+
width: 14rem;
|
|
9
|
+
height: 10rem;
|
|
10
|
+
margin: 1rem;
|
|
11
|
+
border-radius: 4px;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
`;
|
|
16
|
+
const ElevationCard = ({
|
|
17
|
+
children,
|
|
18
|
+
value,
|
|
19
|
+
as = "div"
|
|
20
|
+
}) => {
|
|
21
|
+
return /* @__PURE__ */ React.createElement(Card, {
|
|
22
|
+
as,
|
|
23
|
+
elevation: value
|
|
24
|
+
}, children);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { ElevationCard };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/esm/Types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { UnmountClosed } from 'react-collapse';
|
|
4
|
+
import { mq } from '../../shared/media-queries.js';
|
|
5
|
+
import ArrowDownIcon from '../../icons/components/ArrowDownIcon.js';
|
|
6
|
+
|
|
7
|
+
const Container = styled.div`
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
.ReactCollapse--collapse {
|
|
11
|
+
transition: height 300ms;
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
const List = styled.ul`
|
|
15
|
+
margin: 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
list-style: none;
|
|
18
|
+
`;
|
|
19
|
+
const Title = styled.div`
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
margin: 0.5rem 0;
|
|
25
|
+
`;
|
|
26
|
+
const Arrow = styled.div`
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
align-items: center;
|
|
30
|
+
font-size: 0.75rem;
|
|
31
|
+
color: ${({ theme }) => theme.colors.text.dark};
|
|
32
|
+
transition: 200ms ease-in-out;
|
|
33
|
+
transform: ${({ isOpen }) => `rotate(${isOpen ? "180deg" : "0deg"})`};
|
|
34
|
+
`;
|
|
35
|
+
const Item = styled.li`
|
|
36
|
+
border-top: ${({ theme }) => `1px solid ${theme.colors.gray.light2}`};
|
|
37
|
+
padding: ${({ isOpen }) => isOpen ? "0.5rem 0 1rem 0" : "0.5rem 0"};
|
|
38
|
+
|
|
39
|
+
&:last-child {
|
|
40
|
+
border-bottom: ${({ theme }) => `1px solid ${theme.colors.gray.light2}`};
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
const Text = styled.span`
|
|
44
|
+
color: ${({ theme }) => theme.colors.text.dark};
|
|
45
|
+
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
46
|
+
font-size: 0.9375rem;
|
|
47
|
+
font-weight: ${({ theme }) => theme.typography.fontBaseBoldWeight};
|
|
48
|
+
`;
|
|
49
|
+
const Content = styled.div`
|
|
50
|
+
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
51
|
+
color: ${({ theme }) => theme.colors.text.dark};
|
|
52
|
+
font-size: 0.9375rem;
|
|
53
|
+
font-weight: ${({ theme }) => theme.typography.fontBaseRegularWeight};
|
|
54
|
+
line-height: 1.3;
|
|
55
|
+
transition: 200ms ease-in-out;
|
|
56
|
+
${mq("tablet")} {
|
|
57
|
+
padding: 0;
|
|
58
|
+
}
|
|
59
|
+
& > * {
|
|
60
|
+
margin-top: 0;
|
|
61
|
+
margin-bottom: 0;
|
|
62
|
+
}
|
|
63
|
+
`;
|
|
64
|
+
const Accordion = ({ items, ...props }) => {
|
|
65
|
+
const [isOpened, setIsOpened] = useState({});
|
|
66
|
+
const toggleIsOpened = (index) => {
|
|
67
|
+
setIsOpened((prevState) => ({ ...prevState, [index]: !prevState[index] }));
|
|
68
|
+
};
|
|
69
|
+
const onClick = (index) => () => {
|
|
70
|
+
toggleIsOpened(index);
|
|
71
|
+
};
|
|
72
|
+
const onKeyPress = (index) => (e) => {
|
|
73
|
+
if (e.key === "Enter") {
|
|
74
|
+
toggleIsOpened(index);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
return /* @__PURE__ */ React.createElement(Container, {
|
|
78
|
+
...props
|
|
79
|
+
}, /* @__PURE__ */ React.createElement(List, {
|
|
80
|
+
className: "accordionList"
|
|
81
|
+
}, items.map((item, index) => {
|
|
82
|
+
const isOpen = Boolean(isOpened[index]);
|
|
83
|
+
return /* @__PURE__ */ React.createElement(Item, {
|
|
84
|
+
key: item.title,
|
|
85
|
+
isOpen,
|
|
86
|
+
className: "accordionItem"
|
|
87
|
+
}, /* @__PURE__ */ React.createElement(Title, {
|
|
88
|
+
onClick: onClick(index),
|
|
89
|
+
onKeyPress: onKeyPress(index),
|
|
90
|
+
className: "accordionItemTitle",
|
|
91
|
+
role: "button",
|
|
92
|
+
tabIndex: 0,
|
|
93
|
+
"aria-expanded": isOpen,
|
|
94
|
+
id: `panel${index}-header`,
|
|
95
|
+
"aria-controls": `panel${index}-content`
|
|
96
|
+
}, /* @__PURE__ */ React.createElement(Text, {
|
|
97
|
+
as: "span"
|
|
98
|
+
}, item.title), /* @__PURE__ */ React.createElement(Arrow, {
|
|
99
|
+
isOpen
|
|
100
|
+
}, /* @__PURE__ */ React.createElement(ArrowDownIcon, null))), /* @__PURE__ */ React.createElement(UnmountClosed, {
|
|
101
|
+
isOpened: isOpen,
|
|
102
|
+
key: index
|
|
103
|
+
}, /* @__PURE__ */ React.createElement(Content, {
|
|
104
|
+
"aria-labelledby": `panel${index}-header`,
|
|
105
|
+
id: `panel${index}-content`,
|
|
106
|
+
role: "region",
|
|
107
|
+
className: "wysiwyg",
|
|
108
|
+
dangerouslySetInnerHTML: {
|
|
109
|
+
__html: item.text
|
|
110
|
+
}
|
|
111
|
+
})));
|
|
112
|
+
})));
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export { Accordion, Accordion as default };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import theme from '../../theme.js';
|
|
3
|
+
|
|
4
|
+
const BadgeContainer = styled.div`
|
|
5
|
+
border-radius: 0.75rem;
|
|
6
|
+
background: ${theme.colors.secondary.main};
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
padding: 0.5rem;
|
|
11
|
+
min-width: 1.5rem;
|
|
12
|
+
height: 1.5rem;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
cursor: default;
|
|
15
|
+
`;
|
|
16
|
+
const SmallBadgeContainer = styled(BadgeContainer)`
|
|
17
|
+
width: 1rem;
|
|
18
|
+
height: 1rem;
|
|
19
|
+
border-radius: 50%;
|
|
20
|
+
min-width: 1rem;
|
|
21
|
+
position: relative;
|
|
22
|
+
`;
|
|
23
|
+
const MiddleDot = styled.div`
|
|
24
|
+
display: block;
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 100%;
|
|
27
|
+
border-radius: 50%;
|
|
28
|
+
opacity: 0.1;
|
|
29
|
+
transform: scale(0.5);
|
|
30
|
+
background: ${theme.colors.text.dark};
|
|
31
|
+
position: absolute;
|
|
32
|
+
top: 0;
|
|
33
|
+
left: 0;
|
|
34
|
+
`;
|
|
35
|
+
const Label = styled.span`
|
|
36
|
+
font-size: 0.75rem;
|
|
37
|
+
line-height: 0.75rem;
|
|
38
|
+
color: white;
|
|
39
|
+
font-weight: ${({ theme: theme2 }) => theme2.typography.fontAlternativeBoldWeight};
|
|
40
|
+
font-family: ${({ theme: theme2 }) => theme2.typography.fontAlternativeFamily};
|
|
41
|
+
`;
|
|
42
|
+
const numberToLabel = (notificationAmount) => {
|
|
43
|
+
if (notificationAmount >= 100) {
|
|
44
|
+
return "99+";
|
|
45
|
+
}
|
|
46
|
+
return `${notificationAmount}`;
|
|
47
|
+
};
|
|
48
|
+
const Badge = ({
|
|
49
|
+
notificationAmount = 0,
|
|
50
|
+
withNumber = true,
|
|
51
|
+
...rest
|
|
52
|
+
}) => {
|
|
53
|
+
if ((notificationAmount <= 0 || !notificationAmount) && withNumber) {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
if (!withNumber) {
|
|
57
|
+
return /* @__PURE__ */ React.createElement(SmallBadgeContainer, {
|
|
58
|
+
...rest
|
|
59
|
+
}, /* @__PURE__ */ React.createElement(MiddleDot, {
|
|
60
|
+
"data-test": "middle-dot"
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
const label = numberToLabel(notificationAmount);
|
|
64
|
+
return /* @__PURE__ */ React.createElement(BadgeContainer, {
|
|
65
|
+
...rest
|
|
66
|
+
}, /* @__PURE__ */ React.createElement(Label, null, label));
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export { Badge, Badge as default };
|