@kvdbil/components 14.3.2 → 14.3.4
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 +7 -7
- package/cjs/ElevationCard.js +3 -3
- package/cjs/components/Accordion/index.js +9 -9
- package/cjs/components/Badge/index.js +6 -6
- package/cjs/components/Breadcrumbs/BreadcrumbsItem.js +6 -6
- package/cjs/components/Breadcrumbs/index.js +2 -2
- package/cjs/components/Button/index.js +16 -16
- package/cjs/components/Button/styles.js +20 -20
- package/cjs/components/Card/index.js +7 -7
- package/cjs/components/CheckBox/index.js +32 -31
- package/cjs/components/Chip/index.js +6 -6
- package/cjs/components/DayPicker/DayPickerNavBar.js +9 -9
- package/cjs/components/DayPicker/index.js +3 -3
- package/cjs/components/Dialog/index.js +4 -4
- package/cjs/components/EditRow/index.js +14 -14
- package/cjs/components/ErrorMessage/index.js +2 -2
- package/cjs/components/FieldLabel.js +20 -20
- package/cjs/components/Flex/index.js +11 -11
- package/cjs/components/Hero/index.js +15 -15
- package/cjs/components/Icon/index.js +8 -8
- package/cjs/components/IconButton.js +8 -8
- 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 +6 -6
- package/cjs/components/Logo/LogoEn.js +1 -1
- package/cjs/components/Logo/LogoSv.js +1 -1
- package/cjs/components/Logo/index.js +2 -2
- package/cjs/components/MenuItem/index.js +11 -11
- package/cjs/components/Message/index.js +10 -10
- package/cjs/components/Modal/index.js +9 -9
- package/cjs/components/NotificationButton/index.js +3 -3
- package/cjs/components/OffCanvas/Overlay.js +2 -2
- package/cjs/components/OffCanvas/index.js +19 -19
- package/cjs/components/OffCanvas/useClickOutside.js +1 -1
- package/cjs/components/RadioButton/index.js +26 -26
- package/cjs/components/RegistrationPlate/EuFlagIcon.js +1 -1
- package/cjs/components/RegistrationPlate/index.js +5 -5
- package/cjs/components/Select/components/test-icon.js +1 -1
- package/cjs/components/Select/index.js +7 -7
- package/cjs/components/Snackbar/index.js +16 -16
- package/cjs/components/Spacer/index.js +5 -5
- package/cjs/components/Spinner/index.js +10 -10
- package/cjs/components/SpinnerThin/index.js +7 -7
- package/cjs/components/Stack/index.js +1 -1
- package/cjs/components/Stamp/index.js +1 -1
- package/cjs/components/Stepper/index.js +6 -6
- package/cjs/components/StepperAccordion/index.js +17 -17
- package/cjs/components/Table/index.js +11 -11
- package/cjs/components/Tabs/Tab.js +5 -5
- package/cjs/components/Tabs/Tabs.js +9 -9
- package/cjs/components/Tabs/index.js +1 -1
- package/cjs/components/TextArea/index.js +14 -14
- package/cjs/components/Textfield/index.js +12 -12
- package/cjs/components/TimePicker/index.js +2 -2
- package/cjs/components/Toggle/index.js +6 -6
- package/cjs/components/ToggleArrow/index.js +2 -2
- package/cjs/components/ValuationRange/index.js +15 -15
- 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/typography/BodyText/index.js +22 -22
- package/cjs/typography/ButtonText/index.js +14 -14
- package/cjs/typography/Heading/index.js +23 -23
- package/cjs/utils/utils.js +2 -2
- package/esm/ColorCard.js +10 -10
- package/esm/ElevationCard.js +3 -3
- package/esm/components/Accordion/index.js +9 -9
- 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 +4 -4
- package/esm/components/Card/index.js +5 -5
- package/esm/components/CheckBox/index.js +16 -15
- package/esm/components/Chip/index.js +15 -15
- package/esm/components/DayPicker/DayPickerNavBar.js +9 -9
- package/esm/components/DayPicker/index.js +4 -4
- package/esm/components/Dialog/index.js +4 -4
- package/esm/components/EditRow/index.js +14 -14
- package/esm/components/ErrorMessage/index.js +2 -2
- package/esm/components/FieldLabel.js +18 -18
- package/esm/components/Flex/index.js +10 -10
- package/esm/components/Hero/index.js +21 -21
- package/esm/components/Icon/index.js +8 -8
- package/esm/components/IconButton.js +9 -9
- package/esm/components/Icons/Arrow.js +1 -1
- package/esm/components/Icons/CheckCircle.js +1 -1
- package/esm/components/Icons/CheckIcon.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/Bacon.js +1 -1
- package/esm/components/ListItem/index.js +7 -7
- package/esm/components/Logo/LogoEn.js +1 -1
- package/esm/components/Logo/LogoSv.js +1 -1
- package/esm/components/Logo/index.js +3 -3
- package/esm/components/MenuItem/index.js +11 -11
- package/esm/components/Message/index.js +11 -11
- package/esm/components/Modal/index.js +11 -11
- package/esm/components/NotificationButton/index.js +4 -4
- package/esm/components/OffCanvas/Overlay.js +2 -2
- package/esm/components/OffCanvas/index.js +7 -7
- package/esm/components/OffCanvas/useClickOutside.js +1 -1
- package/esm/components/RadioButton/index.js +23 -23
- package/esm/components/RegistrationPlate/EuFlagIcon.js +1 -1
- package/esm/components/RegistrationPlate/index.js +5 -5
- package/esm/components/Select/components/test-icon.js +1 -1
- package/esm/components/Select/index.js +13 -13
- package/esm/components/Snackbar/index.js +23 -23
- package/esm/components/Spacer/index.js +5 -5
- package/esm/components/Spinner/index.js +5 -5
- package/esm/components/SpinnerThin/index.js +16 -16
- package/esm/components/Stack/index.js +1 -1
- package/esm/components/Stamp/index.js +1 -1
- package/esm/components/Stepper/index.js +32 -32
- package/esm/components/StepperAccordion/index.js +20 -20
- package/esm/components/Table/index.js +11 -11
- 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 +32 -32
- package/esm/components/Textfield/index.js +16 -16
- package/esm/components/TimePicker/index.js +2 -2
- package/esm/components/Toggle/index.js +11 -11
- package/esm/components/ToggleArrow/index.js +3 -3
- package/esm/components/ValuationRange/index.js +15 -15
- 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/BodyIcon.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/ClockIcon.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/CopyIcon.js +1 -1
- package/esm/icons/components/CountdownIcon.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/ExportIcon.js +1 -1
- package/esm/icons/components/FacebookIcon.js +1 -1
- package/esm/icons/components/FacilityIcon.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/InstagramIcon.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/NextIcon.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/PercentIcon.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/PrintIcon.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/ScheduleIcon.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/TractorIcon.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/YoutubeIcon.js +1 -1
- package/esm/icons/components/index.js +1 -1
- package/esm/index.js +1 -1
- package/esm/typography/BodyText/index.js +25 -25
- package/esm/typography/ButtonText/index.js +10 -10
- package/esm/typography/Heading/index.js +22 -22
- package/esm/utils/utils.js +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import t from"react";import
|
|
1
|
+
import{jsx as o,Fragment as t,jsxs as r}from"react/jsx-runtime";import i from"styled-components";import{BodyTextStyle as d,BodyText as s}from"../../typography/BodyText/index.js";import"../../shared/media-queries.js";const a=i.li`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
margin: 0;
|
|
@@ -7,25 +7,25 @@ import t from"react";import o from"styled-components";import{BodyTextStyle as r,
|
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
|
|
9
9
|
a {
|
|
10
|
-
${
|
|
10
|
+
${d}
|
|
11
11
|
font-weight: ${({theme:e})=>e.typography.fontBaseBoldWeight};
|
|
12
12
|
color: ${({theme:e})=>e.colors.info.main};
|
|
13
13
|
text-decoration: none;
|
|
14
14
|
overflow: hidden;
|
|
15
15
|
text-overflow: ellipsis;
|
|
16
16
|
}
|
|
17
|
-
`,
|
|
17
|
+
`,h=i(s)`
|
|
18
18
|
color: ${({theme:e})=>e.colors.text.dark};
|
|
19
19
|
overflow: hidden;
|
|
20
20
|
text-overflow: ellipsis;
|
|
21
|
-
`,
|
|
21
|
+
`,m=i.span`
|
|
22
22
|
display: inline-flex;
|
|
23
23
|
padding-right: 0.5rem;
|
|
24
24
|
svg {
|
|
25
25
|
width: 1rem;
|
|
26
26
|
height: 1rem;
|
|
27
27
|
}
|
|
28
|
-
`,
|
|
28
|
+
`,p=i.span`
|
|
29
29
|
display: inline-flex;
|
|
30
30
|
padding: 0 0.5rem;
|
|
31
31
|
color: ${({theme:e})=>e.colors.gray.light1};
|
|
@@ -33,4 +33,4 @@ import t from"react";import o from"styled-components";import{BodyTextStyle as r,
|
|
|
33
33
|
width: 1rem;
|
|
34
34
|
height: 1rem;
|
|
35
35
|
}
|
|
36
|
-
`,
|
|
36
|
+
`,c=({link:e,separator:n,isLast:l})=>o(t,{children:r(a,{children:[e.prefixIcon&&o(m,{children:e.prefixIcon}),l?o(h,{as:"span",children:e.component}):r(t,{children:[e.component,o(p,{children:n})]})]})});export{c as default};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import p from"styled-components";import a from"./BreadcrumbsItem.js";import m from"../../icons/components/NextIcon.js";import"../../typography/BodyText/index.js";import"../../shared/media-queries.js";const n=p.ul`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
padding: 0;
|
|
5
5
|
white-space: nowrap;
|
|
6
6
|
overflow: hidden;
|
|
7
|
-
`,
|
|
7
|
+
`,s=({links:o,separator:t=r(m,{})})=>r(n,{children:o.map((e,i)=>r(a,{link:e,separator:t,isLast:i===o.length-1},i))});export{s as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
${
|
|
1
|
+
import{jsx as s,jsxs as I,Fragment as W}from"react/jsx-runtime";import g,{forwardRef as w}from"react";import t,{css as u}from"styled-components";import y from"../../theme.js";import B from"../Spinner/index.js";import{BasicButtonFontStyle as j,ButtonRegularTextStyle as k}from"../../typography/ButtonText/index.js";import{fontSizes as A,smallerAndSmallSizeStyles as D,regularSizeStyles as E,largeSizeStyles as F,disabledColorStyles as R,colorStyles as V}from"./styles.js";const c=0,C=t.button`
|
|
2
|
+
${j}
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
outline: none;
|
|
5
5
|
cursor: pointer;
|
|
@@ -10,31 +10,31 @@ import i,{forwardRef as v}from"react";import a,{css as g}from"styled-components"
|
|
|
10
10
|
width: ${({fullWidth:e})=>e&&"100%"};
|
|
11
11
|
display: flex;
|
|
12
12
|
align-items: center;
|
|
13
|
-
justify-content: ${({sufixIcon:e,prefixIcon:
|
|
13
|
+
justify-content: ${({sufixIcon:e,prefixIcon:i,isLoading:l})=>!l&&(e||i)?"space-between":"center"};
|
|
14
14
|
|
|
15
|
-
${({size:e="small"})=>
|
|
16
|
-
${({size:e})=>
|
|
17
|
-
${(e==="smaller"||e==="small")&&
|
|
18
|
-
${e==="regular"&&
|
|
19
|
-
${e==="large"&&
|
|
15
|
+
${({size:e="small"})=>A[e]||k}
|
|
16
|
+
${({size:e})=>u`
|
|
17
|
+
${(e==="smaller"||e==="small")&&D()}
|
|
18
|
+
${e==="regular"&&E()}
|
|
19
|
+
${e==="large"&&F()}
|
|
20
20
|
`}
|
|
21
21
|
background-color: transparent;
|
|
22
22
|
transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease,
|
|
23
23
|
filter 0.3s;
|
|
24
|
-
${({variant:e="solid",color:
|
|
25
|
-
${n?
|
|
24
|
+
${({variant:e="solid",color:i="primary",colorShade:l="main",disabled:n,theme:a})=>u`
|
|
25
|
+
${n?R(a,e):V[e](a,i,l)}
|
|
26
26
|
`}
|
|
27
27
|
&:focus-visible {
|
|
28
28
|
box-shadow: 0px 0px 0px 1px ${({theme:e})=>e.colors.gray.light5};
|
|
29
29
|
}
|
|
30
|
-
`,
|
|
30
|
+
`,N={smaller:"1rem",small:"1rem",regular:"1.5rem",large:"1.5rem"},h={smaller:"0.5rem",small:"0.5rem",regular:"1rem",large:"1rem"},x=t.span`
|
|
31
31
|
display: flex;
|
|
32
|
-
margin-right: ${({type:e,size:
|
|
33
|
-
margin-left: ${({type:e,size:
|
|
34
|
-
font-size: ${({size:e})=>
|
|
35
|
-
opacity: ${({isLoading:e})=>e?
|
|
36
|
-
`,
|
|
32
|
+
margin-right: ${({type:e,size:i})=>e==="prefix"?h[i]:0};
|
|
33
|
+
margin-left: ${({type:e,size:i})=>e==="sufix"?h[i]:0};
|
|
34
|
+
font-size: ${({size:e})=>N[e]};
|
|
35
|
+
opacity: ${({isLoading:e})=>e?c:1};
|
|
36
|
+
`,T=t(B)`
|
|
37
37
|
position: absolute;
|
|
38
|
-
`,
|
|
39
|
-
opacity: ${({isLoading:e})=>e?
|
|
40
|
-
`,
|
|
38
|
+
`,q=t.span`
|
|
39
|
+
opacity: ${({isLoading:e})=>e?c:1};
|
|
40
|
+
`,G={smaller:1,small:1,regular:1.5,large:1.5},p=w(({size:e="small",color:i="primary",colorShade:l="main",variant:n="solid",fullWidth:a=!1,isDisabled:b=!1,isLoading:r=!1,children:$,sufixIcon:m,prefixIcon:d,minWidth:z,as:S="button",...L},v)=>s(C,{...L,as:S,minWidth:z,color:i,colorShade:l,disabled:b||r,fullWidth:a,theme:y,variant:n,size:e,isLoading:r,ref:v,prefixIcon:d,sufixIcon:m,children:I(W,{children:[d&&s(x,{size:e,type:"prefix",isLoading:r,children:d}),((o,f)=>typeof o=="string"||typeof o=="number"?s(q,{isLoading:f,children:o}):g.isValidElement(o)?g.cloneElement(o,{style:{...o.props.style,opacity:f?c:1}}):o)($,r),m&&s(x,{size:e,type:"sufix",isLoading:r,children:m}),r&&s(T,{color:y.colors.gray.light1,size:G[e]})]})}));p.displayName="Button";export{p as Button,p as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ButtonSmallTextStyle as
|
|
1
|
+
import{ButtonSmallTextStyle as c,ButtonRegularTextStyle as e,ButtonLargeTextStyle as a}from"../../typography/ButtonText/index.js";import"react/jsx-runtime";import"styled-components";const n={smaller:c,small:e,regular:e,large:a},d=()=>`
|
|
2
2
|
padding: 0.25rem 0.75rem;
|
|
3
3
|
min-height: 2.5rem;
|
|
4
4
|
`,g=()=>`
|
|
@@ -7,9 +7,9 @@ import{ButtonSmallTextStyle as i,ButtonRegularTextStyle as e,ButtonLargeTextStyl
|
|
|
7
7
|
`,m=()=>`
|
|
8
8
|
padding: 0.25rem 1.5rem;
|
|
9
9
|
min-height: 3.75rem;
|
|
10
|
-
`,h=(o,r,
|
|
10
|
+
`,h=(o,r,i)=>`
|
|
11
11
|
color: ${o.colors.text.light};
|
|
12
|
-
background-color: ${o.colors[r][
|
|
12
|
+
background-color: ${o.colors[r][i]};
|
|
13
13
|
|
|
14
14
|
:hover {
|
|
15
15
|
border-color: ${o.colors[r].dark};
|
|
@@ -49,4 +49,4 @@ import{ButtonSmallTextStyle as i,ButtonRegularTextStyle as e,ButtonLargeTextStyl
|
|
|
49
49
|
${l(o)};
|
|
50
50
|
background-color: ${o.colors.gray.light4};`:r==="outline"?`
|
|
51
51
|
${l(o)};
|
|
52
|
-
border: 2px solid ${o.colors.gray.light1};`:l(o),
|
|
52
|
+
border: 2px solid ${o.colors.gray.light1};`:l(o),S={solid:h,outline:t,flat:s};export{S as colorStyles,$ as disabledColorStyles,s as flatColorStyles,n as fontSizes,m as largeSizeStyles,t as outlineColorStyles,g as regularSizeStyles,d as smallerAndSmallSizeStyles};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{jsxs as n,jsx as t}from"react/jsx-runtime";import i from"styled-components";import s from"../../theme.js";const m=i.div``,p=i.div`
|
|
2
2
|
background: ${({topBorder:r})=>r};
|
|
3
3
|
height: 0.25rem;
|
|
4
|
-
`,
|
|
5
|
-
background: ${
|
|
4
|
+
`,g=i.div`
|
|
5
|
+
background: ${s.colors.background.light};
|
|
6
6
|
|
|
7
|
-
${({noFrame:r,topBorder:o,lineBorder:e,theme:
|
|
7
|
+
${({noFrame:r,topBorder:o,lineBorder:e,theme:d})=>!o&&(!r||e)&&`border-top: 1px solid ${d.colors.gray.light5};`}
|
|
8
8
|
|
|
9
9
|
${({noFrame:r,lineBorder:o,theme:e})=>(!r||o)&&`border-bottom: 1px solid ${e.colors.gray.light5};
|
|
10
10
|
`}
|
|
11
11
|
|
|
12
12
|
${({noFrame:r,lineBorder:o,theme:e})=>!r&&!o&&`border-right: 1px solid ${e.colors.gray.light5};
|
|
13
13
|
border-left: 1px solid ${e.colors.gray.light5};`}
|
|
14
|
-
`,
|
|
14
|
+
`,l=({children:r,topBorder:o,noFrame:e=!1,lineBorder:d=!1,as:a="div"})=>n(m,{as:a,children:[o&&t(p,{topBorder:o}),t(g,{topBorder:o,noFrame:e,lineBorder:d,children:r})]});export{l as Card,l as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import s
|
|
1
|
+
import{jsxs as b,jsx as s}from"react/jsx-runtime";import t,{css as r}from"styled-components";import m from"../../icons/components/CheckmarkIcon.js";import{generateNameHash as g}from"../../shared/helpers.js";import i from"../../theme.js";import{BodyText as u}from"../../typography/BodyText/index.js";import{BackgroundStyles as f}from"../IconButton.js";import"../../shared/media-queries.js";const k=r`
|
|
2
2
|
width: 24px;
|
|
3
3
|
height: 24px;
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import s from"react";import t,{css as o}from"styled-components";import x from"..
|
|
|
6
6
|
width: 15px;
|
|
7
7
|
height: 15px;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
`,$=r`
|
|
10
10
|
width: 32px;
|
|
11
11
|
height: 32px;
|
|
12
12
|
|
|
@@ -14,10 +14,10 @@ import s from"react";import t,{css as o}from"styled-components";import x from"..
|
|
|
14
14
|
width: 22px;
|
|
15
15
|
height: 22px;
|
|
16
16
|
}
|
|
17
|
-
`,n={regular:
|
|
17
|
+
`,n={regular:k,large:$},y=r`
|
|
18
18
|
cursor: default;
|
|
19
19
|
border: 2px solid ${i.colors.gray.light2};
|
|
20
|
-
|
|
20
|
+
`,v=e=>r`
|
|
21
21
|
svg {
|
|
22
22
|
opacity: 1;
|
|
23
23
|
}
|
|
@@ -27,16 +27,17 @@ import s from"react";import t,{css as o}from"styled-components";import x from"..
|
|
|
27
27
|
|
|
28
28
|
background: ${i.colors[e].main};
|
|
29
29
|
border: 2px solid ${i.colors[e].main};
|
|
30
|
-
`,z=
|
|
30
|
+
`,z=r`
|
|
31
31
|
background: ${i.colors.gray.light2};
|
|
32
32
|
z-index: 1;
|
|
33
|
-
`,
|
|
33
|
+
`,D=r`
|
|
34
34
|
border: 2px solid ${i.colors.error.dark};
|
|
35
|
-
`,
|
|
35
|
+
`,w=t.div`
|
|
36
36
|
display: flex;
|
|
37
37
|
align-items: flex-start;
|
|
38
38
|
box-sizing: border-box;
|
|
39
|
-
|
|
39
|
+
position: relative;
|
|
40
|
+
`,C=t.input.attrs({type:"checkbox"})`
|
|
40
41
|
position: absolute;
|
|
41
42
|
appearance: none;
|
|
42
43
|
width: 100%;
|
|
@@ -50,9 +51,9 @@ import s from"react";import t,{css as o}from"styled-components";import x from"..
|
|
|
50
51
|
|
|
51
52
|
:focus-visible {
|
|
52
53
|
transition: background-color 400ms;
|
|
53
|
-
${
|
|
54
|
+
${f}
|
|
54
55
|
}
|
|
55
|
-
`,
|
|
56
|
+
`,S=t.span`
|
|
56
57
|
box-sizing: border-box;
|
|
57
58
|
cursor: pointer;
|
|
58
59
|
display: flex;
|
|
@@ -70,14 +71,14 @@ import s from"react";import t,{css as o}from"styled-components";import x from"..
|
|
|
70
71
|
color: ${({theme:e})=>e.colors.common.white};
|
|
71
72
|
}
|
|
72
73
|
|
|
73
|
-
${e=>e.isChecked
|
|
74
|
+
${e=>e.isChecked&&v(e.color)};
|
|
74
75
|
${e=>e.isDisabled&&y};
|
|
75
|
-
${e=>e.hasError&&
|
|
76
|
+
${e=>e.hasError&&D};
|
|
76
77
|
${e=>e.isChecked&&e.isDisabled&&z};
|
|
77
|
-
`,
|
|
78
|
+
`,j=t(u)`
|
|
78
79
|
flex: 1;
|
|
79
80
|
cursor: ${({isDisabled:e})=>e?"default":"pointer"};
|
|
80
81
|
user-select: none;
|
|
81
|
-
color: ${({theme:e,isDisabled:
|
|
82
|
+
color: ${({theme:e,isDisabled:o})=>o?e.colors.text.disabled:e.colors.text.dark};
|
|
82
83
|
margin-left: 0.5rem;
|
|
83
|
-
`,
|
|
84
|
+
`,h=({name:e=g("check-box"),isDisabled:o=!1,size:a="regular",checked:l=!1,color:d="secondary",hasError:p=!1,label:c,...x})=>b(w,{children:[s(C,{...x,type:"checkbox",checked:l,"data-validate":"checked",name:e,id:e,color:d,disabled:o,isDisabled:o,boxSize:a}),s(S,{size:a,color:d,isChecked:l,isDisabled:o,hasError:p,children:s(m,{})}),c&&s(j,{as:"label",htmlFor:e,isDisabled:o,children:c})]});export{h as CheckBox,h as default};
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{jsx as i,jsxs as v}from"react/jsx-runtime";import t from"styled-components";import y from"../../icons/components/CloseIcon.js";import{getFontSize as C,getCursorType as m,getBackgroundColor as $,getColor as x,getBorderColor as k,getHoverBorderColor as B,getHoverBackgroundColor as z,getHoverColor as D,getActiveBackgroundColor as p,getActiveBorderColor as j,getActiveColor as H,getSufixHoverBackgroundColor as w}from"./styles.js";const A={smaller:"0.25rem 1rem",small:"0.25rem 1rem",regular:"0.25rem 1rem",large:"0.5rem 1rem"},S=t.div`
|
|
2
2
|
font-family: ${({theme:e})=>e.typography.fontBaseFamily};
|
|
3
|
-
font-size: ${({size:e})
|
|
3
|
+
font-size: ${({size:e})=>C(e)};
|
|
4
4
|
font-weight: ${({theme:e})=>e.typography.fontBaseBoldWeight};
|
|
5
5
|
line-height: 1.25;
|
|
6
6
|
letter-spacing: 0.1px;
|
|
7
7
|
display: inline-flex;
|
|
8
8
|
cursor: ${m};
|
|
9
9
|
align-items: center;
|
|
10
|
-
background: ${
|
|
10
|
+
background: ${$};
|
|
11
11
|
color: ${x};
|
|
12
12
|
justify-content: center;
|
|
13
13
|
border-width: 1px;
|
|
14
14
|
border-style: solid;
|
|
15
|
-
border-color: ${
|
|
15
|
+
border-color: ${k};
|
|
16
16
|
border-radius: 1.293rem;
|
|
17
|
-
padding: ${({size:e,isDeletable:
|
|
17
|
+
padding: ${({size:e,isDeletable:l})=>l?"0 0.5rem 0 1rem":A[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
|
-
border-color: ${
|
|
22
|
-
background-color: ${
|
|
23
|
-
color: ${
|
|
21
|
+
border-color: ${B(e)};
|
|
22
|
+
background-color: ${z(e)};
|
|
23
|
+
color: ${D(e)};
|
|
24
24
|
} &:active {
|
|
25
25
|
background-color: ${p(e)};
|
|
26
|
-
border-color: ${
|
|
27
|
-
color: ${
|
|
26
|
+
border-color: ${j(e)};
|
|
27
|
+
color: ${H(e)};
|
|
28
28
|
}`}
|
|
29
|
-
`,
|
|
29
|
+
`,F=t.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
|
+
`,I=t.span`
|
|
36
36
|
margin-right: 0.625rem;
|
|
37
37
|
display: flex;
|
|
38
38
|
align-items: center;
|
|
39
|
-
`,
|
|
39
|
+
`,P=t.span`
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
42
|
cursor: ${m};
|
|
@@ -55,7 +55,7 @@ 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: ${w};
|
|
59
59
|
opacity: 0;
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -67,4 +67,4 @@ import r from"react";import l from"styled-components";import C from"../../icons/
|
|
|
67
67
|
&:hover:before {
|
|
68
68
|
opacity: 1;
|
|
69
69
|
}
|
|
70
|
-
`,b=({color:e="primary",children:
|
|
70
|
+
`,b=({color:e="primary",children:l,component:h="div",isDisabled:r,onClick:s,size:u="regular",prefix:a,onDelete:n,variant:c="solid",...f})=>{const o=!!(s&&!r),d=!!(n&&!r);return i(S,{...f,role:o?"button":void 0,onClick:o?s:void 0,tabIndex:o?0:void 0,as:o?"button":h,color:e,isDisabled:r,size:u,isClickable:o,isDeletable:d,variant:c,hasPrefix:!!a,children:v(F,{children:[a&&i(I,{className:"prefix",children:a}),l,n&&i(P,{role:"button",onClick:d?g=>{g.stopPropagation(),n?.(g)}:void 0,color:e,variant:c,isClickable:o,isDisabled:r,isDeletable:!0,size:"regular",children:i(y,{})})]})})};export{b as Chip,b as default};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{jsxs as c,jsx as t}from"react/jsx-runtime";import o from"styled-components";import d from"../Icons/Arrow.js";import r from"../../theme.js";import{BodyText as p}from"../../typography/BodyText/index.js";import{formatMonthTitle as s}from"./localeUtils.js";import"../../shared/media-queries.js";const f=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
padding: 0 2em;
|
|
5
|
-
`,
|
|
5
|
+
`,h=o(p)`
|
|
6
6
|
font-size: 1.5em;
|
|
7
|
-
color: ${
|
|
8
|
-
`,
|
|
7
|
+
color: ${r.colors.text.dark};
|
|
8
|
+
`,e=o.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 s from"../Icons/Arr
|
|
|
14
14
|
outline: none;
|
|
15
15
|
display: flex;
|
|
16
16
|
align-items: center;
|
|
17
|
-
`,
|
|
17
|
+
`,i=o(d)`
|
|
18
18
|
width: 16px;
|
|
19
19
|
height: 16px;
|
|
20
|
-
fill: ${
|
|
21
|
-
`,
|
|
20
|
+
fill: ${r.colors.gray.dark3};
|
|
21
|
+
`,x=o(i)`
|
|
22
22
|
transform: rotate(90deg);
|
|
23
|
-
`,
|
|
23
|
+
`,k=o(i)`
|
|
24
24
|
transform: rotate(-90deg);
|
|
25
|
-
`,
|
|
25
|
+
`,g=({month:n,onPreviousClick:l,onNextClick:a,locale:m})=>c(f,{children:[t(e,{onClick:()=>l(),children:t(x,{title:"prev-month"})}),t(h,{as:"h3",children:s(n,m)}),t(e,{onClick:()=>a(),children:t(k,{title:"next-month"})})]});export{g as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
${
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import a from"react-day-picker";import c from"styled-components";import r from"../../theme.js";import n from"./DayPickerNavBar.js";import{MONTHS as p,WEEKDAYS_LONG as s,WEEKDAYS_SHORT as f,FIRST_DAY_OF_THE_WEEK as y}from"./localeUtils.js";import d from"./style.js";import"../Icons/Arrow.js";import"../../typography/BodyText/index.js";import"../../shared/media-queries.js";const E=c.div`
|
|
2
|
+
${d}
|
|
3
3
|
|
|
4
|
-
font-family: ${({theme:
|
|
5
|
-
`,
|
|
4
|
+
font-family: ${({theme:o})=>o.typography.fontAlternativeFamily};
|
|
5
|
+
`,S=o=>({selected:{color:r.colors.text.light,background:r.colors[o].main},today:{color:r.colors[o].main}}),e=({locale:o="sv",color:m="primary",...i})=>t(E,{color:m,children:t(a,{...i,locale:o,months:p[o],weekdaysLong:s[o],weekdaysShort:f[o],firstDayOfWeek:y[o],navbarElement:l=>t(n,{...l,locale:o}),captionElement:t("div",{}),modifiersStyles:S(m)})});export{e as DayPicker,e as default};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
font-weight: ${
|
|
1
|
+
import{jsxs as d,jsx as i}from"react/jsx-runtime";import r from"styled-components";import{Modal as f}from"../Modal/index.js";import h from"../../theme.js";import{TinyTitleBold as c}from"../../typography/Heading/index.js";import"react";import"react-dom";import"react-transition-group";import"../Icons/Close.js";import"../../shared/media-queries.js";const g=r(c)`
|
|
2
|
+
font-weight: ${h.typography.fontAlternativeRegularWeight};
|
|
3
3
|
margin: 0;
|
|
4
|
-
`,
|
|
4
|
+
`,w=r.div`
|
|
5
5
|
display: flex;
|
|
6
6
|
justify-content: flex-end;
|
|
7
7
|
gap: 1rem;
|
|
8
8
|
overflow-x: hidden;
|
|
9
|
-
`,
|
|
9
|
+
`,e=({isOpen:n,title:o,children:l,actions:t,onClose:m,withPortal:p,withCloseIcon:s=!0,...a})=>d(f,{onClose:m,withPortal:p,isOpen:n,withCloseIcon:s,...a,children:[typeof o=="string"?i(g,{children:o}):o,i("div",{children:l}),t&&i(w,{children:t})]});export{e as Dialog,e as default};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{jsxs as m,Fragment as P,jsx as o}from"react/jsx-runtime";import{useState as s,useEffect as Q}from"react";import i from"styled-components";import y from"../../theme.js";import{BodyLink as R,BodyText as U}from"../../typography/BodyText/index.js";import{Button as f}from"../Button/index.js";import{Chip as V}from"../Chip/index.js";import{TextField as W}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 X=i.div`
|
|
2
2
|
display: flex;
|
|
3
|
-
border-bottom: 1px solid ${
|
|
4
|
-
`,
|
|
3
|
+
border-bottom: 1px solid ${y.colors.gray.light5};
|
|
4
|
+
`,Y=i.form`
|
|
5
5
|
flex: 1;
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
margin-bottom: 1rem;
|
|
8
|
-
`,
|
|
8
|
+
`,Z=i(W)`
|
|
9
9
|
max-width: 20rem;
|
|
10
|
-
`,
|
|
10
|
+
`,_=i.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
|
+
`,q=i(f)`
|
|
17
17
|
min-width: 5rem;
|
|
18
|
-
`,
|
|
18
|
+
`,z=i(f)`
|
|
19
19
|
min-width: 5rem;
|
|
20
20
|
margin-right: 1rem;
|
|
21
|
-
`,
|
|
21
|
+
`,v=i(R)`
|
|
22
22
|
flex: 1;
|
|
23
23
|
margin-right: 1rem;
|
|
24
|
-
`,
|
|
24
|
+
`,C=i(U)`
|
|
25
25
|
flex: 1rem;
|
|
26
26
|
flex: 4;
|
|
27
|
-
`,
|
|
28
|
-
color: ${
|
|
29
|
-
`,
|
|
27
|
+
`,A=i(C)`
|
|
28
|
+
color: ${y.colors.text.disabled};
|
|
29
|
+
`,I=i.div`
|
|
30
30
|
display: flex;
|
|
31
31
|
flex-wrap: wrap;
|
|
32
|
-
`,
|
|
32
|
+
`,M=i(V)`
|
|
33
33
|
margin: 0.5rem;
|
|
34
|
-
`,
|
|
34
|
+
`,ee=({value:p,label:c,onChange:w,onEdit:h,options:j=[],inputProps:T={},isClearable:D=!1,isEditionDisabled:k=!1,editText:E,saveText:F,cancelText:S,noValueText:B,formatterFunc:u,isSingleSelect:$,color:d="secondary"})=>{const[r,t]=s(p),[G,H]=s(p),[l,x]=s(!1),a=typeof r=="string",J=u&&a?u?.(r):r,K=a?J:r.join(", "),g=r.length>0;Q(()=>h?.(l),[h,l]);const b=()=>{l?t(G):H(r),x(e=>!e)},L=e=>{e.preventDefault(),w?.(r),x(!1)},N=e=>{if(typeof r!="object")throw new Error("Cannot toggle chip on other than array");if($){if(r.includes(e)&&D){t([]);return}t([e]);return}if(r.includes(e)){const n=r.filter(O=>O!==e);t(n);return}t(n=>[...n,e])};return m(X,{children:[!l&&m(P,{children:[o(v,{children:c}),g&&o(C,{children:K}),!g&&o(A,{children:B}),o(f,{variant:"flat",color:d,onClick:b,isDisabled:k,children:E})]}),l&&m(Y,{onSubmit:L,children:[o(v,{children:c}),a&&o(Z,{...T,autoFocus:!0,value:r,label:c,onChange:e=>t(e.target.value)}),!a&&o(I,{children:j.map(e=>o(M,{color:d,onClick:n=>{n.preventDefault(),N(e)},variant:r.includes(e)?"solid":"outline",children:e},e))}),m(_,{children:[o(z,{type:"button",variant:"flat",color:"neutral",onClick:b,children:S}),o(q,{type:"submit",color:d,children:F})]})]})]})};export{ee as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import n
|
|
1
|
+
import{jsx as n}from"react/jsx-runtime";import i from"styled-components";const a=i.div`
|
|
2
2
|
font-family: ${({theme:e})=>e.typography.fontAlternativeFamily};
|
|
3
3
|
font-weight: ${({theme:e})=>e.typography.fontAlternativeRegularWeight};
|
|
4
4
|
background: ${({theme:e})=>e.colors.error.main};
|
|
@@ -7,4 +7,4 @@ import n from"react";import a from"styled-components";const i=a.div`
|
|
|
7
7
|
font-size: 13px;
|
|
8
8
|
padding: 10px;
|
|
9
9
|
${({centered:e})=>e&&"text-align: center;"}
|
|
10
|
-
`,
|
|
10
|
+
`,r=({children:e,centered:t,...o})=>n(a,{centered:t,...o,children:e});export{r as ErrorMessage,r as default};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import i,{css as t}from"styled-components";import{BodyTextStyle as
|
|
1
|
+
import i,{css as t}from"styled-components";import{BodyTextStyle as s}from"../typography/BodyText/index.js";import"react/jsx-runtime";import"../shared/media-queries.js";const l="0.5rem",c=(o,e)=>t`
|
|
2
2
|
background-color: ${({theme:r})=>r.colors.background.light};
|
|
3
|
-
transform: translateY(${
|
|
3
|
+
transform: translateY(${o});
|
|
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})=>
|
|
7
|
+
padding: 0 ${l};
|
|
8
|
+
left: ${l};
|
|
9
|
+
color: ${({theme:r})=>e?r.colors.error.dark:r.colors.text.dark};
|
|
10
10
|
`,n=t`
|
|
11
|
-
color: ${({theme:
|
|
12
|
-
`,d=t`
|
|
13
|
-
color: ${({theme:e})=>e.colors.gray.light1};
|
|
14
|
-
background-color: ${({theme:e})=>e.colors.background.light};
|
|
11
|
+
color: ${({theme:o,hasError:e})=>e?o.colors.error.dark:o.colors.text.dark};
|
|
15
12
|
`,m=t`
|
|
13
|
+
color: ${({theme:o})=>o.colors.gray.light1};
|
|
14
|
+
background-color: ${({theme:o})=>o.colors.background.light};
|
|
15
|
+
`,h=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
|
+
`,d=i.label`
|
|
22
|
+
${s}
|
|
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:o})=>o?`${o}rem`:"0.75rem"};
|
|
28
28
|
left: calc(0.75rem + 2px);
|
|
29
29
|
transition: 150ms;
|
|
30
|
-
color: ${({theme:
|
|
30
|
+
color: ${({theme:o})=>o.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:o,isFocused:e,height:r=.7,hasError:a})=>(o||e)&&c(`-${r+.4}rem`,a)}
|
|
36
|
+
${({centered:o,hasValue:e,isFocused:r})=>(e||r)&&o&&h}
|
|
37
|
+
${({isFocused:o})=>o&&n}
|
|
38
|
+
${({disabled:o})=>o&&m}
|
|
39
|
+
`;export{d as Label};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{jsx as x}from"react/jsx-runtime";import b,{css as a}from"styled-components";import{mq as h}from"../../shared/media-queries.js";const j="row",k="1rem",c="center",w=(r,o)=>(o==="gap"||o==="row-gap")&&typeof r=="number"?`${r}rem`:r,v=({$direction:r,$justify:o,$align:n,$gap:t,$rowGap:s,$wrap:$,$basis:p,$grow:f,$shrink:g})=>a`
|
|
2
2
|
display: flex;
|
|
3
3
|
|
|
4
4
|
${r&&["column","column-reverse"].includes(String(r))&&a`
|
|
@@ -7,13 +7,13 @@ import h from"react";import b,{css as a}from"styled-components";import{mq as x}f
|
|
|
7
7
|
}
|
|
8
8
|
`}
|
|
9
9
|
|
|
10
|
-
${[[r,"flex-direction"],[
|
|
11
|
-
${
|
|
12
|
-
`;if(typeof i=="object"){const
|
|
13
|
-
${
|
|
14
|
-
`),Object.entries(
|
|
15
|
-
${
|
|
16
|
-
${
|
|
10
|
+
${[[r,"flex-direction"],[o,"justify-content"],[n,"align-items"],[t,"gap"],[s,"row-gap"],[s,"row-gap"],[$,"flex-wrap"],[p,"flex-basis"],[f,"flex-grow"],[g,"flex-shrink"]].map(([i,e])=>{if(typeof i=="string"||typeof i=="number")return a`
|
|
11
|
+
${e}: ${w(i,e)};
|
|
12
|
+
`;if(typeof i=="object"){const l=[],{initial:u,...m}=i;return u&&l.push(a`
|
|
13
|
+
${e}: ${w(u,e)};
|
|
14
|
+
`),Object.entries(m).forEach(([d,y])=>{l.push(a`
|
|
15
|
+
${h(d)} {
|
|
16
|
+
${e}: ${w(y,e)};
|
|
17
17
|
}
|
|
18
|
-
`)}),
|
|
19
|
-
`,G=b.div(v),q=({direction:r,justify:
|
|
18
|
+
`)}),l}else return""})}
|
|
19
|
+
`,G=b.div(v),q=({direction:r,justify:o,align:n,gap:t,rowGap:s,wrap:$,basis:p,grow:f,shrink:g,...i})=>x(G,{$direction:r??j,$justify:o??c,$align:n??c,$gap:t??k,$rowGap:s,$wrap:$,$basis:p,$grow:f,$shrink:g,...i});export{q as default};
|