@kvdbil/components 3.3.3 → 3.3.5-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/ColorCard.js +48 -0
- package/cjs/ElevationCard.js +35 -0
- package/cjs/Interfaces.js +2 -0
- package/cjs/Types.js +2 -0
- package/cjs/components/Accordion/index.js +124 -0
- package/cjs/components/Badge/index.js +78 -0
- package/cjs/components/Button/index.js +170 -0
- package/cjs/components/Card/index.js +28 -0
- package/cjs/components/CheckBox/index.js +109 -0
- package/cjs/components/Chip/index.js +99 -0
- package/cjs/components/DayPicker/DayPickerNavBar.js +60 -0
- package/cjs/components/DayPicker/index.js +76 -0
- package/cjs/components/DayPicker/localeUtils.js +60 -0
- package/cjs/components/Dialog/index.js +88 -0
- package/cjs/components/ErrorMessage/index.js +31 -0
- package/cjs/components/FieldLabel.js +59 -0
- package/cjs/components/Header/Hamburger.js +55 -0
- package/cjs/components/Header/Link.js +53 -0
- package/cjs/components/Header/index.js +118 -0
- package/cjs/components/Hero/index.js +65 -0
- package/cjs/components/Icon/index.js +115 -0
- package/cjs/components/IconButton.js +130 -0
- package/cjs/components/Icons/Arrow.js +16 -0
- package/cjs/components/Icons/CheckCircle.js +16 -0
- package/cjs/components/Icons/CheckIcon.js +16 -0
- package/cjs/components/Icons/Close.js +16 -0
- package/cjs/components/Icons/ErrorCircle.js +16 -0
- package/cjs/components/Icons/InfoCircle.js +16 -0
- package/cjs/components/InlineStepper/Step.js +116 -0
- package/cjs/components/InlineStepper/StepCircle.js +93 -0
- package/cjs/components/InlineStepper/index.js +51 -0
- package/cjs/components/ListItem/Bacon.js +16 -0
- package/cjs/components/ListItem/index.js +56 -0
- package/cjs/components/Logo/LogoEn.js +35 -0
- package/cjs/components/Logo/LogoSv.js +35 -0
- package/cjs/components/Logo/index.js +32 -0
- package/cjs/components/MenuItem/index.js +99 -0
- package/cjs/components/Modal/index.js +137 -0
- package/cjs/components/NotificationButton/index.js +39 -0
- package/cjs/components/OffCanvas/Overlay.js +70 -0
- package/cjs/components/OffCanvas/index.js +133 -0
- package/cjs/components/OffCanvas/useClickOutside.js +21 -0
- package/cjs/components/RadioButton/index.js +148 -0
- package/cjs/components/Range/index.js +82 -0
- package/cjs/components/Select/components/test-icon.js +16 -0
- package/cjs/components/Select/index.js +225 -0
- package/cjs/components/Snackbar/index.js +155 -0
- package/cjs/components/Spinner/index.js +68 -0
- package/cjs/components/Stepper/index.js +60 -0
- package/cjs/components/StepperAccordion/index.js +133 -0
- package/cjs/components/Tabs/index.js +71 -0
- package/cjs/components/TextArea/index.js +120 -0
- package/cjs/components/Textfield/index.js +130 -0
- package/cjs/components/TimePicker/index.js +49 -0
- package/cjs/components/TimePicker/testHelper.js +16 -0
- package/cjs/components/Toggle/index.js +83 -0
- package/cjs/icons/components/AccountCreateIcon.js +48 -0
- package/cjs/icons/components/AccountIcon.js +44 -0
- package/cjs/icons/components/AccountLoginIcon.js +50 -0
- package/cjs/icons/components/ArrowDownIcon.js +44 -0
- package/cjs/icons/components/ArrowLeftIcon.js +42 -0
- package/cjs/icons/components/ArrowLeftSharpIcon.js +44 -0
- package/cjs/icons/components/ArrowLeftSmallIcon.js +44 -0
- package/cjs/icons/components/ArrowLong.js +45 -0
- package/cjs/icons/components/ArrowRestartIcon.js +44 -0
- package/cjs/icons/components/ArrowRightIcon.js +42 -0
- package/cjs/icons/components/ArrowRightSharpIcon.js +44 -0
- package/cjs/icons/components/ArrowUpIcon.js +44 -0
- package/cjs/icons/components/AuctionIcon.js +42 -0
- package/cjs/icons/components/BackArrowIcon.js +42 -0
- package/cjs/icons/components/Baseline360Icon.js +45 -0
- package/cjs/icons/components/BellIcon.js +42 -0
- package/cjs/icons/components/BidIcon.js +42 -0
- package/cjs/icons/components/BidKrIcon.js +48 -0
- package/cjs/icons/components/BreaksIcon.js +42 -0
- package/cjs/icons/components/BuyCarIcon.js +42 -0
- package/cjs/icons/components/CabIcon.js +44 -0
- package/cjs/icons/components/CalendarIcon.js +51 -0
- package/cjs/icons/components/CameraIcon.js +42 -0
- package/cjs/icons/components/Car360Icon.js +67 -0
- package/cjs/icons/components/CarFrontIcon.js +42 -0
- package/cjs/icons/components/CarSearchIcon.js +42 -0
- package/cjs/icons/components/CarSideIcon.js +42 -0
- package/cjs/icons/components/CarTiresIcon.js +42 -0
- package/cjs/icons/components/CaravanIcon.js +42 -0
- package/cjs/icons/components/CardViewIcon.js +68 -0
- package/cjs/icons/components/CarloanIcon.js +44 -0
- package/cjs/icons/components/CertifiedIcon.js +52 -0
- package/cjs/icons/components/ChatIcon.js +43 -0
- package/cjs/icons/components/CheckIcon.js +43 -0
- package/cjs/icons/components/CheckThinIcon.js +43 -0
- package/cjs/icons/components/CheckmarkFilledIcon.js +42 -0
- package/cjs/icons/components/CheckmarkIcon.js +42 -0
- package/cjs/icons/components/ClipboardFilledIcon.js +42 -0
- package/cjs/icons/components/ClipboardIcon.js +42 -0
- package/cjs/icons/components/ClockFilledIcon.js +44 -0
- package/cjs/icons/components/ClockIcon.js +43 -0
- package/cjs/icons/components/CloseIcon.js +43 -0
- package/cjs/icons/components/CloseThinIcon.js +44 -0
- package/cjs/icons/components/CoffeeIcon.js +43 -0
- package/cjs/icons/components/CombiIcon.js +44 -0
- package/cjs/icons/components/CommentCircleFilledIcon.js +48 -0
- package/cjs/icons/components/CommentCircleIconIcon.js +46 -0
- package/cjs/icons/components/CommentIcon.js +46 -0
- package/cjs/icons/components/ContactIcon.js +46 -0
- package/cjs/icons/components/CoupeIcon.js +44 -0
- package/cjs/icons/components/CreditCardIcon.js +43 -0
- package/cjs/icons/components/CrossCircleIcon.js +42 -0
- package/cjs/icons/components/CrownIcon.js +43 -0
- package/cjs/icons/components/DealmakerIcon.js +48 -0
- package/cjs/icons/components/DeliveryIcon.js +51 -0
- package/cjs/icons/components/DetailedSearchIcon.js +43 -0
- package/cjs/icons/components/EcoFriendlyIcon.js +46 -0
- package/cjs/icons/components/EditIcon.js +43 -0
- package/cjs/icons/components/EngineIcon.js +42 -0
- package/cjs/icons/components/EnglandFlagIcon.js +60 -0
- package/cjs/icons/components/EvaluationIcon.js +46 -0
- package/cjs/icons/components/ExaminationMarkFilledIcon.js +42 -0
- package/cjs/icons/components/ExaminationMarkIcon.js +42 -0
- package/cjs/icons/components/ExteriorIcon.js +42 -0
- package/cjs/icons/components/EyeIcon.js +48 -0
- package/cjs/icons/components/FacebookBtnIcon.js +42 -0
- package/cjs/icons/components/FacebookIcon.js +44 -0
- package/cjs/icons/components/FatalIcon.js +44 -0
- package/cjs/icons/components/FavouriteIcon.js +42 -0
- package/cjs/icons/components/FavouriteSolidIcon.js +42 -0
- package/cjs/icons/components/FilterIcon.js +44 -0
- package/cjs/icons/components/FinanceIcon.js +42 -0
- package/cjs/icons/components/FindCarIcon.js +42 -0
- package/cjs/icons/components/FixedMonthlyCostIcon.js +48 -0
- package/cjs/icons/components/FlagIcon.js +42 -0
- package/cjs/icons/components/FlexibilityIcon.js +48 -0
- package/cjs/icons/components/ForumLargeIcon.js +42 -0
- package/cjs/icons/components/ForumSmallIcon.js +42 -0
- package/cjs/icons/components/GavelIcon.js +44 -0
- package/cjs/icons/components/GearboxIcon.js +44 -0
- package/cjs/icons/components/GiftIcon.js +58 -0
- package/cjs/icons/components/GridViewIcon.js +42 -0
- package/cjs/icons/components/GroupIcon.js +79 -0
- package/cjs/icons/components/GuaranteeIcon.js +42 -0
- package/cjs/icons/components/GuaranteeLargeIcon.js +42 -0
- package/cjs/icons/components/GuaranteeSmallIcon.js +42 -0
- package/cjs/icons/components/HalfCombiIcon.js +44 -0
- package/cjs/icons/components/HamburgerIcon.js +42 -0
- package/cjs/icons/components/HandshakeIcon.js +42 -0
- package/cjs/icons/components/HelpingHandIcon.js +60 -0
- package/cjs/icons/components/IdIcon.js +45 -0
- package/cjs/icons/components/InformationIcon.js +42 -0
- package/cjs/icons/components/InstagramIcon.js +49 -0
- package/cjs/icons/components/InsuranceIcon.js +42 -0
- package/cjs/icons/components/InteriorIcon.js +44 -0
- package/cjs/icons/components/InteriorThinIcon.js +44 -0
- package/cjs/icons/components/InternationalIcon.js +50 -0
- package/cjs/icons/components/KvdTestIcon.js +42 -0
- package/cjs/icons/components/KvdVenueIcon.js +42 -0
- package/cjs/icons/components/LifebuoyIcon.js +42 -0
- package/cjs/icons/components/LiftTruckIcon.js +42 -0
- package/cjs/icons/components/LinkedInIcon.js +42 -0
- package/cjs/icons/components/ListViewIcon.js +64 -0
- package/cjs/icons/components/MailIcon.js +44 -0
- package/cjs/icons/components/MinibusIcon.js +44 -0
- package/cjs/icons/components/MinivanIcon.js +45 -0
- package/cjs/icons/components/MobileIcon.js +52 -0
- package/cjs/icons/components/MotorcycleIcon.js +74 -0
- package/cjs/icons/components/MrfLogoIcon.js +53 -0
- package/cjs/icons/components/NotFoundIcon.js +42 -0
- package/cjs/icons/components/OverbidIcon.js +44 -0
- package/cjs/icons/components/PdfIconIcon.js +42 -0
- package/cjs/icons/components/PhoneIcon.js +44 -0
- package/cjs/icons/components/PickUpIcon.js +42 -0
- package/cjs/icons/components/PinIcon.js +42 -0
- package/cjs/icons/components/PlayIcon.js +42 -0
- package/cjs/icons/components/Pricetag.js +51 -0
- package/cjs/icons/components/PricetagFilledKronaIcon.js +47 -0
- package/cjs/icons/components/PrivateCarIcon.js +42 -0
- package/cjs/icons/components/ProfileCircleIcon.js +42 -0
- package/cjs/icons/components/ProfileIcon.js +42 -0
- package/cjs/icons/components/RadioIcon.js +54 -0
- package/cjs/icons/components/ReclamationIcon.js +42 -0
- package/cjs/icons/components/ReleasingIcon.js +48 -0
- package/cjs/icons/components/RemoveFilterIcon.js +42 -0
- package/cjs/icons/components/ReservedPriceIcon.js +42 -0
- package/cjs/icons/components/ResultIcon.js +42 -0
- package/cjs/icons/components/SafePaymentIcon.js +42 -0
- package/cjs/icons/components/SaleTagIcon.js +42 -0
- package/cjs/icons/components/SearchCheckIcon.js +48 -0
- package/cjs/icons/components/SearchIcon.js +42 -0
- package/cjs/icons/components/SedanIcon.js +44 -0
- package/cjs/icons/components/SellCarIcon.js +42 -0
- package/cjs/icons/components/SellCarsIcon.js +42 -0
- package/cjs/icons/components/ServiceIcon.js +47 -0
- package/cjs/icons/components/ShareIcon.js +68 -0
- package/cjs/icons/components/ShieldIcon.js +42 -0
- package/cjs/icons/components/SignInIcon.js +42 -0
- package/cjs/icons/components/SignOutIcon.js +42 -0
- package/cjs/icons/components/SpeedMeterIcon.js +44 -0
- package/cjs/icons/components/StarCircleIcon.js +42 -0
- package/cjs/icons/components/StartIcon.js +50 -0
- package/cjs/icons/components/StoreIcon.js +42 -0
- package/cjs/icons/components/SuvIcon.js +44 -0
- package/cjs/icons/components/SwedenFlag.js +50 -0
- package/cjs/icons/components/TankIcon.js +52 -0
- package/cjs/icons/components/TireIcon.js +42 -0
- package/cjs/icons/components/TransportIcon.js +42 -0
- package/cjs/icons/components/TrashcanIcon.js +42 -0
- package/cjs/icons/components/TrophyIcon.js +42 -0
- package/cjs/icons/components/TruckIcon.js +42 -0
- package/cjs/icons/components/UmbrellaIcon.js +42 -0
- package/cjs/icons/components/ValuationIcon.js +42 -0
- package/cjs/icons/components/ValueIcon.js +47 -0
- package/cjs/icons/components/WarningIcon.js +42 -0
- package/cjs/icons/components/YoutubeIcon.js +42 -0
- package/cjs/icons/components/index.js +320 -0
- package/cjs/index.js +438 -0
- package/cjs/react-app-env.d.js +2 -0
- package/cjs/shared/constants.js +7 -0
- package/cjs/shared/helpers.js +28 -0
- package/cjs/shared/helpers.spec.js +36 -0
- package/cjs/shared/media-queries.js +41 -0
- package/cjs/styled.d.js +4 -0
- package/cjs/theme.js +125 -0
- package/cjs/typography/BodyText/index.js +66 -0
- package/cjs/typography/ButtonText/index.js +48 -0
- package/cjs/typography/Heading/index.js +92 -0
- package/cjs/utils/utils.js +33 -0
- package/esm/ColorCard.js +40 -0
- package/esm/ElevationCard.js +27 -0
- package/esm/Interfaces.js +1 -0
- package/esm/Types.js +1 -0
- package/esm/components/Accordion/index.js +115 -0
- package/esm/components/Badge/index.js +69 -0
- package/esm/components/Button/index.js +161 -0
- package/esm/components/Card/index.js +19 -0
- package/esm/components/CheckBox/index.js +100 -0
- package/esm/components/Chip/index.js +90 -0
- package/esm/components/DayPicker/DayPickerNavBar.js +52 -0
- package/esm/components/DayPicker/index.js +66 -0
- package/esm/components/DayPicker/localeUtils.js +52 -0
- package/esm/components/Dialog/index.js +79 -0
- package/esm/components/ErrorMessage/index.js +22 -0
- package/esm/components/FieldLabel.js +51 -0
- package/esm/components/Header/Hamburger.js +47 -0
- package/esm/components/Header/Link.js +45 -0
- package/esm/components/Header/index.js +109 -0
- package/esm/components/Hero/index.js +56 -0
- package/esm/components/Icon/index.js +107 -0
- package/esm/components/IconButton.js +122 -0
- package/esm/components/Icons/Arrow.js +12 -0
- package/esm/components/Icons/CheckCircle.js +12 -0
- package/esm/components/Icons/CheckIcon.js +12 -0
- package/esm/components/Icons/Close.js +12 -0
- package/esm/components/Icons/ErrorCircle.js +12 -0
- package/esm/components/Icons/InfoCircle.js +12 -0
- package/esm/components/InlineStepper/Step.js +107 -0
- package/esm/components/InlineStepper/StepCircle.js +85 -0
- package/esm/components/InlineStepper/index.js +43 -0
- package/esm/components/ListItem/Bacon.js +12 -0
- package/esm/components/ListItem/index.js +48 -0
- package/esm/components/Logo/LogoEn.js +31 -0
- package/esm/components/Logo/LogoSv.js +31 -0
- package/esm/components/Logo/index.js +23 -0
- package/esm/components/MenuItem/index.js +90 -0
- package/esm/components/Modal/index.js +128 -0
- package/esm/components/NotificationButton/index.js +31 -0
- package/esm/components/OffCanvas/Overlay.js +61 -0
- package/esm/components/OffCanvas/index.js +124 -0
- package/esm/components/OffCanvas/useClickOutside.js +17 -0
- package/esm/components/RadioButton/index.js +139 -0
- package/esm/components/Range/index.js +73 -0
- package/esm/components/Select/components/test-icon.js +12 -0
- package/esm/components/Select/index.js +215 -0
- package/esm/components/Snackbar/index.js +146 -0
- package/esm/components/Spinner/index.js +60 -0
- package/esm/components/Stepper/index.js +52 -0
- package/esm/components/StepperAccordion/index.js +124 -0
- package/esm/components/Tabs/index.js +61 -0
- package/esm/components/TextArea/index.js +111 -0
- package/esm/components/Textfield/index.js +121 -0
- package/esm/components/TimePicker/index.js +40 -0
- package/esm/components/TimePicker/testHelper.js +12 -0
- package/esm/components/Toggle/index.js +75 -0
- package/esm/icons/components/AccountCreateIcon.js +22 -0
- package/esm/icons/components/AccountIcon.js +18 -0
- package/esm/icons/components/AccountLoginIcon.js +24 -0
- package/esm/icons/components/ArrowDownIcon.js +18 -0
- package/esm/icons/components/ArrowLeftIcon.js +16 -0
- package/esm/icons/components/ArrowLeftSharpIcon.js +18 -0
- package/esm/icons/components/ArrowLeftSmallIcon.js +18 -0
- package/esm/icons/components/ArrowLong.js +19 -0
- package/esm/icons/components/ArrowRestartIcon.js +18 -0
- package/esm/icons/components/ArrowRightIcon.js +16 -0
- package/esm/icons/components/ArrowRightSharpIcon.js +18 -0
- package/esm/icons/components/ArrowUpIcon.js +18 -0
- package/esm/icons/components/AuctionIcon.js +16 -0
- package/esm/icons/components/BackArrowIcon.js +16 -0
- package/esm/icons/components/Baseline360Icon.js +19 -0
- package/esm/icons/components/BellIcon.js +16 -0
- package/esm/icons/components/BidIcon.js +16 -0
- package/esm/icons/components/BidKrIcon.js +22 -0
- package/esm/icons/components/BreaksIcon.js +16 -0
- package/esm/icons/components/BuyCarIcon.js +16 -0
- package/esm/icons/components/CabIcon.js +18 -0
- package/esm/icons/components/CalendarIcon.js +25 -0
- package/esm/icons/components/CameraIcon.js +16 -0
- package/esm/icons/components/Car360Icon.js +41 -0
- package/esm/icons/components/CarFrontIcon.js +16 -0
- package/esm/icons/components/CarSearchIcon.js +16 -0
- package/esm/icons/components/CarSideIcon.js +16 -0
- package/esm/icons/components/CarTiresIcon.js +16 -0
- package/esm/icons/components/CaravanIcon.js +16 -0
- package/esm/icons/components/CardViewIcon.js +42 -0
- package/esm/icons/components/CarloanIcon.js +18 -0
- package/esm/icons/components/CertifiedIcon.js +26 -0
- package/esm/icons/components/ChatIcon.js +17 -0
- package/esm/icons/components/CheckIcon.js +17 -0
- package/esm/icons/components/CheckThinIcon.js +17 -0
- package/esm/icons/components/CheckmarkFilledIcon.js +16 -0
- package/esm/icons/components/CheckmarkIcon.js +16 -0
- package/esm/icons/components/ClipboardFilledIcon.js +16 -0
- package/esm/icons/components/ClipboardIcon.js +16 -0
- package/esm/icons/components/ClockFilledIcon.js +18 -0
- package/esm/icons/components/ClockIcon.js +17 -0
- package/esm/icons/components/CloseIcon.js +17 -0
- package/esm/icons/components/CloseThinIcon.js +18 -0
- package/esm/icons/components/CoffeeIcon.js +17 -0
- package/esm/icons/components/CombiIcon.js +18 -0
- package/esm/icons/components/CommentCircleFilledIcon.js +22 -0
- package/esm/icons/components/CommentCircleIconIcon.js +20 -0
- package/esm/icons/components/CommentIcon.js +20 -0
- package/esm/icons/components/ContactIcon.js +20 -0
- package/esm/icons/components/CoupeIcon.js +18 -0
- package/esm/icons/components/CreditCardIcon.js +17 -0
- package/esm/icons/components/CrossCircleIcon.js +16 -0
- package/esm/icons/components/CrownIcon.js +17 -0
- package/esm/icons/components/DealmakerIcon.js +22 -0
- package/esm/icons/components/DeliveryIcon.js +25 -0
- package/esm/icons/components/DetailedSearchIcon.js +17 -0
- package/esm/icons/components/EcoFriendlyIcon.js +20 -0
- package/esm/icons/components/EditIcon.js +17 -0
- package/esm/icons/components/EngineIcon.js +16 -0
- package/esm/icons/components/EnglandFlagIcon.js +34 -0
- package/esm/icons/components/EvaluationIcon.js +20 -0
- package/esm/icons/components/ExaminationMarkFilledIcon.js +16 -0
- package/esm/icons/components/ExaminationMarkIcon.js +16 -0
- package/esm/icons/components/ExteriorIcon.js +16 -0
- package/esm/icons/components/EyeIcon.js +22 -0
- package/esm/icons/components/FacebookBtnIcon.js +16 -0
- package/esm/icons/components/FacebookIcon.js +18 -0
- package/esm/icons/components/FatalIcon.js +18 -0
- package/esm/icons/components/FavouriteIcon.js +16 -0
- package/esm/icons/components/FavouriteSolidIcon.js +16 -0
- package/esm/icons/components/FilterIcon.js +18 -0
- package/esm/icons/components/FinanceIcon.js +16 -0
- package/esm/icons/components/FindCarIcon.js +16 -0
- package/esm/icons/components/FixedMonthlyCostIcon.js +22 -0
- package/esm/icons/components/FlagIcon.js +16 -0
- package/esm/icons/components/FlexibilityIcon.js +22 -0
- package/esm/icons/components/ForumLargeIcon.js +16 -0
- package/esm/icons/components/ForumSmallIcon.js +16 -0
- package/esm/icons/components/GavelIcon.js +18 -0
- package/esm/icons/components/GearboxIcon.js +18 -0
- package/esm/icons/components/GiftIcon.js +32 -0
- package/esm/icons/components/GridViewIcon.js +16 -0
- package/esm/icons/components/GroupIcon.js +53 -0
- package/esm/icons/components/GuaranteeIcon.js +16 -0
- package/esm/icons/components/GuaranteeLargeIcon.js +16 -0
- package/esm/icons/components/GuaranteeSmallIcon.js +16 -0
- package/esm/icons/components/HalfCombiIcon.js +18 -0
- package/esm/icons/components/HamburgerIcon.js +16 -0
- package/esm/icons/components/HandshakeIcon.js +16 -0
- package/esm/icons/components/HelpingHandIcon.js +34 -0
- package/esm/icons/components/IdIcon.js +19 -0
- package/esm/icons/components/InformationIcon.js +16 -0
- package/esm/icons/components/InstagramIcon.js +23 -0
- package/esm/icons/components/InsuranceIcon.js +16 -0
- package/esm/icons/components/InteriorIcon.js +18 -0
- package/esm/icons/components/InteriorThinIcon.js +18 -0
- package/esm/icons/components/InternationalIcon.js +24 -0
- package/esm/icons/components/KvdTestIcon.js +16 -0
- package/esm/icons/components/KvdVenueIcon.js +16 -0
- package/esm/icons/components/LifebuoyIcon.js +16 -0
- package/esm/icons/components/LiftTruckIcon.js +16 -0
- package/esm/icons/components/LinkedInIcon.js +16 -0
- package/esm/icons/components/ListViewIcon.js +38 -0
- package/esm/icons/components/MailIcon.js +18 -0
- package/esm/icons/components/MinibusIcon.js +18 -0
- package/esm/icons/components/MinivanIcon.js +19 -0
- package/esm/icons/components/MobileIcon.js +26 -0
- package/esm/icons/components/MotorcycleIcon.js +48 -0
- package/esm/icons/components/MrfLogoIcon.js +27 -0
- package/esm/icons/components/NotFoundIcon.js +16 -0
- package/esm/icons/components/OverbidIcon.js +18 -0
- package/esm/icons/components/PdfIconIcon.js +16 -0
- package/esm/icons/components/PhoneIcon.js +18 -0
- package/esm/icons/components/PickUpIcon.js +16 -0
- package/esm/icons/components/PinIcon.js +16 -0
- package/esm/icons/components/PlayIcon.js +16 -0
- package/esm/icons/components/Pricetag.js +25 -0
- package/esm/icons/components/PricetagFilledKronaIcon.js +21 -0
- package/esm/icons/components/PrivateCarIcon.js +16 -0
- package/esm/icons/components/ProfileCircleIcon.js +16 -0
- package/esm/icons/components/ProfileIcon.js +16 -0
- package/esm/icons/components/RadioIcon.js +28 -0
- package/esm/icons/components/ReclamationIcon.js +16 -0
- package/esm/icons/components/ReleasingIcon.js +22 -0
- package/esm/icons/components/RemoveFilterIcon.js +16 -0
- package/esm/icons/components/ReservedPriceIcon.js +16 -0
- package/esm/icons/components/ResultIcon.js +16 -0
- package/esm/icons/components/SafePaymentIcon.js +16 -0
- package/esm/icons/components/SaleTagIcon.js +16 -0
- package/esm/icons/components/SearchCheckIcon.js +22 -0
- package/esm/icons/components/SearchIcon.js +16 -0
- package/esm/icons/components/SedanIcon.js +18 -0
- package/esm/icons/components/SellCarIcon.js +16 -0
- package/esm/icons/components/SellCarsIcon.js +16 -0
- package/esm/icons/components/ServiceIcon.js +21 -0
- package/esm/icons/components/ShareIcon.js +42 -0
- package/esm/icons/components/ShieldIcon.js +16 -0
- package/esm/icons/components/SignInIcon.js +16 -0
- package/esm/icons/components/SignOutIcon.js +16 -0
- package/esm/icons/components/SpeedMeterIcon.js +18 -0
- package/esm/icons/components/StarCircleIcon.js +16 -0
- package/esm/icons/components/StartIcon.js +24 -0
- package/esm/icons/components/StoreIcon.js +16 -0
- package/esm/icons/components/SuvIcon.js +18 -0
- package/esm/icons/components/SwedenFlag.js +24 -0
- package/esm/icons/components/TankIcon.js +26 -0
- package/esm/icons/components/TireIcon.js +16 -0
- package/esm/icons/components/TransportIcon.js +16 -0
- package/esm/icons/components/TrashcanIcon.js +16 -0
- package/esm/icons/components/TrophyIcon.js +16 -0
- package/esm/icons/components/TruckIcon.js +16 -0
- package/esm/icons/components/UmbrellaIcon.js +16 -0
- package/esm/icons/components/ValuationIcon.js +16 -0
- package/esm/icons/components/ValueIcon.js +21 -0
- package/esm/icons/components/WarningIcon.js +16 -0
- package/esm/icons/components/YoutubeIcon.js +16 -0
- package/esm/icons/components/index.js +157 -0
- package/esm/index.js +220 -0
- package/esm/react-app-env.d.js +1 -0
- package/esm/shared/constants.js +3 -0
- package/esm/shared/helpers.js +23 -0
- package/esm/shared/helpers.spec.js +34 -0
- package/esm/shared/media-queries.js +35 -0
- package/esm/styled.d.js +1 -0
- package/esm/theme.js +121 -0
- package/esm/typography/BodyText/index.js +48 -0
- package/esm/typography/ButtonText/index.js +33 -0
- package/esm/typography/Heading/index.js +76 -0
- package/esm/utils/utils.js +28 -0
- package/package.json +11 -5
- package/{ColorCard.d.ts → types/ColorCard.d.ts} +0 -0
- package/{ElevationCard.d.ts → types/ElevationCard.d.ts} +0 -0
- package/{Interfaces.d.ts → types/Interfaces.d.ts} +0 -0
- package/{Types.d.ts → types/Types.d.ts} +0 -0
- package/{components → types/components}/Accordion/index.d.ts +0 -0
- package/{components → types/components}/Badge/index.d.ts +0 -0
- package/{components → types/components}/Button/index.d.ts +0 -0
- package/{components → types/components}/Card/index.d.ts +0 -0
- package/{components → types/components}/CheckBox/index.d.ts +0 -0
- package/{components → types/components}/Chip/index.d.ts +0 -0
- package/{components → types/components}/DayPicker/DayPickerNavBar.d.ts +0 -0
- package/{components → types/components}/DayPicker/index.d.ts +0 -0
- package/{components → types/components}/DayPicker/localeUtils.d.ts +0 -0
- package/{components → types/components}/Dialog/index.d.ts +0 -0
- package/{components → types/components}/ErrorMessage/index.d.ts +0 -0
- package/{components → types/components}/FieldLabel.d.ts +0 -0
- package/{components → types/components}/Header/Hamburger.d.ts +0 -0
- package/{components → types/components}/Header/Link.d.ts +0 -0
- package/{components → types/components}/Header/index.d.ts +0 -0
- package/{components → types/components}/Hero/index.d.ts +0 -0
- package/{components → types/components}/Icon/index.d.ts +0 -0
- package/{components → types/components}/IconButton.d.ts +0 -0
- package/{components → types/components}/Icons/Arrow.d.ts +0 -0
- package/{components → types/components}/Icons/CheckCircle.d.ts +0 -0
- package/{components → types/components}/Icons/CheckIcon.d.ts +0 -0
- package/{components → types/components}/Icons/Close.d.ts +0 -0
- package/{components → types/components}/Icons/ErrorCircle.d.ts +0 -0
- package/{components → types/components}/Icons/InfoCircle.d.ts +0 -0
- package/{components → types/components}/InlineStepper/Step.d.ts +0 -0
- package/{components → types/components}/InlineStepper/StepCircle.d.ts +0 -0
- package/{components → types/components}/InlineStepper/index.d.ts +0 -0
- package/{components → types/components}/ListItem/Bacon.d.ts +0 -0
- package/{components → types/components}/ListItem/index.d.ts +0 -0
- package/{components → types/components}/Logo/LogoEn.d.ts +0 -0
- package/{components → types/components}/Logo/LogoSv.d.ts +0 -0
- package/{components → types/components}/Logo/index.d.ts +0 -0
- package/{components → types/components}/MenuItem/index.d.ts +0 -0
- package/{components → types/components}/Modal/index.d.ts +0 -0
- package/{components → types/components}/NotificationButton/index.d.ts +0 -0
- package/{components → types/components}/OffCanvas/Overlay.d.ts +0 -0
- package/{components → types/components}/OffCanvas/index.d.ts +0 -0
- package/{components → types/components}/OffCanvas/useClickOutside.d.ts +0 -0
- package/{components → types/components}/RadioButton/index.d.ts +0 -0
- package/{components → types/components}/Range/index.d.ts +0 -0
- package/types/components/Select/components/test-icon.d.ts +1 -0
- package/{components → types/components}/Select/index.d.ts +0 -0
- package/{components → types/components}/Snackbar/index.d.ts +0 -0
- package/{components → types/components}/Spinner/index.d.ts +0 -0
- package/{components → types/components}/Stepper/index.d.ts +0 -0
- package/{components → types/components}/StepperAccordion/index.d.ts +0 -0
- package/{components → types/components}/Tabs/index.d.ts +0 -0
- package/{components → types/components}/TextArea/index.d.ts +0 -0
- package/{components → types/components}/Textfield/index.d.ts +0 -0
- package/{components → types/components}/TimePicker/index.d.ts +0 -0
- package/{components → types/components}/TimePicker/testHelper.d.ts +0 -0
- package/{components → types/components}/Toggle/index.d.ts +0 -0
- package/{icons → types/icons}/components/AccountCreateIcon.d.ts +0 -0
- package/{icons → types/icons}/components/AccountIcon.d.ts +0 -0
- package/{icons → types/icons}/components/AccountLoginIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowDownIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowLeftIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowLeftSharpIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowLeftSmallIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowLong.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowRestartIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowRightIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowRightSharpIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ArrowUpIcon.d.ts +0 -0
- package/{icons → types/icons}/components/AuctionIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BackArrowIcon.d.ts +0 -0
- package/{icons → types/icons}/components/Baseline360Icon.d.ts +0 -0
- package/{icons → types/icons}/components/BellIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BidIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BidKrIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BreaksIcon.d.ts +0 -0
- package/{icons → types/icons}/components/BuyCarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CabIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CalendarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CameraIcon.d.ts +0 -0
- package/{icons → types/icons}/components/Car360Icon.d.ts +0 -0
- package/{icons → types/icons}/components/CarFrontIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CarSearchIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CarSideIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CarTiresIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CaravanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CardViewIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CarloanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CertifiedIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ChatIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CheckIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CheckThinIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CheckmarkFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CheckmarkIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ClipboardFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ClipboardIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ClockFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ClockIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CloseIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CloseThinIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CoffeeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CombiIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CommentCircleFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CommentCircleIconIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CommentIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ContactIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CoupeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CreditCardIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CrossCircleIcon.d.ts +0 -0
- package/{icons → types/icons}/components/CrownIcon.d.ts +0 -0
- package/{icons → types/icons}/components/DealmakerIcon.d.ts +0 -0
- package/{icons → types/icons}/components/DeliveryIcon.d.ts +0 -0
- package/{icons → types/icons}/components/DetailedSearchIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EcoFriendlyIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EditIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EngineIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EnglandFlagIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EvaluationIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ExaminationMarkFilledIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ExaminationMarkIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ExteriorIcon.d.ts +0 -0
- package/{icons → types/icons}/components/EyeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FacebookBtnIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FacebookIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FatalIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FavouriteIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FavouriteSolidIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FilterIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FinanceIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FindCarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FixedMonthlyCostIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FlagIcon.d.ts +0 -0
- package/{icons → types/icons}/components/FlexibilityIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ForumLargeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ForumSmallIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GavelIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GearboxIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GiftIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GridViewIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GroupIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GuaranteeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GuaranteeLargeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/GuaranteeSmallIcon.d.ts +0 -0
- package/{icons → types/icons}/components/HalfCombiIcon.d.ts +0 -0
- package/{icons → types/icons}/components/HamburgerIcon.d.ts +0 -0
- package/{icons → types/icons}/components/HandshakeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/HelpingHandIcon.d.ts +0 -0
- package/{icons → types/icons}/components/IdIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InformationIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InstagramIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InsuranceIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InteriorIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InteriorThinIcon.d.ts +0 -0
- package/{icons → types/icons}/components/InternationalIcon.d.ts +0 -0
- package/{icons → types/icons}/components/KvdTestIcon.d.ts +0 -0
- package/{icons → types/icons}/components/KvdVenueIcon.d.ts +0 -0
- package/{icons → types/icons}/components/LifebuoyIcon.d.ts +0 -0
- package/{icons → types/icons}/components/LiftTruckIcon.d.ts +0 -0
- package/{icons → types/icons}/components/LinkedInIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ListViewIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MailIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MinibusIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MinivanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MobileIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MotorcycleIcon.d.ts +0 -0
- package/{icons → types/icons}/components/MrfLogoIcon.d.ts +0 -0
- package/{icons → types/icons}/components/NotFoundIcon.d.ts +0 -0
- package/{icons → types/icons}/components/OverbidIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PdfIconIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PhoneIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PickUpIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PinIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PlayIcon.d.ts +0 -0
- package/{icons → types/icons}/components/Pricetag.d.ts +0 -0
- package/{icons → types/icons}/components/PricetagFilledKronaIcon.d.ts +0 -0
- package/{icons → types/icons}/components/PrivateCarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ProfileCircleIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ProfileIcon.d.ts +0 -0
- package/{icons → types/icons}/components/RadioIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ReclamationIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ReleasingIcon.d.ts +0 -0
- package/{icons → types/icons}/components/RemoveFilterIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ReservedPriceIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ResultIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SafePaymentIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SaleTagIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SearchCheckIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SearchIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SedanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SellCarIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SellCarsIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ServiceIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ShareIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ShieldIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SignInIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SignOutIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SpeedMeterIcon.d.ts +0 -0
- package/{icons → types/icons}/components/StarCircleIcon.d.ts +0 -0
- package/{icons → types/icons}/components/StartIcon.d.ts +0 -0
- package/{icons → types/icons}/components/StoreIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SuvIcon.d.ts +0 -0
- package/{icons → types/icons}/components/SwedenFlag.d.ts +0 -0
- package/{icons → types/icons}/components/TankIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TireIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TransportIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TrashcanIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TrophyIcon.d.ts +0 -0
- package/{icons → types/icons}/components/TruckIcon.d.ts +0 -0
- package/{icons → types/icons}/components/UmbrellaIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ValuationIcon.d.ts +0 -0
- package/{icons → types/icons}/components/ValueIcon.d.ts +0 -0
- package/{icons → types/icons}/components/WarningIcon.d.ts +0 -0
- package/{icons → types/icons}/components/YoutubeIcon.d.ts +0 -0
- package/{icons → types/icons}/components/index.d.ts +0 -0
- package/types/icons/template.d.ts +10 -0
- package/{index.d.ts → types/index.d.ts} +0 -0
- package/types/serviceWorker.d.ts +2 -0
- package/{setupTests.d.ts → types/setupTests.d.ts} +0 -0
- package/{shared → types/shared}/constants.d.ts +0 -0
- package/{shared → types/shared}/helpers.d.ts +0 -0
- package/{shared → types/shared}/media-queries.d.ts +0 -0
- package/{testUtils.d.ts → types/testUtils.d.ts} +0 -0
- package/{theme.d.ts → types/theme.d.ts} +3 -3
- package/{typography → types/typography}/BodyText/index.d.ts +0 -0
- package/{typography → types/typography}/ButtonText/index.d.ts +0 -0
- package/{typography → types/typography}/Heading/index.d.ts +0 -0
- package/{utils → types/utils}/utils.d.ts +0 -0
- package/kvdbil-components.css +0 -224
- package/kvdbil-components.js +0 -1501
- package/kvdbil-components.js.map +0 -1
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { useRef } from 'react';
|
|
2
|
+
import { createPortal } from 'react-dom';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { CSSTransition } from 'react-transition-group';
|
|
5
|
+
import Overlay from './Overlay.js';
|
|
6
|
+
import { useOutsideClick } from './useClickOutside.js';
|
|
7
|
+
|
|
8
|
+
const defaultAnimationName = "offCanvasAnimation";
|
|
9
|
+
const defaultTransitionProps = {
|
|
10
|
+
timeout: {
|
|
11
|
+
enter: 300,
|
|
12
|
+
exit: 300
|
|
13
|
+
},
|
|
14
|
+
mountOnEnter: true,
|
|
15
|
+
unmountOnExit: true
|
|
16
|
+
};
|
|
17
|
+
const Container = styled.div`
|
|
18
|
+
${({
|
|
19
|
+
animationName,
|
|
20
|
+
animationDuration,
|
|
21
|
+
width,
|
|
22
|
+
from,
|
|
23
|
+
backgroundColor,
|
|
24
|
+
theme
|
|
25
|
+
}) => {
|
|
26
|
+
return `
|
|
27
|
+
position: fixed;
|
|
28
|
+
z-index: 1001;
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
top: 0;
|
|
32
|
+
${from === "left" ? "left: 0;" : "right: 0;"}
|
|
33
|
+
background-color: ${backgroundColor || theme.colors.background.light};
|
|
34
|
+
width: ${width};
|
|
35
|
+
box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.2);
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
&.${animationName}--right-enter {
|
|
39
|
+
transform: translate3d(${width}, 0, 0);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.${animationName}--right-enter.${animationName}--right-enter-active {
|
|
43
|
+
transform: translate3d(0, 0, 0);
|
|
44
|
+
transition: transform 0.2s ease-in-out;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.${animationName}--right-exit {
|
|
48
|
+
transform: translate3d(0, 0, 0);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.${animationName}--right-exit.${animationName}--right-exit-active {
|
|
52
|
+
transform: translate3d(${width}, 0, 0);
|
|
53
|
+
transition: transform 0.2s ease-in-out;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.${animationName}--left-enter {
|
|
57
|
+
transform: translate3d(-${width}, 0, 0);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.${animationName}--left-enter.${animationName}--left-enter-active {
|
|
61
|
+
transform: translate3d(0, 0, 0);
|
|
62
|
+
transition: transform 0.2s ease-in-out;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.${animationName}--left-exit {
|
|
66
|
+
transform: translate3d(0, 0, 0);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.${animationName}--left-exit.${animationName}--left-exit-active {
|
|
70
|
+
transform: translate3d(-${width}, 0, 0);
|
|
71
|
+
transition: transform ${animationDuration}ms ease-in-out;
|
|
72
|
+
}
|
|
73
|
+
`;
|
|
74
|
+
}}
|
|
75
|
+
`;
|
|
76
|
+
const Contents = styled.div`
|
|
77
|
+
position: relative;
|
|
78
|
+
width: 100%;
|
|
79
|
+
height: 100%;
|
|
80
|
+
overflow-x: hidden;
|
|
81
|
+
overflow-y: auto;
|
|
82
|
+
-webkit-overflow-scrolling: touch;
|
|
83
|
+
`;
|
|
84
|
+
const OffCanvas = ({
|
|
85
|
+
animationName = defaultAnimationName,
|
|
86
|
+
animationDuration = 300,
|
|
87
|
+
backgroundColor,
|
|
88
|
+
backgroundOverlay,
|
|
89
|
+
children,
|
|
90
|
+
from = "right",
|
|
91
|
+
isOpen,
|
|
92
|
+
onClickOutside,
|
|
93
|
+
width = "375px",
|
|
94
|
+
withPortal,
|
|
95
|
+
transitionProps
|
|
96
|
+
}) => {
|
|
97
|
+
const contentRef = useRef(null);
|
|
98
|
+
useOutsideClick(contentRef, () => onClickOutside == null ? void 0 : onClickOutside());
|
|
99
|
+
if (backgroundOverlay && !onClickOutside) {
|
|
100
|
+
console.error("Please provide a clickOutside handler when using backgroundOverlay option in OffCanvas component");
|
|
101
|
+
}
|
|
102
|
+
const className = `${animationName}--${from}`;
|
|
103
|
+
const component = /* @__PURE__ */ React.createElement(React.Fragment, null, backgroundOverlay && /* @__PURE__ */ React.createElement(Overlay, {
|
|
104
|
+
isOpen
|
|
105
|
+
}), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(CSSTransition, {
|
|
106
|
+
in: isOpen,
|
|
107
|
+
className: `${animationName} ${className}`,
|
|
108
|
+
classNames: className,
|
|
109
|
+
...defaultTransitionProps,
|
|
110
|
+
...transitionProps
|
|
111
|
+
}, /* @__PURE__ */ React.createElement(Container, {
|
|
112
|
+
ref: contentRef,
|
|
113
|
+
animationName,
|
|
114
|
+
animationDuration,
|
|
115
|
+
backgroundColor,
|
|
116
|
+
from,
|
|
117
|
+
width
|
|
118
|
+
}, /* @__PURE__ */ React.createElement(Contents, {
|
|
119
|
+
className: `${animationName}-content`
|
|
120
|
+
}, children)))));
|
|
121
|
+
return withPortal ? createPortal(component, document.body) : component;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export { OffCanvas, OffCanvas as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useCallback, useEffect } from 'react';
|
|
2
|
+
|
|
3
|
+
const useOutsideClick = (ref, callback) => {
|
|
4
|
+
const handleClick = useCallback((event) => {
|
|
5
|
+
if (ref.current && !ref.current.contains(event.target)) {
|
|
6
|
+
callback();
|
|
7
|
+
}
|
|
8
|
+
}, [callback, ref]);
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
document.addEventListener("mousedown", handleClick);
|
|
11
|
+
return () => {
|
|
12
|
+
document.removeEventListener("mousedown", handleClick);
|
|
13
|
+
};
|
|
14
|
+
}, [handleClick]);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { useOutsideClick };
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components';
|
|
2
|
+
import { generateNameHash } from '../../shared/helpers.js';
|
|
3
|
+
import theme from '../../theme.js';
|
|
4
|
+
import IconButton from '../IconButton.js';
|
|
5
|
+
|
|
6
|
+
const regularSize = css`
|
|
7
|
+
.circle {
|
|
8
|
+
&--outer {
|
|
9
|
+
height: 24px;
|
|
10
|
+
width: 24px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&--inner {
|
|
14
|
+
height: 100%;
|
|
15
|
+
width: 100%;
|
|
16
|
+
transform: scale(0.6);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
const largeSize = css`
|
|
21
|
+
.circle {
|
|
22
|
+
&--outer {
|
|
23
|
+
height: 32px;
|
|
24
|
+
width: 32px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&--inner {
|
|
28
|
+
height: 100%;
|
|
29
|
+
width: 100%;
|
|
30
|
+
transform: scale(0.6);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
const sizes = {
|
|
35
|
+
regular: regularSize,
|
|
36
|
+
large: largeSize
|
|
37
|
+
};
|
|
38
|
+
const disabledStyle = css`
|
|
39
|
+
cursor: default;
|
|
40
|
+
|
|
41
|
+
.circle {
|
|
42
|
+
&--inner {
|
|
43
|
+
background-color: ${theme.colors.gray.light1};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&--outer {
|
|
47
|
+
border: 2px solid ${theme.colors.gray.light1};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
`;
|
|
51
|
+
const checkedDisabledStyle = css`
|
|
52
|
+
.circle {
|
|
53
|
+
&--inner {
|
|
54
|
+
opacity: 1;
|
|
55
|
+
background-color: ${theme.colors.gray.light1};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
`;
|
|
59
|
+
const checkedStyle = (color) => css`
|
|
60
|
+
.circle {
|
|
61
|
+
&--inner {
|
|
62
|
+
opacity: 1;
|
|
63
|
+
background-color: ${theme.colors[color].main};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&--outer {
|
|
67
|
+
border: 2px solid ${theme.colors[color].main};
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
`;
|
|
71
|
+
const RadioButtonWrapper = styled.label`
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
display: flex;
|
|
74
|
+
position: relative;
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
|
|
78
|
+
${(props) => sizes[props.size]};
|
|
79
|
+
|
|
80
|
+
${(props) => !props.isDisabled && props.isChecked && checkedStyle(props.color)};
|
|
81
|
+
${(props) => props.isDisabled && disabledStyle};
|
|
82
|
+
|
|
83
|
+
${(props) => props.isChecked && props.isDisabled && checkedDisabledStyle};
|
|
84
|
+
`;
|
|
85
|
+
const HiddenRadioButton = styled.input`
|
|
86
|
+
display: none;
|
|
87
|
+
`;
|
|
88
|
+
const OuterCircle = styled.span`
|
|
89
|
+
display: flex;
|
|
90
|
+
box-sizing: border-box;
|
|
91
|
+
border-radius: 50%;
|
|
92
|
+
|
|
93
|
+
border: 2px solid ${theme.colors.gray.light1};
|
|
94
|
+
`;
|
|
95
|
+
const InnerCircle = styled.span`
|
|
96
|
+
box-sizing: border-box;
|
|
97
|
+
opacity: 0;
|
|
98
|
+
margin: auto;
|
|
99
|
+
border-radius: 50%;
|
|
100
|
+
background-color: ${theme.colors.gray.light1};
|
|
101
|
+
|
|
102
|
+
position: absolute;
|
|
103
|
+
top: 0;
|
|
104
|
+
left: 0;
|
|
105
|
+
`;
|
|
106
|
+
const RadioButton = ({
|
|
107
|
+
name = generateNameHash("radio-button"),
|
|
108
|
+
size = "regular",
|
|
109
|
+
checked = false,
|
|
110
|
+
isDisabled = false,
|
|
111
|
+
color = "secondary",
|
|
112
|
+
onChange,
|
|
113
|
+
...props
|
|
114
|
+
}) => /* @__PURE__ */ React.createElement(IconButton, {
|
|
115
|
+
onClick: onChange,
|
|
116
|
+
isActive: checked,
|
|
117
|
+
isDisabled,
|
|
118
|
+
color
|
|
119
|
+
}, /* @__PURE__ */ React.createElement(HiddenRadioButton, {
|
|
120
|
+
"data-validate": "checked",
|
|
121
|
+
type: "radio",
|
|
122
|
+
name,
|
|
123
|
+
id: name,
|
|
124
|
+
onChange,
|
|
125
|
+
disabled: isDisabled,
|
|
126
|
+
...props
|
|
127
|
+
}), /* @__PURE__ */ React.createElement(RadioButtonWrapper, {
|
|
128
|
+
htmlFor: name,
|
|
129
|
+
size,
|
|
130
|
+
color,
|
|
131
|
+
isChecked: checked,
|
|
132
|
+
isDisabled
|
|
133
|
+
}, /* @__PURE__ */ React.createElement(OuterCircle, {
|
|
134
|
+
className: "circle circle--outer"
|
|
135
|
+
}, /* @__PURE__ */ React.createElement(InnerCircle, {
|
|
136
|
+
className: "circle circle--inner"
|
|
137
|
+
}))));
|
|
138
|
+
|
|
139
|
+
export { RadioButton, RadioButton as default };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import theme from '../../theme.js';
|
|
3
|
+
import { CaptionLink } from '../../typography/BodyText/index.js';
|
|
4
|
+
import { Display1 } from '../../typography/Heading/index.js';
|
|
5
|
+
import '../../shared/media-queries.js';
|
|
6
|
+
|
|
7
|
+
const Container = styled.div`
|
|
8
|
+
display: flex;
|
|
9
|
+
position: relative;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
align-items: center;
|
|
12
|
+
`;
|
|
13
|
+
const RangeWrapper = styled.div`
|
|
14
|
+
display: flex;
|
|
15
|
+
position: relative;
|
|
16
|
+
width: 100%;
|
|
17
|
+
`;
|
|
18
|
+
const DisplayValue = styled(Display1)`
|
|
19
|
+
color: ${({ color }) => theme.colors[color].main};
|
|
20
|
+
line-height: 1;
|
|
21
|
+
margin-top: 0;
|
|
22
|
+
margin-bottom: 0;
|
|
23
|
+
`;
|
|
24
|
+
const Value = styled(CaptionLink)`
|
|
25
|
+
flex: 1;
|
|
26
|
+
color: ${theme.colors.gray.light1};
|
|
27
|
+
line-height: 1.2;
|
|
28
|
+
position: relative;
|
|
29
|
+
text-align: center;
|
|
30
|
+
&:before {
|
|
31
|
+
content: '';
|
|
32
|
+
background: ${({ color }) => theme.colors[color].main};
|
|
33
|
+
margin: 0 auto 2px;
|
|
34
|
+
display: flex;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
align-items: center;
|
|
37
|
+
height: 12px;
|
|
38
|
+
top: 34px;
|
|
39
|
+
position: relative;
|
|
40
|
+
width: 2px;
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
const MinValue = styled(Value)`
|
|
44
|
+
&:after {
|
|
45
|
+
content: '';
|
|
46
|
+
position: absolute;
|
|
47
|
+
width: 100%;
|
|
48
|
+
height: 4px;
|
|
49
|
+
background: ${({ color }) => theme.colors[color].main};
|
|
50
|
+
top: 40px;
|
|
51
|
+
left: 50%;
|
|
52
|
+
transform: translate(0, -50%);
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
55
|
+
const Range = ({
|
|
56
|
+
displayValue,
|
|
57
|
+
maxValue,
|
|
58
|
+
minValue,
|
|
59
|
+
color = "primary"
|
|
60
|
+
}) => {
|
|
61
|
+
return /* @__PURE__ */ React.createElement(Container, null, displayValue && /* @__PURE__ */ React.createElement(DisplayValue, {
|
|
62
|
+
as: "span",
|
|
63
|
+
color
|
|
64
|
+
}, displayValue), /* @__PURE__ */ React.createElement(RangeWrapper, null, /* @__PURE__ */ React.createElement(MinValue, {
|
|
65
|
+
as: "span",
|
|
66
|
+
color
|
|
67
|
+
}, minValue), /* @__PURE__ */ React.createElement(Value, {
|
|
68
|
+
as: "span",
|
|
69
|
+
color
|
|
70
|
+
}, maxValue)));
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export { Range, Range as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const TestIcon = () => /* @__PURE__ */ React.createElement("svg", {
|
|
2
|
+
viewBox: "0 0 896.003 896.004",
|
|
3
|
+
height: "18px",
|
|
4
|
+
width: "18px",
|
|
5
|
+
y: "0px",
|
|
6
|
+
x: "0px",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
8
|
+
}, /* @__PURE__ */ React.createElement("path", {
|
|
9
|
+
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"
|
|
10
|
+
}));
|
|
11
|
+
|
|
12
|
+
export { TestIcon };
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import ReactSelect from 'react-select';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { DEFAULT_TRANSITION_MS } from '../../shared/constants.js';
|
|
5
|
+
import { fadedColor } from '../../shared/helpers.js';
|
|
6
|
+
import theme from '../../theme.js';
|
|
7
|
+
import { Label } from '../FieldLabel.js';
|
|
8
|
+
|
|
9
|
+
const Container = styled.div`
|
|
10
|
+
font-family: ${({ theme: theme2 }) => theme2.typography.fontBaseFamily};
|
|
11
|
+
position: relative;
|
|
12
|
+
`;
|
|
13
|
+
const prefixStyles = (hasPrefix) => hasPrefix && {
|
|
14
|
+
paddingLeft: "2.5rem"
|
|
15
|
+
};
|
|
16
|
+
const disabledStyles = (isDisabled) => isDisabled && {
|
|
17
|
+
border: `1px solid ${theme.colors.gray.light1}`,
|
|
18
|
+
color: theme.colors.gray.dark1,
|
|
19
|
+
fill: theme.colors.gray.light1
|
|
20
|
+
};
|
|
21
|
+
const Prefix = styled.div`
|
|
22
|
+
position: absolute;
|
|
23
|
+
z-index: 1;
|
|
24
|
+
top: 0.5rem;
|
|
25
|
+
margin: 0.35rem 0.75rem;
|
|
26
|
+
|
|
27
|
+
fill: ${theme.colors.gray.dark5};
|
|
28
|
+
transition: ${DEFAULT_TRANSITION_MS};
|
|
29
|
+
|
|
30
|
+
${(props) => props.isDisabled && `
|
|
31
|
+
fill: ${theme.colors.gray.light1};
|
|
32
|
+
`}
|
|
33
|
+
|
|
34
|
+
${(props) => props.isFocused && `
|
|
35
|
+
fill: ${props.theme.colors.text.dark};
|
|
36
|
+
`}
|
|
37
|
+
`;
|
|
38
|
+
const HelperText = styled.span`
|
|
39
|
+
display: block;
|
|
40
|
+
font-family: ${({ theme: theme2 }) => theme2.typography.fontBaseFamily};
|
|
41
|
+
font-size: 0.81rem;
|
|
42
|
+
|
|
43
|
+
margin-top: 0.25rem;
|
|
44
|
+
margin-left: 0.85rem;
|
|
45
|
+
|
|
46
|
+
color: ${({ hasError }) => hasError ? theme.colors.error.main : theme.colors.text.dark};
|
|
47
|
+
`;
|
|
48
|
+
const Arrow = (props) => /* @__PURE__ */ React.createElement("svg", {
|
|
49
|
+
...props
|
|
50
|
+
}, /* @__PURE__ */ React.createElement("symbol", {
|
|
51
|
+
id: "icon-arrow",
|
|
52
|
+
viewBox: "0 0 19 19"
|
|
53
|
+
}, /* @__PURE__ */ React.createElement("path", {
|
|
54
|
+
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"
|
|
55
|
+
})), /* @__PURE__ */ React.createElement("use", {
|
|
56
|
+
xlinkHref: "#icon-arrow"
|
|
57
|
+
}));
|
|
58
|
+
const DropdownArrow = styled(Arrow)`
|
|
59
|
+
width: 0.8rem;
|
|
60
|
+
height: 0.8rem;
|
|
61
|
+
margin: 0 0.5rem;
|
|
62
|
+
${(props) => props.$isFocused && `color: ${props.$theme.colors.text.dark}`}
|
|
63
|
+
${(props) => props.$isDisabled && `color: ${props.$theme.colors.gray.dark1}`}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
path {
|
|
67
|
+
fill: currentColor;
|
|
68
|
+
stroke: currentColor;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
transition: transform ${DEFAULT_TRANSITION_MS};
|
|
72
|
+
|
|
73
|
+
transform: ${(props) => props.$isMenuOpen ? "rotate(-180deg)" : "rotate(0deg)"};
|
|
74
|
+
transform-origin: 50% 60%;
|
|
75
|
+
`;
|
|
76
|
+
const getBorderColor = (isFocused, hasError) => {
|
|
77
|
+
if (hasError) {
|
|
78
|
+
return theme.colors.error.main;
|
|
79
|
+
}
|
|
80
|
+
return isFocused ? theme.colors.text.dark : theme.colors.gray.light1;
|
|
81
|
+
};
|
|
82
|
+
const DropdownIndicator = ({
|
|
83
|
+
selectProps: { menuIsOpen = false },
|
|
84
|
+
isFocused = false,
|
|
85
|
+
isDisabled
|
|
86
|
+
}) => {
|
|
87
|
+
return /* @__PURE__ */ React.createElement(DropdownArrow, {
|
|
88
|
+
$isDisabled: isDisabled,
|
|
89
|
+
$isFocused: isFocused,
|
|
90
|
+
$isMenuOpen: menuIsOpen,
|
|
91
|
+
$theme: theme
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
const Select = ({
|
|
95
|
+
color = "primary",
|
|
96
|
+
isDisabled = false,
|
|
97
|
+
placeholder = "",
|
|
98
|
+
helperText,
|
|
99
|
+
height,
|
|
100
|
+
className,
|
|
101
|
+
hasError = false,
|
|
102
|
+
onBlur = () => null,
|
|
103
|
+
onFocus = () => null,
|
|
104
|
+
forwardRef,
|
|
105
|
+
onInputChange = () => null,
|
|
106
|
+
...props
|
|
107
|
+
}) => {
|
|
108
|
+
const [isFocused, setIsFocused] = useState(false);
|
|
109
|
+
const [inputValue, setInputValue] = useState("");
|
|
110
|
+
const handleInputChange = (newValue, actionMeta) => {
|
|
111
|
+
onInputChange(newValue, actionMeta);
|
|
112
|
+
setInputValue(newValue);
|
|
113
|
+
};
|
|
114
|
+
const getOptionColor = ({ isSelected, isFocused: isFocused2 }) => {
|
|
115
|
+
if (isSelected) {
|
|
116
|
+
return fadedColor(theme.colors[color].main, 0.72);
|
|
117
|
+
}
|
|
118
|
+
if (isFocused2) {
|
|
119
|
+
return fadedColor(theme.colors[color].main, 0.18);
|
|
120
|
+
}
|
|
121
|
+
return "white";
|
|
122
|
+
};
|
|
123
|
+
const handleFocus = (event) => {
|
|
124
|
+
setIsFocused(true);
|
|
125
|
+
onFocus(event);
|
|
126
|
+
};
|
|
127
|
+
const handleBlur = (event) => {
|
|
128
|
+
setIsFocused(false);
|
|
129
|
+
onBlur(event);
|
|
130
|
+
};
|
|
131
|
+
const borderColor = getBorderColor(isFocused, hasError);
|
|
132
|
+
return /* @__PURE__ */ React.createElement(Container, {
|
|
133
|
+
className
|
|
134
|
+
}, props.label && /* @__PURE__ */ React.createElement(Label, {
|
|
135
|
+
height,
|
|
136
|
+
isFocused,
|
|
137
|
+
hasValue: Boolean(props.value || inputValue),
|
|
138
|
+
disabled: isDisabled,
|
|
139
|
+
theme,
|
|
140
|
+
hasError
|
|
141
|
+
}, props.label), props.prefix && /* @__PURE__ */ React.createElement(Prefix, {
|
|
142
|
+
isDisabled,
|
|
143
|
+
isFocused
|
|
144
|
+
}, props.prefix), /* @__PURE__ */ React.createElement(ReactSelect, {
|
|
145
|
+
...props,
|
|
146
|
+
ref: forwardRef,
|
|
147
|
+
isDisabled,
|
|
148
|
+
onInputChange: handleInputChange,
|
|
149
|
+
placeholder,
|
|
150
|
+
onFocus: handleFocus,
|
|
151
|
+
onBlur: handleBlur,
|
|
152
|
+
styles: {
|
|
153
|
+
control: (styles) => ({
|
|
154
|
+
...styles,
|
|
155
|
+
fontFamily: theme.typography.fontBaseFamily,
|
|
156
|
+
fontSize: "1rem",
|
|
157
|
+
fontWeight: 400,
|
|
158
|
+
cursor: "pointer",
|
|
159
|
+
padding: "0.7rem 0.75rem",
|
|
160
|
+
backgroundColor: theme.colors.background.light,
|
|
161
|
+
borderColor,
|
|
162
|
+
boxShadow: "none",
|
|
163
|
+
"&:hover": {
|
|
164
|
+
borderColor: "none"
|
|
165
|
+
},
|
|
166
|
+
...disabledStyles(isDisabled),
|
|
167
|
+
...prefixStyles(Boolean(props.prefix))
|
|
168
|
+
}),
|
|
169
|
+
placeholder: (styles) => ({
|
|
170
|
+
...styles,
|
|
171
|
+
display: !isFocused ? "none" : "static"
|
|
172
|
+
}),
|
|
173
|
+
singleValue: (styles) => ({
|
|
174
|
+
...styles,
|
|
175
|
+
...{
|
|
176
|
+
maxWidth: "calc(100% - 3.3rem)",
|
|
177
|
+
width: "calc(100% - 3.3rem)"
|
|
178
|
+
}
|
|
179
|
+
}),
|
|
180
|
+
menu: (styles) => ({
|
|
181
|
+
...styles,
|
|
182
|
+
zIndex: 2,
|
|
183
|
+
padding: "0.25rem 0"
|
|
184
|
+
}),
|
|
185
|
+
option: (styles, { isSelected, isFocused: isFocused2 }) => {
|
|
186
|
+
return {
|
|
187
|
+
...styles,
|
|
188
|
+
padding: "1rem",
|
|
189
|
+
"&:hover": {
|
|
190
|
+
background: getOptionColor({ isFocused: true, isSelected })
|
|
191
|
+
},
|
|
192
|
+
background: getOptionColor({ isSelected, isFocused: isFocused2 }),
|
|
193
|
+
cursor: "pointer",
|
|
194
|
+
...prefixStyles(Boolean(props.prefix))
|
|
195
|
+
};
|
|
196
|
+
},
|
|
197
|
+
valueContainer: (styles) => ({
|
|
198
|
+
...styles,
|
|
199
|
+
...{
|
|
200
|
+
position: "static",
|
|
201
|
+
padding: height ? `${height - 1}rem 0 ` : 0,
|
|
202
|
+
height: height ? "auto" : "21px"
|
|
203
|
+
}
|
|
204
|
+
})
|
|
205
|
+
},
|
|
206
|
+
components: {
|
|
207
|
+
IndicatorSeparator: () => null,
|
|
208
|
+
DropdownIndicator
|
|
209
|
+
}
|
|
210
|
+
}), helperText && /* @__PURE__ */ React.createElement(HelperText, {
|
|
211
|
+
hasError
|
|
212
|
+
}, helperText));
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
export { Select, Select as default };
|