@kvdbil/components 3.3.5-2 → 4.0.0
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/{types/ColorCard.d.ts → ColorCard.d.ts} +0 -0
- package/{types/ElevationCard.d.ts → ElevationCard.d.ts} +0 -0
- package/{types/Interfaces.d.ts → Interfaces.d.ts} +0 -0
- package/{types/Types.d.ts → Types.d.ts} +0 -0
- package/{types/components → components}/Accordion/index.d.ts +0 -0
- package/{types/components → components}/Badge/index.d.ts +0 -0
- package/{types/components → components}/Button/index.d.ts +0 -0
- package/{types/components → components}/Card/index.d.ts +0 -0
- package/{types/components → components}/CheckBox/index.d.ts +0 -0
- package/{types/components → components}/Chip/index.d.ts +0 -0
- package/{types/components → components}/DayPicker/DayPickerNavBar.d.ts +0 -0
- package/{types/components → components}/DayPicker/index.d.ts +0 -0
- package/{types/components → components}/DayPicker/localeUtils.d.ts +0 -0
- package/{types/components → components}/Dialog/index.d.ts +0 -0
- package/{types/components → components}/ErrorMessage/index.d.ts +0 -0
- package/{types/components → components}/FieldLabel.d.ts +1 -1
- package/{types/components → components}/Header/Hamburger.d.ts +0 -0
- package/{types/components → components}/Header/Link.d.ts +0 -0
- package/{types/components → components}/Header/index.d.ts +0 -0
- package/{types/components → components}/Hero/index.d.ts +0 -0
- package/{types/components → components}/Icon/index.d.ts +0 -0
- package/{types/components → components}/IconButton.d.ts +0 -0
- package/{types/components → components}/Icons/Arrow.d.ts +0 -0
- package/{types/components → components}/Icons/CheckCircle.d.ts +0 -0
- package/{types/components → components}/Icons/CheckIcon.d.ts +0 -0
- package/{types/components → components}/Icons/Close.d.ts +0 -0
- package/{types/components → components}/Icons/ErrorCircle.d.ts +0 -0
- package/{types/components → components}/Icons/InfoCircle.d.ts +0 -0
- package/{types/components → components}/InlineStepper/Step.d.ts +0 -0
- package/{types/components → components}/InlineStepper/StepCircle.d.ts +0 -0
- package/{types/components → components}/InlineStepper/index.d.ts +0 -0
- package/{types/components → components}/ListItem/Bacon.d.ts +0 -0
- package/{types/components → components}/ListItem/index.d.ts +0 -0
- package/{types/components → components}/Logo/LogoEn.d.ts +0 -0
- package/{types/components → components}/Logo/LogoSv.d.ts +0 -0
- package/{types/components → components}/Logo/index.d.ts +0 -0
- package/{types/components → components}/MenuItem/index.d.ts +0 -0
- package/{types/components → components}/Modal/index.d.ts +0 -0
- package/{types/components → components}/NotificationButton/index.d.ts +0 -0
- package/{types/components → components}/OffCanvas/Overlay.d.ts +0 -0
- package/{types/components → components}/OffCanvas/index.d.ts +0 -0
- package/{types/components → components}/OffCanvas/useClickOutside.d.ts +0 -0
- package/{types/components → components}/RadioButton/index.d.ts +0 -0
- package/{types/components → components}/Range/index.d.ts +0 -0
- package/{types/components → components}/Select/index.d.ts +9 -8
- package/{types/components → components}/Snackbar/index.d.ts +0 -0
- package/{types/components → components}/Spinner/index.d.ts +0 -0
- package/{types/components → components}/Stepper/index.d.ts +0 -0
- package/{types/components → components}/StepperAccordion/index.d.ts +0 -0
- package/{types/components → components}/Tabs/index.d.ts +0 -0
- package/{types/components → components}/TextArea/index.d.ts +0 -0
- package/{types/components → components}/Textfield/index.d.ts +0 -0
- package/{types/components → components}/TimePicker/index.d.ts +0 -0
- package/{types/components → components}/TimePicker/testHelper.d.ts +0 -0
- package/{types/components → components}/Toggle/index.d.ts +0 -0
- package/{types/icons → icons}/components/AccountCreateIcon.d.ts +0 -0
- package/{types/icons → icons}/components/AccountIcon.d.ts +0 -0
- package/{types/icons → icons}/components/AccountLoginIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ArrowDownIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ArrowLeftIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ArrowLeftSharpIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ArrowLeftSmallIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ArrowLong.d.ts +0 -0
- package/{types/icons → icons}/components/ArrowRestartIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ArrowRightIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ArrowRightSharpIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ArrowUpIcon.d.ts +0 -0
- package/{types/icons → icons}/components/AuctionIcon.d.ts +0 -0
- package/{types/icons → icons}/components/BackArrowIcon.d.ts +0 -0
- package/{types/icons → icons}/components/Baseline360Icon.d.ts +0 -0
- package/{types/icons → icons}/components/BellIcon.d.ts +0 -0
- package/{types/icons → icons}/components/BidIcon.d.ts +0 -0
- package/{types/icons → icons}/components/BidKrIcon.d.ts +0 -0
- package/{types/icons → icons}/components/BreaksIcon.d.ts +0 -0
- package/{types/icons → icons}/components/BuyCarIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CabIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CalendarIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CameraIcon.d.ts +0 -0
- package/{types/icons → icons}/components/Car360Icon.d.ts +0 -0
- package/{types/icons → icons}/components/CarFrontIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CarSearchIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CarSideIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CarTiresIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CaravanIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CardViewIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CarloanIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CertifiedIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ChatIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CheckIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CheckThinIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CheckmarkFilledIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CheckmarkIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ClipboardFilledIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ClipboardIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ClockFilledIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ClockIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CloseIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CloseThinIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CoffeeIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CombiIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CommentCircleFilledIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CommentCircleIconIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CommentIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ContactIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CoupeIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CreditCardIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CrossCircleIcon.d.ts +0 -0
- package/{types/icons → icons}/components/CrownIcon.d.ts +0 -0
- package/{types/icons → icons}/components/DealmakerIcon.d.ts +0 -0
- package/{types/icons → icons}/components/DeliveryIcon.d.ts +0 -0
- package/{types/icons → icons}/components/DetailedSearchIcon.d.ts +0 -0
- package/{types/icons → icons}/components/EcoFriendlyIcon.d.ts +0 -0
- package/{types/icons → icons}/components/EditIcon.d.ts +0 -0
- package/{types/icons → icons}/components/EngineIcon.d.ts +0 -0
- package/{types/icons → icons}/components/EnglandFlagIcon.d.ts +0 -0
- package/{types/icons → icons}/components/EvaluationIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ExaminationMarkFilledIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ExaminationMarkIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ExteriorIcon.d.ts +0 -0
- package/{types/icons → icons}/components/EyeIcon.d.ts +0 -0
- package/{types/icons → icons}/components/FacebookBtnIcon.d.ts +0 -0
- package/{types/icons → icons}/components/FacebookIcon.d.ts +0 -0
- package/{types/icons → icons}/components/FatalIcon.d.ts +0 -0
- package/{types/icons → icons}/components/FavouriteIcon.d.ts +0 -0
- package/{types/icons → icons}/components/FavouriteSolidIcon.d.ts +0 -0
- package/{types/icons → icons}/components/FilterIcon.d.ts +0 -0
- package/{types/icons → icons}/components/FinanceIcon.d.ts +0 -0
- package/{types/icons → icons}/components/FindCarIcon.d.ts +0 -0
- package/{types/icons → icons}/components/FixedMonthlyCostIcon.d.ts +0 -0
- package/{types/icons → icons}/components/FlagIcon.d.ts +0 -0
- package/{types/icons → icons}/components/FlexibilityIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ForumLargeIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ForumSmallIcon.d.ts +0 -0
- package/{types/icons → icons}/components/GavelIcon.d.ts +0 -0
- package/{types/icons → icons}/components/GearboxIcon.d.ts +0 -0
- package/{types/icons → icons}/components/GiftIcon.d.ts +0 -0
- package/{types/icons → icons}/components/GridViewIcon.d.ts +0 -0
- package/{types/icons → icons}/components/GroupIcon.d.ts +0 -0
- package/{types/icons → icons}/components/GuaranteeIcon.d.ts +0 -0
- package/{types/icons → icons}/components/GuaranteeLargeIcon.d.ts +0 -0
- package/{types/icons → icons}/components/GuaranteeSmallIcon.d.ts +0 -0
- package/{types/icons → icons}/components/HalfCombiIcon.d.ts +0 -0
- package/{types/icons → icons}/components/HamburgerIcon.d.ts +0 -0
- package/{types/icons → icons}/components/HandshakeIcon.d.ts +0 -0
- package/{types/icons → icons}/components/HelpingHandIcon.d.ts +0 -0
- package/{types/icons → icons}/components/IdIcon.d.ts +0 -0
- package/{types/icons → icons}/components/InformationIcon.d.ts +0 -0
- package/{types/icons → icons}/components/InstagramIcon.d.ts +0 -0
- package/{types/icons → icons}/components/InsuranceIcon.d.ts +0 -0
- package/{types/icons → icons}/components/InteriorIcon.d.ts +0 -0
- package/{types/icons → icons}/components/InteriorThinIcon.d.ts +0 -0
- package/{types/icons → icons}/components/InternationalIcon.d.ts +0 -0
- package/{types/icons → icons}/components/KvdTestIcon.d.ts +0 -0
- package/{types/icons → icons}/components/KvdVenueIcon.d.ts +0 -0
- package/{types/icons → icons}/components/LifebuoyIcon.d.ts +0 -0
- package/{types/icons → icons}/components/LiftTruckIcon.d.ts +0 -0
- package/{types/icons → icons}/components/LinkedInIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ListViewIcon.d.ts +0 -0
- package/{types/icons → icons}/components/MailIcon.d.ts +0 -0
- package/{types/icons → icons}/components/MinibusIcon.d.ts +0 -0
- package/{types/icons → icons}/components/MinivanIcon.d.ts +0 -0
- package/{types/icons → icons}/components/MobileIcon.d.ts +0 -0
- package/{types/icons → icons}/components/MotorcycleIcon.d.ts +0 -0
- package/{types/icons → icons}/components/MrfLogoIcon.d.ts +0 -0
- package/{types/icons → icons}/components/NotFoundIcon.d.ts +0 -0
- package/{types/icons → icons}/components/OverbidIcon.d.ts +0 -0
- package/{types/icons → icons}/components/PdfIconIcon.d.ts +0 -0
- package/{types/icons → icons}/components/PhoneIcon.d.ts +0 -0
- package/{types/icons → icons}/components/PickUpIcon.d.ts +0 -0
- package/{types/icons → icons}/components/PinIcon.d.ts +0 -0
- package/{types/icons → icons}/components/PlayIcon.d.ts +0 -0
- package/{types/icons → icons}/components/Pricetag.d.ts +0 -0
- package/{types/icons → icons}/components/PricetagFilledKronaIcon.d.ts +0 -0
- package/{types/icons → icons}/components/PrivateCarIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ProfileCircleIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ProfileIcon.d.ts +0 -0
- package/{types/icons → icons}/components/RadioIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ReclamationIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ReleasingIcon.d.ts +0 -0
- package/{types/icons → icons}/components/RemoveFilterIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ReservedPriceIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ResultIcon.d.ts +0 -0
- package/{types/icons → icons}/components/SafePaymentIcon.d.ts +0 -0
- package/{types/icons → icons}/components/SaleTagIcon.d.ts +0 -0
- package/{types/icons → icons}/components/SearchCheckIcon.d.ts +0 -0
- package/{types/icons → icons}/components/SearchIcon.d.ts +0 -0
- package/{types/icons → icons}/components/SedanIcon.d.ts +0 -0
- package/{types/icons → icons}/components/SellCarIcon.d.ts +0 -0
- package/{types/icons → icons}/components/SellCarsIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ServiceIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ShareIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ShieldIcon.d.ts +0 -0
- package/{types/icons → icons}/components/SignInIcon.d.ts +0 -0
- package/{types/icons → icons}/components/SignOutIcon.d.ts +0 -0
- package/{types/icons → icons}/components/SpeedMeterIcon.d.ts +0 -0
- package/{types/icons → icons}/components/StarCircleIcon.d.ts +0 -0
- package/{types/icons → icons}/components/StartIcon.d.ts +0 -0
- package/{types/icons → icons}/components/StoreIcon.d.ts +0 -0
- package/{types/icons → icons}/components/SuvIcon.d.ts +0 -0
- package/{types/icons → icons}/components/SwedenFlag.d.ts +0 -0
- package/{types/icons → icons}/components/TankIcon.d.ts +0 -0
- package/{types/icons → icons}/components/TireIcon.d.ts +0 -0
- package/{types/icons → icons}/components/TransportIcon.d.ts +0 -0
- package/{types/icons → icons}/components/TrashcanIcon.d.ts +0 -0
- package/{types/icons → icons}/components/TrophyIcon.d.ts +0 -0
- package/{types/icons → icons}/components/TruckIcon.d.ts +0 -0
- package/{types/icons → icons}/components/UmbrellaIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ValuationIcon.d.ts +0 -0
- package/{types/icons → icons}/components/ValueIcon.d.ts +0 -0
- package/{types/icons → icons}/components/WarningIcon.d.ts +0 -0
- package/{types/icons → icons}/components/YoutubeIcon.d.ts +0 -0
- package/{types/icons → icons}/components/index.d.ts +0 -0
- package/{types/index.d.ts → index.d.ts} +0 -0
- package/kvdbil-components.css +224 -0
- package/kvdbil-components.js +1486 -0
- package/kvdbil-components.js.map +1 -0
- package/package.json +10 -14
- package/{types/setupTests.d.ts → setupTests.d.ts} +0 -0
- package/{types/shared → shared}/constants.d.ts +0 -0
- package/{types/shared → shared}/helpers.d.ts +0 -0
- package/{types/shared → shared}/media-queries.d.ts +0 -0
- package/{types/testUtils.d.ts → testUtils.d.ts} +0 -0
- package/{types/theme.d.ts → theme.d.ts} +0 -0
- package/{types/typography → typography}/BodyText/index.d.ts +0 -0
- package/{types/typography → typography}/ButtonText/index.d.ts +0 -0
- package/{types/typography → typography}/Heading/index.d.ts +0 -0
- package/{types/utils → utils}/utils.d.ts +0 -0
- package/cjs/ColorCard.js +0 -48
- package/cjs/ElevationCard.js +0 -35
- package/cjs/Interfaces.js +0 -2
- package/cjs/Types.js +0 -2
- package/cjs/components/Accordion/index.js +0 -124
- package/cjs/components/Badge/index.js +0 -78
- package/cjs/components/Button/index.js +0 -170
- package/cjs/components/Card/index.js +0 -28
- package/cjs/components/CheckBox/index.js +0 -109
- package/cjs/components/Chip/index.js +0 -99
- package/cjs/components/DayPicker/DayPickerNavBar.js +0 -60
- package/cjs/components/DayPicker/index.js +0 -76
- package/cjs/components/DayPicker/localeUtils.js +0 -60
- package/cjs/components/Dialog/index.js +0 -88
- package/cjs/components/ErrorMessage/index.js +0 -31
- package/cjs/components/FieldLabel.js +0 -59
- package/cjs/components/Header/Hamburger.js +0 -55
- package/cjs/components/Header/Link.js +0 -53
- package/cjs/components/Header/index.js +0 -118
- package/cjs/components/Hero/index.js +0 -65
- package/cjs/components/Icon/index.js +0 -115
- package/cjs/components/IconButton.js +0 -130
- package/cjs/components/Icons/Arrow.js +0 -16
- package/cjs/components/Icons/CheckCircle.js +0 -16
- package/cjs/components/Icons/CheckIcon.js +0 -16
- package/cjs/components/Icons/Close.js +0 -16
- package/cjs/components/Icons/ErrorCircle.js +0 -16
- package/cjs/components/Icons/InfoCircle.js +0 -16
- package/cjs/components/InlineStepper/Step.js +0 -116
- package/cjs/components/InlineStepper/StepCircle.js +0 -93
- package/cjs/components/InlineStepper/index.js +0 -51
- package/cjs/components/ListItem/Bacon.js +0 -16
- package/cjs/components/ListItem/index.js +0 -56
- package/cjs/components/Logo/LogoEn.js +0 -35
- package/cjs/components/Logo/LogoSv.js +0 -35
- package/cjs/components/Logo/index.js +0 -32
- package/cjs/components/MenuItem/index.js +0 -99
- package/cjs/components/Modal/index.js +0 -137
- package/cjs/components/NotificationButton/index.js +0 -39
- package/cjs/components/OffCanvas/Overlay.js +0 -70
- package/cjs/components/OffCanvas/index.js +0 -133
- package/cjs/components/OffCanvas/useClickOutside.js +0 -21
- package/cjs/components/RadioButton/index.js +0 -148
- package/cjs/components/Range/index.js +0 -82
- package/cjs/components/Select/components/test-icon.js +0 -16
- package/cjs/components/Select/index.js +0 -225
- package/cjs/components/Snackbar/index.js +0 -155
- package/cjs/components/Spinner/index.js +0 -68
- package/cjs/components/Stepper/index.js +0 -60
- package/cjs/components/StepperAccordion/index.js +0 -133
- package/cjs/components/Tabs/index.js +0 -71
- package/cjs/components/TextArea/index.js +0 -120
- package/cjs/components/Textfield/index.js +0 -130
- package/cjs/components/TimePicker/index.js +0 -49
- package/cjs/components/TimePicker/testHelper.js +0 -16
- package/cjs/components/Toggle/index.js +0 -83
- package/cjs/icons/components/AccountCreateIcon.js +0 -48
- package/cjs/icons/components/AccountIcon.js +0 -44
- package/cjs/icons/components/AccountLoginIcon.js +0 -50
- package/cjs/icons/components/ArrowDownIcon.js +0 -44
- package/cjs/icons/components/ArrowLeftIcon.js +0 -42
- package/cjs/icons/components/ArrowLeftSharpIcon.js +0 -44
- package/cjs/icons/components/ArrowLeftSmallIcon.js +0 -44
- package/cjs/icons/components/ArrowLong.js +0 -45
- package/cjs/icons/components/ArrowRestartIcon.js +0 -44
- package/cjs/icons/components/ArrowRightIcon.js +0 -42
- package/cjs/icons/components/ArrowRightSharpIcon.js +0 -44
- package/cjs/icons/components/ArrowUpIcon.js +0 -44
- package/cjs/icons/components/AuctionIcon.js +0 -42
- package/cjs/icons/components/BackArrowIcon.js +0 -42
- package/cjs/icons/components/Baseline360Icon.js +0 -45
- package/cjs/icons/components/BellIcon.js +0 -42
- package/cjs/icons/components/BidIcon.js +0 -42
- package/cjs/icons/components/BidKrIcon.js +0 -48
- package/cjs/icons/components/BreaksIcon.js +0 -42
- package/cjs/icons/components/BuyCarIcon.js +0 -42
- package/cjs/icons/components/CabIcon.js +0 -44
- package/cjs/icons/components/CalendarIcon.js +0 -51
- package/cjs/icons/components/CameraIcon.js +0 -42
- package/cjs/icons/components/Car360Icon.js +0 -67
- package/cjs/icons/components/CarFrontIcon.js +0 -42
- package/cjs/icons/components/CarSearchIcon.js +0 -42
- package/cjs/icons/components/CarSideIcon.js +0 -42
- package/cjs/icons/components/CarTiresIcon.js +0 -42
- package/cjs/icons/components/CaravanIcon.js +0 -42
- package/cjs/icons/components/CardViewIcon.js +0 -68
- package/cjs/icons/components/CarloanIcon.js +0 -44
- package/cjs/icons/components/CertifiedIcon.js +0 -52
- package/cjs/icons/components/ChatIcon.js +0 -43
- package/cjs/icons/components/CheckIcon.js +0 -43
- package/cjs/icons/components/CheckThinIcon.js +0 -43
- package/cjs/icons/components/CheckmarkFilledIcon.js +0 -42
- package/cjs/icons/components/CheckmarkIcon.js +0 -42
- package/cjs/icons/components/ClipboardFilledIcon.js +0 -42
- package/cjs/icons/components/ClipboardIcon.js +0 -42
- package/cjs/icons/components/ClockFilledIcon.js +0 -44
- package/cjs/icons/components/ClockIcon.js +0 -43
- package/cjs/icons/components/CloseIcon.js +0 -43
- package/cjs/icons/components/CloseThinIcon.js +0 -44
- package/cjs/icons/components/CoffeeIcon.js +0 -43
- package/cjs/icons/components/CombiIcon.js +0 -44
- package/cjs/icons/components/CommentCircleFilledIcon.js +0 -48
- package/cjs/icons/components/CommentCircleIconIcon.js +0 -46
- package/cjs/icons/components/CommentIcon.js +0 -46
- package/cjs/icons/components/ContactIcon.js +0 -46
- package/cjs/icons/components/CoupeIcon.js +0 -44
- package/cjs/icons/components/CreditCardIcon.js +0 -43
- package/cjs/icons/components/CrossCircleIcon.js +0 -42
- package/cjs/icons/components/CrownIcon.js +0 -43
- package/cjs/icons/components/DealmakerIcon.js +0 -48
- package/cjs/icons/components/DeliveryIcon.js +0 -51
- package/cjs/icons/components/DetailedSearchIcon.js +0 -43
- package/cjs/icons/components/EcoFriendlyIcon.js +0 -46
- package/cjs/icons/components/EditIcon.js +0 -43
- package/cjs/icons/components/EngineIcon.js +0 -42
- package/cjs/icons/components/EnglandFlagIcon.js +0 -60
- package/cjs/icons/components/EvaluationIcon.js +0 -46
- package/cjs/icons/components/ExaminationMarkFilledIcon.js +0 -42
- package/cjs/icons/components/ExaminationMarkIcon.js +0 -42
- package/cjs/icons/components/ExteriorIcon.js +0 -42
- package/cjs/icons/components/EyeIcon.js +0 -48
- package/cjs/icons/components/FacebookBtnIcon.js +0 -42
- package/cjs/icons/components/FacebookIcon.js +0 -44
- package/cjs/icons/components/FatalIcon.js +0 -44
- package/cjs/icons/components/FavouriteIcon.js +0 -42
- package/cjs/icons/components/FavouriteSolidIcon.js +0 -42
- package/cjs/icons/components/FilterIcon.js +0 -44
- package/cjs/icons/components/FinanceIcon.js +0 -42
- package/cjs/icons/components/FindCarIcon.js +0 -42
- package/cjs/icons/components/FixedMonthlyCostIcon.js +0 -48
- package/cjs/icons/components/FlagIcon.js +0 -42
- package/cjs/icons/components/FlexibilityIcon.js +0 -48
- package/cjs/icons/components/ForumLargeIcon.js +0 -42
- package/cjs/icons/components/ForumSmallIcon.js +0 -42
- package/cjs/icons/components/GavelIcon.js +0 -44
- package/cjs/icons/components/GearboxIcon.js +0 -44
- package/cjs/icons/components/GiftIcon.js +0 -58
- package/cjs/icons/components/GridViewIcon.js +0 -42
- package/cjs/icons/components/GroupIcon.js +0 -79
- package/cjs/icons/components/GuaranteeIcon.js +0 -42
- package/cjs/icons/components/GuaranteeLargeIcon.js +0 -42
- package/cjs/icons/components/GuaranteeSmallIcon.js +0 -42
- package/cjs/icons/components/HalfCombiIcon.js +0 -44
- package/cjs/icons/components/HamburgerIcon.js +0 -42
- package/cjs/icons/components/HandshakeIcon.js +0 -42
- package/cjs/icons/components/HelpingHandIcon.js +0 -60
- package/cjs/icons/components/IdIcon.js +0 -45
- package/cjs/icons/components/InformationIcon.js +0 -42
- package/cjs/icons/components/InstagramIcon.js +0 -49
- package/cjs/icons/components/InsuranceIcon.js +0 -42
- package/cjs/icons/components/InteriorIcon.js +0 -44
- package/cjs/icons/components/InteriorThinIcon.js +0 -44
- package/cjs/icons/components/InternationalIcon.js +0 -50
- package/cjs/icons/components/KvdTestIcon.js +0 -42
- package/cjs/icons/components/KvdVenueIcon.js +0 -42
- package/cjs/icons/components/LifebuoyIcon.js +0 -42
- package/cjs/icons/components/LiftTruckIcon.js +0 -42
- package/cjs/icons/components/LinkedInIcon.js +0 -42
- package/cjs/icons/components/ListViewIcon.js +0 -64
- package/cjs/icons/components/MailIcon.js +0 -44
- package/cjs/icons/components/MinibusIcon.js +0 -44
- package/cjs/icons/components/MinivanIcon.js +0 -45
- package/cjs/icons/components/MobileIcon.js +0 -52
- package/cjs/icons/components/MotorcycleIcon.js +0 -74
- package/cjs/icons/components/MrfLogoIcon.js +0 -53
- package/cjs/icons/components/NotFoundIcon.js +0 -42
- package/cjs/icons/components/OverbidIcon.js +0 -44
- package/cjs/icons/components/PdfIconIcon.js +0 -42
- package/cjs/icons/components/PhoneIcon.js +0 -44
- package/cjs/icons/components/PickUpIcon.js +0 -42
- package/cjs/icons/components/PinIcon.js +0 -42
- package/cjs/icons/components/PlayIcon.js +0 -42
- package/cjs/icons/components/Pricetag.js +0 -51
- package/cjs/icons/components/PricetagFilledKronaIcon.js +0 -47
- package/cjs/icons/components/PrivateCarIcon.js +0 -42
- package/cjs/icons/components/ProfileCircleIcon.js +0 -42
- package/cjs/icons/components/ProfileIcon.js +0 -42
- package/cjs/icons/components/RadioIcon.js +0 -54
- package/cjs/icons/components/ReclamationIcon.js +0 -42
- package/cjs/icons/components/ReleasingIcon.js +0 -48
- package/cjs/icons/components/RemoveFilterIcon.js +0 -42
- package/cjs/icons/components/ReservedPriceIcon.js +0 -42
- package/cjs/icons/components/ResultIcon.js +0 -42
- package/cjs/icons/components/SafePaymentIcon.js +0 -42
- package/cjs/icons/components/SaleTagIcon.js +0 -42
- package/cjs/icons/components/SearchCheckIcon.js +0 -48
- package/cjs/icons/components/SearchIcon.js +0 -42
- package/cjs/icons/components/SedanIcon.js +0 -44
- package/cjs/icons/components/SellCarIcon.js +0 -42
- package/cjs/icons/components/SellCarsIcon.js +0 -42
- package/cjs/icons/components/ServiceIcon.js +0 -47
- package/cjs/icons/components/ShareIcon.js +0 -68
- package/cjs/icons/components/ShieldIcon.js +0 -42
- package/cjs/icons/components/SignInIcon.js +0 -42
- package/cjs/icons/components/SignOutIcon.js +0 -42
- package/cjs/icons/components/SpeedMeterIcon.js +0 -44
- package/cjs/icons/components/StarCircleIcon.js +0 -42
- package/cjs/icons/components/StartIcon.js +0 -50
- package/cjs/icons/components/StoreIcon.js +0 -42
- package/cjs/icons/components/SuvIcon.js +0 -44
- package/cjs/icons/components/SwedenFlag.js +0 -50
- package/cjs/icons/components/TankIcon.js +0 -52
- package/cjs/icons/components/TireIcon.js +0 -42
- package/cjs/icons/components/TransportIcon.js +0 -42
- package/cjs/icons/components/TrashcanIcon.js +0 -42
- package/cjs/icons/components/TrophyIcon.js +0 -42
- package/cjs/icons/components/TruckIcon.js +0 -42
- package/cjs/icons/components/UmbrellaIcon.js +0 -42
- package/cjs/icons/components/ValuationIcon.js +0 -42
- package/cjs/icons/components/ValueIcon.js +0 -47
- package/cjs/icons/components/WarningIcon.js +0 -42
- package/cjs/icons/components/YoutubeIcon.js +0 -42
- package/cjs/icons/components/index.js +0 -320
- package/cjs/index.js +0 -438
- package/cjs/react-app-env.d.js +0 -2
- package/cjs/shared/constants.js +0 -7
- package/cjs/shared/helpers.js +0 -28
- package/cjs/shared/helpers.spec.js +0 -36
- package/cjs/shared/media-queries.js +0 -41
- package/cjs/styled.d.js +0 -4
- package/cjs/theme.js +0 -125
- package/cjs/typography/BodyText/index.js +0 -66
- package/cjs/typography/ButtonText/index.js +0 -48
- package/cjs/typography/Heading/index.js +0 -92
- package/cjs/utils/utils.js +0 -33
- package/esm/ColorCard.js +0 -40
- package/esm/ElevationCard.js +0 -27
- package/esm/Interfaces.js +0 -1
- package/esm/Types.js +0 -1
- package/esm/components/Accordion/index.js +0 -115
- package/esm/components/Badge/index.js +0 -69
- package/esm/components/Button/index.js +0 -161
- package/esm/components/Card/index.js +0 -19
- package/esm/components/CheckBox/index.js +0 -100
- package/esm/components/Chip/index.js +0 -90
- package/esm/components/DayPicker/DayPickerNavBar.js +0 -52
- package/esm/components/DayPicker/index.js +0 -66
- package/esm/components/DayPicker/localeUtils.js +0 -52
- package/esm/components/Dialog/index.js +0 -79
- package/esm/components/ErrorMessage/index.js +0 -22
- package/esm/components/FieldLabel.js +0 -51
- package/esm/components/Header/Hamburger.js +0 -47
- package/esm/components/Header/Link.js +0 -45
- package/esm/components/Header/index.js +0 -109
- package/esm/components/Hero/index.js +0 -56
- package/esm/components/Icon/index.js +0 -107
- package/esm/components/IconButton.js +0 -122
- package/esm/components/Icons/Arrow.js +0 -12
- package/esm/components/Icons/CheckCircle.js +0 -12
- package/esm/components/Icons/CheckIcon.js +0 -12
- package/esm/components/Icons/Close.js +0 -12
- package/esm/components/Icons/ErrorCircle.js +0 -12
- package/esm/components/Icons/InfoCircle.js +0 -12
- package/esm/components/InlineStepper/Step.js +0 -107
- package/esm/components/InlineStepper/StepCircle.js +0 -85
- package/esm/components/InlineStepper/index.js +0 -43
- package/esm/components/ListItem/Bacon.js +0 -12
- package/esm/components/ListItem/index.js +0 -48
- package/esm/components/Logo/LogoEn.js +0 -31
- package/esm/components/Logo/LogoSv.js +0 -31
- package/esm/components/Logo/index.js +0 -23
- package/esm/components/MenuItem/index.js +0 -90
- package/esm/components/Modal/index.js +0 -128
- package/esm/components/NotificationButton/index.js +0 -31
- package/esm/components/OffCanvas/Overlay.js +0 -61
- package/esm/components/OffCanvas/index.js +0 -124
- package/esm/components/OffCanvas/useClickOutside.js +0 -17
- package/esm/components/RadioButton/index.js +0 -139
- package/esm/components/Range/index.js +0 -73
- package/esm/components/Select/components/test-icon.js +0 -12
- package/esm/components/Select/index.js +0 -215
- package/esm/components/Snackbar/index.js +0 -146
- package/esm/components/Spinner/index.js +0 -60
- package/esm/components/Stepper/index.js +0 -52
- package/esm/components/StepperAccordion/index.js +0 -124
- package/esm/components/Tabs/index.js +0 -61
- package/esm/components/TextArea/index.js +0 -111
- package/esm/components/Textfield/index.js +0 -121
- package/esm/components/TimePicker/index.js +0 -40
- package/esm/components/TimePicker/testHelper.js +0 -12
- package/esm/components/Toggle/index.js +0 -75
- package/esm/icons/components/AccountCreateIcon.js +0 -22
- package/esm/icons/components/AccountIcon.js +0 -18
- package/esm/icons/components/AccountLoginIcon.js +0 -24
- package/esm/icons/components/ArrowDownIcon.js +0 -18
- package/esm/icons/components/ArrowLeftIcon.js +0 -16
- package/esm/icons/components/ArrowLeftSharpIcon.js +0 -18
- package/esm/icons/components/ArrowLeftSmallIcon.js +0 -18
- package/esm/icons/components/ArrowLong.js +0 -19
- package/esm/icons/components/ArrowRestartIcon.js +0 -18
- package/esm/icons/components/ArrowRightIcon.js +0 -16
- package/esm/icons/components/ArrowRightSharpIcon.js +0 -18
- package/esm/icons/components/ArrowUpIcon.js +0 -18
- package/esm/icons/components/AuctionIcon.js +0 -16
- package/esm/icons/components/BackArrowIcon.js +0 -16
- package/esm/icons/components/Baseline360Icon.js +0 -19
- package/esm/icons/components/BellIcon.js +0 -16
- package/esm/icons/components/BidIcon.js +0 -16
- package/esm/icons/components/BidKrIcon.js +0 -22
- package/esm/icons/components/BreaksIcon.js +0 -16
- package/esm/icons/components/BuyCarIcon.js +0 -16
- package/esm/icons/components/CabIcon.js +0 -18
- package/esm/icons/components/CalendarIcon.js +0 -25
- package/esm/icons/components/CameraIcon.js +0 -16
- package/esm/icons/components/Car360Icon.js +0 -41
- package/esm/icons/components/CarFrontIcon.js +0 -16
- package/esm/icons/components/CarSearchIcon.js +0 -16
- package/esm/icons/components/CarSideIcon.js +0 -16
- package/esm/icons/components/CarTiresIcon.js +0 -16
- package/esm/icons/components/CaravanIcon.js +0 -16
- package/esm/icons/components/CardViewIcon.js +0 -42
- package/esm/icons/components/CarloanIcon.js +0 -18
- package/esm/icons/components/CertifiedIcon.js +0 -26
- package/esm/icons/components/ChatIcon.js +0 -17
- package/esm/icons/components/CheckIcon.js +0 -17
- package/esm/icons/components/CheckThinIcon.js +0 -17
- package/esm/icons/components/CheckmarkFilledIcon.js +0 -16
- package/esm/icons/components/CheckmarkIcon.js +0 -16
- package/esm/icons/components/ClipboardFilledIcon.js +0 -16
- package/esm/icons/components/ClipboardIcon.js +0 -16
- package/esm/icons/components/ClockFilledIcon.js +0 -18
- package/esm/icons/components/ClockIcon.js +0 -17
- package/esm/icons/components/CloseIcon.js +0 -17
- package/esm/icons/components/CloseThinIcon.js +0 -18
- package/esm/icons/components/CoffeeIcon.js +0 -17
- package/esm/icons/components/CombiIcon.js +0 -18
- package/esm/icons/components/CommentCircleFilledIcon.js +0 -22
- package/esm/icons/components/CommentCircleIconIcon.js +0 -20
- package/esm/icons/components/CommentIcon.js +0 -20
- package/esm/icons/components/ContactIcon.js +0 -20
- package/esm/icons/components/CoupeIcon.js +0 -18
- package/esm/icons/components/CreditCardIcon.js +0 -17
- package/esm/icons/components/CrossCircleIcon.js +0 -16
- package/esm/icons/components/CrownIcon.js +0 -17
- package/esm/icons/components/DealmakerIcon.js +0 -22
- package/esm/icons/components/DeliveryIcon.js +0 -25
- package/esm/icons/components/DetailedSearchIcon.js +0 -17
- package/esm/icons/components/EcoFriendlyIcon.js +0 -20
- package/esm/icons/components/EditIcon.js +0 -17
- package/esm/icons/components/EngineIcon.js +0 -16
- package/esm/icons/components/EnglandFlagIcon.js +0 -34
- package/esm/icons/components/EvaluationIcon.js +0 -20
- package/esm/icons/components/ExaminationMarkFilledIcon.js +0 -16
- package/esm/icons/components/ExaminationMarkIcon.js +0 -16
- package/esm/icons/components/ExteriorIcon.js +0 -16
- package/esm/icons/components/EyeIcon.js +0 -22
- package/esm/icons/components/FacebookBtnIcon.js +0 -16
- package/esm/icons/components/FacebookIcon.js +0 -18
- package/esm/icons/components/FatalIcon.js +0 -18
- package/esm/icons/components/FavouriteIcon.js +0 -16
- package/esm/icons/components/FavouriteSolidIcon.js +0 -16
- package/esm/icons/components/FilterIcon.js +0 -18
- package/esm/icons/components/FinanceIcon.js +0 -16
- package/esm/icons/components/FindCarIcon.js +0 -16
- package/esm/icons/components/FixedMonthlyCostIcon.js +0 -22
- package/esm/icons/components/FlagIcon.js +0 -16
- package/esm/icons/components/FlexibilityIcon.js +0 -22
- package/esm/icons/components/ForumLargeIcon.js +0 -16
- package/esm/icons/components/ForumSmallIcon.js +0 -16
- package/esm/icons/components/GavelIcon.js +0 -18
- package/esm/icons/components/GearboxIcon.js +0 -18
- package/esm/icons/components/GiftIcon.js +0 -32
- package/esm/icons/components/GridViewIcon.js +0 -16
- package/esm/icons/components/GroupIcon.js +0 -53
- package/esm/icons/components/GuaranteeIcon.js +0 -16
- package/esm/icons/components/GuaranteeLargeIcon.js +0 -16
- package/esm/icons/components/GuaranteeSmallIcon.js +0 -16
- package/esm/icons/components/HalfCombiIcon.js +0 -18
- package/esm/icons/components/HamburgerIcon.js +0 -16
- package/esm/icons/components/HandshakeIcon.js +0 -16
- package/esm/icons/components/HelpingHandIcon.js +0 -34
- package/esm/icons/components/IdIcon.js +0 -19
- package/esm/icons/components/InformationIcon.js +0 -16
- package/esm/icons/components/InstagramIcon.js +0 -23
- package/esm/icons/components/InsuranceIcon.js +0 -16
- package/esm/icons/components/InteriorIcon.js +0 -18
- package/esm/icons/components/InteriorThinIcon.js +0 -18
- package/esm/icons/components/InternationalIcon.js +0 -24
- package/esm/icons/components/KvdTestIcon.js +0 -16
- package/esm/icons/components/KvdVenueIcon.js +0 -16
- package/esm/icons/components/LifebuoyIcon.js +0 -16
- package/esm/icons/components/LiftTruckIcon.js +0 -16
- package/esm/icons/components/LinkedInIcon.js +0 -16
- package/esm/icons/components/ListViewIcon.js +0 -38
- package/esm/icons/components/MailIcon.js +0 -18
- package/esm/icons/components/MinibusIcon.js +0 -18
- package/esm/icons/components/MinivanIcon.js +0 -19
- package/esm/icons/components/MobileIcon.js +0 -26
- package/esm/icons/components/MotorcycleIcon.js +0 -48
- package/esm/icons/components/MrfLogoIcon.js +0 -27
- package/esm/icons/components/NotFoundIcon.js +0 -16
- package/esm/icons/components/OverbidIcon.js +0 -18
- package/esm/icons/components/PdfIconIcon.js +0 -16
- package/esm/icons/components/PhoneIcon.js +0 -18
- package/esm/icons/components/PickUpIcon.js +0 -16
- package/esm/icons/components/PinIcon.js +0 -16
- package/esm/icons/components/PlayIcon.js +0 -16
- package/esm/icons/components/Pricetag.js +0 -25
- package/esm/icons/components/PricetagFilledKronaIcon.js +0 -21
- package/esm/icons/components/PrivateCarIcon.js +0 -16
- package/esm/icons/components/ProfileCircleIcon.js +0 -16
- package/esm/icons/components/ProfileIcon.js +0 -16
- package/esm/icons/components/RadioIcon.js +0 -28
- package/esm/icons/components/ReclamationIcon.js +0 -16
- package/esm/icons/components/ReleasingIcon.js +0 -22
- package/esm/icons/components/RemoveFilterIcon.js +0 -16
- package/esm/icons/components/ReservedPriceIcon.js +0 -16
- package/esm/icons/components/ResultIcon.js +0 -16
- package/esm/icons/components/SafePaymentIcon.js +0 -16
- package/esm/icons/components/SaleTagIcon.js +0 -16
- package/esm/icons/components/SearchCheckIcon.js +0 -22
- package/esm/icons/components/SearchIcon.js +0 -16
- package/esm/icons/components/SedanIcon.js +0 -18
- package/esm/icons/components/SellCarIcon.js +0 -16
- package/esm/icons/components/SellCarsIcon.js +0 -16
- package/esm/icons/components/ServiceIcon.js +0 -21
- package/esm/icons/components/ShareIcon.js +0 -42
- package/esm/icons/components/ShieldIcon.js +0 -16
- package/esm/icons/components/SignInIcon.js +0 -16
- package/esm/icons/components/SignOutIcon.js +0 -16
- package/esm/icons/components/SpeedMeterIcon.js +0 -18
- package/esm/icons/components/StarCircleIcon.js +0 -16
- package/esm/icons/components/StartIcon.js +0 -24
- package/esm/icons/components/StoreIcon.js +0 -16
- package/esm/icons/components/SuvIcon.js +0 -18
- package/esm/icons/components/SwedenFlag.js +0 -24
- package/esm/icons/components/TankIcon.js +0 -26
- package/esm/icons/components/TireIcon.js +0 -16
- package/esm/icons/components/TransportIcon.js +0 -16
- package/esm/icons/components/TrashcanIcon.js +0 -16
- package/esm/icons/components/TrophyIcon.js +0 -16
- package/esm/icons/components/TruckIcon.js +0 -16
- package/esm/icons/components/UmbrellaIcon.js +0 -16
- package/esm/icons/components/ValuationIcon.js +0 -16
- package/esm/icons/components/ValueIcon.js +0 -21
- package/esm/icons/components/WarningIcon.js +0 -16
- package/esm/icons/components/YoutubeIcon.js +0 -16
- package/esm/icons/components/index.js +0 -157
- package/esm/index.js +0 -220
- package/esm/react-app-env.d.js +0 -1
- package/esm/shared/constants.js +0 -3
- package/esm/shared/helpers.js +0 -23
- package/esm/shared/helpers.spec.js +0 -34
- package/esm/shared/media-queries.js +0 -35
- package/esm/styled.d.js +0 -1
- package/esm/theme.js +0 -121
- package/esm/typography/BodyText/index.js +0 -48
- package/esm/typography/ButtonText/index.js +0 -33
- package/esm/typography/Heading/index.js +0 -76
- package/esm/utils/utils.js +0 -28
- package/types/components/Select/components/test-icon.d.ts +0 -1
- package/types/icons/template.d.ts +0 -10
- package/types/serviceWorker.d.ts +0 -2
package/cjs/theme.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const theme = {
|
|
6
|
-
typography: {
|
|
7
|
-
fontBaseFamily: "'Open Sans', sans-serif",
|
|
8
|
-
fontAlternativeFamily: "'Next Book', sans-serif",
|
|
9
|
-
fontBaseRegularWeight: 400,
|
|
10
|
-
fontBaseBoldWeight: 600,
|
|
11
|
-
fontAlternativeRegularWeight: 400,
|
|
12
|
-
fontAlternativeBoldWeight: 700
|
|
13
|
-
},
|
|
14
|
-
colors: {
|
|
15
|
-
primary: {
|
|
16
|
-
darker: "#d98500",
|
|
17
|
-
dark: "#e8a100",
|
|
18
|
-
main: "#f5b400",
|
|
19
|
-
light: "#f7cf57",
|
|
20
|
-
lighter: "#fce5ab",
|
|
21
|
-
lighter2: "#fff7e5"
|
|
22
|
-
},
|
|
23
|
-
secondary: {
|
|
24
|
-
darker: "#00474d",
|
|
25
|
-
dark: "#007069",
|
|
26
|
-
main: "#2a9d8f",
|
|
27
|
-
light: "#6bb8a6",
|
|
28
|
-
lighter: "#bae3cc",
|
|
29
|
-
lighter2: "#e5f5ed"
|
|
30
|
-
},
|
|
31
|
-
tertiary: {
|
|
32
|
-
darker: "#5e2636",
|
|
33
|
-
dark: "#a63640",
|
|
34
|
-
main: "#ef5b5b",
|
|
35
|
-
light: "#f5968a",
|
|
36
|
-
lighter: "#f5c7bf",
|
|
37
|
-
lighter2: "#fcedeb"
|
|
38
|
-
},
|
|
39
|
-
info: {
|
|
40
|
-
darker: "#17395d",
|
|
41
|
-
dark: "#004773",
|
|
42
|
-
main: "#007ab8",
|
|
43
|
-
light: "#57c2ff",
|
|
44
|
-
lighter: "#abe0ff",
|
|
45
|
-
lighter2: "#e5f5ff"
|
|
46
|
-
},
|
|
47
|
-
success: {
|
|
48
|
-
darker: "#175c36",
|
|
49
|
-
dark: "#269940",
|
|
50
|
-
main: "#59d771",
|
|
51
|
-
light: "#91e5a1",
|
|
52
|
-
lighter: "#c7f2cf",
|
|
53
|
-
lighter2: "#edfaf0"
|
|
54
|
-
},
|
|
55
|
-
warning: {
|
|
56
|
-
darker: "#d98500",
|
|
57
|
-
dark: "#e8a100",
|
|
58
|
-
main: "#f5b400",
|
|
59
|
-
light: "#f7cf57",
|
|
60
|
-
lighter: "#fce5ab",
|
|
61
|
-
lighter2: "#fff7e5"
|
|
62
|
-
},
|
|
63
|
-
error: {
|
|
64
|
-
darker: "#5e2636",
|
|
65
|
-
dark: "#a63640",
|
|
66
|
-
main: "#ef5b5b",
|
|
67
|
-
light: "#f5968a",
|
|
68
|
-
lighter: "#f5c7bf",
|
|
69
|
-
lighter2: "#fcedeb"
|
|
70
|
-
},
|
|
71
|
-
neutral: {
|
|
72
|
-
darker: "#1a2030",
|
|
73
|
-
dark: "#1a2030",
|
|
74
|
-
main: "#1a2030",
|
|
75
|
-
light: "#474d59",
|
|
76
|
-
lighter: "#5e6369",
|
|
77
|
-
lighte2: "#707378"
|
|
78
|
-
},
|
|
79
|
-
text: {
|
|
80
|
-
dark: "#1a2030",
|
|
81
|
-
light: "#ffffff",
|
|
82
|
-
disabled: "#5e6369"
|
|
83
|
-
},
|
|
84
|
-
background: {
|
|
85
|
-
dark: "#1a2030",
|
|
86
|
-
gray: "#f2f2f2",
|
|
87
|
-
sand: "#f2efe6",
|
|
88
|
-
light: "#ffffff"
|
|
89
|
-
},
|
|
90
|
-
common: {
|
|
91
|
-
black: "#000000",
|
|
92
|
-
white: "#ffffff",
|
|
93
|
-
purple: {
|
|
94
|
-
darker: "#42214f",
|
|
95
|
-
dark: "#732e70",
|
|
96
|
-
main: "#a13d8f",
|
|
97
|
-
light: "#c27db5",
|
|
98
|
-
lighter: "#e0bfd9",
|
|
99
|
-
lighter2: "#f5edf2"
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
gray: {
|
|
103
|
-
dark1: "#1a2030",
|
|
104
|
-
dark2: "#303842",
|
|
105
|
-
dark3: "#474d59",
|
|
106
|
-
dark4: "#5e6369",
|
|
107
|
-
dark5: "#707378",
|
|
108
|
-
light1: "#8c8f91",
|
|
109
|
-
light2: "#a3a6a8",
|
|
110
|
-
light3: "#c7c7c4",
|
|
111
|
-
light4: "#d9d9d6",
|
|
112
|
-
light5: "#e8e8e8",
|
|
113
|
-
light6: "#f2f2f2"
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
elevations: {
|
|
117
|
-
elevation2: "0px 1px 5px rgba(0, 0, 0, 0.15), 0px 2px 4px rgba(0, 0, 0, 0.09), 0px 2px 4px rgba(0, 0, 0, 0.1)",
|
|
118
|
-
elevation4: "0px 1px 10px rgba(0, 0, 0, 0.15), 0px 4px 5px rgba(0, 0, 0, 0.09), 0px 2px 4px rgba(0, 0, 0, 0.1)",
|
|
119
|
-
elevation8: "0px 4px 5px rgba(0, 0, 0, 0.15), 0px 3px 14px rgba(0, 0, 0, 0.09), 0px 8px 10px rgba(0, 0, 0, 0.1)",
|
|
120
|
-
elevation16: "0px 8px 10px rgba(0, 0, 0, 0.15), 0px 6px 30px rgba(0, 0, 0, 0.09), 0px 16px 24px rgba(0, 0, 0, 0.1)",
|
|
121
|
-
elevation24: "0px 11px 15px rgba(0, 0, 0, 0.15), 0px 9px 46px rgba(0, 0, 0, 0.09), 0px 24px 38px rgba(0, 0, 0, 0.1)"
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
exports['default'] = theme;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
-
|
|
9
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
10
|
-
|
|
11
|
-
const BodyTextStylePrimary = styled.css`
|
|
12
|
-
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
13
|
-
font-weight: ${({ theme }) => theme.typography.fontBaseRegularWeight};
|
|
14
|
-
`;
|
|
15
|
-
const StyledBodyText = styled__default['default'].p`
|
|
16
|
-
${BodyTextStylePrimary}
|
|
17
|
-
font-feature-settings: 'lnum' on;
|
|
18
|
-
`;
|
|
19
|
-
const Quote = styled__default['default'](StyledBodyText)`
|
|
20
|
-
font-family: Georgia, Cambria, Cochin, Times, 'Times New Roman', serif;
|
|
21
|
-
font-style: italic;
|
|
22
|
-
`;
|
|
23
|
-
const BodyTextStyle = styled.css`
|
|
24
|
-
${BodyTextStylePrimary}
|
|
25
|
-
font-size: 1rem;
|
|
26
|
-
line-height: 1.5rem;
|
|
27
|
-
`;
|
|
28
|
-
const BodyText = styled__default['default'](StyledBodyText)`
|
|
29
|
-
font-size: 1rem;
|
|
30
|
-
line-height: 1.5rem;
|
|
31
|
-
`;
|
|
32
|
-
const BodyLink = styled__default['default'](BodyText)`
|
|
33
|
-
font-weight: ${({ theme }) => theme.typography.fontBaseBoldWeight};
|
|
34
|
-
`;
|
|
35
|
-
const CaptionStyle = styled.css`
|
|
36
|
-
${BodyTextStylePrimary}
|
|
37
|
-
font-size: 0.81rem;
|
|
38
|
-
line-height: 1.5rem;
|
|
39
|
-
`;
|
|
40
|
-
const Caption = styled__default['default'](StyledBodyText)`
|
|
41
|
-
font-size: 0.81rem;
|
|
42
|
-
line-height: 1.5rem;
|
|
43
|
-
`;
|
|
44
|
-
const CaptionLink = styled__default['default'](Caption)`
|
|
45
|
-
font-weight: ${({ theme }) => theme.typography.fontBaseBoldWeight};
|
|
46
|
-
`;
|
|
47
|
-
const Status = styled__default['default'](StyledBodyText)`
|
|
48
|
-
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
49
|
-
font-size: 0.75rem;
|
|
50
|
-
line-height: 1.25rem;
|
|
51
|
-
font-weight: ${({ theme }) => theme.typography.fontAlternativeBoldWeight};
|
|
52
|
-
text-transform: uppercase;
|
|
53
|
-
`;
|
|
54
|
-
const BodyTexts = () => /* @__PURE__ */ React.createElement("div", null);
|
|
55
|
-
|
|
56
|
-
exports.BodyLink = BodyLink;
|
|
57
|
-
exports.BodyText = BodyText;
|
|
58
|
-
exports.BodyTextStyle = BodyTextStyle;
|
|
59
|
-
exports.BodyTexts = BodyTexts;
|
|
60
|
-
exports.Caption = Caption;
|
|
61
|
-
exports.CaptionLink = CaptionLink;
|
|
62
|
-
exports.CaptionStyle = CaptionStyle;
|
|
63
|
-
exports.Quote = Quote;
|
|
64
|
-
exports.Status = Status;
|
|
65
|
-
exports.StyledBodyText = StyledBodyText;
|
|
66
|
-
exports['default'] = BodyTexts;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
-
|
|
9
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
10
|
-
|
|
11
|
-
const BasicButtonTextStyle = styled.css`
|
|
12
|
-
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
13
|
-
font-weight: ${({ theme }) => theme.typography.fontAlternativeBoldWeight};
|
|
14
|
-
`;
|
|
15
|
-
const StyledButtonText = styled__default['default'].span`
|
|
16
|
-
${BasicButtonTextStyle}
|
|
17
|
-
`;
|
|
18
|
-
const ButtonLargeTextStyle = styled.css`
|
|
19
|
-
font-size: 1.25rem;
|
|
20
|
-
line-height: 1.25rem;
|
|
21
|
-
`;
|
|
22
|
-
const ButtonLarge = styled__default['default'](StyledButtonText)`
|
|
23
|
-
${ButtonLargeTextStyle}
|
|
24
|
-
`;
|
|
25
|
-
const ButtonRegularTextStyle = styled.css`
|
|
26
|
-
font-size: 1rem;
|
|
27
|
-
line-height: 1rem;
|
|
28
|
-
`;
|
|
29
|
-
const Button = styled__default['default'](StyledButtonText)`
|
|
30
|
-
${ButtonRegularTextStyle}
|
|
31
|
-
`;
|
|
32
|
-
const ButtonSmallTextStyle = styled.css`
|
|
33
|
-
font-size: 0.81rem;
|
|
34
|
-
line-height: 0.81rem;
|
|
35
|
-
`;
|
|
36
|
-
const ButtonSmall = styled__default['default'](StyledButtonText)`
|
|
37
|
-
${ButtonSmallTextStyle}
|
|
38
|
-
`;
|
|
39
|
-
const Buttons = () => /* @__PURE__ */ React.createElement("div", null);
|
|
40
|
-
|
|
41
|
-
exports.BasicButtonTextStyle = BasicButtonTextStyle;
|
|
42
|
-
exports.Button = Button;
|
|
43
|
-
exports.ButtonLarge = ButtonLarge;
|
|
44
|
-
exports.ButtonLargeTextStyle = ButtonLargeTextStyle;
|
|
45
|
-
exports.ButtonRegularTextStyle = ButtonRegularTextStyle;
|
|
46
|
-
exports.ButtonSmall = ButtonSmall;
|
|
47
|
-
exports.ButtonSmallTextStyle = ButtonSmallTextStyle;
|
|
48
|
-
exports['default'] = Buttons;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var shared_mediaQueries = require('../../shared/media-queries.js');
|
|
7
|
-
|
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
-
|
|
10
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
|
-
|
|
12
|
-
const StyledHeading = styled__default['default'].p`
|
|
13
|
-
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
14
|
-
font-weight: ${({ theme }) => theme.typography.fontAlternativeRegularWeight};
|
|
15
|
-
`;
|
|
16
|
-
const StyledDisplay = styled__default['default'](StyledHeading)`
|
|
17
|
-
font-weight: ${({ theme }) => theme.typography.fontAlternativeBoldWeight};
|
|
18
|
-
`;
|
|
19
|
-
const Display3 = styled__default['default'](StyledDisplay)`
|
|
20
|
-
font-size: 2rem;
|
|
21
|
-
line-height: 3rem;
|
|
22
|
-
|
|
23
|
-
${shared_mediaQueries.mq("laptop")} {
|
|
24
|
-
font-size: 3.75rem;
|
|
25
|
-
line-height: 4.5rem;
|
|
26
|
-
}
|
|
27
|
-
`;
|
|
28
|
-
const Display2 = styled__default['default'](StyledDisplay)`
|
|
29
|
-
font-size: 1.81rem;
|
|
30
|
-
line-height: 2.5rem;
|
|
31
|
-
|
|
32
|
-
${shared_mediaQueries.mq("laptop")} {
|
|
33
|
-
font-size: 3rem;
|
|
34
|
-
line-height: 4rem;
|
|
35
|
-
}
|
|
36
|
-
`;
|
|
37
|
-
const Display1 = styled__default['default'](StyledDisplay)`
|
|
38
|
-
font-size: 1.63rem;
|
|
39
|
-
line-height: 2.5rem;
|
|
40
|
-
|
|
41
|
-
${shared_mediaQueries.mq("laptop")} {
|
|
42
|
-
font-size: 2.5rem;
|
|
43
|
-
line-height: 3.5rem;
|
|
44
|
-
}
|
|
45
|
-
`;
|
|
46
|
-
const Headline = styled__default['default'](StyledHeading)`
|
|
47
|
-
font-size: 1.44rem;
|
|
48
|
-
line-height: 2rem;
|
|
49
|
-
|
|
50
|
-
${shared_mediaQueries.mq("laptop")} {
|
|
51
|
-
font-size: 2rem;
|
|
52
|
-
line-height: 3rem;
|
|
53
|
-
}
|
|
54
|
-
`;
|
|
55
|
-
const Title = styled__default['default'](StyledHeading)`
|
|
56
|
-
font-size: 1.25rem;
|
|
57
|
-
line-height: 2rem;
|
|
58
|
-
|
|
59
|
-
${shared_mediaQueries.mq("laptop")} {
|
|
60
|
-
font-size: 1.56rem;
|
|
61
|
-
line-height: 2.5rem;
|
|
62
|
-
}
|
|
63
|
-
`;
|
|
64
|
-
const Subtitle = styled__default['default'](StyledHeading)`
|
|
65
|
-
font-size: 1.125rem;
|
|
66
|
-
line-height: 2rem;
|
|
67
|
-
|
|
68
|
-
${shared_mediaQueries.mq("laptop")} {
|
|
69
|
-
font-size: 1.25rem;
|
|
70
|
-
}
|
|
71
|
-
`;
|
|
72
|
-
const TinyTitle = styled__default['default'](StyledHeading)`
|
|
73
|
-
font-size: 1rem;
|
|
74
|
-
line-height: 1.5rem;
|
|
75
|
-
font-weight: ${({ theme }) => theme.typography.fontAlternativeBoldWeight};
|
|
76
|
-
`;
|
|
77
|
-
const Rubric = styled__default['default'](StyledHeading)`
|
|
78
|
-
font-weight: ${({ theme }) => theme.typography.fontAlternativeBoldWeight};
|
|
79
|
-
font-size: 1rem;
|
|
80
|
-
line-height: 1.5rem;
|
|
81
|
-
`;
|
|
82
|
-
const Headings = () => /* @__PURE__ */ React.createElement("div", null);
|
|
83
|
-
|
|
84
|
-
exports.Display1 = Display1;
|
|
85
|
-
exports.Display2 = Display2;
|
|
86
|
-
exports.Display3 = Display3;
|
|
87
|
-
exports.Headline = Headline;
|
|
88
|
-
exports.Rubric = Rubric;
|
|
89
|
-
exports.Subtitle = Subtitle;
|
|
90
|
-
exports.TinyTitle = TinyTitle;
|
|
91
|
-
exports.Title = Title;
|
|
92
|
-
exports['default'] = Headings;
|
package/cjs/utils/utils.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
|
|
7
|
-
const getLuminosity = (hexColor) => {
|
|
8
|
-
let red = 0;
|
|
9
|
-
let green = 0;
|
|
10
|
-
let blue = 0;
|
|
11
|
-
if (hexColor.length === 4) {
|
|
12
|
-
red = parseInt("0x" + hexColor[1] + hexColor[1]);
|
|
13
|
-
green = parseInt("0x" + hexColor[2] + hexColor[2]);
|
|
14
|
-
blue = parseInt("0x" + hexColor[3] + hexColor[3]);
|
|
15
|
-
} else if (hexColor.length === 7) {
|
|
16
|
-
red = parseInt("0x" + hexColor[1] + hexColor[2]);
|
|
17
|
-
green = parseInt("0x" + hexColor[3] + hexColor[4]);
|
|
18
|
-
blue = parseInt("0x" + hexColor[5] + hexColor[6]);
|
|
19
|
-
}
|
|
20
|
-
return (Math.max(Number(red / 255), Number(green / 255), Number(blue / 255)) + Math.min(Number(red / 255), Number(green / 255), Number(blue / 255))) / 2 * 100;
|
|
21
|
-
};
|
|
22
|
-
const resetButtonStyle = styled.css`
|
|
23
|
-
appearance: none;
|
|
24
|
-
background-color: transparent;
|
|
25
|
-
border: 0;
|
|
26
|
-
cursor: pointer;
|
|
27
|
-
font-family: inherit;
|
|
28
|
-
outline: none;
|
|
29
|
-
padding: 0;
|
|
30
|
-
`;
|
|
31
|
-
|
|
32
|
-
exports.getLuminosity = getLuminosity;
|
|
33
|
-
exports.resetButtonStyle = resetButtonStyle;
|
package/esm/ColorCard.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { getLuminosity } from './utils/utils.js';
|
|
3
|
-
import theme from './theme.js';
|
|
4
|
-
|
|
5
|
-
const SubList = styled.ul`
|
|
6
|
-
padding-left: 2rem;
|
|
7
|
-
`;
|
|
8
|
-
const ColorItem = styled.li`
|
|
9
|
-
list-style: none;
|
|
10
|
-
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.03);
|
|
11
|
-
border: 1px solid ${theme.colors.gray.light2};
|
|
12
|
-
border-radius: 4px;
|
|
13
|
-
font-family: 'Ralway', sans-serif;
|
|
14
|
-
margin-top: 0.75rem;
|
|
15
|
-
`;
|
|
16
|
-
const Header = styled.span`
|
|
17
|
-
text-transform: capitalize;
|
|
18
|
-
padding: 0.5em;
|
|
19
|
-
display: block;
|
|
20
|
-
border-bottom: 1px solid ${theme.colors.gray.light2};
|
|
21
|
-
`;
|
|
22
|
-
const Color = styled.li`
|
|
23
|
-
display: block;
|
|
24
|
-
background: ${({ hex }) => hex};
|
|
25
|
-
color: ${({ hex }) => getLuminosity(hex) < 40 ? "#fff" : "#000"};
|
|
26
|
-
padding: 1em;
|
|
27
|
-
`;
|
|
28
|
-
const SwatchArea = styled.ul`
|
|
29
|
-
margin: 0;
|
|
30
|
-
padding: 0;
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
`;
|
|
34
|
-
const getColor = (variants) => Object.entries(variants).map(([name, hex]) => typeof hex === "string" ? /* @__PURE__ */ React.createElement(Color, {
|
|
35
|
-
hex,
|
|
36
|
-
key: hex
|
|
37
|
-
}, name, " (", hex, ")") : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Header, null, name), /* @__PURE__ */ React.createElement(SubList, null, getColor(hex))));
|
|
38
|
-
const ColorCard = ({ colorName, variants }) => /* @__PURE__ */ React.createElement(ColorItem, null, /* @__PURE__ */ React.createElement(Header, null, colorName), /* @__PURE__ */ React.createElement(SwatchArea, null, getColor(variants)));
|
|
39
|
-
|
|
40
|
-
export { ColorCard as default };
|
package/esm/ElevationCard.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
const Card = styled.div`
|
|
4
|
-
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
5
|
-
font-weight: ${({ theme }) => theme.typography.fontAlternativeRegularWeight};
|
|
6
|
-
font-size: 1.25rem;
|
|
7
|
-
box-shadow: ${({ elevation }) => elevation};
|
|
8
|
-
width: 14rem;
|
|
9
|
-
height: 10rem;
|
|
10
|
-
margin: 1rem;
|
|
11
|
-
border-radius: 4px;
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
`;
|
|
16
|
-
const ElevationCard = ({
|
|
17
|
-
children,
|
|
18
|
-
value,
|
|
19
|
-
as = "div"
|
|
20
|
-
}) => {
|
|
21
|
-
return /* @__PURE__ */ React.createElement(Card, {
|
|
22
|
-
as,
|
|
23
|
-
elevation: value
|
|
24
|
-
}, children);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export { ElevationCard };
|
package/esm/Interfaces.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/esm/Types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import { UnmountClosed } from 'react-collapse';
|
|
4
|
-
import { mq } from '../../shared/media-queries.js';
|
|
5
|
-
import ArrowDownIcon from '../../icons/components/ArrowDownIcon.js';
|
|
6
|
-
|
|
7
|
-
const Container = styled.div`
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
.ReactCollapse--collapse {
|
|
11
|
-
transition: height 300ms;
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
const List = styled.ul`
|
|
15
|
-
margin: 0;
|
|
16
|
-
padding: 0;
|
|
17
|
-
list-style: none;
|
|
18
|
-
`;
|
|
19
|
-
const Title = styled.div`
|
|
20
|
-
display: flex;
|
|
21
|
-
flex-direction: row;
|
|
22
|
-
justify-content: space-between;
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
margin: 0.5rem 0;
|
|
25
|
-
`;
|
|
26
|
-
const Arrow = styled.div`
|
|
27
|
-
display: flex;
|
|
28
|
-
justify-content: center;
|
|
29
|
-
align-items: center;
|
|
30
|
-
font-size: 0.75rem;
|
|
31
|
-
color: ${({ theme }) => theme.colors.text.dark};
|
|
32
|
-
transition: 200ms ease-in-out;
|
|
33
|
-
transform: ${({ isOpen }) => `rotate(${isOpen ? "180deg" : "0deg"})`};
|
|
34
|
-
`;
|
|
35
|
-
const Item = styled.li`
|
|
36
|
-
border-top: ${({ theme }) => `1px solid ${theme.colors.gray.light2}`};
|
|
37
|
-
padding: ${({ isOpen }) => isOpen ? "0.5rem 0 1rem 0" : "0.5rem 0"};
|
|
38
|
-
|
|
39
|
-
&:last-child {
|
|
40
|
-
border-bottom: ${({ theme }) => `1px solid ${theme.colors.gray.light2}`};
|
|
41
|
-
}
|
|
42
|
-
`;
|
|
43
|
-
const Text = styled.span`
|
|
44
|
-
color: ${({ theme }) => theme.colors.text.dark};
|
|
45
|
-
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
46
|
-
font-size: 0.9375rem;
|
|
47
|
-
font-weight: ${({ theme }) => theme.typography.fontBaseBoldWeight};
|
|
48
|
-
`;
|
|
49
|
-
const Content = styled.div`
|
|
50
|
-
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
51
|
-
color: ${({ theme }) => theme.colors.text.dark};
|
|
52
|
-
font-size: 0.9375rem;
|
|
53
|
-
font-weight: ${({ theme }) => theme.typography.fontBaseRegularWeight};
|
|
54
|
-
line-height: 1.3;
|
|
55
|
-
transition: 200ms ease-in-out;
|
|
56
|
-
${mq("tablet")} {
|
|
57
|
-
padding: 0;
|
|
58
|
-
}
|
|
59
|
-
& > * {
|
|
60
|
-
margin-top: 0;
|
|
61
|
-
margin-bottom: 0;
|
|
62
|
-
}
|
|
63
|
-
`;
|
|
64
|
-
const Accordion = ({ items, ...props }) => {
|
|
65
|
-
const [isOpened, setIsOpened] = useState({});
|
|
66
|
-
const toggleIsOpened = (index) => {
|
|
67
|
-
setIsOpened((prevState) => ({ ...prevState, [index]: !prevState[index] }));
|
|
68
|
-
};
|
|
69
|
-
const onClick = (index) => () => {
|
|
70
|
-
toggleIsOpened(index);
|
|
71
|
-
};
|
|
72
|
-
const onKeyPress = (index) => (e) => {
|
|
73
|
-
if (e.key === "Enter") {
|
|
74
|
-
toggleIsOpened(index);
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
return /* @__PURE__ */ React.createElement(Container, {
|
|
78
|
-
...props
|
|
79
|
-
}, /* @__PURE__ */ React.createElement(List, {
|
|
80
|
-
className: "accordionList"
|
|
81
|
-
}, items.map((item, index) => {
|
|
82
|
-
const isOpen = Boolean(isOpened[index]);
|
|
83
|
-
return /* @__PURE__ */ React.createElement(Item, {
|
|
84
|
-
key: item.title,
|
|
85
|
-
isOpen,
|
|
86
|
-
className: "accordionItem"
|
|
87
|
-
}, /* @__PURE__ */ React.createElement(Title, {
|
|
88
|
-
onClick: onClick(index),
|
|
89
|
-
onKeyPress: onKeyPress(index),
|
|
90
|
-
className: "accordionItemTitle",
|
|
91
|
-
role: "button",
|
|
92
|
-
tabIndex: 0,
|
|
93
|
-
"aria-expanded": isOpen,
|
|
94
|
-
id: `panel${index}-header`,
|
|
95
|
-
"aria-controls": `panel${index}-content`
|
|
96
|
-
}, /* @__PURE__ */ React.createElement(Text, {
|
|
97
|
-
as: "span"
|
|
98
|
-
}, item.title), /* @__PURE__ */ React.createElement(Arrow, {
|
|
99
|
-
isOpen
|
|
100
|
-
}, /* @__PURE__ */ React.createElement(ArrowDownIcon, null))), /* @__PURE__ */ React.createElement(UnmountClosed, {
|
|
101
|
-
isOpened: isOpen,
|
|
102
|
-
key: index
|
|
103
|
-
}, /* @__PURE__ */ React.createElement(Content, {
|
|
104
|
-
"aria-labelledby": `panel${index}-header`,
|
|
105
|
-
id: `panel${index}-content`,
|
|
106
|
-
role: "region",
|
|
107
|
-
className: "wysiwyg",
|
|
108
|
-
dangerouslySetInnerHTML: {
|
|
109
|
-
__html: item.text
|
|
110
|
-
}
|
|
111
|
-
})));
|
|
112
|
-
})));
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
export { Accordion, Accordion as default };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import theme from '../../theme.js';
|
|
3
|
-
|
|
4
|
-
const BadgeContainer = styled.div`
|
|
5
|
-
border-radius: 0.75rem;
|
|
6
|
-
background: ${theme.colors.secondary.main};
|
|
7
|
-
display: inline-flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
padding: 0.5rem;
|
|
11
|
-
min-width: 1.5rem;
|
|
12
|
-
height: 1.5rem;
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
cursor: default;
|
|
15
|
-
`;
|
|
16
|
-
const SmallBadgeContainer = styled(BadgeContainer)`
|
|
17
|
-
width: 1rem;
|
|
18
|
-
height: 1rem;
|
|
19
|
-
border-radius: 50%;
|
|
20
|
-
min-width: 1rem;
|
|
21
|
-
position: relative;
|
|
22
|
-
`;
|
|
23
|
-
const MiddleDot = styled.div`
|
|
24
|
-
display: block;
|
|
25
|
-
width: 100%;
|
|
26
|
-
height: 100%;
|
|
27
|
-
border-radius: 50%;
|
|
28
|
-
opacity: 0.1;
|
|
29
|
-
transform: scale(0.5);
|
|
30
|
-
background: ${theme.colors.text.dark};
|
|
31
|
-
position: absolute;
|
|
32
|
-
top: 0;
|
|
33
|
-
left: 0;
|
|
34
|
-
`;
|
|
35
|
-
const Label = styled.span`
|
|
36
|
-
font-size: 0.75rem;
|
|
37
|
-
line-height: 0.75rem;
|
|
38
|
-
color: white;
|
|
39
|
-
font-weight: ${({ theme: theme2 }) => theme2.typography.fontAlternativeBoldWeight};
|
|
40
|
-
font-family: ${({ theme: theme2 }) => theme2.typography.fontAlternativeFamily};
|
|
41
|
-
`;
|
|
42
|
-
const numberToLabel = (notificationAmount) => {
|
|
43
|
-
if (notificationAmount >= 100) {
|
|
44
|
-
return "99+";
|
|
45
|
-
}
|
|
46
|
-
return `${notificationAmount}`;
|
|
47
|
-
};
|
|
48
|
-
const Badge = ({
|
|
49
|
-
notificationAmount = 0,
|
|
50
|
-
withNumber = true,
|
|
51
|
-
...rest
|
|
52
|
-
}) => {
|
|
53
|
-
if ((notificationAmount <= 0 || !notificationAmount) && withNumber) {
|
|
54
|
-
return null;
|
|
55
|
-
}
|
|
56
|
-
if (!withNumber) {
|
|
57
|
-
return /* @__PURE__ */ React.createElement(SmallBadgeContainer, {
|
|
58
|
-
...rest
|
|
59
|
-
}, /* @__PURE__ */ React.createElement(MiddleDot, {
|
|
60
|
-
"data-test": "middle-dot"
|
|
61
|
-
}));
|
|
62
|
-
}
|
|
63
|
-
const label = numberToLabel(notificationAmount);
|
|
64
|
-
return /* @__PURE__ */ React.createElement(BadgeContainer, {
|
|
65
|
-
...rest
|
|
66
|
-
}, /* @__PURE__ */ React.createElement(Label, null, label));
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export { Badge, Badge as default };
|