@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,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from"react";import s,{css as i}from"styled-components";import h from"../../icons/components/CheckmarkIcon.js";import{generateNameHash as x}from"../../shared/helpers.js";import t from"../../theme.js";import{BodyText as b}from"../../typography/BodyText/index.js";import{BackgroundStyles as g}from"../IconButton.js";import"../../shared/media-queries.js";const u=i`
|
|
2
2
|
width: 24px;
|
|
3
3
|
height: 24px;
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import t from"react";import i,{css as r}from"styled-components";import m from"..
|
|
|
6
6
|
width: 15px;
|
|
7
7
|
height: 15px;
|
|
8
8
|
}
|
|
9
|
-
`,
|
|
9
|
+
`,f=i`
|
|
10
10
|
width: 32px;
|
|
11
11
|
height: 32px;
|
|
12
12
|
|
|
@@ -14,10 +14,10 @@ import t from"react";import i,{css as r}from"styled-components";import m from"..
|
|
|
14
14
|
width: 22px;
|
|
15
15
|
height: 22px;
|
|
16
16
|
}
|
|
17
|
-
`,d={regular:
|
|
17
|
+
`,d={regular:u,large:f},k=i`
|
|
18
18
|
cursor: default;
|
|
19
|
-
border: 2px solid ${
|
|
20
|
-
`,
|
|
19
|
+
border: 2px solid ${t.colors.gray.light2};
|
|
20
|
+
`,y=e=>i`
|
|
21
21
|
svg {
|
|
22
22
|
opacity: 1;
|
|
23
23
|
}
|
|
@@ -25,16 +25,16 @@ import t from"react";import i,{css as r}from"styled-components";import m from"..
|
|
|
25
25
|
:hover {
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
background: ${
|
|
29
|
-
border: 2px solid ${
|
|
30
|
-
`,$=
|
|
31
|
-
background: ${
|
|
28
|
+
background: ${t.colors[e].main};
|
|
29
|
+
border: 2px solid ${t.colors[e].main};
|
|
30
|
+
`,$=i`
|
|
31
|
+
background: ${t.colors.gray.light2};
|
|
32
32
|
z-index: 1;
|
|
33
|
-
`,z=
|
|
33
|
+
`,z=s.div`
|
|
34
34
|
display: flex;
|
|
35
35
|
align-items: flex-start;
|
|
36
36
|
box-sizing: border-box;
|
|
37
|
-
`,v=
|
|
37
|
+
`,v=s.input.attrs({type:"checkbox"})`
|
|
38
38
|
position: absolute;
|
|
39
39
|
appearance: none;
|
|
40
40
|
width: 100%;
|
|
@@ -48,9 +48,9 @@ import t from"react";import i,{css as r}from"styled-components";import m from"..
|
|
|
48
48
|
|
|
49
49
|
:focus-visible {
|
|
50
50
|
transition: background-color 400ms;
|
|
51
|
-
${
|
|
51
|
+
${g}
|
|
52
52
|
}
|
|
53
|
-
`,
|
|
53
|
+
`,D=s.span`
|
|
54
54
|
box-sizing: border-box;
|
|
55
55
|
cursor: pointer;
|
|
56
56
|
display: flex;
|
|
@@ -59,7 +59,7 @@ import t from"react";import i,{css as r}from"styled-components";import m from"..
|
|
|
59
59
|
justify-content: center;
|
|
60
60
|
z-index: 0;
|
|
61
61
|
|
|
62
|
-
border: 2px solid ${
|
|
62
|
+
border: 2px solid ${t.colors.gray.dark5};
|
|
63
63
|
|
|
64
64
|
${e=>d[e.size]};
|
|
65
65
|
|
|
@@ -68,14 +68,14 @@ import t from"react";import i,{css as r}from"styled-components";import m from"..
|
|
|
68
68
|
color: ${({theme:e})=>e.colors.common.white};
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
${e=>e.isChecked&&
|
|
72
|
-
${e=>e.isDisabled&&
|
|
71
|
+
${e=>e.isChecked&&y(e.color)};
|
|
72
|
+
${e=>e.isDisabled&&k};
|
|
73
73
|
|
|
74
74
|
${e=>e.isChecked&&e.isDisabled&&$};
|
|
75
|
-
`,
|
|
75
|
+
`,j=s(b)`
|
|
76
76
|
flex: 1;
|
|
77
77
|
cursor: ${({isDisabled:e})=>e?"default":"pointer"};
|
|
78
78
|
user-select: none;
|
|
79
79
|
color: ${({theme:e,isDisabled:o})=>o?e.colors.text.disabled:e.colors.text.dark};
|
|
80
80
|
margin-left: 0.5rem;
|
|
81
|
-
`,
|
|
81
|
+
`,p=({name:e=x("check-box"),isDisabled:o=!1,size:a="regular",checked:l=!1,color:c="secondary",label:n,...m})=>r.createElement(z,null,r.createElement(v,{...m,type:"checkbox",checked:l,"data-validate":"checked",name:e,id:e,color:c,disabled:o,isDisabled:o,boxSize:a}),r.createElement(D,{size:a,color:c,isChecked:l,isDisabled:o},r.createElement(h,null)),n&&r.createElement(j,{as:"label",htmlFor:e,isDisabled:o},n));export{p as CheckBox,p as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import r from"react";import l from"styled-components";import C from"../../icons/components/CloseIcon.js";import{getFontSize as $,getCursorType as m,getBackgroundColor as
|
|
1
|
+
import r from"react";import l from"styled-components";import C from"../../icons/components/CloseIcon.js";import{getFontSize as $,getCursorType as m,getBackgroundColor as k,getColor as x,getBorderColor as B,getHoverBorderColor as z,getHoverBackgroundColor as D,getHoverColor as E,getActiveBackgroundColor as p,getActiveBorderColor as H,getActiveColor as j,getSufixHoverBackgroundColor as A}from"./styles.js";const w={smaller:"0.25rem 1rem",small:"0.25rem 1rem",regular:"0.25rem 1rem",large:"0.5rem 1rem"},F=l.div`
|
|
2
2
|
font-family: ${({theme:e})=>e.typography.fontBaseFamily};
|
|
3
3
|
font-size: ${({size:e})=>$(e)};
|
|
4
4
|
font-weight: ${({theme:e})=>e.typography.fontBaseBoldWeight};
|
|
@@ -7,36 +7,36 @@ import r from"react";import l from"styled-components";import C from"../../icons/
|
|
|
7
7
|
display: inline-flex;
|
|
8
8
|
cursor: ${m};
|
|
9
9
|
align-items: center;
|
|
10
|
-
background: ${
|
|
11
|
-
color: ${
|
|
10
|
+
background: ${k};
|
|
11
|
+
color: ${x};
|
|
12
12
|
justify-content: center;
|
|
13
13
|
border-width: 1px;
|
|
14
14
|
border-style: solid;
|
|
15
15
|
border-color: ${B};
|
|
16
16
|
border-radius: 1.293rem;
|
|
17
|
-
padding: ${({size:e,isDeletable:
|
|
17
|
+
padding: ${({size:e,isDeletable:n})=>n?"0 0.5rem 0 1rem":w[e]};
|
|
18
18
|
transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease;
|
|
19
19
|
|
|
20
20
|
${e=>!e.isDisabled&&e.isClickable&&` &:hover {
|
|
21
21
|
border-color: ${z(e)};
|
|
22
|
-
background-color: ${
|
|
23
|
-
color: ${
|
|
22
|
+
background-color: ${D(e)};
|
|
23
|
+
color: ${E(e)};
|
|
24
24
|
} &:active {
|
|
25
|
-
background-color: ${
|
|
25
|
+
background-color: ${p(e)};
|
|
26
26
|
border-color: ${H(e)};
|
|
27
|
-
color: ${
|
|
27
|
+
color: ${j(e)};
|
|
28
28
|
}`}
|
|
29
|
-
`,
|
|
29
|
+
`,I=l.span`
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: center;
|
|
33
33
|
text-align: center;
|
|
34
34
|
line-height: 1.5;
|
|
35
|
-
`,
|
|
35
|
+
`,P=l.span`
|
|
36
36
|
margin-right: 0.625rem;
|
|
37
37
|
display: flex;
|
|
38
38
|
align-items: center;
|
|
39
|
-
`,
|
|
39
|
+
`,S=l.span`
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
42
|
cursor: ${m};
|
|
@@ -55,16 +55,16 @@ import r from"react";import l from"styled-components";import C from"../../icons/
|
|
|
55
55
|
width: 80%;
|
|
56
56
|
border-radius: 50%;
|
|
57
57
|
z-index: -1;
|
|
58
|
-
background-color: ${
|
|
58
|
+
background-color: ${A};
|
|
59
59
|
opacity: 0;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
&:active:before {
|
|
63
|
-
background-color: ${
|
|
63
|
+
background-color: ${p};
|
|
64
64
|
opacity: 1;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
&:hover:before {
|
|
68
68
|
opacity: 1;
|
|
69
69
|
}
|
|
70
|
-
`,
|
|
70
|
+
`,b=({color:e="primary",children:n,component:u="div",isDisabled:t,onClick:s,size:f="regular",prefix:a,onDelete:i,variant:c="solid",...h})=>{const o=Boolean(s&&!t),d=Boolean(i&&!t),v=Boolean(a),y=g=>{g.stopPropagation(),i==null||i(g)};return r.createElement(F,{...h,role:o?"button":void 0,onClick:o?s:void 0,tabIndex:o?0:void 0,as:o?"button":u,color:e,isDisabled:t,size:f,isClickable:o,isDeletable:d,variant:c,hasPrefix:v},r.createElement(I,null,a&&r.createElement(P,{className:"prefix"},a),n,i&&r.createElement(S,{role:"button",onClick:d?y:void 0,color:e,variant:c,isClickable:o,isDisabled:t,isDeletable:!0,size:"regular"},r.createElement(C,null))))};export{b as Chip,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e=(t="smaller")=>({smaller:"0.625rem",small:"0.75rem",regular:"1rem",large:"1rem"})[t],i=({isDisabled:t,variant:l,color:o,theme:r})=>t?r.colors.gray.light5:o==="neutralLight"?{solid:r.colors.background.gray,flat:r.colors.background.light,outline:"transparent"}[l]:{solid:r.colors[o].main,flat:r.colors.background.light,outline:"transparent"}[l],s=({isDisabled:t,variant:l,color:o,theme:r})=>t?r.colors.text.disabled:o==="neutralLight"?l==="outline"?r.colors.text.disabled:r.colors.text.dark:{solid:r.colors.text.light,flat:r.colors[o].main,outline:r.colors[o].main}[l],n=({color:t,isDisabled:l,variant:o,theme:r})=>l?r.colors.gray.light5:t==="neutralLight"?{solid:"transparent",flat:"transparent",outline:r.colors.text.disabled}[o]:{solid:r.colors[t].main,flat:"transparent",outline:r.colors[t].main}[o],c=({isDisabled:t,isClickable:l,isDeletable:o})=>t?"not-allowed":l||o?"pointer":"auto",g=({variant:t,color:l,theme:o})=>l==="neutralLight"?{solid:o.colors.gray.light4,flat:o.colors.background.light,outline:"transparent"}[t]:{solid:o.colors[l].dark,flat:o.colors.background.light,outline:"transparent"}[t],d=({variant:t,color:l,theme:o})=>l==="neutralLight"?{solid:o.colors.gray.light4,flat:"transparent",outline:o.colors.text.dark}[t]:{solid:o.colors[l].dark,flat:"transparent",outline:o.colors[l].dark}[t],h=({variant:t,color:l,theme:o})=>l==="neutralLight"?o.colors.text.dark:{solid:o.colors.text.light,flat:o.colors[l].dark,outline:o.colors[l].dark}[t],u=({variant:t,color:l,isClickable:o,isDisabled:r,theme:a})=>r?a.colors.gray.light5:l==="neutralLight"?{solid:a.colors.gray.light2,flat:a.colors.gray.light4,outline:a.colors.gray.light4}[t]:t==="solid"?o?a.colors[l].darker:a.colors[l].dark:a.colors.background.gray,k=({color:t,variant:l,isDisabled:o,theme:r})=>o?"transparent":t==="neutralLight"?r.colors.background.light:l==="solid"?r.colors[t].light:"transparent",m=({variant:t,color:l,theme:o})=>l==="neutralLight"?{solid:o.colors.background.light,flat:"transparent",outline:o.colors.background.light}[t]:{solid:o.colors[l].light,flat:"transparent",outline:o.colors[l].light}[t],b=({variant:t,color:l,theme:o})=>l==="neutralLight"?o.colors.text.dark:t==="solid"?o.colors.text.light:o.colors[l].light;export{k as getActiveBackgroundColor,m as getActiveBorderColor,b as getActiveColor,i as getBackgroundColor,n as getBorderColor,s as getColor,c as getCursorType,e as getFontSize,g as getHoverBackgroundColor,d as getHoverBorderColor,h as getHoverColor,u as getSufixHoverBackgroundColor};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import e from"react";import t from"styled-components";import
|
|
1
|
+
import e from"react";import t from"styled-components";import s from"../Icons/Arrow.js";import o from"../../theme.js";import{BodyText as c}from"../../typography/BodyText/index.js";import{formatMonthTitle as p}from"./localeUtils.js";import"../../shared/media-queries.js";const d=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
padding: 0 2em;
|
|
5
|
-
`,f=t(
|
|
5
|
+
`,f=t(c)`
|
|
6
6
|
font-size: 1.5em;
|
|
7
|
-
color: ${
|
|
8
|
-
`,
|
|
7
|
+
color: ${o.colors.text.dark};
|
|
8
|
+
`,r=t.button`
|
|
9
9
|
appearance: none;
|
|
10
10
|
background-color: transparent;
|
|
11
11
|
border: 0;
|
|
@@ -14,12 +14,12 @@ import e from"react";import t from"styled-components";import c from"../Icons/Arr
|
|
|
14
14
|
outline: none;
|
|
15
15
|
display: flex;
|
|
16
16
|
align-items: center;
|
|
17
|
-
`,n=t(
|
|
17
|
+
`,n=t(s)`
|
|
18
18
|
width: 16px;
|
|
19
19
|
height: 16px;
|
|
20
|
-
fill: ${
|
|
20
|
+
fill: ${o.colors.gray.dark3};
|
|
21
21
|
`,h=t(n)`
|
|
22
22
|
transform: rotate(90deg);
|
|
23
|
-
`,
|
|
23
|
+
`,x=t(n)`
|
|
24
24
|
transform: rotate(-90deg);
|
|
25
|
-
`,
|
|
25
|
+
`,y=({month:a,onPreviousClick:l,onNextClick:i,locale:m})=>e.createElement(d,null,e.createElement(r,{onClick:()=>l()},e.createElement(h,{title:"prev-month"})),e.createElement(f,{as:"h3"},p(a,m)),e.createElement(r,{onClick:()=>i()},e.createElement(x,{title:"next-month"})));export{y as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from"react";import i from"react-day-picker";import s from"styled-components";import t from"../../theme.js";import c from"./DayPickerNavBar.js";import{MONTHS as n,WEEKDAYS_LONG as p,WEEKDAYS_SHORT as y,FIRST_DAY_OF_THE_WEEK as d}from"./localeUtils.js";import f from"./style.js";import"../Icons/Arrow.js";import"../../typography/BodyText/index.js";import"../../shared/media-queries.js";const E=s.div`
|
|
2
2
|
${f}
|
|
3
3
|
|
|
4
4
|
font-family: ${({theme:e})=>e.typography.fontAlternativeFamily};
|
|
5
|
-
`,
|
|
5
|
+
`,h=e=>({selected:{color:t.colors.text.light,background:t.colors[e].main},today:{color:t.colors[e].main}}),a=({locale:e="sv",color:r="primary",...m})=>o.createElement(E,{color:r},o.createElement(i,{...m,locale:e,months:n[e],weekdaysLong:p[e],weekdaysShort:y[e],firstDayOfWeek:d[e],navbarElement:l=>o.createElement(c,{...l,locale:e}),captionElement:o.createElement("div",null),modifiersStyles:h(r)}));export{a as DayPicker,a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const r={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"]},
|
|
1
|
+
const r={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"]},u={sv:["S\xF6ndag","M\xE5ndag","Tisdag","Onsdag","Torsdag","Fredag","L\xF6rdag"],en:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},n={sv:["S\xF6","M\xE5","Ti","On","To","Fr","L\xF6"],en:["Su","Mo","Tu","We","Th","Fr","Sa"]},d={sv:1,en:1},s=(e,a="sv")=>`${r[a][e.getMonth()]} ${e.getFullYear()}`;export{d as FIRST_DAY_OF_THE_WEEK,r as MONTHS,u as WEEKDAYS_LONG,n as WEEKDAYS_SHORT,s as formatMonthTitle};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import e from"react";import
|
|
1
|
+
import e from"react";import i from"styled-components";import{Modal as d}from"../Modal/index.js";import c from"../../theme.js";import{TinyTitleBold as f}from"../../typography/Heading/index.js";import"react-dom";import"react-transition-group";import"../Icons/Close.js";import"../../shared/media-queries.js";const g=i(f)`
|
|
2
2
|
font-weight: ${c.typography.fontAlternativeRegularWeight};
|
|
3
3
|
margin: 0;
|
|
4
|
-
`,
|
|
4
|
+
`,h=i.div`
|
|
5
5
|
display: flex;
|
|
6
6
|
justify-content: flex-end;
|
|
7
7
|
gap: 1rem;
|
|
8
8
|
overflow-x: hidden;
|
|
9
|
-
`,
|
|
9
|
+
`,r=({isOpen:n,title:t,children:l,actions:o,onClose:a,withPortal:s,withCloseIcon:m=!0,...p})=>e.createElement(d,{onClose:a,withPortal:s,isOpen:n,withCloseIcon:m,...p},typeof t=="string"?e.createElement(g,null,t):t,e.createElement("div",null,l),o&&e.createElement(h,null,o));export{r as Dialog,r as default};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import t,{useState as
|
|
1
|
+
import t,{useState as p,useEffect as I}from"react";import l from"styled-components";import E from"../../theme.js";import{BodyLink as J,BodyText as K}from"../../typography/BodyText/index.js";import{Button as u}from"../Button/index.js";import{Chip as N}from"../Chip/index.js";import{TextField as O}from"../Textfield/index.js";import"../../shared/media-queries.js";import"../Spinner/index.js";import"../../typography/ButtonText/index.js";import"../Button/styles.js";import"../../icons/components/CloseIcon.js";import"../Chip/styles.js";import"../FieldLabel.js";import"../../shared/helpers.js";const Q=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
border-bottom: 1px solid ${E.colors.gray.light5};
|
|
4
|
-
`,
|
|
4
|
+
`,U=l.form`
|
|
5
5
|
flex: 1;
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
margin-bottom: 1rem;
|
|
8
|
-
`,
|
|
8
|
+
`,V=l(O)`
|
|
9
9
|
max-width: 20rem;
|
|
10
|
-
`,
|
|
10
|
+
`,W=l.div`
|
|
11
11
|
flex: 1;
|
|
12
12
|
display: flex;
|
|
13
13
|
align-items: flex-end;
|
|
14
14
|
justify-content: flex-end;
|
|
15
15
|
margin-top: 1rem;
|
|
16
|
-
`,
|
|
16
|
+
`,X=l(u)`
|
|
17
17
|
min-width: 5rem;
|
|
18
|
-
`,
|
|
18
|
+
`,Y=l(u)`
|
|
19
19
|
min-width: 5rem;
|
|
20
20
|
margin-right: 1rem;
|
|
21
|
-
`,
|
|
21
|
+
`,j=l(J)`
|
|
22
22
|
flex: 1;
|
|
23
23
|
margin-right: 1rem;
|
|
24
|
-
`,
|
|
24
|
+
`,b=l(K)`
|
|
25
25
|
flex: 1rem;
|
|
26
26
|
flex: 4;
|
|
27
|
-
`,
|
|
27
|
+
`,Z=l(b)`
|
|
28
28
|
color: ${E.colors.text.disabled};
|
|
29
|
-
`,
|
|
29
|
+
`,z=l.div`
|
|
30
30
|
display: flex;
|
|
31
31
|
flex-wrap: wrap;
|
|
32
|
-
`,
|
|
32
|
+
`,A=l(N)`
|
|
33
33
|
margin: 0.5rem;
|
|
34
|
-
`,
|
|
34
|
+
`,M=({value:f,label:m,onChange:x,onEdit:s,options:v=[],inputProps:C={},isClearable:T=!1,isEditionDisabled:w=!1,editText:B,saveText:k,cancelText:D,noValueText:F,formatterFunc:c,isSingleSelect:S,color:d="secondary"})=>{const[r,n]=p(f),[_,L]=p(f),[o,h]=p(!1),a=typeof r=="string",P=c&&a?c==null?void 0:c(r):r,$=a?P:r.join(", "),y=r.length>0;I(()=>s==null?void 0:s(o),[s,o]);const g=()=>{o?n(_):L(r),h(e=>!e)},q=e=>{e.preventDefault(),x==null||x(r),h(!1)},G=e=>{if(typeof r!="object")throw new Error("Cannot toggle chip on other than array");if(S){if(r.includes(e)&&T){n([]);return}n([e]);return}if(r.includes(e)){const i=r.filter(H=>H!==e);n(i);return}n(i=>[...i,e])};return t.createElement(Q,null,!o&&t.createElement(t.Fragment,null,t.createElement(j,null,m),y&&t.createElement(b,null,$),!y&&t.createElement(Z,null,F),t.createElement(u,{variant:"flat",color:d,onClick:g,isDisabled:w},B)),o&&t.createElement(U,{onSubmit:q},t.createElement(j,null,m),a&&t.createElement(V,{...C,autoFocus:!0,value:r,label:m,onChange:e=>n(e.target.value)}),!a&&t.createElement(z,null,v.map(e=>t.createElement(A,{color:d,onClick:i=>{i.preventDefault(),G(e)},key:e,variant:r.includes(e)?"solid":"outline"},e))),t.createElement(W,null,t.createElement(Y,{type:"button",variant:"flat",color:"neutral",onClick:g},D),t.createElement(X,{type:"submit",color:d},k))))};export{M as default};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
font-family: ${({theme:
|
|
3
|
-
font-weight: ${({theme:
|
|
4
|
-
background: ${({theme:
|
|
1
|
+
import n from"react";import a from"styled-components";const i=a.div`
|
|
2
|
+
font-family: ${({theme:e})=>e.typography.fontAlternativeFamily};
|
|
3
|
+
font-weight: ${({theme:e})=>e.typography.fontAlternativeRegularWeight};
|
|
4
|
+
background: ${({theme:e})=>e.colors.error.main};
|
|
5
5
|
color: white;
|
|
6
6
|
border-radius: 0.25rem;
|
|
7
7
|
font-size: 13px;
|
|
8
8
|
padding: 10px;
|
|
9
|
-
${({centered:
|
|
10
|
-
`,
|
|
9
|
+
${({centered:e})=>e&&"text-align: center;"}
|
|
10
|
+
`,t=({children:e,centered:r,...o})=>n.createElement(i,{centered:r,...o},e);export{t as ErrorMessage,t as default};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import
|
|
1
|
+
import i,{css as t}from"styled-components";import{BodyTextStyle as l}from"../typography/BodyText/index.js";import"react";import"../shared/media-queries.js";const a="0.5rem",c=(e,o)=>t`
|
|
2
2
|
background-color: ${({theme:r})=>r.colors.background.light};
|
|
3
|
-
transform: translateY(${
|
|
3
|
+
transform: translateY(${e});
|
|
4
4
|
line-height: 0.875rem;
|
|
5
5
|
font-size: 0.75rem;
|
|
6
6
|
transform-origin: 0 0;
|
|
7
|
-
padding: 0 ${
|
|
8
|
-
left: ${
|
|
9
|
-
color: ${({theme:r})=>
|
|
10
|
-
`,
|
|
11
|
-
color: ${({theme:
|
|
12
|
-
`,d=
|
|
13
|
-
color: ${({theme:
|
|
14
|
-
background-color: ${({theme:
|
|
15
|
-
`,m=
|
|
7
|
+
padding: 0 ${a};
|
|
8
|
+
left: ${a};
|
|
9
|
+
color: ${({theme:r})=>o?r.colors.error.dark:r.colors.text.dark};
|
|
10
|
+
`,n=t`
|
|
11
|
+
color: ${({theme:e,hasError:o})=>o?e.colors.error.dark:e.colors.text.dark};
|
|
12
|
+
`,d=t`
|
|
13
|
+
color: ${({theme:e})=>e.colors.gray.light1};
|
|
14
|
+
background-color: ${({theme:e})=>e.colors.background.light};
|
|
15
|
+
`,m=t`
|
|
16
16
|
width: max-content;
|
|
17
17
|
left: 0;
|
|
18
18
|
right: 0;
|
|
19
19
|
margin-right: auto;
|
|
20
20
|
margin-left: auto;
|
|
21
|
-
`,
|
|
22
|
-
${
|
|
21
|
+
`,h=i.label`
|
|
22
|
+
${l}
|
|
23
23
|
pointer-events: none;
|
|
24
24
|
position: absolute;
|
|
25
25
|
max-width: calc(100% - 2rem);
|
|
26
26
|
z-index: 1;
|
|
27
|
-
top: ${({height:
|
|
27
|
+
top: ${({height:e})=>e?`${e}rem`:"0.75rem"};
|
|
28
28
|
left: calc(0.75rem + 2px);
|
|
29
29
|
transition: 150ms;
|
|
30
|
-
color: ${({theme:
|
|
30
|
+
color: ${({theme:e})=>e.colors.gray.dark5};
|
|
31
31
|
overflow: hidden;
|
|
32
32
|
white-space: nowrap;
|
|
33
33
|
text-overflow: ellipsis;
|
|
34
34
|
|
|
35
|
-
${({hasValue:
|
|
36
|
-
${({centered:
|
|
37
|
-
${({isFocused:
|
|
38
|
-
${({disabled:
|
|
39
|
-
`;export{
|
|
35
|
+
${({hasValue:e,isFocused:o,height:r=.7,hasError:s})=>(e||o)&&c(`-${r+.4}rem`,s)}
|
|
36
|
+
${({centered:e,hasValue:o,isFocused:r})=>(o||r)&&e&&m}
|
|
37
|
+
${({isFocused:e})=>e&&n}
|
|
38
|
+
${({disabled:e})=>e&&d}
|
|
39
|
+
`;export{h as Label};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import h from"react";import b,{css as a}from"styled-components";import{mq as x}from"../../shared/media-queries.js";const j="row",k="1rem",c="center",g=(r,e)=>(e==="gap"||e==="row-gap")&&typeof r=="number"?`${r}rem`:r,v=({$direction:r,$justify:e,$align:s,$gap:t,$rowGap:o,$wrap:l,$basis:$,$grow:p,$shrink:f})=>a`
|
|
2
2
|
display: flex;
|
|
3
3
|
|
|
4
|
-
${
|
|
4
|
+
${r&&["column","column-reverse"].includes(String(r))&&a`
|
|
5
5
|
& > * {
|
|
6
6
|
width: 100%;
|
|
7
7
|
}
|
|
8
8
|
`}
|
|
9
9
|
|
|
10
|
-
${[[
|
|
11
|
-
${
|
|
12
|
-
`;if(typeof
|
|
13
|
-
${
|
|
14
|
-
`),Object.entries(w).forEach(([
|
|
15
|
-
${
|
|
16
|
-
${
|
|
10
|
+
${[[r,"flex-direction"],[e,"justify-content"],[s,"align-items"],[t,"gap"],[o,"row-gap"],[o,"row-gap"],[l,"flex-wrap"],[$,"flex-basis"],[p,"flex-grow"],[f,"flex-shrink"]].map(([i,n])=>{if(typeof i=="string"||typeof i=="number")return a`
|
|
11
|
+
${n}: ${g(i,n)};
|
|
12
|
+
`;if(typeof i=="object"){const u=[],{initial:m,...w}=i;return m&&u.push(a`
|
|
13
|
+
${n}: ${g(m,n)};
|
|
14
|
+
`),Object.entries(w).forEach(([d,y])=>{u.push(a`
|
|
15
|
+
${x(d)} {
|
|
16
|
+
${n}: ${g(y,n)};
|
|
17
17
|
}
|
|
18
|
-
`)}),
|
|
19
|
-
`,
|
|
18
|
+
`)}),u}else return""})}
|
|
19
|
+
`,G=b.div(v),q=({direction:r,justify:e,align:s,gap:t,rowGap:o,wrap:l,basis:$,grow:p,shrink:f,...i})=>h.createElement(G,{$direction:r??j,$justify:e??c,$align:s??c,$gap:t??k,$rowGap:o,$wrap:l,$basis:$,$grow:p,$shrink:f,...i});export{q as default};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import i from"react";import o,{keyframes as q}from"styled-components";import{Display3 as C,Title as I}from"../../typography/Heading/index.js";import{mq as $}from"../../shared/media-queries.js";const P=o.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
min-height: 440px;
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
|
-
|
|
6
|
+
`,g=q`
|
|
7
7
|
0% {
|
|
8
8
|
background-color:#f5f5f5;
|
|
9
9
|
}
|
|
@@ -14,11 +14,11 @@ import r from"react";import n,{keyframes as I}from"styled-components";import{Dis
|
|
|
14
14
|
|
|
15
15
|
100% {
|
|
16
16
|
background-color:#f5f5f5;
|
|
17
|
-
}`,
|
|
17
|
+
}`,A=o.div`
|
|
18
18
|
width: 100%;
|
|
19
19
|
height: 440px;
|
|
20
|
-
animation: ${
|
|
21
|
-
`,
|
|
20
|
+
animation: ${g} 2s linear infinite;
|
|
21
|
+
`,D=o.div`
|
|
22
22
|
pointer-events: ${({$pointerEvents:e})=>e};
|
|
23
23
|
display: flex;
|
|
24
24
|
flex-direction: ${({$direction:e})=>e};
|
|
@@ -27,13 +27,13 @@ import r from"react";import n,{keyframes as I}from"styled-components";import{Dis
|
|
|
27
27
|
padding: 3rem 1.5rem;
|
|
28
28
|
z-index: 1;
|
|
29
29
|
flex: 1;
|
|
30
|
-
`,
|
|
30
|
+
`,F=o.iframe`
|
|
31
31
|
position: absolute;
|
|
32
32
|
width: 100%;
|
|
33
33
|
height: 100%;
|
|
34
34
|
top: 0;
|
|
35
35
|
left: 0;
|
|
36
|
-
`,
|
|
36
|
+
`,a=e=>typeof e=="number",f=e=>typeof e=="string",H=({$positionX:e,$positionY:t})=>{if(a(e)&&a(t))return`${e}% ${t}%`;if(f(e)&&f(t))return`${e} ${t}`;if(e||t){const n=a(e)?`${e}%`:e,r=a(t)?`${t}%`:t;return`${n||"50%"} ${r||"50%"}`}return"50% 50%"},T=o.div`
|
|
37
37
|
width: 100%;
|
|
38
38
|
min-height: 440px;
|
|
39
39
|
display: flex;
|
|
@@ -44,18 +44,18 @@ import r from"react";import n,{keyframes as I}from"styled-components";import{Dis
|
|
|
44
44
|
background: url('${e}');
|
|
45
45
|
background-repeat: no-repeat;
|
|
46
46
|
background-size: cover;
|
|
47
|
-
background-position: ${
|
|
47
|
+
background-position: ${H(t)};
|
|
48
48
|
`}
|
|
49
|
-
`,
|
|
49
|
+
`,X=o.div`
|
|
50
50
|
padding-left: 1rem;
|
|
51
51
|
padding-right: 1rem;
|
|
52
52
|
z-index: 2;
|
|
53
53
|
|
|
54
|
-
${
|
|
54
|
+
${$("tablet")} {
|
|
55
55
|
padding-left: 1.5rem;
|
|
56
56
|
padding-right: 1.5rem;
|
|
57
57
|
}
|
|
58
|
-
`,
|
|
58
|
+
`,Y=o.div`
|
|
59
59
|
${({$centered:e})=>e&&`
|
|
60
60
|
display: flex;
|
|
61
61
|
flex-direction: column;
|
|
@@ -71,29 +71,29 @@ import r from"react";import n,{keyframes as I}from"styled-components";import{Dis
|
|
|
71
71
|
`}
|
|
72
72
|
|
|
73
73
|
${({$dynamicGutter:e})=>e&&`
|
|
74
|
-
${
|
|
74
|
+
${$("tablet")} {
|
|
75
75
|
margin-left: ${e.tabletVw}vw;
|
|
76
76
|
margin-right: ${e.tabletVw}vw;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
${
|
|
79
|
+
${$("laptop")} {
|
|
80
80
|
margin-left: ${e.laptopVw}vw;
|
|
81
81
|
margin-right: ${e.laptopVw}vw;
|
|
82
82
|
}
|
|
83
83
|
`}
|
|
84
|
-
`,
|
|
84
|
+
`,_=o(C)`
|
|
85
85
|
margin: 0;
|
|
86
86
|
color: ${({$color:e,theme:t})=>t.colors.text[e]};
|
|
87
87
|
|
|
88
88
|
${({$shadow:e})=>e&&"text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.2);"}
|
|
89
|
-
`,
|
|
89
|
+
`,B=o(I)`
|
|
90
90
|
margin: 0.25rem 0;
|
|
91
91
|
color: ${({$color:e,theme:t})=>t.colors.text[e]};
|
|
92
92
|
|
|
93
93
|
${({$shadow:e})=>e&&"text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.2);"}
|
|
94
|
-
`,J=
|
|
94
|
+
`,J=o.div`
|
|
95
95
|
display: inline-block;
|
|
96
96
|
margin-top: 3rem;
|
|
97
97
|
|
|
98
98
|
${({$shadow:e,theme:t})=>e&&`box-shadow: ${t.elevations.elevation8};`}
|
|
99
|
-
`,
|
|
99
|
+
`,L=({imageProps:e,imageElement:t,videoProps:n,children:r,align:h,direction:u,justify:x,contentMaxWidth:y=64,heading:l,headingColor:m="dark",subheading:d,button:s,dynamicGutter:w,isLoading:b=!1,contentCentered:v=!1,containerStyle:E,elementShadow:c=!1})=>{const{autoplay:k=0,controls:j=0,disablekb:G=0,end:p,loop:z=0,modestbranding:S=1,start:V=0,showInfo:W=0}=(n==null?void 0:n.ytConfig)||{};return b?i.createElement(A,{"data-testid":"loader"}):i.createElement(P,{style:E},n?i.createElement(F,{"data-testid":"hero-video",title:"video-frame",src:`${n.src}?disabledkb=${G}&autoplay=${k}&controls=${j}&loop=${z}&modestbranding=${S}&start=${V}&showInfo=${W}${p?`&end=${p}`:""}`,width:"100%",height:"100%",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}):i.createElement(T,{"data-testid":"hero-image",$positionX:t||e==null?void 0:e.x,$positionY:t||e==null?void 0:e.y,$url:t||e==null?void 0:e.src},t,i.createElement(X,null,(l||d||s)&&i.createElement(Y,{$maxWidth:y,$dynamicGutter:w,$centered:v},l&&i.createElement(_,{as:"h1",$color:m,$shadow:c},l),d&&i.createElement(B,{$color:m,$shadow:c},d),s&&i.createElement(J,{$shadow:c},s)),r&&i.createElement(D,{$pointerEvents:n?"none":"auto",$align:h||"flex-start",$direction:u||"column",$justify:x||"flex-start"},r))))};export{g as colorAnimation,L as default};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import e,{useState as
|
|
1
|
+
import e,{useState as g}from"react";import t from"styled-components";import{Caption as y}from"../../typography/BodyText/index.js";import{Title as f}from"../../typography/Heading/index.js";import c from"../../theme.js";import{Snackbar as k}from"../Snackbar/index.js";import"../../shared/media-queries.js";import"../Icons/CheckCircle.js";import"../Icons/Close.js";import"../Icons/ErrorCircle.js";import"../Icons/InfoCircle.js";import"react-transition-group";const x=t.div`
|
|
2
2
|
margin: 0 auto;
|
|
3
3
|
max-width: 700px;
|
|
4
|
-
`,
|
|
4
|
+
`,b=t(f)`
|
|
5
5
|
margin: 0.5rem;
|
|
6
|
-
`,w=
|
|
6
|
+
`,w=t.ul`
|
|
7
7
|
display: flex;
|
|
8
8
|
list-style: none;
|
|
9
9
|
flex-wrap: wrap;
|
|
10
10
|
padding: 0;
|
|
11
|
-
`,
|
|
11
|
+
`,h=t.li`
|
|
12
12
|
background: ${({background:r})=>r};
|
|
13
13
|
display: flex;
|
|
14
14
|
justify-content: center;
|
|
@@ -20,13 +20,13 @@ import e,{useState as y}from"react";import o from"styled-components";import{Capt
|
|
|
20
20
|
border-radius: 3px;
|
|
21
21
|
margin: 0.5rem;
|
|
22
22
|
cursor: pointer;
|
|
23
|
-
`,C=
|
|
23
|
+
`,C=t(y)`
|
|
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
|
-
`,j=
|
|
29
|
+
`,j=t.span`
|
|
30
30
|
font-size: ${({size:r})=>r};
|
|
31
31
|
color: ${({color:r})=>r};
|
|
32
|
-
`,E=({background:r=c.colors.background.light,color:l=c.colors.text.dark,icons:p,size:m="2rem"})=>{const[a,
|
|
32
|
+
`,E=({background:r=c.colors.background.light,color:l=c.colors.text.dark,icons:p,size:m="2rem"})=>{const[a,i]=g({isOpen:!1,message:"",type:"info",color:"neutral"}),d=async o=>{const s=`import { ${o} } from 'kvdbil-components';`;if(navigator.clipboard)try{await navigator.clipboard.writeText(s),i(n=>({...n,isOpen:!0,message:`copied import for ${o}`,type:"success",color:"success"}))}catch(n){i(u=>({...u,isOpen:!0,message:`Could not copy text: ${n}`,type:"error",color:"error"}))}};return e.createElement(e.Fragment,null,e.createElement(x,null,e.createElement(b,{as:"h2"},"Click to copy import declaration for icon"),e.createElement(w,null,p.map(([o,s],n)=>e.createElement(h,{key:n,background:r,onClick:()=>{d(o)}},e.createElement(C,null,o),e.createElement(j,{size:m,color:l},e.createElement(s,null)))))),e.createElement(k,{message:a.message,isOpen:a.isOpen,type:a.type,color:a.color,onClose:()=>i(o=>({...o,isOpen:!1}))}))};export{E as default};
|