@kvdbil/components 3.3.5-4 → 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 +10 -31
- package/cjs/ElevationCard.js +5 -21
- package/cjs/Interfaces.js +1 -2
- package/cjs/Types.js +1 -2
- package/cjs/components/Accordion/index.js +20 -64
- package/cjs/components/Badge/index.js +9 -43
- package/cjs/components/Button/index.js +60 -125
- package/cjs/components/Card/index.js +6 -25
- package/cjs/components/CheckBox/index.js +24 -53
- package/cjs/components/Chip/index.js +10 -65
- package/cjs/components/DayPicker/DayPickerNavBar.js +9 -32
- package/cjs/components/DayPicker/index.js +10 -40
- package/cjs/components/DayPicker/localeUtils.js +1 -60
- package/cjs/components/DayPicker/style.js +226 -0
- package/cjs/components/Dialog/index.js +9 -42
- package/cjs/components/ErrorMessage/index.js +6 -21
- package/cjs/components/FieldLabel.js +22 -49
- package/cjs/components/Header/Hamburger.js +7 -22
- package/cjs/components/Header/Link.js +9 -26
- package/cjs/components/Header/index.js +16 -45
- package/cjs/components/Hero/index.js +7 -32
- package/cjs/components/Icon/index.js +11 -76
- package/cjs/components/IconButton.js +15 -54
- package/cjs/components/Icons/Arrow.js +1 -9
- package/cjs/components/Icons/CheckCircle.js +1 -9
- package/cjs/components/Icons/CheckIcon.js +1 -9
- package/cjs/components/Icons/Close.js +1 -9
- package/cjs/components/Icons/ErrorCircle.js +1 -9
- package/cjs/components/Icons/InfoCircle.js +1 -9
- package/cjs/components/InlineStepper/Step.js +16 -53
- package/cjs/components/InlineStepper/StepCircle.js +11 -46
- package/cjs/components/InlineStepper/index.js +4 -39
- package/cjs/components/ListItem/Bacon.js +1 -9
- package/cjs/components/ListItem/index.js +7 -28
- package/cjs/components/Logo/LogoEn.js +1 -9
- package/cjs/components/Logo/LogoSv.js +1 -9
- package/cjs/components/Logo/index.js +3 -30
- package/cjs/components/MenuItem/index.js +23 -68
- package/cjs/components/Modal/index.js +11 -54
- package/cjs/components/NotificationButton/index.js +4 -28
- package/cjs/components/OffCanvas/Overlay.js +2 -33
- package/cjs/components/OffCanvas/index.js +21 -62
- package/cjs/components/OffCanvas/useClickOutside.js +1 -21
- package/cjs/components/RadioButton/index.js +28 -58
- package/cjs/components/Range/index.js +10 -35
- package/cjs/components/Select/components/test-icon.js +1 -9
- package/cjs/components/Select/index.js +18 -147
- package/cjs/components/Snackbar/index.js +24 -76
- package/cjs/components/Spinner/index.js +10 -46
- package/cjs/components/Stepper/index.js +11 -35
- package/cjs/components/StepperAccordion/index.js +26 -76
- package/cjs/components/Tabs/index.js +7 -47
- package/cjs/components/TextArea/index.js +30 -61
- package/cjs/components/Textfield/index.js +29 -69
- package/cjs/components/TimePicker/index.js +2 -29
- package/cjs/components/TimePicker/testHelper.js +1 -17
- package/cjs/components/Toggle/index.js +12 -45
- package/cjs/icons/components/AccountCreateIcon.js +1 -11
- package/cjs/icons/components/AccountIcon.js +1 -11
- package/cjs/icons/components/AccountLoginIcon.js +1 -11
- package/cjs/icons/components/ArrowDownIcon.js +1 -11
- package/cjs/icons/components/ArrowLeftIcon.js +1 -11
- package/cjs/icons/components/ArrowLeftSharpIcon.js +1 -11
- package/cjs/icons/components/ArrowLeftSmallIcon.js +1 -11
- package/cjs/icons/components/ArrowLong.js +1 -11
- package/cjs/icons/components/ArrowRestartIcon.js +1 -11
- package/cjs/icons/components/ArrowRightIcon.js +1 -11
- package/cjs/icons/components/ArrowRightSharpIcon.js +1 -11
- package/cjs/icons/components/ArrowUpIcon.js +1 -11
- package/cjs/icons/components/AuctionIcon.js +1 -11
- package/cjs/icons/components/BackArrowIcon.js +1 -11
- package/cjs/icons/components/Baseline360Icon.js +1 -11
- package/cjs/icons/components/BellIcon.js +1 -11
- package/cjs/icons/components/BidIcon.js +1 -11
- package/cjs/icons/components/BidKrIcon.js +1 -11
- package/cjs/icons/components/BreaksIcon.js +1 -11
- package/cjs/icons/components/BuyCarIcon.js +1 -11
- package/cjs/icons/components/CabIcon.js +1 -11
- package/cjs/icons/components/CalendarIcon.js +1 -11
- package/cjs/icons/components/CameraIcon.js +1 -11
- package/cjs/icons/components/Car360Icon.js +1 -11
- package/cjs/icons/components/CarFrontIcon.js +1 -11
- package/cjs/icons/components/CarSearchIcon.js +1 -11
- package/cjs/icons/components/CarSideIcon.js +1 -11
- package/cjs/icons/components/CarTiresIcon.js +1 -11
- package/cjs/icons/components/CaravanIcon.js +1 -11
- package/cjs/icons/components/CardViewIcon.js +1 -11
- package/cjs/icons/components/CarloanIcon.js +1 -11
- package/cjs/icons/components/CertifiedIcon.js +1 -11
- package/cjs/icons/components/ChatIcon.js +1 -11
- package/cjs/icons/components/CheckIcon.js +1 -11
- package/cjs/icons/components/CheckThinIcon.js +1 -11
- package/cjs/icons/components/CheckmarkFilledIcon.js +1 -11
- package/cjs/icons/components/CheckmarkIcon.js +1 -11
- package/cjs/icons/components/ClipboardFilledIcon.js +1 -11
- package/cjs/icons/components/ClipboardIcon.js +1 -11
- package/cjs/icons/components/ClockFilledIcon.js +1 -11
- package/cjs/icons/components/ClockIcon.js +1 -11
- package/cjs/icons/components/CloseIcon.js +1 -11
- package/cjs/icons/components/CloseThinIcon.js +1 -11
- package/cjs/icons/components/CoffeeIcon.js +1 -11
- package/cjs/icons/components/CombiIcon.js +1 -11
- package/cjs/icons/components/CommentCircleFilledIcon.js +1 -11
- package/cjs/icons/components/CommentCircleIconIcon.js +1 -11
- package/cjs/icons/components/CommentIcon.js +1 -11
- package/cjs/icons/components/ContactIcon.js +1 -11
- package/cjs/icons/components/CoupeIcon.js +1 -11
- package/cjs/icons/components/CreditCardIcon.js +1 -11
- package/cjs/icons/components/CrossCircleIcon.js +1 -11
- package/cjs/icons/components/CrownIcon.js +1 -11
- package/cjs/icons/components/DealmakerIcon.js +1 -11
- package/cjs/icons/components/DeliveryIcon.js +1 -11
- package/cjs/icons/components/DetailedSearchIcon.js +1 -11
- package/cjs/icons/components/EcoFriendlyIcon.js +1 -11
- package/cjs/icons/components/EditIcon.js +1 -11
- package/cjs/icons/components/EngineIcon.js +1 -11
- package/cjs/icons/components/EnglandFlagIcon.js +1 -11
- package/cjs/icons/components/EvaluationIcon.js +1 -11
- package/cjs/icons/components/ExaminationMarkFilledIcon.js +1 -11
- package/cjs/icons/components/ExaminationMarkIcon.js +1 -11
- package/cjs/icons/components/ExteriorIcon.js +1 -11
- package/cjs/icons/components/EyeIcon.js +1 -11
- package/cjs/icons/components/FacebookBtnIcon.js +1 -11
- package/cjs/icons/components/FacebookIcon.js +1 -11
- package/cjs/icons/components/FatalIcon.js +1 -11
- package/cjs/icons/components/FavouriteIcon.js +1 -11
- package/cjs/icons/components/FavouriteSolidIcon.js +1 -11
- package/cjs/icons/components/FilterIcon.js +1 -11
- package/cjs/icons/components/FinanceIcon.js +1 -11
- package/cjs/icons/components/FindCarIcon.js +1 -11
- package/cjs/icons/components/FixedMonthlyCostIcon.js +1 -11
- package/cjs/icons/components/FlagIcon.js +1 -11
- package/cjs/icons/components/FlexibilityIcon.js +1 -11
- package/cjs/icons/components/ForumLargeIcon.js +1 -11
- package/cjs/icons/components/ForumSmallIcon.js +1 -11
- package/cjs/icons/components/GavelIcon.js +1 -11
- package/cjs/icons/components/GearboxIcon.js +1 -11
- package/cjs/icons/components/GiftIcon.js +1 -11
- package/cjs/icons/components/GridViewIcon.js +1 -11
- package/cjs/icons/components/GroupIcon.js +1 -11
- package/cjs/icons/components/GuaranteeIcon.js +1 -11
- package/cjs/icons/components/GuaranteeLargeIcon.js +1 -11
- package/cjs/icons/components/GuaranteeSmallIcon.js +1 -11
- package/cjs/icons/components/HalfCombiIcon.js +1 -11
- package/cjs/icons/components/HamburgerIcon.js +1 -11
- package/cjs/icons/components/HandshakeIcon.js +1 -11
- package/cjs/icons/components/HelpingHandIcon.js +1 -11
- package/cjs/icons/components/IdIcon.js +1 -11
- package/cjs/icons/components/InformationIcon.js +1 -11
- package/cjs/icons/components/InstagramIcon.js +1 -11
- package/cjs/icons/components/InsuranceIcon.js +1 -11
- package/cjs/icons/components/InteriorIcon.js +1 -11
- package/cjs/icons/components/InteriorThinIcon.js +1 -11
- package/cjs/icons/components/InternationalIcon.js +1 -11
- package/cjs/icons/components/KvdTestIcon.js +1 -11
- package/cjs/icons/components/KvdVenueIcon.js +1 -11
- package/cjs/icons/components/LifebuoyIcon.js +1 -11
- package/cjs/icons/components/LiftTruckIcon.js +1 -11
- package/cjs/icons/components/LinkedInIcon.js +1 -11
- package/cjs/icons/components/ListViewIcon.js +1 -11
- package/cjs/icons/components/MailIcon.js +1 -11
- package/cjs/icons/components/MinibusIcon.js +1 -11
- package/cjs/icons/components/MinivanIcon.js +1 -11
- package/cjs/icons/components/MobileIcon.js +1 -11
- package/cjs/icons/components/MotorcycleIcon.js +1 -11
- package/cjs/icons/components/MrfLogoIcon.js +1 -11
- package/cjs/icons/components/NotFoundIcon.js +1 -11
- package/cjs/icons/components/OverbidIcon.js +1 -11
- package/cjs/icons/components/PdfIconIcon.js +1 -11
- package/cjs/icons/components/PhoneIcon.js +1 -11
- package/cjs/icons/components/PickUpIcon.js +1 -11
- package/cjs/icons/components/PinIcon.js +1 -11
- package/cjs/icons/components/PlayIcon.js +1 -11
- package/cjs/icons/components/Pricetag.js +1 -11
- package/cjs/icons/components/PricetagFilledKronaIcon.js +1 -11
- package/cjs/icons/components/PrivateCarIcon.js +1 -11
- package/cjs/icons/components/ProfileCircleIcon.js +1 -11
- package/cjs/icons/components/ProfileIcon.js +1 -11
- package/cjs/icons/components/RadioIcon.js +1 -11
- package/cjs/icons/components/ReclamationIcon.js +1 -11
- package/cjs/icons/components/ReleasingIcon.js +1 -11
- package/cjs/icons/components/RemoveFilterIcon.js +1 -11
- package/cjs/icons/components/ReservedPriceIcon.js +1 -11
- package/cjs/icons/components/ResultIcon.js +1 -11
- package/cjs/icons/components/SafePaymentIcon.js +1 -11
- package/cjs/icons/components/SaleTagIcon.js +1 -11
- package/cjs/icons/components/SearchCheckIcon.js +1 -11
- package/cjs/icons/components/SearchIcon.js +1 -11
- package/cjs/icons/components/SedanIcon.js +1 -11
- package/cjs/icons/components/SellCarIcon.js +1 -11
- package/cjs/icons/components/SellCarsIcon.js +1 -11
- package/cjs/icons/components/ServiceIcon.js +1 -11
- package/cjs/icons/components/ShareIcon.js +1 -11
- package/cjs/icons/components/ShieldIcon.js +1 -11
- package/cjs/icons/components/SignInIcon.js +1 -11
- package/cjs/icons/components/SignOutIcon.js +1 -11
- package/cjs/icons/components/SpeedMeterIcon.js +1 -11
- package/cjs/icons/components/StarCircleIcon.js +1 -11
- package/cjs/icons/components/StartIcon.js +1 -11
- package/cjs/icons/components/StoreIcon.js +1 -11
- package/cjs/icons/components/SuvIcon.js +1 -11
- package/cjs/icons/components/SwedenFlag.js +1 -11
- package/cjs/icons/components/TankIcon.js +1 -11
- package/cjs/icons/components/TireIcon.js +1 -11
- package/cjs/icons/components/TransportIcon.js +1 -11
- package/cjs/icons/components/TrashcanIcon.js +1 -11
- package/cjs/icons/components/TrophyIcon.js +1 -11
- package/cjs/icons/components/TruckIcon.js +1 -11
- package/cjs/icons/components/UmbrellaIcon.js +1 -11
- package/cjs/icons/components/ValuationIcon.js +1 -11
- package/cjs/icons/components/ValueIcon.js +1 -11
- package/cjs/icons/components/WarningIcon.js +1 -11
- package/cjs/icons/components/YoutubeIcon.js +1 -11
- package/cjs/icons/components/index.js +1 -320
- package/cjs/index.js +1 -439
- package/cjs/shared/constants.js +1 -7
- package/cjs/shared/helpers.js +1 -28
- package/cjs/shared/helpers.spec.js +1 -42
- package/cjs/shared/media-queries.js +1 -41
- package/cjs/theme.js +1 -125
- package/cjs/typography/BodyText/index.js +20 -53
- package/cjs/typography/ButtonText/index.js +15 -43
- package/cjs/typography/Heading/index.js +22 -54
- package/cjs/utils/utils.js +2 -30
- package/esm/ColorCard.js +10 -23
- package/esm/ElevationCard.js +5 -13
- package/esm/components/Accordion/index.js +20 -55
- package/esm/components/Badge/index.js +9 -34
- package/esm/components/Button/index.js +50 -106
- package/esm/components/Card/index.js +6 -16
- package/esm/components/CheckBox/index.js +17 -37
- package/esm/components/Chip/index.js +10 -56
- package/esm/components/DayPicker/DayPickerNavBar.js +9 -24
- package/esm/components/DayPicker/index.js +10 -30
- package/esm/components/DayPicker/localeUtils.js +1 -52
- package/esm/components/DayPicker/style.js +226 -0
- package/esm/components/Dialog/index.js +9 -33
- package/esm/components/ErrorMessage/index.js +6 -12
- package/esm/components/FieldLabel.js +21 -40
- package/esm/components/Header/Hamburger.js +7 -14
- package/esm/components/Header/Link.js +9 -18
- package/esm/components/Header/index.js +16 -36
- package/esm/components/Hero/index.js +7 -23
- package/esm/components/Icon/index.js +11 -68
- package/esm/components/IconButton.js +15 -46
- package/esm/components/Icons/Arrow.js +1 -5
- package/esm/components/Icons/CheckCircle.js +1 -5
- package/esm/components/Icons/CheckIcon.js +1 -5
- package/esm/components/Icons/Close.js +1 -5
- package/esm/components/Icons/ErrorCircle.js +1 -5
- package/esm/components/Icons/InfoCircle.js +1 -5
- package/esm/components/InlineStepper/Step.js +16 -44
- package/esm/components/InlineStepper/StepCircle.js +11 -38
- package/esm/components/InlineStepper/index.js +4 -31
- package/esm/components/ListItem/Bacon.js +1 -5
- package/esm/components/ListItem/index.js +7 -20
- package/esm/components/Logo/LogoEn.js +1 -5
- package/esm/components/Logo/LogoSv.js +1 -5
- package/esm/components/Logo/index.js +3 -21
- package/esm/components/MenuItem/index.js +22 -58
- package/esm/components/Modal/index.js +11 -45
- package/esm/components/NotificationButton/index.js +4 -20
- package/esm/components/OffCanvas/Overlay.js +2 -25
- package/esm/components/OffCanvas/index.js +21 -53
- package/esm/components/OffCanvas/useClickOutside.js +1 -17
- package/esm/components/RadioButton/index.js +21 -42
- package/esm/components/Range/index.js +10 -26
- package/esm/components/Select/components/test-icon.js +1 -5
- package/esm/components/Select/index.js +18 -137
- package/esm/components/Snackbar/index.js +24 -67
- package/esm/components/Spinner/index.js +10 -38
- package/esm/components/Stepper/index.js +11 -27
- package/esm/components/StepperAccordion/index.js +23 -64
- package/esm/components/Tabs/index.js +7 -37
- package/esm/components/TextArea/index.js +30 -52
- package/esm/components/Textfield/index.js +29 -60
- package/esm/components/TimePicker/index.js +2 -20
- package/esm/components/TimePicker/testHelper.js +1 -13
- package/esm/components/Toggle/index.js +12 -37
- package/esm/icons/components/AccountCreateIcon.js +1 -7
- package/esm/icons/components/AccountIcon.js +1 -7
- package/esm/icons/components/AccountLoginIcon.js +1 -7
- package/esm/icons/components/ArrowDownIcon.js +1 -7
- package/esm/icons/components/ArrowLeftIcon.js +1 -7
- package/esm/icons/components/ArrowLeftSharpIcon.js +1 -7
- package/esm/icons/components/ArrowLeftSmallIcon.js +1 -7
- package/esm/icons/components/ArrowLong.js +1 -7
- package/esm/icons/components/ArrowRestartIcon.js +1 -7
- package/esm/icons/components/ArrowRightIcon.js +1 -7
- package/esm/icons/components/ArrowRightSharpIcon.js +1 -7
- package/esm/icons/components/ArrowUpIcon.js +1 -7
- package/esm/icons/components/AuctionIcon.js +1 -7
- package/esm/icons/components/BackArrowIcon.js +1 -7
- package/esm/icons/components/Baseline360Icon.js +1 -7
- package/esm/icons/components/BellIcon.js +1 -7
- package/esm/icons/components/BidIcon.js +1 -7
- package/esm/icons/components/BidKrIcon.js +1 -7
- package/esm/icons/components/BreaksIcon.js +1 -7
- package/esm/icons/components/BuyCarIcon.js +1 -7
- package/esm/icons/components/CabIcon.js +1 -7
- package/esm/icons/components/CalendarIcon.js +1 -7
- package/esm/icons/components/CameraIcon.js +1 -7
- package/esm/icons/components/Car360Icon.js +1 -7
- package/esm/icons/components/CarFrontIcon.js +1 -7
- package/esm/icons/components/CarSearchIcon.js +1 -7
- package/esm/icons/components/CarSideIcon.js +1 -7
- package/esm/icons/components/CarTiresIcon.js +1 -7
- package/esm/icons/components/CaravanIcon.js +1 -7
- package/esm/icons/components/CardViewIcon.js +1 -7
- package/esm/icons/components/CarloanIcon.js +1 -7
- package/esm/icons/components/CertifiedIcon.js +1 -7
- package/esm/icons/components/ChatIcon.js +1 -7
- package/esm/icons/components/CheckIcon.js +1 -7
- package/esm/icons/components/CheckThinIcon.js +1 -7
- package/esm/icons/components/CheckmarkFilledIcon.js +1 -7
- package/esm/icons/components/CheckmarkIcon.js +1 -7
- package/esm/icons/components/ClipboardFilledIcon.js +1 -7
- package/esm/icons/components/ClipboardIcon.js +1 -7
- package/esm/icons/components/ClockFilledIcon.js +1 -7
- package/esm/icons/components/ClockIcon.js +1 -7
- package/esm/icons/components/CloseIcon.js +1 -7
- package/esm/icons/components/CloseThinIcon.js +1 -7
- package/esm/icons/components/CoffeeIcon.js +1 -7
- package/esm/icons/components/CombiIcon.js +1 -7
- package/esm/icons/components/CommentCircleFilledIcon.js +1 -7
- package/esm/icons/components/CommentCircleIconIcon.js +1 -7
- package/esm/icons/components/CommentIcon.js +1 -7
- package/esm/icons/components/ContactIcon.js +1 -7
- package/esm/icons/components/CoupeIcon.js +1 -7
- package/esm/icons/components/CreditCardIcon.js +1 -7
- package/esm/icons/components/CrossCircleIcon.js +1 -7
- package/esm/icons/components/CrownIcon.js +1 -7
- package/esm/icons/components/DealmakerIcon.js +1 -7
- package/esm/icons/components/DeliveryIcon.js +1 -7
- package/esm/icons/components/DetailedSearchIcon.js +1 -7
- package/esm/icons/components/EcoFriendlyIcon.js +1 -7
- package/esm/icons/components/EditIcon.js +1 -7
- package/esm/icons/components/EngineIcon.js +1 -7
- package/esm/icons/components/EnglandFlagIcon.js +1 -7
- package/esm/icons/components/EvaluationIcon.js +1 -7
- package/esm/icons/components/ExaminationMarkFilledIcon.js +1 -7
- package/esm/icons/components/ExaminationMarkIcon.js +1 -7
- package/esm/icons/components/ExteriorIcon.js +1 -7
- package/esm/icons/components/EyeIcon.js +1 -7
- package/esm/icons/components/FacebookBtnIcon.js +1 -7
- package/esm/icons/components/FacebookIcon.js +1 -7
- package/esm/icons/components/FatalIcon.js +1 -7
- package/esm/icons/components/FavouriteIcon.js +1 -7
- package/esm/icons/components/FavouriteSolidIcon.js +1 -7
- package/esm/icons/components/FilterIcon.js +1 -7
- package/esm/icons/components/FinanceIcon.js +1 -7
- package/esm/icons/components/FindCarIcon.js +1 -7
- package/esm/icons/components/FixedMonthlyCostIcon.js +1 -7
- package/esm/icons/components/FlagIcon.js +1 -7
- package/esm/icons/components/FlexibilityIcon.js +1 -7
- package/esm/icons/components/ForumLargeIcon.js +1 -7
- package/esm/icons/components/ForumSmallIcon.js +1 -7
- package/esm/icons/components/GavelIcon.js +1 -7
- package/esm/icons/components/GearboxIcon.js +1 -7
- package/esm/icons/components/GiftIcon.js +1 -7
- package/esm/icons/components/GridViewIcon.js +1 -7
- package/esm/icons/components/GroupIcon.js +1 -7
- package/esm/icons/components/GuaranteeIcon.js +1 -7
- package/esm/icons/components/GuaranteeLargeIcon.js +1 -7
- package/esm/icons/components/GuaranteeSmallIcon.js +1 -7
- package/esm/icons/components/HalfCombiIcon.js +1 -7
- package/esm/icons/components/HamburgerIcon.js +1 -7
- package/esm/icons/components/HandshakeIcon.js +1 -7
- package/esm/icons/components/HelpingHandIcon.js +1 -7
- package/esm/icons/components/IdIcon.js +1 -7
- package/esm/icons/components/InformationIcon.js +1 -7
- package/esm/icons/components/InstagramIcon.js +1 -7
- package/esm/icons/components/InsuranceIcon.js +1 -7
- package/esm/icons/components/InteriorIcon.js +1 -7
- package/esm/icons/components/InteriorThinIcon.js +1 -7
- package/esm/icons/components/InternationalIcon.js +1 -7
- package/esm/icons/components/KvdTestIcon.js +1 -7
- package/esm/icons/components/KvdVenueIcon.js +1 -7
- package/esm/icons/components/LifebuoyIcon.js +1 -7
- package/esm/icons/components/LiftTruckIcon.js +1 -7
- package/esm/icons/components/LinkedInIcon.js +1 -7
- package/esm/icons/components/ListViewIcon.js +1 -7
- package/esm/icons/components/MailIcon.js +1 -7
- package/esm/icons/components/MinibusIcon.js +1 -7
- package/esm/icons/components/MinivanIcon.js +1 -7
- package/esm/icons/components/MobileIcon.js +1 -7
- package/esm/icons/components/MotorcycleIcon.js +1 -7
- package/esm/icons/components/MrfLogoIcon.js +1 -7
- package/esm/icons/components/NotFoundIcon.js +1 -7
- package/esm/icons/components/OverbidIcon.js +1 -7
- package/esm/icons/components/PdfIconIcon.js +1 -7
- package/esm/icons/components/PhoneIcon.js +1 -7
- package/esm/icons/components/PickUpIcon.js +1 -7
- package/esm/icons/components/PinIcon.js +1 -7
- package/esm/icons/components/PlayIcon.js +1 -7
- package/esm/icons/components/Pricetag.js +1 -7
- package/esm/icons/components/PricetagFilledKronaIcon.js +1 -7
- package/esm/icons/components/PrivateCarIcon.js +1 -7
- package/esm/icons/components/ProfileCircleIcon.js +1 -7
- package/esm/icons/components/ProfileIcon.js +1 -7
- package/esm/icons/components/RadioIcon.js +1 -7
- package/esm/icons/components/ReclamationIcon.js +1 -7
- package/esm/icons/components/ReleasingIcon.js +1 -7
- package/esm/icons/components/RemoveFilterIcon.js +1 -7
- package/esm/icons/components/ReservedPriceIcon.js +1 -7
- package/esm/icons/components/ResultIcon.js +1 -7
- package/esm/icons/components/SafePaymentIcon.js +1 -7
- package/esm/icons/components/SaleTagIcon.js +1 -7
- package/esm/icons/components/SearchCheckIcon.js +1 -7
- package/esm/icons/components/SearchIcon.js +1 -7
- package/esm/icons/components/SedanIcon.js +1 -7
- package/esm/icons/components/SellCarIcon.js +1 -7
- package/esm/icons/components/SellCarsIcon.js +1 -7
- package/esm/icons/components/ServiceIcon.js +1 -7
- package/esm/icons/components/ShareIcon.js +1 -7
- package/esm/icons/components/ShieldIcon.js +1 -7
- package/esm/icons/components/SignInIcon.js +1 -7
- package/esm/icons/components/SignOutIcon.js +1 -7
- package/esm/icons/components/SpeedMeterIcon.js +1 -7
- package/esm/icons/components/StarCircleIcon.js +1 -7
- package/esm/icons/components/StartIcon.js +1 -7
- package/esm/icons/components/StoreIcon.js +1 -7
- package/esm/icons/components/SuvIcon.js +1 -7
- package/esm/icons/components/SwedenFlag.js +1 -7
- package/esm/icons/components/TankIcon.js +1 -7
- package/esm/icons/components/TireIcon.js +1 -7
- package/esm/icons/components/TransportIcon.js +1 -7
- package/esm/icons/components/TrashcanIcon.js +1 -7
- package/esm/icons/components/TrophyIcon.js +1 -7
- package/esm/icons/components/TruckIcon.js +1 -7
- package/esm/icons/components/UmbrellaIcon.js +1 -7
- package/esm/icons/components/ValuationIcon.js +1 -7
- package/esm/icons/components/ValueIcon.js +1 -7
- package/esm/icons/components/WarningIcon.js +1 -7
- package/esm/icons/components/YoutubeIcon.js +1 -7
- package/esm/icons/components/index.js +1 -157
- package/esm/index.js +1 -221
- package/esm/shared/constants.js +1 -3
- package/esm/shared/helpers.js +1 -23
- package/esm/shared/helpers.spec.js +1 -40
- package/esm/shared/media-queries.js +1 -35
- package/esm/theme.js +1 -121
- package/esm/typography/BodyText/index.js +20 -35
- package/esm/typography/ButtonText/index.js +15 -28
- package/esm/typography/Heading/index.js +22 -38
- package/esm/utils/utils.js +2 -25
- package/package.json +11 -8
- package/types/components/DayPicker/index.d.ts +0 -1
- package/types/components/DayPicker/style.d.ts +2 -0
- package/types/components/FieldLabel.d.ts +1 -1
- package/types/components/Header/Link.d.ts +1 -1
- package/types/components/MenuItem/index.d.ts +1 -1
- package/types/components/Select/index.d.ts +9 -8
- package/cjs/react-app-env.d.js +0 -2
- package/cjs/styled.d.js +0 -4
- package/esm/react-app-env.d.js +0 -1
- package/esm/styled.d.js +0 -1
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var styled = require('styled-components');
|
|
7
|
-
var shared_helpers = require('../../shared/helpers.js');
|
|
8
|
-
var theme = require('../../theme.js');
|
|
9
|
-
var components_IconButton = require('../IconButton.js');
|
|
10
|
-
var components_Icons_CheckIcon = require('../Icons/CheckIcon.js');
|
|
11
|
-
|
|
12
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
-
|
|
14
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
15
|
-
|
|
16
|
-
const regularSize = styled.css `
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("styled-components"),t=require("../../shared/helpers.js"),s=require("../../theme.js"),i=require("../IconButton.js"),l=require("../Icons/CheckIcon.js");function a(g){return g&&typeof g=="object"&&"default"in g?g:{default:g}}var o=a(e),c=a(r);const d={regular:r.css`
|
|
17
2
|
width: 24px;
|
|
18
3
|
height: 24px;
|
|
19
4
|
|
|
@@ -21,8 +6,7 @@ const regularSize = styled.css `
|
|
|
21
6
|
width: 15px;
|
|
22
7
|
height: 15px;
|
|
23
8
|
}
|
|
24
|
-
|
|
25
|
-
const largeSize = styled.css `
|
|
9
|
+
`,large:r.css`
|
|
26
10
|
width: 32px;
|
|
27
11
|
height: 32px;
|
|
28
12
|
|
|
@@ -30,34 +14,14 @@ const largeSize = styled.css `
|
|
|
30
14
|
width: 20px;
|
|
31
15
|
height: 20px;
|
|
32
16
|
}
|
|
33
|
-
|
|
34
|
-
const sizes = {
|
|
35
|
-
regular: regularSize,
|
|
36
|
-
large: largeSize,
|
|
37
|
-
};
|
|
38
|
-
const disabledStyle = styled.css `
|
|
17
|
+
`},u=r.css`
|
|
39
18
|
cursor: default;
|
|
40
|
-
border: 2px solid ${
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
fill: #fefefe;
|
|
45
|
-
opacity: 1;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
:hover {
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
background: ${theme['default'].colors[color].main};
|
|
52
|
-
border: 2px solid ${theme['default'].colors[color].main};
|
|
53
|
-
`;
|
|
54
|
-
const checkedDisabledStyle = styled.css `
|
|
55
|
-
background: ${theme['default'].colors.gray.light1};
|
|
56
|
-
`;
|
|
57
|
-
const HiddenCheckbox = styled__default['default'].input.attrs({ type: 'checkbox' }) `
|
|
19
|
+
border: 2px solid ${s.default.colors.gray.light1};
|
|
20
|
+
`,n=r.css`
|
|
21
|
+
background: ${s.default.colors.gray.light1};
|
|
22
|
+
`,h=c.default.input.attrs({type:"checkbox"})`
|
|
58
23
|
display: none;
|
|
59
|
-
|
|
60
|
-
const CheckboxWrapper = styled__default['default'].label `
|
|
24
|
+
`,p=c.default.label`
|
|
61
25
|
box-sizing: border-box;
|
|
62
26
|
cursor: pointer;
|
|
63
27
|
display: flex;
|
|
@@ -65,21 +29,28 @@ const CheckboxWrapper = styled__default['default'].label `
|
|
|
65
29
|
align-items: center;
|
|
66
30
|
justify-content: center;
|
|
67
31
|
|
|
68
|
-
border: 2px solid ${
|
|
32
|
+
border: 2px solid ${s.default.colors.gray.light1};
|
|
69
33
|
border-radius: 3px;
|
|
70
34
|
|
|
71
|
-
${
|
|
35
|
+
${g=>d[g.size]};
|
|
72
36
|
|
|
73
37
|
svg {
|
|
74
38
|
opacity: 0;
|
|
75
39
|
}
|
|
76
40
|
|
|
77
|
-
${
|
|
78
|
-
|
|
41
|
+
${g=>{return g.isChecked&&(x=g.color,r.css`
|
|
42
|
+
svg {
|
|
43
|
+
fill: #fefefe;
|
|
44
|
+
opacity: 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:hover {
|
|
48
|
+
}
|
|
79
49
|
|
|
80
|
-
${
|
|
81
|
-
|
|
82
|
-
|
|
50
|
+
background: ${s.default.colors[x].main};
|
|
51
|
+
border: 2px solid ${s.default.colors[x].main};
|
|
52
|
+
`);var x}};
|
|
53
|
+
${g=>g.isDisabled&&u};
|
|
83
54
|
|
|
84
|
-
|
|
85
|
-
exports
|
|
55
|
+
${g=>g.isChecked&&g.isDisabled&&n};
|
|
56
|
+
`,f=({name:g=t.generateNameHash("check-box"),isDisabled:x=!1,size:m="regular",checked:b,color:k="secondary",onClick:y,...v})=>o.default.createElement(i.default,{onClick:y,isActive:b,isDisabled:x,color:k},o.default.createElement(h,{...v,"data-validate":"checked",name:g,id:g,disabled:x}),o.default.createElement(p,{htmlFor:g,size:m,color:k,isChecked:b,isDisabled:x},o.default.createElement(l.default,null)));exports.CheckBox=f,exports.default=f;
|
|
@@ -1,78 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var styled = require('styled-components');
|
|
7
|
-
var shared_helpers = require('../../shared/helpers.js');
|
|
8
|
-
var theme = require('../../theme.js');
|
|
9
|
-
|
|
10
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
-
|
|
12
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
13
|
-
|
|
14
|
-
const getBackgroundColor = ({ isDisabled, isActive, activeColor, }) => {
|
|
15
|
-
if (isActive && isDisabled) {
|
|
16
|
-
return shared_helpers.fadedColor(theme['default'].colors[activeColor].main, 0.5);
|
|
17
|
-
}
|
|
18
|
-
if (isDisabled) {
|
|
19
|
-
return theme['default'].colors.gray.light4;
|
|
20
|
-
}
|
|
21
|
-
if (isActive) {
|
|
22
|
-
return theme['default'].colors[activeColor].main;
|
|
23
|
-
}
|
|
24
|
-
return 'transparent';
|
|
25
|
-
};
|
|
26
|
-
const getColor = ({ isActive, isDisabled }) => {
|
|
27
|
-
if (isActive || (isActive && isDisabled)) {
|
|
28
|
-
return theme['default'].colors.text.light;
|
|
29
|
-
}
|
|
30
|
-
if (isDisabled) {
|
|
31
|
-
return theme['default'].colors.text.disabled;
|
|
32
|
-
}
|
|
33
|
-
return theme['default'].colors.text.dark;
|
|
34
|
-
};
|
|
35
|
-
const getFontSize = (size = 'smaller') => {
|
|
36
|
-
const sizes = {
|
|
37
|
-
smaller: '0.8125rem',
|
|
38
|
-
small: '1rem',
|
|
39
|
-
regular: '1rem',
|
|
40
|
-
large: '1.25rem',
|
|
41
|
-
};
|
|
42
|
-
return sizes[size];
|
|
43
|
-
};
|
|
44
|
-
const Item = styled__default['default'].div `
|
|
45
|
-
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
46
|
-
font-size: ${({ size }) => getFontSize(size)};
|
|
47
|
-
font-weight: ${({ theme }) => theme.typography.fontAlternativeBoldWeight};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components"),r=require("../../shared/helpers.js"),i=require("../../theme.js");function l(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var a=l(e),o=l(t);const s=o.default.div`
|
|
2
|
+
font-family: ${({theme:c})=>c.typography.fontAlternativeFamily};
|
|
3
|
+
font-size: ${({size:c})=>((u="smaller")=>({smaller:"0.8125rem",small:"1rem",regular:"1rem",large:"1.25rem"})[u])(c)};
|
|
4
|
+
font-weight: ${({theme:c})=>c.typography.fontAlternativeBoldWeight};
|
|
48
5
|
line-height: 1.25;
|
|
49
6
|
letter-spacing: 0.1px;
|
|
50
7
|
display: inline-block;
|
|
51
|
-
cursor: ${({
|
|
8
|
+
cursor: ${({isDisabled:c})=>c?"auto":"pointer"};
|
|
52
9
|
align-items: center;
|
|
53
|
-
background: ${
|
|
54
|
-
color: ${
|
|
10
|
+
background: ${({isDisabled:c,isActive:u,activeColor:f})=>u&&c?r.fadedColor(i.default.colors[f].main,.5):c?i.default.colors.gray.light4:u?i.default.colors[f].main:"transparent"};
|
|
11
|
+
color: ${({isActive:c,isDisabled:u})=>c||c&&u?i.default.colors.text.light:u?i.default.colors.text.disabled:i.default.colors.text.dark};
|
|
55
12
|
justify-content: center;
|
|
56
13
|
border-width: 1px;
|
|
57
14
|
border-style: solid;
|
|
58
|
-
border-color: ${({
|
|
15
|
+
border-color: ${({isActive:c,isDisabled:u})=>c||u?"transparent":i.default.colors.background.dark};
|
|
59
16
|
border-radius: 1.293rem;
|
|
60
|
-
|
|
61
|
-
const ContentWrapper = styled__default['default'].span `
|
|
17
|
+
`,n=o.default.span`
|
|
62
18
|
padding: 0.5rem 1rem;
|
|
63
19
|
display: flex;
|
|
64
20
|
align-items: center;
|
|
65
21
|
justify-content: center;
|
|
66
22
|
text-align: center;
|
|
67
|
-
|
|
68
|
-
const Chip = ({ activeColor = 'primary', children, component = 'div', isActive, isDisabled, onClick, size, ...props }) => {
|
|
69
|
-
const handleClick = (e) => {
|
|
70
|
-
if (!isDisabled && onClick) {
|
|
71
|
-
onClick(e);
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
return (jsxRuntime.jsx(Item, Object.assign({}, props, { as: component, activeColor: activeColor, isDisabled: isDisabled, isActive: isActive, size: size }, { children: jsxRuntime.jsx(ContentWrapper, Object.assign({ onClick: handleClick }, { children: children }), void 0) }), void 0));
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
exports.Chip = Chip;
|
|
78
|
-
exports['default'] = Chip;
|
|
23
|
+
`,d=({activeColor:c="primary",children:u,component:f="div",isActive:g,isDisabled:m,onClick:p,size:b,...h})=>a.default.createElement(s,{...h,as:f,activeColor:c,isDisabled:m,isActive:g,size:b},a.default.createElement(n,{onClick:y=>{!m&&p&&p(y)}},u));exports.Chip=d,exports.default=d;
|
|
@@ -1,26 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var styled = require('styled-components');
|
|
7
|
-
var components_Icons_Arrow = require('../Icons/Arrow.js');
|
|
8
|
-
var theme = require('../../theme.js');
|
|
9
|
-
var typography_BodyText_index = require('../../typography/BodyText/index.js');
|
|
10
|
-
var components_DayPicker_localeUtils = require('./localeUtils.js');
|
|
11
|
-
|
|
12
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
-
|
|
14
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
15
|
-
|
|
16
|
-
const NavBarWrapper = styled__default['default'].div `
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components"),r=require("../Icons/Arrow.js"),l=require("../../theme.js"),a=require("../../typography/BodyText/index.js"),o=require("./localeUtils.js");function n(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}var u=n(e),d=n(t);const i=d.default.div`
|
|
17
2
|
display: flex;
|
|
18
3
|
justify-content: space-between;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
`;
|
|
23
|
-
const NavButton = styled__default['default'].button `
|
|
4
|
+
`,c=d.default(a.BodyText)`
|
|
5
|
+
color: ${l.default.colors.text.dark};
|
|
6
|
+
`,f=d.default.button`
|
|
24
7
|
appearance: none;
|
|
25
8
|
background-color: transparent;
|
|
26
9
|
border: 0;
|
|
@@ -29,18 +12,12 @@ const NavButton = styled__default['default'].button `
|
|
|
29
12
|
outline: none;
|
|
30
13
|
display: flex;
|
|
31
14
|
align-items: center;
|
|
32
|
-
|
|
33
|
-
const Arrow = styled__default['default'](components_Icons_Arrow['default']) `
|
|
15
|
+
`,s=d.default(r.default)`
|
|
34
16
|
width: 16px;
|
|
35
17
|
height: 16px;
|
|
36
|
-
fill: ${
|
|
37
|
-
|
|
38
|
-
const BackArrow = styled__default['default'](Arrow) `
|
|
18
|
+
fill: ${l.default.colors.gray.dark3};
|
|
19
|
+
`,p=d.default(s)`
|
|
39
20
|
transform: rotate(90deg);
|
|
40
|
-
|
|
41
|
-
const ForwardArrow = styled__default['default'](Arrow) `
|
|
21
|
+
`,m=d.default(s)`
|
|
42
22
|
transform: rotate(-90deg);
|
|
43
|
-
`;
|
|
44
|
-
const DayPickerNavBar = ({ month, onPreviousClick, onNextClick, locale, }) => (jsxRuntime.jsxs(NavBarWrapper, { children: [jsxRuntime.jsx(NavButton, Object.assign({ onClick: () => onPreviousClick() }, { children: jsxRuntime.jsx(BackArrow, { title: "prev-month" }, void 0) }), void 0), jsxRuntime.jsx(NavTitle, Object.assign({ as: "h3" }, { children: components_DayPicker_localeUtils.formatMonthTitle(month, locale) }), void 0), jsxRuntime.jsx(NavButton, Object.assign({ onClick: () => onNextClick() }, { children: jsxRuntime.jsx(ForwardArrow, { title: "next-month" }, void 0) }), void 0)] }, void 0));
|
|
45
|
-
|
|
46
|
-
exports['default'] = DayPickerNavBar;
|
|
23
|
+
`;exports.default=({month:x,onPreviousClick:y,onNextClick:h,locale:g})=>u.default.createElement(i,null,u.default.createElement(f,{onClick:()=>y()},u.default.createElement(p,{title:"prev-month"})),u.default.createElement(c,{as:"h3"},o.formatMonthTitle(x,g)),u.default.createElement(f,{onClick:()=>h()},u.default.createElement(m,{title:"next-month"})));
|
|
@@ -1,64 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-day-picker"),r=require("styled-components"),a=require("../../theme.js"),o=require("./DayPickerNavBar.js"),l=require("./localeUtils.js"),i=require("./style.js");function c(f){return f&&typeof f=="object"&&"default"in f?f:{default:f}}require("../Icons/Arrow.js"),require("../../typography/BodyText/index.js");var d=c(e),n=c(t);const s=c(r).default.div`
|
|
2
|
+
${i.default}
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
require('react-day-picker/lib/style.css');
|
|
7
|
-
var ReactDayPicker = require('react-day-picker');
|
|
8
|
-
var styled = require('styled-components');
|
|
9
|
-
var theme = require('../../theme.js');
|
|
10
|
-
var components_DayPicker_DayPickerNavBar = require('./DayPickerNavBar.js');
|
|
11
|
-
var components_DayPicker_localeUtils = require('./localeUtils.js');
|
|
12
|
-
require('../Icons/Arrow.js');
|
|
13
|
-
require('../../typography/BodyText/index.js');
|
|
14
|
-
|
|
15
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
|
-
|
|
17
|
-
var ReactDayPicker__default = /*#__PURE__*/_interopDefaultLegacy(ReactDayPicker);
|
|
18
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
19
|
-
|
|
20
|
-
const DayPickerWrapper = styled__default['default'].div `
|
|
21
|
-
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
4
|
+
font-family: ${({theme:f})=>f.typography.fontAlternativeFamily};
|
|
22
5
|
.DayPicker-wrapper {
|
|
23
6
|
&:focus {
|
|
24
7
|
outline: none;
|
|
25
8
|
}
|
|
26
9
|
}
|
|
27
10
|
.DayPicker-Weekday {
|
|
28
|
-
color: ${({
|
|
11
|
+
color: ${({theme:f})=>f.colors.gray.light1};
|
|
29
12
|
}
|
|
30
13
|
.DayPicker-Day {
|
|
31
14
|
font-size: 12px;
|
|
32
15
|
padding: 14px;
|
|
33
|
-
font-weight: ${({
|
|
34
|
-
color: ${({
|
|
16
|
+
font-weight: ${({theme:f})=>f.typography.fontAlternativeBoldWeight};
|
|
17
|
+
color: ${({theme:f})=>f.colors.text.dark};
|
|
35
18
|
&:focus {
|
|
36
19
|
outline: none;
|
|
37
|
-
box-shadow: 0 0 4px ${
|
|
20
|
+
box-shadow: 0 0 4px ${a.default.colors.gray.dark3};
|
|
38
21
|
}
|
|
39
22
|
&:not(.DayPicker--interactionDisabled):not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside) {
|
|
40
23
|
&:focus {
|
|
41
|
-
box-shadow: 0 0 4px ${
|
|
24
|
+
box-shadow: 0 0 4px ${a.default.colors.gray.dark3};
|
|
42
25
|
}
|
|
43
26
|
&:hover {
|
|
44
27
|
background-color: rgba(253, 171, 74, 0.25);
|
|
45
28
|
}
|
|
46
29
|
}
|
|
47
30
|
&.DayPicker-Day--disabled {
|
|
48
|
-
color: ${
|
|
31
|
+
color: ${a.default.colors.gray.dark3};
|
|
49
32
|
}
|
|
50
33
|
}
|
|
51
|
-
|
|
52
|
-
const modifiersStyles = {
|
|
53
|
-
selected: {
|
|
54
|
-
color: theme['default'].colors.text.light,
|
|
55
|
-
background: theme['default'].colors.primary.main,
|
|
56
|
-
fontWeight: 700,
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
const DayPicker = ({ locale = 'sv', ...props }) => {
|
|
60
|
-
return (jsxRuntime.jsx(DayPickerWrapper, { children: jsxRuntime.jsx(ReactDayPicker__default['default'], Object.assign({}, props, { locale: locale, months: components_DayPicker_localeUtils.MONTHS[locale], weekdaysLong: components_DayPicker_localeUtils.WEEKDAYS_LONG[locale], weekdaysShort: components_DayPicker_localeUtils.WEEKDAYS_SHORT[locale], firstDayOfWeek: components_DayPicker_localeUtils.FIRST_DAY_OF_THE_WEEK[locale], navbarElement: navProps => (jsxRuntime.jsx(components_DayPicker_DayPickerNavBar['default'], Object.assign({}, navProps, { locale: locale }), void 0)), captionElement: jsxRuntime.jsx("div", {}, void 0), modifiersStyles: modifiersStyles }), void 0) }, void 0));
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
exports.DayPicker = DayPicker;
|
|
64
|
-
exports['default'] = DayPicker;
|
|
34
|
+
`,u={selected:{color:a.default.colors.text.light,background:a.default.colors.primary.main,fontWeight:700}},y=({locale:f="sv",...p})=>d.default.createElement(s,null,d.default.createElement(n.default,{...p,locale:f,months:l.MONTHS[f],weekdaysLong:l.WEEKDAYS_LONG[f],weekdaysShort:l.WEEKDAYS_SHORT[f],firstDayOfWeek:l.FIRST_DAY_OF_THE_WEEK[f],navbarElement:k=>d.default.createElement(o.default,{...k,locale:f}),captionElement:d.default.createElement("div",null),modifiersStyles:u}));exports.DayPicker=y,exports.default=y;
|
|
@@ -1,60 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const MONTHS = {
|
|
6
|
-
sv: [
|
|
7
|
-
'Januari',
|
|
8
|
-
'Februari',
|
|
9
|
-
'Mars',
|
|
10
|
-
'April',
|
|
11
|
-
'Maj',
|
|
12
|
-
'Juni',
|
|
13
|
-
'Juli',
|
|
14
|
-
'Augusti',
|
|
15
|
-
'September',
|
|
16
|
-
'Oktober',
|
|
17
|
-
'November',
|
|
18
|
-
'December',
|
|
19
|
-
],
|
|
20
|
-
en: [
|
|
21
|
-
'January',
|
|
22
|
-
'February',
|
|
23
|
-
'March',
|
|
24
|
-
'April',
|
|
25
|
-
'May',
|
|
26
|
-
'June',
|
|
27
|
-
'July',
|
|
28
|
-
'August',
|
|
29
|
-
'September',
|
|
30
|
-
'October',
|
|
31
|
-
'November',
|
|
32
|
-
'December',
|
|
33
|
-
],
|
|
34
|
-
};
|
|
35
|
-
const WEEKDAYS_LONG = {
|
|
36
|
-
sv: ['Söndag', 'Måndag', 'Tisdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lördag'],
|
|
37
|
-
en: [
|
|
38
|
-
'Sunday',
|
|
39
|
-
'Monday',
|
|
40
|
-
'Tuesday',
|
|
41
|
-
'Wednesday',
|
|
42
|
-
'Thursday',
|
|
43
|
-
'Friday',
|
|
44
|
-
'Saturday',
|
|
45
|
-
],
|
|
46
|
-
};
|
|
47
|
-
const WEEKDAYS_SHORT = {
|
|
48
|
-
sv: ['Sö', 'Må', 'Ti', 'On', 'To', 'Fr', 'Lö'],
|
|
49
|
-
en: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
|
|
50
|
-
};
|
|
51
|
-
const FIRST_DAY_OF_THE_WEEK = { sv: 1, en: 1 };
|
|
52
|
-
const formatMonthTitle = (d, locale = 'sv') => {
|
|
53
|
-
return `${MONTHS[locale][d.getMonth()]} ${d.getFullYear()}`;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
exports.FIRST_DAY_OF_THE_WEEK = FIRST_DAY_OF_THE_WEEK;
|
|
57
|
-
exports.MONTHS = MONTHS;
|
|
58
|
-
exports.WEEKDAYS_LONG = WEEKDAYS_LONG;
|
|
59
|
-
exports.WEEKDAYS_SHORT = WEEKDAYS_SHORT;
|
|
60
|
-
exports.formatMonthTitle = formatMonthTitle;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e={sv:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],en:["January","February","March","April","May","June","July","August","September","October","November","December"]};exports.FIRST_DAY_OF_THE_WEEK={sv:1,en:1},exports.MONTHS=e,exports.WEEKDAYS_LONG={sv:["S\xF6ndag","M\xE5ndag","Tisdag","Onsdag","Torsdag","Fredag","L\xF6rdag"],en:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},exports.WEEKDAYS_SHORT={sv:["S\xF6","M\xE5","Ti","On","To","Fr","L\xF6"],en:["Su","Mo","Tu","We","Th","Fr","Sa"]},exports.formatMonthTitle=(r,a="sv")=>`${e[a][r.getMonth()]} ${r.getFullYear()}`;
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("styled-components").css`
|
|
2
|
+
/* DayPicker styles */
|
|
3
|
+
|
|
4
|
+
.DayPicker {
|
|
5
|
+
display: inline-block;
|
|
6
|
+
font-size: 1rem;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.DayPicker-wrapper {
|
|
10
|
+
position: relative;
|
|
11
|
+
|
|
12
|
+
flex-direction: row;
|
|
13
|
+
padding-bottom: 1em;
|
|
14
|
+
|
|
15
|
+
-webkit-user-select: none;
|
|
16
|
+
|
|
17
|
+
-moz-user-select: none;
|
|
18
|
+
|
|
19
|
+
-ms-user-select: none;
|
|
20
|
+
|
|
21
|
+
user-select: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.DayPicker-Months {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-wrap: wrap;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.DayPicker-Month {
|
|
31
|
+
display: table;
|
|
32
|
+
margin: 0 1em;
|
|
33
|
+
margin-top: 1em;
|
|
34
|
+
border-spacing: 0;
|
|
35
|
+
border-collapse: collapse;
|
|
36
|
+
|
|
37
|
+
-webkit-user-select: none;
|
|
38
|
+
|
|
39
|
+
-moz-user-select: none;
|
|
40
|
+
|
|
41
|
+
-ms-user-select: none;
|
|
42
|
+
|
|
43
|
+
user-select: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.DayPicker-NavBar {
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.DayPicker-NavButton {
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 1em;
|
|
52
|
+
right: 1.5em;
|
|
53
|
+
left: auto;
|
|
54
|
+
|
|
55
|
+
display: inline-block;
|
|
56
|
+
margin-top: 2px;
|
|
57
|
+
width: 1.25em;
|
|
58
|
+
height: 1.25em;
|
|
59
|
+
background-position: center;
|
|
60
|
+
background-size: 50%;
|
|
61
|
+
background-repeat: no-repeat;
|
|
62
|
+
color: #8b9898;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.DayPicker-NavButton:hover {
|
|
67
|
+
opacity: 0.8;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.DayPicker-NavButton--prev {
|
|
71
|
+
margin-right: 1.5em;
|
|
72
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAVVJREFUWAnN2G0KgjAYwPHpGfRkaZeqvgQaK+hY3SUHrk1YzNLay/OiEFp92I+/Mp2F2Mh2lLISWnflFjzH263RQjzMZ19wgs73ez0o1WmtW+dgA01VxrE3p6l2GLsnBy1VYQOtVSEH/atCCgqpQgKKqYIOiq2CBkqtggLKqQIKgqgCBjpJ2Y5CdJ+zrT9A7HHSTA1dxUdHgzCqJIEwq0SDsKsEg6iqBIEoq/wEcVRZBXFV+QJxV5mBtlDFB5VjYTaGZ2sf4R9PM7U9ZU+lLuaetPP/5Die3ToO1+u+MKtHs06qODB2zBnI/jBd4MPQm1VkY79Tb18gB+C62FdBFsZR6yeIo1YQiLJWMIiqVjQIu1YSCLNWFgijVjYIuhYYCKoWKAiiFgoopxYaKLUWOii2FgkophYp6F3r42W5A9s9OcgNvva8xQaysKXlFytoqdYmQH6tF3toSUo0INq9AAAAAElFTkSuQmCC');
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.DayPicker-NavButton--next {
|
|
76
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAXRJREFUWAnN119ugjAcwPHWzJ1gnmxzB/BBE0n24m4xfNkTaOL7wOtsl3AXMMb+Vjaa1BG00N8fSEibPpAP3xAKKs2yjzTPH9RAjhEo9WzPr/Vm8zgE0+gXATAxxuxtqeJ9t5tIwv5AtQAApsfT6TPdbp+kUBcgVwvO51KqVhMkXKsVJFXrOkigVhCIs1Y4iKlWZxB1rX4gwlpRIIpa8SDkWmggrFq4IIRaJKCYWnSgnrXIQV1r8YD+1Vrn+bReagysIFfLABRt31v8oBu1xEBttfRbltmfjgEcWh9snUS2kNdBK6WN1vrOWxObWsz+fjxevsxmB1GQDfINWiev83nhaoiB/CoOU438oPrhXS0WpQ9xc1ZQWxWHqUYe0I0qrKCQKjygDlXIQV2r0IF6ViEBxVTBBSFUQQNhVYkHIVeJAtkNsbQ7c1LtzP6FsObhb2rCKv7NBIGoq4SDmKoEgTirXAcJVGkFSVVpgoSrXICGUMUH/QBZNSUy5XWUhwAAAABJRU5ErkJggg==');
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.DayPicker-NavButton--interactionDisabled {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.DayPicker-Caption {
|
|
84
|
+
display: table-caption;
|
|
85
|
+
margin-bottom: 0.5em;
|
|
86
|
+
padding: 0 0.5em;
|
|
87
|
+
text-align: left;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.DayPicker-Caption > div {
|
|
91
|
+
font-weight: 500;
|
|
92
|
+
font-size: 1.15em;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.DayPicker-Weekdays {
|
|
96
|
+
display: table-header-group;
|
|
97
|
+
margin-top: 1em;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.DayPicker-WeekdaysRow {
|
|
101
|
+
display: table-row;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.DayPicker-Weekday {
|
|
105
|
+
display: table-cell;
|
|
106
|
+
padding: 0.5em;
|
|
107
|
+
color: #8b9898;
|
|
108
|
+
text-align: center;
|
|
109
|
+
font-size: 0.875em;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.DayPicker-Weekday abbr[title] {
|
|
113
|
+
border-bottom: none;
|
|
114
|
+
text-decoration: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.DayPicker-Body {
|
|
118
|
+
display: table-row-group;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.DayPicker-Week {
|
|
122
|
+
display: table-row;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.DayPicker-Day {
|
|
126
|
+
display: table-cell;
|
|
127
|
+
padding: 0.5em;
|
|
128
|
+
border-radius: 50%;
|
|
129
|
+
vertical-align: middle;
|
|
130
|
+
text-align: center;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.DayPicker-WeekNumber {
|
|
135
|
+
display: table-cell;
|
|
136
|
+
padding: 0.5em;
|
|
137
|
+
min-width: 1em;
|
|
138
|
+
border-right: 1px solid #eaecec;
|
|
139
|
+
color: #8b9898;
|
|
140
|
+
vertical-align: middle;
|
|
141
|
+
text-align: right;
|
|
142
|
+
font-size: 0.75em;
|
|
143
|
+
cursor: pointer;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.DayPicker--interactionDisabled .DayPicker-Day {
|
|
147
|
+
cursor: default;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.DayPicker-Footer {
|
|
151
|
+
padding-top: 0.5em;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.DayPicker-TodayButton {
|
|
155
|
+
border: none;
|
|
156
|
+
background-color: transparent;
|
|
157
|
+
background-image: none;
|
|
158
|
+
box-shadow: none;
|
|
159
|
+
color: #4a90e2;
|
|
160
|
+
font-size: 0.875em;
|
|
161
|
+
cursor: pointer;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* Default modifiers */
|
|
165
|
+
|
|
166
|
+
.DayPicker-Day--today {
|
|
167
|
+
color: #d0021b;
|
|
168
|
+
font-weight: 700;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.DayPicker-Day--outside {
|
|
172
|
+
color: #8b9898;
|
|
173
|
+
cursor: default;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.DayPicker-Day--disabled {
|
|
177
|
+
color: #dce0e0;
|
|
178
|
+
cursor: default;
|
|
179
|
+
/* background-color: #eff1f1; */
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Example modifiers */
|
|
183
|
+
|
|
184
|
+
.DayPicker-Day--sunday {
|
|
185
|
+
background-color: #f7f8f8;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.DayPicker-Day--sunday:not(.DayPicker-Day--today) {
|
|
189
|
+
color: #dce0e0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside) {
|
|
193
|
+
position: relative;
|
|
194
|
+
|
|
195
|
+
background-color: #4a90e2;
|
|
196
|
+
color: #f0f8ff;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside):hover {
|
|
200
|
+
background-color: #51a0fa;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.DayPicker:not(.DayPicker--interactionDisabled)
|
|
204
|
+
.DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):hover {
|
|
205
|
+
background-color: #f0f8ff;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* DayPickerInput */
|
|
209
|
+
|
|
210
|
+
.DayPickerInput {
|
|
211
|
+
display: inline-block;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.DayPickerInput-OverlayWrapper {
|
|
215
|
+
position: relative;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.DayPickerInput-Overlay {
|
|
219
|
+
position: absolute;
|
|
220
|
+
left: 0;
|
|
221
|
+
z-index: 1;
|
|
222
|
+
|
|
223
|
+
background: white;
|
|
224
|
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
|
|
225
|
+
}
|
|
226
|
+
`;exports.default=e;
|