@kvdbil/components 14.3.3 → 14.3.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 +9 -9
- package/cjs/ElevationCard.js +3 -3
- package/cjs/components/Accordion/index.js +9 -9
- package/cjs/components/Badge/index.js +7 -7
- package/cjs/components/Breadcrumbs/BreadcrumbsItem.js +6 -6
- package/cjs/components/Breadcrumbs/index.js +2 -2
- package/cjs/components/Button/index.js +17 -17
- package/cjs/components/Button/styles.js +1 -52
- package/cjs/components/Card/index.js +7 -9
- package/cjs/components/CheckBox/index.js +23 -23
- package/cjs/components/Chip/index.js +15 -23
- package/cjs/components/Chip/styles.js +1 -1
- package/cjs/components/DayPicker/DayPickerNavBar.js +9 -9
- package/cjs/components/DayPicker/index.js +3 -3
- package/cjs/components/DayPicker/localeUtils.js +1 -1
- package/cjs/components/DayPicker/style.js +2 -2
- 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 +16 -16
- package/cjs/components/Flex/index.js +11 -11
- package/cjs/components/Hero/index.js +18 -43
- package/cjs/components/Icon/index.js +8 -8
- package/cjs/components/IconButton.js +9 -9
- 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 +13 -13
- package/cjs/components/Message/index.js +11 -19
- package/cjs/components/Modal/index.js +11 -13
- package/cjs/components/NotificationButton/index.js +3 -3
- package/cjs/components/OffCanvas/Overlay.js +2 -2
- package/cjs/components/OffCanvas/index.js +4 -51
- package/cjs/components/OffCanvas/useClickOutside.js +1 -1
- package/cjs/components/RadioButton/index.js +23 -23
- 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 +11 -11
- package/cjs/components/Snackbar/index.js +21 -21
- package/cjs/components/Spacer/index.js +3 -3
- package/cjs/components/Spinner/index.js +10 -10
- package/cjs/components/SpinnerThin/index.js +8 -20
- package/cjs/components/Stack/index.js +1 -1
- package/cjs/components/Stamp/index.js +1 -1
- package/cjs/components/Stepper/index.js +11 -21
- package/cjs/components/StepperAccordion/index.js +18 -21
- package/cjs/components/Table/index.js +11 -11
- package/cjs/components/Tabs/Tab.js +5 -6
- package/cjs/components/Tabs/Tabs.js +10 -12
- package/cjs/components/Tabs/index.js +1 -1
- package/cjs/components/TextArea/index.js +27 -27
- package/cjs/components/Textfield/index.js +16 -16
- package/cjs/components/TimePicker/index.js +2 -2
- package/cjs/components/TimePicker/testHelper.js +1 -1
- package/cjs/components/Toggle/index.js +7 -9
- 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/shared/constants.js +1 -1
- package/cjs/shared/helpers.js +1 -1
- package/cjs/shared/media-queries.js +1 -1
- package/cjs/theme.js +1 -1
- package/cjs/typography/BodyText/index.js +30 -30
- package/cjs/typography/ButtonText/index.js +18 -18
- package/cjs/typography/Heading/index.js +37 -37
- 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 +15 -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 +6 -13
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("styled-components"),i=require("../../shared/media-queries.js");var l,r=(l=t)&&l.__esModule?l:{default:l};const s=t.css`
|
|
2
2
|
font-family: ${({theme:e})=>e.typography.fontAlternativeFamily};
|
|
3
3
|
font-weight: ${({theme:e})=>e.typography.fontAlternativeBoldWeight};
|
|
4
4
|
`,o=t.css`
|
|
5
|
-
${
|
|
5
|
+
${s}
|
|
6
6
|
font-size: 2.5rem;
|
|
7
7
|
line-height: 3rem;
|
|
8
8
|
|
|
9
|
-
${
|
|
9
|
+
${i.mq("laptop")} {
|
|
10
10
|
font-size: 4rem;
|
|
11
11
|
line-height: 4.5rem;
|
|
12
12
|
}
|
|
13
|
-
`,
|
|
13
|
+
`,p=r.default.p`
|
|
14
14
|
${o}
|
|
15
|
-
`,
|
|
16
|
-
${
|
|
15
|
+
`,n=t.css`
|
|
16
|
+
${s}
|
|
17
17
|
font-size: 2rem;
|
|
18
18
|
line-height: 2.5rem;
|
|
19
19
|
|
|
20
|
-
${
|
|
20
|
+
${i.mq("laptop")} {
|
|
21
21
|
font-size: 3rem;
|
|
22
22
|
line-height: 4rem;
|
|
23
23
|
}
|
|
24
|
-
`,
|
|
25
|
-
${s}
|
|
26
|
-
`,h=t.css`
|
|
24
|
+
`,a=r.default.p`
|
|
27
25
|
${n}
|
|
26
|
+
`,h=t.css`
|
|
27
|
+
${s}
|
|
28
28
|
font-size: 1.75rem;
|
|
29
29
|
line-height: 2.5rem;
|
|
30
30
|
|
|
31
|
-
${
|
|
31
|
+
${i.mq("laptop")} {
|
|
32
32
|
font-size: 2.5rem;
|
|
33
33
|
line-height: 3.5rem;
|
|
34
34
|
}
|
|
35
|
-
`,
|
|
35
|
+
`,m=r.default.p`
|
|
36
36
|
${h}
|
|
37
|
-
`,
|
|
37
|
+
`,f=t.css`
|
|
38
38
|
font-family: ${({theme:e})=>e.typography.fontAlternativeFamily};
|
|
39
39
|
font-weight: ${({theme:e})=>e.typography.fontAlternativeRegularWeight};
|
|
40
|
-
`,
|
|
41
|
-
${
|
|
40
|
+
`,y=t.css`
|
|
41
|
+
${f}
|
|
42
42
|
font-size: 1.75rem;
|
|
43
43
|
line-height: 2rem;
|
|
44
44
|
|
|
45
|
-
${
|
|
45
|
+
${i.mq("laptop")} {
|
|
46
46
|
font-size: 2rem;
|
|
47
47
|
line-height: 3rem;
|
|
48
48
|
}
|
|
49
|
-
`,
|
|
50
|
-
${
|
|
51
|
-
|
|
52
|
-
${
|
|
49
|
+
`,g=r.default.p`
|
|
50
|
+
${y}
|
|
51
|
+
`,$=t.css`
|
|
52
|
+
${f}
|
|
53
53
|
font-size: 1.5rem;
|
|
54
54
|
line-height: 2rem;
|
|
55
55
|
|
|
56
|
-
${
|
|
56
|
+
${i.mq("laptop")} {
|
|
57
57
|
font-size: 1.75rem;
|
|
58
58
|
line-height: 2.5rem;
|
|
59
59
|
}
|
|
60
|
-
`,
|
|
60
|
+
`,u=r.default.p`
|
|
61
|
+
${$}
|
|
62
|
+
`,d=t.css`
|
|
61
63
|
${f}
|
|
62
|
-
`,p=t.css`
|
|
63
|
-
${r}
|
|
64
64
|
font-size: 1.125rem;
|
|
65
65
|
line-height: 2rem;
|
|
66
66
|
|
|
67
|
-
${
|
|
67
|
+
${i.mq("laptop")} {
|
|
68
68
|
font-size: 1.25rem;
|
|
69
69
|
}
|
|
70
|
-
`,
|
|
71
|
-
${
|
|
72
|
-
`,
|
|
70
|
+
`,x=r.default.p`
|
|
71
|
+
${d}
|
|
72
|
+
`,c=t.css`
|
|
73
73
|
font-family: ${({theme:e})=>e.typography.fontAlternativeFamily};
|
|
74
74
|
font-size: 1rem;
|
|
75
75
|
line-height: 1.5rem;
|
|
76
|
-
`,
|
|
77
|
-
${
|
|
76
|
+
`,z=t.css`
|
|
77
|
+
${c}
|
|
78
78
|
font-weight: ${({theme:e})=>e.typography.fontAlternativeRegularWeight};
|
|
79
|
-
`,
|
|
80
|
-
${
|
|
81
|
-
|
|
82
|
-
${
|
|
79
|
+
`,v=r.default.p`
|
|
80
|
+
${z}
|
|
81
|
+
`,q=t.css`
|
|
82
|
+
${c}
|
|
83
83
|
font-weight: ${({theme:e})=>e.typography.fontAlternativeBoldWeight};
|
|
84
|
-
`,
|
|
85
|
-
${
|
|
86
|
-
`;exports.Display1=
|
|
84
|
+
`,S=r.default.p`
|
|
85
|
+
${q}
|
|
86
|
+
`;exports.Display1=m,exports.Display1Style=h,exports.Display2=a,exports.Display2Style=n,exports.Display3=p,exports.Display3Style=o,exports.Headline=g,exports.HeadlineStyle=y,exports.Subtitle=x,exports.SubtitleStyle=d,exports.TinyTitleBold=S,exports.TinyTitleBoldStyle=q,exports.TinyTitleRegular=v,exports.TinyTitleRegularStyle=z,exports.Title=u,exports.TitleStyle=$,exports.default=()=>e.jsx("div",{});
|
package/cjs/utils/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const e=require("styled-components").css`
|
|
2
2
|
appearance: none;
|
|
3
3
|
background-color: transparent;
|
|
4
4
|
border: 0;
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
font-family: inherit;
|
|
7
7
|
outline: none;
|
|
8
8
|
padding: 0;
|
|
9
|
-
`;exports.getLuminosity=
|
|
9
|
+
`;exports.getLuminosity=e=>{let r=0,t=0,n=0;return 4===e.length?(r=parseInt("0x"+e[1]+e[1]),t=parseInt("0x"+e[2]+e[2]),n=parseInt("0x"+e[3]+e[3])):7===e.length&&(r=parseInt("0x"+e[1]+e[2]),t=parseInt("0x"+e[3]+e[4]),n=parseInt("0x"+e[5]+e[6])),(Math.max(Number(r/255),Number(t/255),Number(n/255))+Math.min(Number(r/255),Number(t/255),Number(n/255)))/2*100},exports.hexToRGB=(e,r=1)=>`rgba(${parseInt(e.slice(1,3),16)}, ${parseInt(e.slice(3,5),16)}, ${parseInt(e.slice(5,7),16)}, ${r})`,exports.resetButtonStyle=e;
|
package/esm/ColorCard.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import e from"react";import r from"styled-components";import{getLuminosity as m}from"./utils/utils.js";import
|
|
1
|
+
import{jsxs as a,jsx as e,Fragment as s}from"react/jsx-runtime";import r from"styled-components";import{getLuminosity as m}from"./utils/utils.js";import n from"./theme.js";const p=r.ul`
|
|
2
2
|
padding-left: 2rem;
|
|
3
|
-
`,
|
|
3
|
+
`,c=r.li`
|
|
4
4
|
list-style: none;
|
|
5
5
|
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.03);
|
|
6
|
-
border: 1px solid ${
|
|
6
|
+
border: 1px solid ${n.colors.gray.light2};
|
|
7
7
|
border-radius: 4px;
|
|
8
8
|
font-family: 'Ralway', sans-serif;
|
|
9
9
|
margin-top: 0.75rem;
|
|
10
|
-
`,
|
|
10
|
+
`,t=r.span`
|
|
11
11
|
text-transform: capitalize;
|
|
12
12
|
padding: 0.5em;
|
|
13
13
|
display: block;
|
|
14
|
-
border-bottom: 1px solid ${
|
|
15
|
-
`,
|
|
14
|
+
border-bottom: 1px solid ${n.colors.gray.light2};
|
|
15
|
+
`,f=r.li`
|
|
16
16
|
display: block;
|
|
17
|
-
background: ${({hex:
|
|
18
|
-
color: ${({hex:
|
|
17
|
+
background: ${({hex:i})=>i};
|
|
18
|
+
color: ${({hex:i})=>m(i)<40?"#fff":"#000"};
|
|
19
19
|
padding: 1em;
|
|
20
|
-
`,
|
|
20
|
+
`,g=r.ul`
|
|
21
21
|
margin: 0;
|
|
22
22
|
padding: 0;
|
|
23
23
|
display: flex;
|
|
24
24
|
flex-direction: column;
|
|
25
|
-
`,i
|
|
25
|
+
`,d=i=>Object.entries(i).map(([l,o])=>typeof o=="string"?a(f,{hex:o,children:[l," (",o,")"]},o):a(s,{children:[e(t,{children:l}),e(p,{children:d(o)})]})),x=({colorName:i,variants:l})=>a(c,{children:[e(t,{children:i}),e(g,{children:d(l)})]});export{x as default};
|
package/esm/ElevationCard.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
font-family: ${({theme:e})=>
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import o from"styled-components";const n=o.div`
|
|
2
|
+
font-family: ${({theme:e})=>e.typography?.fontAlternativeFamily};
|
|
3
3
|
font-weight: ${({theme:e})=>e.typography.fontAlternativeRegularWeight};
|
|
4
4
|
font-size: 1.25rem;
|
|
5
5
|
box-shadow: ${({elevation:e})=>e};
|
|
@@ -10,4 +10,4 @@ import i from"react";import n from"styled-components";const o=n.div`
|
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
12
12
|
justify-content: center;
|
|
13
|
-
`,a=({children:e,value:t,as:
|
|
13
|
+
`,a=({children:e,value:t,as:i="div"})=>r(n,{as:i,elevation:t,children:e});export{a as ElevationCard};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{jsx as i,jsxs as s}from"react/jsx-runtime";import{useState as f}from"react";import n from"styled-components";import{UnmountClosed as g}from"react-collapse";import{mq as y}from"../../shared/media-queries.js";import $ from"../../icons/components/ArrowDownIcon.js";const x=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
.ReactCollapse--collapse {
|
|
5
5
|
transition: height 300ms;
|
|
6
6
|
}
|
|
7
|
-
`,u=
|
|
7
|
+
`,u=n.ul`
|
|
8
8
|
margin: 0;
|
|
9
9
|
padding: 0;
|
|
10
10
|
list-style: none;
|
|
11
|
-
`,
|
|
11
|
+
`,b=n.div`
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: row;
|
|
14
14
|
justify-content: space-between;
|
|
15
15
|
cursor: pointer;
|
|
16
16
|
margin: 0.5rem 0;
|
|
17
|
-
`,
|
|
17
|
+
`,w=n.div`
|
|
18
18
|
display: flex;
|
|
19
19
|
justify-content: center;
|
|
20
20
|
align-items: center;
|
|
@@ -22,30 +22,30 @@ import o,{useState as h}from"react";import r from"styled-components";import{Unmo
|
|
|
22
22
|
color: ${({theme:e})=>e.colors.text.dark};
|
|
23
23
|
transition: 200ms ease-in-out;
|
|
24
24
|
transform: ${({isOpen:e})=>`rotate(${e?"180deg":"0deg"})`};
|
|
25
|
-
`,
|
|
25
|
+
`,O=n.li`
|
|
26
26
|
border-top: ${({theme:e})=>`1px solid ${e.colors.gray.light2}`};
|
|
27
27
|
padding: ${({isOpen:e})=>e?"0.5rem 0 1rem 0":"0.5rem 0"};
|
|
28
28
|
|
|
29
29
|
&:last-child {
|
|
30
30
|
border-bottom: ${({theme:e})=>`1px solid ${e.colors.gray.light2}`};
|
|
31
31
|
}
|
|
32
|
-
`,
|
|
32
|
+
`,k=n.span`
|
|
33
33
|
color: ${({theme:e})=>e.colors.text.dark};
|
|
34
34
|
font-family: ${({theme:e})=>e.typography.fontBaseFamily};
|
|
35
35
|
font-size: 0.9375rem;
|
|
36
36
|
font-weight: ${({theme:e})=>e.typography.fontBaseBoldWeight};
|
|
37
|
-
`,
|
|
37
|
+
`,B=n.div`
|
|
38
38
|
font-family: ${({theme:e})=>e.typography.fontBaseFamily};
|
|
39
39
|
color: ${({theme:e})=>e.colors.text.dark};
|
|
40
40
|
font-size: 0.9375rem;
|
|
41
41
|
font-weight: ${({theme:e})=>e.typography.fontBaseRegularWeight};
|
|
42
42
|
line-height: 1.3;
|
|
43
43
|
transition: 200ms ease-in-out;
|
|
44
|
-
${
|
|
44
|
+
${y("tablet")} {
|
|
45
45
|
padding: 0;
|
|
46
46
|
}
|
|
47
47
|
& > * {
|
|
48
48
|
margin-top: 0;
|
|
49
49
|
margin-bottom: 0;
|
|
50
50
|
}
|
|
51
|
-
`,l=({items:e,...
|
|
51
|
+
`,l=({items:e,...m})=>{const[d,c]=f({}),a=o=>{c(t=>({...t,[o]:!t[o]}))},p=o=>()=>{a(o)},h=o=>t=>{t.key==="Enter"&&a(o)};return i(x,{...m,children:i(u,{className:"accordionList",children:e.map((o,t)=>{const r=!!d[t];return s(O,{isOpen:r,className:"accordionItem",children:[s(b,{onClick:p(t),onKeyPress:h(t),className:"accordionItemTitle",role:"button",tabIndex:0,"aria-expanded":r,id:`panel${t}-header`,"aria-controls":`panel${t}-content`,children:[i(k,{as:"span",children:o.title}),i(w,{isOpen:r,children:i($,{})})]}),i(g,{isOpened:r,children:i(B,{"aria-labelledby":`panel${t}-header`,id:`panel${t}-content`,role:"region",className:"wysiwyg",dangerouslySetInnerHTML:{__html:o.text}})},t)]},o.title)})})})};export{l as Accordion,l as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import r from"styled-components";import n from"../../theme.js";const a=r.div`
|
|
2
2
|
border-radius: 0.75rem;
|
|
3
3
|
background: ${n.colors.secondary.main};
|
|
4
4
|
display: inline-flex;
|
|
@@ -9,7 +9,7 @@ import t from"react";import r from"styled-components";import n from"../../theme.
|
|
|
9
9
|
height: 1.5rem;
|
|
10
10
|
box-sizing: border-box;
|
|
11
11
|
cursor: default;
|
|
12
|
-
`,
|
|
12
|
+
`,m=r(a)`
|
|
13
13
|
width: 1rem;
|
|
14
14
|
height: 1rem;
|
|
15
15
|
border-radius: 50%;
|
|
@@ -26,10 +26,10 @@ import t from"react";import r from"styled-components";import n from"../../theme.
|
|
|
26
26
|
position: absolute;
|
|
27
27
|
top: 0;
|
|
28
28
|
left: 0;
|
|
29
|
-
`,
|
|
29
|
+
`,h=r.span`
|
|
30
30
|
font-size: 0.75rem;
|
|
31
31
|
line-height: 0.75rem;
|
|
32
32
|
color: white;
|
|
33
|
-
font-weight: ${({theme:
|
|
34
|
-
font-family: ${({theme:
|
|
35
|
-
`,
|
|
33
|
+
font-weight: ${({theme:t})=>t.typography.fontAlternativeBoldWeight};
|
|
34
|
+
font-family: ${({theme:t})=>t.typography.fontAlternativeFamily};
|
|
35
|
+
`,c=t=>t>=100?"99+":`${t}`,d=({notificationAmount:t=0,withNumber:i=!0,...o})=>{if((t<=0||!t)&&i)return null;if(!i)return e(m,{...o,children:e(s,{"data-test":"middle-dot"})});const l=c(t);return e(a,{...o,children:e(h,{children:l})})};export{d as Badge,d as default};
|
|
@@ -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 r}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 r}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,17 +27,17 @@ import s from"react";import t,{css as r}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
|
-
`,
|
|
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
|
-
`,
|
|
40
|
+
`,C=t.input.attrs({type:"checkbox"})`
|
|
41
41
|
position: absolute;
|
|
42
42
|
appearance: none;
|
|
43
43
|
width: 100%;
|
|
@@ -51,9 +51,9 @@ import s from"react";import t,{css as r}from"styled-components";import x from"..
|
|
|
51
51
|
|
|
52
52
|
:focus-visible {
|
|
53
53
|
transition: background-color 400ms;
|
|
54
|
-
${
|
|
54
|
+
${f}
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
56
|
+
`,S=t.span`
|
|
57
57
|
box-sizing: border-box;
|
|
58
58
|
cursor: pointer;
|
|
59
59
|
display: flex;
|
|
@@ -71,14 +71,14 @@ import s from"react";import t,{css as r}from"styled-components";import x from"..
|
|
|
71
71
|
color: ${({theme:e})=>e.colors.common.white};
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
${e=>e.isChecked
|
|
74
|
+
${e=>e.isChecked&&v(e.color)};
|
|
75
75
|
${e=>e.isDisabled&&y};
|
|
76
|
-
${e=>e.hasError&&
|
|
77
|
-
${e=>e.isChecked&&e.isDisabled&&
|
|
78
|
-
`,
|
|
76
|
+
${e=>e.hasError&&D};
|
|
77
|
+
${e=>e.isChecked&&e.isDisabled&&z};
|
|
78
|
+
`,j=t(u)`
|
|
79
79
|
flex: 1;
|
|
80
80
|
cursor: ${({isDisabled:e})=>e?"default":"pointer"};
|
|
81
81
|
user-select: none;
|
|
82
82
|
color: ${({theme:e,isDisabled:o})=>o?e.colors.text.disabled:e.colors.text.dark};
|
|
83
83
|
margin-left: 0.5rem;
|
|
84
|
-
`,
|
|
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};
|