@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
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React$1 = require('react');
|
|
6
|
-
var styled = require('styled-components');
|
|
7
|
-
var theme = require('../../theme.js');
|
|
8
|
-
var components_Icons_CheckCircle = require('../Icons/CheckCircle.js');
|
|
9
|
-
var components_Icons_Close = require('../Icons/Close.js');
|
|
10
|
-
var components_Icons_ErrorCircle = require('../Icons/ErrorCircle.js');
|
|
11
|
-
var components_Icons_InfoCircle = require('../Icons/InfoCircle.js');
|
|
12
|
-
var reactTransitionGroup = require('react-transition-group');
|
|
13
|
-
|
|
14
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
15
|
-
|
|
16
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
17
|
-
|
|
18
|
-
const verticalStyles = {
|
|
19
|
-
top: styled.css`
|
|
20
|
-
top: 0;
|
|
21
|
-
`,
|
|
22
|
-
bottom: styled.css`
|
|
23
|
-
bottom: 0;
|
|
24
|
-
`
|
|
25
|
-
};
|
|
26
|
-
const horizontalStyles = {
|
|
27
|
-
right: styled.css`
|
|
28
|
-
right: 0;
|
|
29
|
-
`,
|
|
30
|
-
center: styled.css`
|
|
31
|
-
left: 50%;
|
|
32
|
-
transform: translate(-50%, 0);
|
|
33
|
-
`,
|
|
34
|
-
left: styled.css`
|
|
35
|
-
left: 0;
|
|
36
|
-
`
|
|
37
|
-
};
|
|
38
|
-
const animationDuration = 200;
|
|
39
|
-
const transitionClassName = "anim";
|
|
40
|
-
const Container = styled__default['default'].div`
|
|
41
|
-
font-family: ${({ theme: theme2 }) => theme2.typography.fontBaseFamily};
|
|
42
|
-
position: fixed;
|
|
43
|
-
display: flex;
|
|
44
|
-
align-items: center;
|
|
45
|
-
|
|
46
|
-
line-height: 1rem;
|
|
47
|
-
margin: 1rem;
|
|
48
|
-
|
|
49
|
-
max-width: 630px;
|
|
50
|
-
|
|
51
|
-
border-radius: 0.4rem;
|
|
52
|
-
padding: 1.15rem 1.25rem;
|
|
53
|
-
|
|
54
|
-
font-weight: ${({ theme: theme2 }) => theme2.typography.fontBaseBoldWeight};
|
|
55
|
-
font-size: 0.875rem;
|
|
56
|
-
|
|
57
|
-
box-shadow: ${theme['default'].elevations.elevation8};
|
|
58
|
-
background-color: ${(props) => props.color !== "none" ? theme['default'].colors[props.color].main : theme['default'].colors.background.light};
|
|
59
|
-
color: ${(props) => props.color !== "none" ? theme['default'].colors.text.light : theme['default'].colors.text.dark};
|
|
60
|
-
|
|
61
|
-
${(props) => verticalStyles[props.origin.vertical || "bottom"]}
|
|
62
|
-
${(props) => horizontalStyles[props.origin.horizontal || "left"]}
|
|
63
|
-
|
|
64
|
-
transition: opacity ${animationDuration}ms ease-in;
|
|
65
|
-
|
|
66
|
-
&.${transitionClassName}-enter {
|
|
67
|
-
opacity: 0;
|
|
68
|
-
}
|
|
69
|
-
&.${transitionClassName}-enter-active {
|
|
70
|
-
opacity: 1;
|
|
71
|
-
}
|
|
72
|
-
&.${transitionClassName}-exit {
|
|
73
|
-
opacity: 1;
|
|
74
|
-
}
|
|
75
|
-
&.${transitionClassName}-exit-active {
|
|
76
|
-
opacity: 0;
|
|
77
|
-
}
|
|
78
|
-
`;
|
|
79
|
-
const Icon = styled__default['default'].div`
|
|
80
|
-
display: inline-flex;
|
|
81
|
-
margin: -0.25rem 0;
|
|
82
|
-
margin-right: 0.75rem;
|
|
83
|
-
|
|
84
|
-
${(props) => props.type === "text" && "margin-right: 0;"}
|
|
85
|
-
|
|
86
|
-
svg {
|
|
87
|
-
width: 1.5rem;
|
|
88
|
-
height: 1.5rem;
|
|
89
|
-
fill: ${(props) => props.color !== "none" ? theme['default'].colors.background.light : theme['default'].colors.background.dark};
|
|
90
|
-
}
|
|
91
|
-
`;
|
|
92
|
-
const CloseIcon = styled__default['default'](Icon)`
|
|
93
|
-
cursor: pointer;
|
|
94
|
-
|
|
95
|
-
/* Bigger click area */
|
|
96
|
-
padding: 0.25rem;
|
|
97
|
-
|
|
98
|
-
/* Negate padding */
|
|
99
|
-
margin: -0.25rem;
|
|
100
|
-
margin-left: 0.5rem;
|
|
101
|
-
|
|
102
|
-
svg {
|
|
103
|
-
width: 1rem;
|
|
104
|
-
height: 1rem;
|
|
105
|
-
}
|
|
106
|
-
`;
|
|
107
|
-
const Message = styled__default['default'].span`
|
|
108
|
-
flex: 1;
|
|
109
|
-
`;
|
|
110
|
-
const icons = {
|
|
111
|
-
error: /* @__PURE__ */ React.createElement(components_Icons_ErrorCircle['default'], null),
|
|
112
|
-
success: /* @__PURE__ */ React.createElement(components_Icons_CheckCircle['default'], null),
|
|
113
|
-
info: /* @__PURE__ */ React.createElement(components_Icons_InfoCircle['default'], null),
|
|
114
|
-
text: ""
|
|
115
|
-
};
|
|
116
|
-
const Snackbar = ({
|
|
117
|
-
message,
|
|
118
|
-
color = "none",
|
|
119
|
-
type = "info",
|
|
120
|
-
action,
|
|
121
|
-
isOpen,
|
|
122
|
-
origin = {},
|
|
123
|
-
onClose = () => {
|
|
124
|
-
},
|
|
125
|
-
onExited = () => {
|
|
126
|
-
},
|
|
127
|
-
autoHideDuration = 4e3,
|
|
128
|
-
...props
|
|
129
|
-
}) => {
|
|
130
|
-
React$1.useEffect(() => {
|
|
131
|
-
const timeout = setTimeout(onClose, autoHideDuration);
|
|
132
|
-
return () => clearTimeout(timeout);
|
|
133
|
-
}, [autoHideDuration, onClose]);
|
|
134
|
-
return /* @__PURE__ */ React.createElement(reactTransitionGroup.CSSTransition, {
|
|
135
|
-
in: isOpen,
|
|
136
|
-
timeout: animationDuration,
|
|
137
|
-
mountOnEnter: true,
|
|
138
|
-
unmountOnExit: true,
|
|
139
|
-
onExited,
|
|
140
|
-
classNames: transitionClassName
|
|
141
|
-
}, /* @__PURE__ */ React.createElement(Container, {
|
|
142
|
-
...props,
|
|
143
|
-
color,
|
|
144
|
-
origin
|
|
145
|
-
}, /* @__PURE__ */ React.createElement(Icon, {
|
|
146
|
-
color,
|
|
147
|
-
type
|
|
148
|
-
}, icons[type]), /* @__PURE__ */ React.createElement(Message, null, message), action && action, /* @__PURE__ */ React.createElement(CloseIcon, {
|
|
149
|
-
color: color != null ? color : "none",
|
|
150
|
-
onClick: onClose
|
|
151
|
-
}, /* @__PURE__ */ React.createElement(components_Icons_Close['default'], null))));
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
exports.Snackbar = Snackbar;
|
|
155
|
-
exports['default'] = Snackbar;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var theme = require('../../theme.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 getDuration = (speed) => {
|
|
13
|
-
const durations = {
|
|
14
|
-
slow: "2s",
|
|
15
|
-
default: "1s",
|
|
16
|
-
fast: "0.5s"
|
|
17
|
-
};
|
|
18
|
-
return durations[speed] || durations.default;
|
|
19
|
-
};
|
|
20
|
-
const getSize = (size) => {
|
|
21
|
-
const sizes = {
|
|
22
|
-
smaller: 1,
|
|
23
|
-
small: 2,
|
|
24
|
-
regular: 3,
|
|
25
|
-
large: 4
|
|
26
|
-
};
|
|
27
|
-
if (typeof size === "number") {
|
|
28
|
-
return size;
|
|
29
|
-
}
|
|
30
|
-
return sizes[size] || sizes.regular;
|
|
31
|
-
};
|
|
32
|
-
const spin = styled.keyframes`
|
|
33
|
-
0% {
|
|
34
|
-
transform: rotate(0deg);
|
|
35
|
-
}
|
|
36
|
-
100% {
|
|
37
|
-
transform: rotate(360deg);
|
|
38
|
-
}
|
|
39
|
-
`;
|
|
40
|
-
const StyledSpinner = styled__default['default'].div`
|
|
41
|
-
display: inline-block;
|
|
42
|
-
border-radius: 50%;
|
|
43
|
-
border-top: ${({ theme: theme2, color, size }) => `${getSize(size) / 10}em solid ${theme2.colors[color].main}`};
|
|
44
|
-
border-bottom: ${({ size }) => `${getSize(size) / 10}em solid rgba(0, 0, 0, 0.1);`};
|
|
45
|
-
border-right: ${({ size }) => `${getSize(size) / 10}em solid rgba(0, 0, 0, 0.1);`};
|
|
46
|
-
border-left: ${({ size }) => `${getSize(size) / 10}em solid rgba(0, 0, 0, 0.1);`};
|
|
47
|
-
width: ${({ size }) => getSize(size)}em;
|
|
48
|
-
height: ${({ size }) => getSize(size)}em;
|
|
49
|
-
animation: ${spin} ${({ speed }) => getDuration(speed)} infinite linear;
|
|
50
|
-
will-change: transform;
|
|
51
|
-
`;
|
|
52
|
-
const Spinner = ({
|
|
53
|
-
size = "regular",
|
|
54
|
-
color = "primary",
|
|
55
|
-
speed = "default",
|
|
56
|
-
...props
|
|
57
|
-
}) => /* @__PURE__ */ React.createElement(StyledSpinner, {
|
|
58
|
-
...props,
|
|
59
|
-
role: "status",
|
|
60
|
-
"aria-live": "polite",
|
|
61
|
-
"aria-busy": "true",
|
|
62
|
-
size,
|
|
63
|
-
speed,
|
|
64
|
-
color,
|
|
65
|
-
theme: theme['default']
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
exports['default'] = Spinner;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var theme = require('../../theme.js');
|
|
7
|
-
var typography_Heading_index = require('../../typography/Heading/index.js');
|
|
8
|
-
require('../../shared/media-queries.js');
|
|
9
|
-
|
|
10
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
-
|
|
12
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
13
|
-
|
|
14
|
-
const Container = styled__default['default'].div`
|
|
15
|
-
min-height: 4rem;
|
|
16
|
-
`;
|
|
17
|
-
const Line = styled__default['default'].div`
|
|
18
|
-
margin: auto;
|
|
19
|
-
width: 2px;
|
|
20
|
-
height: 100%;
|
|
21
|
-
background-color: ${theme['default'].colors.primary.main};
|
|
22
|
-
`;
|
|
23
|
-
const Graphic = styled__default['default'].div`
|
|
24
|
-
margin-right: 0.75rem;
|
|
25
|
-
`;
|
|
26
|
-
const Step = styled__default['default'].div`
|
|
27
|
-
font-family: ${({ theme: theme2 }) => theme2.typography.fontBaseFamily};
|
|
28
|
-
display: flex;
|
|
29
|
-
padding-bottom: 1rem;
|
|
30
|
-
|
|
31
|
-
&:last-child {
|
|
32
|
-
${Line} {
|
|
33
|
-
display: none;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
`;
|
|
37
|
-
const Circle = styled__default['default'].div`
|
|
38
|
-
width: 3rem;
|
|
39
|
-
height: 3rem;
|
|
40
|
-
border-radius: 3rem;
|
|
41
|
-
|
|
42
|
-
color: white;
|
|
43
|
-
display: flex;
|
|
44
|
-
align-items: center;
|
|
45
|
-
justify-content: center;
|
|
46
|
-
background-color: ${theme['default'].colors.primary.main};
|
|
47
|
-
`;
|
|
48
|
-
const CircleText = styled__default['default'](typography_Heading_index.Title)`
|
|
49
|
-
font-size: 1.5rem;
|
|
50
|
-
font-variant: lining-nums;
|
|
51
|
-
`;
|
|
52
|
-
const Stepper = ({ children, ...props }) => {
|
|
53
|
-
return /* @__PURE__ */ React.createElement(Container, {
|
|
54
|
-
...props
|
|
55
|
-
}, children.map((step, index) => /* @__PURE__ */ React.createElement(Step, {
|
|
56
|
-
key: index
|
|
57
|
-
}, /* @__PURE__ */ React.createElement(Graphic, null, /* @__PURE__ */ React.createElement(Circle, null, /* @__PURE__ */ React.createElement(CircleText, null, index + 1)), /* @__PURE__ */ React.createElement(Line, null)), step)));
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
exports.Stepper = Stepper;
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React$1 = require('react');
|
|
6
|
-
var styled = require('styled-components');
|
|
7
|
-
var theme = require('../../theme.js');
|
|
8
|
-
var typography_Heading_index = require('../../typography/Heading/index.js');
|
|
9
|
-
var components_Icons_CheckIcon = require('../Icons/CheckIcon.js');
|
|
10
|
-
var components_Icons_Arrow = require('../Icons/Arrow.js');
|
|
11
|
-
var shared_helpers = require('../../shared/helpers.js');
|
|
12
|
-
var reactCollapse = require('react-collapse');
|
|
13
|
-
require('../../shared/media-queries.js');
|
|
14
|
-
|
|
15
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
|
-
|
|
17
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
18
|
-
|
|
19
|
-
const DEFAULT_TRANSITION_TIME = "200ms";
|
|
20
|
-
const Container = styled__default['default'].div`
|
|
21
|
-
.ReactCollapse--collapse {
|
|
22
|
-
transition: height ${DEFAULT_TRANSITION_TIME} ease-in-out;
|
|
23
|
-
}
|
|
24
|
-
`;
|
|
25
|
-
const HeaderExpandedProps = styled.css`
|
|
26
|
-
margin-top: 0.25rem;
|
|
27
|
-
transform: rotate(-180deg);
|
|
28
|
-
`;
|
|
29
|
-
const Header = styled__default['default'].div`
|
|
30
|
-
display: flex;
|
|
31
|
-
align-items: center;
|
|
32
|
-
height: 4rem;
|
|
33
|
-
|
|
34
|
-
color: ${(props) => props.isDisabled ? theme['default'].colors.text.disabled : theme['default'].colors.text.dark};
|
|
35
|
-
`;
|
|
36
|
-
const StyledTitle = styled__default['default'](typography_Heading_index.Title)`
|
|
37
|
-
margin: 0;
|
|
38
|
-
`;
|
|
39
|
-
const HeaderArrow = styled__default['default'](components_Icons_Arrow['default'])`
|
|
40
|
-
margin-left: auto;
|
|
41
|
-
height: 1.25rem;
|
|
42
|
-
width: 1.25rem;
|
|
43
|
-
margin-top: -0.75rem;
|
|
44
|
-
|
|
45
|
-
fill: currentColor;
|
|
46
|
-
|
|
47
|
-
transition: ${DEFAULT_TRANSITION_TIME};
|
|
48
|
-
transform: rotate(0deg);
|
|
49
|
-
transform-origin: center;
|
|
50
|
-
${(props) => props.isExpanded && HeaderExpandedProps};
|
|
51
|
-
`;
|
|
52
|
-
const CircleIsCompleteStyles = (color) => styled.css`
|
|
53
|
-
color: white;
|
|
54
|
-
background-color: ${theme['default'].colors[color].main};
|
|
55
|
-
`;
|
|
56
|
-
const CircleIsDisabledStyles = (isComplete, color) => styled.css`
|
|
57
|
-
fill: white;
|
|
58
|
-
border: 2px solid ${shared_helpers.fadedColor(theme['default'].colors[color].main, 0.2)};
|
|
59
|
-
|
|
60
|
-
${isComplete && `
|
|
61
|
-
border: 2px solid ${shared_helpers.fadedColor(theme['default'].colors[color].main, 0)};
|
|
62
|
-
background-color: ${shared_helpers.fadedColor(theme['default'].colors[color].main, 0.5)};
|
|
63
|
-
`}
|
|
64
|
-
`;
|
|
65
|
-
const Circle = styled__default['default'].div`
|
|
66
|
-
font-family: ${({ theme: theme2 }) => theme2.typography.fontBaseFamily};
|
|
67
|
-
display: flex;
|
|
68
|
-
align-items: center;
|
|
69
|
-
justify-content: center;
|
|
70
|
-
|
|
71
|
-
font-size: 1.25rem;
|
|
72
|
-
margin-right: 0.75rem;
|
|
73
|
-
width: 2rem;
|
|
74
|
-
height: 2rem;
|
|
75
|
-
border-radius: 2rem;
|
|
76
|
-
border: 2px solid ${(props) => theme['default'].colors[props.color].main};
|
|
77
|
-
|
|
78
|
-
svg {
|
|
79
|
-
fill: currentColor;
|
|
80
|
-
height: 1rem;
|
|
81
|
-
width: 1rem;
|
|
82
|
-
|
|
83
|
-
/* Kvd.se compatible stuff */
|
|
84
|
-
margin: 0;
|
|
85
|
-
top: inherit;
|
|
86
|
-
left: inherit;
|
|
87
|
-
font-size: inherit;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
span {
|
|
91
|
-
font-variant: lining-nums;
|
|
92
|
-
margin-top: 0.1rem;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
transition: background-color ${DEFAULT_TRANSITION_TIME};
|
|
96
|
-
${(props) => props.isComplete && CircleIsCompleteStyles(props.color)};
|
|
97
|
-
${(props) => props.isDisabled && CircleIsDisabledStyles(props.isComplete, props.color)};
|
|
98
|
-
`;
|
|
99
|
-
const StepperAccordion = (props) => {
|
|
100
|
-
const [isExpanded, setIsExpanded] = React$1.useState(props.isExpanded || false);
|
|
101
|
-
const toggleIsExpanded = React$1.useCallback(() => {
|
|
102
|
-
if (!props.isDisabled) {
|
|
103
|
-
setIsExpanded((previousValue) => !previousValue);
|
|
104
|
-
}
|
|
105
|
-
}, [props.isDisabled]);
|
|
106
|
-
React$1.useEffect(() => {
|
|
107
|
-
setIsExpanded(props.isExpanded || false);
|
|
108
|
-
}, [props.isDisabled, props.isExpanded]);
|
|
109
|
-
const hasSteps = props.step || props.step === 0;
|
|
110
|
-
const handleClick = (event) => {
|
|
111
|
-
const onClick = props.onClick || toggleIsExpanded;
|
|
112
|
-
if (!props.isDisabled) {
|
|
113
|
-
onClick(event);
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
return /* @__PURE__ */ React.createElement(Container, null, /* @__PURE__ */ React.createElement(Header, {
|
|
117
|
-
...props,
|
|
118
|
-
onClick: handleClick,
|
|
119
|
-
isExpanded,
|
|
120
|
-
isDisabled: props.isDisabled || false
|
|
121
|
-
}, hasSteps && /* @__PURE__ */ React.createElement(Circle, {
|
|
122
|
-
isComplete: props.isComplete || false,
|
|
123
|
-
isDisabled: props.isDisabled || false,
|
|
124
|
-
color: props.color || "primary"
|
|
125
|
-
}, props.isComplete ? /* @__PURE__ */ React.createElement(components_Icons_CheckIcon['default'], null) : /* @__PURE__ */ React.createElement("span", null, props.step)), /* @__PURE__ */ React.createElement(StyledTitle, null, props.title), /* @__PURE__ */ React.createElement(HeaderArrow, {
|
|
126
|
-
isExpanded
|
|
127
|
-
})), /* @__PURE__ */ React.createElement(reactCollapse.Collapse, {
|
|
128
|
-
isOpened: isExpanded
|
|
129
|
-
}, props.children), props.closedChildren && props.closedChildren);
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
exports.StepperAccordion = StepperAccordion;
|
|
133
|
-
exports['default'] = StepperAccordion;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React$1 = require('react');
|
|
6
|
-
var styled = require('styled-components');
|
|
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 TabsContainer = styled__default['default'].div`
|
|
13
|
-
display: inline-flex;
|
|
14
|
-
border-bottom: 1px solid ${({ theme }) => theme.colors.gray.light4};
|
|
15
|
-
`;
|
|
16
|
-
const TabWrapper = styled__default['default'].div`
|
|
17
|
-
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
18
|
-
font-weight: ${({ theme }) => theme.typography.fontAlternativeRegularWeight};
|
|
19
|
-
padding: 1em;
|
|
20
|
-
border-bottom: ${({ theme, isActive, activeColor }) => isActive ? `3px solid ${theme.colors[activeColor].main}` : "3px solid transparent"};
|
|
21
|
-
transition: color 0.3s ease, border 0.3s ease;
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
`;
|
|
24
|
-
const Tab = ({
|
|
25
|
-
children,
|
|
26
|
-
isActive = false,
|
|
27
|
-
onClick,
|
|
28
|
-
activeColor = "primary"
|
|
29
|
-
}) => {
|
|
30
|
-
return /* @__PURE__ */ React.createElement(TabWrapper, {
|
|
31
|
-
isActive,
|
|
32
|
-
onClick,
|
|
33
|
-
activeColor
|
|
34
|
-
}, children);
|
|
35
|
-
};
|
|
36
|
-
const Tabs = ({
|
|
37
|
-
activeIndex,
|
|
38
|
-
activeColor = "primary",
|
|
39
|
-
children,
|
|
40
|
-
onTabClick,
|
|
41
|
-
className
|
|
42
|
-
}) => {
|
|
43
|
-
if (React$1.Children.count(children) <= 1) {
|
|
44
|
-
console.error("<Tabs /> component has too few children!");
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
return /* @__PURE__ */ React.createElement(TabsContainer, {
|
|
48
|
-
className
|
|
49
|
-
}, React$1.Children.map(children, (child, index) => {
|
|
50
|
-
if (!child) {
|
|
51
|
-
return null;
|
|
52
|
-
}
|
|
53
|
-
const onClick = child.props.onClick;
|
|
54
|
-
return /* @__PURE__ */ React.createElement(TabWrapper, {
|
|
55
|
-
...child.props,
|
|
56
|
-
isActive: activeIndex === index,
|
|
57
|
-
activeColor,
|
|
58
|
-
onClick: (event) => {
|
|
59
|
-
onTabClick(index);
|
|
60
|
-
if (typeof onClick === "function") {
|
|
61
|
-
onClick(event);
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
as: child.type || "div"
|
|
65
|
-
}, child.props.children);
|
|
66
|
-
}));
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
exports.Tab = Tab;
|
|
70
|
-
exports.Tabs = Tabs;
|
|
71
|
-
exports['default'] = Tabs;
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React$1 = require('react');
|
|
6
|
-
var styled = require('styled-components');
|
|
7
|
-
var theme = require('../../theme.js');
|
|
8
|
-
var components_FieldLabel = require('../FieldLabel.js');
|
|
9
|
-
var typography_BodyText_index = require('../../typography/BodyText/index.js');
|
|
10
|
-
|
|
11
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
-
|
|
13
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
14
|
-
|
|
15
|
-
const disabledStyles = styled.css`
|
|
16
|
-
border: 1px solid ${theme['default'].colors.gray.light1};
|
|
17
|
-
color: ${theme['default'].colors.gray.dark1};
|
|
18
|
-
fill: ${theme['default'].colors.gray.light1};
|
|
19
|
-
`;
|
|
20
|
-
const errorStyles = styled.css`
|
|
21
|
-
border: 1px solid ${theme['default'].colors.error.main};
|
|
22
|
-
`;
|
|
23
|
-
const focusStyles = styled.css`
|
|
24
|
-
color: ${theme['default'].colors.text.dark};
|
|
25
|
-
border: 1px solid ${theme['default'].colors.text.dark};
|
|
26
|
-
fill: ${theme['default'].colors.text.dark};
|
|
27
|
-
`;
|
|
28
|
-
const TextAreaWrapper = styled__default['default'].div`
|
|
29
|
-
position: relative;
|
|
30
|
-
padding: 0;
|
|
31
|
-
display: inline-block;
|
|
32
|
-
`;
|
|
33
|
-
const InputWrapper = styled__default['default'].div`
|
|
34
|
-
display: inline-black;
|
|
35
|
-
|
|
36
|
-
color: ${theme['default'].colors.gray.light1};
|
|
37
|
-
fill: ${theme['default'].colors.gray.light1};
|
|
38
|
-
background-color: ${theme['default'].colors.background.light};
|
|
39
|
-
|
|
40
|
-
border: 1px solid ${theme['default'].colors.gray.light1};
|
|
41
|
-
border-radius: 0.25em;
|
|
42
|
-
transition: all 150ms;
|
|
43
|
-
|
|
44
|
-
padding: 0.7rem 0.75rem;
|
|
45
|
-
|
|
46
|
-
${({ hasError, isFocused }) => !hasError && isFocused && focusStyles}
|
|
47
|
-
${({ disabled }) => disabled && disabledStyles}
|
|
48
|
-
${({ hasError }) => hasError && errorStyles}
|
|
49
|
-
${({ centered }) => centered && `text-align: center;`}
|
|
50
|
-
`;
|
|
51
|
-
const TextAreaInput = styled__default['default'].textarea`
|
|
52
|
-
${typography_BodyText_index.BodyTextStyle}
|
|
53
|
-
|
|
54
|
-
width: 100%;
|
|
55
|
-
cursor: text;
|
|
56
|
-
outline: none;
|
|
57
|
-
border: none;
|
|
58
|
-
background-color: transparent;
|
|
59
|
-
|
|
60
|
-
${({ resize }) => !resize && "resize: none;"}
|
|
61
|
-
`;
|
|
62
|
-
const Suffix = styled__default['default'].div`
|
|
63
|
-
font-family: ${({ theme: theme2 }) => theme2.typography.fontBaseFamily};
|
|
64
|
-
`;
|
|
65
|
-
const HelperText = styled__default['default'].span`
|
|
66
|
-
display: block;
|
|
67
|
-
font-family: ${({ theme: theme2 }) => theme2.typography.fontBaseFamily};
|
|
68
|
-
font-size: 0.81rem;
|
|
69
|
-
|
|
70
|
-
margin-top: 0.25rem;
|
|
71
|
-
margin-left: 0.85rem;
|
|
72
|
-
|
|
73
|
-
color: ${({ hasError }) => hasError ? theme['default'].colors.error.main : theme['default'].colors.text.dark};
|
|
74
|
-
|
|
75
|
-
${({ centered }) => centered && `width: 100%; text-align: center; display: block;`}
|
|
76
|
-
`;
|
|
77
|
-
const TextArea = ({
|
|
78
|
-
placeholder = "",
|
|
79
|
-
isDisabled = false,
|
|
80
|
-
centered = false,
|
|
81
|
-
hasError = false,
|
|
82
|
-
className,
|
|
83
|
-
helperText,
|
|
84
|
-
label = "",
|
|
85
|
-
resize = true,
|
|
86
|
-
...props
|
|
87
|
-
}) => {
|
|
88
|
-
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
89
|
-
const hasValue = Boolean(props.value);
|
|
90
|
-
return /* @__PURE__ */ React.createElement(TextAreaWrapper, {
|
|
91
|
-
className
|
|
92
|
-
}, /* @__PURE__ */ React.createElement(InputWrapper, {
|
|
93
|
-
isFocused,
|
|
94
|
-
disabled: isDisabled,
|
|
95
|
-
centered,
|
|
96
|
-
hasError,
|
|
97
|
-
hasPlaceholder: !!placeholder
|
|
98
|
-
}, /* @__PURE__ */ React.createElement(TextAreaInput, {
|
|
99
|
-
...props,
|
|
100
|
-
resize,
|
|
101
|
-
onFocus: () => setIsFocused(true),
|
|
102
|
-
onBlur: () => setIsFocused(false),
|
|
103
|
-
disabled: isDisabled,
|
|
104
|
-
theme: theme['default'],
|
|
105
|
-
placeholder: label && !isFocused ? "" : placeholder
|
|
106
|
-
}), props.suffix && /* @__PURE__ */ React.createElement(Suffix, null, props.suffix)), label && /* @__PURE__ */ React.createElement(components_FieldLabel.Label, {
|
|
107
|
-
isFocused,
|
|
108
|
-
centered,
|
|
109
|
-
hasError,
|
|
110
|
-
hasValue,
|
|
111
|
-
disabled: isDisabled,
|
|
112
|
-
theme: theme['default']
|
|
113
|
-
}, label), helperText && /* @__PURE__ */ React.createElement(HelperText, {
|
|
114
|
-
centered,
|
|
115
|
-
hasError
|
|
116
|
-
}, helperText));
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
exports.TextArea = TextArea;
|
|
120
|
-
exports['default'] = TextArea;
|