@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,27 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("react-transition-group"),n=require("styled-components");function i(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var a=i(t);const o={classNames:"backgroundTransition",timeout:{enter:400,exit:400},mountOnEnter:!0,unmountOnExit:!0},r=i(n).default.div`
|
|
2
|
+
position: fixed;
|
|
3
|
+
z-index: 1000;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
top: 0;
|
|
7
|
+
right: 0;
|
|
8
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
9
|
+
|
|
10
|
+
&.backgroundTransition-enter {
|
|
11
|
+
opacity: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&.backgroundTransition-enter.backgroundTransition-enter-active {
|
|
15
|
+
opacity: 1;
|
|
16
|
+
transition: opacity 0.2s ease-in-out;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.backgroundTransition-exit {
|
|
20
|
+
opacity: 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.backgroundTransition-exit.backgroundTransition-exit-active {
|
|
24
|
+
opacity: 0;
|
|
25
|
+
transition: opacity 0.2s ease-in-out;
|
|
26
|
+
}
|
|
27
|
+
`;exports.default=({className:s,isOpen:u,onClick:c,transitionProps:d=o})=>a.default.createElement(e.CSSTransition,{in:u,...d,className:s},a.default.createElement(r,{onClick:()=>{c&&c()}}));
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("react-dom"),n=require("styled-components"),r=require("react-transition-group"),a=require("./Overlay.js"),i=require("./useClickOutside.js");function o(m){return m&&typeof m=="object"&&"default"in m?m:{default:m}}var s=o(t),l=o(n);const u={timeout:{enter:300,exit:300},mountOnEnter:!0,unmountOnExit:!0},d=l.default.div`
|
|
2
|
+
${({animationName:m,animationDuration:v,width:h,from:$,backgroundColor:p,theme:g})=>`
|
|
3
|
+
position: fixed;
|
|
4
|
+
z-index: 1001;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
top: 0;
|
|
8
|
+
${$==="left"?"left: 0;":"right: 0;"}
|
|
9
|
+
background-color: ${p||g.colors.background.light};
|
|
10
|
+
width: ${h};
|
|
11
|
+
box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.2);
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
&.${m}--right-enter {
|
|
15
|
+
transform: translate3d(${h}, 0, 0);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&.${m}--right-enter.${m}--right-enter-active {
|
|
19
|
+
transform: translate3d(0, 0, 0);
|
|
20
|
+
transition: transform 0.2s ease-in-out;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.${m}--right-exit {
|
|
24
|
+
transform: translate3d(0, 0, 0);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.${m}--right-exit.${m}--right-exit-active {
|
|
28
|
+
transform: translate3d(${h}, 0, 0);
|
|
29
|
+
transition: transform 0.2s ease-in-out;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.${m}--left-enter {
|
|
33
|
+
transform: translate3d(-${h}, 0, 0);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.${m}--left-enter.${m}--left-enter-active {
|
|
37
|
+
transform: translate3d(0, 0, 0);
|
|
38
|
+
transition: transform 0.2s ease-in-out;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.${m}--left-exit {
|
|
42
|
+
transform: translate3d(0, 0, 0);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.${m}--left-exit.${m}--left-exit-active {
|
|
46
|
+
transform: translate3d(-${h}, 0, 0);
|
|
47
|
+
transition: transform ${v}ms ease-in-out;
|
|
48
|
+
}
|
|
49
|
+
`}
|
|
50
|
+
`,f=l.default.div`
|
|
51
|
+
position: relative;
|
|
52
|
+
width: 100%;
|
|
53
|
+
height: 100%;
|
|
54
|
+
overflow-x: hidden;
|
|
55
|
+
overflow-y: auto;
|
|
56
|
+
-webkit-overflow-scrolling: touch;
|
|
57
|
+
`,c=({animationName:m="offCanvasAnimation",animationDuration:v=300,backgroundColor:h,backgroundOverlay:$,children:p,from:g="right",isOpen:O,onClickOutside:x,width:C="375px",withPortal:y,transitionProps:E})=>{const b=t.useRef(null);i.useOutsideClick(b,()=>x==null?void 0:x()),$&&!x&&console.error("Please provide a clickOutside handler when using backgroundOverlay option in OffCanvas component");const w=`${m}--${g}`,k=s.default.createElement(s.default.Fragment,null,$&&s.default.createElement(a.default,{isOpen:O}),s.default.createElement(s.default.Fragment,null,s.default.createElement(r.CSSTransition,{in:O,className:`${m} ${w}`,classNames:w,...u,...E},s.default.createElement(d,{ref:b,animationName:m,animationDuration:v,backgroundColor:h,from:g,width:C},s.default.createElement(f,{className:`${m}-content`},p)))));return y?e.createPortal(k,document.body):k};exports.OffCanvas=c,exports.default=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.useOutsideClick=(t,s)=>{const r=e.useCallback(n=>{t.current&&!t.current.contains(n.target)&&s()},[s,t]);e.useEffect(()=>(document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}),[r])};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("styled-components"),t=require("../../shared/helpers.js"),o=require("../../theme.js"),a=require("../IconButton.js");function i(b){return b&&typeof b=="object"&&"default"in b?b:{default:b}}var l=i(e),s=i(r);const c={regular:r.css`
|
|
2
|
+
.circle {
|
|
3
|
+
&--outer {
|
|
4
|
+
height: 24px;
|
|
5
|
+
width: 24px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&--inner {
|
|
9
|
+
height: 100%;
|
|
10
|
+
width: 100%;
|
|
11
|
+
transform: scale(0.6);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`,large:r.css`
|
|
15
|
+
.circle {
|
|
16
|
+
&--outer {
|
|
17
|
+
height: 32px;
|
|
18
|
+
width: 32px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&--inner {
|
|
22
|
+
height: 100%;
|
|
23
|
+
width: 100%;
|
|
24
|
+
transform: scale(0.6);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
`},d=r.css`
|
|
28
|
+
cursor: default;
|
|
29
|
+
|
|
30
|
+
.circle {
|
|
31
|
+
&--inner {
|
|
32
|
+
background-color: ${o.default.colors.gray.light1};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&--outer {
|
|
36
|
+
border: 2px solid ${o.default.colors.gray.light1};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`,n=r.css`
|
|
40
|
+
.circle {
|
|
41
|
+
&--inner {
|
|
42
|
+
opacity: 1;
|
|
43
|
+
background-color: ${o.default.colors.gray.light1};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`,u=s.default.label`
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
display: flex;
|
|
49
|
+
position: relative;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
|
|
53
|
+
${b=>c[b.size]};
|
|
54
|
+
|
|
55
|
+
${b=>{return!b.isDisabled&&b.isChecked&&(m=b.color,r.css`
|
|
56
|
+
.circle {
|
|
57
|
+
&--inner {
|
|
58
|
+
opacity: 1;
|
|
59
|
+
background-color: ${o.default.colors[m].main};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&--outer {
|
|
63
|
+
border: 2px solid ${o.default.colors[m].main};
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
`);var m}};
|
|
67
|
+
${b=>b.isDisabled&&d};
|
|
68
|
+
|
|
69
|
+
${b=>b.isChecked&&b.isDisabled&&n};
|
|
70
|
+
`,f=s.default.input`
|
|
71
|
+
display: none;
|
|
72
|
+
`,h=s.default.span`
|
|
73
|
+
display: flex;
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
border-radius: 50%;
|
|
76
|
+
|
|
77
|
+
border: 2px solid ${o.default.colors.gray.light1};
|
|
78
|
+
`,g=s.default.span`
|
|
79
|
+
box-sizing: border-box;
|
|
80
|
+
opacity: 0;
|
|
81
|
+
margin: auto;
|
|
82
|
+
border-radius: 50%;
|
|
83
|
+
background-color: ${o.default.colors.gray.light1};
|
|
84
|
+
|
|
85
|
+
position: absolute;
|
|
86
|
+
top: 0;
|
|
87
|
+
left: 0;
|
|
88
|
+
`,p=({name:b=t.generateNameHash("radio-button"),size:m="regular",checked:x=!1,isDisabled:y=!1,color:$="secondary",onChange:k,...v})=>l.default.createElement(a.default,{onClick:k,isActive:x,isDisabled:y,color:$},l.default.createElement(f,{"data-validate":"checked",type:"radio",name:b,id:b,onChange:k,disabled:y,...v}),l.default.createElement(u,{htmlFor:b,size:m,color:$,isChecked:x,isDisabled:y},l.default.createElement(h,{className:"circle circle--outer"},l.default.createElement(g,{className:"circle circle--inner"}))));exports.RadioButton=p,exports.default=p;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components"),a=require("../../theme.js"),l=require("../../typography/BodyText/index.js"),o=require("../../typography/Heading/index.js");function r(m){return m&&typeof m=="object"&&"default"in m?m:{default:m}}require("../../shared/media-queries.js");var i=r(e),n=r(t);const s=n.default.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
position: relative;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: center;
|
|
6
|
+
`,u=n.default.div`
|
|
7
|
+
display: flex;
|
|
8
|
+
position: relative;
|
|
9
|
+
width: 100%;
|
|
10
|
+
`,d=n.default(o.Display1)`
|
|
11
|
+
color: ${({color:m})=>a.default.colors[m].main};
|
|
12
|
+
line-height: 1;
|
|
13
|
+
margin-top: 0;
|
|
14
|
+
margin-bottom: 0;
|
|
15
|
+
`,c=n.default(l.CaptionLink)`
|
|
16
|
+
flex: 1;
|
|
17
|
+
color: ${a.default.colors.gray.light1};
|
|
18
|
+
line-height: 1.2;
|
|
19
|
+
position: relative;
|
|
20
|
+
text-align: center;
|
|
21
|
+
&:before {
|
|
22
|
+
content: '';
|
|
23
|
+
background: ${({color:m})=>a.default.colors[m].main};
|
|
24
|
+
margin: 0 auto 2px;
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
height: 12px;
|
|
29
|
+
top: 34px;
|
|
30
|
+
position: relative;
|
|
31
|
+
width: 2px;
|
|
32
|
+
}
|
|
33
|
+
`,p=n.default(c)`
|
|
34
|
+
&:after {
|
|
35
|
+
content: '';
|
|
36
|
+
position: absolute;
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 4px;
|
|
39
|
+
background: ${({color:m})=>a.default.colors[m].main};
|
|
40
|
+
top: 40px;
|
|
41
|
+
left: 50%;
|
|
42
|
+
transform: translate(0, -50%);
|
|
43
|
+
}
|
|
44
|
+
`,f=({displayValue:m,maxValue:g,minValue:h,color:x="primary"})=>i.default.createElement(s,null,m&&i.default.createElement(d,{as:"span",color:x},m),i.default.createElement(u,null,i.default.createElement(p,{as:"span",color:x},h),i.default.createElement(c,{as:"span",color:x},g)));exports.Range=f,exports.default=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function e(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("react"));exports.TestIcon=()=>t.default.createElement("svg",{viewBox:"0 0 896.003 896.004",height:"18px",width:"18px",y:"0px",x:"0px",xmlns:"http://www.w3.org/2000/svg"},t.default.createElement("path",{d:"M850.321,663.513C774.05,802.057,626.63,896.004,457.168,896.004c-247.688,0-448.478-200.578-448.478-448.002 S209.479,0,457.168,0c203.805,0,375.577,135.92,430.145,321.882L428.365,478.82L850.321,663.513z M614.342,318.945 c43.631,0,78.998-35.7,78.998-79.736c0-44.039-35.367-79.735-78.998-79.735c-43.63,0-78.999,35.696-78.999,79.735 C535.343,283.245,570.712,318.945,614.342,318.945"}));
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("react-select"),o=require("styled-components"),t=require("../../shared/constants.js"),a=require("../../theme.js"),l=require("../FieldLabel.js");function i(y){return y&&typeof y=="object"&&"default"in y?y:{default:y}}var s=i(e),d=i(r),n=i(o);const u=n.default.div`
|
|
2
|
+
font-family: ${({theme:y})=>y.typography.fontBaseFamily};
|
|
3
|
+
position: relative;
|
|
4
|
+
`,c=y=>y&&{paddingLeft:"2.5rem"},f=y=>y&&{border:`1px solid ${a.default.colors.gray.light1}`,color:a.default.colors.gray.dark1,fill:a.default.colors.gray.light1},m=n.default.div`
|
|
5
|
+
position: absolute;
|
|
6
|
+
z-index: 1;
|
|
7
|
+
top: 0.5rem;
|
|
8
|
+
margin: 0.35rem 0.75rem;
|
|
9
|
+
|
|
10
|
+
fill: ${a.default.colors.gray.dark5};
|
|
11
|
+
transition: ${t.DEFAULT_TRANSITION_MS};
|
|
12
|
+
|
|
13
|
+
${y=>y.isDisabled&&`
|
|
14
|
+
fill: ${a.default.colors.gray.light1};
|
|
15
|
+
`}
|
|
16
|
+
|
|
17
|
+
${y=>y.isFocused&&`
|
|
18
|
+
fill: ${y.theme.colors.text.dark};
|
|
19
|
+
`}
|
|
20
|
+
`,p=n.default.span`
|
|
21
|
+
display: block;
|
|
22
|
+
font-family: ${({theme:y})=>y.typography.fontBaseFamily};
|
|
23
|
+
font-size: 0.81rem;
|
|
24
|
+
margin-top: 0.25rem;
|
|
25
|
+
margin-left: 0.85rem;
|
|
26
|
+
color: ${({hasError:y})=>y?a.default.colors.error.main:a.default.colors.text.disabled};
|
|
27
|
+
`,h=n.default(y=>s.default.createElement("svg",{...y},s.default.createElement("symbol",{id:"icon-arrow",viewBox:"0 0 19 19"},s.default.createElement("path",{d:"M2.03039 7.95496L9.80856 15.7331C9.90619 15.8308 10.0645 15.8308 10.1621 15.7331L17.9403 7.95496L19.0009 9.01562L11.2228 16.7938C10.5394 17.4772 9.43132 17.4772 8.7479 16.7938L0.969727 9.01562L2.03039 7.95496Z"})),s.default.createElement("use",{xlinkHref:"#icon-arrow"})))`
|
|
28
|
+
width: 0.8rem;
|
|
29
|
+
height: 0.8rem;
|
|
30
|
+
margin: 0 0.5rem;
|
|
31
|
+
${y=>y.$isFocused&&`color: ${y.$theme.colors.text.dark}`}
|
|
32
|
+
${y=>y.$isDisabled&&`color: ${y.$theme.colors.gray.dark1}`}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
path {
|
|
36
|
+
fill: currentColor;
|
|
37
|
+
stroke: currentColor;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
transition: transform ${t.DEFAULT_TRANSITION_MS};
|
|
41
|
+
|
|
42
|
+
transform: ${y=>y.$isMenuOpen?"rotate(-180deg)":"rotate(0deg)"};
|
|
43
|
+
transform-origin: 50% 60%;
|
|
44
|
+
`,g=({selectProps:{menuIsOpen:y=!1},isFocused:D=!1,isDisabled:L})=>s.default.createElement(h,{$isDisabled:L,$isFocused:D,$isMenuOpen:y,$theme:a.default}),b=({className:y,color:D="primary",forwardRef:L,hasError:I=!1,height:S,helperText:B,isDisabled:k=!1,onBlur:M=()=>null,onFocus:N=()=>null,onInputChange:O=()=>null,placeholder:_="",name:w,...x})=>{const[v,E]=e.useState(!1),[j,R]=e.useState(""),T=({isSelected:$,isFocused:F,isDisabled:C})=>$?a.default.colors[D].main:C?a.default.colors.background.light:F?a.default.colors.background.gray:a.default.colors.background.light,z=(($,F)=>F?a.default.colors.error.main:$?a.default.colors.text.dark:a.default.colors.gray.light1)(v,I);return s.default.createElement(u,{className:y},x.label&&s.default.createElement(l.Label,{htmlFor:w,height:S,isFocused:v,hasValue:Boolean(x.value||j),disabled:k,theme:a.default,hasError:I},x.label),x.prefix&&s.default.createElement(m,{isDisabled:k,isFocused:v},x.prefix),s.default.createElement(d.default,{...x,inputId:w,name:w,ref:L,isDisabled:k,onInputChange:($,F)=>{O($,F),R($)},placeholder:_,onFocus:$=>{E(!0),N($)},onBlur:$=>{E(!1),M($)},styles:{control:$=>({...$,borderRadius:0,color:a.default.colors.text.dark,fontFamily:a.default.typography.fontBaseFamily,fontSize:"1rem",fontWeight:400,cursor:"pointer",padding:"0.7rem 0.75rem",backgroundColor:a.default.colors.background.light,borderColor:z,boxShadow:"none","&:hover":{borderColor:"none"},...f(k),...c(Boolean(x.prefix))}),placeholder:$=>({...$,display:v?"static":"none"}),singleValue:$=>({...$,maxWidth:"calc(100% - 3.3rem)",width:"calc(100% - 3.3rem)"}),menuList:$=>({...$,padding:"8px 0"}),menu:$=>({...$,borderRadius:0,boxShadow:a.default.elevations.elevation2,zIndex:2,padding:"0"}),option:($,{isSelected:F,isFocused:C,isDisabled:q})=>({...$,padding:"1rem",cursor:q?"not-allowed":"pointer","&:hover":{background:T({isSelected:F,isFocused:!0,isDisabled:q})},background:T({isSelected:F,isFocused:C}),...c(Boolean(x.prefix))}),valueContainer:$=>({...$,position:"static",padding:S?S-1+"rem 0 ":0,height:S?"auto":"21px"})},components:{IndicatorSeparator:()=>null,DropdownIndicator:g}}),B&&s.default.createElement(p,{hasError:I},B))};exports.Select=b,exports.default=b;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components"),r=require("../../theme.js"),o=require("../Icons/CheckCircle.js"),n=require("../Icons/Close.js"),i=require("../Icons/ErrorCircle.js"),a=require("../Icons/InfoCircle.js"),l=require("react-transition-group");function c(E){return E&&typeof E=="object"&&"default"in E?E:{default:E}}var s=c(e),u=c(t);const d={top:t.css`
|
|
2
|
+
top: 0;
|
|
3
|
+
`,bottom:t.css`
|
|
4
|
+
bottom: 0;
|
|
5
|
+
`},m={right:t.css`
|
|
6
|
+
right: 0;
|
|
7
|
+
`,center:t.css`
|
|
8
|
+
left: 50%;
|
|
9
|
+
transform: translate(-50%, 0);
|
|
10
|
+
`,left:t.css`
|
|
11
|
+
left: 0;
|
|
12
|
+
`},f=u.default.div`
|
|
13
|
+
font-family: ${({theme:E})=>E.typography.fontBaseFamily};
|
|
14
|
+
position: fixed;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
|
|
18
|
+
line-height: 1rem;
|
|
19
|
+
margin: 1rem;
|
|
20
|
+
|
|
21
|
+
max-width: 630px;
|
|
22
|
+
|
|
23
|
+
border-radius: 0.4rem;
|
|
24
|
+
padding: 1.15rem 1.25rem;
|
|
25
|
+
|
|
26
|
+
font-weight: ${({theme:E})=>E.typography.fontBaseBoldWeight};
|
|
27
|
+
font-size: 0.875rem;
|
|
28
|
+
|
|
29
|
+
box-shadow: ${r.default.elevations.elevation8};
|
|
30
|
+
background-color: ${E=>E.color!=="none"?r.default.colors[E.color].main:r.default.colors.background.light};
|
|
31
|
+
color: ${E=>E.color!=="none"?r.default.colors.text.light:r.default.colors.text.dark};
|
|
32
|
+
|
|
33
|
+
${E=>d[E.origin.vertical||"bottom"]}
|
|
34
|
+
${E=>m[E.origin.horizontal||"left"]}
|
|
35
|
+
|
|
36
|
+
transition: opacity ${200}ms ease-in;
|
|
37
|
+
|
|
38
|
+
&.${"anim"}-enter {
|
|
39
|
+
opacity: 0;
|
|
40
|
+
}
|
|
41
|
+
&.${"anim"}-enter-active {
|
|
42
|
+
opacity: 1;
|
|
43
|
+
}
|
|
44
|
+
&.${"anim"}-exit {
|
|
45
|
+
opacity: 1;
|
|
46
|
+
}
|
|
47
|
+
&.${"anim"}-exit-active {
|
|
48
|
+
opacity: 0;
|
|
49
|
+
}
|
|
50
|
+
`,g=u.default.div`
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
margin: -0.25rem 0;
|
|
53
|
+
margin-right: 0.75rem;
|
|
54
|
+
|
|
55
|
+
${E=>E.type==="text"&&"margin-right: 0;"}
|
|
56
|
+
|
|
57
|
+
svg {
|
|
58
|
+
width: 1.5rem;
|
|
59
|
+
height: 1.5rem;
|
|
60
|
+
fill: ${E=>E.color!=="none"?r.default.colors.background.light:r.default.colors.background.dark};
|
|
61
|
+
}
|
|
62
|
+
`,p=u.default(g)`
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
|
|
65
|
+
/* Bigger click area */
|
|
66
|
+
padding: 0.25rem;
|
|
67
|
+
|
|
68
|
+
/* Negate padding */
|
|
69
|
+
margin: -0.25rem;
|
|
70
|
+
margin-left: 0.5rem;
|
|
71
|
+
|
|
72
|
+
svg {
|
|
73
|
+
width: 1rem;
|
|
74
|
+
height: 1rem;
|
|
75
|
+
}
|
|
76
|
+
`,h=u.default.span`
|
|
77
|
+
flex: 1;
|
|
78
|
+
`,x={error:s.default.createElement(i.default,null),success:s.default.createElement(o.default,null),info:s.default.createElement(a.default,null),text:""},y=({message:E,color:$="none",type:v="info",action:k,isOpen:C,origin:j={},onClose:b=()=>{},onExited:w=()=>{},autoHideDuration:q=4e3,...I})=>(e.useEffect(()=>{const B=setTimeout(b,q);return()=>clearTimeout(B)},[q,b]),s.default.createElement(l.CSSTransition,{in:C,timeout:200,mountOnEnter:!0,unmountOnExit:!0,onExited:w,classNames:"anim"},s.default.createElement(f,{...I,color:$,origin:j},s.default.createElement(g,{color:$,type:v},x[v]),s.default.createElement(h,null,E),k&&k,s.default.createElement(p,{color:$!=null?$:"none",onClick:b},s.default.createElement(n.default,null)))));exports.Snackbar=y,exports.default=y;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("styled-components"),t=require("../../theme.js");function a(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var o=a(e),s=a(r);const i=u=>{const n={smaller:1,small:2,regular:3,large:4};return typeof u=="number"?u:n[u]||n.regular},l=r.keyframes`
|
|
2
|
+
0% {
|
|
3
|
+
transform: rotate(0deg);
|
|
4
|
+
}
|
|
5
|
+
100% {
|
|
6
|
+
transform: rotate(360deg);
|
|
7
|
+
}
|
|
8
|
+
`,d=s.default.div`
|
|
9
|
+
display: inline-block;
|
|
10
|
+
border-radius: 50%;
|
|
11
|
+
border-top: ${({theme:u,color:n,size:m})=>`${i(m)/10}em solid ${u.colors[n].main}`};
|
|
12
|
+
border-bottom: ${({size:u})=>i(u)/10+"em solid rgba(0, 0, 0, 0.1);"};
|
|
13
|
+
border-right: ${({size:u})=>i(u)/10+"em solid rgba(0, 0, 0, 0.1);"};
|
|
14
|
+
border-left: ${({size:u})=>i(u)/10+"em solid rgba(0, 0, 0, 0.1);"};
|
|
15
|
+
width: ${({size:u})=>i(u)}em;
|
|
16
|
+
height: ${({size:u})=>i(u)}em;
|
|
17
|
+
animation: ${l} ${({speed:u})=>(n=>{const m={slow:"2s",default:"1s",fast:"0.5s"};return m[n]||m.default})(u)} infinite linear;
|
|
18
|
+
will-change: transform;
|
|
19
|
+
`;exports.default=({size:u="regular",color:n="primary",speed:m="default",...f})=>o.default.createElement(d,{...f,role:"status","aria-live":"polite","aria-busy":"true",size:u,speed:m,color:n,theme:t.default});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components"),r=require("../../theme.js"),a=require("../../typography/Heading/index.js");function l(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}require("../../shared/media-queries.js");var i=l(e),n=l(t);const d=n.default.div`
|
|
2
|
+
min-height: 4rem;
|
|
3
|
+
`,u=n.default.div`
|
|
4
|
+
margin: auto;
|
|
5
|
+
width: 2px;
|
|
6
|
+
height: 100%;
|
|
7
|
+
background-color: ${r.default.colors.primary.main};
|
|
8
|
+
`,o=n.default.div`
|
|
9
|
+
margin-right: 0.75rem;
|
|
10
|
+
`,m=n.default.div`
|
|
11
|
+
font-family: ${({theme:s})=>s.typography.fontBaseFamily};
|
|
12
|
+
display: flex;
|
|
13
|
+
padding-bottom: 1rem;
|
|
14
|
+
|
|
15
|
+
&:last-child {
|
|
16
|
+
${u} {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`,f=n.default.div`
|
|
21
|
+
width: 3rem;
|
|
22
|
+
height: 3rem;
|
|
23
|
+
border-radius: 3rem;
|
|
24
|
+
|
|
25
|
+
color: white;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
background-color: ${r.default.colors.primary.main};
|
|
30
|
+
`,c=n.default(a.Title)`
|
|
31
|
+
font-size: 1.5rem;
|
|
32
|
+
font-variant: lining-nums;
|
|
33
|
+
`;exports.Stepper=({children:s,...h})=>i.default.createElement(d,{...h},s.map((y,p)=>i.default.createElement(m,{key:p},i.default.createElement(o,null,i.default.createElement(f,null,i.default.createElement(c,null,p+1)),i.default.createElement(u,null)),y)));
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("styled-components"),t=require("../../theme.js"),l=require("../../typography/Heading/index.js"),i=require("../Icons/CheckIcon.js"),a=require("../Icons/Arrow.js"),o=require("../../shared/helpers.js"),s=require("react-collapse");function n(C){return C&&typeof C=="object"&&"default"in C?C:{default:C}}require("../../shared/media-queries.js");var d=n(e),c=n(r);const u=c.default.div`
|
|
2
|
+
.ReactCollapse--collapse {
|
|
3
|
+
transition: height ${"200ms"} ease-in-out;
|
|
4
|
+
}
|
|
5
|
+
`,m=r.css`
|
|
6
|
+
margin-top: 0.25rem;
|
|
7
|
+
transform: rotate(-180deg);
|
|
8
|
+
`,f=c.default.div`
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
height: 4rem;
|
|
12
|
+
|
|
13
|
+
color: ${C=>C.isDisabled?t.default.colors.text.disabled:t.default.colors.text.dark};
|
|
14
|
+
`,p=c.default(l.Title)`
|
|
15
|
+
margin: 0;
|
|
16
|
+
`,h=c.default(a.default)`
|
|
17
|
+
margin-left: auto;
|
|
18
|
+
height: 1.25rem;
|
|
19
|
+
width: 1.25rem;
|
|
20
|
+
margin-top: -0.75rem;
|
|
21
|
+
|
|
22
|
+
fill: currentColor;
|
|
23
|
+
|
|
24
|
+
transition: ${"200ms"};
|
|
25
|
+
transform: rotate(0deg);
|
|
26
|
+
transform-origin: center;
|
|
27
|
+
${C=>C.isExpanded&&m};
|
|
28
|
+
`,g=c.default.div`
|
|
29
|
+
font-family: ${({theme:C})=>C.typography.fontBaseFamily};
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
|
|
34
|
+
font-size: 1.25rem;
|
|
35
|
+
margin-right: 0.75rem;
|
|
36
|
+
width: 2rem;
|
|
37
|
+
height: 2rem;
|
|
38
|
+
border-radius: 2rem;
|
|
39
|
+
border: 2px solid ${C=>t.default.colors[C.color].main};
|
|
40
|
+
|
|
41
|
+
svg {
|
|
42
|
+
fill: currentColor;
|
|
43
|
+
height: 1rem;
|
|
44
|
+
width: 1rem;
|
|
45
|
+
|
|
46
|
+
/* Kvd.se compatible stuff */
|
|
47
|
+
margin: 0;
|
|
48
|
+
top: inherit;
|
|
49
|
+
left: inherit;
|
|
50
|
+
font-size: inherit;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
span {
|
|
54
|
+
font-variant: lining-nums;
|
|
55
|
+
margin-top: 0.1rem;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
transition: background-color ${"200ms"};
|
|
59
|
+
${C=>{return C.isComplete&&(x=C.color,r.css`
|
|
60
|
+
color: white;
|
|
61
|
+
background-color: ${t.default.colors[x].main};
|
|
62
|
+
`);var x}};
|
|
63
|
+
${C=>{return C.isDisabled&&(x=C.isComplete,E=C.color,r.css`
|
|
64
|
+
fill: white;
|
|
65
|
+
border: 2px solid ${o.fadedColor(t.default.colors[E].main,.2)};
|
|
66
|
+
|
|
67
|
+
${x&&`
|
|
68
|
+
border: 2px solid ${o.fadedColor(t.default.colors[E].main,0)};
|
|
69
|
+
background-color: ${o.fadedColor(t.default.colors[E].main,.5)};
|
|
70
|
+
`}
|
|
71
|
+
`);var x,E}};
|
|
72
|
+
`,b=C=>{const[x,E]=e.useState(C.isExpanded||!1),y=e.useCallback(()=>{C.isDisabled||E($=>!$)},[C.isDisabled]);e.useEffect(()=>{E(C.isExpanded||!1)},[C.isDisabled,C.isExpanded]);const v=C.step||C.step===0;return d.default.createElement(u,null,d.default.createElement(f,{...C,onClick:$=>{const q=C.onClick||y;C.isDisabled||q($)},isExpanded:x,isDisabled:C.isDisabled||!1},v&&d.default.createElement(g,{isComplete:C.isComplete||!1,isDisabled:C.isDisabled||!1,color:C.color||"primary"},C.isComplete?d.default.createElement(i.default,null):d.default.createElement("span",null,C.step)),d.default.createElement(p,null,C.title),d.default.createElement(h,{isExpanded:x})),d.default.createElement(s.Collapse,{isOpened:x},C.children),C.closedChildren&&C.closedChildren)};exports.StepperAccordion=b,exports.default=b;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components");function o(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var r=o(e),i=o(t);const l=i.default.div`
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
border-bottom: 1px solid ${({theme:c})=>c.colors.gray.light4};
|
|
4
|
+
`,a=i.default.div`
|
|
5
|
+
font-family: ${({theme:c})=>c.typography.fontAlternativeFamily};
|
|
6
|
+
font-weight: ${({theme:c})=>c.typography.fontAlternativeRegularWeight};
|
|
7
|
+
padding: 1em;
|
|
8
|
+
border-bottom: ${({theme:c,isActive:d,activeColor:s})=>d?`3px solid ${c.colors[s].main}`:"3px solid transparent"};
|
|
9
|
+
transition: color 0.3s ease, border 0.3s ease;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
`,n=({activeIndex:c,activeColor:d="primary",children:s,onTabClick:u,className:v})=>e.Children.count(s)<=1?(console.error("<Tabs /> component has too few children!"),null):r.default.createElement(l,{className:v},e.Children.map(s,(p,f)=>{if(!p)return null;const m=p.props.onClick;return r.default.createElement(a,{...p.props,isActive:c===f,activeColor:d,onClick:h=>{u(f),typeof m=="function"&&m(h)},as:p.type||"div"},p.props.children)}));exports.Tab=({children:c,isActive:d=!1,onClick:s,activeColor:u="primary"})=>r.default.createElement(a,{isActive:d,onClick:s,activeColor:u},c),exports.Tabs=n,exports.default=n;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("styled-components"),l=require("../../theme.js"),t=require("../FieldLabel.js"),a=require("../../typography/BodyText/index.js");function o(b){return b&&typeof b=="object"&&"default"in b?b:{default:b}}var d=o(e),s=o(r);const i=r.css`
|
|
2
|
+
border: 1px solid ${l.default.colors.gray.light1};
|
|
3
|
+
color: ${l.default.colors.gray.dark1};
|
|
4
|
+
fill: ${l.default.colors.gray.light1};
|
|
5
|
+
`,n=r.css`
|
|
6
|
+
border: 1px solid ${l.default.colors.error.main};
|
|
7
|
+
`,c=r.css`
|
|
8
|
+
color: ${l.default.colors.text.dark};
|
|
9
|
+
border: 1px solid ${l.default.colors.text.dark};
|
|
10
|
+
fill: ${l.default.colors.text.dark};
|
|
11
|
+
`,u=s.default.div`
|
|
12
|
+
position: relative;
|
|
13
|
+
padding: 0;
|
|
14
|
+
display: inline-block;
|
|
15
|
+
`,f=s.default.div`
|
|
16
|
+
display: inline-black;
|
|
17
|
+
|
|
18
|
+
color: ${l.default.colors.gray.light1};
|
|
19
|
+
fill: ${l.default.colors.gray.light1};
|
|
20
|
+
background-color: ${l.default.colors.background.light};
|
|
21
|
+
|
|
22
|
+
border: 1px solid ${l.default.colors.gray.light1};
|
|
23
|
+
border-radius: 0.25em;
|
|
24
|
+
transition: all 150ms;
|
|
25
|
+
|
|
26
|
+
padding: 0.7rem 0.75rem;
|
|
27
|
+
|
|
28
|
+
${({hasError:b,isFocused:x})=>!b&&x&&c}
|
|
29
|
+
${({disabled:b})=>b&&i}
|
|
30
|
+
${({hasError:b})=>b&&n}
|
|
31
|
+
${({centered:b})=>b&&"text-align: center;"}
|
|
32
|
+
`,h=s.default.textarea`
|
|
33
|
+
${a.BodyTextStyle}
|
|
34
|
+
|
|
35
|
+
width: 100%;
|
|
36
|
+
cursor: text;
|
|
37
|
+
outline: none;
|
|
38
|
+
border: none;
|
|
39
|
+
background-color: transparent;
|
|
40
|
+
|
|
41
|
+
${({resize:b})=>!b&&"resize: none;"}
|
|
42
|
+
`,m=s.default.div`
|
|
43
|
+
font-family: ${({theme:b})=>b.typography.fontBaseFamily};
|
|
44
|
+
`,p=s.default.span`
|
|
45
|
+
display: block;
|
|
46
|
+
font-family: ${({theme:b})=>b.typography.fontBaseFamily};
|
|
47
|
+
font-size: 0.81rem;
|
|
48
|
+
|
|
49
|
+
margin-top: 0.25rem;
|
|
50
|
+
margin-left: 0.85rem;
|
|
51
|
+
|
|
52
|
+
color: ${({hasError:b})=>b?l.default.colors.error.main:l.default.colors.text.dark};
|
|
53
|
+
|
|
54
|
+
${({centered:b})=>b&&"width: 100%; text-align: center; display: block;"}
|
|
55
|
+
`,y=({placeholder:b="",isDisabled:x=!1,centered:g=!1,hasError:E=!1,className:j,helperText:F,label:k="",resize:q=!0,...$})=>{const[v,B]=e.useState(!1),z=Boolean($.value);return d.default.createElement(u,{className:j},d.default.createElement(f,{isFocused:v,disabled:x,centered:g,hasError:E,hasPlaceholder:!!b},d.default.createElement(h,{...$,resize:q,onFocus:()=>B(!0),onBlur:()=>B(!1),disabled:x,theme:l.default,placeholder:k&&!v?"":b}),$.suffix&&d.default.createElement(m,null,$.suffix)),k&&d.default.createElement(t.Label,{isFocused:v,centered:g,hasError:E,hasValue:z,disabled:x,theme:l.default},k),F&&d.default.createElement(p,{centered:g,hasError:E},F))};exports.TextArea=y,exports.default=y;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("styled-components"),l=require("../../theme.js"),t=require("../FieldLabel.js"),a=require("../../typography/BodyText/index.js");function o(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}var d=o(e),s=o(r);const i=r.css`
|
|
2
|
+
border: 1px solid ${l.default.colors.gray.light1};
|
|
3
|
+
color: ${l.default.colors.gray.dark1};
|
|
4
|
+
fill: ${l.default.colors.gray.light1};
|
|
5
|
+
`,n=r.css`
|
|
6
|
+
border: 1px solid ${l.default.colors.error.main};
|
|
7
|
+
`,c=r.css`
|
|
8
|
+
color: ${l.default.colors.text.dark};
|
|
9
|
+
border: 1px solid ${l.default.colors.text.dark};
|
|
10
|
+
fill: ${l.default.colors.text.dark};
|
|
11
|
+
`,u=s.default.div`
|
|
12
|
+
position: relative;
|
|
13
|
+
padding: 0;
|
|
14
|
+
display: block;
|
|
15
|
+
`,f=s.default.div`
|
|
16
|
+
display: flex;
|
|
17
|
+
text-align: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
|
|
20
|
+
color: ${l.default.colors.gray.light1};
|
|
21
|
+
fill: ${l.default.colors.gray.light1};
|
|
22
|
+
background-color: ${l.default.colors.background.light};
|
|
23
|
+
|
|
24
|
+
border: 1px solid ${l.default.colors.gray.light1};
|
|
25
|
+
border-radius: 0.25em;
|
|
26
|
+
transition: all 150ms;
|
|
27
|
+
|
|
28
|
+
padding: 0.7rem 0.75rem 0.6rem;
|
|
29
|
+
|
|
30
|
+
${({hasError:x,isFocused:y})=>!x&&y&&c}
|
|
31
|
+
${({disabled:x})=>x&&i}
|
|
32
|
+
${({hasError:x})=>x&&n}
|
|
33
|
+
${({centered:x})=>x&&"text-align: center;"}
|
|
34
|
+
`,p=s.default.input`
|
|
35
|
+
${a.BodyTextStyle}
|
|
36
|
+
width: 100%;
|
|
37
|
+
cursor: text;
|
|
38
|
+
outline: none;
|
|
39
|
+
border: none;
|
|
40
|
+
background-color: transparent;
|
|
41
|
+
`,h=s.default.div`
|
|
42
|
+
font-family: ${({theme:x})=>x.typography.fontBaseFamily};
|
|
43
|
+
line-height: 0px;
|
|
44
|
+
margin-top: 2px;
|
|
45
|
+
`,m=s.default.span`
|
|
46
|
+
${a.CaptionStyle}
|
|
47
|
+
line-height: normal;
|
|
48
|
+
display: block;
|
|
49
|
+
margin-top: 0.25rem;
|
|
50
|
+
margin-left: 0.85rem;
|
|
51
|
+
|
|
52
|
+
color: ${({hasError:x})=>x?l.default.colors.error.main:l.default.colors.text.dark};
|
|
53
|
+
|
|
54
|
+
${({centered:x})=>x&&"width: 100%; text-align: center; display: block;"}
|
|
55
|
+
`,g=({placeholder:x="",isDisabled:y=!1,centered:b=!1,hasError:E=!1,className:q,helperText:B,label:k="",onBlur:T=()=>null,onFocus:w=()=>null,forwardRef:S,...$})=>{const[v,j]=e.useState(!1),L=Boolean($.value);return d.default.createElement(u,{className:q},d.default.createElement(f,{isFocused:v,disabled:y,centered:b,hasError:E,hasPlaceholder:!!x},d.default.createElement(p,{...$,ref:S,onFocus:F=>{j(!0),w(F)},onBlur:F=>{j(!1),T(F)},disabled:y,theme:l.default,placeholder:k&&!v?"":x}),$.suffix&&d.default.createElement(h,null,$.suffix)),k&&d.default.createElement(t.Label,{isFocused:v,centered:b,hasError:E,hasValue:L,disabled:y,theme:l.default},k),B&&d.default.createElement(m,{centered:b,hasError:E},B))};exports.TextField=g,exports.default=g;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components"),r=require("../Chip/index.js");function i(m){return m&&typeof m=="object"&&"default"in m?m:{default:m}}require("../../shared/helpers.js"),require("../../theme.js");var a=i(e);const l=i(t).default.ul`
|
|
2
|
+
max-width: 20rem;
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-columns: repeat(4, 1fr);
|
|
5
|
+
gap: 0.625rem 0.75rem;
|
|
6
|
+
flex-wrap: wrap;
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 0;
|
|
9
|
+
`,d=(m,n)=>Array.isArray(n)?Boolean(n.find(u=>u.getTime()===m.getTime())):(n==null?void 0:n.getTime())===m.getTime(),s=({timeSlots:m,onTimeSlotClick:n,selectedTimes:u,disabledTimes:f,...g})=>a.default.createElement(l,{...g},m.map(({text:T,date:o})=>{const c=d(o,u),p=d(o,f);return a.default.createElement(r.Chip,{component:"li","data-selected":c,"data-disabled":p,isDisabled:p,isActive:c,key:o.getTime(),onClick:()=>!c&&!p&&n(o)},T)}));exports.TimePicker=s,exports.default=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.generateTimeSlots=r=>{const a=new Date("2020/02/02"),t=new Date(a);return Array.from({length:r},(n,e)=>({date:new Date(t.setTime(t.getDate()+60*e*60*1e3)),text:e<10?`0${e+1}:00`:`${e+1}:00`}))};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components"),o=require("../../theme.js");function i(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var l=i(e),r=i(t);const a=r.default.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
position: relative;
|
|
4
|
+
border-top: ${({theme:s})=>`1px solid ${s.colors.gray.light6}`};
|
|
5
|
+
border-bottom: ${({theme:s})=>`1px solid ${s.colors.gray.light6}`};
|
|
6
|
+
padding: 4px;
|
|
7
|
+
`,c=r.default.div`
|
|
8
|
+
font-family: ${({theme:s})=>s.typography.fontBaseFamily};
|
|
9
|
+
font-weight: ${({theme:s})=>s.typography.fontBaseRegularWeight};
|
|
10
|
+
display: flex;
|
|
11
|
+
min-height: 4rem;
|
|
12
|
+
align-items: center;
|
|
13
|
+
transition: 150ms 50ms;
|
|
14
|
+
flex: 1;
|
|
15
|
+
z-index: 2;
|
|
16
|
+
position: relative;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
|
|
19
|
+
color: ${s=>s.isActive?o.default.colors.text.light:o.default.colors.text.dark};
|
|
20
|
+
`,n=r.default.div`
|
|
21
|
+
z-index: 0;
|
|
22
|
+
background-color: ${s=>o.default.colors[s.color].main};
|
|
23
|
+
position: absolute;
|
|
24
|
+
|
|
25
|
+
border-radius: 0.25rem;
|
|
26
|
+
|
|
27
|
+
top: 4px;
|
|
28
|
+
left: 4px;
|
|
29
|
+
width: calc(50% - 4px);
|
|
30
|
+
height: calc(100% - 8px);
|
|
31
|
+
|
|
32
|
+
transition: left 250ms ease-in-out;
|
|
33
|
+
|
|
34
|
+
${s=>s.active==="RIGHT"&&`
|
|
35
|
+
left: calc(50%);
|
|
36
|
+
`}
|
|
37
|
+
|
|
38
|
+
${s=>!s.active&&"display: none;"}
|
|
39
|
+
`;exports.Toggle=({onChange:s,...d})=>{const[f,u]=e.useState(d.active);return e.useEffect(()=>{u(d.active)},[d.active]),l.default.createElement(a,{...d},l.default.createElement(n,{color:d.color,active:f}),l.default.createElement(c,{onClick:()=>{u("LEFT"),s("LEFT")},isActive:f==="LEFT",color:d.color},d.left),l.default.createElement(c,{onClick:()=>{u("RIGHT"),s("RIGHT")},isActive:f==="RIGHT",color:d.color},d.right))};
|