@kvdbil/components 14.2.4 → 14.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/ColorCard.js +10 -10
- package/cjs/ElevationCard.js +5 -5
- package/cjs/components/Accordion/index.js +20 -20
- package/cjs/components/Badge/index.js +9 -9
- package/cjs/components/Breadcrumbs/BreadcrumbsItem.js +10 -10
- package/cjs/components/Breadcrumbs/index.js +2 -2
- package/cjs/components/Button/index.js +22 -22
- package/cjs/components/Button/styles.js +23 -23
- package/cjs/components/Card/index.js +9 -9
- package/cjs/components/CheckBox/index.js +24 -24
- package/cjs/components/Chip/index.js +23 -23
- package/cjs/components/Chip/styles.js +1 -1
- package/cjs/components/DayPicker/DayPickerNavBar.js +7 -7
- package/cjs/components/DayPicker/index.js +4 -4
- package/cjs/components/DayPicker/localeUtils.js +1 -1
- package/cjs/components/DayPicker/style.js +23 -23
- package/cjs/components/Dialog/index.js +4 -4
- package/cjs/components/EditRow/index.js +14 -14
- package/cjs/components/ErrorMessage/index.js +6 -6
- package/cjs/components/FieldLabel.js +21 -21
- package/cjs/components/Flex/index.js +11 -11
- package/cjs/components/Hero/index.js +36 -36
- package/cjs/components/Icon/index.js +11 -11
- package/cjs/components/IconButton.js +13 -13
- package/cjs/components/Icons/Arrow.js +1 -1
- package/cjs/components/Icons/CheckCircle.js +1 -1
- package/cjs/components/Icons/CheckIcon.js +1 -1
- package/cjs/components/Icons/Close.js +1 -1
- package/cjs/components/Icons/ErrorCircle.js +1 -1
- package/cjs/components/Icons/InfoCircle.js +1 -1
- package/cjs/components/ListItem/Bacon.js +1 -1
- package/cjs/components/ListItem/index.js +7 -7
- package/cjs/components/Logo/LogoEn.js +1 -1
- package/cjs/components/Logo/LogoSv.js +1 -1
- package/cjs/components/Logo/index.js +3 -3
- package/cjs/components/MenuItem/index.js +22 -22
- package/cjs/components/Message/index.js +16 -16
- package/cjs/components/Modal/index.js +10 -10
- package/cjs/components/NotificationButton/index.js +4 -4
- package/cjs/components/OffCanvas/Overlay.js +2 -2
- package/cjs/components/OffCanvas/index.js +20 -20
- package/cjs/components/OffCanvas/useClickOutside.js +1 -1
- package/cjs/components/RadioButton/index.js +25 -25
- package/cjs/components/RegistrationPlate/EuFlagIcon.js +1 -1
- package/cjs/components/RegistrationPlate/index.js +14 -14
- package/cjs/components/Select/components/test-icon.js +1 -1
- package/cjs/components/Select/index.js +16 -16
- package/cjs/components/Snackbar/index.js +22 -22
- package/cjs/components/Spacer/index.js +7 -7
- package/cjs/components/Spinner/index.js +10 -10
- package/cjs/components/SpinnerThin/index.js +16 -16
- package/cjs/components/Stack/index.js +1 -1
- package/cjs/components/Stamp/index.js +1 -1
- package/cjs/components/Stepper/index.js +32 -32
- package/cjs/components/StepperAccordion/index.js +23 -23
- package/cjs/components/Table/index.js +11 -11
- package/cjs/components/Tabs/Tab.js +5 -5
- package/cjs/components/Tabs/Tabs.js +11 -11
- package/cjs/components/TextArea/index.js +33 -33
- package/cjs/components/Textfield/index.js +32 -32
- package/cjs/components/TimePicker/index.js +2 -2
- package/cjs/components/TimePicker/testHelper.js +1 -1
- package/cjs/components/Toggle/index.js +12 -12
- package/cjs/components/ToggleArrow/index.js +3 -3
- package/cjs/components/ValuationRange/index.js +17 -17
- package/cjs/hooks/useDynamicScript.js +1 -1
- package/cjs/icons/components/AddIcon.js +1 -1
- package/cjs/icons/components/AlertIcon.js +1 -1
- package/cjs/icons/components/ArrowDownIcon.js +1 -1
- package/cjs/icons/components/ArrowLeftIcon.js +1 -1
- package/cjs/icons/components/ArrowRightIcon.js +1 -1
- package/cjs/icons/components/ArrowUpIcon.js +1 -1
- package/cjs/icons/components/AtvIcon.js +1 -1
- package/cjs/icons/components/AuctionIcon.js +1 -1
- package/cjs/icons/components/BackIcon.js +1 -1
- package/cjs/icons/components/BankidIcon.js +1 -1
- package/cjs/icons/components/BidIcon.js +1 -1
- package/cjs/icons/components/BodyIcon.js +1 -1
- package/cjs/icons/components/BreaksIcon.js +1 -1
- package/cjs/icons/components/CabIcon.js +1 -1
- package/cjs/icons/components/CalendarIcon.js +1 -1
- package/cjs/icons/components/CameraIcon.js +1 -1
- package/cjs/icons/components/CamperIcon.js +1 -1
- package/cjs/icons/components/CancelCircleIcon.js +1 -1
- package/cjs/icons/components/CancelIcon.js +1 -1
- package/cjs/icons/components/CarIcon.js +1 -1
- package/cjs/icons/components/CarServiceIcon.js +1 -1
- package/cjs/icons/components/CaravanIcon.js +1 -1
- package/cjs/icons/components/CertifiedIcon.js +1 -1
- package/cjs/icons/components/ChatIcon.js +1 -1
- package/cjs/icons/components/CheckCircleIcon.js +1 -1
- package/cjs/icons/components/CheckFilledIcon.js +1 -1
- package/cjs/icons/components/CheckIcon.js +1 -1
- package/cjs/icons/components/CheckmarkIcon.js +1 -1
- package/cjs/icons/components/ClockIcon.js +1 -1
- package/cjs/icons/components/CloseIcon.js +1 -1
- package/cjs/icons/components/CommentFilledIcon.js +1 -1
- package/cjs/icons/components/CommentIcon.js +1 -1
- package/cjs/icons/components/ConditioningIcon.js +1 -1
- package/cjs/icons/components/ContactIcon.js +1 -1
- package/cjs/icons/components/ControlNumberIcon.js +1 -1
- package/cjs/icons/components/CopyIcon.js +1 -1
- package/cjs/icons/components/CountdownIcon.js +1 -1
- package/cjs/icons/components/CoupeIcon.js +1 -1
- package/cjs/icons/components/CraneIcon.js +1 -1
- package/cjs/icons/components/CupIcon.js +1 -1
- package/cjs/icons/components/DeleteIcon.js +1 -1
- package/cjs/icons/components/DisplayIcon.js +1 -1
- package/cjs/icons/components/DocumentIcon.js +1 -1
- package/cjs/icons/components/DownloadIcon.js +1 -1
- package/cjs/icons/components/EcoIcon.js +1 -1
- package/cjs/icons/components/EditIcon.js +1 -1
- package/cjs/icons/components/EngineIcon.js +1 -1
- package/cjs/icons/components/ErrorFilledIcon.js +1 -1
- package/cjs/icons/components/ErrorIcon.js +1 -1
- package/cjs/icons/components/EstoniaFlagIcon.js +1 -1
- package/cjs/icons/components/ExportIcon.js +1 -1
- package/cjs/icons/components/FacebookIcon.js +1 -1
- package/cjs/icons/components/FacilityIcon.js +1 -1
- package/cjs/icons/components/FavouriteFilledIcon.js +1 -1
- package/cjs/icons/components/FavouriteIcon.js +1 -1
- package/cjs/icons/components/FigmaIcon.js +1 -1
- package/cjs/icons/components/FilterIcon.js +1 -1
- package/cjs/icons/components/FinanceIcon.js +1 -1
- package/cjs/icons/components/FinlandFlagIcon.js +1 -1
- package/cjs/icons/components/FirstIcon.js +1 -1
- package/cjs/icons/components/FixedPriceIcon.js +1 -1
- package/cjs/icons/components/FuelIcon.js +1 -1
- package/cjs/icons/components/GearboxIcon.js +1 -1
- package/cjs/icons/components/GetPaidIcon.js +1 -1
- package/cjs/icons/components/GridViewIcon.js +1 -1
- package/cjs/icons/components/HatchbackIcon.js +1 -1
- package/cjs/icons/components/HelpIcon.js +1 -1
- package/cjs/icons/components/HistoryIcon.js +1 -1
- package/cjs/icons/components/HomeDeliveryIcon.js +1 -1
- package/cjs/icons/components/IdIcon.js +1 -1
- package/cjs/icons/components/ImageIcon.js +1 -1
- package/cjs/icons/components/InfoIcon.js +1 -1
- package/cjs/icons/components/InstagramIcon.js +1 -1
- package/cjs/icons/components/InsuranceIcon.js +1 -1
- package/cjs/icons/components/InteriorIcon.js +1 -1
- package/cjs/icons/components/KvdIcon.js +1 -1
- package/cjs/icons/components/KvdTestIcon.js +1 -1
- package/cjs/icons/components/KvdproIcon.js +1 -1
- package/cjs/icons/components/LastIcon.js +1 -1
- package/cjs/icons/components/LeaderIcon.js +1 -1
- package/cjs/icons/components/LinkedinIcon.js +1 -1
- package/cjs/icons/components/ListViewIcon.js +1 -1
- package/cjs/icons/components/LocationIcon.js +1 -1
- package/cjs/icons/components/MailIcon.js +1 -1
- package/cjs/icons/components/MenuIcon.js +1 -1
- package/cjs/icons/components/MileageIcon.js +1 -1
- package/cjs/icons/components/MinivanIcon.js +1 -1
- package/cjs/icons/components/ModelYearIcon.js +1 -1
- package/cjs/icons/components/MoreIcon.js +1 -1
- package/cjs/icons/components/MotorbikeIcon.js +1 -1
- package/cjs/icons/components/NavigationIcon.js +1 -1
- package/cjs/icons/components/NewIcon.js +1 -1
- package/cjs/icons/components/NextFilledIcon.js +1 -1
- package/cjs/icons/components/NextIcon.js +1 -1
- package/cjs/icons/components/NotificationIcon.js +1 -1
- package/cjs/icons/components/OpenInNewIcon.js +1 -1
- package/cjs/icons/components/PayementIcon.js +1 -1
- package/cjs/icons/components/PercentIcon.js +1 -1
- package/cjs/icons/components/PhoneIcon.js +1 -1
- package/cjs/icons/components/PickUpIcon.js +1 -1
- package/cjs/icons/components/Pickup.js +1 -1
- package/cjs/icons/components/PlayIcon.js +1 -1
- package/cjs/icons/components/PolandFlagIcon.js +1 -1
- package/cjs/icons/components/PreviousFilledIcon.js +1 -1
- package/cjs/icons/components/PreviousIcon.js +1 -1
- package/cjs/icons/components/PrintIcon.js +1 -1
- package/cjs/icons/components/QuoteIcon.js +1 -1
- package/cjs/icons/components/RatingIcon.js +1 -1
- package/cjs/icons/components/ReleasingIcon.js +1 -1
- package/cjs/icons/components/ReorderIcon.js +1 -1
- package/cjs/icons/components/RestartIcon.js +1 -1
- package/cjs/icons/components/SalesOfferIcon.js +1 -1
- package/cjs/icons/components/SavedSearchIcon.js +1 -1
- package/cjs/icons/components/ScheduleIcon.js +1 -1
- package/cjs/icons/components/SearchIcon.js +1 -1
- package/cjs/icons/components/SedanIcon.js +1 -1
- package/cjs/icons/components/SellFilledIcon.js +1 -1
- package/cjs/icons/components/SellIcon.js +1 -1
- package/cjs/icons/components/SettingsIcon.js +1 -1
- package/cjs/icons/components/ShareIcon.js +1 -1
- package/cjs/icons/components/ShowLessIcon.js +1 -1
- package/cjs/icons/components/ShowMoreIcon.js +1 -1
- package/cjs/icons/components/SignInIcon.js +1 -1
- package/cjs/icons/components/SignOutIcon.js +1 -1
- package/cjs/icons/components/SlackIcon.js +1 -1
- package/cjs/icons/components/SmartphoneIcon.js +1 -1
- package/cjs/icons/components/SmileIcon.js +1 -1
- package/cjs/icons/components/SnowmobileIcon.js +1 -1
- package/cjs/icons/components/SortColumnIcon.js +1 -1
- package/cjs/icons/components/SortIcon.js +1 -1
- package/cjs/icons/components/StorageIcon.js +1 -1
- package/cjs/icons/components/StoreIcon.js +1 -1
- package/cjs/icons/components/SuvIcon.js +1 -1
- package/cjs/icons/components/SwedishFlagIcon.js +1 -1
- package/cjs/icons/components/ThreeSixtyIcon.js +1 -1
- package/cjs/icons/components/TractorIcon.js +1 -1
- package/cjs/icons/components/TrailerIcon.js +1 -1
- package/cjs/icons/components/TransportIcon.js +1 -1
- package/cjs/icons/components/TruckIcon.js +1 -1
- package/cjs/icons/components/TwitterIcon.js +1 -1
- package/cjs/icons/components/TyresIcon.js +1 -1
- package/cjs/icons/components/UnitedKingdomFlagIcon.js +1 -1
- package/cjs/icons/components/UploadIcon.js +1 -1
- package/cjs/icons/components/UserIcon.js +1 -1
- package/cjs/icons/components/ValuationIcon.js +1 -1
- package/cjs/icons/components/VanIcon.js +1 -1
- package/cjs/icons/components/VersionIcon.js +1 -1
- package/cjs/icons/components/ViewsIcon.js +1 -1
- package/cjs/icons/components/WagonIcon.js +1 -1
- package/cjs/icons/components/WarningIcon.js +1 -1
- package/cjs/icons/components/WarrantyIcon.js +1 -1
- package/cjs/icons/components/YoutubeIcon.js +1 -1
- package/cjs/icons/components/index.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/shared/helpers.js +1 -1
- package/cjs/shared/media-queries.js +1 -1
- package/cjs/typography/BodyText/index.js +39 -39
- package/cjs/typography/ButtonText/index.js +20 -20
- package/cjs/typography/Heading/index.js +47 -47
- package/cjs/utils/utils.js +2 -2
- package/esm/ColorCard.js +10 -10
- package/esm/ElevationCard.js +5 -5
- package/esm/components/Accordion/index.js +4 -4
- package/esm/components/Badge/index.js +6 -6
- package/esm/components/Breadcrumbs/BreadcrumbsItem.js +6 -6
- package/esm/components/Breadcrumbs/index.js +2 -2
- package/esm/components/Button/index.js +19 -19
- package/esm/components/Button/styles.js +8 -8
- package/esm/components/Card/index.js +9 -9
- package/esm/components/CheckBox/index.js +18 -18
- package/esm/components/Chip/index.js +14 -14
- package/esm/components/Chip/styles.js +1 -1
- package/esm/components/DayPicker/DayPickerNavBar.js +8 -8
- package/esm/components/DayPicker/index.js +2 -2
- package/esm/components/DayPicker/localeUtils.js +1 -1
- package/esm/components/Dialog/index.js +3 -3
- package/esm/components/EditRow/index.js +12 -12
- package/esm/components/ErrorMessage/index.js +6 -6
- package/esm/components/FieldLabel.js +20 -20
- package/esm/components/Flex/index.js +11 -11
- package/esm/components/Hero/index.js +17 -17
- package/esm/components/Icon/index.js +7 -7
- package/esm/components/IconButton.js +10 -10
- package/esm/components/Icons/Arrow.js +1 -1
- package/esm/components/Icons/CheckCircle.js +1 -1
- package/esm/components/Icons/Close.js +1 -1
- package/esm/components/Icons/ErrorCircle.js +1 -1
- package/esm/components/Icons/InfoCircle.js +1 -1
- package/esm/components/ListItem/index.js +5 -5
- package/esm/components/Logo/index.js +2 -2
- package/esm/components/MenuItem/index.js +8 -8
- package/esm/components/Message/index.js +11 -11
- package/esm/components/Modal/index.js +4 -4
- package/esm/components/NotificationButton/index.js +3 -3
- package/esm/components/OffCanvas/Overlay.js +2 -2
- package/esm/components/OffCanvas/index.js +6 -6
- package/esm/components/OffCanvas/useClickOutside.js +1 -1
- package/esm/components/RadioButton/index.js +21 -21
- package/esm/components/RegistrationPlate/index.js +13 -13
- package/esm/components/Select/index.js +6 -6
- package/esm/components/Snackbar/index.js +13 -13
- package/esm/components/Spacer/index.js +5 -5
- package/esm/components/Spinner/index.js +9 -9
- package/esm/components/SpinnerThin/index.js +7 -7
- package/esm/components/Stack/index.js +1 -1
- package/esm/components/Stamp/index.js +1 -1
- package/esm/components/Stepper/index.js +23 -23
- package/esm/components/StepperAccordion/index.js +18 -18
- package/esm/components/Table/index.js +5 -5
- package/esm/components/Tabs/Tab.js +5 -5
- package/esm/components/Tabs/Tabs.js +11 -11
- package/esm/components/Tabs/index.js +1 -1
- package/esm/components/TextArea/index.js +26 -26
- package/esm/components/Textfield/index.js +16 -16
- package/esm/components/TimePicker/index.js +2 -2
- package/esm/components/TimePicker/testHelper.js +1 -1
- package/esm/components/Toggle/index.js +4 -4
- package/esm/components/ToggleArrow/index.js +2 -2
- package/esm/components/ValuationRange/index.js +15 -15
- package/esm/hooks/useDynamicScript.js +1 -1
- package/esm/icons/components/AddIcon.js +1 -1
- package/esm/icons/components/AlertIcon.js +1 -1
- package/esm/icons/components/ArrowDownIcon.js +1 -1
- package/esm/icons/components/ArrowLeftIcon.js +1 -1
- package/esm/icons/components/ArrowRightIcon.js +1 -1
- package/esm/icons/components/ArrowUpIcon.js +1 -1
- package/esm/icons/components/AtvIcon.js +1 -1
- package/esm/icons/components/AuctionIcon.js +1 -1
- package/esm/icons/components/BackIcon.js +1 -1
- package/esm/icons/components/BankidIcon.js +1 -1
- package/esm/icons/components/BidIcon.js +1 -1
- package/esm/icons/components/BreaksIcon.js +1 -1
- package/esm/icons/components/CabIcon.js +1 -1
- package/esm/icons/components/CalendarIcon.js +1 -1
- package/esm/icons/components/CameraIcon.js +1 -1
- package/esm/icons/components/CamperIcon.js +1 -1
- package/esm/icons/components/CancelCircleIcon.js +1 -1
- package/esm/icons/components/CancelIcon.js +1 -1
- package/esm/icons/components/CarIcon.js +1 -1
- package/esm/icons/components/CarServiceIcon.js +1 -1
- package/esm/icons/components/CaravanIcon.js +1 -1
- package/esm/icons/components/CertifiedIcon.js +1 -1
- package/esm/icons/components/ChatIcon.js +1 -1
- package/esm/icons/components/CheckCircleIcon.js +1 -1
- package/esm/icons/components/CheckFilledIcon.js +1 -1
- package/esm/icons/components/CheckIcon.js +1 -1
- package/esm/icons/components/CheckmarkIcon.js +1 -1
- package/esm/icons/components/CloseIcon.js +1 -1
- package/esm/icons/components/CommentFilledIcon.js +1 -1
- package/esm/icons/components/CommentIcon.js +1 -1
- package/esm/icons/components/ConditioningIcon.js +1 -1
- package/esm/icons/components/ContactIcon.js +1 -1
- package/esm/icons/components/ControlNumberIcon.js +1 -1
- package/esm/icons/components/CoupeIcon.js +1 -1
- package/esm/icons/components/CraneIcon.js +1 -1
- package/esm/icons/components/CupIcon.js +1 -1
- package/esm/icons/components/DeleteIcon.js +1 -1
- package/esm/icons/components/DisplayIcon.js +1 -1
- package/esm/icons/components/DocumentIcon.js +1 -1
- package/esm/icons/components/DownloadIcon.js +1 -1
- package/esm/icons/components/EcoIcon.js +1 -1
- package/esm/icons/components/EditIcon.js +1 -1
- package/esm/icons/components/EngineIcon.js +1 -1
- package/esm/icons/components/ErrorFilledIcon.js +1 -1
- package/esm/icons/components/ErrorIcon.js +1 -1
- package/esm/icons/components/EstoniaFlagIcon.js +1 -1
- package/esm/icons/components/FacebookIcon.js +1 -1
- package/esm/icons/components/FavouriteFilledIcon.js +1 -1
- package/esm/icons/components/FavouriteIcon.js +1 -1
- package/esm/icons/components/FigmaIcon.js +1 -1
- package/esm/icons/components/FilterIcon.js +1 -1
- package/esm/icons/components/FinanceIcon.js +1 -1
- package/esm/icons/components/FinlandFlagIcon.js +1 -1
- package/esm/icons/components/FirstIcon.js +1 -1
- package/esm/icons/components/FixedPriceIcon.js +1 -1
- package/esm/icons/components/FuelIcon.js +1 -1
- package/esm/icons/components/GearboxIcon.js +1 -1
- package/esm/icons/components/GetPaidIcon.js +1 -1
- package/esm/icons/components/GridViewIcon.js +1 -1
- package/esm/icons/components/HatchbackIcon.js +1 -1
- package/esm/icons/components/HelpIcon.js +1 -1
- package/esm/icons/components/HistoryIcon.js +1 -1
- package/esm/icons/components/HomeDeliveryIcon.js +1 -1
- package/esm/icons/components/IdIcon.js +1 -1
- package/esm/icons/components/ImageIcon.js +1 -1
- package/esm/icons/components/InfoIcon.js +1 -1
- package/esm/icons/components/InsuranceIcon.js +1 -1
- package/esm/icons/components/InteriorIcon.js +1 -1
- package/esm/icons/components/KvdIcon.js +1 -1
- package/esm/icons/components/KvdTestIcon.js +1 -1
- package/esm/icons/components/KvdproIcon.js +1 -1
- package/esm/icons/components/LastIcon.js +1 -1
- package/esm/icons/components/LeaderIcon.js +1 -1
- package/esm/icons/components/LinkedinIcon.js +1 -1
- package/esm/icons/components/ListViewIcon.js +1 -1
- package/esm/icons/components/LocationIcon.js +1 -1
- package/esm/icons/components/MailIcon.js +1 -1
- package/esm/icons/components/MenuIcon.js +1 -1
- package/esm/icons/components/MileageIcon.js +1 -1
- package/esm/icons/components/MinivanIcon.js +1 -1
- package/esm/icons/components/ModelYearIcon.js +1 -1
- package/esm/icons/components/MoreIcon.js +1 -1
- package/esm/icons/components/MotorbikeIcon.js +1 -1
- package/esm/icons/components/NavigationIcon.js +1 -1
- package/esm/icons/components/NewIcon.js +1 -1
- package/esm/icons/components/NextFilledIcon.js +1 -1
- package/esm/icons/components/NotificationIcon.js +1 -1
- package/esm/icons/components/OpenInNewIcon.js +1 -1
- package/esm/icons/components/PayementIcon.js +1 -1
- package/esm/icons/components/PhoneIcon.js +1 -1
- package/esm/icons/components/PickUpIcon.js +1 -1
- package/esm/icons/components/Pickup.js +1 -1
- package/esm/icons/components/PlayIcon.js +1 -1
- package/esm/icons/components/PolandFlagIcon.js +1 -1
- package/esm/icons/components/PreviousFilledIcon.js +1 -1
- package/esm/icons/components/PreviousIcon.js +1 -1
- package/esm/icons/components/QuoteIcon.js +1 -1
- package/esm/icons/components/RatingIcon.js +1 -1
- package/esm/icons/components/ReleasingIcon.js +1 -1
- package/esm/icons/components/ReorderIcon.js +1 -1
- package/esm/icons/components/RestartIcon.js +1 -1
- package/esm/icons/components/SalesOfferIcon.js +1 -1
- package/esm/icons/components/SavedSearchIcon.js +1 -1
- package/esm/icons/components/SearchIcon.js +1 -1
- package/esm/icons/components/SedanIcon.js +1 -1
- package/esm/icons/components/SellFilledIcon.js +1 -1
- package/esm/icons/components/SellIcon.js +1 -1
- package/esm/icons/components/SettingsIcon.js +1 -1
- package/esm/icons/components/ShareIcon.js +1 -1
- package/esm/icons/components/ShowLessIcon.js +1 -1
- package/esm/icons/components/ShowMoreIcon.js +1 -1
- package/esm/icons/components/SignInIcon.js +1 -1
- package/esm/icons/components/SignOutIcon.js +1 -1
- package/esm/icons/components/SlackIcon.js +1 -1
- package/esm/icons/components/SmartphoneIcon.js +1 -1
- package/esm/icons/components/SmileIcon.js +1 -1
- package/esm/icons/components/SnowmobileIcon.js +1 -1
- package/esm/icons/components/SortColumnIcon.js +1 -1
- package/esm/icons/components/SortIcon.js +1 -1
- package/esm/icons/components/StorageIcon.js +1 -1
- package/esm/icons/components/StoreIcon.js +1 -1
- package/esm/icons/components/SuvIcon.js +1 -1
- package/esm/icons/components/SwedishFlagIcon.js +1 -1
- package/esm/icons/components/ThreeSixtyIcon.js +1 -1
- package/esm/icons/components/TrailerIcon.js +1 -1
- package/esm/icons/components/TransportIcon.js +1 -1
- package/esm/icons/components/TruckIcon.js +1 -1
- package/esm/icons/components/TwitterIcon.js +1 -1
- package/esm/icons/components/TyresIcon.js +1 -1
- package/esm/icons/components/UnitedKingdomFlagIcon.js +1 -1
- package/esm/icons/components/UploadIcon.js +1 -1
- package/esm/icons/components/UserIcon.js +1 -1
- package/esm/icons/components/ValuationIcon.js +1 -1
- package/esm/icons/components/VanIcon.js +1 -1
- package/esm/icons/components/VersionIcon.js +1 -1
- package/esm/icons/components/ViewsIcon.js +1 -1
- package/esm/icons/components/WagonIcon.js +1 -1
- package/esm/icons/components/WarningIcon.js +1 -1
- package/esm/icons/components/WarrantyIcon.js +1 -1
- package/esm/icons/components/index.js +1 -1
- package/esm/index.js +1 -1
- package/esm/shared/helpers.js +1 -1
- package/esm/shared/media-queries.js +1 -1
- package/esm/typography/BodyText/index.js +35 -35
- package/esm/typography/ButtonText/index.js +13 -13
- package/esm/typography/Heading/index.js +27 -27
- package/esm/utils/utils.js +2 -2
- package/package.json +34 -13
- package/types/testUtils.d.ts +1 -1
package/cjs/ColorCard.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("react"),f=require("styled-components"),s=require("./utils/utils.js"),d=require("./theme.js");function n(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var l=n(o),a=n(f);const c=a.default.ul`
|
|
2
2
|
padding-left: 2rem;
|
|
3
|
-
`,
|
|
3
|
+
`,m=a.default.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 ${d.default.colors.gray.light2};
|
|
7
7
|
border-radius: 4px;
|
|
8
8
|
font-family: 'Ralway', sans-serif;
|
|
9
9
|
margin-top: 0.75rem;
|
|
10
|
-
`,
|
|
10
|
+
`,u=a.default.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 ${d.default.colors.gray.light2};
|
|
15
|
+
`,p=a.default.li`
|
|
16
16
|
display: block;
|
|
17
|
-
background: ${({hex:
|
|
18
|
-
color: ${({hex:
|
|
17
|
+
background: ${({hex:e})=>e};
|
|
18
|
+
color: ${({hex:e})=>s.getLuminosity(e)<40?"#fff":"#000"};
|
|
19
19
|
padding: 1em;
|
|
20
|
-
`,
|
|
20
|
+
`,g=a.default.ul`
|
|
21
21
|
margin: 0;
|
|
22
22
|
padding: 0;
|
|
23
23
|
display: flex;
|
|
24
24
|
flex-direction: column;
|
|
25
|
-
`,
|
|
25
|
+
`,i=e=>Object.entries(e).map(([r,t])=>typeof t=="string"?l.default.createElement(p,{hex:t,key:t},r," (",t,")"):l.default.createElement(l.default.Fragment,null,l.default.createElement(u,null,r),l.default.createElement(c,null,i(t))));exports.default=({colorName:e,variants:r})=>l.default.createElement(m,null,l.default.createElement(u,null,e),l.default.createElement(g,null,i(r)));
|
package/cjs/ElevationCard.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
2
|
-
font-family: ${({theme:
|
|
3
|
-
font-weight: ${({theme:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("react"),n=require("styled-components");function t(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var o=t(i);const l=t(n).default.div`
|
|
2
|
+
font-family: ${({theme:e})=>e.typography.fontAlternativeFamily};
|
|
3
|
+
font-weight: ${({theme:e})=>e.typography.fontAlternativeRegularWeight};
|
|
4
4
|
font-size: 1.25rem;
|
|
5
|
-
box-shadow: ${({elevation:
|
|
5
|
+
box-shadow: ${({elevation:e})=>e};
|
|
6
6
|
width: 14rem;
|
|
7
7
|
height: 10rem;
|
|
8
8
|
margin: 1rem;
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
12
12
|
justify-content: center;
|
|
13
|
-
`;exports.ElevationCard=({children:
|
|
13
|
+
`;exports.ElevationCard=({children:e,value:r,as:a="div"})=>o.default.createElement(l,{as:a,elevation:r},e);
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("react"),y=require("styled-components"),g=require("react-collapse"),h=require("../../shared/media-queries.js"),$=require("../../icons/components/ArrowDownIcon.js");function s(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var n=s(i),o=s(y);const x=o.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
.ReactCollapse--collapse {
|
|
5
5
|
transition: height 300ms;
|
|
6
6
|
}
|
|
7
|
-
`,
|
|
7
|
+
`,b=o.default.ul`
|
|
8
8
|
margin: 0;
|
|
9
9
|
padding: 0;
|
|
10
10
|
list-style: none;
|
|
11
|
-
`,
|
|
11
|
+
`,E=o.default.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=o.default.div`
|
|
18
18
|
display: flex;
|
|
19
19
|
justify-content: center;
|
|
20
20
|
align-items: center;
|
|
21
21
|
font-size: 0.75rem;
|
|
22
|
-
color: ${({theme:
|
|
22
|
+
color: ${({theme:e})=>e.colors.text.dark};
|
|
23
23
|
transition: 200ms ease-in-out;
|
|
24
|
-
transform: ${({isOpen:
|
|
25
|
-
`,
|
|
26
|
-
border-top: ${({theme:
|
|
27
|
-
padding: ${({isOpen:
|
|
24
|
+
transform: ${({isOpen:e})=>`rotate(${e?"180deg":"0deg"})`};
|
|
25
|
+
`,k=o.default.li`
|
|
26
|
+
border-top: ${({theme:e})=>`1px solid ${e.colors.gray.light2}`};
|
|
27
|
+
padding: ${({isOpen:e})=>e?"0.5rem 0 1rem 0":"0.5rem 0"};
|
|
28
28
|
|
|
29
29
|
&:last-child {
|
|
30
|
-
border-bottom: ${({theme:
|
|
30
|
+
border-bottom: ${({theme:e})=>`1px solid ${e.colors.gray.light2}`};
|
|
31
31
|
}
|
|
32
|
-
`,
|
|
33
|
-
color: ${({theme:
|
|
34
|
-
font-family: ${({theme:
|
|
32
|
+
`,q=o.default.span`
|
|
33
|
+
color: ${({theme:e})=>e.colors.text.dark};
|
|
34
|
+
font-family: ${({theme:e})=>e.typography.fontBaseFamily};
|
|
35
35
|
font-size: 0.9375rem;
|
|
36
|
-
font-weight: ${({theme:
|
|
37
|
-
`,
|
|
38
|
-
font-family: ${({theme:
|
|
39
|
-
color: ${({theme:
|
|
36
|
+
font-weight: ${({theme:e})=>e.typography.fontBaseBoldWeight};
|
|
37
|
+
`,v=o.default.div`
|
|
38
|
+
font-family: ${({theme:e})=>e.typography.fontBaseFamily};
|
|
39
|
+
color: ${({theme:e})=>e.colors.text.dark};
|
|
40
40
|
font-size: 0.9375rem;
|
|
41
|
-
font-weight: ${({theme:
|
|
41
|
+
font-weight: ${({theme:e})=>e.typography.fontBaseRegularWeight};
|
|
42
42
|
line-height: 1.3;
|
|
43
43
|
transition: 200ms ease-in-out;
|
|
44
|
-
${
|
|
44
|
+
${h.mq("tablet")} {
|
|
45
45
|
padding: 0;
|
|
46
46
|
}
|
|
47
47
|
& > * {
|
|
48
48
|
margin-top: 0;
|
|
49
49
|
margin-bottom: 0;
|
|
50
50
|
}
|
|
51
|
-
`,
|
|
51
|
+
`,d=({items:e,...c})=>{const[m,u]=i.useState({}),l=a=>{u(t=>({...t,[a]:!t[a]}))},f=a=>()=>{l(a)},p=a=>t=>{t.key==="Enter"&&l(a)};return n.default.createElement(x,{...c},n.default.createElement(b,{className:"accordionList"},e.map((a,t)=>{const r=Boolean(m[t]);return n.default.createElement(k,{key:a.title,isOpen:r,className:"accordionItem"},n.default.createElement(E,{onClick:f(t),onKeyPress:p(t),className:"accordionItemTitle",role:"button",tabIndex:0,"aria-expanded":r,id:`panel${t}-header`,"aria-controls":`panel${t}-content`},n.default.createElement(q,{as:"span"},a.title),n.default.createElement(w,{isOpen:r},n.default.createElement($.default,null))),n.default.createElement(g.UnmountClosed,{isOpened:r,key:t},n.default.createElement(v,{"aria-labelledby":`panel${t}-header`,id:`panel${t}-content`,role:"region",className:"wysiwyg",dangerouslySetInnerHTML:{__html:a.text}})))})))};exports.Accordion=d,exports.default=d;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("react"),m=require("styled-components"),o=require("../../theme.js");function l(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var t=l(s),r=l(m);const d=r.default.div`
|
|
2
2
|
border-radius: 0.75rem;
|
|
3
|
-
background: ${
|
|
3
|
+
background: ${o.default.colors.secondary.main};
|
|
4
4
|
display: inline-flex;
|
|
5
5
|
align-items: center;
|
|
6
6
|
justify-content: center;
|
|
@@ -9,27 +9,27 @@
|
|
|
9
9
|
height: 1.5rem;
|
|
10
10
|
box-sizing: border-box;
|
|
11
11
|
cursor: default;
|
|
12
|
-
`,
|
|
12
|
+
`,c=r.default(d)`
|
|
13
13
|
width: 1rem;
|
|
14
14
|
height: 1rem;
|
|
15
15
|
border-radius: 50%;
|
|
16
16
|
min-width: 1rem;
|
|
17
17
|
position: relative;
|
|
18
|
-
`,
|
|
18
|
+
`,h=r.default.div`
|
|
19
19
|
display: block;
|
|
20
20
|
width: 100%;
|
|
21
21
|
height: 100%;
|
|
22
22
|
border-radius: 50%;
|
|
23
23
|
opacity: 0.1;
|
|
24
24
|
transform: scale(0.5);
|
|
25
|
-
background: ${
|
|
25
|
+
background: ${o.default.colors.text.dark};
|
|
26
26
|
position: absolute;
|
|
27
27
|
top: 0;
|
|
28
28
|
left: 0;
|
|
29
|
-
`,
|
|
29
|
+
`,p=r.default.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:e})=>e.typography.fontAlternativeBoldWeight};
|
|
34
|
+
font-family: ${({theme:e})=>e.typography.fontAlternativeFamily};
|
|
35
|
+
`,u=({notificationAmount:e=0,withNumber:i=!0,...a})=>{if((e<=0||!e)&&i)return null;if(!i)return t.default.createElement(c,{...a},t.default.createElement(h,{"data-test":"middle-dot"}));const f=(n=>n>=100?"99+":`${n}`)(e);return t.default.createElement(d,{...a},t.default.createElement(p,null,f))};exports.Badge=u,exports.default=u;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("react"),d=require("styled-components"),n=require("../../typography/BodyText/index.js");function r(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}require("../../shared/media-queries.js");var t=r(i),l=r(d);const s=l.default.li`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
margin: 0;
|
|
@@ -7,30 +7,30 @@
|
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
|
|
9
9
|
a {
|
|
10
|
-
${
|
|
11
|
-
font-weight: ${({theme:
|
|
12
|
-
color: ${({theme:
|
|
10
|
+
${n.BodyTextStyle}
|
|
11
|
+
font-weight: ${({theme:e})=>e.typography.fontBaseBoldWeight};
|
|
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
|
-
`,
|
|
18
|
-
color: ${({theme:
|
|
17
|
+
`,f=l.default(n.BodyText)`
|
|
18
|
+
color: ${({theme:e})=>e.colors.text.dark};
|
|
19
19
|
overflow: hidden;
|
|
20
20
|
text-overflow: ellipsis;
|
|
21
|
-
`,
|
|
21
|
+
`,u=l.default.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
|
+
`,c=l.default.span`
|
|
29
29
|
display: inline-flex;
|
|
30
30
|
padding: 0 0.5rem;
|
|
31
|
-
color: ${({theme:
|
|
31
|
+
color: ${({theme:e})=>e.colors.gray.light1};
|
|
32
32
|
svg {
|
|
33
33
|
width: 1rem;
|
|
34
34
|
height: 1rem;
|
|
35
35
|
}
|
|
36
|
-
`;exports.default=({link:
|
|
36
|
+
`;exports.default=({link:e,separator:a,isLast:o})=>t.default.createElement(t.default.Fragment,null,t.default.createElement(s,null,e.prefixIcon&&t.default.createElement(u,null,e.prefixIcon),o?t.default.createElement(f,{as:"span"},e.component):t.default.createElement(t.default.Fragment,null,e.component,t.default.createElement(c,null,a))));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var u=require("react"),s=require("styled-components"),i=require("./BreadcrumbsItem.js"),d=require("../../icons/components/NextIcon.js");function a(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}require("../../typography/BodyText/index.js"),require("../../shared/media-queries.js");var t=a(u);const o=a(s).default.ul`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
padding: 0;
|
|
5
5
|
white-space: nowrap;
|
|
6
6
|
overflow: hidden;
|
|
7
|
-
`;exports.default=({links:
|
|
7
|
+
`;exports.default=({links:e,separator:l=t.default.createElement(d.default,null)})=>t.default.createElement(o,null,e.map((n,r)=>t.default.createElement(i.default,{key:r,link:n,separator:l,isLast:r===e.length-1})));
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
2
|
-
${
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var g=require("react"),m=require("styled-components"),y=require("../../theme.js"),q=require("../Spinner/index.js"),x=require("../../typography/ButtonText/index.js"),a=require("./styles.js");function h(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var l=h(g),n=h(m);const B=n.default.button`
|
|
2
|
+
${x.BasicButtonFontStyle}
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
outline: none;
|
|
5
5
|
cursor: pointer;
|
|
6
6
|
user-select: none;
|
|
7
7
|
position: relative;
|
|
8
8
|
border: none;
|
|
9
|
-
min-width: ${({minWidth:
|
|
10
|
-
width: ${({fullWidth:
|
|
9
|
+
min-width: ${({minWidth:e})=>e||"auto"};
|
|
10
|
+
width: ${({fullWidth:e})=>e&&"100%"};
|
|
11
11
|
display: flex;
|
|
12
12
|
align-items: center;
|
|
13
|
-
justify-content: ${({sufixIcon:
|
|
13
|
+
justify-content: ${({sufixIcon:e,prefixIcon:t,isLoading:s})=>s||!e&&!t?"center":"space-between"};
|
|
14
14
|
|
|
15
|
-
${({size:
|
|
16
|
-
${({size:
|
|
17
|
-
${(
|
|
18
|
-
${
|
|
19
|
-
${
|
|
15
|
+
${({size:e="small"})=>a.fontSizes[e]||x.ButtonRegularTextStyle}
|
|
16
|
+
${({size:e})=>m.css`
|
|
17
|
+
${(e==="smaller"||e==="small")&&a.smallerAndSmallSizeStyles()}
|
|
18
|
+
${e==="regular"&&a.regularSizeStyles()}
|
|
19
|
+
${e==="large"&&a.largeSizeStyles()}
|
|
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:
|
|
25
|
-
${
|
|
24
|
+
${({variant:e="solid",color:t="primary",colorShade:s="main",disabled:d,theme:o})=>m.css`
|
|
25
|
+
${d?a.disabledColorStyles(o,e):a.colorStyles[e](o,t,s)}
|
|
26
26
|
`}
|
|
27
27
|
&:focus-visible {
|
|
28
|
-
box-shadow: 0px 0px 0px 1px ${({theme:
|
|
28
|
+
box-shadow: 0px 0px 0px 1px ${({theme:e})=>e.colors.gray.light5};
|
|
29
29
|
}
|
|
30
|
-
`,
|
|
30
|
+
`,I={smaller:"1rem",small:"1rem",regular:"1.5rem",large:"1.5rem"},b={smaller:"0.5rem",small:"0.5rem",regular:"1rem",large:"1rem"},z=n.default.span`
|
|
31
31
|
display: flex;
|
|
32
|
-
margin-right: ${({type:
|
|
33
|
-
margin-left: ${({type:
|
|
34
|
-
font-size: ${({size:
|
|
35
|
-
opacity: ${({isLoading:
|
|
36
|
-
`,
|
|
32
|
+
margin-right: ${({type:e,size:t})=>e==="prefix"?b[t]:0};
|
|
33
|
+
margin-left: ${({type:e,size:t})=>e==="sufix"?b[t]:0};
|
|
34
|
+
font-size: ${({size:e})=>I[e]};
|
|
35
|
+
opacity: ${({isLoading:e})=>e?0:1};
|
|
36
|
+
`,W=n.default(q.default)`
|
|
37
37
|
position: absolute;
|
|
38
|
-
`,
|
|
39
|
-
opacity: ${({isLoading:
|
|
40
|
-
`,
|
|
38
|
+
`,w=n.default.span`
|
|
39
|
+
opacity: ${({isLoading:e})=>e?0:1};
|
|
40
|
+
`,k={smaller:1,small:1,regular:1.5,large:1.5},p=g.forwardRef(({size:e="small",color:t="primary",colorShade:s="main",variant:d="solid",fullWidth:o=!1,isDisabled:S=!1,isLoading:i=!1,children:$,sufixIcon:u,prefixIcon:f,minWidth:v,as:E="button",...L},j)=>{return l.default.createElement(B,{...L,as:E,minWidth:v,color:t,colorShade:s,disabled:S||i,fullWidth:o,theme:y.default,variant:d,size:e,isLoading:i,ref:j,prefixIcon:f,sufixIcon:u},l.default.createElement(l.default.Fragment,null,f&&l.default.createElement(z,{size:e,type:"prefix",isLoading:i},f),(c=i,typeof(r=$)=="string"||typeof r=="number"?l.default.createElement(w,{isLoading:c},r):l.default.isValidElement(r)?l.default.cloneElement(r,{style:{...r.props.style,opacity:c?0:1}}):r),u&&l.default.createElement(z,{size:e,type:"sufix",isLoading:i},u),i&&l.default.createElement(W,{color:y.default.colors.gray.light1,size:k[e]})));var r,c});p.displayName="Button",exports.Button=p,exports.default=p;
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
2
|
-
color: ${
|
|
3
|
-
border: 2px solid ${
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var l=require("../../typography/ButtonText/index.js");require("react"),require("styled-components");const a={smaller:l.ButtonSmallTextStyle,small:l.ButtonRegularTextStyle,regular:l.ButtonRegularTextStyle,large:l.ButtonLargeTextStyle},e=(r,o)=>`
|
|
2
|
+
color: ${r.colors[o].main};
|
|
3
|
+
border: 2px solid ${r.colors[o].main};
|
|
4
4
|
background-color: transparent;
|
|
5
5
|
|
|
6
6
|
:hover {
|
|
7
|
-
border: 2px solid ${
|
|
8
|
-
color: ${
|
|
7
|
+
border: 2px solid ${r.colors[o].dark};
|
|
8
|
+
color: ${r.colors[o].dark};
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
:active {
|
|
12
|
-
border: 2px solid ${
|
|
13
|
-
color: ${
|
|
12
|
+
border: 2px solid ${r.colors[o].light};
|
|
13
|
+
color: ${r.colors[o].light};
|
|
14
14
|
}
|
|
15
|
-
`,
|
|
16
|
-
color: ${
|
|
15
|
+
`,t=(r,o)=>`
|
|
16
|
+
color: ${o!=="neutral"?r.colors[o].main:r.colors.neutral.light};
|
|
17
17
|
background-color: transparent;
|
|
18
18
|
|
|
19
19
|
:hover {
|
|
20
|
-
color: ${
|
|
20
|
+
color: ${r.colors[o].dark};
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
:active {
|
|
24
|
-
color: ${
|
|
24
|
+
color: ${r.colors[o].dark};
|
|
25
25
|
}
|
|
26
|
-
`,n=
|
|
27
|
-
color: ${
|
|
26
|
+
`,n=r=>`
|
|
27
|
+
color: ${r.colors.gray.light1};
|
|
28
28
|
cursor: not-allowed;
|
|
29
|
-
`,
|
|
30
|
-
color: ${
|
|
31
|
-
background-color: ${
|
|
29
|
+
`,i={solid:(r,o,s)=>`
|
|
30
|
+
color: ${r.colors.text.light};
|
|
31
|
+
background-color: ${r.colors[o][s]};
|
|
32
32
|
|
|
33
33
|
:hover {
|
|
34
|
-
border-color: ${
|
|
34
|
+
border-color: ${r.colors[o].dark};
|
|
35
35
|
filter: brightness(0.9)
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
:active {
|
|
39
|
-
border-color: ${
|
|
39
|
+
border-color: ${r.colors[o].light};
|
|
40
40
|
filter: brightness(1.1)
|
|
41
41
|
}
|
|
42
|
-
`,outline:e,flat:
|
|
43
|
-
${n(
|
|
44
|
-
background-color: ${
|
|
45
|
-
${n(
|
|
46
|
-
border: 2px solid ${
|
|
42
|
+
`,outline:e,flat:t};exports.colorStyles=i,exports.disabledColorStyles=(r,o)=>o==="solid"?`
|
|
43
|
+
${n(r)};
|
|
44
|
+
background-color: ${r.colors.gray.light4};`:o==="outline"?`
|
|
45
|
+
${n(r)};
|
|
46
|
+
border: 2px solid ${r.colors.gray.light1};`:n(r),exports.flatColorStyles=t,exports.fontSizes=a,exports.largeSizeStyles=()=>`
|
|
47
47
|
padding: 0.25rem 1.5rem;
|
|
48
48
|
min-height: 3.75rem;
|
|
49
49
|
`,exports.outlineColorStyles=e,exports.regularSizeStyles=()=>`
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
2
|
-
background: ${({topBorder:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var u=require("react"),c=require("styled-components"),s=require("../../theme.js");function a(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var d=a(u),l=a(c);const m=l.default.div``,f=l.default.div`
|
|
2
|
+
background: ${({topBorder:e})=>e};
|
|
3
3
|
height: 0.25rem;
|
|
4
|
-
`,
|
|
5
|
-
background: ${
|
|
4
|
+
`,g=l.default.div`
|
|
5
|
+
background: ${s.default.colors.background.light};
|
|
6
6
|
|
|
7
|
-
${({noFrame:
|
|
7
|
+
${({noFrame:e,topBorder:r,lineBorder:o,theme:t})=>!r&&(!e||o)&&`border-top: 1px solid ${t.colors.gray.light5};`}
|
|
8
8
|
|
|
9
|
-
${({noFrame:
|
|
9
|
+
${({noFrame:e,lineBorder:r,theme:o})=>(!e||r)&&`border-bottom: 1px solid ${o.colors.gray.light5};
|
|
10
10
|
`}
|
|
11
11
|
|
|
12
|
-
${({noFrame:
|
|
13
|
-
border-left: 1px solid ${
|
|
14
|
-
`,
|
|
12
|
+
${({noFrame:e,lineBorder:r,theme:o})=>!e&&!r&&`border-right: 1px solid ${o.colors.gray.light5};
|
|
13
|
+
border-left: 1px solid ${o.colors.gray.light5};`}
|
|
14
|
+
`,i=({children:e,topBorder:r,noFrame:o=!1,lineBorder:t=!1,as:n="div"})=>d.default.createElement(m,{as:n},r&&d.default.createElement(f,{topBorder:r}),d.default.createElement(g,{topBorder:r,noFrame:o,lineBorder:t},e));exports.Card=i,exports.default=i;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var b=require("react"),t=require("styled-components"),x=require("../../icons/components/CheckmarkIcon.js"),f=require("../../shared/helpers.js"),i=require("../../theme.js"),g=require("../../typography/BodyText/index.js"),m=require("../IconButton.js");function n(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}require("../../shared/media-queries.js");var o=n(b),s=n(t);const u={regular:t.css`
|
|
2
2
|
width: 24px;
|
|
3
3
|
height: 24px;
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
width: 15px;
|
|
7
7
|
height: 15px;
|
|
8
8
|
}
|
|
9
|
-
`,large:
|
|
9
|
+
`,large:t.css`
|
|
10
10
|
width: 32px;
|
|
11
11
|
height: 32px;
|
|
12
12
|
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
width: 22px;
|
|
15
15
|
height: 22px;
|
|
16
16
|
}
|
|
17
|
-
`},
|
|
17
|
+
`},y=t.css`
|
|
18
18
|
cursor: default;
|
|
19
|
-
border: 2px solid ${
|
|
20
|
-
`,
|
|
21
|
-
background: ${
|
|
19
|
+
border: 2px solid ${i.default.colors.gray.light2};
|
|
20
|
+
`,k=t.css`
|
|
21
|
+
background: ${i.default.colors.gray.light2};
|
|
22
22
|
z-index: 1;
|
|
23
|
-
|
|
23
|
+
`,$=s.default.div`
|
|
24
24
|
display: flex;
|
|
25
25
|
align-items: flex-start;
|
|
26
26
|
box-sizing: border-box;
|
|
27
|
-
`,
|
|
27
|
+
`,v=s.default.input.attrs({type:"checkbox"})`
|
|
28
28
|
position: absolute;
|
|
29
29
|
appearance: none;
|
|
30
30
|
width: 100%;
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
outline: none;
|
|
35
35
|
cursor: pointer;
|
|
36
36
|
z-index: 1;
|
|
37
|
-
${
|
|
37
|
+
${e=>u[e.boxSize]};
|
|
38
38
|
|
|
39
39
|
:focus-visible {
|
|
40
40
|
transition: background-color 400ms;
|
|
41
|
-
${
|
|
41
|
+
${m.BackgroundStyles}
|
|
42
42
|
}
|
|
43
|
-
`,
|
|
43
|
+
`,z=s.default.span`
|
|
44
44
|
box-sizing: border-box;
|
|
45
45
|
cursor: pointer;
|
|
46
46
|
display: flex;
|
|
@@ -49,16 +49,16 @@
|
|
|
49
49
|
justify-content: center;
|
|
50
50
|
z-index: 0;
|
|
51
51
|
|
|
52
|
-
border: 2px solid ${
|
|
52
|
+
border: 2px solid ${i.default.colors.gray.dark5};
|
|
53
53
|
|
|
54
|
-
${
|
|
54
|
+
${e=>u[e.size]};
|
|
55
55
|
|
|
56
56
|
svg {
|
|
57
57
|
opacity: 0;
|
|
58
|
-
color: ${({theme:
|
|
58
|
+
color: ${({theme:e})=>e.colors.common.white};
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
${
|
|
61
|
+
${e=>e.isChecked&&(r=>t.css`
|
|
62
62
|
svg {
|
|
63
63
|
opacity: 1;
|
|
64
64
|
}
|
|
@@ -66,16 +66,16 @@
|
|
|
66
66
|
:hover {
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
background: ${
|
|
70
|
-
border: 2px solid ${
|
|
71
|
-
`)
|
|
72
|
-
${
|
|
69
|
+
background: ${i.default.colors[r].main};
|
|
70
|
+
border: 2px solid ${i.default.colors[r].main};
|
|
71
|
+
`)(e.color)};
|
|
72
|
+
${e=>e.isDisabled&&y};
|
|
73
73
|
|
|
74
|
-
${
|
|
75
|
-
`,
|
|
74
|
+
${e=>e.isChecked&&e.isDisabled&&k};
|
|
75
|
+
`,j=s.default(g.BodyText)`
|
|
76
76
|
flex: 1;
|
|
77
|
-
cursor: ${({isDisabled:
|
|
77
|
+
cursor: ${({isDisabled:e})=>e?"default":"pointer"};
|
|
78
78
|
user-select: none;
|
|
79
|
-
color: ${({theme:
|
|
79
|
+
color: ${({theme:e,isDisabled:r})=>r?e.colors.text.disabled:e.colors.text.dark};
|
|
80
80
|
margin-left: 0.5rem;
|
|
81
|
-
`,
|
|
81
|
+
`,h=({name:e=f.generateNameHash("check-box"),isDisabled:r=!1,size:a="regular",checked:l=!1,color:d="secondary",label:c,...p})=>o.default.createElement($,null,o.default.createElement(v,{...p,type:"checkbox",checked:l,"data-validate":"checked",name:e,id:e,color:d,disabled:r,isDisabled:r,boxSize:a}),o.default.createElement(z,{size:a,color:d,isChecked:l,isDisabled:r},o.default.createElement(x.default,null)),c&&o.default.createElement(j,{as:"label",htmlFor:e,isDisabled:r},c));exports.CheckBox=h,exports.default=h;
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
2
|
-
font-family: ${({theme:
|
|
3
|
-
font-size: ${({size:
|
|
4
|
-
font-weight: ${({theme:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var h=require("react"),C=require("styled-components"),$=require("../../icons/components/CloseIcon.js"),r=require("./styles.js");function f(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var t=f(h),a=f(C);const k={smaller:"0.25rem 1rem",small:"0.25rem 1rem",regular:"0.25rem 1rem",large:"0.5rem 1rem"},x=a.default.div`
|
|
2
|
+
font-family: ${({theme:e})=>e.typography.fontBaseFamily};
|
|
3
|
+
font-size: ${({size:e})=>r.getFontSize(e)};
|
|
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
|
-
cursor: ${
|
|
8
|
+
cursor: ${r.getCursorType};
|
|
9
9
|
align-items: center;
|
|
10
|
-
background: ${
|
|
11
|
-
color: ${
|
|
10
|
+
background: ${r.getBackgroundColor};
|
|
11
|
+
color: ${r.getColor};
|
|
12
12
|
justify-content: center;
|
|
13
13
|
border-width: 1px;
|
|
14
14
|
border-style: solid;
|
|
15
|
-
border-color: ${
|
|
15
|
+
border-color: ${r.getBorderColor};
|
|
16
16
|
border-radius: 1.293rem;
|
|
17
|
-
padding: ${({size:
|
|
17
|
+
padding: ${({size:e,isDeletable:n})=>n?"0 0.5rem 0 1rem":k[e]};
|
|
18
18
|
transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease;
|
|
19
19
|
|
|
20
|
-
${
|
|
21
|
-
border-color: ${
|
|
22
|
-
background-color: ${
|
|
23
|
-
color: ${
|
|
20
|
+
${e=>!e.isDisabled&&e.isClickable&&` &:hover {
|
|
21
|
+
border-color: ${r.getHoverBorderColor(e)};
|
|
22
|
+
background-color: ${r.getHoverBackgroundColor(e)};
|
|
23
|
+
color: ${r.getHoverColor(e)};
|
|
24
24
|
} &:active {
|
|
25
|
-
background-color: ${
|
|
26
|
-
border-color: ${
|
|
27
|
-
color: ${
|
|
25
|
+
background-color: ${r.getActiveBackgroundColor(e)};
|
|
26
|
+
border-color: ${r.getActiveBorderColor(e)};
|
|
27
|
+
color: ${r.getActiveColor(e)};
|
|
28
28
|
}`}
|
|
29
|
-
`,
|
|
29
|
+
`,B=a.default.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
|
+
`,z=a.default.span`
|
|
36
36
|
margin-right: 0.625rem;
|
|
37
37
|
display: flex;
|
|
38
38
|
align-items: center;
|
|
39
|
-
`,
|
|
39
|
+
`,D=a.default.span`
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
|
-
cursor: ${
|
|
42
|
+
cursor: ${r.getCursorType};
|
|
43
43
|
padding: 0.5rem;
|
|
44
44
|
margin-left: 0.25rem;
|
|
45
45
|
margin-right: -0.25rem;
|
|
@@ -55,16 +55,16 @@
|
|
|
55
55
|
width: 80%;
|
|
56
56
|
border-radius: 50%;
|
|
57
57
|
z-index: -1;
|
|
58
|
-
background-color: ${
|
|
58
|
+
background-color: ${r.getSufixHoverBackgroundColor};
|
|
59
59
|
opacity: 0;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
&:active:before {
|
|
63
|
-
background-color: ${
|
|
63
|
+
background-color: ${r.getActiveBackgroundColor};
|
|
64
64
|
opacity: 1;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
&:hover:before {
|
|
68
68
|
opacity: 1;
|
|
69
69
|
}
|
|
70
|
-
`,
|
|
70
|
+
`,b=({color:e="primary",children:n,component:m="div",isDisabled:i,onClick:c,size:p="regular",prefix:s,onDelete:l,variant:d="solid",...v})=>{const o=Boolean(c&&!i),u=Boolean(l&&!i),y=Boolean(s);return t.default.createElement(x,{...v,role:o?"button":void 0,onClick:o?c:void 0,tabIndex:o?0:void 0,as:o?"button":m,color:e,isDisabled:i,size:p,isClickable:o,isDeletable:u,variant:d,hasPrefix:y},t.default.createElement(B,null,s&&t.default.createElement(z,{className:"prefix"},s),n,l&&t.default.createElement(D,{role:"button",onClick:u?g=>{g.stopPropagation(),l==null||l(g)}:void 0,color:e,variant:d,isClickable:o,isDisabled:i,isDeletable:!0,size:"regular"},t.default.createElement($.default,null))))};exports.Chip=b,exports.default=b;
|