@kvdbil/components 14.2.4 → 14.2.5
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 -10
- package/cjs/ElevationCard.js +5 -5
- package/cjs/components/Accordion/index.js +20 -20
- package/cjs/components/Badge/index.js +9 -9
- package/cjs/components/Breadcrumbs/BreadcrumbsItem.js +10 -10
- package/cjs/components/Breadcrumbs/index.js +2 -2
- package/cjs/components/Button/index.js +22 -22
- package/cjs/components/Button/styles.js +23 -23
- package/cjs/components/Card/index.js +9 -9
- package/cjs/components/CheckBox/index.js +24 -24
- package/cjs/components/Chip/index.js +23 -23
- package/cjs/components/Chip/styles.js +1 -1
- package/cjs/components/DayPicker/DayPickerNavBar.js +7 -7
- package/cjs/components/DayPicker/index.js +4 -4
- package/cjs/components/DayPicker/localeUtils.js +1 -1
- package/cjs/components/DayPicker/style.js +23 -23
- package/cjs/components/Dialog/index.js +4 -4
- package/cjs/components/EditRow/index.js +14 -14
- package/cjs/components/ErrorMessage/index.js +6 -6
- package/cjs/components/FieldLabel.js +21 -21
- package/cjs/components/Flex/index.js +11 -11
- package/cjs/components/Hero/index.js +36 -36
- package/cjs/components/Icon/index.js +11 -11
- package/cjs/components/IconButton.js +13 -13
- package/cjs/components/Icons/Arrow.js +1 -1
- package/cjs/components/Icons/CheckCircle.js +1 -1
- package/cjs/components/Icons/CheckIcon.js +1 -1
- package/cjs/components/Icons/Close.js +1 -1
- package/cjs/components/Icons/ErrorCircle.js +1 -1
- package/cjs/components/Icons/InfoCircle.js +1 -1
- package/cjs/components/ListItem/Bacon.js +1 -1
- package/cjs/components/ListItem/index.js +7 -7
- package/cjs/components/Logo/LogoEn.js +1 -1
- package/cjs/components/Logo/LogoSv.js +1 -1
- package/cjs/components/Logo/index.js +3 -3
- package/cjs/components/MenuItem/index.js +22 -22
- package/cjs/components/Message/index.js +16 -16
- package/cjs/components/Modal/index.js +10 -10
- package/cjs/components/NotificationButton/index.js +4 -4
- package/cjs/components/OffCanvas/Overlay.js +2 -2
- package/cjs/components/OffCanvas/index.js +20 -20
- package/cjs/components/OffCanvas/useClickOutside.js +1 -1
- package/cjs/components/RadioButton/index.js +25 -25
- package/cjs/components/RegistrationPlate/EuFlagIcon.js +1 -1
- package/cjs/components/RegistrationPlate/index.js +14 -14
- package/cjs/components/Select/components/test-icon.js +1 -1
- package/cjs/components/Select/index.js +16 -16
- package/cjs/components/Snackbar/index.js +22 -22
- package/cjs/components/Spacer/index.js +7 -7
- package/cjs/components/Spinner/index.js +10 -10
- package/cjs/components/SpinnerThin/index.js +16 -16
- package/cjs/components/Stack/index.js +1 -1
- package/cjs/components/Stamp/index.js +1 -1
- package/cjs/components/Stepper/index.js +32 -32
- package/cjs/components/StepperAccordion/index.js +23 -23
- package/cjs/components/Table/index.js +11 -11
- package/cjs/components/Tabs/Tab.js +5 -5
- package/cjs/components/Tabs/Tabs.js +11 -11
- package/cjs/components/TextArea/index.js +33 -33
- package/cjs/components/Textfield/index.js +32 -32
- package/cjs/components/TimePicker/index.js +2 -2
- package/cjs/components/TimePicker/testHelper.js +1 -1
- package/cjs/components/Toggle/index.js +12 -12
- package/cjs/components/ToggleArrow/index.js +3 -3
- package/cjs/components/ValuationRange/index.js +17 -17
- package/cjs/hooks/useDynamicScript.js +1 -1
- package/cjs/icons/components/AddIcon.js +1 -1
- package/cjs/icons/components/AlertIcon.js +1 -1
- package/cjs/icons/components/ArrowDownIcon.js +1 -1
- package/cjs/icons/components/ArrowLeftIcon.js +1 -1
- package/cjs/icons/components/ArrowRightIcon.js +1 -1
- package/cjs/icons/components/ArrowUpIcon.js +1 -1
- package/cjs/icons/components/AtvIcon.js +1 -1
- package/cjs/icons/components/AuctionIcon.js +1 -1
- package/cjs/icons/components/BackIcon.js +1 -1
- package/cjs/icons/components/BankidIcon.js +1 -1
- package/cjs/icons/components/BidIcon.js +1 -1
- package/cjs/icons/components/BodyIcon.js +1 -1
- package/cjs/icons/components/BreaksIcon.js +1 -1
- package/cjs/icons/components/CabIcon.js +1 -1
- package/cjs/icons/components/CalendarIcon.js +1 -1
- package/cjs/icons/components/CameraIcon.js +1 -1
- package/cjs/icons/components/CamperIcon.js +1 -1
- package/cjs/icons/components/CancelCircleIcon.js +1 -1
- package/cjs/icons/components/CancelIcon.js +1 -1
- package/cjs/icons/components/CarIcon.js +1 -1
- package/cjs/icons/components/CarServiceIcon.js +1 -1
- package/cjs/icons/components/CaravanIcon.js +1 -1
- package/cjs/icons/components/CertifiedIcon.js +1 -1
- package/cjs/icons/components/ChatIcon.js +1 -1
- package/cjs/icons/components/CheckCircleIcon.js +1 -1
- package/cjs/icons/components/CheckFilledIcon.js +1 -1
- package/cjs/icons/components/CheckIcon.js +1 -1
- package/cjs/icons/components/CheckmarkIcon.js +1 -1
- package/cjs/icons/components/ClockIcon.js +1 -1
- package/cjs/icons/components/CloseIcon.js +1 -1
- package/cjs/icons/components/CommentFilledIcon.js +1 -1
- package/cjs/icons/components/CommentIcon.js +1 -1
- package/cjs/icons/components/ConditioningIcon.js +1 -1
- package/cjs/icons/components/ContactIcon.js +1 -1
- package/cjs/icons/components/ControlNumberIcon.js +1 -1
- package/cjs/icons/components/CopyIcon.js +1 -1
- package/cjs/icons/components/CountdownIcon.js +1 -1
- package/cjs/icons/components/CoupeIcon.js +1 -1
- package/cjs/icons/components/CraneIcon.js +1 -1
- package/cjs/icons/components/CupIcon.js +1 -1
- package/cjs/icons/components/DeleteIcon.js +1 -1
- package/cjs/icons/components/DisplayIcon.js +1 -1
- package/cjs/icons/components/DocumentIcon.js +1 -1
- package/cjs/icons/components/DownloadIcon.js +1 -1
- package/cjs/icons/components/EcoIcon.js +1 -1
- package/cjs/icons/components/EditIcon.js +1 -1
- package/cjs/icons/components/EngineIcon.js +1 -1
- package/cjs/icons/components/ErrorFilledIcon.js +1 -1
- package/cjs/icons/components/ErrorIcon.js +1 -1
- package/cjs/icons/components/EstoniaFlagIcon.js +1 -1
- package/cjs/icons/components/ExportIcon.js +1 -1
- package/cjs/icons/components/FacebookIcon.js +1 -1
- package/cjs/icons/components/FacilityIcon.js +1 -1
- package/cjs/icons/components/FavouriteFilledIcon.js +1 -1
- package/cjs/icons/components/FavouriteIcon.js +1 -1
- package/cjs/icons/components/FigmaIcon.js +1 -1
- package/cjs/icons/components/FilterIcon.js +1 -1
- package/cjs/icons/components/FinanceIcon.js +1 -1
- package/cjs/icons/components/FinlandFlagIcon.js +1 -1
- package/cjs/icons/components/FirstIcon.js +1 -1
- package/cjs/icons/components/FixedPriceIcon.js +1 -1
- package/cjs/icons/components/FuelIcon.js +1 -1
- package/cjs/icons/components/GearboxIcon.js +1 -1
- package/cjs/icons/components/GetPaidIcon.js +1 -1
- package/cjs/icons/components/GridViewIcon.js +1 -1
- package/cjs/icons/components/HatchbackIcon.js +1 -1
- package/cjs/icons/components/HelpIcon.js +1 -1
- package/cjs/icons/components/HistoryIcon.js +1 -1
- package/cjs/icons/components/HomeDeliveryIcon.js +1 -1
- package/cjs/icons/components/IdIcon.js +1 -1
- package/cjs/icons/components/ImageIcon.js +1 -1
- package/cjs/icons/components/InfoIcon.js +1 -1
- package/cjs/icons/components/InstagramIcon.js +1 -1
- package/cjs/icons/components/InsuranceIcon.js +1 -1
- package/cjs/icons/components/InteriorIcon.js +1 -1
- package/cjs/icons/components/KvdIcon.js +1 -1
- package/cjs/icons/components/KvdTestIcon.js +1 -1
- package/cjs/icons/components/KvdproIcon.js +1 -1
- package/cjs/icons/components/LastIcon.js +1 -1
- package/cjs/icons/components/LeaderIcon.js +1 -1
- package/cjs/icons/components/LinkedinIcon.js +1 -1
- package/cjs/icons/components/ListViewIcon.js +1 -1
- package/cjs/icons/components/LocationIcon.js +1 -1
- package/cjs/icons/components/MailIcon.js +1 -1
- package/cjs/icons/components/MenuIcon.js +1 -1
- package/cjs/icons/components/MileageIcon.js +1 -1
- package/cjs/icons/components/MinivanIcon.js +1 -1
- package/cjs/icons/components/ModelYearIcon.js +1 -1
- package/cjs/icons/components/MoreIcon.js +1 -1
- package/cjs/icons/components/MotorbikeIcon.js +1 -1
- package/cjs/icons/components/NavigationIcon.js +1 -1
- package/cjs/icons/components/NewIcon.js +1 -1
- package/cjs/icons/components/NextFilledIcon.js +1 -1
- package/cjs/icons/components/NextIcon.js +1 -1
- package/cjs/icons/components/NotificationIcon.js +1 -1
- package/cjs/icons/components/OpenInNewIcon.js +1 -1
- package/cjs/icons/components/PayementIcon.js +1 -1
- package/cjs/icons/components/PercentIcon.js +1 -1
- package/cjs/icons/components/PhoneIcon.js +1 -1
- package/cjs/icons/components/PickUpIcon.js +1 -1
- package/cjs/icons/components/Pickup.js +1 -1
- package/cjs/icons/components/PlayIcon.js +1 -1
- package/cjs/icons/components/PolandFlagIcon.js +1 -1
- package/cjs/icons/components/PreviousFilledIcon.js +1 -1
- package/cjs/icons/components/PreviousIcon.js +1 -1
- package/cjs/icons/components/PrintIcon.js +1 -1
- package/cjs/icons/components/QuoteIcon.js +1 -1
- package/cjs/icons/components/RatingIcon.js +1 -1
- package/cjs/icons/components/ReleasingIcon.js +1 -1
- package/cjs/icons/components/ReorderIcon.js +1 -1
- package/cjs/icons/components/RestartIcon.js +1 -1
- package/cjs/icons/components/SalesOfferIcon.js +1 -1
- package/cjs/icons/components/SavedSearchIcon.js +1 -1
- package/cjs/icons/components/ScheduleIcon.js +1 -1
- package/cjs/icons/components/SearchIcon.js +1 -1
- package/cjs/icons/components/SedanIcon.js +1 -1
- package/cjs/icons/components/SellFilledIcon.js +1 -1
- package/cjs/icons/components/SellIcon.js +1 -1
- package/cjs/icons/components/SettingsIcon.js +1 -1
- package/cjs/icons/components/ShareIcon.js +1 -1
- package/cjs/icons/components/ShowLessIcon.js +1 -1
- package/cjs/icons/components/ShowMoreIcon.js +1 -1
- package/cjs/icons/components/SignInIcon.js +1 -1
- package/cjs/icons/components/SignOutIcon.js +1 -1
- package/cjs/icons/components/SlackIcon.js +1 -1
- package/cjs/icons/components/SmartphoneIcon.js +1 -1
- package/cjs/icons/components/SmileIcon.js +1 -1
- package/cjs/icons/components/SnowmobileIcon.js +1 -1
- package/cjs/icons/components/SortColumnIcon.js +1 -1
- package/cjs/icons/components/SortIcon.js +1 -1
- package/cjs/icons/components/StorageIcon.js +1 -1
- package/cjs/icons/components/StoreIcon.js +1 -1
- package/cjs/icons/components/SuvIcon.js +1 -1
- package/cjs/icons/components/SwedishFlagIcon.js +1 -1
- package/cjs/icons/components/ThreeSixtyIcon.js +1 -1
- package/cjs/icons/components/TractorIcon.js +1 -1
- package/cjs/icons/components/TrailerIcon.js +1 -1
- package/cjs/icons/components/TransportIcon.js +1 -1
- package/cjs/icons/components/TruckIcon.js +1 -1
- package/cjs/icons/components/TwitterIcon.js +1 -1
- package/cjs/icons/components/TyresIcon.js +1 -1
- package/cjs/icons/components/UnitedKingdomFlagIcon.js +1 -1
- package/cjs/icons/components/UploadIcon.js +1 -1
- package/cjs/icons/components/UserIcon.js +1 -1
- package/cjs/icons/components/ValuationIcon.js +1 -1
- package/cjs/icons/components/VanIcon.js +1 -1
- package/cjs/icons/components/VersionIcon.js +1 -1
- package/cjs/icons/components/ViewsIcon.js +1 -1
- package/cjs/icons/components/WagonIcon.js +1 -1
- package/cjs/icons/components/WarningIcon.js +1 -1
- package/cjs/icons/components/WarrantyIcon.js +1 -1
- package/cjs/icons/components/YoutubeIcon.js +1 -1
- package/cjs/icons/components/index.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/shared/helpers.js +1 -1
- package/cjs/shared/media-queries.js +1 -1
- package/cjs/typography/BodyText/index.js +39 -39
- package/cjs/typography/ButtonText/index.js +20 -20
- package/cjs/typography/Heading/index.js +47 -47
- package/cjs/utils/utils.js +2 -2
- package/esm/ColorCard.js +10 -10
- package/esm/ElevationCard.js +5 -5
- package/esm/components/Accordion/index.js +4 -4
- package/esm/components/Badge/index.js +6 -6
- package/esm/components/Breadcrumbs/BreadcrumbsItem.js +6 -6
- package/esm/components/Breadcrumbs/index.js +2 -2
- package/esm/components/Button/index.js +19 -19
- package/esm/components/Button/styles.js +8 -8
- package/esm/components/Card/index.js +9 -9
- package/esm/components/CheckBox/index.js +18 -18
- package/esm/components/Chip/index.js +14 -14
- package/esm/components/Chip/styles.js +1 -1
- package/esm/components/DayPicker/DayPickerNavBar.js +8 -8
- package/esm/components/DayPicker/index.js +2 -2
- package/esm/components/DayPicker/localeUtils.js +1 -1
- package/esm/components/Dialog/index.js +3 -3
- package/esm/components/EditRow/index.js +12 -12
- package/esm/components/ErrorMessage/index.js +6 -6
- package/esm/components/FieldLabel.js +20 -20
- package/esm/components/Flex/index.js +11 -11
- package/esm/components/Hero/index.js +17 -17
- package/esm/components/Icon/index.js +7 -7
- package/esm/components/IconButton.js +10 -10
- package/esm/components/Icons/Arrow.js +1 -1
- package/esm/components/Icons/CheckCircle.js +1 -1
- package/esm/components/Icons/Close.js +1 -1
- package/esm/components/Icons/ErrorCircle.js +1 -1
- package/esm/components/Icons/InfoCircle.js +1 -1
- package/esm/components/ListItem/index.js +5 -5
- package/esm/components/Logo/index.js +2 -2
- package/esm/components/MenuItem/index.js +8 -8
- package/esm/components/Message/index.js +11 -11
- package/esm/components/Modal/index.js +4 -4
- package/esm/components/NotificationButton/index.js +3 -3
- package/esm/components/OffCanvas/Overlay.js +2 -2
- package/esm/components/OffCanvas/index.js +6 -6
- package/esm/components/OffCanvas/useClickOutside.js +1 -1
- package/esm/components/RadioButton/index.js +21 -21
- package/esm/components/RegistrationPlate/index.js +13 -13
- package/esm/components/Select/index.js +6 -6
- package/esm/components/Snackbar/index.js +13 -13
- package/esm/components/Spacer/index.js +5 -5
- package/esm/components/Spinner/index.js +9 -9
- package/esm/components/SpinnerThin/index.js +7 -7
- package/esm/components/Stack/index.js +1 -1
- package/esm/components/Stamp/index.js +1 -1
- package/esm/components/Stepper/index.js +23 -23
- package/esm/components/StepperAccordion/index.js +18 -18
- package/esm/components/Table/index.js +5 -5
- package/esm/components/Tabs/Tab.js +5 -5
- package/esm/components/Tabs/Tabs.js +11 -11
- package/esm/components/Tabs/index.js +1 -1
- package/esm/components/TextArea/index.js +26 -26
- package/esm/components/Textfield/index.js +16 -16
- package/esm/components/TimePicker/index.js +2 -2
- package/esm/components/TimePicker/testHelper.js +1 -1
- package/esm/components/Toggle/index.js +4 -4
- package/esm/components/ToggleArrow/index.js +2 -2
- package/esm/components/ValuationRange/index.js +15 -15
- package/esm/hooks/useDynamicScript.js +1 -1
- package/esm/icons/components/AddIcon.js +1 -1
- package/esm/icons/components/AlertIcon.js +1 -1
- package/esm/icons/components/ArrowDownIcon.js +1 -1
- package/esm/icons/components/ArrowLeftIcon.js +1 -1
- package/esm/icons/components/ArrowRightIcon.js +1 -1
- package/esm/icons/components/ArrowUpIcon.js +1 -1
- package/esm/icons/components/AtvIcon.js +1 -1
- package/esm/icons/components/AuctionIcon.js +1 -1
- package/esm/icons/components/BackIcon.js +1 -1
- package/esm/icons/components/BankidIcon.js +1 -1
- package/esm/icons/components/BidIcon.js +1 -1
- package/esm/icons/components/BreaksIcon.js +1 -1
- package/esm/icons/components/CabIcon.js +1 -1
- package/esm/icons/components/CalendarIcon.js +1 -1
- package/esm/icons/components/CameraIcon.js +1 -1
- package/esm/icons/components/CamperIcon.js +1 -1
- package/esm/icons/components/CancelCircleIcon.js +1 -1
- package/esm/icons/components/CancelIcon.js +1 -1
- package/esm/icons/components/CarIcon.js +1 -1
- package/esm/icons/components/CarServiceIcon.js +1 -1
- package/esm/icons/components/CaravanIcon.js +1 -1
- package/esm/icons/components/CertifiedIcon.js +1 -1
- package/esm/icons/components/ChatIcon.js +1 -1
- package/esm/icons/components/CheckCircleIcon.js +1 -1
- package/esm/icons/components/CheckFilledIcon.js +1 -1
- package/esm/icons/components/CheckIcon.js +1 -1
- package/esm/icons/components/CheckmarkIcon.js +1 -1
- package/esm/icons/components/CloseIcon.js +1 -1
- package/esm/icons/components/CommentFilledIcon.js +1 -1
- package/esm/icons/components/CommentIcon.js +1 -1
- package/esm/icons/components/ConditioningIcon.js +1 -1
- package/esm/icons/components/ContactIcon.js +1 -1
- package/esm/icons/components/ControlNumberIcon.js +1 -1
- package/esm/icons/components/CoupeIcon.js +1 -1
- package/esm/icons/components/CraneIcon.js +1 -1
- package/esm/icons/components/CupIcon.js +1 -1
- package/esm/icons/components/DeleteIcon.js +1 -1
- package/esm/icons/components/DisplayIcon.js +1 -1
- package/esm/icons/components/DocumentIcon.js +1 -1
- package/esm/icons/components/DownloadIcon.js +1 -1
- package/esm/icons/components/EcoIcon.js +1 -1
- package/esm/icons/components/EditIcon.js +1 -1
- package/esm/icons/components/EngineIcon.js +1 -1
- package/esm/icons/components/ErrorFilledIcon.js +1 -1
- package/esm/icons/components/ErrorIcon.js +1 -1
- package/esm/icons/components/EstoniaFlagIcon.js +1 -1
- package/esm/icons/components/FacebookIcon.js +1 -1
- package/esm/icons/components/FavouriteFilledIcon.js +1 -1
- package/esm/icons/components/FavouriteIcon.js +1 -1
- package/esm/icons/components/FigmaIcon.js +1 -1
- package/esm/icons/components/FilterIcon.js +1 -1
- package/esm/icons/components/FinanceIcon.js +1 -1
- package/esm/icons/components/FinlandFlagIcon.js +1 -1
- package/esm/icons/components/FirstIcon.js +1 -1
- package/esm/icons/components/FixedPriceIcon.js +1 -1
- package/esm/icons/components/FuelIcon.js +1 -1
- package/esm/icons/components/GearboxIcon.js +1 -1
- package/esm/icons/components/GetPaidIcon.js +1 -1
- package/esm/icons/components/GridViewIcon.js +1 -1
- package/esm/icons/components/HatchbackIcon.js +1 -1
- package/esm/icons/components/HelpIcon.js +1 -1
- package/esm/icons/components/HistoryIcon.js +1 -1
- package/esm/icons/components/HomeDeliveryIcon.js +1 -1
- package/esm/icons/components/IdIcon.js +1 -1
- package/esm/icons/components/ImageIcon.js +1 -1
- package/esm/icons/components/InfoIcon.js +1 -1
- package/esm/icons/components/InsuranceIcon.js +1 -1
- package/esm/icons/components/InteriorIcon.js +1 -1
- package/esm/icons/components/KvdIcon.js +1 -1
- package/esm/icons/components/KvdTestIcon.js +1 -1
- package/esm/icons/components/KvdproIcon.js +1 -1
- package/esm/icons/components/LastIcon.js +1 -1
- package/esm/icons/components/LeaderIcon.js +1 -1
- package/esm/icons/components/LinkedinIcon.js +1 -1
- package/esm/icons/components/ListViewIcon.js +1 -1
- package/esm/icons/components/LocationIcon.js +1 -1
- package/esm/icons/components/MailIcon.js +1 -1
- package/esm/icons/components/MenuIcon.js +1 -1
- package/esm/icons/components/MileageIcon.js +1 -1
- package/esm/icons/components/MinivanIcon.js +1 -1
- package/esm/icons/components/ModelYearIcon.js +1 -1
- package/esm/icons/components/MoreIcon.js +1 -1
- package/esm/icons/components/MotorbikeIcon.js +1 -1
- package/esm/icons/components/NavigationIcon.js +1 -1
- package/esm/icons/components/NewIcon.js +1 -1
- package/esm/icons/components/NextFilledIcon.js +1 -1
- package/esm/icons/components/NotificationIcon.js +1 -1
- package/esm/icons/components/OpenInNewIcon.js +1 -1
- package/esm/icons/components/PayementIcon.js +1 -1
- package/esm/icons/components/PhoneIcon.js +1 -1
- package/esm/icons/components/PickUpIcon.js +1 -1
- package/esm/icons/components/Pickup.js +1 -1
- package/esm/icons/components/PlayIcon.js +1 -1
- package/esm/icons/components/PolandFlagIcon.js +1 -1
- package/esm/icons/components/PreviousFilledIcon.js +1 -1
- package/esm/icons/components/PreviousIcon.js +1 -1
- package/esm/icons/components/QuoteIcon.js +1 -1
- package/esm/icons/components/RatingIcon.js +1 -1
- package/esm/icons/components/ReleasingIcon.js +1 -1
- package/esm/icons/components/ReorderIcon.js +1 -1
- package/esm/icons/components/RestartIcon.js +1 -1
- package/esm/icons/components/SalesOfferIcon.js +1 -1
- package/esm/icons/components/SavedSearchIcon.js +1 -1
- package/esm/icons/components/SearchIcon.js +1 -1
- package/esm/icons/components/SedanIcon.js +1 -1
- package/esm/icons/components/SellFilledIcon.js +1 -1
- package/esm/icons/components/SellIcon.js +1 -1
- package/esm/icons/components/SettingsIcon.js +1 -1
- package/esm/icons/components/ShareIcon.js +1 -1
- package/esm/icons/components/ShowLessIcon.js +1 -1
- package/esm/icons/components/ShowMoreIcon.js +1 -1
- package/esm/icons/components/SignInIcon.js +1 -1
- package/esm/icons/components/SignOutIcon.js +1 -1
- package/esm/icons/components/SlackIcon.js +1 -1
- package/esm/icons/components/SmartphoneIcon.js +1 -1
- package/esm/icons/components/SmileIcon.js +1 -1
- package/esm/icons/components/SnowmobileIcon.js +1 -1
- package/esm/icons/components/SortColumnIcon.js +1 -1
- package/esm/icons/components/SortIcon.js +1 -1
- package/esm/icons/components/StorageIcon.js +1 -1
- package/esm/icons/components/StoreIcon.js +1 -1
- package/esm/icons/components/SuvIcon.js +1 -1
- package/esm/icons/components/SwedishFlagIcon.js +1 -1
- package/esm/icons/components/ThreeSixtyIcon.js +1 -1
- package/esm/icons/components/TrailerIcon.js +1 -1
- package/esm/icons/components/TransportIcon.js +1 -1
- package/esm/icons/components/TruckIcon.js +1 -1
- package/esm/icons/components/TwitterIcon.js +1 -1
- package/esm/icons/components/TyresIcon.js +1 -1
- package/esm/icons/components/UnitedKingdomFlagIcon.js +1 -1
- package/esm/icons/components/UploadIcon.js +1 -1
- package/esm/icons/components/UserIcon.js +1 -1
- package/esm/icons/components/ValuationIcon.js +1 -1
- package/esm/icons/components/VanIcon.js +1 -1
- package/esm/icons/components/VersionIcon.js +1 -1
- package/esm/icons/components/ViewsIcon.js +1 -1
- package/esm/icons/components/WagonIcon.js +1 -1
- package/esm/icons/components/WarningIcon.js +1 -1
- package/esm/icons/components/WarrantyIcon.js +1 -1
- package/esm/icons/components/index.js +1 -1
- package/esm/index.js +1 -1
- package/esm/shared/helpers.js +1 -1
- package/esm/shared/media-queries.js +1 -1
- package/esm/typography/BodyText/index.js +35 -35
- package/esm/typography/ButtonText/index.js +13 -13
- package/esm/typography/Heading/index.js +27 -27
- package/esm/utils/utils.js +2 -2
- package/package.json +34 -13
- package/types/testUtils.d.ts +1 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("react"),k=require("styled-components"),x=require("../../typography/BodyText/index.js"),w=require("../../typography/Heading/index.js"),i=require("../../theme.js"),q=require("../Snackbar/index.js");function d(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}require("../../shared/media-queries.js"),require("../Icons/CheckCircle.js"),require("../Icons/Close.js"),require("../Icons/ErrorCircle.js"),require("../Icons/InfoCircle.js"),require("react-transition-group");var r=d(s),t=d(k);const h=t.default.div`
|
|
2
2
|
margin: 0 auto;
|
|
3
3
|
max-width: 700px;
|
|
4
|
-
`,
|
|
4
|
+
`,j=t.default(w.Title)`
|
|
5
5
|
margin: 0.5rem;
|
|
6
|
-
`,
|
|
6
|
+
`,C=t.default.ul`
|
|
7
7
|
display: flex;
|
|
8
8
|
list-style: none;
|
|
9
9
|
flex-wrap: wrap;
|
|
10
10
|
padding: 0;
|
|
11
|
-
`,
|
|
12
|
-
background: ${({background:
|
|
11
|
+
`,E=t.default.li`
|
|
12
|
+
background: ${({background:e})=>e};
|
|
13
13
|
display: flex;
|
|
14
14
|
justify-content: center;
|
|
15
15
|
flex-direction: column;
|
|
16
16
|
align-items: center;
|
|
17
17
|
width: calc(25% - 2px - 1.5rem);
|
|
18
18
|
padding: 0 0.25rem;
|
|
19
|
-
border: 1px solid ${
|
|
19
|
+
border: 1px solid ${i.default.colors.gray.dark5};
|
|
20
20
|
border-radius: 3px;
|
|
21
21
|
margin: 0.5rem;
|
|
22
22
|
cursor: pointer;
|
|
23
|
-
`,
|
|
23
|
+
`,v=t.default(x.Caption)`
|
|
24
24
|
overflow-wrap: break-word;
|
|
25
25
|
word-wrap: break-word;
|
|
26
26
|
word-break: break-word;
|
|
27
27
|
hyphens: auto;
|
|
28
28
|
text-align: center;
|
|
29
|
-
`,
|
|
30
|
-
font-size: ${({size:
|
|
31
|
-
color: ${({color:
|
|
32
|
-
`;exports.default=({background:
|
|
29
|
+
`,O=t.default.span`
|
|
30
|
+
font-size: ${({size:e})=>e};
|
|
31
|
+
color: ${({color:e})=>e};
|
|
32
|
+
`;exports.default=({background:e=i.default.colors.background.light,color:u=i.default.colors.text.dark,icons:p,size:f="2rem"})=>{const[a,l]=s.useState({isOpen:!1,message:"",type:"info",color:"neutral"});return r.default.createElement(r.default.Fragment,null,r.default.createElement(h,null,r.default.createElement(j,{as:"h2"},"Click to copy import declaration for icon"),r.default.createElement(C,null,p.map(([o,m],g)=>r.default.createElement(E,{key:g,background:e,onClick:()=>{(async c=>{const y=`import { ${c} } from 'kvdbil-components';`;if(navigator.clipboard)try{await navigator.clipboard.writeText(y),l(n=>({...n,isOpen:!0,message:`copied import for ${c}`,type:"success",color:"success"}))}catch(n){l(b=>({...b,isOpen:!0,message:`Could not copy text: ${n}`,type:"error",color:"error"}))}})(o)}},r.default.createElement(v,null,o),r.default.createElement(O,{size:f,color:u},r.default.createElement(m,null)))))),r.default.createElement(q.Snackbar,{message:a.message,isOpen:a.isOpen,type:a.type,color:a.color,onClose:()=>l(o=>({...o,isOpen:!1}))}))};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var b=require("react"),r=require("styled-components");function a(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var l=a(b),s=a(r);const f=r.css`
|
|
2
2
|
background-color: transparent;
|
|
3
|
-
`,
|
|
4
|
-
background-color: ${({theme:
|
|
3
|
+
`,u="400ms",n=r.css`
|
|
4
|
+
background-color: ${({theme:e,color:c})=>e.colors[c].main};
|
|
5
5
|
opacity: 0.1;
|
|
6
|
-
${
|
|
7
|
-
`,
|
|
8
|
-
cursor: ${
|
|
6
|
+
${e=>e.isDisabled&&f};
|
|
7
|
+
`,m=s.default.div`
|
|
8
|
+
cursor: ${e=>e.isDisabled?"default":"pointer"};
|
|
9
9
|
outline: none;
|
|
10
10
|
|
|
11
11
|
display: inline-block;
|
|
@@ -19,23 +19,23 @@
|
|
|
19
19
|
|
|
20
20
|
:hover {
|
|
21
21
|
.button-background {
|
|
22
|
-
transition: background-color ${
|
|
23
|
-
${
|
|
22
|
+
transition: background-color ${u};
|
|
23
|
+
${n}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
:focus {
|
|
28
28
|
.button-background {
|
|
29
|
-
transition: background-color ${
|
|
29
|
+
transition: background-color ${u};
|
|
30
30
|
animation: FocusRipple ${"1500ms"} 0ms infinite alternate-reverse;
|
|
31
|
-
${
|
|
31
|
+
${n}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
:active {
|
|
36
36
|
.button-background {
|
|
37
37
|
animation: ActiveRipple ${"750ms"};
|
|
38
|
-
${
|
|
38
|
+
${n}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
clip-path: circle(50%);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
`,
|
|
65
|
+
`,k=s.default.div`
|
|
66
66
|
top: 0;
|
|
67
67
|
left: 0;
|
|
68
68
|
|
|
@@ -72,4 +72,4 @@
|
|
|
72
72
|
|
|
73
73
|
position: absolute;
|
|
74
74
|
border-radius: 10rem;
|
|
75
|
-
`;exports.BackgroundStyles=
|
|
75
|
+
`;exports.BackgroundStyles=n,exports.default=({children:e,isActive:c,isDisabled:o,onClick:i,noTabIndex:d=!1,color:p})=>l.default.createElement(m,{color:p,isActive:c,isDisabled:o,onClick:t=>{t.stopPropagation(),t.preventDefault(),t.persist(),!o&&typeof i=="function"&&i(t)},onKeyDown:t=>{t.key==="Enter"&&!o&&typeof i=="function"&&(t.persist(),i(t))},tabIndex:o||d?void 0:0},l.default.createElement(k,{className:"button-background"}),e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function e
|
|
1
|
+
"use strict";function a(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=a(require("react"));exports.default=({title:e,...l})=>t.default.createElement("svg",{...l},e&&t.default.createElement("title",null,e),t.default.createElement("symbol",{id:"icon-arrow",viewBox:"0 0 22 22"},t.default.createElement("path",{d:"M1.29412 9.70588L10.7843 19.1961C10.9034 19.3152 11.0966 19.3152 11.2157 19.1961L20.7059 9.70588L22 11L12.5098 20.4902C11.676 21.324 10.324 21.324 9.4902 20.4902L0 11L1.29412 9.70588Z"})),t.default.createElement("use",{xlinkHref:"#icon-arrow"}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function e
|
|
1
|
+
"use strict";function l(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=l(require("react"));exports.default=({title:e="CheckCircle",...C})=>t.default.createElement("svg",{...C},e&&t.default.createElement("title",null,e),t.default.createElement("symbol",{id:"icon-checkCircle",viewBox:"0 0 24 24"},t.default.createElement("path",{d:"M12.5 23.0012C6.42487 23.0012 1.5 18.0764 1.5 12.0012C1.5 5.92609 6.42487 1.00122 12.5 1.00122C18.5751 1.00122 23.5 5.92609 23.5 12.0012C23.5 18.0764 18.5751 23.0012 12.5 23.0012ZM12.5 21.1679C17.5626 21.1679 21.6667 17.0638 21.6667 12.0012C21.6667 6.93861 17.5626 2.83455 12.5 2.83455C7.43739 2.83455 3.33333 6.93861 3.33333 12.0012C3.33333 17.0638 7.43739 21.1679 12.5 21.1679ZM9.10748 13.2429C9.33504 13.5121 9.55429 13.7564 9.76125 13.9695C10.1479 14.3676 10.4817 14.6294 10.6107 14.7179C10.6392 14.7003 10.6714 14.6794 10.7067 14.6551C10.9006 14.522 11.1553 14.3144 11.4591 14.0413C12.0292 13.5287 12.7476 12.8084 13.5766 11.9265C13.7427 11.7497 13.9125 11.5673 14.0856 11.3797C14.819 10.5847 15.5796 9.73162 16.3227 8.87836C16.5829 8.5796 16.8222 8.30225 17.0352 8.0535C17.1626 7.90465 17.2527 7.79871 17.2999 7.74287L18.7001 8.92624C18.6505 8.98498 18.5579 9.09389 18.4278 9.24582C18.2116 9.49837 17.9689 9.77961 17.7052 10.0824C16.9514 10.9479 16.1796 11.8136 15.4331 12.6228C15.2562 12.8145 15.0826 13.0011 14.9124 13.1821C12.7154 15.5196 11.5309 16.5846 10.6667 16.5846C9.95327 16.5846 9.28235 16.1078 8.44613 15.2468C8.20742 15.0011 7.96047 14.7259 7.70721 14.4262C7.35453 14.0089 7.00646 13.5644 6.67696 13.1203C6.47905 12.8535 6.33026 12.6446 6.24558 12.5219L7.75443 11.4805C7.82792 11.587 7.96481 11.7792 8.14939 12.028C8.4574 12.4432 8.78234 12.8581 9.10748 13.2429Z"})),t.default.createElement("use",{xlinkHref:"#icon-checkCircle"}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function e
|
|
1
|
+
"use strict";function l(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=l(require("react"));exports.default=({className:e="icon__svg"})=>t.default.createElement("svg",{className:e},t.default.createElement("title",null,"Check"),t.default.createElement("symbol",{id:"icon-check",viewBox:"0 0 20 16"},t.default.createElement("path",{d:"M5.64559 11.2678C5.31325 10.8822 4.96116 10.4401 4.59575 9.95286C4.07361 9.25661 3.55182 8.50577 3.0572 7.75441C2.76079 7.30414 2.54098 6.95638 2.42297 6.7637L0 8.6482C0.135982 8.87023 0.3749 9.2482 0.692726 9.73101C1.22184 10.5348 1.78078 11.3391 2.34713 12.0943C2.75382 12.6366 3.15039 13.1345 3.53372 13.5793C4.87655 15.1373 5.95393 16 7.09955 16C8.48728 16 10.3894 14.0728 13.9175 9.84286C14.1908 9.51527 14.4697 9.17762 14.7536 8.83074C15.9524 7.36638 17.1918 5.79987 18.4023 4.23366C18.8257 3.6857 19.2155 3.17676 19.5627 2.71975C19.7716 2.44481 19.9203 2.24773 20 2.14142L17.7514 0C17.6756 0.101045 17.531 0.292744 17.3263 0.562104C16.9843 1.01226 16.6 1.51416 16.1821 2.05479C14.9888 3.59885 13.7675 5.1426 12.5898 6.58116C12.3118 6.92065 12.0392 7.25078 11.7723 7.57068C10.4411 9.16669 9.28751 10.4701 8.37209 11.3976C7.8842 11.892 7.47522 12.2676 7.16387 12.5084C7.10708 12.5523 7.05542 12.5903 7.00971 12.6221C6.8025 12.4619 6.2665 11.9882 5.64559 11.2678Z"})),t.default.createElement("use",{xlinkHref:"#icon-check"}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function e
|
|
1
|
+
"use strict";function a(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=a(require("react"));exports.default=({title:e="Close",...l})=>t.default.createElement("svg",{...l},e&&t.default.createElement("title",null,e),t.default.createElement("symbol",{id:"icon-close",viewBox:"0 0 24 24"},t.default.createElement("path",{d:"M12.0001 10.5859L21.7629 0.823223L23.1771 2.23744L13.4144 12.0002L23.1771 21.7629L21.7629 23.1771L12.0001 13.4144L2.23744 23.1771L0.823223 21.7629L10.5859 12.0002L0.823223 2.23745L2.23744 0.823234L12.0001 10.5859Z"})),t.default.createElement("use",{xlinkHref:"#icon-close"}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function e
|
|
1
|
+
"use strict";function r(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=r(require("react"));exports.default=({title:e,...l})=>t.default.createElement("svg",{...l},e&&t.default.createElement("title",null,e),t.default.createElement("symbol",{id:"icon-errorCircle",viewBox:"0 0 24 24"},t.default.createElement("path",{d:"M1.5 12.0012C1.5 18.0764 6.42487 23.0012 12.5 23.0012C18.5751 23.0012 23.5 18.0764 23.5 12.0012C23.5 5.92609 18.5751 1.00122 12.5 1.00122C6.42487 1.00122 1.5 5.92609 1.5 12.0012ZM21.6667 12.0012C21.6667 17.0638 17.5626 21.1679 12.5 21.1679C7.43739 21.1679 3.33333 17.0638 3.33333 12.0012C3.33333 6.93861 7.43739 2.83455 12.5 2.83455C17.5626 2.83455 21.6667 6.93861 21.6667 12.0012ZM13.4167 13.8346V6.50122H11.5833V13.8346H13.4167ZM13.4167 15.6679V17.5012H11.5833V15.6679H13.4167Z"})),t.default.createElement("use",{xlinkHref:"#icon-errorCircle"}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function e
|
|
1
|
+
"use strict";function a(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=a(require("react"));exports.default=({title:e,...l})=>t.default.createElement("svg",{...l},e&&t.default.createElement("title",null,e),t.default.createElement("symbol",{id:"icon-infoCircle",viewBox:"0 0 24 24"},t.default.createElement("path",{d:"M1.5 12.0012C1.5 18.0764 6.42487 23.0012 12.5 23.0012C18.5751 23.0012 23.5 18.0764 23.5 12.0012C23.5 5.92609 18.5751 1.00122 12.5 1.00122C6.42487 1.00122 1.5 5.92609 1.5 12.0012ZM21.6667 12.0012C21.6667 17.0638 17.5626 21.1679 12.5 21.1679C7.43739 21.1679 3.33333 17.0638 3.33333 12.0012C3.33333 6.93861 7.43739 2.83455 12.5 2.83455C17.5626 2.83455 21.6667 6.93861 21.6667 12.0012ZM13.4167 10.1679V17.5012H11.5833V10.1679H13.4167ZM13.4167 8.33455V6.50122H11.5833V8.33455H13.4167Z"})),t.default.createElement("use",{xlinkHref:"#icon-infoCircle"}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function e
|
|
1
|
+
"use strict";function l(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=l(require("react"));exports.default=({color:e="black"})=>t.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",viewBox:"0 0 1000 1000",fill:e},t.default.createElement("title",null,"Bacon"),t.default.createElement("path",{d:"M7204.2 5021.9c-224.4-46.1-422.8-204.4-537-430.8-32.1-66.1-98.2-226.4-144.3-358.7-128.3-368.7-210.4-521-362.7-677.3-210.4-214.4-458.9-312.6-903.8-354.7-364.7-36.1-527-90.2-659.3-222.4-104.2-104.2-150.3-246.5-188.4-585.1-16-162.3-44.1-332.6-62.1-378.7-100.2-284.5-320.6-410.8-799.5-456.9-342.7-32.1-515-98.2-637.2-242.5-100.2-116.2-132.3-224.4-164.3-569.1-38.1-424.8-88.2-545.1-268.5-667.3C2354.8-3.8 2220.6-39.9 1899.9-76c-148.3-18-328.6-50.1-402.8-72.1C1040.3-288.4 647.5-633 401-1108c-158.3-306.6-252.5-605.2-292.6-921.8-24-196.4 4-396.8 72.1-511 26-44.1 529-559.1 1116.2-1144.2 1004-1001.9 1074.1-1068 1176.3-1100.1 232.5-76.1 537 0 719.4 176.3 138.3 134.3 214.4 282.6 342.7 663.3 64.1 194.4 148.3 404.8 186.4 466.9 166.3 278.5 484.9 438.8 967.9 486.9 474.9 48.1 629.2 96.2 773.5 240.5 122.2 122.2 152.3 218.4 188.3 617.2 22.1 246.5 38.1 328.6 78.2 410.8 120.2 248.5 274.5 328.7 753.4 384.7 290.6 34.1 454.9 82.2 561.1 166.3 158.3 130.3 208.4 264.5 238.5 655.3 12 144.3 34.1 306.6 50.1 360.7 78.1 256.5 276.5 386.8 657.3 430.9 312.6 36.1 515 78.1 675.3 140.3 450.9 174.3 843.6 593.1 1066 1132.2 132.3 320.6 168.3 486.9 168.3 781.5-2 436.8 82.1 322.6-1140.2 1549-821.6 823.6-1066 1058.1-1144.2 1096.1-116.3 56.1-282.6 76.2-410.8 48.1zm356.7-527l130.3-126.3-70.1-118.2c-40.1-64.1-132.2-250.5-204.4-412.8-220.4-495-340.7-685.3-567.1-897.7-248.5-236.4-551.1-358.7-997.9-400.8-400.8-38.1-585.1-130.3-691.3-346.7-50.1-104.2-66.1-172.3-90.2-404.8-56.1-497-130.2-651.3-376.7-769.5-122.2-60.1-186.4-74.2-611.2-130.3-362.7-48.1-563.1-188.4-633.2-438.8-16-58.1-40.1-222.4-52.1-368.7-34.1-426.8-100.2-569.1-314.6-681.3-144.3-74.1-236.5-98.2-511-126.2-513-52.1-843.6-204.4-1160.2-535-172.3-180.4-288.6-348.7-400.8-583.1-90.2-188.4-188.4-472.9-208.4-611.2-8-52.1-22-98.2-30.1-104.2-8-4-72.1 50.1-140.3 122.3l-126.2 130.2 12 174.3c20 326.7 154.3 721.4 340.7 999.9 266.5 400.8 643.2 617.2 1142.2 655.3 615.2 48.1 983.9 316.6 1106.1 803.6 16 66.1 38.1 234.5 50.1 372.7 10 140.3 28.1 276.5 38.1 304.6 28.1 74.2 118.2 114.2 318.6 138.3 478.9 56.1 633.2 100.2 841.6 236.5 204.4 132.3 352.7 354.7 414.8 629.2 14 66.1 38.1 222.4 50.1 346.7 28.1 288.6 46.1 342.7 134.3 380.7 40.1 16 194.4 42.1 346.7 58.1 887.7 92.2 1300.5 422.8 1599.1 1270.4 108.2 308.6 134.3 364.7 198.4 440.9 66.1 78.1 150.3 118.2 254.5 120.2 67.9-.1 91.9-14.1 208.2-128.3zm1466.8-1563c-22-34.1-64.1-162.3-98.2-284.6-82.1-304.6-132.2-428.8-224.4-567.1-248.5-372.7-697.4-597.2-1498.9-753.5-288.5-56.1-382.7-94.2-480.9-192.4-128.3-126.2-182.4-290.5-232.5-703.3-70.1-577.1-188.4-721.4-611.2-747.5-623.2-40.1-923.8-214.4-1090.1-633.2-28.1-70.1-84.2-254.5-122.2-408.8-82.2-332.6-160.3-503-274.5-599.1-106.2-92.2-218.4-128.3-472.9-152.3-226.4-22-452.9-88.2-625.2-184.4-398.8-222.4-791.5-685.3-1076.1-1268.5-68.1-142.3-126.2-272.5-126.2-284.6 0-46.1-30.1-28-146.3 90.2L1831.9-3639l64.1 98.2c36.1 52.1 136.3 258.5 222.4 456.9 246.5 567.1 380.7 779.5 601.2 949.8 248.5 190.4 503 274.5 977.9 324.6 328.6 32.1 466.9 82.2 607.2 216.4 110.2 106.2 152.3 240.5 184.4 593.2 38.1 400.8 64.1 484.9 194.4 605.2 134.3 128.2 264.5 172.3 637.2 216.4 306.6 36.1 432.9 74.2 545.1 158.3 174.3 132.3 224.4 264.5 256.5 665.3 26 344.7 62.1 452.9 190.4 583.1 130.3 132.3 256.5 180.3 589.2 218.4 140.3 16 308.6 44.1 374.7 60.1 621.2 162.3 1120.2 755.5 1370.7 1633.2 24.1 82.2 48.1 162.3 52.1 178.3 6 20 68.1-28.1 186.4-146.3l178.3-176.3-36.4-63.9zm404.8-314.6c22-28.1 48.1-110.2 60.1-182.4 58.1-336.6-176.3-951.8-489-1288.5-242.5-260.5-505-392.8-853.6-432.8-460.9-52.1-639.2-104.2-845.6-242.5-68.1-44.1-158.3-128.2-200.4-184.4C6961.7 98.3 6913.6-58 6875.6-468.8c-16-162.3-38.1-314.6-52.1-338.7-36.1-68.1-134.3-96.2-430.8-130.3-539-60.1-835.6-218.4-1005.9-543-84.2-156.3-122.2-322.6-146.3-637.2-34.1-420.8 0-394.8-671.3-472.9-565.1-66.1-979.9-302.6-1208.3-691.3-48.1-82.1-132.3-288.6-202.4-499-68.1-196.4-138.3-384.7-160.3-420.8-88.2-142.3-244.5-230.4-358.7-202.4-54.1 14-144.3 84.2-144.3 114.2 0 8 28.1 62.1 64.1 118.2 34.1 58.1 138.3 274.5 228.4 484.9 218.4 497 318.6 663.3 529 875.7 296.6 298.6 631.2 432.8 1172.3 472.9 226.4 16 290.6 40.1 346.7 132.2 56.1 90.2 78.2 186.4 126.3 527 22 162.3 62.1 364.7 88.2 448.9C5192.3-779.3 5488.9-607 6116.1-607c228.4 0 268.5 6 346.7 46.1 96.2 48.1 168.3 138.3 200.4 252.5 12 40.1 38.1 194.4 60.1 342.7 22 148.3 58.1 330.7 82.1 402.8 82.2 264.5 270.5 428.8 557.1 488.9 561.1 116.2 761.5 184.4 1028 342.7 302.6 182.4 609.2 517 775.5 845.6 72.1 144.3 182.3 460.9 182.3 525 0 54.1 34.1 44.1 84.2-22z",transform:"matrix(.1 0 0 -.1 0 511)"}));
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("react"),c=require("styled-components"),f=require("../../typography/BodyText/index.js"),s=require("../../typography/Heading/index.js");function i(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}require("../../shared/media-queries.js");var t=i(o),l=i(c);const p=l.default.li`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
padding-bottom: 20px;
|
|
5
5
|
&:last-child {
|
|
6
6
|
padding-bottom: 0;
|
|
7
7
|
}
|
|
8
|
-
`,
|
|
8
|
+
`,m=l.default.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
11
|
margin: 0;
|
|
12
|
-
`,
|
|
12
|
+
`,g=l.default(s.TinyTitleBold)`
|
|
13
13
|
margin: 0;
|
|
14
|
-
`,
|
|
14
|
+
`,x=l.default.div`
|
|
15
15
|
display: flex;
|
|
16
16
|
align-items: center;
|
|
17
17
|
margin-right: 24px;
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
width: 30px;
|
|
20
20
|
height: 100%;
|
|
21
21
|
}
|
|
22
|
-
`,
|
|
23
|
-
padding-left: ${({hasIcon:
|
|
24
|
-
`;exports.default=({title:
|
|
22
|
+
`,y=l.default.div`
|
|
23
|
+
padding-left: ${({hasIcon:e})=>e?"54px":0};
|
|
24
|
+
`;exports.default=({title:e,text:d,icon:a,component:n="li",children:r,...u})=>t.default.createElement(p,{as:n,...u},t.default.createElement(m,null,a&&t.default.createElement(x,null,a),t.default.createElement(g,null,e)),t.default.createElement(y,{hasIcon:Boolean(a)},t.default.createElement(f.BodyText,null,d,r)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),l=require("../../theme.js");function a(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var C=a(t);exports.default=({color:e=l.default.colors.neutral.main})=>C.default.createElement("svg",{viewBox:"0 0 622 223",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"kvdlogo-en"},C.default.createElement("title",{id:"kvdlogo-en"},"kvdcars.com"),C.default.createElement("path",{d:"M563.63 130.23C561.82 127.17 559.53 124.57 556.81 122.52C554.18 120.54 551.29 118.87 548.23 117.57C545.36 116.35 542.64 115.15 540.14 113.99C537.8 112.9 535.83 111.71 534.29 110.44C533.08 109.44 532.52 108.24 532.52 106.67C532.52 105.1 533 103.96 534.02 103.11C535.07 102.24 536.56 101.77 538.46 101.73L561.94 109.52V87.83L560.57 87.35C556.81 86.02 553.15 84.93 549.69 84.12C546.16 83.29 542.26 82.86 538.12 82.86C533.98 82.86 530.19 83.43 526.85 84.55C523.47 85.69 520.55 87.34 518.16 89.44C515.76 91.56 513.88 94.13 512.56 97.09C511.24 100.04 510.58 103.34 510.58 106.9C510.58 111.77 511.52 115.84 513.38 118.99C515.2 122.07 517.48 124.61 520.18 126.56C522.79 128.44 525.66 130 528.73 131.18C531.61 132.3 534.3 133.42 536.71 134.52C539.01 135.57 540.96 136.75 542.49 138.01C543.7 139.01 544.26 140.31 544.26 142.11C544.26 144.1 543.67 145.47 542.4 146.43C541.05 147.45 539.09 147.99 536.59 148.04L511.34 139.22V161.63L512.59 162.16C515.97 163.59 519.84 164.8 524.09 165.77C528.38 166.75 532.95 167.24 537.67 167.24C541.8 167.24 545.64 166.67 549.08 165.55C552.56 164.42 555.62 162.77 558.18 160.64C560.78 158.48 562.82 155.81 564.26 152.7C565.69 149.6 566.42 146.03 566.42 142.1C566.44 137.37 565.49 133.38 563.63 130.23Z",fill:e}),C.default.createElement("path",{d:"M124.01 84.33H99.02L77.58 114.92V56.04H55.16V166.56H77.58V132.24L101.06 166.56H127.94L96.57 123.5L124.01 84.33Z",fill:e}),C.default.createElement("path",{d:"M235.3 144.12C224.78 144.12 216.25 135.59 216.25 125.07C216.25 114.55 224.78 106.02 235.3 106.02C245.83 106.02 254.35 114.55 254.35 125.07C254.35 135.59 245.82 144.12 235.3 144.12ZM255.53 88.9C249.48 85.46 242.49 83.5 235.04 83.5C212.11 83.5 193.52 102.09 193.52 125.02C193.52 147.95 212.11 166.54 235.04 166.54C242.49 166.54 249.49 164.58 255.53 161.14V166.56H277.95V56.04H255.53V88.9Z",fill:e}),C.default.createElement("path",{d:"M175.62 84.33L161.08 131.23L146.54 84.33H124.32L149.81 166.56H150.13H172.04H172.35L197.84 84.33H175.62Z",fill:e}),C.default.createElement("path",{d:"M411.58 144.12C401.06 144.12 392.53 135.59 392.53 125.07C392.53 114.55 401.06 106.02 411.58 106.02C422.1 106.02 430.63 114.55 430.63 125.07C430.63 135.59 422.11 144.12 411.58 144.12ZM411.31 83.5C388.38 83.5 369.79 102.08 369.79 125.01C369.79 147.94 388.38 166.53 411.31 166.53C418.86 166.53 425.94 164.52 432.04 161V166.55H454.46V84.33H432.04V89.03C425.94 85.52 418.86 83.5 411.31 83.5Z",fill:e}),C.default.createElement("path",{d:"M342.97 130.89C340.51 138.56 333.32 144.12 324.83 144.12C314.3 144.12 305.78 135.59 305.78 125.07C305.78 114.55 314.31 106.02 324.83 106.02C333.59 106.02 340.95 111.94 343.18 120H366.04C363.56 99.44 346.06 83.5 324.84 83.5C301.91 83.5 283.33 102.09 283.33 125.01C283.33 147.94 301.9 166.52 324.84 166.52C345.77 166.52 363.08 151.02 365.93 130.88H342.97V130.89Z",fill:e}),C.default.createElement("path",{d:"M505.29 83.5C498.52 83.5 492.15 85.14 486.5 88.01V84.33H464.08V166.55H486.5V161.92V125.07H486.51C486.51 114.55 495.04 106.02 505.56 106.02C505.95 106.02 506.34 106.06 506.72 106.08V83.55C506.25 83.53 505.77 83.5 505.29 83.5Z",fill:e}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var l=require("react"),a=require("../../theme.js");function d(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var t=d(l);exports.default=({color:e=a.default.colors.neutral.main})=>t.default.createElement("svg",{viewBox:"0 0 492 223",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"kvdlogo-sv"},t.default.createElement("title",{id:"kvdlogo-sv"},"kvd.se"),t.default.createElement("path",{d:"M124.94 84.11H99.78L78.2 114.91V55.63H55.63V166.89H78.2V132.34L101.83 166.89H128.89L97.32 123.54L124.94 84.11Z",fill:e}),t.default.createElement("path",{d:"M393.79 87.26C389.7 87.26 385.88 86.1 382.64 84.1H382.51V166.88H405.08V84.1H404.95C401.69 86.1 397.87 87.26 393.79 87.26Z",fill:e}),t.default.createElement("path",{d:"M436.21 55.59H413.64V166.89H436.21V55.59Z",fill:e}),t.default.createElement("path",{d:"M393.79 49.9C384.96 49.9 377.77 57.09 377.77 65.92C377.77 74.75 384.95 81.94 393.79 81.94C402.63 81.94 409.81 74.76 409.81 65.92C409.8 57.09 402.62 49.9 393.79 49.9ZM393.79 72.85C389.97 72.85 386.86 69.74 386.86 65.92C386.86 62.1 389.97 58.99 393.79 58.99C397.61 58.99 400.72 62.1 400.72 65.92C400.72 69.74 397.61 72.85 393.79 72.85Z",fill:e}),t.default.createElement("path",{d:"M336.08 83.27C328.48 83.27 321.36 85.3 315.22 88.84V55.63H292.65V166.89H315.22V161.3C321.36 164.84 328.49 166.87 336.08 166.87C359.16 166.87 377.88 148.16 377.88 125.07C377.87 101.98 359.16 83.27 336.08 83.27ZM335.81 144.3C325.22 144.3 316.63 135.71 316.63 125.12C316.63 114.53 325.22 105.94 335.81 105.94C346.4 105.94 354.99 114.53 354.99 125.12C354.99 135.71 346.4 144.3 335.81 144.3Z",fill:e}),t.default.createElement("path",{d:"M257.34 88.71C251.25 85.25 244.21 83.27 236.71 83.27C213.62 83.27 194.91 101.98 194.91 125.07C194.91 148.15 213.62 166.87 236.71 166.87C244.21 166.87 251.25 164.89 257.34 161.43V166.89H279.91V55.63H257.34V88.71ZM236.98 144.3C226.39 144.3 217.8 135.71 217.8 125.12C217.8 114.53 226.39 105.94 236.98 105.94C247.57 105.94 256.16 114.53 256.16 125.12C256.16 135.71 247.57 144.3 236.98 144.3Z",fill:e}),t.default.createElement("path",{d:"M176.9 84.11L162.26 131.32L147.62 84.11H125.25L150.92 166.89H151.23H173.29H173.6L199.27 84.11H176.9Z",fill:e}));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
2
|
-
width: ${({width:
|
|
3
|
-
`,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var c=require("react"),f=require("styled-components"),s=require("./LogoSv.js"),h=require("./LogoEn.js");function t(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}require("../../theme.js");var r=t(c);const j=t(f).default.div`
|
|
2
|
+
width: ${({width:e})=>e}px;
|
|
3
|
+
`,o=({locale:e,width:u,color:a})=>{const d=e==="en"?h.default:s.default,l=((i,n)=>n||(i==="en"?175:132))(e,u);return r.default.createElement(j,{width:l,"data-testid":`logo-${e}`},r.default.createElement(d,{color:a}))};exports.Logo=o,exports.default=o;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var d=require("react"),p=require("styled-components"),n=require("../../theme.js");function f(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var l=f(d),t=f(p);const a={1:{size:"2rem",lineHeight:"3rem",bottom:"2rem",fontFamily:n.default.typography.fontAlternativeFamily},2:{size:"1.5rem",lineHeight:"2.5rem",bottom:"1rem",fontFamily:n.default.typography.fontAlternativeFamily},3:{size:"1rem",lineHeight:"1.5rem",bottom:"1rem",fontFamily:n.default.typography.fontBaseFamily}},g=t.default.li`
|
|
2
2
|
list-style-type: none;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
|
-
${({hasPreamble:
|
|
5
|
+
${({hasPreamble:e})=>e&&"grid-column-end: span 2"};
|
|
6
6
|
|
|
7
7
|
:hover {
|
|
8
8
|
cursor: pointer;
|
|
9
9
|
}
|
|
10
|
-
`,
|
|
11
|
-
font-family: ${({theme:
|
|
12
|
-
font-weight: ${({theme:
|
|
13
|
-
`,
|
|
10
|
+
`,i=t.default.span`
|
|
11
|
+
font-family: ${({theme:e})=>e.typography.fontAlternativeFamily};
|
|
12
|
+
font-weight: ${({theme:e})=>e.typography.fontAlternativeRegularWeight};
|
|
13
|
+
`,c=t.default.div`
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: column;
|
|
16
|
-
padding-bottom: ${({level:
|
|
17
|
-
`,
|
|
18
|
-
color: ${({theme:
|
|
19
|
-
font-size: ${({level:
|
|
20
|
-
line-height: ${({level:
|
|
21
|
-
font-family: ${({level:
|
|
16
|
+
padding-bottom: ${({level:e})=>a[e].bottom};
|
|
17
|
+
`,v=t.default(i)`
|
|
18
|
+
color: ${({theme:e})=>e.colors.text.dark};
|
|
19
|
+
font-size: ${({level:e})=>a[e].size};
|
|
20
|
+
line-height: ${({level:e})=>a[e].lineHeight};
|
|
21
|
+
font-family: ${({level:e})=>a[e].fontFamily};
|
|
22
22
|
|
|
23
|
-
${({level:
|
|
24
|
-
|
|
23
|
+
${({level:e,theme:o})=>e===3&&`font-weight: ${o.typography.fontAlternativeRegularWeight}`};
|
|
24
|
+
`,$=t.default(i)`
|
|
25
25
|
font-size: 0.75rem;
|
|
26
|
-
font-weight: ${({theme:
|
|
26
|
+
font-weight: ${({theme:e})=>e.typography.fontAlternativeBoldWeight};
|
|
27
27
|
line-height: 1.25rem;
|
|
28
|
-
color: ${({theme:
|
|
28
|
+
color: ${({theme:e})=>e.colors.text.dark};
|
|
29
29
|
text-transform: uppercase;
|
|
30
30
|
margin-bottom: 1.5rem;
|
|
31
|
-
`,
|
|
31
|
+
`,b=t.default(i)`
|
|
32
32
|
font-size: 0.8125rem;
|
|
33
|
-
font-weight: ${({theme:
|
|
33
|
+
font-weight: ${({theme:e})=>e.typography.fontBaseRegularWeight};
|
|
34
34
|
line-height: 1.5rem;
|
|
35
|
-
font-family: ${({theme:
|
|
36
|
-
color: ${({theme:
|
|
37
|
-
margin-top: ${({level:
|
|
38
|
-
`,
|
|
35
|
+
font-family: ${({theme:e})=>e.typography.fontBaseFamily};
|
|
36
|
+
color: ${({theme:e})=>e.colors.text.dark};
|
|
37
|
+
margin-top: ${({level:e})=>e===3?"0.25rem":0};
|
|
38
|
+
`,h=({preamble:e,title:o,level:r,component:y="li",children:u,...s})=>{const m=Boolean(e);return l.default.createElement(g,{as:y,...s,hasPreamble:m},o&&l.default.createElement($,null,o),l.default.createElement(c,{level:r},l.default.createElement(v,{level:r,hasPreamble:m},u),e&&l.default.createElement(b,{level:r},e)))};exports.MenuItem=h,exports.default=h;
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
2
|
-
${({isDeleted:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var g=require("react"),h=require("styled-components"),x=require("../../typography/Heading/index.js"),y=require("../../icons/components/AlertIcon.js"),k=require("../../icons/components/CheckCircleIcon.js"),b=require("../../icons/components/CloseIcon.js"),v=require("../../icons/components/InfoIcon.js"),E=require("../../icons/components/WarningIcon.js");function m(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}require("../../shared/media-queries.js");var r=m(g),o=m(h);const j=o.default.div`
|
|
2
|
+
${({isDeleted:e})=>e&&`
|
|
3
3
|
opacity: 0;
|
|
4
4
|
transition: opacity 0.3s;
|
|
5
5
|
`}
|
|
6
|
-
`,
|
|
7
|
-
display: ${({fullWidth:
|
|
8
|
-
${({fullWidth:
|
|
6
|
+
`,q=o.default.div`
|
|
7
|
+
display: ${({fullWidth:e})=>e?"flex":"inline-flex"};
|
|
8
|
+
${({fullWidth:e})=>e&&"justify-content: space-between;"}
|
|
9
9
|
align-items: center;
|
|
10
10
|
padding: 0 1.5rem;
|
|
11
|
-
box-shadow: ${({theme:
|
|
11
|
+
box-shadow: ${({theme:e})=>e.elevations.elevation2};
|
|
12
12
|
|
|
13
|
-
${({textCenter:
|
|
13
|
+
${({textCenter:e})=>e&&`
|
|
14
14
|
justify-content: center;
|
|
15
15
|
`}
|
|
16
16
|
|
|
17
|
-
${({theme:
|
|
18
|
-
color: ${
|
|
19
|
-
background-color: ${
|
|
17
|
+
${({theme:e,messageType:s,inverted:c})=>{const{text:i,background:u}=((d,n,t)=>{const l=t.colors.text.dark,a=t.colors.background.light;switch(d){case"info":return{text:n?t.colors.info.dark:l,background:n?a:t.colors.info.lighter};case"success":return{text:n?t.colors.success.dark:l,background:n?a:t.colors.success.lighter};case"warning":return{text:n?t.colors.warning.dark:l,background:n?a:t.colors.warning.lighter};case"error":return{text:n?t.colors.error.dark:l,background:n?a:t.colors.error.lighter};default:return{text:n?t.colors.text.light:l,background:n?t.colors.background.dark:a}}})(s,c,e);return`
|
|
18
|
+
color: ${i};
|
|
19
|
+
background-color: ${u};
|
|
20
20
|
`}}
|
|
21
|
-
`,
|
|
21
|
+
`,w=o.default.div`
|
|
22
22
|
display: flex;
|
|
23
|
-
`,
|
|
23
|
+
`,C=o.default.div`
|
|
24
24
|
padding: 0.75rem 0;
|
|
25
|
-
|
|
25
|
+
`,$=o.default(x.TinyTitleRegular)`
|
|
26
26
|
margin: 0;
|
|
27
|
-
`,
|
|
27
|
+
`,I=o.default.span`
|
|
28
28
|
display: flex;
|
|
29
29
|
align-items: center;
|
|
30
30
|
margin-right: 1rem;
|
|
31
31
|
font-size: 1.5rem;
|
|
32
|
-
`,
|
|
32
|
+
`,T=o.default.span`
|
|
33
33
|
display: flex;
|
|
34
34
|
align-items: center;
|
|
35
35
|
margin-left: 1rem;
|
|
36
36
|
font-size: 2.5rem;
|
|
37
37
|
cursor: pointer;
|
|
38
38
|
}
|
|
39
|
-
`;exports.default=({children:
|
|
39
|
+
`;exports.default=({children:e,type:s,withIcon:c=!1,isDeletable:i=!1,fullWidth:u=!1,inverted:d=!1,textCenter:n=!1,...t})=>{const l=g.useRef(null),[a,p]=g.useState(!1);return r.default.createElement(j,{isDeleted:a},r.default.createElement(q,{messageType:s,fullWidth:u,inverted:d,textCenter:n,role:"alert",ref:l,...t},r.default.createElement(w,null,c&&r.default.createElement(I,null,(f=>{switch(f){case"success":return r.default.createElement(k.default,null);case"warning":return r.default.createElement(E.default,null);case"error":return r.default.createElement(y.default,null);default:return r.default.createElement(v.default,null)}})(s)),r.default.createElement(C,null,typeof e=="string"&&r.default.createElement($,null,e),typeof e!="string"&&e)),i&&r.default.createElement(T,{onClick:f=>{f.stopPropagation(),p(!0),setTimeout(()=>{l.current&&l.current.remove()},300)},"aria-label":"Close"},r.default.createElement(b.default,null))))};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var l=require("react"),w=require("react-dom"),x=require("react-transition-group"),i=require("styled-components"),y=require("../Icons/Close.js");function u(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var e=u(l),r=u(i);const c=i.css`
|
|
2
2
|
.backgroundTransition-enter {
|
|
3
3
|
opacity: 0;
|
|
4
4
|
}
|
|
@@ -16,21 +16,21 @@
|
|
|
16
16
|
opacity: 0;
|
|
17
17
|
transition: opacity 0.25s ease-in-out;
|
|
18
18
|
}
|
|
19
|
-
`,
|
|
20
|
-
${
|
|
19
|
+
`,v=r.default.div`
|
|
20
|
+
${c}
|
|
21
21
|
position: fixed;
|
|
22
22
|
width: 100%;
|
|
23
23
|
height: 100%;
|
|
24
24
|
top: 0;
|
|
25
25
|
left: 0;
|
|
26
26
|
z-index: 200;
|
|
27
|
-
`,
|
|
27
|
+
`,E=r.default.div`
|
|
28
28
|
z-index: -1;
|
|
29
29
|
position: absolute;
|
|
30
30
|
width: 100%;
|
|
31
31
|
height: 100%;
|
|
32
32
|
background-color: rgba(34, 34, 34, 0.3);
|
|
33
|
-
`,
|
|
33
|
+
`,k=r.default.div`
|
|
34
34
|
position: relative;
|
|
35
35
|
max-width: 512px;
|
|
36
36
|
padding: 1rem;
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
margin-right: auto;
|
|
52
52
|
min-width: 355px;
|
|
53
53
|
}
|
|
54
|
-
`,
|
|
54
|
+
`,T=r.default.div`
|
|
55
55
|
position: absolute;
|
|
56
56
|
top: 1rem;
|
|
57
57
|
right: 1rem;
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
width: 1rem;
|
|
65
65
|
height: 1rem;
|
|
66
66
|
}
|
|
67
|
-
`,
|
|
67
|
+
`,C=i.createGlobalStyle`
|
|
68
68
|
body {
|
|
69
69
|
overflow: hidden;
|
|
70
70
|
|
|
@@ -72,6 +72,6 @@
|
|
|
72
72
|
padding-right: 15px !important;
|
|
73
73
|
`}
|
|
74
74
|
}
|
|
75
|
-
`,
|
|
76
|
-
${
|
|
77
|
-
`,
|
|
75
|
+
`,q=i.createGlobalStyle`
|
|
76
|
+
${c}
|
|
77
|
+
`,s=({children:t,isOpen:a,contentStyles:m,withPortal:p=!1,withCloseIcon:f=!0,onClose:n,...g})=>{l.useEffect(()=>{const d=b=>{b.key==="Escape"&&a&&n()};return window.addEventListener("keydown",d),()=>{window.removeEventListener("keydown",d)}},[n,a]);const h=!(typeof window=="undefined"||!window.document||!window.document.createElement),o=e.default.createElement(x.CSSTransition,{in:a,mountOnEnter:!0,unmountOnExit:!0,timeout:400,classNames:"backgroundTransition"},e.default.createElement(e.default.Fragment,null,e.default.createElement(q,null),e.default.createElement(v,{...g},e.default.createElement(E,{"data-testid":"background",onClick:n}),e.default.createElement(k,{style:m},f&&e.default.createElement(T,{onClick:n,"data-testid":"close"},e.default.createElement(y.default,null)),t),e.default.createElement(C,null))));return p&&h?w.createPortal(o,document.body):o};exports.Modal=s,exports.default=s;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("react"),u=require("styled-components"),d=require("../Badge/index.js"),a=require("../Button/index.js");function n(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}require("../../theme.js"),require("../Spinner/index.js"),require("../../typography/ButtonText/index.js"),require("../Button/styles.js");var t=n(o),i=n(u);const l=i.default.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
display: inline-block;
|
|
4
|
-
`,
|
|
4
|
+
`,s=i.default(d.Badge)`
|
|
5
5
|
position: absolute;
|
|
6
6
|
top: 0;
|
|
7
7
|
right: 0;
|
|
8
8
|
margin: -10px;
|
|
9
9
|
border: 2px solid white;
|
|
10
|
-
${
|
|
11
|
-
`;exports.NotificationButton=
|
|
10
|
+
${e=>e.noPadding&&"padding: 0;"}
|
|
11
|
+
`;exports.NotificationButton=e=>{const r=(e.badgeProps.notificationAmount||0)<10;return t.default.createElement(l,null,t.default.createElement(a.Button,{...e.buttonProps},e.children),t.default.createElement(s,{...e.badgeProps,noPadding:r}))};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("react"),c=require("react-transition-group"),s=require("styled-components");function n(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var i=n(r);const u={classNames:"backgroundTransition",timeout:{enter:400,exit:400},mountOnEnter:!0,unmountOnExit:!0},d=n(s).default.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
z-index: 1000;
|
|
4
4
|
width: 100%;
|
|
@@ -24,4 +24,4 @@
|
|
|
24
24
|
opacity: 0;
|
|
25
25
|
transition: opacity 0.2s ease-in-out;
|
|
26
26
|
}
|
|
27
|
-
`;exports.default=({className:
|
|
27
|
+
`;exports.default=({className:t,isOpen:a,onClick:e,transitionProps:o=u})=>i.default.createElement(c.CSSTransition,{in:a,...o,className:t},i.default.createElement(d,{onClick:()=>{e&&e()}}));
|