@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
package/cjs/ColorCard.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components"),l=require("./utils/utils.js"),a=require("./theme.js");function r(m){return m&&typeof m=="object"&&"default"in m?m:{default:m}}var d=r(e),n=r(t);const u=n.default.ul`
|
|
2
|
+
padding-left: 2rem;
|
|
3
|
+
`,i=n.default.li`
|
|
4
|
+
list-style: none;
|
|
5
|
+
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.03);
|
|
6
|
+
border: 1px solid ${a.default.colors.gray.light2};
|
|
7
|
+
border-radius: 4px;
|
|
8
|
+
font-family: 'Ralway', sans-serif;
|
|
9
|
+
margin-top: 0.75rem;
|
|
10
|
+
`,o=n.default.span`
|
|
11
|
+
text-transform: capitalize;
|
|
12
|
+
padding: 0.5em;
|
|
13
|
+
display: block;
|
|
14
|
+
border-bottom: 1px solid ${a.default.colors.gray.light2};
|
|
15
|
+
`,f=n.default.li`
|
|
16
|
+
display: block;
|
|
17
|
+
background: ${({hex:m})=>m};
|
|
18
|
+
color: ${({hex:m})=>l.getLuminosity(m)<40?"#fff":"#000"};
|
|
19
|
+
padding: 1em;
|
|
20
|
+
`,s=n.default.ul`
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: 0;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
`,c=m=>Object.entries(m).map(([g,p])=>typeof p=="string"?d.default.createElement(f,{hex:p,key:p},g," (",p,")"):d.default.createElement(d.default.Fragment,null,d.default.createElement(o,null,g),d.default.createElement(u,null,c(p))));exports.default=({colorName:m,variants:g})=>d.default.createElement(i,null,d.default.createElement(o,null,m),d.default.createElement(s,null,c(g)));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components");function r(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var a=r(e);const i=r(t).default.div`
|
|
2
|
+
font-family: ${({theme:n})=>n.typography.fontAlternativeFamily};
|
|
3
|
+
font-weight: ${({theme:n})=>n.typography.fontAlternativeRegularWeight};
|
|
4
|
+
font-size: 1.25rem;
|
|
5
|
+
box-shadow: ${({elevation:n})=>n};
|
|
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
|
+
`;exports.ElevationCard=({children:n,value:o,as:l="div"})=>a.default.createElement(i,{as:l,elevation:o},n);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/cjs/Types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components"),a=require("react-collapse"),o=require("../../shared/media-queries.js"),r=require("../../icons/components/ArrowDownIcon.js");function n(g){return g&&typeof g=="object"&&"default"in g?g:{default:g}}var l=n(e),i=n(t);const s=i.default.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
.ReactCollapse--collapse {
|
|
5
|
+
transition: height 300ms;
|
|
6
|
+
}
|
|
7
|
+
`,d=i.default.ul`
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0;
|
|
10
|
+
list-style: none;
|
|
11
|
+
`,c=i.default.div`
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
margin: 0.5rem 0;
|
|
17
|
+
`,m=i.default.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
align-items: center;
|
|
21
|
+
font-size: 0.75rem;
|
|
22
|
+
color: ${({theme:g})=>g.colors.text.dark};
|
|
23
|
+
transition: 200ms ease-in-out;
|
|
24
|
+
transform: ${({isOpen:g})=>`rotate(${g?"180deg":"0deg"})`};
|
|
25
|
+
`,u=i.default.li`
|
|
26
|
+
border-top: ${({theme:g})=>`1px solid ${g.colors.gray.light2}`};
|
|
27
|
+
padding: ${({isOpen:g})=>g?"0.5rem 0 1rem 0":"0.5rem 0"};
|
|
28
|
+
|
|
29
|
+
&:last-child {
|
|
30
|
+
border-bottom: ${({theme:g})=>`1px solid ${g.colors.gray.light2}`};
|
|
31
|
+
}
|
|
32
|
+
`,f=i.default.span`
|
|
33
|
+
color: ${({theme:g})=>g.colors.text.dark};
|
|
34
|
+
font-family: ${({theme:g})=>g.typography.fontBaseFamily};
|
|
35
|
+
font-size: 0.9375rem;
|
|
36
|
+
font-weight: ${({theme:g})=>g.typography.fontBaseBoldWeight};
|
|
37
|
+
`,p=i.default.div`
|
|
38
|
+
font-family: ${({theme:g})=>g.typography.fontBaseFamily};
|
|
39
|
+
color: ${({theme:g})=>g.colors.text.dark};
|
|
40
|
+
font-size: 0.9375rem;
|
|
41
|
+
font-weight: ${({theme:g})=>g.typography.fontBaseRegularWeight};
|
|
42
|
+
line-height: 1.3;
|
|
43
|
+
transition: 200ms ease-in-out;
|
|
44
|
+
${o.mq("tablet")} {
|
|
45
|
+
padding: 0;
|
|
46
|
+
}
|
|
47
|
+
& > * {
|
|
48
|
+
margin-top: 0;
|
|
49
|
+
margin-bottom: 0;
|
|
50
|
+
}
|
|
51
|
+
`,y=({items:g,...E})=>{const[w,k]=e.useState({}),b=$=>{k(h=>({...h,[$]:!h[$]}))},q=$=>()=>{b($)},v=$=>h=>{h.key==="Enter"&&b($)};return l.default.createElement(s,{...E},l.default.createElement(d,{className:"accordionList"},g.map(($,h)=>{const x=Boolean(w[h]);return l.default.createElement(u,{key:$.title,isOpen:x,className:"accordionItem"},l.default.createElement(c,{onClick:q(h),onKeyPress:v(h),className:"accordionItemTitle",role:"button",tabIndex:0,"aria-expanded":x,id:`panel${h}-header`,"aria-controls":`panel${h}-content`},l.default.createElement(f,{as:"span"},$.title),l.default.createElement(m,{isOpen:x},l.default.createElement(r.default,null))),l.default.createElement(a.UnmountClosed,{isOpened:x,key:h},l.default.createElement(p,{"aria-labelledby":`panel${h}-header`,id:`panel${h}-content`,role:"region",className:"wysiwyg",dangerouslySetInnerHTML:{__html:$.text}})))})))};exports.Accordion=y,exports.default=y;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components"),r=require("../../theme.js");function i(f){return f&&typeof f=="object"&&"default"in f?f:{default:f}}var a=i(e),o=i(t);const n=o.default.div`
|
|
2
|
+
border-radius: 0.75rem;
|
|
3
|
+
background: ${r.default.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
|
+
`,l=o.default(n)`
|
|
13
|
+
width: 1rem;
|
|
14
|
+
height: 1rem;
|
|
15
|
+
border-radius: 50%;
|
|
16
|
+
min-width: 1rem;
|
|
17
|
+
position: relative;
|
|
18
|
+
`,d=o.default.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: ${r.default.colors.text.dark};
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 0;
|
|
28
|
+
left: 0;
|
|
29
|
+
`,u=o.default.span`
|
|
30
|
+
font-size: 0.75rem;
|
|
31
|
+
line-height: 0.75rem;
|
|
32
|
+
color: white;
|
|
33
|
+
font-weight: ${({theme:f})=>f.typography.fontAlternativeBoldWeight};
|
|
34
|
+
font-family: ${({theme:f})=>f.typography.fontAlternativeFamily};
|
|
35
|
+
`,s=({notificationAmount:f=0,withNumber:m=!0,...c})=>{if((f<=0||!f)&&m)return null;if(!m)return a.default.createElement(l,{...c},a.default.createElement(d,{"data-test":"middle-dot"}));const p=(h=>h>=100?"99+":`${h}`)(f);return a.default.createElement(n,{...c},a.default.createElement(u,null,p))};exports.Badge=s,exports.default=s;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("react"),o=require("styled-components"),n=require("../../theme.js"),e=require("../Spinner/index.js"),l=require("../../typography/ButtonText/index.js");function t(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}var a=t(r),c=t(o);const s=c.default.button`
|
|
2
|
+
outline: none;
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
user-select: none;
|
|
5
|
+
position: relative;
|
|
6
|
+
white-space: nowrap;
|
|
7
|
+
border: 2px solid transparent;
|
|
8
|
+
border-radius: 3px;
|
|
9
|
+
width: ${({fullWidth:x})=>x&&"100%"};
|
|
10
|
+
|
|
11
|
+
${l.BasicButtonTextStyle}
|
|
12
|
+
${({size:x})=>(h=>{switch(h){case"smaller":return l.ButtonSmallTextStyle;case"small":case"regular":return l.ButtonRegularTextStyle;case"large":return l.ButtonLargeTextStyle;default:return l.ButtonRegularTextStyle}})(x)}
|
|
13
|
+
${({size:x,isLoading:h})=>o.css`
|
|
14
|
+
${x==="smaller"&&($=>`
|
|
15
|
+
min-width: 76px;
|
|
16
|
+
padding: ${$?"7px 10px 5.5px":"10px 10px 8px"};
|
|
17
|
+
`)(h)}
|
|
18
|
+
${x==="small"&&($=>`
|
|
19
|
+
min-width: 76px;
|
|
20
|
+
padding: ${$?"8px 10px 6px":"11px 10px 9px"};
|
|
21
|
+
`)(h)}
|
|
22
|
+
${x==="regular"&&($=>`
|
|
23
|
+
min-width: 250px;
|
|
24
|
+
padding: ${$?"7px 22px 5px":"15px 22px 13px"};
|
|
25
|
+
`)(h)}
|
|
26
|
+
${x==="large"&&($=>`
|
|
27
|
+
min-width: 250px;
|
|
28
|
+
padding: ${$?"9px 22px 6px":"21px 22px 19px"};
|
|
29
|
+
`)(h)}
|
|
30
|
+
`}
|
|
31
|
+
background-color: transparent;
|
|
32
|
+
transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease;
|
|
33
|
+
${({variant:x,color:h,disabled:$,theme:b})=>o.css`
|
|
34
|
+
${!$&&x==="solid"&&(u=>g=>`
|
|
35
|
+
color: white;
|
|
36
|
+
border-color: ${u.colors[g].main};
|
|
37
|
+
background-color: ${u.colors[g].main};
|
|
38
|
+
|
|
39
|
+
:hover {
|
|
40
|
+
border-color: ${u.colors[g].light};
|
|
41
|
+
background-color: ${u.colors[g].light};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:active {
|
|
45
|
+
border-color: ${u.colors[g].dark};
|
|
46
|
+
background-color: ${u.colors[g].dark}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:focus {
|
|
50
|
+
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 2px ${u.colors[g].dark};
|
|
51
|
+
}
|
|
52
|
+
`)(b)(h)}
|
|
53
|
+
${!$&&x==="outline"&&(u=>g=>`
|
|
54
|
+
color: ${u.colors[g].main};
|
|
55
|
+
border-color: ${u.colors[g].main};
|
|
56
|
+
background-color: transparent;
|
|
57
|
+
|
|
58
|
+
:hover {
|
|
59
|
+
color: white;
|
|
60
|
+
border-color: ${u.colors[g].light};
|
|
61
|
+
background-color: ${u.colors[g].light};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:active {
|
|
65
|
+
color: white;
|
|
66
|
+
border-color: ${u.colors[g].dark};
|
|
67
|
+
background-color: ${u.colors[g].dark};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:focus {
|
|
71
|
+
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 2px ${u.colors[g].dark};
|
|
72
|
+
}
|
|
73
|
+
`)(b)(h)}
|
|
74
|
+
${!$&&x==="flat"&&(u=>g=>`
|
|
75
|
+
color: ${u.colors[g].main};
|
|
76
|
+
border-color: transparent;
|
|
77
|
+
background-color: transparent;
|
|
78
|
+
|
|
79
|
+
:hover {
|
|
80
|
+
color: ${u.colors[g].dark};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:active {
|
|
84
|
+
color: ${u.colors[g].light};
|
|
85
|
+
}
|
|
86
|
+
`)(b)(h)}
|
|
87
|
+
${$&&x!=="flat"&&(u=>`
|
|
88
|
+
background-color: ${u.colors.gray.light4};
|
|
89
|
+
border-color: ${u.colors.gray.light4};
|
|
90
|
+
color: ${u.colors.gray.light1};
|
|
91
|
+
cursor: not-allowed;
|
|
92
|
+
`)(b)}
|
|
93
|
+
${$&&x==="flat"&&(u=>`
|
|
94
|
+
border-color: transparent;
|
|
95
|
+
background-color: transparent;
|
|
96
|
+
color: ${u.colors.gray.light1};
|
|
97
|
+
cursor: not-allowed;
|
|
98
|
+
`)(b)}
|
|
99
|
+
`}
|
|
100
|
+
`,i=c.default(e.default)``,d={smaller:1,small:1,regular:1.5,large:1.75},p=({size:x="small",color:h="primary",variant:$="solid",fullWidth:b=!1,isDisabled:u=!1,isLoading:g=!1,children:f,...m})=>a.default.createElement(s,{...m,color:h,disabled:u||g,fullWidth:b,theme:n.default,variant:$,size:x,isLoading:g},g?a.default.createElement(i,{color:"neutral",size:d[x]}):f);exports.Button=p,exports.default=p;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),o=require("styled-components"),r=require("../../theme.js");function t(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}var d=t(e);const a=t(o).default.div`
|
|
2
|
+
background: ${r.default.colors.background.light};
|
|
3
|
+
${({boxShadow:x})=>x&&`box-shadow: ${x};`}
|
|
4
|
+
${({boxShadow:x})=>!x&&`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:x})=>x&&`border-top: 4px solid ${x};`}
|
|
8
|
+
`,p=({...x})=>d.default.createElement(a,{topBorder:x.topBorder,boxShadow:x.boxShadow},x.children);exports.Card=p,exports.default=p;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("styled-components"),t=require("../../shared/helpers.js"),s=require("../../theme.js"),i=require("../IconButton.js"),l=require("../Icons/CheckIcon.js");function a(g){return g&&typeof g=="object"&&"default"in g?g:{default:g}}var o=a(e),c=a(r);const d={regular:r.css`
|
|
2
|
+
width: 24px;
|
|
3
|
+
height: 24px;
|
|
4
|
+
|
|
5
|
+
svg {
|
|
6
|
+
width: 15px;
|
|
7
|
+
height: 15px;
|
|
8
|
+
}
|
|
9
|
+
`,large:r.css`
|
|
10
|
+
width: 32px;
|
|
11
|
+
height: 32px;
|
|
12
|
+
|
|
13
|
+
svg {
|
|
14
|
+
width: 20px;
|
|
15
|
+
height: 20px;
|
|
16
|
+
}
|
|
17
|
+
`},u=r.css`
|
|
18
|
+
cursor: default;
|
|
19
|
+
border: 2px solid ${s.default.colors.gray.light1};
|
|
20
|
+
`,n=r.css`
|
|
21
|
+
background: ${s.default.colors.gray.light1};
|
|
22
|
+
`,h=c.default.input.attrs({type:"checkbox"})`
|
|
23
|
+
display: none;
|
|
24
|
+
`,p=c.default.label`
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
display: flex;
|
|
28
|
+
position: relative;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
|
|
32
|
+
border: 2px solid ${s.default.colors.gray.light1};
|
|
33
|
+
border-radius: 3px;
|
|
34
|
+
|
|
35
|
+
${g=>d[g.size]};
|
|
36
|
+
|
|
37
|
+
svg {
|
|
38
|
+
opacity: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
${g=>{return g.isChecked&&(x=g.color,r.css`
|
|
42
|
+
svg {
|
|
43
|
+
fill: #fefefe;
|
|
44
|
+
opacity: 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:hover {
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
background: ${s.default.colors[x].main};
|
|
51
|
+
border: 2px solid ${s.default.colors[x].main};
|
|
52
|
+
`);var x}};
|
|
53
|
+
${g=>g.isDisabled&&u};
|
|
54
|
+
|
|
55
|
+
${g=>g.isChecked&&g.isDisabled&&n};
|
|
56
|
+
`,f=({name:g=t.generateNameHash("check-box"),isDisabled:x=!1,size:m="regular",checked:b,color:k="secondary",onClick:y,...v})=>o.default.createElement(i.default,{onClick:y,isActive:b,isDisabled:x,color:k},o.default.createElement(h,{...v,"data-validate":"checked",name:g,id:g,disabled:x}),o.default.createElement(p,{htmlFor:g,size:m,color:k,isChecked:b,isDisabled:x},o.default.createElement(l.default,null)));exports.CheckBox=f,exports.default=f;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components"),r=require("../../shared/helpers.js"),i=require("../../theme.js");function l(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var a=l(e),o=l(t);const s=o.default.div`
|
|
2
|
+
font-family: ${({theme:c})=>c.typography.fontAlternativeFamily};
|
|
3
|
+
font-size: ${({size:c})=>((u="smaller")=>({smaller:"0.8125rem",small:"1rem",regular:"1rem",large:"1.25rem"})[u])(c)};
|
|
4
|
+
font-weight: ${({theme:c})=>c.typography.fontAlternativeBoldWeight};
|
|
5
|
+
line-height: 1.25;
|
|
6
|
+
letter-spacing: 0.1px;
|
|
7
|
+
display: inline-block;
|
|
8
|
+
cursor: ${({isDisabled:c})=>c?"auto":"pointer"};
|
|
9
|
+
align-items: center;
|
|
10
|
+
background: ${({isDisabled:c,isActive:u,activeColor:f})=>u&&c?r.fadedColor(i.default.colors[f].main,.5):c?i.default.colors.gray.light4:u?i.default.colors[f].main:"transparent"};
|
|
11
|
+
color: ${({isActive:c,isDisabled:u})=>c||c&&u?i.default.colors.text.light:u?i.default.colors.text.disabled:i.default.colors.text.dark};
|
|
12
|
+
justify-content: center;
|
|
13
|
+
border-width: 1px;
|
|
14
|
+
border-style: solid;
|
|
15
|
+
border-color: ${({isActive:c,isDisabled:u})=>c||u?"transparent":i.default.colors.background.dark};
|
|
16
|
+
border-radius: 1.293rem;
|
|
17
|
+
`,n=o.default.span`
|
|
18
|
+
padding: 0.5rem 1rem;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
text-align: center;
|
|
23
|
+
`,d=({activeColor:c="primary",children:u,component:f="div",isActive:g,isDisabled:m,onClick:p,size:b,...h})=>a.default.createElement(s,{...h,as:f,activeColor:c,isDisabled:m,isActive:g,size:b},a.default.createElement(n,{onClick:y=>{!m&&p&&p(y)}},u));exports.Chip=d,exports.default=d;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components"),r=require("../Icons/Arrow.js"),l=require("../../theme.js"),a=require("../../typography/BodyText/index.js"),o=require("./localeUtils.js");function n(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}var u=n(e),d=n(t);const i=d.default.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
`,c=d.default(a.BodyText)`
|
|
5
|
+
color: ${l.default.colors.text.dark};
|
|
6
|
+
`,f=d.default.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
|
+
`,s=d.default(r.default)`
|
|
16
|
+
width: 16px;
|
|
17
|
+
height: 16px;
|
|
18
|
+
fill: ${l.default.colors.gray.dark3};
|
|
19
|
+
`,p=d.default(s)`
|
|
20
|
+
transform: rotate(90deg);
|
|
21
|
+
`,m=d.default(s)`
|
|
22
|
+
transform: rotate(-90deg);
|
|
23
|
+
`;exports.default=({month:x,onPreviousClick:y,onNextClick:h,locale:g})=>u.default.createElement(i,null,u.default.createElement(f,{onClick:()=>y()},u.default.createElement(p,{title:"prev-month"})),u.default.createElement(c,{as:"h3"},o.formatMonthTitle(x,g)),u.default.createElement(f,{onClick:()=>h()},u.default.createElement(m,{title:"next-month"})));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-day-picker"),r=require("styled-components"),a=require("../../theme.js"),o=require("./DayPickerNavBar.js"),l=require("./localeUtils.js"),i=require("./style.js");function c(f){return f&&typeof f=="object"&&"default"in f?f:{default:f}}require("../Icons/Arrow.js"),require("../../typography/BodyText/index.js");var d=c(e),n=c(t);const s=c(r).default.div`
|
|
2
|
+
${i.default}
|
|
3
|
+
|
|
4
|
+
font-family: ${({theme:f})=>f.typography.fontAlternativeFamily};
|
|
5
|
+
.DayPicker-wrapper {
|
|
6
|
+
&:focus {
|
|
7
|
+
outline: none;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
.DayPicker-Weekday {
|
|
11
|
+
color: ${({theme:f})=>f.colors.gray.light1};
|
|
12
|
+
}
|
|
13
|
+
.DayPicker-Day {
|
|
14
|
+
font-size: 12px;
|
|
15
|
+
padding: 14px;
|
|
16
|
+
font-weight: ${({theme:f})=>f.typography.fontAlternativeBoldWeight};
|
|
17
|
+
color: ${({theme:f})=>f.colors.text.dark};
|
|
18
|
+
&:focus {
|
|
19
|
+
outline: none;
|
|
20
|
+
box-shadow: 0 0 4px ${a.default.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 ${a.default.colors.gray.dark3};
|
|
25
|
+
}
|
|
26
|
+
&:hover {
|
|
27
|
+
background-color: rgba(253, 171, 74, 0.25);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
&.DayPicker-Day--disabled {
|
|
31
|
+
color: ${a.default.colors.gray.dark3};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
`,u={selected:{color:a.default.colors.text.light,background:a.default.colors.primary.main,fontWeight:700}},y=({locale:f="sv",...p})=>d.default.createElement(s,null,d.default.createElement(n.default,{...p,locale:f,months:l.MONTHS[f],weekdaysLong:l.WEEKDAYS_LONG[f],weekdaysShort:l.WEEKDAYS_SHORT[f],firstDayOfWeek:l.FIRST_DAY_OF_THE_WEEK[f],navbarElement:k=>d.default.createElement(o.default,{...k,locale:f}),captionElement:d.default.createElement("div",null),modifiersStyles:u}));exports.DayPicker=y,exports.default=y;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e={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"]};exports.FIRST_DAY_OF_THE_WEEK={sv:1,en:1},exports.MONTHS=e,exports.WEEKDAYS_LONG={sv:["S\xF6ndag","M\xE5ndag","Tisdag","Onsdag","Torsdag","Fredag","L\xF6rdag"],en:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},exports.WEEKDAYS_SHORT={sv:["S\xF6","M\xE5","Ti","On","To","Fr","L\xF6"],en:["Su","Mo","Tu","We","Th","Fr","Sa"]},exports.formatMonthTitle=(r,a="sv")=>`${e[a][r.getMonth()]} ${r.getFullYear()}`;
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("styled-components").css`
|
|
2
|
+
/* DayPicker styles */
|
|
3
|
+
|
|
4
|
+
.DayPicker {
|
|
5
|
+
display: inline-block;
|
|
6
|
+
font-size: 1rem;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.DayPicker-wrapper {
|
|
10
|
+
position: relative;
|
|
11
|
+
|
|
12
|
+
flex-direction: row;
|
|
13
|
+
padding-bottom: 1em;
|
|
14
|
+
|
|
15
|
+
-webkit-user-select: none;
|
|
16
|
+
|
|
17
|
+
-moz-user-select: none;
|
|
18
|
+
|
|
19
|
+
-ms-user-select: none;
|
|
20
|
+
|
|
21
|
+
user-select: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.DayPicker-Months {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-wrap: wrap;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.DayPicker-Month {
|
|
31
|
+
display: table;
|
|
32
|
+
margin: 0 1em;
|
|
33
|
+
margin-top: 1em;
|
|
34
|
+
border-spacing: 0;
|
|
35
|
+
border-collapse: collapse;
|
|
36
|
+
|
|
37
|
+
-webkit-user-select: none;
|
|
38
|
+
|
|
39
|
+
-moz-user-select: none;
|
|
40
|
+
|
|
41
|
+
-ms-user-select: none;
|
|
42
|
+
|
|
43
|
+
user-select: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.DayPicker-NavBar {
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.DayPicker-NavButton {
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 1em;
|
|
52
|
+
right: 1.5em;
|
|
53
|
+
left: auto;
|
|
54
|
+
|
|
55
|
+
display: inline-block;
|
|
56
|
+
margin-top: 2px;
|
|
57
|
+
width: 1.25em;
|
|
58
|
+
height: 1.25em;
|
|
59
|
+
background-position: center;
|
|
60
|
+
background-size: 50%;
|
|
61
|
+
background-repeat: no-repeat;
|
|
62
|
+
color: #8b9898;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.DayPicker-NavButton:hover {
|
|
67
|
+
opacity: 0.8;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.DayPicker-NavButton--prev {
|
|
71
|
+
margin-right: 1.5em;
|
|
72
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAVVJREFUWAnN2G0KgjAYwPHpGfRkaZeqvgQaK+hY3SUHrk1YzNLay/OiEFp92I+/Mp2F2Mh2lLISWnflFjzH263RQjzMZ19wgs73ez0o1WmtW+dgA01VxrE3p6l2GLsnBy1VYQOtVSEH/atCCgqpQgKKqYIOiq2CBkqtggLKqQIKgqgCBjpJ2Y5CdJ+zrT9A7HHSTA1dxUdHgzCqJIEwq0SDsKsEg6iqBIEoq/wEcVRZBXFV+QJxV5mBtlDFB5VjYTaGZ2sf4R9PM7U9ZU+lLuaetPP/5Die3ToO1+u+MKtHs06qODB2zBnI/jBd4MPQm1VkY79Tb18gB+C62FdBFsZR6yeIo1YQiLJWMIiqVjQIu1YSCLNWFgijVjYIuhYYCKoWKAiiFgoopxYaKLUWOii2FgkophYp6F3r42W5A9s9OcgNvva8xQaysKXlFytoqdYmQH6tF3toSUo0INq9AAAAAElFTkSuQmCC');
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.DayPicker-NavButton--next {
|
|
76
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAXRJREFUWAnN119ugjAcwPHWzJ1gnmxzB/BBE0n24m4xfNkTaOL7wOtsl3AXMMb+Vjaa1BG00N8fSEibPpAP3xAKKs2yjzTPH9RAjhEo9WzPr/Vm8zgE0+gXATAxxuxtqeJ9t5tIwv5AtQAApsfT6TPdbp+kUBcgVwvO51KqVhMkXKsVJFXrOkigVhCIs1Y4iKlWZxB1rX4gwlpRIIpa8SDkWmggrFq4IIRaJKCYWnSgnrXIQV1r8YD+1Vrn+bReagysIFfLABRt31v8oBu1xEBttfRbltmfjgEcWh9snUS2kNdBK6WN1vrOWxObWsz+fjxevsxmB1GQDfINWiev83nhaoiB/CoOU438oPrhXS0WpQ9xc1ZQWxWHqUYe0I0qrKCQKjygDlXIQV2r0IF6ViEBxVTBBSFUQQNhVYkHIVeJAtkNsbQ7c1LtzP6FsObhb2rCKv7NBIGoq4SDmKoEgTirXAcJVGkFSVVpgoSrXICGUMUH/QBZNSUy5XWUhwAAAABJRU5ErkJggg==');
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.DayPicker-NavButton--interactionDisabled {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.DayPicker-Caption {
|
|
84
|
+
display: table-caption;
|
|
85
|
+
margin-bottom: 0.5em;
|
|
86
|
+
padding: 0 0.5em;
|
|
87
|
+
text-align: left;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.DayPicker-Caption > div {
|
|
91
|
+
font-weight: 500;
|
|
92
|
+
font-size: 1.15em;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.DayPicker-Weekdays {
|
|
96
|
+
display: table-header-group;
|
|
97
|
+
margin-top: 1em;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.DayPicker-WeekdaysRow {
|
|
101
|
+
display: table-row;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.DayPicker-Weekday {
|
|
105
|
+
display: table-cell;
|
|
106
|
+
padding: 0.5em;
|
|
107
|
+
color: #8b9898;
|
|
108
|
+
text-align: center;
|
|
109
|
+
font-size: 0.875em;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.DayPicker-Weekday abbr[title] {
|
|
113
|
+
border-bottom: none;
|
|
114
|
+
text-decoration: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.DayPicker-Body {
|
|
118
|
+
display: table-row-group;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.DayPicker-Week {
|
|
122
|
+
display: table-row;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.DayPicker-Day {
|
|
126
|
+
display: table-cell;
|
|
127
|
+
padding: 0.5em;
|
|
128
|
+
border-radius: 50%;
|
|
129
|
+
vertical-align: middle;
|
|
130
|
+
text-align: center;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.DayPicker-WeekNumber {
|
|
135
|
+
display: table-cell;
|
|
136
|
+
padding: 0.5em;
|
|
137
|
+
min-width: 1em;
|
|
138
|
+
border-right: 1px solid #eaecec;
|
|
139
|
+
color: #8b9898;
|
|
140
|
+
vertical-align: middle;
|
|
141
|
+
text-align: right;
|
|
142
|
+
font-size: 0.75em;
|
|
143
|
+
cursor: pointer;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.DayPicker--interactionDisabled .DayPicker-Day {
|
|
147
|
+
cursor: default;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.DayPicker-Footer {
|
|
151
|
+
padding-top: 0.5em;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.DayPicker-TodayButton {
|
|
155
|
+
border: none;
|
|
156
|
+
background-color: transparent;
|
|
157
|
+
background-image: none;
|
|
158
|
+
box-shadow: none;
|
|
159
|
+
color: #4a90e2;
|
|
160
|
+
font-size: 0.875em;
|
|
161
|
+
cursor: pointer;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* Default modifiers */
|
|
165
|
+
|
|
166
|
+
.DayPicker-Day--today {
|
|
167
|
+
color: #d0021b;
|
|
168
|
+
font-weight: 700;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.DayPicker-Day--outside {
|
|
172
|
+
color: #8b9898;
|
|
173
|
+
cursor: default;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.DayPicker-Day--disabled {
|
|
177
|
+
color: #dce0e0;
|
|
178
|
+
cursor: default;
|
|
179
|
+
/* background-color: #eff1f1; */
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Example modifiers */
|
|
183
|
+
|
|
184
|
+
.DayPicker-Day--sunday {
|
|
185
|
+
background-color: #f7f8f8;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.DayPicker-Day--sunday:not(.DayPicker-Day--today) {
|
|
189
|
+
color: #dce0e0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside) {
|
|
193
|
+
position: relative;
|
|
194
|
+
|
|
195
|
+
background-color: #4a90e2;
|
|
196
|
+
color: #f0f8ff;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside):hover {
|
|
200
|
+
background-color: #51a0fa;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.DayPicker:not(.DayPicker--interactionDisabled)
|
|
204
|
+
.DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):hover {
|
|
205
|
+
background-color: #f0f8ff;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* DayPickerInput */
|
|
209
|
+
|
|
210
|
+
.DayPickerInput {
|
|
211
|
+
display: inline-block;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.DayPickerInput-OverlayWrapper {
|
|
215
|
+
position: relative;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.DayPickerInput-Overlay {
|
|
219
|
+
position: absolute;
|
|
220
|
+
left: 0;
|
|
221
|
+
z-index: 1;
|
|
222
|
+
|
|
223
|
+
background: white;
|
|
224
|
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
|
|
225
|
+
}
|
|
226
|
+
`;exports.default=e;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components"),r=require("../../shared/media-queries.js"),n=require("../Button/index.js"),i=require("../Modal/index.js"),l=require("../../typography/Heading/index.js");function o(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}require("../../theme.js"),require("../Spinner/index.js"),require("../../typography/ButtonText/index.js"),require("react-dom"),require("react-transition-group"),require("../Icons/Close.js");var a=o(e),u=o(t);const d=u.default.div`
|
|
2
|
+
padding-top: 1rem;
|
|
3
|
+
`,s=u.default.div`
|
|
4
|
+
top: 20px;
|
|
5
|
+
left: 32px;
|
|
6
|
+
position: absolute;
|
|
7
|
+
`,c=u.default(l.TinyTitle)`
|
|
8
|
+
font-weight: ${({theme:x})=>x.typography.fontAlternativeRegularWeight};
|
|
9
|
+
margin: 0;
|
|
10
|
+
`,f=u.default.div`
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
${r.mq("tablet")} {
|
|
14
|
+
justify-content: flex-start;
|
|
15
|
+
}
|
|
16
|
+
overflow-x: hidden;
|
|
17
|
+
`,p=u.default(n.Button)`
|
|
18
|
+
overflow-x: hidden;
|
|
19
|
+
margin-right: 2rem;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
width: 100%;
|
|
22
|
+
max-width: 110px;
|
|
23
|
+
`,y=u.default(n.Button)`
|
|
24
|
+
justify-content: center;
|
|
25
|
+
width: 100%;
|
|
26
|
+
max-width: 245px;
|
|
27
|
+
`,m=({isOpen:x,title:h,children:j,modalStyles:v,titleStyles:B,primaryButtonText:w,primaryButtonStyles:E,secondaryButtonStyles:S,secondaryButtonText:b,primaryButtonAction:q,secondaryButtonAction:g,onClose:C})=>a.default.createElement(i.Modal,{contentStyles:v,isOpen:x,onClose:C},h&&a.default.createElement(s,null,a.default.createElement(c,{style:B},h)),a.default.createElement(d,null,j),a.default.createElement(f,null,g&&a.default.createElement(p,{style:S,onClick:g,variant:"outline",color:"neutral"},b),q&&a.default.createElement(y,{style:E,onClick:q,variant:"solid",color:"success"},w)));exports.Dialog=m,exports.default=m;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components");function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=r(e);const n=r(t).default.div`
|
|
2
|
+
font-family: ${({theme:i})=>i.typography.fontAlternativeFamily};
|
|
3
|
+
font-weight: ${({theme:i})=>i.typography.fontAlternativeRegularWeight};
|
|
4
|
+
background: ${({theme:i})=>i.colors.error.main};
|
|
5
|
+
color: white;
|
|
6
|
+
border-radius: 0.25rem;
|
|
7
|
+
font-size: 13px;
|
|
8
|
+
padding: 10px;
|
|
9
|
+
${({centered:i})=>i&&"text-align: center;"}
|
|
10
|
+
`,a=({children:i,centered:d,...l})=>o.default.createElement(n,{centered:d,...l},i);exports.ErrorMessage=a,exports.default=a;
|