@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/package.json
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kvdbil/components",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"module": "esm/index.js",
|
|
7
|
-
"types": "types/index.d.ts",
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"main": "kvdbil-components.js",
|
|
5
|
+
"types": "index.d.ts",
|
|
8
6
|
"scripts": {
|
|
9
7
|
"start": "yarn storybook",
|
|
10
8
|
"test": "CI=true react-scripts test",
|
|
@@ -12,14 +10,13 @@
|
|
|
12
10
|
"test:watch": "react-scripts test",
|
|
13
11
|
"generateIcons": "npx @svgr/cli --icon ./.prettierrc --template ./src/icons/template.js -d ./src/icons/components ./src/icons/svgs --typescript",
|
|
14
12
|
"build:rollup": "rollup -c",
|
|
15
|
-
"build": "yarn run generateIcons && yarn lint && yarn test && rollup -c
|
|
13
|
+
"build": "yarn run generateIcons && yarn lint && yarn test && rollup -c",
|
|
16
14
|
"lint": "eslint --fix --ext .js,.jsx,.ts,.tsx,.mdx src",
|
|
17
15
|
"dev": "yarn storybook",
|
|
18
16
|
"storybook": "start-storybook -s ./public -p 6006 watch-css",
|
|
19
17
|
"build-storybook": "build-storybook -s ./public",
|
|
20
18
|
"updateSnapshots": "yarn test -u",
|
|
21
|
-
"analyze": "rollup -c rollup.config.analyze.js"
|
|
22
|
-
"create-declaration": "yarn tsc --emitDeclarationOnly --noEmit false"
|
|
19
|
+
"analyze": "rollup -c rollup.config.analyze.js"
|
|
23
20
|
},
|
|
24
21
|
"peerDependencies": {
|
|
25
22
|
"react": ">= 17.0.0",
|
|
@@ -52,9 +49,9 @@
|
|
|
52
49
|
"@storybook/react": "^6.3.8",
|
|
53
50
|
"@svgr/cli": "^5.5.0",
|
|
54
51
|
"@team-griffin/install-self-peers": "^1.1.1",
|
|
55
|
-
"@testing-library/jest-dom": "^5.
|
|
56
|
-
"@testing-library/react": "^
|
|
57
|
-
"@testing-library/user-event": "^13.
|
|
52
|
+
"@testing-library/jest-dom": "^5.14.1",
|
|
53
|
+
"@testing-library/react": "^12.1.0",
|
|
54
|
+
"@testing-library/user-event": "^13.2.1",
|
|
58
55
|
"@types/classnames": "^2.2.11",
|
|
59
56
|
"@types/jest": "^26.0.14",
|
|
60
57
|
"@types/node": "^14.6.4",
|
|
@@ -68,7 +65,6 @@
|
|
|
68
65
|
"@typescript-eslint/eslint-plugin": "^4.30.0",
|
|
69
66
|
"@typescript-eslint/parser": "^4.30.0",
|
|
70
67
|
"babel-plugin-styled-components": "^1.10.0",
|
|
71
|
-
"esbuild": "^0.12.29",
|
|
72
68
|
"eslint-config-prettier": "^8.3.0",
|
|
73
69
|
"eslint-config-react-app": "^6.0.0",
|
|
74
70
|
"eslint-import-resolver-typescript": "^2.4.0",
|
|
@@ -88,15 +84,15 @@
|
|
|
88
84
|
"react-is": "^16.13.1",
|
|
89
85
|
"react-scripts": "^4.0.3",
|
|
90
86
|
"react-select": "^3.0.4",
|
|
87
|
+
"react-select-event": "^5.3.0",
|
|
91
88
|
"react-transition-group": "^4.0.0",
|
|
92
89
|
"rollup": "^2.56.3",
|
|
93
|
-
"rollup-plugin-esbuild": "^4.5.0",
|
|
94
90
|
"rollup-plugin-import-css": "^3.0.0",
|
|
95
|
-
"rollup-plugin-multi-input": "^1.3.1",
|
|
96
91
|
"rollup-plugin-terser": "^7.0.2",
|
|
97
92
|
"rollup-plugin-visualizer": "^5.5.2",
|
|
98
93
|
"standard-version": "^9.3.1",
|
|
99
94
|
"storybook": "^6.3.8",
|
|
95
|
+
"storybook-addon-designs": "^6.1.0",
|
|
100
96
|
"styled-components": "^5.2.0",
|
|
101
97
|
"tslib": "^2.0.1",
|
|
102
98
|
"typescript": "4.3.5"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/cjs/ColorCard.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var utils_utils = require('./utils/utils.js');
|
|
7
|
-
var theme = require('./theme.js');
|
|
8
|
-
|
|
9
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
-
|
|
11
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
12
|
-
|
|
13
|
-
const SubList = styled__default['default'].ul`
|
|
14
|
-
padding-left: 2rem;
|
|
15
|
-
`;
|
|
16
|
-
const ColorItem = styled__default['default'].li`
|
|
17
|
-
list-style: none;
|
|
18
|
-
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.03);
|
|
19
|
-
border: 1px solid ${theme['default'].colors.gray.light2};
|
|
20
|
-
border-radius: 4px;
|
|
21
|
-
font-family: 'Ralway', sans-serif;
|
|
22
|
-
margin-top: 0.75rem;
|
|
23
|
-
`;
|
|
24
|
-
const Header = styled__default['default'].span`
|
|
25
|
-
text-transform: capitalize;
|
|
26
|
-
padding: 0.5em;
|
|
27
|
-
display: block;
|
|
28
|
-
border-bottom: 1px solid ${theme['default'].colors.gray.light2};
|
|
29
|
-
`;
|
|
30
|
-
const Color = styled__default['default'].li`
|
|
31
|
-
display: block;
|
|
32
|
-
background: ${({ hex }) => hex};
|
|
33
|
-
color: ${({ hex }) => utils_utils.getLuminosity(hex) < 40 ? "#fff" : "#000"};
|
|
34
|
-
padding: 1em;
|
|
35
|
-
`;
|
|
36
|
-
const SwatchArea = styled__default['default'].ul`
|
|
37
|
-
margin: 0;
|
|
38
|
-
padding: 0;
|
|
39
|
-
display: flex;
|
|
40
|
-
flex-direction: column;
|
|
41
|
-
`;
|
|
42
|
-
const getColor = (variants) => Object.entries(variants).map(([name, hex]) => typeof hex === "string" ? /* @__PURE__ */ React.createElement(Color, {
|
|
43
|
-
hex,
|
|
44
|
-
key: hex
|
|
45
|
-
}, name, " (", hex, ")") : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Header, null, name), /* @__PURE__ */ React.createElement(SubList, null, getColor(hex))));
|
|
46
|
-
const ColorCard = ({ colorName, variants }) => /* @__PURE__ */ React.createElement(ColorItem, null, /* @__PURE__ */ React.createElement(Header, null, colorName), /* @__PURE__ */ React.createElement(SwatchArea, null, getColor(variants)));
|
|
47
|
-
|
|
48
|
-
exports['default'] = ColorCard;
|
package/cjs/ElevationCard.js
DELETED
|
@@ -1,35 +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 Card = styled__default['default'].div`
|
|
12
|
-
font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
|
|
13
|
-
font-weight: ${({ theme }) => theme.typography.fontAlternativeRegularWeight};
|
|
14
|
-
font-size: 1.25rem;
|
|
15
|
-
box-shadow: ${({ elevation }) => elevation};
|
|
16
|
-
width: 14rem;
|
|
17
|
-
height: 10rem;
|
|
18
|
-
margin: 1rem;
|
|
19
|
-
border-radius: 4px;
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
`;
|
|
24
|
-
const ElevationCard = ({
|
|
25
|
-
children,
|
|
26
|
-
value,
|
|
27
|
-
as = "div"
|
|
28
|
-
}) => {
|
|
29
|
-
return /* @__PURE__ */ React.createElement(Card, {
|
|
30
|
-
as,
|
|
31
|
-
elevation: value
|
|
32
|
-
}, children);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
exports.ElevationCard = ElevationCard;
|
package/cjs/Interfaces.js
DELETED
package/cjs/Types.js
DELETED
|
@@ -1,124 +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 reactCollapse = require('react-collapse');
|
|
8
|
-
var shared_mediaQueries = require('../../shared/media-queries.js');
|
|
9
|
-
var icons_components_ArrowDownIcon = require('../../icons/components/ArrowDownIcon.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 Container = styled__default['default'].div`
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
.ReactCollapse--collapse {
|
|
19
|
-
transition: height 300ms;
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
22
|
-
const List = styled__default['default'].ul`
|
|
23
|
-
margin: 0;
|
|
24
|
-
padding: 0;
|
|
25
|
-
list-style: none;
|
|
26
|
-
`;
|
|
27
|
-
const Title = styled__default['default'].div`
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: row;
|
|
30
|
-
justify-content: space-between;
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
margin: 0.5rem 0;
|
|
33
|
-
`;
|
|
34
|
-
const Arrow = styled__default['default'].div`
|
|
35
|
-
display: flex;
|
|
36
|
-
justify-content: center;
|
|
37
|
-
align-items: center;
|
|
38
|
-
font-size: 0.75rem;
|
|
39
|
-
color: ${({ theme }) => theme.colors.text.dark};
|
|
40
|
-
transition: 200ms ease-in-out;
|
|
41
|
-
transform: ${({ isOpen }) => `rotate(${isOpen ? "180deg" : "0deg"})`};
|
|
42
|
-
`;
|
|
43
|
-
const Item = styled__default['default'].li`
|
|
44
|
-
border-top: ${({ theme }) => `1px solid ${theme.colors.gray.light2}`};
|
|
45
|
-
padding: ${({ isOpen }) => isOpen ? "0.5rem 0 1rem 0" : "0.5rem 0"};
|
|
46
|
-
|
|
47
|
-
&:last-child {
|
|
48
|
-
border-bottom: ${({ theme }) => `1px solid ${theme.colors.gray.light2}`};
|
|
49
|
-
}
|
|
50
|
-
`;
|
|
51
|
-
const Text = styled__default['default'].span`
|
|
52
|
-
color: ${({ theme }) => theme.colors.text.dark};
|
|
53
|
-
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
54
|
-
font-size: 0.9375rem;
|
|
55
|
-
font-weight: ${({ theme }) => theme.typography.fontBaseBoldWeight};
|
|
56
|
-
`;
|
|
57
|
-
const Content = styled__default['default'].div`
|
|
58
|
-
font-family: ${({ theme }) => theme.typography.fontBaseFamily};
|
|
59
|
-
color: ${({ theme }) => theme.colors.text.dark};
|
|
60
|
-
font-size: 0.9375rem;
|
|
61
|
-
font-weight: ${({ theme }) => theme.typography.fontBaseRegularWeight};
|
|
62
|
-
line-height: 1.3;
|
|
63
|
-
transition: 200ms ease-in-out;
|
|
64
|
-
${shared_mediaQueries.mq("tablet")} {
|
|
65
|
-
padding: 0;
|
|
66
|
-
}
|
|
67
|
-
& > * {
|
|
68
|
-
margin-top: 0;
|
|
69
|
-
margin-bottom: 0;
|
|
70
|
-
}
|
|
71
|
-
`;
|
|
72
|
-
const Accordion = ({ items, ...props }) => {
|
|
73
|
-
const [isOpened, setIsOpened] = React$1.useState({});
|
|
74
|
-
const toggleIsOpened = (index) => {
|
|
75
|
-
setIsOpened((prevState) => ({ ...prevState, [index]: !prevState[index] }));
|
|
76
|
-
};
|
|
77
|
-
const onClick = (index) => () => {
|
|
78
|
-
toggleIsOpened(index);
|
|
79
|
-
};
|
|
80
|
-
const onKeyPress = (index) => (e) => {
|
|
81
|
-
if (e.key === "Enter") {
|
|
82
|
-
toggleIsOpened(index);
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
return /* @__PURE__ */ React.createElement(Container, {
|
|
86
|
-
...props
|
|
87
|
-
}, /* @__PURE__ */ React.createElement(List, {
|
|
88
|
-
className: "accordionList"
|
|
89
|
-
}, items.map((item, index) => {
|
|
90
|
-
const isOpen = Boolean(isOpened[index]);
|
|
91
|
-
return /* @__PURE__ */ React.createElement(Item, {
|
|
92
|
-
key: item.title,
|
|
93
|
-
isOpen,
|
|
94
|
-
className: "accordionItem"
|
|
95
|
-
}, /* @__PURE__ */ React.createElement(Title, {
|
|
96
|
-
onClick: onClick(index),
|
|
97
|
-
onKeyPress: onKeyPress(index),
|
|
98
|
-
className: "accordionItemTitle",
|
|
99
|
-
role: "button",
|
|
100
|
-
tabIndex: 0,
|
|
101
|
-
"aria-expanded": isOpen,
|
|
102
|
-
id: `panel${index}-header`,
|
|
103
|
-
"aria-controls": `panel${index}-content`
|
|
104
|
-
}, /* @__PURE__ */ React.createElement(Text, {
|
|
105
|
-
as: "span"
|
|
106
|
-
}, item.title), /* @__PURE__ */ React.createElement(Arrow, {
|
|
107
|
-
isOpen
|
|
108
|
-
}, /* @__PURE__ */ React.createElement(icons_components_ArrowDownIcon['default'], null))), /* @__PURE__ */ React.createElement(reactCollapse.UnmountClosed, {
|
|
109
|
-
isOpened: isOpen,
|
|
110
|
-
key: index
|
|
111
|
-
}, /* @__PURE__ */ React.createElement(Content, {
|
|
112
|
-
"aria-labelledby": `panel${index}-header`,
|
|
113
|
-
id: `panel${index}-content`,
|
|
114
|
-
role: "region",
|
|
115
|
-
className: "wysiwyg",
|
|
116
|
-
dangerouslySetInnerHTML: {
|
|
117
|
-
__html: item.text
|
|
118
|
-
}
|
|
119
|
-
})));
|
|
120
|
-
})));
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
exports.Accordion = Accordion;
|
|
124
|
-
exports['default'] = Accordion;
|
|
@@ -1,78 +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 BadgeContainer = styled__default['default'].div`
|
|
13
|
-
border-radius: 0.75rem;
|
|
14
|
-
background: ${theme['default'].colors.secondary.main};
|
|
15
|
-
display: inline-flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
padding: 0.5rem;
|
|
19
|
-
min-width: 1.5rem;
|
|
20
|
-
height: 1.5rem;
|
|
21
|
-
box-sizing: border-box;
|
|
22
|
-
cursor: default;
|
|
23
|
-
`;
|
|
24
|
-
const SmallBadgeContainer = styled__default['default'](BadgeContainer)`
|
|
25
|
-
width: 1rem;
|
|
26
|
-
height: 1rem;
|
|
27
|
-
border-radius: 50%;
|
|
28
|
-
min-width: 1rem;
|
|
29
|
-
position: relative;
|
|
30
|
-
`;
|
|
31
|
-
const MiddleDot = styled__default['default'].div`
|
|
32
|
-
display: block;
|
|
33
|
-
width: 100%;
|
|
34
|
-
height: 100%;
|
|
35
|
-
border-radius: 50%;
|
|
36
|
-
opacity: 0.1;
|
|
37
|
-
transform: scale(0.5);
|
|
38
|
-
background: ${theme['default'].colors.text.dark};
|
|
39
|
-
position: absolute;
|
|
40
|
-
top: 0;
|
|
41
|
-
left: 0;
|
|
42
|
-
`;
|
|
43
|
-
const Label = styled__default['default'].span`
|
|
44
|
-
font-size: 0.75rem;
|
|
45
|
-
line-height: 0.75rem;
|
|
46
|
-
color: white;
|
|
47
|
-
font-weight: ${({ theme: theme2 }) => theme2.typography.fontAlternativeBoldWeight};
|
|
48
|
-
font-family: ${({ theme: theme2 }) => theme2.typography.fontAlternativeFamily};
|
|
49
|
-
`;
|
|
50
|
-
const numberToLabel = (notificationAmount) => {
|
|
51
|
-
if (notificationAmount >= 100) {
|
|
52
|
-
return "99+";
|
|
53
|
-
}
|
|
54
|
-
return `${notificationAmount}`;
|
|
55
|
-
};
|
|
56
|
-
const Badge = ({
|
|
57
|
-
notificationAmount = 0,
|
|
58
|
-
withNumber = true,
|
|
59
|
-
...rest
|
|
60
|
-
}) => {
|
|
61
|
-
if ((notificationAmount <= 0 || !notificationAmount) && withNumber) {
|
|
62
|
-
return null;
|
|
63
|
-
}
|
|
64
|
-
if (!withNumber) {
|
|
65
|
-
return /* @__PURE__ */ React.createElement(SmallBadgeContainer, {
|
|
66
|
-
...rest
|
|
67
|
-
}, /* @__PURE__ */ React.createElement(MiddleDot, {
|
|
68
|
-
"data-test": "middle-dot"
|
|
69
|
-
}));
|
|
70
|
-
}
|
|
71
|
-
const label = numberToLabel(notificationAmount);
|
|
72
|
-
return /* @__PURE__ */ React.createElement(BadgeContainer, {
|
|
73
|
-
...rest
|
|
74
|
-
}, /* @__PURE__ */ React.createElement(Label, null, label));
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
exports.Badge = Badge;
|
|
78
|
-
exports['default'] = Badge;
|
|
@@ -1,170 +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 components_Spinner_index = require('../Spinner/index.js');
|
|
8
|
-
var typography_ButtonText_index = require('../../typography/ButtonText/index.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 getFontStyles = (size) => {
|
|
15
|
-
switch (size) {
|
|
16
|
-
case "smaller":
|
|
17
|
-
return typography_ButtonText_index.ButtonSmallTextStyle;
|
|
18
|
-
case "small":
|
|
19
|
-
return typography_ButtonText_index.ButtonRegularTextStyle;
|
|
20
|
-
case "regular":
|
|
21
|
-
return typography_ButtonText_index.ButtonRegularTextStyle;
|
|
22
|
-
case "large":
|
|
23
|
-
return typography_ButtonText_index.ButtonLargeTextStyle;
|
|
24
|
-
default:
|
|
25
|
-
return typography_ButtonText_index.ButtonRegularTextStyle;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
const smallerSizeStyles = (isLoading) => `
|
|
29
|
-
min-width: 76px;
|
|
30
|
-
padding: ${isLoading ? "7px 10px 5.5px" : "10px 10px 8px"};
|
|
31
|
-
`;
|
|
32
|
-
const smallSizeStyles = (isLoading) => `
|
|
33
|
-
min-width: 76px;
|
|
34
|
-
padding: ${isLoading ? "8px 10px 6px" : "11px 10px 9px"};
|
|
35
|
-
`;
|
|
36
|
-
const regularSizeStyles = (isLoading) => `
|
|
37
|
-
min-width: 250px;
|
|
38
|
-
padding: ${isLoading ? "7px 22px 5px" : "15px 22px 13px"};
|
|
39
|
-
`;
|
|
40
|
-
const largeSizeStyles = (isLoading) => `
|
|
41
|
-
min-width: 250px;
|
|
42
|
-
padding: ${isLoading ? "9px 22px 6px" : "21px 22px 19px"};
|
|
43
|
-
`;
|
|
44
|
-
const solidColorStyles = (theme2) => (color) => `
|
|
45
|
-
color: white;
|
|
46
|
-
border-color: ${theme2.colors[color].main};
|
|
47
|
-
background-color: ${theme2.colors[color].main};
|
|
48
|
-
|
|
49
|
-
:hover {
|
|
50
|
-
border-color: ${theme2.colors[color].light};
|
|
51
|
-
background-color: ${theme2.colors[color].light};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
:active {
|
|
55
|
-
border-color: ${theme2.colors[color].dark};
|
|
56
|
-
background-color: ${theme2.colors[color].dark}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
:focus {
|
|
60
|
-
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 2px ${theme2.colors[color].dark};
|
|
61
|
-
}
|
|
62
|
-
`;
|
|
63
|
-
const outlineColorStyles = (theme2) => (color) => `
|
|
64
|
-
color: ${theme2.colors[color].main};
|
|
65
|
-
border-color: ${theme2.colors[color].main};
|
|
66
|
-
background-color: transparent;
|
|
67
|
-
|
|
68
|
-
:hover {
|
|
69
|
-
color: white;
|
|
70
|
-
border-color: ${theme2.colors[color].light};
|
|
71
|
-
background-color: ${theme2.colors[color].light};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
:active {
|
|
75
|
-
color: white;
|
|
76
|
-
border-color: ${theme2.colors[color].dark};
|
|
77
|
-
background-color: ${theme2.colors[color].dark};
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
:focus {
|
|
81
|
-
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 2px ${theme2.colors[color].dark};
|
|
82
|
-
}
|
|
83
|
-
`;
|
|
84
|
-
const flatColorStyles = (theme2) => (color) => `
|
|
85
|
-
color: ${theme2.colors[color].main};
|
|
86
|
-
border-color: transparent;
|
|
87
|
-
background-color: transparent;
|
|
88
|
-
|
|
89
|
-
:hover {
|
|
90
|
-
color: ${theme2.colors[color].dark};
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
:active {
|
|
94
|
-
color: ${theme2.colors[color].light};
|
|
95
|
-
}
|
|
96
|
-
`;
|
|
97
|
-
const disabledCommonColorStyles = (theme2) => `
|
|
98
|
-
background-color: ${theme2.colors.gray.light4};
|
|
99
|
-
border-color: ${theme2.colors.gray.light4};
|
|
100
|
-
color: ${theme2.colors.gray.light1};
|
|
101
|
-
cursor: not-allowed;
|
|
102
|
-
`;
|
|
103
|
-
const disabledFlatColorStyles = (theme2) => `
|
|
104
|
-
border-color: transparent;
|
|
105
|
-
background-color: transparent;
|
|
106
|
-
color: ${theme2.colors.gray.light1};
|
|
107
|
-
cursor: not-allowed;
|
|
108
|
-
`;
|
|
109
|
-
const Root = styled__default['default'].button`
|
|
110
|
-
outline: none;
|
|
111
|
-
cursor: pointer;
|
|
112
|
-
user-select: none;
|
|
113
|
-
position: relative;
|
|
114
|
-
white-space: nowrap;
|
|
115
|
-
border: 2px solid transparent;
|
|
116
|
-
border-radius: 3px;
|
|
117
|
-
width: ${({ fullWidth }) => fullWidth && "100%"};
|
|
118
|
-
|
|
119
|
-
${typography_ButtonText_index.BasicButtonTextStyle}
|
|
120
|
-
${({ size }) => getFontStyles(size)}
|
|
121
|
-
${({ size, isLoading }) => styled.css`
|
|
122
|
-
${size === "smaller" && smallerSizeStyles(isLoading)}
|
|
123
|
-
${size === "small" && smallSizeStyles(isLoading)}
|
|
124
|
-
${size === "regular" && regularSizeStyles(isLoading)}
|
|
125
|
-
${size === "large" && largeSizeStyles(isLoading)}
|
|
126
|
-
`}
|
|
127
|
-
background-color: transparent;
|
|
128
|
-
transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease;
|
|
129
|
-
${({ variant, color, disabled, theme: theme2 }) => styled.css`
|
|
130
|
-
${!disabled && variant === "solid" && solidColorStyles(theme2)(color)}
|
|
131
|
-
${!disabled && variant === "outline" && outlineColorStyles(theme2)(color)}
|
|
132
|
-
${!disabled && variant === "flat" && flatColorStyles(theme2)(color)}
|
|
133
|
-
${disabled && variant !== "flat" && disabledCommonColorStyles(theme2)}
|
|
134
|
-
${disabled && variant === "flat" && disabledFlatColorStyles(theme2)}
|
|
135
|
-
`}
|
|
136
|
-
`;
|
|
137
|
-
const LoadingSpinner = styled__default['default'](components_Spinner_index['default'])``;
|
|
138
|
-
const spinnerSizes = {
|
|
139
|
-
smaller: 1,
|
|
140
|
-
small: 1,
|
|
141
|
-
regular: 1.5,
|
|
142
|
-
large: 1.75
|
|
143
|
-
};
|
|
144
|
-
const Button = ({
|
|
145
|
-
size = "small",
|
|
146
|
-
color = "primary",
|
|
147
|
-
variant = "solid",
|
|
148
|
-
fullWidth = false,
|
|
149
|
-
isDisabled = false,
|
|
150
|
-
isLoading = false,
|
|
151
|
-
children,
|
|
152
|
-
...props
|
|
153
|
-
}) => {
|
|
154
|
-
return /* @__PURE__ */ React.createElement(Root, {
|
|
155
|
-
...props,
|
|
156
|
-
color,
|
|
157
|
-
disabled: isDisabled || isLoading,
|
|
158
|
-
fullWidth,
|
|
159
|
-
theme: theme['default'],
|
|
160
|
-
variant,
|
|
161
|
-
size,
|
|
162
|
-
isLoading
|
|
163
|
-
}, isLoading ? /* @__PURE__ */ React.createElement(LoadingSpinner, {
|
|
164
|
-
color: "neutral",
|
|
165
|
-
size: spinnerSizes[size]
|
|
166
|
-
}) : children);
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
exports.Button = Button;
|
|
170
|
-
exports['default'] = Button;
|
|
@@ -1,28 +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 CardWrapper = styled__default['default'].div`
|
|
13
|
-
background: ${theme['default'].colors.background.light};
|
|
14
|
-
${({ boxShadow }) => boxShadow && `box-shadow: ${boxShadow};`}
|
|
15
|
-
${({ boxShadow }) => !boxShadow && `box-shadow: 0 2px 4px rgba(0, 0, 0, 10%), 0 2px 4px rgba(0, 0, 0, 9%),
|
|
16
|
-
0 1px 5px rgba(0, 0, 0, 15%);`}
|
|
17
|
-
border-radius: 0 0 3px 3px;
|
|
18
|
-
${({ topBorder }) => topBorder && `border-top: 4px solid ${topBorder};`}
|
|
19
|
-
`;
|
|
20
|
-
const Card = ({ ...props }) => {
|
|
21
|
-
return /* @__PURE__ */ React.createElement(CardWrapper, {
|
|
22
|
-
topBorder: props.topBorder,
|
|
23
|
-
boxShadow: props.boxShadow
|
|
24
|
-
}, props.children);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
exports.Card = Card;
|
|
28
|
-
exports['default'] = Card;
|