@kvdbil/components 3.3.5 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/ColorCard.js +25 -0
- package/cjs/ElevationCard.js +13 -0
- package/cjs/Interfaces.js +1 -0
- package/cjs/Types.js +1 -0
- package/cjs/components/Accordion/index.js +51 -0
- package/cjs/components/Badge/index.js +35 -0
- package/cjs/components/Button/index.js +100 -0
- package/cjs/components/Card/index.js +8 -0
- package/cjs/components/CheckBox/index.js +56 -0
- package/cjs/components/Chip/index.js +23 -0
- package/cjs/components/DayPicker/DayPickerNavBar.js +23 -0
- package/cjs/components/DayPicker/index.js +34 -0
- package/cjs/components/DayPicker/localeUtils.js +1 -0
- package/cjs/components/DayPicker/style.js +226 -0
- package/cjs/components/Dialog/index.js +27 -0
- package/cjs/components/ErrorMessage/index.js +10 -0
- package/cjs/components/FieldLabel.js +34 -0
- package/cjs/components/Header/Hamburger.js +31 -0
- package/cjs/components/Header/Link.js +34 -0
- package/cjs/components/Header/index.js +63 -0
- package/cjs/components/Hero/index.js +26 -0
- package/cjs/components/Icon/index.js +32 -0
- package/cjs/components/IconButton.js +80 -0
- package/cjs/components/Icons/Arrow.js +1 -0
- package/cjs/components/Icons/CheckCircle.js +1 -0
- package/cjs/components/Icons/CheckIcon.js +1 -0
- package/cjs/components/Icons/Close.js +1 -0
- package/cjs/components/Icons/ErrorCircle.js +1 -0
- package/cjs/components/Icons/InfoCircle.js +1 -0
- package/cjs/components/InlineStepper/Step.js +56 -0
- package/cjs/components/InlineStepper/StepCircle.js +43 -0
- package/cjs/components/InlineStepper/index.js +7 -0
- package/cjs/components/ListItem/Bacon.js +1 -0
- package/cjs/components/ListItem/index.js +24 -0
- package/cjs/components/Logo/LogoEn.js +1 -0
- package/cjs/components/Logo/LogoSv.js +1 -0
- package/cjs/components/Logo/index.js +3 -0
- package/cjs/components/MenuItem/index.js +38 -0
- package/cjs/components/Modal/index.js +77 -0
- package/cjs/components/NotificationButton/index.js +11 -0
- package/cjs/components/OffCanvas/Overlay.js +27 -0
- package/cjs/components/OffCanvas/index.js +57 -0
- package/cjs/components/OffCanvas/useClickOutside.js +1 -0
- package/cjs/components/RadioButton/index.js +88 -0
- package/cjs/components/Range/index.js +44 -0
- package/cjs/components/Select/components/test-icon.js +1 -0
- package/cjs/components/Select/index.js +44 -0
- package/cjs/components/Snackbar/index.js +78 -0
- package/cjs/components/Spinner/index.js +19 -0
- package/cjs/components/Stepper/index.js +33 -0
- package/cjs/components/StepperAccordion/index.js +72 -0
- package/cjs/components/Tabs/index.js +11 -0
- package/cjs/components/TextArea/index.js +55 -0
- package/cjs/components/Textfield/index.js +55 -0
- package/cjs/components/TimePicker/index.js +9 -0
- package/cjs/components/TimePicker/testHelper.js +1 -0
- package/cjs/components/Toggle/index.js +39 -0
- package/cjs/icons/components/AccountCreateIcon.js +1 -0
- package/cjs/icons/components/AccountIcon.js +1 -0
- package/cjs/icons/components/AccountLoginIcon.js +1 -0
- package/cjs/icons/components/ArrowDownIcon.js +1 -0
- package/cjs/icons/components/ArrowLeftIcon.js +1 -0
- package/cjs/icons/components/ArrowLeftSharpIcon.js +1 -0
- package/cjs/icons/components/ArrowLeftSmallIcon.js +1 -0
- package/cjs/icons/components/ArrowLong.js +1 -0
- package/cjs/icons/components/ArrowRestartIcon.js +1 -0
- package/cjs/icons/components/ArrowRightIcon.js +1 -0
- package/cjs/icons/components/ArrowRightSharpIcon.js +1 -0
- package/cjs/icons/components/ArrowUpIcon.js +1 -0
- package/cjs/icons/components/AuctionIcon.js +1 -0
- package/cjs/icons/components/BackArrowIcon.js +1 -0
- package/cjs/icons/components/Baseline360Icon.js +1 -0
- package/cjs/icons/components/BellIcon.js +1 -0
- package/cjs/icons/components/BidIcon.js +1 -0
- package/cjs/icons/components/BidKrIcon.js +1 -0
- package/cjs/icons/components/BreaksIcon.js +1 -0
- package/cjs/icons/components/BuyCarIcon.js +1 -0
- package/cjs/icons/components/CabIcon.js +1 -0
- package/cjs/icons/components/CalendarIcon.js +1 -0
- package/cjs/icons/components/CameraIcon.js +1 -0
- package/cjs/icons/components/Car360Icon.js +1 -0
- package/cjs/icons/components/CarFrontIcon.js +1 -0
- package/cjs/icons/components/CarSearchIcon.js +1 -0
- package/cjs/icons/components/CarSideIcon.js +1 -0
- package/cjs/icons/components/CarTiresIcon.js +1 -0
- package/cjs/icons/components/CaravanIcon.js +1 -0
- package/cjs/icons/components/CardViewIcon.js +1 -0
- package/cjs/icons/components/CarloanIcon.js +1 -0
- package/cjs/icons/components/CertifiedIcon.js +1 -0
- package/cjs/icons/components/ChatIcon.js +1 -0
- package/cjs/icons/components/CheckIcon.js +1 -0
- package/cjs/icons/components/CheckThinIcon.js +1 -0
- package/cjs/icons/components/CheckmarkFilledIcon.js +1 -0
- package/cjs/icons/components/CheckmarkIcon.js +1 -0
- package/cjs/icons/components/ClipboardFilledIcon.js +1 -0
- package/cjs/icons/components/ClipboardIcon.js +1 -0
- package/cjs/icons/components/ClockFilledIcon.js +1 -0
- package/cjs/icons/components/ClockIcon.js +1 -0
- package/cjs/icons/components/CloseIcon.js +1 -0
- package/cjs/icons/components/CloseThinIcon.js +1 -0
- package/cjs/icons/components/CoffeeIcon.js +1 -0
- package/cjs/icons/components/CombiIcon.js +1 -0
- package/cjs/icons/components/CommentCircleFilledIcon.js +1 -0
- package/cjs/icons/components/CommentCircleIconIcon.js +1 -0
- package/cjs/icons/components/CommentIcon.js +1 -0
- package/cjs/icons/components/ContactIcon.js +1 -0
- package/cjs/icons/components/CoupeIcon.js +1 -0
- package/cjs/icons/components/CreditCardIcon.js +1 -0
- package/cjs/icons/components/CrossCircleIcon.js +1 -0
- package/cjs/icons/components/CrownIcon.js +1 -0
- package/cjs/icons/components/DealmakerIcon.js +1 -0
- package/cjs/icons/components/DeliveryIcon.js +1 -0
- package/cjs/icons/components/DetailedSearchIcon.js +1 -0
- package/cjs/icons/components/EcoFriendlyIcon.js +1 -0
- package/cjs/icons/components/EditIcon.js +1 -0
- package/cjs/icons/components/EngineIcon.js +1 -0
- package/cjs/icons/components/EnglandFlagIcon.js +1 -0
- package/cjs/icons/components/EvaluationIcon.js +1 -0
- package/cjs/icons/components/ExaminationMarkFilledIcon.js +1 -0
- package/cjs/icons/components/ExaminationMarkIcon.js +1 -0
- package/cjs/icons/components/ExteriorIcon.js +1 -0
- package/cjs/icons/components/EyeIcon.js +1 -0
- package/cjs/icons/components/FacebookBtnIcon.js +1 -0
- package/cjs/icons/components/FacebookIcon.js +1 -0
- package/cjs/icons/components/FatalIcon.js +1 -0
- package/cjs/icons/components/FavouriteIcon.js +1 -0
- package/cjs/icons/components/FavouriteSolidIcon.js +1 -0
- package/cjs/icons/components/FilterIcon.js +1 -0
- package/cjs/icons/components/FinanceIcon.js +1 -0
- package/cjs/icons/components/FindCarIcon.js +1 -0
- package/cjs/icons/components/FixedMonthlyCostIcon.js +1 -0
- package/cjs/icons/components/FlagIcon.js +1 -0
- package/cjs/icons/components/FlexibilityIcon.js +1 -0
- package/cjs/icons/components/ForumLargeIcon.js +1 -0
- package/cjs/icons/components/ForumSmallIcon.js +1 -0
- package/cjs/icons/components/GavelIcon.js +1 -0
- package/cjs/icons/components/GearboxIcon.js +1 -0
- package/cjs/icons/components/GiftIcon.js +1 -0
- package/cjs/icons/components/GridViewIcon.js +1 -0
- package/cjs/icons/components/GroupIcon.js +1 -0
- package/cjs/icons/components/GuaranteeIcon.js +1 -0
- package/cjs/icons/components/GuaranteeLargeIcon.js +1 -0
- package/cjs/icons/components/GuaranteeSmallIcon.js +1 -0
- package/cjs/icons/components/HalfCombiIcon.js +1 -0
- package/cjs/icons/components/HamburgerIcon.js +1 -0
- package/cjs/icons/components/HandshakeIcon.js +1 -0
- package/cjs/icons/components/HelpingHandIcon.js +1 -0
- package/cjs/icons/components/IdIcon.js +1 -0
- package/cjs/icons/components/InformationIcon.js +1 -0
- package/cjs/icons/components/InstagramIcon.js +1 -0
- package/cjs/icons/components/InsuranceIcon.js +1 -0
- package/cjs/icons/components/InteriorIcon.js +1 -0
- package/cjs/icons/components/InteriorThinIcon.js +1 -0
- package/cjs/icons/components/InternationalIcon.js +1 -0
- package/cjs/icons/components/KvdTestIcon.js +1 -0
- package/cjs/icons/components/KvdVenueIcon.js +1 -0
- package/cjs/icons/components/LifebuoyIcon.js +1 -0
- package/cjs/icons/components/LiftTruckIcon.js +1 -0
- package/cjs/icons/components/LinkedInIcon.js +1 -0
- package/cjs/icons/components/ListViewIcon.js +1 -0
- package/cjs/icons/components/MailIcon.js +1 -0
- package/cjs/icons/components/MinibusIcon.js +1 -0
- package/cjs/icons/components/MinivanIcon.js +1 -0
- package/cjs/icons/components/MobileIcon.js +1 -0
- package/cjs/icons/components/MotorcycleIcon.js +1 -0
- package/cjs/icons/components/MrfLogoIcon.js +1 -0
- package/cjs/icons/components/NotFoundIcon.js +1 -0
- package/cjs/icons/components/OverbidIcon.js +1 -0
- package/cjs/icons/components/PdfIconIcon.js +1 -0
- package/cjs/icons/components/PhoneIcon.js +1 -0
- package/cjs/icons/components/PickUpIcon.js +1 -0
- package/cjs/icons/components/PinIcon.js +1 -0
- package/cjs/icons/components/PlayIcon.js +1 -0
- package/cjs/icons/components/Pricetag.js +1 -0
- package/cjs/icons/components/PricetagFilledKronaIcon.js +1 -0
- package/cjs/icons/components/PrivateCarIcon.js +1 -0
- package/cjs/icons/components/ProfileCircleIcon.js +1 -0
- package/cjs/icons/components/ProfileIcon.js +1 -0
- package/cjs/icons/components/RadioIcon.js +1 -0
- package/cjs/icons/components/ReclamationIcon.js +1 -0
- package/cjs/icons/components/ReleasingIcon.js +1 -0
- package/cjs/icons/components/RemoveFilterIcon.js +1 -0
- package/cjs/icons/components/ReservedPriceIcon.js +1 -0
- package/cjs/icons/components/ResultIcon.js +1 -0
- package/cjs/icons/components/SafePaymentIcon.js +1 -0
- package/cjs/icons/components/SaleTagIcon.js +1 -0
- package/cjs/icons/components/SearchCheckIcon.js +1 -0
- package/cjs/icons/components/SearchIcon.js +1 -0
- package/cjs/icons/components/SedanIcon.js +1 -0
- package/cjs/icons/components/SellCarIcon.js +1 -0
- package/cjs/icons/components/SellCarsIcon.js +1 -0
- package/cjs/icons/components/ServiceIcon.js +1 -0
- package/cjs/icons/components/ShareIcon.js +1 -0
- package/cjs/icons/components/ShieldIcon.js +1 -0
- package/cjs/icons/components/SignInIcon.js +1 -0
- package/cjs/icons/components/SignOutIcon.js +1 -0
- package/cjs/icons/components/SpeedMeterIcon.js +1 -0
- package/cjs/icons/components/StarCircleIcon.js +1 -0
- package/cjs/icons/components/StartIcon.js +1 -0
- package/cjs/icons/components/StoreIcon.js +1 -0
- package/cjs/icons/components/SuvIcon.js +1 -0
- package/cjs/icons/components/SwedenFlag.js +1 -0
- package/cjs/icons/components/TankIcon.js +1 -0
- package/cjs/icons/components/TireIcon.js +1 -0
- package/cjs/icons/components/TransportIcon.js +1 -0
- package/cjs/icons/components/TrashcanIcon.js +1 -0
- package/cjs/icons/components/TrophyIcon.js +1 -0
- package/cjs/icons/components/TruckIcon.js +1 -0
- package/cjs/icons/components/UmbrellaIcon.js +1 -0
- package/cjs/icons/components/ValuationIcon.js +1 -0
- package/cjs/icons/components/ValueIcon.js +1 -0
- package/cjs/icons/components/WarningIcon.js +1 -0
- package/cjs/icons/components/YoutubeIcon.js +1 -0
- package/cjs/icons/components/index.js +1 -0
- package/cjs/index.js +1 -0
- package/cjs/shared/constants.js +1 -0
- package/cjs/shared/helpers.js +1 -0
- package/cjs/shared/helpers.spec.js +1 -0
- package/cjs/shared/media-queries.js +1 -0
- package/cjs/theme.js +1 -0
- package/cjs/typography/BodyText/index.js +34 -0
- package/cjs/typography/ButtonText/index.js +21 -0
- package/cjs/typography/Heading/index.js +61 -0
- package/cjs/utils/utils.js +9 -0
- package/esm/ColorCard.js +25 -0
- package/esm/ElevationCard.js +13 -0
- package/esm/Interfaces.js +1 -0
- package/esm/Types.js +1 -0
- package/esm/components/Accordion/index.js +51 -0
- package/esm/components/Badge/index.js +35 -0
- package/esm/components/Button/index.js +100 -0
- package/esm/components/Card/index.js +8 -0
- package/esm/components/CheckBox/index.js +56 -0
- package/esm/components/Chip/index.js +23 -0
- package/esm/components/DayPicker/DayPickerNavBar.js +23 -0
- package/esm/components/DayPicker/index.js +34 -0
- package/esm/components/DayPicker/localeUtils.js +1 -0
- package/esm/components/DayPicker/style.js +226 -0
- package/esm/components/Dialog/index.js +27 -0
- package/esm/components/ErrorMessage/index.js +10 -0
- package/esm/components/FieldLabel.js +34 -0
- package/esm/components/Header/Hamburger.js +31 -0
- package/esm/components/Header/Link.js +34 -0
- package/esm/components/Header/index.js +63 -0
- package/esm/components/Hero/index.js +26 -0
- package/esm/components/Icon/index.js +32 -0
- package/esm/components/IconButton.js +80 -0
- package/esm/components/Icons/Arrow.js +1 -0
- package/esm/components/Icons/CheckCircle.js +1 -0
- package/esm/components/Icons/CheckIcon.js +1 -0
- package/esm/components/Icons/Close.js +1 -0
- package/esm/components/Icons/ErrorCircle.js +1 -0
- package/esm/components/Icons/InfoCircle.js +1 -0
- package/esm/components/InlineStepper/Step.js +56 -0
- package/esm/components/InlineStepper/StepCircle.js +43 -0
- package/esm/components/InlineStepper/index.js +7 -0
- package/esm/components/ListItem/Bacon.js +1 -0
- package/esm/components/ListItem/index.js +24 -0
- package/esm/components/Logo/LogoEn.js +1 -0
- package/esm/components/Logo/LogoSv.js +1 -0
- package/esm/components/Logo/index.js +3 -0
- package/esm/components/MenuItem/index.js +38 -0
- package/esm/components/Modal/index.js +77 -0
- package/esm/components/NotificationButton/index.js +11 -0
- package/esm/components/OffCanvas/Overlay.js +27 -0
- package/esm/components/OffCanvas/index.js +57 -0
- package/esm/components/OffCanvas/useClickOutside.js +1 -0
- package/esm/components/RadioButton/index.js +88 -0
- package/esm/components/Range/index.js +44 -0
- package/esm/components/Select/components/test-icon.js +1 -0
- package/esm/components/Select/index.js +44 -0
- package/esm/components/Snackbar/index.js +78 -0
- package/esm/components/Spinner/index.js +19 -0
- package/esm/components/Stepper/index.js +33 -0
- package/esm/components/StepperAccordion/index.js +72 -0
- package/esm/components/Tabs/index.js +11 -0
- package/esm/components/TextArea/index.js +55 -0
- package/esm/components/Textfield/index.js +55 -0
- package/esm/components/TimePicker/index.js +9 -0
- package/esm/components/TimePicker/testHelper.js +1 -0
- package/esm/components/Toggle/index.js +39 -0
- package/esm/icons/components/AccountCreateIcon.js +1 -0
- package/esm/icons/components/AccountIcon.js +1 -0
- package/esm/icons/components/AccountLoginIcon.js +1 -0
- package/esm/icons/components/ArrowDownIcon.js +1 -0
- package/esm/icons/components/ArrowLeftIcon.js +1 -0
- package/esm/icons/components/ArrowLeftSharpIcon.js +1 -0
- package/esm/icons/components/ArrowLeftSmallIcon.js +1 -0
- package/esm/icons/components/ArrowLong.js +1 -0
- package/esm/icons/components/ArrowRestartIcon.js +1 -0
- package/esm/icons/components/ArrowRightIcon.js +1 -0
- package/esm/icons/components/ArrowRightSharpIcon.js +1 -0
- package/esm/icons/components/ArrowUpIcon.js +1 -0
- package/esm/icons/components/AuctionIcon.js +1 -0
- package/esm/icons/components/BackArrowIcon.js +1 -0
- package/esm/icons/components/Baseline360Icon.js +1 -0
- package/esm/icons/components/BellIcon.js +1 -0
- package/esm/icons/components/BidIcon.js +1 -0
- package/esm/icons/components/BidKrIcon.js +1 -0
- package/esm/icons/components/BreaksIcon.js +1 -0
- package/esm/icons/components/BuyCarIcon.js +1 -0
- package/esm/icons/components/CabIcon.js +1 -0
- package/esm/icons/components/CalendarIcon.js +1 -0
- package/esm/icons/components/CameraIcon.js +1 -0
- package/esm/icons/components/Car360Icon.js +1 -0
- package/esm/icons/components/CarFrontIcon.js +1 -0
- package/esm/icons/components/CarSearchIcon.js +1 -0
- package/esm/icons/components/CarSideIcon.js +1 -0
- package/esm/icons/components/CarTiresIcon.js +1 -0
- package/esm/icons/components/CaravanIcon.js +1 -0
- package/esm/icons/components/CardViewIcon.js +1 -0
- package/esm/icons/components/CarloanIcon.js +1 -0
- package/esm/icons/components/CertifiedIcon.js +1 -0
- package/esm/icons/components/ChatIcon.js +1 -0
- package/esm/icons/components/CheckIcon.js +1 -0
- package/esm/icons/components/CheckThinIcon.js +1 -0
- package/esm/icons/components/CheckmarkFilledIcon.js +1 -0
- package/esm/icons/components/CheckmarkIcon.js +1 -0
- package/esm/icons/components/ClipboardFilledIcon.js +1 -0
- package/esm/icons/components/ClipboardIcon.js +1 -0
- package/esm/icons/components/ClockFilledIcon.js +1 -0
- package/esm/icons/components/ClockIcon.js +1 -0
- package/esm/icons/components/CloseIcon.js +1 -0
- package/esm/icons/components/CloseThinIcon.js +1 -0
- package/esm/icons/components/CoffeeIcon.js +1 -0
- package/esm/icons/components/CombiIcon.js +1 -0
- package/esm/icons/components/CommentCircleFilledIcon.js +1 -0
- package/esm/icons/components/CommentCircleIconIcon.js +1 -0
- package/esm/icons/components/CommentIcon.js +1 -0
- package/esm/icons/components/ContactIcon.js +1 -0
- package/esm/icons/components/CoupeIcon.js +1 -0
- package/esm/icons/components/CreditCardIcon.js +1 -0
- package/esm/icons/components/CrossCircleIcon.js +1 -0
- package/esm/icons/components/CrownIcon.js +1 -0
- package/esm/icons/components/DealmakerIcon.js +1 -0
- package/esm/icons/components/DeliveryIcon.js +1 -0
- package/esm/icons/components/DetailedSearchIcon.js +1 -0
- package/esm/icons/components/EcoFriendlyIcon.js +1 -0
- package/esm/icons/components/EditIcon.js +1 -0
- package/esm/icons/components/EngineIcon.js +1 -0
- package/esm/icons/components/EnglandFlagIcon.js +1 -0
- package/esm/icons/components/EvaluationIcon.js +1 -0
- package/esm/icons/components/ExaminationMarkFilledIcon.js +1 -0
- package/esm/icons/components/ExaminationMarkIcon.js +1 -0
- package/esm/icons/components/ExteriorIcon.js +1 -0
- package/esm/icons/components/EyeIcon.js +1 -0
- package/esm/icons/components/FacebookBtnIcon.js +1 -0
- package/esm/icons/components/FacebookIcon.js +1 -0
- package/esm/icons/components/FatalIcon.js +1 -0
- package/esm/icons/components/FavouriteIcon.js +1 -0
- package/esm/icons/components/FavouriteSolidIcon.js +1 -0
- package/esm/icons/components/FilterIcon.js +1 -0
- package/esm/icons/components/FinanceIcon.js +1 -0
- package/esm/icons/components/FindCarIcon.js +1 -0
- package/esm/icons/components/FixedMonthlyCostIcon.js +1 -0
- package/esm/icons/components/FlagIcon.js +1 -0
- package/esm/icons/components/FlexibilityIcon.js +1 -0
- package/esm/icons/components/ForumLargeIcon.js +1 -0
- package/esm/icons/components/ForumSmallIcon.js +1 -0
- package/esm/icons/components/GavelIcon.js +1 -0
- package/esm/icons/components/GearboxIcon.js +1 -0
- package/esm/icons/components/GiftIcon.js +1 -0
- package/esm/icons/components/GridViewIcon.js +1 -0
- package/esm/icons/components/GroupIcon.js +1 -0
- package/esm/icons/components/GuaranteeIcon.js +1 -0
- package/esm/icons/components/GuaranteeLargeIcon.js +1 -0
- package/esm/icons/components/GuaranteeSmallIcon.js +1 -0
- package/esm/icons/components/HalfCombiIcon.js +1 -0
- package/esm/icons/components/HamburgerIcon.js +1 -0
- package/esm/icons/components/HandshakeIcon.js +1 -0
- package/esm/icons/components/HelpingHandIcon.js +1 -0
- package/esm/icons/components/IdIcon.js +1 -0
- package/esm/icons/components/InformationIcon.js +1 -0
- package/esm/icons/components/InstagramIcon.js +1 -0
- package/esm/icons/components/InsuranceIcon.js +1 -0
- package/esm/icons/components/InteriorIcon.js +1 -0
- package/esm/icons/components/InteriorThinIcon.js +1 -0
- package/esm/icons/components/InternationalIcon.js +1 -0
- package/esm/icons/components/KvdTestIcon.js +1 -0
- package/esm/icons/components/KvdVenueIcon.js +1 -0
- package/esm/icons/components/LifebuoyIcon.js +1 -0
- package/esm/icons/components/LiftTruckIcon.js +1 -0
- package/esm/icons/components/LinkedInIcon.js +1 -0
- package/esm/icons/components/ListViewIcon.js +1 -0
- package/esm/icons/components/MailIcon.js +1 -0
- package/esm/icons/components/MinibusIcon.js +1 -0
- package/esm/icons/components/MinivanIcon.js +1 -0
- package/esm/icons/components/MobileIcon.js +1 -0
- package/esm/icons/components/MotorcycleIcon.js +1 -0
- package/esm/icons/components/MrfLogoIcon.js +1 -0
- package/esm/icons/components/NotFoundIcon.js +1 -0
- package/esm/icons/components/OverbidIcon.js +1 -0
- package/esm/icons/components/PdfIconIcon.js +1 -0
- package/esm/icons/components/PhoneIcon.js +1 -0
- package/esm/icons/components/PickUpIcon.js +1 -0
- package/esm/icons/components/PinIcon.js +1 -0
- package/esm/icons/components/PlayIcon.js +1 -0
- package/esm/icons/components/Pricetag.js +1 -0
- package/esm/icons/components/PricetagFilledKronaIcon.js +1 -0
- package/esm/icons/components/PrivateCarIcon.js +1 -0
- package/esm/icons/components/ProfileCircleIcon.js +1 -0
- package/esm/icons/components/ProfileIcon.js +1 -0
- package/esm/icons/components/RadioIcon.js +1 -0
- package/esm/icons/components/ReclamationIcon.js +1 -0
- package/esm/icons/components/ReleasingIcon.js +1 -0
- package/esm/icons/components/RemoveFilterIcon.js +1 -0
- package/esm/icons/components/ReservedPriceIcon.js +1 -0
- package/esm/icons/components/ResultIcon.js +1 -0
- package/esm/icons/components/SafePaymentIcon.js +1 -0
- package/esm/icons/components/SaleTagIcon.js +1 -0
- package/esm/icons/components/SearchCheckIcon.js +1 -0
- package/esm/icons/components/SearchIcon.js +1 -0
- package/esm/icons/components/SedanIcon.js +1 -0
- package/esm/icons/components/SellCarIcon.js +1 -0
- package/esm/icons/components/SellCarsIcon.js +1 -0
- package/esm/icons/components/ServiceIcon.js +1 -0
- package/esm/icons/components/ShareIcon.js +1 -0
- package/esm/icons/components/ShieldIcon.js +1 -0
- package/esm/icons/components/SignInIcon.js +1 -0
- package/esm/icons/components/SignOutIcon.js +1 -0
- package/esm/icons/components/SpeedMeterIcon.js +1 -0
- package/esm/icons/components/StarCircleIcon.js +1 -0
- package/esm/icons/components/StartIcon.js +1 -0
- package/esm/icons/components/StoreIcon.js +1 -0
- package/esm/icons/components/SuvIcon.js +1 -0
- package/esm/icons/components/SwedenFlag.js +1 -0
- package/esm/icons/components/TankIcon.js +1 -0
- package/esm/icons/components/TireIcon.js +1 -0
- package/esm/icons/components/TransportIcon.js +1 -0
- package/esm/icons/components/TrashcanIcon.js +1 -0
- package/esm/icons/components/TrophyIcon.js +1 -0
- package/esm/icons/components/TruckIcon.js +1 -0
- package/esm/icons/components/UmbrellaIcon.js +1 -0
- package/esm/icons/components/ValuationIcon.js +1 -0
- package/esm/icons/components/ValueIcon.js +1 -0
- package/esm/icons/components/WarningIcon.js +1 -0
- package/esm/icons/components/YoutubeIcon.js +1 -0
- package/esm/icons/components/index.js +1 -0
- package/esm/index.js +1 -0
- package/esm/shared/constants.js +1 -0
- package/esm/shared/helpers.js +1 -0
- package/esm/shared/helpers.spec.js +1 -0
- package/esm/shared/media-queries.js +1 -0
- package/esm/theme.js +1 -0
- package/esm/typography/BodyText/index.js +34 -0
- package/esm/typography/ButtonText/index.js +21 -0
- package/esm/typography/Heading/index.js +61 -0
- package/esm/utils/utils.js +9 -0
- package/package.json +20 -11
- package/{ColorCard.d.ts → types/ColorCard.d.ts} +0 -0
- package/{ElevationCard.d.ts → types/ElevationCard.d.ts} +0 -0
- package/{Interfaces.d.ts → types/Interfaces.d.ts} +0 -0
- package/{Types.d.ts → types/Types.d.ts} +0 -0
- package/{components → types/components}/Accordion/index.d.ts +0 -0
- package/{components → types/components}/Badge/index.d.ts +0 -0
- package/{components → types/components}/Button/index.d.ts +0 -0
- package/{components → types/components}/Card/index.d.ts +0 -0
- package/{components → types/components}/CheckBox/index.d.ts +0 -0
- package/{components → types/components}/Chip/index.d.ts +0 -0
- package/{components → types/components}/DayPicker/DayPickerNavBar.d.ts +0 -0
- package/{components → types/components}/DayPicker/index.d.ts +0 -1
- package/{components → types/components}/DayPicker/localeUtils.d.ts +0 -0
- package/types/components/DayPicker/style.d.ts +2 -0
- package/{components → types/components}/Dialog/index.d.ts +0 -0
- package/{components → types/components}/ErrorMessage/index.d.ts +0 -0
- package/{components → types/components}/FieldLabel.d.ts +1 -1
- package/{components → types/components}/Header/Hamburger.d.ts +0 -0
- package/{components → types/components}/Header/Link.d.ts +1 -1
- package/{components → types/components}/Header/index.d.ts +0 -0
- package/{components → types/components}/Hero/index.d.ts +0 -0
- package/{components → types/components}/Icon/index.d.ts +0 -0
- package/{components → types/components}/IconButton.d.ts +0 -0
- package/{components → types/components}/Icons/Arrow.d.ts +0 -0
- package/{components → types/components}/Icons/CheckCircle.d.ts +0 -0
- package/{components → types/components}/Icons/CheckIcon.d.ts +0 -0
- package/{components → types/components}/Icons/Close.d.ts +0 -0
- package/{components → types/components}/Icons/ErrorCircle.d.ts +0 -0
- package/{components → types/components}/Icons/InfoCircle.d.ts +0 -0
- package/{components → types/components}/InlineStepper/Step.d.ts +0 -0
- package/{components → types/components}/InlineStepper/StepCircle.d.ts +0 -0
- package/{components → types/components}/InlineStepper/index.d.ts +0 -0
- package/{components → types/components}/ListItem/Bacon.d.ts +0 -0
- package/{components → types/components}/ListItem/index.d.ts +0 -0
- package/{components → types/components}/Logo/LogoEn.d.ts +0 -0
- package/{components → types/components}/Logo/LogoSv.d.ts +0 -0
- package/{components → types/components}/Logo/index.d.ts +0 -0
- package/{components → types/components}/MenuItem/index.d.ts +1 -1
- package/{components → types/components}/Modal/index.d.ts +0 -0
- package/{components → types/components}/NotificationButton/index.d.ts +0 -0
- package/{components → types/components}/OffCanvas/Overlay.d.ts +0 -0
- package/{components → types/components}/OffCanvas/index.d.ts +0 -0
- package/{components → types/components}/OffCanvas/useClickOutside.d.ts +0 -0
- package/{components → types/components}/RadioButton/index.d.ts +0 -0
- package/{components → types/components}/Range/index.d.ts +0 -0
- package/types/components/Select/components/test-icon.d.ts +1 -0
- package/{components → types/components}/Select/index.d.ts +9 -8
- package/{components → types/components}/Snackbar/index.d.ts +0 -0
- package/{components → types/components}/Spinner/index.d.ts +0 -0
- package/{components → types/components}/Stepper/index.d.ts +0 -0
- package/{components → types/components}/StepperAccordion/index.d.ts +0 -0
- package/{components → types/components}/Tabs/index.d.ts +0 -0
- package/{components → types/components}/TextArea/index.d.ts +0 -0
- package/{components → types/components}/Textfield/index.d.ts +0 -0
- package/{components → types/components}/TimePicker/index.d.ts +0 -0
- package/{components → types/components}/TimePicker/testHelper.d.ts +0 -0
- package/{components → types/components}/Toggle/index.d.ts +0 -0
- package/{icons → types/icons}/components/AccountCreateIcon.d.ts +0 -0
- package/{icons → types/icons}/components/AccountIcon.d.ts +0 -0
- package/{icons → types/icons}/components/AccountLoginIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowDownIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowLeftIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowLeftSharpIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowLeftSmallIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowLong.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowRestartIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowRightIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowRightSharpIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowUpIcon.d.ts +0 -0
- package/{icons → types/icons}/components/AuctionIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BackArrowIcon.d.ts +0 -0
- package/{icons → types/icons}/components/Baseline360Icon.d.ts +0 -0
- package/{icons → types/icons}/components/BellIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BidIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BidKrIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BreaksIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BuyCarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CabIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CalendarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CameraIcon.d.ts +0 -0
- package/{icons → types/icons}/components/Car360Icon.d.ts +0 -0
- package/{icons → types/icons}/components/CarFrontIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CarSearchIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CarSideIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CarTiresIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CaravanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CardViewIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CarloanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CertifiedIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ChatIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CheckIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CheckThinIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CheckmarkFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CheckmarkIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ClipboardFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ClipboardIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ClockFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ClockIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CloseIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CloseThinIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CoffeeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CombiIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CommentCircleFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CommentCircleIconIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CommentIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ContactIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CoupeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CreditCardIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CrossCircleIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CrownIcon.d.ts +0 -0
- package/{icons → types/icons}/components/DealmakerIcon.d.ts +0 -0
- package/{icons → types/icons}/components/DeliveryIcon.d.ts +0 -0
- package/{icons → types/icons}/components/DetailedSearchIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EcoFriendlyIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EditIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EngineIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EnglandFlagIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EvaluationIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ExaminationMarkFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ExaminationMarkIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ExteriorIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EyeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FacebookBtnIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FacebookIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FatalIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FavouriteIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FavouriteSolidIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FilterIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FinanceIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FindCarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FixedMonthlyCostIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FlagIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FlexibilityIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ForumLargeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ForumSmallIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GavelIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GearboxIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GiftIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GridViewIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GroupIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GuaranteeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GuaranteeLargeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GuaranteeSmallIcon.d.ts +0 -0
- package/{icons → types/icons}/components/HalfCombiIcon.d.ts +0 -0
- package/{icons → types/icons}/components/HamburgerIcon.d.ts +0 -0
- package/{icons → types/icons}/components/HandshakeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/HelpingHandIcon.d.ts +0 -0
- package/{icons → types/icons}/components/IdIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InformationIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InstagramIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InsuranceIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InteriorIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InteriorThinIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InternationalIcon.d.ts +0 -0
- package/{icons → types/icons}/components/KvdTestIcon.d.ts +0 -0
- package/{icons → types/icons}/components/KvdVenueIcon.d.ts +0 -0
- package/{icons → types/icons}/components/LifebuoyIcon.d.ts +0 -0
- package/{icons → types/icons}/components/LiftTruckIcon.d.ts +0 -0
- package/{icons → types/icons}/components/LinkedInIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ListViewIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MailIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MinibusIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MinivanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MobileIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MotorcycleIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MrfLogoIcon.d.ts +0 -0
- package/{icons → types/icons}/components/NotFoundIcon.d.ts +0 -0
- package/{icons → types/icons}/components/OverbidIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PdfIconIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PhoneIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PickUpIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PinIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PlayIcon.d.ts +0 -0
- package/{icons → types/icons}/components/Pricetag.d.ts +0 -0
- package/{icons → types/icons}/components/PricetagFilledKronaIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PrivateCarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ProfileCircleIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ProfileIcon.d.ts +0 -0
- package/{icons → types/icons}/components/RadioIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ReclamationIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ReleasingIcon.d.ts +0 -0
- package/{icons → types/icons}/components/RemoveFilterIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ReservedPriceIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ResultIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SafePaymentIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SaleTagIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SearchCheckIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SearchIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SedanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SellCarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SellCarsIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ServiceIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ShareIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ShieldIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SignInIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SignOutIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SpeedMeterIcon.d.ts +0 -0
- package/{icons → types/icons}/components/StarCircleIcon.d.ts +0 -0
- package/{icons → types/icons}/components/StartIcon.d.ts +0 -0
- package/{icons → types/icons}/components/StoreIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SuvIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SwedenFlag.d.ts +0 -0
- package/{icons → types/icons}/components/TankIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TireIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TransportIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TrashcanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TrophyIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TruckIcon.d.ts +0 -0
- package/{icons → types/icons}/components/UmbrellaIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ValuationIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ValueIcon.d.ts +0 -0
- package/{icons → types/icons}/components/WarningIcon.d.ts +0 -0
- package/{icons → types/icons}/components/YoutubeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/index.d.ts +0 -0
- package/types/icons/template.d.ts +10 -0
- package/{index.d.ts → types/index.d.ts} +0 -0
- package/types/serviceWorker.d.ts +2 -0
- package/{setupTests.d.ts → types/setupTests.d.ts} +0 -0
- package/{shared → types/shared}/constants.d.ts +0 -0
- package/{shared → types/shared}/helpers.d.ts +0 -0
- package/{shared → types/shared}/media-queries.d.ts +0 -0
- package/{testUtils.d.ts → types/testUtils.d.ts} +0 -0
- package/{theme.d.ts → types/theme.d.ts} +0 -0
- package/{typography → types/typography}/BodyText/index.d.ts +0 -0
- package/{typography → types/typography}/ButtonText/index.d.ts +0 -0
- package/{typography → types/typography}/Heading/index.d.ts +0 -0
- package/{utils → types/utils}/utils.d.ts +0 -0
- package/kvdbil-components.css +0 -224
- package/kvdbil-components.js +0 -1495
- package/kvdbil-components.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e={mobileS:"320px",mobileM:"375px",mobileL:"425px",tablet:"768px",laptop:"1024px",laptopL:"1440px",laptopXL:"1680px",desktop:"2560px"},t={mobileS:o=>`(${o}-width: ${e.mobileS})`,mobileM:o=>`(${o}-width: ${e.mobileM})`,mobileL:o=>`(${o}-width: ${e.mobileL})`,tablet:o=>`(${o}-width: ${e.tablet})`,laptop:o=>`(${o}-width: ${e.laptop})`,laptopL:o=>`(${o}-width: ${e.laptopL})`,desktop:o=>`(${o}-width: ${e.desktop})`,desktopL:o=>`(${o}-width: ${e.desktop})`};exports.mediaQueries=t,exports.mq=(o,p)=>o&&p?`@media (min-width: ${e[o]}) and (max-width: ${e[p]})`:o?`@media (min-width: ${e[o]})`:p?`@media (max-width: ${e[p]})`:(console.error("Invalid use of mq. Available breakpoints are:",e),"@media screen"),exports.mqSizes=e;
|
package/cjs/theme.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default={typography:{fontBaseFamily:"'Open Sans', sans-serif",fontAlternativeFamily:"'Next Book', sans-serif",fontBaseRegularWeight:400,fontBaseBoldWeight:600,fontAlternativeRegularWeight:400,fontAlternativeBoldWeight:700},colors:{primary:{darker:"#d98500",dark:"#e8a100",main:"#f5b400",light:"#f7cf57",lighter:"#fce5ab",lighter2:"#fff7e5"},secondary:{darker:"#00474d",dark:"#007069",main:"#2a9d8f",light:"#6bb8a6",lighter:"#bae3cc",lighter2:"#e5f5ed"},tertiary:{darker:"#5e2636",dark:"#a63640",main:"#ef5b5b",light:"#f5968a",lighter:"#f5c7bf",lighter2:"#fcedeb"},info:{darker:"#17395d",dark:"#004773",main:"#007ab8",light:"#57c2ff",lighter:"#abe0ff",lighter2:"#e5f5ff"},success:{darker:"#175c36",dark:"#269940",main:"#59d771",light:"#91e5a1",lighter:"#c7f2cf",lighter2:"#edfaf0"},warning:{darker:"#d98500",dark:"#e8a100",main:"#f5b400",light:"#f7cf57",lighter:"#fce5ab",lighter2:"#fff7e5"},error:{darker:"#5e2636",dark:"#a63640",main:"#ef5b5b",light:"#f5968a",lighter:"#f5c7bf",lighter2:"#fcedeb"},neutral:{darker:"#1a2030",dark:"#1a2030",main:"#1a2030",light:"#474d59",lighter:"#5e6369",lighte2:"#707378"},text:{dark:"#1a2030",light:"#ffffff",disabled:"#5e6369"},background:{dark:"#1a2030",gray:"#f2f2f2",sand:"#f2efe6",light:"#ffffff"},common:{black:"#000000",white:"#ffffff",purple:{darker:"#42214f",dark:"#732e70",main:"#a13d8f",light:"#c27db5",lighter:"#e0bfd9",lighter2:"#f5edf2"}},gray:{dark1:"#1a2030",dark2:"#303842",dark3:"#474d59",dark4:"#5e6369",dark5:"#707378",light1:"#8c8f91",light2:"#a3a6a8",light3:"#c7c7c4",light4:"#d9d9d6",light5:"#e8e8e8",light6:"#f2f2f2"}},elevations:{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)",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)",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)",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)",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)"}};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components");function o(g){return g&&typeof g=="object"&&"default"in g?g:{default:g}}var i=o(e),r=o(t);const n=t.css`
|
|
2
|
+
font-family: ${({theme:g})=>g.typography.fontBaseFamily};
|
|
3
|
+
font-weight: ${({theme:g})=>g.typography.fontBaseRegularWeight};
|
|
4
|
+
`,a=r.default.p`
|
|
5
|
+
${n}
|
|
6
|
+
font-feature-settings: 'lnum' on;
|
|
7
|
+
`,s=r.default(a)`
|
|
8
|
+
font-family: Georgia, Cambria, Cochin, Times, 'Times New Roman', serif;
|
|
9
|
+
font-style: italic;
|
|
10
|
+
`,f=t.css`
|
|
11
|
+
${n}
|
|
12
|
+
font-size: 1rem;
|
|
13
|
+
line-height: 1.5rem;
|
|
14
|
+
`,l=r.default(a)`
|
|
15
|
+
font-size: 1rem;
|
|
16
|
+
line-height: 1.5rem;
|
|
17
|
+
`,p=r.default(l)`
|
|
18
|
+
font-weight: ${({theme:g})=>g.typography.fontBaseBoldWeight};
|
|
19
|
+
`,h=t.css`
|
|
20
|
+
${n}
|
|
21
|
+
font-size: 0.81rem;
|
|
22
|
+
line-height: 1.5rem;
|
|
23
|
+
`,m=r.default(a)`
|
|
24
|
+
font-size: 0.81rem;
|
|
25
|
+
line-height: 1.5rem;
|
|
26
|
+
`,y=r.default(m)`
|
|
27
|
+
font-weight: ${({theme:g})=>g.typography.fontBaseBoldWeight};
|
|
28
|
+
`,u=r.default(a)`
|
|
29
|
+
font-family: ${({theme:g})=>g.typography.fontAlternativeFamily};
|
|
30
|
+
font-size: 0.75rem;
|
|
31
|
+
line-height: 1.25rem;
|
|
32
|
+
font-weight: ${({theme:g})=>g.typography.fontAlternativeBoldWeight};
|
|
33
|
+
text-transform: uppercase;
|
|
34
|
+
`,d=()=>i.default.createElement("div",null);exports.BodyLink=p,exports.BodyText=l,exports.BodyTextStyle=f,exports.BodyTexts=d,exports.Caption=m,exports.CaptionLink=y,exports.CaptionStyle=h,exports.Quote=s,exports.Status=u,exports.StyledBodyText=a,exports.default=d;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components");function r(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var o=r(e),l=r(t);const n=t.css`
|
|
2
|
+
font-family: ${({theme:c})=>c.typography.fontAlternativeFamily};
|
|
3
|
+
font-weight: ${({theme:c})=>c.typography.fontAlternativeBoldWeight};
|
|
4
|
+
`,s=l.default.span`
|
|
5
|
+
${n}
|
|
6
|
+
`,a=t.css`
|
|
7
|
+
font-size: 1.25rem;
|
|
8
|
+
line-height: 1.25rem;
|
|
9
|
+
`,u=l.default(s)`
|
|
10
|
+
${a}
|
|
11
|
+
`,i=t.css`
|
|
12
|
+
font-size: 1rem;
|
|
13
|
+
line-height: 1rem;
|
|
14
|
+
`,f=l.default(s)`
|
|
15
|
+
${i}
|
|
16
|
+
`,p=t.css`
|
|
17
|
+
font-size: 0.81rem;
|
|
18
|
+
line-height: 0.81rem;
|
|
19
|
+
`,m=l.default(s)`
|
|
20
|
+
${p}
|
|
21
|
+
`;exports.BasicButtonTextStyle=n,exports.Button=f,exports.ButtonLarge=u,exports.ButtonLargeTextStyle=a,exports.ButtonRegularTextStyle=i,exports.ButtonSmall=m,exports.ButtonSmallTextStyle=p,exports.default=()=>o.default.createElement("div",null);
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components"),i=require("../../shared/media-queries.js");function r(y){return y&&typeof y=="object"&&"default"in y?y:{default:y}}var l=r(e),o=r(t);const n=o.default.p`
|
|
2
|
+
font-family: ${({theme:y})=>y.typography.fontAlternativeFamily};
|
|
3
|
+
font-weight: ${({theme:y})=>y.typography.fontAlternativeRegularWeight};
|
|
4
|
+
`,h=o.default(n)`
|
|
5
|
+
font-weight: ${({theme:y})=>y.typography.fontAlternativeBoldWeight};
|
|
6
|
+
`,a=o.default(h)`
|
|
7
|
+
font-size: 2rem;
|
|
8
|
+
line-height: 3rem;
|
|
9
|
+
|
|
10
|
+
${i.mq("laptop")} {
|
|
11
|
+
font-size: 3.75rem;
|
|
12
|
+
line-height: 4.5rem;
|
|
13
|
+
}
|
|
14
|
+
`,m=o.default(h)`
|
|
15
|
+
font-size: 1.81rem;
|
|
16
|
+
line-height: 2.5rem;
|
|
17
|
+
|
|
18
|
+
${i.mq("laptop")} {
|
|
19
|
+
font-size: 3rem;
|
|
20
|
+
line-height: 4rem;
|
|
21
|
+
}
|
|
22
|
+
`,f=o.default(h)`
|
|
23
|
+
font-size: 1.63rem;
|
|
24
|
+
line-height: 2.5rem;
|
|
25
|
+
|
|
26
|
+
${i.mq("laptop")} {
|
|
27
|
+
font-size: 2.5rem;
|
|
28
|
+
line-height: 3.5rem;
|
|
29
|
+
}
|
|
30
|
+
`,p=o.default(n)`
|
|
31
|
+
font-size: 1.44rem;
|
|
32
|
+
line-height: 2rem;
|
|
33
|
+
|
|
34
|
+
${i.mq("laptop")} {
|
|
35
|
+
font-size: 2rem;
|
|
36
|
+
line-height: 3rem;
|
|
37
|
+
}
|
|
38
|
+
`,s=o.default(n)`
|
|
39
|
+
font-size: 1.25rem;
|
|
40
|
+
line-height: 2rem;
|
|
41
|
+
|
|
42
|
+
${i.mq("laptop")} {
|
|
43
|
+
font-size: 1.56rem;
|
|
44
|
+
line-height: 2.5rem;
|
|
45
|
+
}
|
|
46
|
+
`,g=o.default(n)`
|
|
47
|
+
font-size: 1.125rem;
|
|
48
|
+
line-height: 2rem;
|
|
49
|
+
|
|
50
|
+
${i.mq("laptop")} {
|
|
51
|
+
font-size: 1.25rem;
|
|
52
|
+
}
|
|
53
|
+
`,u=o.default(n)`
|
|
54
|
+
font-size: 1rem;
|
|
55
|
+
line-height: 1.5rem;
|
|
56
|
+
font-weight: ${({theme:y})=>y.typography.fontAlternativeBoldWeight};
|
|
57
|
+
`,d=o.default(n)`
|
|
58
|
+
font-weight: ${({theme:y})=>y.typography.fontAlternativeBoldWeight};
|
|
59
|
+
font-size: 1rem;
|
|
60
|
+
line-height: 1.5rem;
|
|
61
|
+
`;exports.Display1=f,exports.Display2=m,exports.Display3=a,exports.Headline=p,exports.Rubric=d,exports.Subtitle=g,exports.TinyTitle=u,exports.Title=s,exports.default=()=>l.default.createElement("div",null);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=require("styled-components").css`
|
|
2
|
+
appearance: none;
|
|
3
|
+
background-color: transparent;
|
|
4
|
+
border: 0;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
font-family: inherit;
|
|
7
|
+
outline: none;
|
|
8
|
+
padding: 0;
|
|
9
|
+
`;exports.getLuminosity=r=>{let t=0,n=0,s=0;return r.length===4?(t=parseInt("0x"+r[1]+r[1]),n=parseInt("0x"+r[2]+r[2]),s=parseInt("0x"+r[3]+r[3])):r.length===7&&(t=parseInt("0x"+r[1]+r[2]),n=parseInt("0x"+r[3]+r[4]),s=parseInt("0x"+r[5]+r[6])),(Math.max(Number(t/255),Number(n/255),Number(s/255))+Math.min(Number(t/255),Number(n/255),Number(s/255)))/2*100},exports.resetButtonStyle=e;
|
package/esm/ColorCard.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import e from"react";import o from"styled-components";import{getLuminosity as i}from"./utils/utils.js";import a from"./theme.js";const m=o.ul`
|
|
2
|
+
padding-left: 2rem;
|
|
3
|
+
`,c=o.li`
|
|
4
|
+
list-style: none;
|
|
5
|
+
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.03);
|
|
6
|
+
border: 1px solid ${a.colors.gray.light2};
|
|
7
|
+
border-radius: 4px;
|
|
8
|
+
font-family: 'Ralway', sans-serif;
|
|
9
|
+
margin-top: 0.75rem;
|
|
10
|
+
`,n=o.span`
|
|
11
|
+
text-transform: capitalize;
|
|
12
|
+
padding: 0.5em;
|
|
13
|
+
display: block;
|
|
14
|
+
border-bottom: 1px solid ${a.colors.gray.light2};
|
|
15
|
+
`,d=o.li`
|
|
16
|
+
display: block;
|
|
17
|
+
background: ${({hex:t})=>t};
|
|
18
|
+
color: ${({hex:t})=>i(t)<40?"#fff":"#000"};
|
|
19
|
+
padding: 1em;
|
|
20
|
+
`,p=o.ul`
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: 0;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
`,s=t=>Object.entries(t).map(([r,l])=>typeof l=="string"?e.createElement(d,{hex:l,key:l},r," (",l,")"):e.createElement(e.Fragment,null,e.createElement(n,null,r),e.createElement(m,null,s(l)))),f=({colorName:t,variants:r})=>e.createElement(c,null,e.createElement(n,null,t),e.createElement(p,null,s(r)));export{f as default};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import o from"react";import i from"styled-components";const n=i.div`
|
|
2
|
+
font-family: ${({theme:t})=>t.typography.fontAlternativeFamily};
|
|
3
|
+
font-weight: ${({theme:t})=>t.typography.fontAlternativeRegularWeight};
|
|
4
|
+
font-size: 1.25rem;
|
|
5
|
+
box-shadow: ${({elevation:t})=>t};
|
|
6
|
+
width: 14rem;
|
|
7
|
+
height: 10rem;
|
|
8
|
+
margin: 1rem;
|
|
9
|
+
border-radius: 4px;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
`,a=({children:t,value:e,as:r="div"})=>o.createElement(n,{as:r,elevation:e},t);export{a as ElevationCard};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/esm/Types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import n,{useState as y}from"react";import r from"styled-components";import{UnmountClosed as g}from"react-collapse";import{mq as f}from"../../shared/media-queries.js";import h from"../../icons/components/ArrowDownIcon.js";const $=r.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
.ReactCollapse--collapse {
|
|
5
|
+
transition: height 300ms;
|
|
6
|
+
}
|
|
7
|
+
`,u=r.ul`
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0;
|
|
10
|
+
list-style: none;
|
|
11
|
+
`,w=r.div`
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
margin: 0.5rem 0;
|
|
17
|
+
`,b=r.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
align-items: center;
|
|
21
|
+
font-size: 0.75rem;
|
|
22
|
+
color: ${({theme:e})=>e.colors.text.dark};
|
|
23
|
+
transition: 200ms ease-in-out;
|
|
24
|
+
transform: ${({isOpen:e})=>`rotate(${e?"180deg":"0deg"})`};
|
|
25
|
+
`,E=r.li`
|
|
26
|
+
border-top: ${({theme:e})=>`1px solid ${e.colors.gray.light2}`};
|
|
27
|
+
padding: ${({isOpen:e})=>e?"0.5rem 0 1rem 0":"0.5rem 0"};
|
|
28
|
+
|
|
29
|
+
&:last-child {
|
|
30
|
+
border-bottom: ${({theme:e})=>`1px solid ${e.colors.gray.light2}`};
|
|
31
|
+
}
|
|
32
|
+
`,I=r.span`
|
|
33
|
+
color: ${({theme:e})=>e.colors.text.dark};
|
|
34
|
+
font-family: ${({theme:e})=>e.typography.fontBaseFamily};
|
|
35
|
+
font-size: 0.9375rem;
|
|
36
|
+
font-weight: ${({theme:e})=>e.typography.fontBaseBoldWeight};
|
|
37
|
+
`,k=r.div`
|
|
38
|
+
font-family: ${({theme:e})=>e.typography.fontBaseFamily};
|
|
39
|
+
color: ${({theme:e})=>e.colors.text.dark};
|
|
40
|
+
font-size: 0.9375rem;
|
|
41
|
+
font-weight: ${({theme:e})=>e.typography.fontBaseRegularWeight};
|
|
42
|
+
line-height: 1.3;
|
|
43
|
+
transition: 200ms ease-in-out;
|
|
44
|
+
${f("tablet")} {
|
|
45
|
+
padding: 0;
|
|
46
|
+
}
|
|
47
|
+
& > * {
|
|
48
|
+
margin-top: 0;
|
|
49
|
+
margin-bottom: 0;
|
|
50
|
+
}
|
|
51
|
+
`,l=({items:e,...i})=>{const[c,m]=y({}),s=o=>{m(t=>({...t,[o]:!t[o]}))},p=o=>()=>{s(o)},d=o=>t=>{t.key==="Enter"&&s(o)};return n.createElement($,{...i},n.createElement(u,{className:"accordionList"},e.map((o,t)=>{const a=Boolean(c[t]);return n.createElement(E,{key:o.title,isOpen:a,className:"accordionItem"},n.createElement(w,{onClick:p(t),onKeyPress:d(t),className:"accordionItemTitle",role:"button",tabIndex:0,"aria-expanded":a,id:`panel${t}-header`,"aria-controls":`panel${t}-content`},n.createElement(I,{as:"span"},o.title),n.createElement(b,{isOpen:a},n.createElement(h,null))),n.createElement(g,{isOpened:a,key:t},n.createElement(k,{"aria-labelledby":`panel${t}-header`,id:`panel${t}-content`,role:"region",className:"wysiwyg",dangerouslySetInnerHTML:{__html:o.text}})))})))};export{l as Accordion,l as default};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import t from"react";import r from"styled-components";import a from"../../theme.js";const i=r.div`
|
|
2
|
+
border-radius: 0.75rem;
|
|
3
|
+
background: ${a.colors.secondary.main};
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
padding: 0.5rem;
|
|
8
|
+
min-width: 1.5rem;
|
|
9
|
+
height: 1.5rem;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
cursor: default;
|
|
12
|
+
`,s=r(i)`
|
|
13
|
+
width: 1rem;
|
|
14
|
+
height: 1rem;
|
|
15
|
+
border-radius: 50%;
|
|
16
|
+
min-width: 1rem;
|
|
17
|
+
position: relative;
|
|
18
|
+
`,m=r.div`
|
|
19
|
+
display: block;
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: 100%;
|
|
22
|
+
border-radius: 50%;
|
|
23
|
+
opacity: 0.1;
|
|
24
|
+
transform: scale(0.5);
|
|
25
|
+
background: ${a.colors.text.dark};
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 0;
|
|
28
|
+
left: 0;
|
|
29
|
+
`,c=r.span`
|
|
30
|
+
font-size: 0.75rem;
|
|
31
|
+
line-height: 0.75rem;
|
|
32
|
+
color: white;
|
|
33
|
+
font-weight: ${({theme:e})=>e.typography.fontAlternativeBoldWeight};
|
|
34
|
+
font-family: ${({theme:e})=>e.typography.fontAlternativeFamily};
|
|
35
|
+
`,h=e=>e>=100?"99+":`${e}`,l=({notificationAmount:e=0,withNumber:o=!0,...n})=>{if((e<=0||!e)&&o)return null;if(!o)return t.createElement(s,{...n},t.createElement(m,{"data-test":"middle-dot"}));const d=h(e);return t.createElement(i,{...n},t.createElement(c,null,d))};export{l as Badge,l as default};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import n from"react";import e,{css as c}from"styled-components";import u from"../../theme.js";import $ from"../Spinner/index.js";import{BasicButtonTextStyle as g,ButtonRegularTextStyle as a,ButtonLargeTextStyle as b,ButtonSmallTextStyle as f}from"../../typography/ButtonText/index.js";const y=o=>{switch(o){case"smaller":return f;case"small":return a;case"regular":return a;case"large":return b;default:return a}},S=o=>`
|
|
2
|
+
min-width: 76px;
|
|
3
|
+
padding: ${o?"7px 10px 5.5px":"10px 10px 8px"};
|
|
4
|
+
`,k=o=>`
|
|
5
|
+
min-width: 76px;
|
|
6
|
+
padding: ${o?"8px 10px 6px":"11px 10px 9px"};
|
|
7
|
+
`,m=o=>`
|
|
8
|
+
min-width: 250px;
|
|
9
|
+
padding: ${o?"7px 22px 5px":"15px 22px 13px"};
|
|
10
|
+
`,w=o=>`
|
|
11
|
+
min-width: 250px;
|
|
12
|
+
padding: ${o?"9px 22px 6px":"21px 22px 19px"};
|
|
13
|
+
`,h=o=>r=>`
|
|
14
|
+
color: white;
|
|
15
|
+
border-color: ${o.colors[r].main};
|
|
16
|
+
background-color: ${o.colors[r].main};
|
|
17
|
+
|
|
18
|
+
:hover {
|
|
19
|
+
border-color: ${o.colors[r].light};
|
|
20
|
+
background-color: ${o.colors[r].light};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:active {
|
|
24
|
+
border-color: ${o.colors[r].dark};
|
|
25
|
+
background-color: ${o.colors[r].dark}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:focus {
|
|
29
|
+
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 2px ${o.colors[r].dark};
|
|
30
|
+
}
|
|
31
|
+
`,B=o=>r=>`
|
|
32
|
+
color: ${o.colors[r].main};
|
|
33
|
+
border-color: ${o.colors[r].main};
|
|
34
|
+
background-color: transparent;
|
|
35
|
+
|
|
36
|
+
:hover {
|
|
37
|
+
color: white;
|
|
38
|
+
border-color: ${o.colors[r].light};
|
|
39
|
+
background-color: ${o.colors[r].light};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:active {
|
|
43
|
+
color: white;
|
|
44
|
+
border-color: ${o.colors[r].dark};
|
|
45
|
+
background-color: ${o.colors[r].dark};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:focus {
|
|
49
|
+
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 2px ${o.colors[r].dark};
|
|
50
|
+
}
|
|
51
|
+
`,C=o=>r=>`
|
|
52
|
+
color: ${o.colors[r].main};
|
|
53
|
+
border-color: transparent;
|
|
54
|
+
background-color: transparent;
|
|
55
|
+
|
|
56
|
+
:hover {
|
|
57
|
+
color: ${o.colors[r].dark};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:active {
|
|
61
|
+
color: ${o.colors[r].light};
|
|
62
|
+
}
|
|
63
|
+
`,T=o=>`
|
|
64
|
+
background-color: ${o.colors.gray.light4};
|
|
65
|
+
border-color: ${o.colors.gray.light4};
|
|
66
|
+
color: ${o.colors.gray.light1};
|
|
67
|
+
cursor: not-allowed;
|
|
68
|
+
`,j=o=>`
|
|
69
|
+
border-color: transparent;
|
|
70
|
+
background-color: transparent;
|
|
71
|
+
color: ${o.colors.gray.light1};
|
|
72
|
+
cursor: not-allowed;
|
|
73
|
+
`,v=e.button`
|
|
74
|
+
outline: none;
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
user-select: none;
|
|
77
|
+
position: relative;
|
|
78
|
+
white-space: nowrap;
|
|
79
|
+
border: 2px solid transparent;
|
|
80
|
+
border-radius: 3px;
|
|
81
|
+
width: ${({fullWidth:o})=>o&&"100%"};
|
|
82
|
+
|
|
83
|
+
${g}
|
|
84
|
+
${({size:o})=>y(o)}
|
|
85
|
+
${({size:o,isLoading:r})=>c`
|
|
86
|
+
${o==="smaller"&&S(r)}
|
|
87
|
+
${o==="small"&&k(r)}
|
|
88
|
+
${o==="regular"&&m(r)}
|
|
89
|
+
${o==="large"&&w(r)}
|
|
90
|
+
`}
|
|
91
|
+
background-color: transparent;
|
|
92
|
+
transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease;
|
|
93
|
+
${({variant:o,color:r,disabled:l,theme:t})=>c`
|
|
94
|
+
${!l&&o==="solid"&&h(t)(r)}
|
|
95
|
+
${!l&&o==="outline"&&B(t)(r)}
|
|
96
|
+
${!l&&o==="flat"&&C(t)(r)}
|
|
97
|
+
${l&&o!=="flat"&&T(t)}
|
|
98
|
+
${l&&o==="flat"&&j(t)}
|
|
99
|
+
`}
|
|
100
|
+
`,R=e($)``,z={smaller:1,small:1,regular:1.5,large:1.75},p=({size:o="small",color:r="primary",variant:l="solid",fullWidth:t=!1,isDisabled:x=!1,isLoading:s=!1,children:d,...i})=>n.createElement(v,{...i,color:r,disabled:x||s,fullWidth:t,theme:u,variant:l,size:o,isLoading:s},s?n.createElement(R,{color:"neutral",size:z[o]}):d);export{p as Button,p as default};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import e from"react";import t from"styled-components";import a from"../../theme.js";const d=t.div`
|
|
2
|
+
background: ${a.colors.background.light};
|
|
3
|
+
${({boxShadow:r})=>r&&`box-shadow: ${r};`}
|
|
4
|
+
${({boxShadow:r})=>!r&&`box-shadow: 0 2px 4px rgba(0, 0, 0, 10%), 0 2px 4px rgba(0, 0, 0, 9%),
|
|
5
|
+
0 1px 5px rgba(0, 0, 0, 15%);`}
|
|
6
|
+
border-radius: 0 0 3px 3px;
|
|
7
|
+
${({topBorder:r})=>r&&`border-top: 4px solid ${r};`}
|
|
8
|
+
`,o=({...r})=>e.createElement(d,{topBorder:r.topBorder,boxShadow:r.boxShadow},r.children);export{o as Card,o as default};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import r from"react";import l,{css as t}from"styled-components";import{generateNameHash as p}from"../../shared/helpers.js";import o from"../../theme.js";import g from"../IconButton.js";import m from"../Icons/CheckIcon.js";const x=t`
|
|
2
|
+
width: 24px;
|
|
3
|
+
height: 24px;
|
|
4
|
+
|
|
5
|
+
svg {
|
|
6
|
+
width: 15px;
|
|
7
|
+
height: 15px;
|
|
8
|
+
}
|
|
9
|
+
`,b=t`
|
|
10
|
+
width: 32px;
|
|
11
|
+
height: 32px;
|
|
12
|
+
|
|
13
|
+
svg {
|
|
14
|
+
width: 20px;
|
|
15
|
+
height: 20px;
|
|
16
|
+
}
|
|
17
|
+
`,f={regular:x,large:b},u=t`
|
|
18
|
+
cursor: default;
|
|
19
|
+
border: 2px solid ${o.colors.gray.light1};
|
|
20
|
+
`,y=e=>t`
|
|
21
|
+
svg {
|
|
22
|
+
fill: #fefefe;
|
|
23
|
+
opacity: 1;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:hover {
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
background: ${o.colors[e].main};
|
|
30
|
+
border: 2px solid ${o.colors[e].main};
|
|
31
|
+
`,k=t`
|
|
32
|
+
background: ${o.colors.gray.light1};
|
|
33
|
+
`,$=l.input.attrs({type:"checkbox"})`
|
|
34
|
+
display: none;
|
|
35
|
+
`,v=l.label`
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
display: flex;
|
|
39
|
+
position: relative;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
|
|
43
|
+
border: 2px solid ${o.colors.gray.light1};
|
|
44
|
+
border-radius: 3px;
|
|
45
|
+
|
|
46
|
+
${e=>f[e.size]};
|
|
47
|
+
|
|
48
|
+
svg {
|
|
49
|
+
opacity: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
${e=>e.isChecked&&y(e.color)};
|
|
53
|
+
${e=>e.isDisabled&&u};
|
|
54
|
+
|
|
55
|
+
${e=>e.isChecked&&e.isDisabled&&k};
|
|
56
|
+
`,a=({name:e=p("check-box"),isDisabled:s=!1,size:d="regular",checked:c,color:i="secondary",onClick:n,...h})=>r.createElement(g,{onClick:n,isActive:c,isDisabled:s,color:i},r.createElement($,{...h,"data-validate":"checked",name:e,id:e,disabled:s}),r.createElement(v,{htmlFor:e,size:d,color:i,isChecked:c,isDisabled:s},r.createElement(m,null)));export{a as CheckBox,a as default};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import a from"react";import s from"styled-components";import{fadedColor as g}from"../../shared/helpers.js";import t from"../../theme.js";const u=({isDisabled:e,isActive:r,activeColor:o})=>r&&e?g(t.colors[o].main,.5):e?t.colors.gray.light4:r?t.colors[o].main:"transparent",h=({isActive:e,isDisabled:r})=>e||e&&r?t.colors.text.light:r?t.colors.text.disabled:t.colors.text.dark,y=(e="smaller")=>({smaller:"0.8125rem",small:"1rem",regular:"1rem",large:"1.25rem"})[e],x=s.div`
|
|
2
|
+
font-family: ${({theme:e})=>e.typography.fontAlternativeFamily};
|
|
3
|
+
font-size: ${({size:e})=>y(e)};
|
|
4
|
+
font-weight: ${({theme:e})=>e.typography.fontAlternativeBoldWeight};
|
|
5
|
+
line-height: 1.25;
|
|
6
|
+
letter-spacing: 0.1px;
|
|
7
|
+
display: inline-block;
|
|
8
|
+
cursor: ${({isDisabled:e})=>e?"auto":"pointer"};
|
|
9
|
+
align-items: center;
|
|
10
|
+
background: ${u};
|
|
11
|
+
color: ${h};
|
|
12
|
+
justify-content: center;
|
|
13
|
+
border-width: 1px;
|
|
14
|
+
border-style: solid;
|
|
15
|
+
border-color: ${({isActive:e,isDisabled:r})=>!e&&!r?t.colors.background.dark:"transparent"};
|
|
16
|
+
border-radius: 1.293rem;
|
|
17
|
+
`,k=s.span`
|
|
18
|
+
padding: 0.5rem 1rem;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
text-align: center;
|
|
23
|
+
`,i=({activeColor:e="primary",children:r,component:o="div",isActive:c,isDisabled:n,onClick:l,size:m,...d})=>{const p=f=>{!n&&l&&l(f)};return a.createElement(x,{...d,as:o,activeColor:e,isDisabled:n,isActive:c,size:m},a.createElement(k,{onClick:p},r))};export{i as Chip,i as default};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import t from"react";import e from"styled-components";import s from"../Icons/Arrow.js";import r from"../../theme.js";import{BodyText as m}from"../../typography/BodyText/index.js";import{formatMonthTitle as p}from"./localeUtils.js";const d=e.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
`,f=e(m)`
|
|
5
|
+
color: ${r.colors.text.dark};
|
|
6
|
+
`,o=e.button`
|
|
7
|
+
appearance: none;
|
|
8
|
+
background-color: transparent;
|
|
9
|
+
border: 0;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
font-family: inherit;
|
|
12
|
+
outline: none;
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
`,n=e(s)`
|
|
16
|
+
width: 16px;
|
|
17
|
+
height: 16px;
|
|
18
|
+
fill: ${r.colors.gray.dark3};
|
|
19
|
+
`,y=e(n)`
|
|
20
|
+
transform: rotate(90deg);
|
|
21
|
+
`,h=e(n)`
|
|
22
|
+
transform: rotate(-90deg);
|
|
23
|
+
`,x=({month:a,onPreviousClick:l,onNextClick:c,locale:i})=>t.createElement(d,null,t.createElement(o,{onClick:()=>l()},t.createElement(y,{title:"prev-month"})),t.createElement(f,{as:"h3"},p(a,i)),t.createElement(o,{onClick:()=>c()},t.createElement(h,{title:"next-month"})));export{x as default};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import t from"react";import c from"react-day-picker";import n from"styled-components";import r from"../../theme.js";import s from"./DayPickerNavBar.js";import{MONTHS as y,WEEKDAYS_LONG as l,WEEKDAYS_SHORT as m,FIRST_DAY_OF_THE_WEEK as d}from"./localeUtils.js";import p from"./style.js";import"../Icons/Arrow.js";import"../../typography/BodyText/index.js";const k=n.div`
|
|
2
|
+
${p}
|
|
3
|
+
|
|
4
|
+
font-family: ${({theme:e})=>e.typography.fontAlternativeFamily};
|
|
5
|
+
.DayPicker-wrapper {
|
|
6
|
+
&:focus {
|
|
7
|
+
outline: none;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
.DayPicker-Weekday {
|
|
11
|
+
color: ${({theme:e})=>e.colors.gray.light1};
|
|
12
|
+
}
|
|
13
|
+
.DayPicker-Day {
|
|
14
|
+
font-size: 12px;
|
|
15
|
+
padding: 14px;
|
|
16
|
+
font-weight: ${({theme:e})=>e.typography.fontAlternativeBoldWeight};
|
|
17
|
+
color: ${({theme:e})=>e.colors.text.dark};
|
|
18
|
+
&:focus {
|
|
19
|
+
outline: none;
|
|
20
|
+
box-shadow: 0 0 4px ${r.colors.gray.dark3};
|
|
21
|
+
}
|
|
22
|
+
&:not(.DayPicker--interactionDisabled):not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside) {
|
|
23
|
+
&:focus {
|
|
24
|
+
box-shadow: 0 0 4px ${r.colors.gray.dark3};
|
|
25
|
+
}
|
|
26
|
+
&:hover {
|
|
27
|
+
background-color: rgba(253, 171, 74, 0.25);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
&.DayPicker-Day--disabled {
|
|
31
|
+
color: ${r.colors.gray.dark3};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
`,D={selected:{color:r.colors.text.light,background:r.colors.primary.main,fontWeight:700}},o=({locale:e="sv",...a})=>t.createElement(k,null,t.createElement(c,{...a,locale:e,months:y[e],weekdaysLong:l[e],weekdaysShort:m[e],firstDayOfWeek:d[e],navbarElement:i=>t.createElement(s,{...i,locale:e}),captionElement:t.createElement("div",null),modifiersStyles:D}));export{o as DayPicker,o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const r={sv:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],en:["January","February","March","April","May","June","July","August","September","October","November","December"]},n={sv:["S\xF6ndag","M\xE5ndag","Tisdag","Onsdag","Torsdag","Fredag","L\xF6rdag"],en:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t={sv:["S\xF6","M\xE5","Ti","On","To","Fr","L\xF6"],en:["Su","Mo","Tu","We","Th","Fr","Sa"]},u={sv:1,en:1},s=(e,a="sv")=>`${r[a][e.getMonth()]} ${e.getFullYear()}`;export{u as FIRST_DAY_OF_THE_WEEK,r as MONTHS,n as WEEKDAYS_LONG,t as WEEKDAYS_SHORT,s as formatMonthTitle};
|