@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.
Files changed (680) hide show
  1. package/{types/ColorCard.d.ts → ColorCard.d.ts} +0 -0
  2. package/{types/ElevationCard.d.ts → ElevationCard.d.ts} +0 -0
  3. package/{types/Interfaces.d.ts → Interfaces.d.ts} +0 -0
  4. package/{types/Types.d.ts → Types.d.ts} +0 -0
  5. package/{types/components → components}/Accordion/index.d.ts +0 -0
  6. package/{types/components → components}/Badge/index.d.ts +0 -0
  7. package/{types/components → components}/Button/index.d.ts +0 -0
  8. package/{types/components → components}/Card/index.d.ts +0 -0
  9. package/{types/components → components}/CheckBox/index.d.ts +0 -0
  10. package/{types/components → components}/Chip/index.d.ts +0 -0
  11. package/{types/components → components}/DayPicker/DayPickerNavBar.d.ts +0 -0
  12. package/{types/components → components}/DayPicker/index.d.ts +0 -0
  13. package/{types/components → components}/DayPicker/localeUtils.d.ts +0 -0
  14. package/{types/components → components}/Dialog/index.d.ts +0 -0
  15. package/{types/components → components}/ErrorMessage/index.d.ts +0 -0
  16. package/{types/components → components}/FieldLabel.d.ts +1 -1
  17. package/{types/components → components}/Header/Hamburger.d.ts +0 -0
  18. package/{types/components → components}/Header/Link.d.ts +0 -0
  19. package/{types/components → components}/Header/index.d.ts +0 -0
  20. package/{types/components → components}/Hero/index.d.ts +0 -0
  21. package/{types/components → components}/Icon/index.d.ts +0 -0
  22. package/{types/components → components}/IconButton.d.ts +0 -0
  23. package/{types/components → components}/Icons/Arrow.d.ts +0 -0
  24. package/{types/components → components}/Icons/CheckCircle.d.ts +0 -0
  25. package/{types/components → components}/Icons/CheckIcon.d.ts +0 -0
  26. package/{types/components → components}/Icons/Close.d.ts +0 -0
  27. package/{types/components → components}/Icons/ErrorCircle.d.ts +0 -0
  28. package/{types/components → components}/Icons/InfoCircle.d.ts +0 -0
  29. package/{types/components → components}/InlineStepper/Step.d.ts +0 -0
  30. package/{types/components → components}/InlineStepper/StepCircle.d.ts +0 -0
  31. package/{types/components → components}/InlineStepper/index.d.ts +0 -0
  32. package/{types/components → components}/ListItem/Bacon.d.ts +0 -0
  33. package/{types/components → components}/ListItem/index.d.ts +0 -0
  34. package/{types/components → components}/Logo/LogoEn.d.ts +0 -0
  35. package/{types/components → components}/Logo/LogoSv.d.ts +0 -0
  36. package/{types/components → components}/Logo/index.d.ts +0 -0
  37. package/{types/components → components}/MenuItem/index.d.ts +0 -0
  38. package/{types/components → components}/Modal/index.d.ts +0 -0
  39. package/{types/components → components}/NotificationButton/index.d.ts +0 -0
  40. package/{types/components → components}/OffCanvas/Overlay.d.ts +0 -0
  41. package/{types/components → components}/OffCanvas/index.d.ts +0 -0
  42. package/{types/components → components}/OffCanvas/useClickOutside.d.ts +0 -0
  43. package/{types/components → components}/RadioButton/index.d.ts +0 -0
  44. package/{types/components → components}/Range/index.d.ts +0 -0
  45. package/{types/components → components}/Select/index.d.ts +9 -8
  46. package/{types/components → components}/Snackbar/index.d.ts +0 -0
  47. package/{types/components → components}/Spinner/index.d.ts +0 -0
  48. package/{types/components → components}/Stepper/index.d.ts +0 -0
  49. package/{types/components → components}/StepperAccordion/index.d.ts +0 -0
  50. package/{types/components → components}/Tabs/index.d.ts +0 -0
  51. package/{types/components → components}/TextArea/index.d.ts +0 -0
  52. package/{types/components → components}/Textfield/index.d.ts +0 -0
  53. package/{types/components → components}/TimePicker/index.d.ts +0 -0
  54. package/{types/components → components}/TimePicker/testHelper.d.ts +0 -0
  55. package/{types/components → components}/Toggle/index.d.ts +0 -0
  56. package/{types/icons → icons}/components/AccountCreateIcon.d.ts +0 -0
  57. package/{types/icons → icons}/components/AccountIcon.d.ts +0 -0
  58. package/{types/icons → icons}/components/AccountLoginIcon.d.ts +0 -0
  59. package/{types/icons → icons}/components/ArrowDownIcon.d.ts +0 -0
  60. package/{types/icons → icons}/components/ArrowLeftIcon.d.ts +0 -0
  61. package/{types/icons → icons}/components/ArrowLeftSharpIcon.d.ts +0 -0
  62. package/{types/icons → icons}/components/ArrowLeftSmallIcon.d.ts +0 -0
  63. package/{types/icons → icons}/components/ArrowLong.d.ts +0 -0
  64. package/{types/icons → icons}/components/ArrowRestartIcon.d.ts +0 -0
  65. package/{types/icons → icons}/components/ArrowRightIcon.d.ts +0 -0
  66. package/{types/icons → icons}/components/ArrowRightSharpIcon.d.ts +0 -0
  67. package/{types/icons → icons}/components/ArrowUpIcon.d.ts +0 -0
  68. package/{types/icons → icons}/components/AuctionIcon.d.ts +0 -0
  69. package/{types/icons → icons}/components/BackArrowIcon.d.ts +0 -0
  70. package/{types/icons → icons}/components/Baseline360Icon.d.ts +0 -0
  71. package/{types/icons → icons}/components/BellIcon.d.ts +0 -0
  72. package/{types/icons → icons}/components/BidIcon.d.ts +0 -0
  73. package/{types/icons → icons}/components/BidKrIcon.d.ts +0 -0
  74. package/{types/icons → icons}/components/BreaksIcon.d.ts +0 -0
  75. package/{types/icons → icons}/components/BuyCarIcon.d.ts +0 -0
  76. package/{types/icons → icons}/components/CabIcon.d.ts +0 -0
  77. package/{types/icons → icons}/components/CalendarIcon.d.ts +0 -0
  78. package/{types/icons → icons}/components/CameraIcon.d.ts +0 -0
  79. package/{types/icons → icons}/components/Car360Icon.d.ts +0 -0
  80. package/{types/icons → icons}/components/CarFrontIcon.d.ts +0 -0
  81. package/{types/icons → icons}/components/CarSearchIcon.d.ts +0 -0
  82. package/{types/icons → icons}/components/CarSideIcon.d.ts +0 -0
  83. package/{types/icons → icons}/components/CarTiresIcon.d.ts +0 -0
  84. package/{types/icons → icons}/components/CaravanIcon.d.ts +0 -0
  85. package/{types/icons → icons}/components/CardViewIcon.d.ts +0 -0
  86. package/{types/icons → icons}/components/CarloanIcon.d.ts +0 -0
  87. package/{types/icons → icons}/components/CertifiedIcon.d.ts +0 -0
  88. package/{types/icons → icons}/components/ChatIcon.d.ts +0 -0
  89. package/{types/icons → icons}/components/CheckIcon.d.ts +0 -0
  90. package/{types/icons → icons}/components/CheckThinIcon.d.ts +0 -0
  91. package/{types/icons → icons}/components/CheckmarkFilledIcon.d.ts +0 -0
  92. package/{types/icons → icons}/components/CheckmarkIcon.d.ts +0 -0
  93. package/{types/icons → icons}/components/ClipboardFilledIcon.d.ts +0 -0
  94. package/{types/icons → icons}/components/ClipboardIcon.d.ts +0 -0
  95. package/{types/icons → icons}/components/ClockFilledIcon.d.ts +0 -0
  96. package/{types/icons → icons}/components/ClockIcon.d.ts +0 -0
  97. package/{types/icons → icons}/components/CloseIcon.d.ts +0 -0
  98. package/{types/icons → icons}/components/CloseThinIcon.d.ts +0 -0
  99. package/{types/icons → icons}/components/CoffeeIcon.d.ts +0 -0
  100. package/{types/icons → icons}/components/CombiIcon.d.ts +0 -0
  101. package/{types/icons → icons}/components/CommentCircleFilledIcon.d.ts +0 -0
  102. package/{types/icons → icons}/components/CommentCircleIconIcon.d.ts +0 -0
  103. package/{types/icons → icons}/components/CommentIcon.d.ts +0 -0
  104. package/{types/icons → icons}/components/ContactIcon.d.ts +0 -0
  105. package/{types/icons → icons}/components/CoupeIcon.d.ts +0 -0
  106. package/{types/icons → icons}/components/CreditCardIcon.d.ts +0 -0
  107. package/{types/icons → icons}/components/CrossCircleIcon.d.ts +0 -0
  108. package/{types/icons → icons}/components/CrownIcon.d.ts +0 -0
  109. package/{types/icons → icons}/components/DealmakerIcon.d.ts +0 -0
  110. package/{types/icons → icons}/components/DeliveryIcon.d.ts +0 -0
  111. package/{types/icons → icons}/components/DetailedSearchIcon.d.ts +0 -0
  112. package/{types/icons → icons}/components/EcoFriendlyIcon.d.ts +0 -0
  113. package/{types/icons → icons}/components/EditIcon.d.ts +0 -0
  114. package/{types/icons → icons}/components/EngineIcon.d.ts +0 -0
  115. package/{types/icons → icons}/components/EnglandFlagIcon.d.ts +0 -0
  116. package/{types/icons → icons}/components/EvaluationIcon.d.ts +0 -0
  117. package/{types/icons → icons}/components/ExaminationMarkFilledIcon.d.ts +0 -0
  118. package/{types/icons → icons}/components/ExaminationMarkIcon.d.ts +0 -0
  119. package/{types/icons → icons}/components/ExteriorIcon.d.ts +0 -0
  120. package/{types/icons → icons}/components/EyeIcon.d.ts +0 -0
  121. package/{types/icons → icons}/components/FacebookBtnIcon.d.ts +0 -0
  122. package/{types/icons → icons}/components/FacebookIcon.d.ts +0 -0
  123. package/{types/icons → icons}/components/FatalIcon.d.ts +0 -0
  124. package/{types/icons → icons}/components/FavouriteIcon.d.ts +0 -0
  125. package/{types/icons → icons}/components/FavouriteSolidIcon.d.ts +0 -0
  126. package/{types/icons → icons}/components/FilterIcon.d.ts +0 -0
  127. package/{types/icons → icons}/components/FinanceIcon.d.ts +0 -0
  128. package/{types/icons → icons}/components/FindCarIcon.d.ts +0 -0
  129. package/{types/icons → icons}/components/FixedMonthlyCostIcon.d.ts +0 -0
  130. package/{types/icons → icons}/components/FlagIcon.d.ts +0 -0
  131. package/{types/icons → icons}/components/FlexibilityIcon.d.ts +0 -0
  132. package/{types/icons → icons}/components/ForumLargeIcon.d.ts +0 -0
  133. package/{types/icons → icons}/components/ForumSmallIcon.d.ts +0 -0
  134. package/{types/icons → icons}/components/GavelIcon.d.ts +0 -0
  135. package/{types/icons → icons}/components/GearboxIcon.d.ts +0 -0
  136. package/{types/icons → icons}/components/GiftIcon.d.ts +0 -0
  137. package/{types/icons → icons}/components/GridViewIcon.d.ts +0 -0
  138. package/{types/icons → icons}/components/GroupIcon.d.ts +0 -0
  139. package/{types/icons → icons}/components/GuaranteeIcon.d.ts +0 -0
  140. package/{types/icons → icons}/components/GuaranteeLargeIcon.d.ts +0 -0
  141. package/{types/icons → icons}/components/GuaranteeSmallIcon.d.ts +0 -0
  142. package/{types/icons → icons}/components/HalfCombiIcon.d.ts +0 -0
  143. package/{types/icons → icons}/components/HamburgerIcon.d.ts +0 -0
  144. package/{types/icons → icons}/components/HandshakeIcon.d.ts +0 -0
  145. package/{types/icons → icons}/components/HelpingHandIcon.d.ts +0 -0
  146. package/{types/icons → icons}/components/IdIcon.d.ts +0 -0
  147. package/{types/icons → icons}/components/InformationIcon.d.ts +0 -0
  148. package/{types/icons → icons}/components/InstagramIcon.d.ts +0 -0
  149. package/{types/icons → icons}/components/InsuranceIcon.d.ts +0 -0
  150. package/{types/icons → icons}/components/InteriorIcon.d.ts +0 -0
  151. package/{types/icons → icons}/components/InteriorThinIcon.d.ts +0 -0
  152. package/{types/icons → icons}/components/InternationalIcon.d.ts +0 -0
  153. package/{types/icons → icons}/components/KvdTestIcon.d.ts +0 -0
  154. package/{types/icons → icons}/components/KvdVenueIcon.d.ts +0 -0
  155. package/{types/icons → icons}/components/LifebuoyIcon.d.ts +0 -0
  156. package/{types/icons → icons}/components/LiftTruckIcon.d.ts +0 -0
  157. package/{types/icons → icons}/components/LinkedInIcon.d.ts +0 -0
  158. package/{types/icons → icons}/components/ListViewIcon.d.ts +0 -0
  159. package/{types/icons → icons}/components/MailIcon.d.ts +0 -0
  160. package/{types/icons → icons}/components/MinibusIcon.d.ts +0 -0
  161. package/{types/icons → icons}/components/MinivanIcon.d.ts +0 -0
  162. package/{types/icons → icons}/components/MobileIcon.d.ts +0 -0
  163. package/{types/icons → icons}/components/MotorcycleIcon.d.ts +0 -0
  164. package/{types/icons → icons}/components/MrfLogoIcon.d.ts +0 -0
  165. package/{types/icons → icons}/components/NotFoundIcon.d.ts +0 -0
  166. package/{types/icons → icons}/components/OverbidIcon.d.ts +0 -0
  167. package/{types/icons → icons}/components/PdfIconIcon.d.ts +0 -0
  168. package/{types/icons → icons}/components/PhoneIcon.d.ts +0 -0
  169. package/{types/icons → icons}/components/PickUpIcon.d.ts +0 -0
  170. package/{types/icons → icons}/components/PinIcon.d.ts +0 -0
  171. package/{types/icons → icons}/components/PlayIcon.d.ts +0 -0
  172. package/{types/icons → icons}/components/Pricetag.d.ts +0 -0
  173. package/{types/icons → icons}/components/PricetagFilledKronaIcon.d.ts +0 -0
  174. package/{types/icons → icons}/components/PrivateCarIcon.d.ts +0 -0
  175. package/{types/icons → icons}/components/ProfileCircleIcon.d.ts +0 -0
  176. package/{types/icons → icons}/components/ProfileIcon.d.ts +0 -0
  177. package/{types/icons → icons}/components/RadioIcon.d.ts +0 -0
  178. package/{types/icons → icons}/components/ReclamationIcon.d.ts +0 -0
  179. package/{types/icons → icons}/components/ReleasingIcon.d.ts +0 -0
  180. package/{types/icons → icons}/components/RemoveFilterIcon.d.ts +0 -0
  181. package/{types/icons → icons}/components/ReservedPriceIcon.d.ts +0 -0
  182. package/{types/icons → icons}/components/ResultIcon.d.ts +0 -0
  183. package/{types/icons → icons}/components/SafePaymentIcon.d.ts +0 -0
  184. package/{types/icons → icons}/components/SaleTagIcon.d.ts +0 -0
  185. package/{types/icons → icons}/components/SearchCheckIcon.d.ts +0 -0
  186. package/{types/icons → icons}/components/SearchIcon.d.ts +0 -0
  187. package/{types/icons → icons}/components/SedanIcon.d.ts +0 -0
  188. package/{types/icons → icons}/components/SellCarIcon.d.ts +0 -0
  189. package/{types/icons → icons}/components/SellCarsIcon.d.ts +0 -0
  190. package/{types/icons → icons}/components/ServiceIcon.d.ts +0 -0
  191. package/{types/icons → icons}/components/ShareIcon.d.ts +0 -0
  192. package/{types/icons → icons}/components/ShieldIcon.d.ts +0 -0
  193. package/{types/icons → icons}/components/SignInIcon.d.ts +0 -0
  194. package/{types/icons → icons}/components/SignOutIcon.d.ts +0 -0
  195. package/{types/icons → icons}/components/SpeedMeterIcon.d.ts +0 -0
  196. package/{types/icons → icons}/components/StarCircleIcon.d.ts +0 -0
  197. package/{types/icons → icons}/components/StartIcon.d.ts +0 -0
  198. package/{types/icons → icons}/components/StoreIcon.d.ts +0 -0
  199. package/{types/icons → icons}/components/SuvIcon.d.ts +0 -0
  200. package/{types/icons → icons}/components/SwedenFlag.d.ts +0 -0
  201. package/{types/icons → icons}/components/TankIcon.d.ts +0 -0
  202. package/{types/icons → icons}/components/TireIcon.d.ts +0 -0
  203. package/{types/icons → icons}/components/TransportIcon.d.ts +0 -0
  204. package/{types/icons → icons}/components/TrashcanIcon.d.ts +0 -0
  205. package/{types/icons → icons}/components/TrophyIcon.d.ts +0 -0
  206. package/{types/icons → icons}/components/TruckIcon.d.ts +0 -0
  207. package/{types/icons → icons}/components/UmbrellaIcon.d.ts +0 -0
  208. package/{types/icons → icons}/components/ValuationIcon.d.ts +0 -0
  209. package/{types/icons → icons}/components/ValueIcon.d.ts +0 -0
  210. package/{types/icons → icons}/components/WarningIcon.d.ts +0 -0
  211. package/{types/icons → icons}/components/YoutubeIcon.d.ts +0 -0
  212. package/{types/icons → icons}/components/index.d.ts +0 -0
  213. package/{types/index.d.ts → index.d.ts} +0 -0
  214. package/kvdbil-components.css +224 -0
  215. package/kvdbil-components.js +1486 -0
  216. package/kvdbil-components.js.map +1 -0
  217. package/package.json +10 -14
  218. package/{types/setupTests.d.ts → setupTests.d.ts} +0 -0
  219. package/{types/shared → shared}/constants.d.ts +0 -0
  220. package/{types/shared → shared}/helpers.d.ts +0 -0
  221. package/{types/shared → shared}/media-queries.d.ts +0 -0
  222. package/{types/testUtils.d.ts → testUtils.d.ts} +0 -0
  223. package/{types/theme.d.ts → theme.d.ts} +0 -0
  224. package/{types/typography → typography}/BodyText/index.d.ts +0 -0
  225. package/{types/typography → typography}/ButtonText/index.d.ts +0 -0
  226. package/{types/typography → typography}/Heading/index.d.ts +0 -0
  227. package/{types/utils → utils}/utils.d.ts +0 -0
  228. package/cjs/ColorCard.js +0 -48
  229. package/cjs/ElevationCard.js +0 -35
  230. package/cjs/Interfaces.js +0 -2
  231. package/cjs/Types.js +0 -2
  232. package/cjs/components/Accordion/index.js +0 -124
  233. package/cjs/components/Badge/index.js +0 -78
  234. package/cjs/components/Button/index.js +0 -170
  235. package/cjs/components/Card/index.js +0 -28
  236. package/cjs/components/CheckBox/index.js +0 -109
  237. package/cjs/components/Chip/index.js +0 -99
  238. package/cjs/components/DayPicker/DayPickerNavBar.js +0 -60
  239. package/cjs/components/DayPicker/index.js +0 -76
  240. package/cjs/components/DayPicker/localeUtils.js +0 -60
  241. package/cjs/components/Dialog/index.js +0 -88
  242. package/cjs/components/ErrorMessage/index.js +0 -31
  243. package/cjs/components/FieldLabel.js +0 -59
  244. package/cjs/components/Header/Hamburger.js +0 -55
  245. package/cjs/components/Header/Link.js +0 -53
  246. package/cjs/components/Header/index.js +0 -118
  247. package/cjs/components/Hero/index.js +0 -65
  248. package/cjs/components/Icon/index.js +0 -115
  249. package/cjs/components/IconButton.js +0 -130
  250. package/cjs/components/Icons/Arrow.js +0 -16
  251. package/cjs/components/Icons/CheckCircle.js +0 -16
  252. package/cjs/components/Icons/CheckIcon.js +0 -16
  253. package/cjs/components/Icons/Close.js +0 -16
  254. package/cjs/components/Icons/ErrorCircle.js +0 -16
  255. package/cjs/components/Icons/InfoCircle.js +0 -16
  256. package/cjs/components/InlineStepper/Step.js +0 -116
  257. package/cjs/components/InlineStepper/StepCircle.js +0 -93
  258. package/cjs/components/InlineStepper/index.js +0 -51
  259. package/cjs/components/ListItem/Bacon.js +0 -16
  260. package/cjs/components/ListItem/index.js +0 -56
  261. package/cjs/components/Logo/LogoEn.js +0 -35
  262. package/cjs/components/Logo/LogoSv.js +0 -35
  263. package/cjs/components/Logo/index.js +0 -32
  264. package/cjs/components/MenuItem/index.js +0 -99
  265. package/cjs/components/Modal/index.js +0 -137
  266. package/cjs/components/NotificationButton/index.js +0 -39
  267. package/cjs/components/OffCanvas/Overlay.js +0 -70
  268. package/cjs/components/OffCanvas/index.js +0 -133
  269. package/cjs/components/OffCanvas/useClickOutside.js +0 -21
  270. package/cjs/components/RadioButton/index.js +0 -148
  271. package/cjs/components/Range/index.js +0 -82
  272. package/cjs/components/Select/components/test-icon.js +0 -16
  273. package/cjs/components/Select/index.js +0 -225
  274. package/cjs/components/Snackbar/index.js +0 -155
  275. package/cjs/components/Spinner/index.js +0 -68
  276. package/cjs/components/Stepper/index.js +0 -60
  277. package/cjs/components/StepperAccordion/index.js +0 -133
  278. package/cjs/components/Tabs/index.js +0 -71
  279. package/cjs/components/TextArea/index.js +0 -120
  280. package/cjs/components/Textfield/index.js +0 -130
  281. package/cjs/components/TimePicker/index.js +0 -49
  282. package/cjs/components/TimePicker/testHelper.js +0 -16
  283. package/cjs/components/Toggle/index.js +0 -83
  284. package/cjs/icons/components/AccountCreateIcon.js +0 -48
  285. package/cjs/icons/components/AccountIcon.js +0 -44
  286. package/cjs/icons/components/AccountLoginIcon.js +0 -50
  287. package/cjs/icons/components/ArrowDownIcon.js +0 -44
  288. package/cjs/icons/components/ArrowLeftIcon.js +0 -42
  289. package/cjs/icons/components/ArrowLeftSharpIcon.js +0 -44
  290. package/cjs/icons/components/ArrowLeftSmallIcon.js +0 -44
  291. package/cjs/icons/components/ArrowLong.js +0 -45
  292. package/cjs/icons/components/ArrowRestartIcon.js +0 -44
  293. package/cjs/icons/components/ArrowRightIcon.js +0 -42
  294. package/cjs/icons/components/ArrowRightSharpIcon.js +0 -44
  295. package/cjs/icons/components/ArrowUpIcon.js +0 -44
  296. package/cjs/icons/components/AuctionIcon.js +0 -42
  297. package/cjs/icons/components/BackArrowIcon.js +0 -42
  298. package/cjs/icons/components/Baseline360Icon.js +0 -45
  299. package/cjs/icons/components/BellIcon.js +0 -42
  300. package/cjs/icons/components/BidIcon.js +0 -42
  301. package/cjs/icons/components/BidKrIcon.js +0 -48
  302. package/cjs/icons/components/BreaksIcon.js +0 -42
  303. package/cjs/icons/components/BuyCarIcon.js +0 -42
  304. package/cjs/icons/components/CabIcon.js +0 -44
  305. package/cjs/icons/components/CalendarIcon.js +0 -51
  306. package/cjs/icons/components/CameraIcon.js +0 -42
  307. package/cjs/icons/components/Car360Icon.js +0 -67
  308. package/cjs/icons/components/CarFrontIcon.js +0 -42
  309. package/cjs/icons/components/CarSearchIcon.js +0 -42
  310. package/cjs/icons/components/CarSideIcon.js +0 -42
  311. package/cjs/icons/components/CarTiresIcon.js +0 -42
  312. package/cjs/icons/components/CaravanIcon.js +0 -42
  313. package/cjs/icons/components/CardViewIcon.js +0 -68
  314. package/cjs/icons/components/CarloanIcon.js +0 -44
  315. package/cjs/icons/components/CertifiedIcon.js +0 -52
  316. package/cjs/icons/components/ChatIcon.js +0 -43
  317. package/cjs/icons/components/CheckIcon.js +0 -43
  318. package/cjs/icons/components/CheckThinIcon.js +0 -43
  319. package/cjs/icons/components/CheckmarkFilledIcon.js +0 -42
  320. package/cjs/icons/components/CheckmarkIcon.js +0 -42
  321. package/cjs/icons/components/ClipboardFilledIcon.js +0 -42
  322. package/cjs/icons/components/ClipboardIcon.js +0 -42
  323. package/cjs/icons/components/ClockFilledIcon.js +0 -44
  324. package/cjs/icons/components/ClockIcon.js +0 -43
  325. package/cjs/icons/components/CloseIcon.js +0 -43
  326. package/cjs/icons/components/CloseThinIcon.js +0 -44
  327. package/cjs/icons/components/CoffeeIcon.js +0 -43
  328. package/cjs/icons/components/CombiIcon.js +0 -44
  329. package/cjs/icons/components/CommentCircleFilledIcon.js +0 -48
  330. package/cjs/icons/components/CommentCircleIconIcon.js +0 -46
  331. package/cjs/icons/components/CommentIcon.js +0 -46
  332. package/cjs/icons/components/ContactIcon.js +0 -46
  333. package/cjs/icons/components/CoupeIcon.js +0 -44
  334. package/cjs/icons/components/CreditCardIcon.js +0 -43
  335. package/cjs/icons/components/CrossCircleIcon.js +0 -42
  336. package/cjs/icons/components/CrownIcon.js +0 -43
  337. package/cjs/icons/components/DealmakerIcon.js +0 -48
  338. package/cjs/icons/components/DeliveryIcon.js +0 -51
  339. package/cjs/icons/components/DetailedSearchIcon.js +0 -43
  340. package/cjs/icons/components/EcoFriendlyIcon.js +0 -46
  341. package/cjs/icons/components/EditIcon.js +0 -43
  342. package/cjs/icons/components/EngineIcon.js +0 -42
  343. package/cjs/icons/components/EnglandFlagIcon.js +0 -60
  344. package/cjs/icons/components/EvaluationIcon.js +0 -46
  345. package/cjs/icons/components/ExaminationMarkFilledIcon.js +0 -42
  346. package/cjs/icons/components/ExaminationMarkIcon.js +0 -42
  347. package/cjs/icons/components/ExteriorIcon.js +0 -42
  348. package/cjs/icons/components/EyeIcon.js +0 -48
  349. package/cjs/icons/components/FacebookBtnIcon.js +0 -42
  350. package/cjs/icons/components/FacebookIcon.js +0 -44
  351. package/cjs/icons/components/FatalIcon.js +0 -44
  352. package/cjs/icons/components/FavouriteIcon.js +0 -42
  353. package/cjs/icons/components/FavouriteSolidIcon.js +0 -42
  354. package/cjs/icons/components/FilterIcon.js +0 -44
  355. package/cjs/icons/components/FinanceIcon.js +0 -42
  356. package/cjs/icons/components/FindCarIcon.js +0 -42
  357. package/cjs/icons/components/FixedMonthlyCostIcon.js +0 -48
  358. package/cjs/icons/components/FlagIcon.js +0 -42
  359. package/cjs/icons/components/FlexibilityIcon.js +0 -48
  360. package/cjs/icons/components/ForumLargeIcon.js +0 -42
  361. package/cjs/icons/components/ForumSmallIcon.js +0 -42
  362. package/cjs/icons/components/GavelIcon.js +0 -44
  363. package/cjs/icons/components/GearboxIcon.js +0 -44
  364. package/cjs/icons/components/GiftIcon.js +0 -58
  365. package/cjs/icons/components/GridViewIcon.js +0 -42
  366. package/cjs/icons/components/GroupIcon.js +0 -79
  367. package/cjs/icons/components/GuaranteeIcon.js +0 -42
  368. package/cjs/icons/components/GuaranteeLargeIcon.js +0 -42
  369. package/cjs/icons/components/GuaranteeSmallIcon.js +0 -42
  370. package/cjs/icons/components/HalfCombiIcon.js +0 -44
  371. package/cjs/icons/components/HamburgerIcon.js +0 -42
  372. package/cjs/icons/components/HandshakeIcon.js +0 -42
  373. package/cjs/icons/components/HelpingHandIcon.js +0 -60
  374. package/cjs/icons/components/IdIcon.js +0 -45
  375. package/cjs/icons/components/InformationIcon.js +0 -42
  376. package/cjs/icons/components/InstagramIcon.js +0 -49
  377. package/cjs/icons/components/InsuranceIcon.js +0 -42
  378. package/cjs/icons/components/InteriorIcon.js +0 -44
  379. package/cjs/icons/components/InteriorThinIcon.js +0 -44
  380. package/cjs/icons/components/InternationalIcon.js +0 -50
  381. package/cjs/icons/components/KvdTestIcon.js +0 -42
  382. package/cjs/icons/components/KvdVenueIcon.js +0 -42
  383. package/cjs/icons/components/LifebuoyIcon.js +0 -42
  384. package/cjs/icons/components/LiftTruckIcon.js +0 -42
  385. package/cjs/icons/components/LinkedInIcon.js +0 -42
  386. package/cjs/icons/components/ListViewIcon.js +0 -64
  387. package/cjs/icons/components/MailIcon.js +0 -44
  388. package/cjs/icons/components/MinibusIcon.js +0 -44
  389. package/cjs/icons/components/MinivanIcon.js +0 -45
  390. package/cjs/icons/components/MobileIcon.js +0 -52
  391. package/cjs/icons/components/MotorcycleIcon.js +0 -74
  392. package/cjs/icons/components/MrfLogoIcon.js +0 -53
  393. package/cjs/icons/components/NotFoundIcon.js +0 -42
  394. package/cjs/icons/components/OverbidIcon.js +0 -44
  395. package/cjs/icons/components/PdfIconIcon.js +0 -42
  396. package/cjs/icons/components/PhoneIcon.js +0 -44
  397. package/cjs/icons/components/PickUpIcon.js +0 -42
  398. package/cjs/icons/components/PinIcon.js +0 -42
  399. package/cjs/icons/components/PlayIcon.js +0 -42
  400. package/cjs/icons/components/Pricetag.js +0 -51
  401. package/cjs/icons/components/PricetagFilledKronaIcon.js +0 -47
  402. package/cjs/icons/components/PrivateCarIcon.js +0 -42
  403. package/cjs/icons/components/ProfileCircleIcon.js +0 -42
  404. package/cjs/icons/components/ProfileIcon.js +0 -42
  405. package/cjs/icons/components/RadioIcon.js +0 -54
  406. package/cjs/icons/components/ReclamationIcon.js +0 -42
  407. package/cjs/icons/components/ReleasingIcon.js +0 -48
  408. package/cjs/icons/components/RemoveFilterIcon.js +0 -42
  409. package/cjs/icons/components/ReservedPriceIcon.js +0 -42
  410. package/cjs/icons/components/ResultIcon.js +0 -42
  411. package/cjs/icons/components/SafePaymentIcon.js +0 -42
  412. package/cjs/icons/components/SaleTagIcon.js +0 -42
  413. package/cjs/icons/components/SearchCheckIcon.js +0 -48
  414. package/cjs/icons/components/SearchIcon.js +0 -42
  415. package/cjs/icons/components/SedanIcon.js +0 -44
  416. package/cjs/icons/components/SellCarIcon.js +0 -42
  417. package/cjs/icons/components/SellCarsIcon.js +0 -42
  418. package/cjs/icons/components/ServiceIcon.js +0 -47
  419. package/cjs/icons/components/ShareIcon.js +0 -68
  420. package/cjs/icons/components/ShieldIcon.js +0 -42
  421. package/cjs/icons/components/SignInIcon.js +0 -42
  422. package/cjs/icons/components/SignOutIcon.js +0 -42
  423. package/cjs/icons/components/SpeedMeterIcon.js +0 -44
  424. package/cjs/icons/components/StarCircleIcon.js +0 -42
  425. package/cjs/icons/components/StartIcon.js +0 -50
  426. package/cjs/icons/components/StoreIcon.js +0 -42
  427. package/cjs/icons/components/SuvIcon.js +0 -44
  428. package/cjs/icons/components/SwedenFlag.js +0 -50
  429. package/cjs/icons/components/TankIcon.js +0 -52
  430. package/cjs/icons/components/TireIcon.js +0 -42
  431. package/cjs/icons/components/TransportIcon.js +0 -42
  432. package/cjs/icons/components/TrashcanIcon.js +0 -42
  433. package/cjs/icons/components/TrophyIcon.js +0 -42
  434. package/cjs/icons/components/TruckIcon.js +0 -42
  435. package/cjs/icons/components/UmbrellaIcon.js +0 -42
  436. package/cjs/icons/components/ValuationIcon.js +0 -42
  437. package/cjs/icons/components/ValueIcon.js +0 -47
  438. package/cjs/icons/components/WarningIcon.js +0 -42
  439. package/cjs/icons/components/YoutubeIcon.js +0 -42
  440. package/cjs/icons/components/index.js +0 -320
  441. package/cjs/index.js +0 -438
  442. package/cjs/react-app-env.d.js +0 -2
  443. package/cjs/shared/constants.js +0 -7
  444. package/cjs/shared/helpers.js +0 -28
  445. package/cjs/shared/helpers.spec.js +0 -36
  446. package/cjs/shared/media-queries.js +0 -41
  447. package/cjs/styled.d.js +0 -4
  448. package/cjs/theme.js +0 -125
  449. package/cjs/typography/BodyText/index.js +0 -66
  450. package/cjs/typography/ButtonText/index.js +0 -48
  451. package/cjs/typography/Heading/index.js +0 -92
  452. package/cjs/utils/utils.js +0 -33
  453. package/esm/ColorCard.js +0 -40
  454. package/esm/ElevationCard.js +0 -27
  455. package/esm/Interfaces.js +0 -1
  456. package/esm/Types.js +0 -1
  457. package/esm/components/Accordion/index.js +0 -115
  458. package/esm/components/Badge/index.js +0 -69
  459. package/esm/components/Button/index.js +0 -161
  460. package/esm/components/Card/index.js +0 -19
  461. package/esm/components/CheckBox/index.js +0 -100
  462. package/esm/components/Chip/index.js +0 -90
  463. package/esm/components/DayPicker/DayPickerNavBar.js +0 -52
  464. package/esm/components/DayPicker/index.js +0 -66
  465. package/esm/components/DayPicker/localeUtils.js +0 -52
  466. package/esm/components/Dialog/index.js +0 -79
  467. package/esm/components/ErrorMessage/index.js +0 -22
  468. package/esm/components/FieldLabel.js +0 -51
  469. package/esm/components/Header/Hamburger.js +0 -47
  470. package/esm/components/Header/Link.js +0 -45
  471. package/esm/components/Header/index.js +0 -109
  472. package/esm/components/Hero/index.js +0 -56
  473. package/esm/components/Icon/index.js +0 -107
  474. package/esm/components/IconButton.js +0 -122
  475. package/esm/components/Icons/Arrow.js +0 -12
  476. package/esm/components/Icons/CheckCircle.js +0 -12
  477. package/esm/components/Icons/CheckIcon.js +0 -12
  478. package/esm/components/Icons/Close.js +0 -12
  479. package/esm/components/Icons/ErrorCircle.js +0 -12
  480. package/esm/components/Icons/InfoCircle.js +0 -12
  481. package/esm/components/InlineStepper/Step.js +0 -107
  482. package/esm/components/InlineStepper/StepCircle.js +0 -85
  483. package/esm/components/InlineStepper/index.js +0 -43
  484. package/esm/components/ListItem/Bacon.js +0 -12
  485. package/esm/components/ListItem/index.js +0 -48
  486. package/esm/components/Logo/LogoEn.js +0 -31
  487. package/esm/components/Logo/LogoSv.js +0 -31
  488. package/esm/components/Logo/index.js +0 -23
  489. package/esm/components/MenuItem/index.js +0 -90
  490. package/esm/components/Modal/index.js +0 -128
  491. package/esm/components/NotificationButton/index.js +0 -31
  492. package/esm/components/OffCanvas/Overlay.js +0 -61
  493. package/esm/components/OffCanvas/index.js +0 -124
  494. package/esm/components/OffCanvas/useClickOutside.js +0 -17
  495. package/esm/components/RadioButton/index.js +0 -139
  496. package/esm/components/Range/index.js +0 -73
  497. package/esm/components/Select/components/test-icon.js +0 -12
  498. package/esm/components/Select/index.js +0 -215
  499. package/esm/components/Snackbar/index.js +0 -146
  500. package/esm/components/Spinner/index.js +0 -60
  501. package/esm/components/Stepper/index.js +0 -52
  502. package/esm/components/StepperAccordion/index.js +0 -124
  503. package/esm/components/Tabs/index.js +0 -61
  504. package/esm/components/TextArea/index.js +0 -111
  505. package/esm/components/Textfield/index.js +0 -121
  506. package/esm/components/TimePicker/index.js +0 -40
  507. package/esm/components/TimePicker/testHelper.js +0 -12
  508. package/esm/components/Toggle/index.js +0 -75
  509. package/esm/icons/components/AccountCreateIcon.js +0 -22
  510. package/esm/icons/components/AccountIcon.js +0 -18
  511. package/esm/icons/components/AccountLoginIcon.js +0 -24
  512. package/esm/icons/components/ArrowDownIcon.js +0 -18
  513. package/esm/icons/components/ArrowLeftIcon.js +0 -16
  514. package/esm/icons/components/ArrowLeftSharpIcon.js +0 -18
  515. package/esm/icons/components/ArrowLeftSmallIcon.js +0 -18
  516. package/esm/icons/components/ArrowLong.js +0 -19
  517. package/esm/icons/components/ArrowRestartIcon.js +0 -18
  518. package/esm/icons/components/ArrowRightIcon.js +0 -16
  519. package/esm/icons/components/ArrowRightSharpIcon.js +0 -18
  520. package/esm/icons/components/ArrowUpIcon.js +0 -18
  521. package/esm/icons/components/AuctionIcon.js +0 -16
  522. package/esm/icons/components/BackArrowIcon.js +0 -16
  523. package/esm/icons/components/Baseline360Icon.js +0 -19
  524. package/esm/icons/components/BellIcon.js +0 -16
  525. package/esm/icons/components/BidIcon.js +0 -16
  526. package/esm/icons/components/BidKrIcon.js +0 -22
  527. package/esm/icons/components/BreaksIcon.js +0 -16
  528. package/esm/icons/components/BuyCarIcon.js +0 -16
  529. package/esm/icons/components/CabIcon.js +0 -18
  530. package/esm/icons/components/CalendarIcon.js +0 -25
  531. package/esm/icons/components/CameraIcon.js +0 -16
  532. package/esm/icons/components/Car360Icon.js +0 -41
  533. package/esm/icons/components/CarFrontIcon.js +0 -16
  534. package/esm/icons/components/CarSearchIcon.js +0 -16
  535. package/esm/icons/components/CarSideIcon.js +0 -16
  536. package/esm/icons/components/CarTiresIcon.js +0 -16
  537. package/esm/icons/components/CaravanIcon.js +0 -16
  538. package/esm/icons/components/CardViewIcon.js +0 -42
  539. package/esm/icons/components/CarloanIcon.js +0 -18
  540. package/esm/icons/components/CertifiedIcon.js +0 -26
  541. package/esm/icons/components/ChatIcon.js +0 -17
  542. package/esm/icons/components/CheckIcon.js +0 -17
  543. package/esm/icons/components/CheckThinIcon.js +0 -17
  544. package/esm/icons/components/CheckmarkFilledIcon.js +0 -16
  545. package/esm/icons/components/CheckmarkIcon.js +0 -16
  546. package/esm/icons/components/ClipboardFilledIcon.js +0 -16
  547. package/esm/icons/components/ClipboardIcon.js +0 -16
  548. package/esm/icons/components/ClockFilledIcon.js +0 -18
  549. package/esm/icons/components/ClockIcon.js +0 -17
  550. package/esm/icons/components/CloseIcon.js +0 -17
  551. package/esm/icons/components/CloseThinIcon.js +0 -18
  552. package/esm/icons/components/CoffeeIcon.js +0 -17
  553. package/esm/icons/components/CombiIcon.js +0 -18
  554. package/esm/icons/components/CommentCircleFilledIcon.js +0 -22
  555. package/esm/icons/components/CommentCircleIconIcon.js +0 -20
  556. package/esm/icons/components/CommentIcon.js +0 -20
  557. package/esm/icons/components/ContactIcon.js +0 -20
  558. package/esm/icons/components/CoupeIcon.js +0 -18
  559. package/esm/icons/components/CreditCardIcon.js +0 -17
  560. package/esm/icons/components/CrossCircleIcon.js +0 -16
  561. package/esm/icons/components/CrownIcon.js +0 -17
  562. package/esm/icons/components/DealmakerIcon.js +0 -22
  563. package/esm/icons/components/DeliveryIcon.js +0 -25
  564. package/esm/icons/components/DetailedSearchIcon.js +0 -17
  565. package/esm/icons/components/EcoFriendlyIcon.js +0 -20
  566. package/esm/icons/components/EditIcon.js +0 -17
  567. package/esm/icons/components/EngineIcon.js +0 -16
  568. package/esm/icons/components/EnglandFlagIcon.js +0 -34
  569. package/esm/icons/components/EvaluationIcon.js +0 -20
  570. package/esm/icons/components/ExaminationMarkFilledIcon.js +0 -16
  571. package/esm/icons/components/ExaminationMarkIcon.js +0 -16
  572. package/esm/icons/components/ExteriorIcon.js +0 -16
  573. package/esm/icons/components/EyeIcon.js +0 -22
  574. package/esm/icons/components/FacebookBtnIcon.js +0 -16
  575. package/esm/icons/components/FacebookIcon.js +0 -18
  576. package/esm/icons/components/FatalIcon.js +0 -18
  577. package/esm/icons/components/FavouriteIcon.js +0 -16
  578. package/esm/icons/components/FavouriteSolidIcon.js +0 -16
  579. package/esm/icons/components/FilterIcon.js +0 -18
  580. package/esm/icons/components/FinanceIcon.js +0 -16
  581. package/esm/icons/components/FindCarIcon.js +0 -16
  582. package/esm/icons/components/FixedMonthlyCostIcon.js +0 -22
  583. package/esm/icons/components/FlagIcon.js +0 -16
  584. package/esm/icons/components/FlexibilityIcon.js +0 -22
  585. package/esm/icons/components/ForumLargeIcon.js +0 -16
  586. package/esm/icons/components/ForumSmallIcon.js +0 -16
  587. package/esm/icons/components/GavelIcon.js +0 -18
  588. package/esm/icons/components/GearboxIcon.js +0 -18
  589. package/esm/icons/components/GiftIcon.js +0 -32
  590. package/esm/icons/components/GridViewIcon.js +0 -16
  591. package/esm/icons/components/GroupIcon.js +0 -53
  592. package/esm/icons/components/GuaranteeIcon.js +0 -16
  593. package/esm/icons/components/GuaranteeLargeIcon.js +0 -16
  594. package/esm/icons/components/GuaranteeSmallIcon.js +0 -16
  595. package/esm/icons/components/HalfCombiIcon.js +0 -18
  596. package/esm/icons/components/HamburgerIcon.js +0 -16
  597. package/esm/icons/components/HandshakeIcon.js +0 -16
  598. package/esm/icons/components/HelpingHandIcon.js +0 -34
  599. package/esm/icons/components/IdIcon.js +0 -19
  600. package/esm/icons/components/InformationIcon.js +0 -16
  601. package/esm/icons/components/InstagramIcon.js +0 -23
  602. package/esm/icons/components/InsuranceIcon.js +0 -16
  603. package/esm/icons/components/InteriorIcon.js +0 -18
  604. package/esm/icons/components/InteriorThinIcon.js +0 -18
  605. package/esm/icons/components/InternationalIcon.js +0 -24
  606. package/esm/icons/components/KvdTestIcon.js +0 -16
  607. package/esm/icons/components/KvdVenueIcon.js +0 -16
  608. package/esm/icons/components/LifebuoyIcon.js +0 -16
  609. package/esm/icons/components/LiftTruckIcon.js +0 -16
  610. package/esm/icons/components/LinkedInIcon.js +0 -16
  611. package/esm/icons/components/ListViewIcon.js +0 -38
  612. package/esm/icons/components/MailIcon.js +0 -18
  613. package/esm/icons/components/MinibusIcon.js +0 -18
  614. package/esm/icons/components/MinivanIcon.js +0 -19
  615. package/esm/icons/components/MobileIcon.js +0 -26
  616. package/esm/icons/components/MotorcycleIcon.js +0 -48
  617. package/esm/icons/components/MrfLogoIcon.js +0 -27
  618. package/esm/icons/components/NotFoundIcon.js +0 -16
  619. package/esm/icons/components/OverbidIcon.js +0 -18
  620. package/esm/icons/components/PdfIconIcon.js +0 -16
  621. package/esm/icons/components/PhoneIcon.js +0 -18
  622. package/esm/icons/components/PickUpIcon.js +0 -16
  623. package/esm/icons/components/PinIcon.js +0 -16
  624. package/esm/icons/components/PlayIcon.js +0 -16
  625. package/esm/icons/components/Pricetag.js +0 -25
  626. package/esm/icons/components/PricetagFilledKronaIcon.js +0 -21
  627. package/esm/icons/components/PrivateCarIcon.js +0 -16
  628. package/esm/icons/components/ProfileCircleIcon.js +0 -16
  629. package/esm/icons/components/ProfileIcon.js +0 -16
  630. package/esm/icons/components/RadioIcon.js +0 -28
  631. package/esm/icons/components/ReclamationIcon.js +0 -16
  632. package/esm/icons/components/ReleasingIcon.js +0 -22
  633. package/esm/icons/components/RemoveFilterIcon.js +0 -16
  634. package/esm/icons/components/ReservedPriceIcon.js +0 -16
  635. package/esm/icons/components/ResultIcon.js +0 -16
  636. package/esm/icons/components/SafePaymentIcon.js +0 -16
  637. package/esm/icons/components/SaleTagIcon.js +0 -16
  638. package/esm/icons/components/SearchCheckIcon.js +0 -22
  639. package/esm/icons/components/SearchIcon.js +0 -16
  640. package/esm/icons/components/SedanIcon.js +0 -18
  641. package/esm/icons/components/SellCarIcon.js +0 -16
  642. package/esm/icons/components/SellCarsIcon.js +0 -16
  643. package/esm/icons/components/ServiceIcon.js +0 -21
  644. package/esm/icons/components/ShareIcon.js +0 -42
  645. package/esm/icons/components/ShieldIcon.js +0 -16
  646. package/esm/icons/components/SignInIcon.js +0 -16
  647. package/esm/icons/components/SignOutIcon.js +0 -16
  648. package/esm/icons/components/SpeedMeterIcon.js +0 -18
  649. package/esm/icons/components/StarCircleIcon.js +0 -16
  650. package/esm/icons/components/StartIcon.js +0 -24
  651. package/esm/icons/components/StoreIcon.js +0 -16
  652. package/esm/icons/components/SuvIcon.js +0 -18
  653. package/esm/icons/components/SwedenFlag.js +0 -24
  654. package/esm/icons/components/TankIcon.js +0 -26
  655. package/esm/icons/components/TireIcon.js +0 -16
  656. package/esm/icons/components/TransportIcon.js +0 -16
  657. package/esm/icons/components/TrashcanIcon.js +0 -16
  658. package/esm/icons/components/TrophyIcon.js +0 -16
  659. package/esm/icons/components/TruckIcon.js +0 -16
  660. package/esm/icons/components/UmbrellaIcon.js +0 -16
  661. package/esm/icons/components/ValuationIcon.js +0 -16
  662. package/esm/icons/components/ValueIcon.js +0 -21
  663. package/esm/icons/components/WarningIcon.js +0 -16
  664. package/esm/icons/components/YoutubeIcon.js +0 -16
  665. package/esm/icons/components/index.js +0 -157
  666. package/esm/index.js +0 -220
  667. package/esm/react-app-env.d.js +0 -1
  668. package/esm/shared/constants.js +0 -3
  669. package/esm/shared/helpers.js +0 -23
  670. package/esm/shared/helpers.spec.js +0 -34
  671. package/esm/shared/media-queries.js +0 -35
  672. package/esm/styled.d.js +0 -1
  673. package/esm/theme.js +0 -121
  674. package/esm/typography/BodyText/index.js +0 -48
  675. package/esm/typography/ButtonText/index.js +0 -33
  676. package/esm/typography/Heading/index.js +0 -76
  677. package/esm/utils/utils.js +0 -28
  678. package/types/components/Select/components/test-icon.d.ts +0 -1
  679. package/types/icons/template.d.ts +0 -10
  680. package/types/serviceWorker.d.ts +0 -2
@@ -1,85 +0,0 @@
1
- import styled from 'styled-components';
2
- import theme from '../../theme.js';
3
- import CheckIcon from '../Icons/CheckIcon.js';
4
-
5
- const getStatetyles = (backgroundColor) => ({
6
- active: {
7
- background: theme.colors.primary.main,
8
- color: theme.colors.text.light,
9
- border: `1px solid ${theme.colors.primary.main}`
10
- },
11
- completed: {
12
- background: theme.colors.success.main,
13
- color: theme.colors.text.light,
14
- border: `1px solid ${theme.colors.success.main}`
15
- },
16
- disabled: {
17
- background: backgroundColor,
18
- color: theme.colors.primary.main,
19
- border: `1px solid ${theme.colors.primary.main}`
20
- }
21
- });
22
- const Circle = styled.div`
23
- box-sizing: content-box;
24
- width: 40px;
25
- height: 40px;
26
- border-radius: 50%;
27
- position: relative;
28
- display: flex;
29
- align-items: center;
30
- justify-content: center;
31
- border: ${({ state, backgroundColor }) => getStatetyles(backgroundColor)[state].border};
32
- justify-content: center;
33
- background-color: ${({ state, backgroundColor }) => getStatetyles(backgroundColor)[state].background};
34
- color: ${({ state, backgroundColor }) => getStatetyles(backgroundColor)[state].color};
35
- &:after {
36
- content: '';
37
- width: 42px;
38
- height: 42px;
39
- border-radius: 50%;
40
- top: -11px;
41
- left: -11px;
42
- position: absolute;
43
- z-index: 2;
44
- border: ${({ backgroundColor }) => `10px solid ${backgroundColor}`};
45
- }
46
- `;
47
- const CircleText = styled.div`
48
- display: flex;
49
- font-size: 1.25rem;
50
- line-height: 1;
51
- font-family: ${({ theme: theme2 }) => theme2.typography.fontAlternativeFamily};
52
- font-weight: ${({ theme: theme2 }) => theme2.typography.fontAlternativeBoldWeight};
53
- width: 100%;
54
- height: 100%;
55
- align-items: center;
56
- justify-content: center;
57
- `;
58
- const IconWrapper = styled.div`
59
- width: 14px;
60
- height: 14px;
61
- display: flex;
62
- & svg {
63
- fill: ${({ theme: theme2 }) => theme2.colors.text.light};
64
- width: 100%;
65
- }
66
- `;
67
- const StepCircle = ({
68
- state,
69
- step,
70
- backgroundColor = theme.colors.background.light,
71
- ...props
72
- }) => /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Circle, {
73
- className: state,
74
- state,
75
- ...props,
76
- backgroundColor
77
- }, /* @__PURE__ */ React.createElement(CircleText, {
78
- as: "div"
79
- }, state === "completed" ? /* @__PURE__ */ React.createElement(IconWrapper, null, /* @__PURE__ */ React.createElement(CheckIcon, {
80
- className: ""
81
- })) : /* @__PURE__ */ React.createElement("span", {
82
- className: "step-content-text"
83
- }, step))));
84
-
85
- export { StepCircle as default };
@@ -1,43 +0,0 @@
1
- import { cloneElement } from 'react';
2
- import styled from 'styled-components';
3
- import theme from '../../theme.js';
4
-
5
- const Wrapper = styled.div`
6
- min-height: 4rem;
7
- padding: 10px 0;
8
- display: ${({ orientation }) => orientation === "horizontal" ? "flex" : "block"};
9
- justify-content: space-between;
10
- background-color: ${({ backgroundColor }) => backgroundColor};
11
- `;
12
- const cloneChild = (child, newProps) => {
13
- return cloneElement(child, newProps);
14
- };
15
- const InlineStepper = ({
16
- children,
17
- activeStep = 0,
18
- orientation = "horizontal",
19
- backgroundColor = theme.colors.background.light,
20
- ...props
21
- }) => {
22
- const childrenArray = Array.isArray(children) ? children : [children];
23
- const steps = childrenArray.map((child, index) => {
24
- var _a;
25
- const newProps = {
26
- active: index === activeStep,
27
- step: index + 1,
28
- completed: index < activeStep,
29
- disabled: index > activeStep,
30
- children: (_a = child == null ? void 0 : child.props) == null ? void 0 : _a.children,
31
- orientation,
32
- backgroundColor
33
- };
34
- return cloneChild(child, newProps);
35
- });
36
- return /* @__PURE__ */ React.createElement(Wrapper, {
37
- ...props,
38
- orientation,
39
- backgroundColor
40
- }, steps);
41
- };
42
-
43
- export { InlineStepper };
@@ -1,12 +0,0 @@
1
- const Bacon = ({ color = "black" }) => /* @__PURE__ */ React.createElement("svg", {
2
- xmlns: "http://www.w3.org/2000/svg",
3
- x: "0",
4
- y: "0",
5
- viewBox: "0 0 1000 1000",
6
- fill: color
7
- }, /* @__PURE__ */ React.createElement("title", null, "Bacon"), /* @__PURE__ */ React.createElement("path", {
8
- d: "M7204.2 5021.9c-224.4-46.1-422.8-204.4-537-430.8-32.1-66.1-98.2-226.4-144.3-358.7-128.3-368.7-210.4-521-362.7-677.3-210.4-214.4-458.9-312.6-903.8-354.7-364.7-36.1-527-90.2-659.3-222.4-104.2-104.2-150.3-246.5-188.4-585.1-16-162.3-44.1-332.6-62.1-378.7-100.2-284.5-320.6-410.8-799.5-456.9-342.7-32.1-515-98.2-637.2-242.5-100.2-116.2-132.3-224.4-164.3-569.1-38.1-424.8-88.2-545.1-268.5-667.3C2354.8-3.8 2220.6-39.9 1899.9-76c-148.3-18-328.6-50.1-402.8-72.1C1040.3-288.4 647.5-633 401-1108c-158.3-306.6-252.5-605.2-292.6-921.8-24-196.4 4-396.8 72.1-511 26-44.1 529-559.1 1116.2-1144.2 1004-1001.9 1074.1-1068 1176.3-1100.1 232.5-76.1 537 0 719.4 176.3 138.3 134.3 214.4 282.6 342.7 663.3 64.1 194.4 148.3 404.8 186.4 466.9 166.3 278.5 484.9 438.8 967.9 486.9 474.9 48.1 629.2 96.2 773.5 240.5 122.2 122.2 152.3 218.4 188.3 617.2 22.1 246.5 38.1 328.6 78.2 410.8 120.2 248.5 274.5 328.7 753.4 384.7 290.6 34.1 454.9 82.2 561.1 166.3 158.3 130.3 208.4 264.5 238.5 655.3 12 144.3 34.1 306.6 50.1 360.7 78.1 256.5 276.5 386.8 657.3 430.9 312.6 36.1 515 78.1 675.3 140.3 450.9 174.3 843.6 593.1 1066 1132.2 132.3 320.6 168.3 486.9 168.3 781.5-2 436.8 82.1 322.6-1140.2 1549-821.6 823.6-1066 1058.1-1144.2 1096.1-116.3 56.1-282.6 76.2-410.8 48.1zm356.7-527l130.3-126.3-70.1-118.2c-40.1-64.1-132.2-250.5-204.4-412.8-220.4-495-340.7-685.3-567.1-897.7-248.5-236.4-551.1-358.7-997.9-400.8-400.8-38.1-585.1-130.3-691.3-346.7-50.1-104.2-66.1-172.3-90.2-404.8-56.1-497-130.2-651.3-376.7-769.5-122.2-60.1-186.4-74.2-611.2-130.3-362.7-48.1-563.1-188.4-633.2-438.8-16-58.1-40.1-222.4-52.1-368.7-34.1-426.8-100.2-569.1-314.6-681.3-144.3-74.1-236.5-98.2-511-126.2-513-52.1-843.6-204.4-1160.2-535-172.3-180.4-288.6-348.7-400.8-583.1-90.2-188.4-188.4-472.9-208.4-611.2-8-52.1-22-98.2-30.1-104.2-8-4-72.1 50.1-140.3 122.3l-126.2 130.2 12 174.3c20 326.7 154.3 721.4 340.7 999.9 266.5 400.8 643.2 617.2 1142.2 655.3 615.2 48.1 983.9 316.6 1106.1 803.6 16 66.1 38.1 234.5 50.1 372.7 10 140.3 28.1 276.5 38.1 304.6 28.1 74.2 118.2 114.2 318.6 138.3 478.9 56.1 633.2 100.2 841.6 236.5 204.4 132.3 352.7 354.7 414.8 629.2 14 66.1 38.1 222.4 50.1 346.7 28.1 288.6 46.1 342.7 134.3 380.7 40.1 16 194.4 42.1 346.7 58.1 887.7 92.2 1300.5 422.8 1599.1 1270.4 108.2 308.6 134.3 364.7 198.4 440.9 66.1 78.1 150.3 118.2 254.5 120.2 67.9-.1 91.9-14.1 208.2-128.3zm1466.8-1563c-22-34.1-64.1-162.3-98.2-284.6-82.1-304.6-132.2-428.8-224.4-567.1-248.5-372.7-697.4-597.2-1498.9-753.5-288.5-56.1-382.7-94.2-480.9-192.4-128.3-126.2-182.4-290.5-232.5-703.3-70.1-577.1-188.4-721.4-611.2-747.5-623.2-40.1-923.8-214.4-1090.1-633.2-28.1-70.1-84.2-254.5-122.2-408.8-82.2-332.6-160.3-503-274.5-599.1-106.2-92.2-218.4-128.3-472.9-152.3-226.4-22-452.9-88.2-625.2-184.4-398.8-222.4-791.5-685.3-1076.1-1268.5-68.1-142.3-126.2-272.5-126.2-284.6 0-46.1-30.1-28-146.3 90.2L1831.9-3639l64.1 98.2c36.1 52.1 136.3 258.5 222.4 456.9 246.5 567.1 380.7 779.5 601.2 949.8 248.5 190.4 503 274.5 977.9 324.6 328.6 32.1 466.9 82.2 607.2 216.4 110.2 106.2 152.3 240.5 184.4 593.2 38.1 400.8 64.1 484.9 194.4 605.2 134.3 128.2 264.5 172.3 637.2 216.4 306.6 36.1 432.9 74.2 545.1 158.3 174.3 132.3 224.4 264.5 256.5 665.3 26 344.7 62.1 452.9 190.4 583.1 130.3 132.3 256.5 180.3 589.2 218.4 140.3 16 308.6 44.1 374.7 60.1 621.2 162.3 1120.2 755.5 1370.7 1633.2 24.1 82.2 48.1 162.3 52.1 178.3 6 20 68.1-28.1 186.4-146.3l178.3-176.3-36.4-63.9zm404.8-314.6c22-28.1 48.1-110.2 60.1-182.4 58.1-336.6-176.3-951.8-489-1288.5-242.5-260.5-505-392.8-853.6-432.8-460.9-52.1-639.2-104.2-845.6-242.5-68.1-44.1-158.3-128.2-200.4-184.4C6961.7 98.3 6913.6-58 6875.6-468.8c-16-162.3-38.1-314.6-52.1-338.7-36.1-68.1-134.3-96.2-430.8-130.3-539-60.1-835.6-218.4-1005.9-543-84.2-156.3-122.2-322.6-146.3-637.2-34.1-420.8 0-394.8-671.3-472.9-565.1-66.1-979.9-302.6-1208.3-691.3-48.1-82.1-132.3-288.6-202.4-499-68.1-196.4-138.3-384.7-160.3-420.8-88.2-142.3-244.5-230.4-358.7-202.4-54.1 14-144.3 84.2-144.3 114.2 0 8 28.1 62.1 64.1 118.2 34.1 58.1 138.3 274.5 228.4 484.9 218.4 497 318.6 663.3 529 875.7 296.6 298.6 631.2 432.8 1172.3 472.9 226.4 16 290.6 40.1 346.7 132.2 56.1 90.2 78.2 186.4 126.3 527 22 162.3 62.1 364.7 88.2 448.9C5192.3-779.3 5488.9-607 6116.1-607c228.4 0 268.5 6 346.7 46.1 96.2 48.1 168.3 138.3 200.4 252.5 12 40.1 38.1 194.4 60.1 342.7 22 148.3 58.1 330.7 82.1 402.8 82.2 264.5 270.5 428.8 557.1 488.9 561.1 116.2 761.5 184.4 1028 342.7 302.6 182.4 609.2 517 775.5 845.6 72.1 144.3 182.3 460.9 182.3 525 0 54.1 34.1 44.1 84.2-22z",
9
- transform: "matrix(.1 0 0 -.1 0 511)"
10
- }));
11
-
12
- export { Bacon as default };
@@ -1,48 +0,0 @@
1
- import styled from 'styled-components';
2
- import { BodyText } from '../../typography/BodyText/index.js';
3
- import { TinyTitle } from '../../typography/Heading/index.js';
4
- import '../../shared/media-queries.js';
5
-
6
- const ListItemWrapper = styled.li`
7
- display: flex;
8
- flex-direction: column;
9
- padding-bottom: 20px;
10
- &:last-child {
11
- padding-bottom: 0;
12
- }
13
- `;
14
- const TitleWrapper = styled.div`
15
- display: flex;
16
- align-items: center;
17
- margin: 0;
18
- `;
19
- const Title = styled(TinyTitle)`
20
- margin: 0;
21
- `;
22
- const Icon = styled.div`
23
- display: flex;
24
- align-items: center;
25
- margin-right: 24px;
26
- svg {
27
- width: 30px;
28
- height: 100%;
29
- }
30
- `;
31
- const Content = styled.div`
32
- padding-left: ${({ hasIcon }) => hasIcon ? "54px" : 0};
33
- `;
34
- const ListItem = ({
35
- title,
36
- text,
37
- icon,
38
- component: Component = "li",
39
- children,
40
- ...props
41
- }) => /* @__PURE__ */ React.createElement(ListItemWrapper, {
42
- as: Component,
43
- ...props
44
- }, /* @__PURE__ */ React.createElement(TitleWrapper, null, icon && /* @__PURE__ */ React.createElement(Icon, null, icon), /* @__PURE__ */ React.createElement(Title, null, title)), /* @__PURE__ */ React.createElement(Content, {
45
- hasIcon: Boolean(icon)
46
- }, /* @__PURE__ */ React.createElement(BodyText, null, text, children)));
47
-
48
- export { ListItem as default };
@@ -1,31 +0,0 @@
1
- const LogoEn = () => /* @__PURE__ */ React.createElement("svg", {
2
- viewBox: "0 0 622 223",
3
- fill: "none",
4
- xmlns: "http://www.w3.org/2000/svg",
5
- "aria-labelledby": "kvdlogo-en"
6
- }, /* @__PURE__ */ React.createElement("title", {
7
- id: "kvdlogo-en"
8
- }, "kvdcars.com"), /* @__PURE__ */ React.createElement("path", {
9
- d: "M563.63 130.23C561.82 127.17 559.53 124.57 556.81 122.52C554.18 120.54 551.29 118.87 548.23 117.57C545.36 116.35 542.64 115.15 540.14 113.99C537.8 112.9 535.83 111.71 534.29 110.44C533.08 109.44 532.52 108.24 532.52 106.67C532.52 105.1 533 103.96 534.02 103.11C535.07 102.24 536.56 101.77 538.46 101.73L561.94 109.52V87.83L560.57 87.35C556.81 86.02 553.15 84.93 549.69 84.12C546.16 83.29 542.26 82.86 538.12 82.86C533.98 82.86 530.19 83.43 526.85 84.55C523.47 85.69 520.55 87.34 518.16 89.44C515.76 91.56 513.88 94.13 512.56 97.09C511.24 100.04 510.58 103.34 510.58 106.9C510.58 111.77 511.52 115.84 513.38 118.99C515.2 122.07 517.48 124.61 520.18 126.56C522.79 128.44 525.66 130 528.73 131.18C531.61 132.3 534.3 133.42 536.71 134.52C539.01 135.57 540.96 136.75 542.49 138.01C543.7 139.01 544.26 140.31 544.26 142.11C544.26 144.1 543.67 145.47 542.4 146.43C541.05 147.45 539.09 147.99 536.59 148.04L511.34 139.22V161.63L512.59 162.16C515.97 163.59 519.84 164.8 524.09 165.77C528.38 166.75 532.95 167.24 537.67 167.24C541.8 167.24 545.64 166.67 549.08 165.55C552.56 164.42 555.62 162.77 558.18 160.64C560.78 158.48 562.82 155.81 564.26 152.7C565.69 149.6 566.42 146.03 566.42 142.1C566.44 137.37 565.49 133.38 563.63 130.23Z",
10
- fill: "#1A2030"
11
- }), /* @__PURE__ */ React.createElement("path", {
12
- d: "M124.01 84.33H99.02L77.58 114.92V56.04H55.16V166.56H77.58V132.24L101.06 166.56H127.94L96.57 123.5L124.01 84.33Z",
13
- fill: "#1A2030"
14
- }), /* @__PURE__ */ React.createElement("path", {
15
- d: "M235.3 144.12C224.78 144.12 216.25 135.59 216.25 125.07C216.25 114.55 224.78 106.02 235.3 106.02C245.83 106.02 254.35 114.55 254.35 125.07C254.35 135.59 245.82 144.12 235.3 144.12ZM255.53 88.9C249.48 85.46 242.49 83.5 235.04 83.5C212.11 83.5 193.52 102.09 193.52 125.02C193.52 147.95 212.11 166.54 235.04 166.54C242.49 166.54 249.49 164.58 255.53 161.14V166.56H277.95V56.04H255.53V88.9Z",
16
- fill: "#1A2030"
17
- }), /* @__PURE__ */ React.createElement("path", {
18
- d: "M175.62 84.33L161.08 131.23L146.54 84.33H124.32L149.81 166.56H150.13H172.04H172.35L197.84 84.33H175.62Z",
19
- fill: "#1A2030"
20
- }), /* @__PURE__ */ React.createElement("path", {
21
- d: "M411.58 144.12C401.06 144.12 392.53 135.59 392.53 125.07C392.53 114.55 401.06 106.02 411.58 106.02C422.1 106.02 430.63 114.55 430.63 125.07C430.63 135.59 422.11 144.12 411.58 144.12ZM411.31 83.5C388.38 83.5 369.79 102.08 369.79 125.01C369.79 147.94 388.38 166.53 411.31 166.53C418.86 166.53 425.94 164.52 432.04 161V166.55H454.46V84.33H432.04V89.03C425.94 85.52 418.86 83.5 411.31 83.5Z",
22
- fill: "#1A2030"
23
- }), /* @__PURE__ */ React.createElement("path", {
24
- d: "M342.97 130.89C340.51 138.56 333.32 144.12 324.83 144.12C314.3 144.12 305.78 135.59 305.78 125.07C305.78 114.55 314.31 106.02 324.83 106.02C333.59 106.02 340.95 111.94 343.18 120H366.04C363.56 99.44 346.06 83.5 324.84 83.5C301.91 83.5 283.33 102.09 283.33 125.01C283.33 147.94 301.9 166.52 324.84 166.52C345.77 166.52 363.08 151.02 365.93 130.88H342.97V130.89Z",
25
- fill: "#1A2030"
26
- }), /* @__PURE__ */ React.createElement("path", {
27
- d: "M505.29 83.5C498.52 83.5 492.15 85.14 486.5 88.01V84.33H464.08V166.55H486.5V161.92V125.07H486.51C486.51 114.55 495.04 106.02 505.56 106.02C505.95 106.02 506.34 106.06 506.72 106.08V83.55C506.25 83.53 505.77 83.5 505.29 83.5Z",
28
- fill: "#1A2030"
29
- }));
30
-
31
- export { LogoEn as default };
@@ -1,31 +0,0 @@
1
- const LogoSv = () => /* @__PURE__ */ React.createElement("svg", {
2
- viewBox: "0 0 492 223",
3
- fill: "none",
4
- xmlns: "http://www.w3.org/2000/svg",
5
- "aria-labelledby": "kvdlogo-sv"
6
- }, /* @__PURE__ */ React.createElement("title", {
7
- id: "kvdlogo-sv"
8
- }, "kvd.se"), /* @__PURE__ */ React.createElement("path", {
9
- d: "M124.94 84.11H99.78L78.2 114.91V55.63H55.63V166.89H78.2V132.34L101.83 166.89H128.89L97.32 123.54L124.94 84.11Z",
10
- fill: "#1A2030"
11
- }), /* @__PURE__ */ React.createElement("path", {
12
- d: "M393.79 87.26C389.7 87.26 385.88 86.1 382.64 84.1H382.51V166.88H405.08V84.1H404.95C401.69 86.1 397.87 87.26 393.79 87.26Z",
13
- fill: "#1A2030"
14
- }), /* @__PURE__ */ React.createElement("path", {
15
- d: "M436.21 55.59H413.64V166.89H436.21V55.59Z",
16
- fill: "#1A2030"
17
- }), /* @__PURE__ */ React.createElement("path", {
18
- d: "M393.79 49.9C384.96 49.9 377.77 57.09 377.77 65.92C377.77 74.75 384.95 81.94 393.79 81.94C402.63 81.94 409.81 74.76 409.81 65.92C409.8 57.09 402.62 49.9 393.79 49.9ZM393.79 72.85C389.97 72.85 386.86 69.74 386.86 65.92C386.86 62.1 389.97 58.99 393.79 58.99C397.61 58.99 400.72 62.1 400.72 65.92C400.72 69.74 397.61 72.85 393.79 72.85Z",
19
- fill: "#1A2030"
20
- }), /* @__PURE__ */ React.createElement("path", {
21
- d: "M336.08 83.27C328.48 83.27 321.36 85.3 315.22 88.84V55.63H292.65V166.89H315.22V161.3C321.36 164.84 328.49 166.87 336.08 166.87C359.16 166.87 377.88 148.16 377.88 125.07C377.87 101.98 359.16 83.27 336.08 83.27ZM335.81 144.3C325.22 144.3 316.63 135.71 316.63 125.12C316.63 114.53 325.22 105.94 335.81 105.94C346.4 105.94 354.99 114.53 354.99 125.12C354.99 135.71 346.4 144.3 335.81 144.3Z",
22
- fill: "#1A2030"
23
- }), /* @__PURE__ */ React.createElement("path", {
24
- d: "M257.34 88.71C251.25 85.25 244.21 83.27 236.71 83.27C213.62 83.27 194.91 101.98 194.91 125.07C194.91 148.15 213.62 166.87 236.71 166.87C244.21 166.87 251.25 164.89 257.34 161.43V166.89H279.91V55.63H257.34V88.71ZM236.98 144.3C226.39 144.3 217.8 135.71 217.8 125.12C217.8 114.53 226.39 105.94 236.98 105.94C247.57 105.94 256.16 114.53 256.16 125.12C256.16 135.71 247.57 144.3 236.98 144.3Z",
25
- fill: "#1A2030"
26
- }), /* @__PURE__ */ React.createElement("path", {
27
- d: "M176.9 84.11L162.26 131.32L147.62 84.11H125.25L150.92 166.89H151.23H173.29H173.6L199.27 84.11H176.9Z",
28
- fill: "#1A2030"
29
- }));
30
-
31
- export { LogoSv as default };
@@ -1,23 +0,0 @@
1
- import styled from 'styled-components';
2
- import LogoSv from './LogoSv.js';
3
- import LogoEn from './LogoEn.js';
4
-
5
- const getWidth = (locale, width) => {
6
- if (width) {
7
- return width;
8
- }
9
- return locale === "en" ? 175 : 132;
10
- };
11
- const LogoContainer = styled.div`
12
- width: ${({ width }) => width}px;
13
- `;
14
- const Logo = ({ locale, width }) => {
15
- const Logo2 = locale === "en" ? LogoEn : LogoSv;
16
- const containerWidth = getWidth(locale, width);
17
- return /* @__PURE__ */ React.createElement(LogoContainer, {
18
- width: containerWidth,
19
- "data-testid": `logo-${locale}`
20
- }, /* @__PURE__ */ React.createElement(Logo2, null));
21
- };
22
-
23
- export { Logo, Logo as default };
@@ -1,90 +0,0 @@
1
- import styled from 'styled-components';
2
- import theme from '../../theme.js';
3
-
4
- const fontSizes = {
5
- 1: {
6
- size: "2rem",
7
- lineHeight: "3rem",
8
- bottom: "2rem",
9
- fontFamily: theme.typography.fontAlternativeFamily
10
- },
11
- 2: {
12
- size: "1.5rem",
13
- lineHeight: "2.5rem",
14
- bottom: "1rem",
15
- fontFamily: theme.typography.fontAlternativeFamily
16
- },
17
- 3: {
18
- size: "1rem",
19
- lineHeight: "1.5rem",
20
- bottom: "1rem",
21
- fontFamily: theme.typography.fontBaseFamily
22
- }
23
- };
24
- const Wrapper = styled.li`
25
- list-style-type: none;
26
- display: flex;
27
- flex-direction: column;
28
- ${({ hasPreamble }) => hasPreamble && "grid-column-end: span 2"};
29
-
30
- :hover {
31
- cursor: pointer;
32
- }
33
- `;
34
- const BaseText = styled.span`
35
- font-family: ${({ theme: theme2 }) => theme2.typography.fontAlternativeFamily};
36
- font-weight: ${({ theme: theme2 }) => theme2.typography.fontAlternativeRegularWeight};
37
- `;
38
- const TextContainer = styled.div`
39
- display: flex;
40
- flex-direction: column;
41
- padding-bottom: ${({ level }) => fontSizes[level].bottom};
42
- `;
43
- const Text = styled(BaseText)`
44
- color: ${({ theme: theme2 }) => theme2.colors.text.dark};
45
- font-size: ${({ level }) => fontSizes[level].size};
46
- line-height: ${({ level }) => fontSizes[level].lineHeight};
47
- font-family: ${({ level }) => fontSizes[level].fontFamily};
48
-
49
- ${({ level, theme: theme2 }) => level === 3 && `font-weight: ${theme2.typography.fontAlternativeRegularWeight}`};
50
- `;
51
- const Title = styled(BaseText)`
52
- font-size: 0.75rem;
53
- font-weight: ${({ theme: theme2 }) => theme2.typography.fontAlternativeBoldWeight};
54
- line-height: 1.25rem;
55
- color: ${({ theme: theme2 }) => theme2.colors.text.dark};
56
- text-transform: uppercase;
57
- margin-bottom: 1.5rem;
58
- `;
59
- const Preamble = styled(BaseText)`
60
- font-size: 0.8125rem;
61
- font-weight: ${({ theme: theme2 }) => theme2.typography.fontBaseRegularWeight};
62
- line-height: 1.5rem;
63
- font-family: ${({ theme: theme2 }) => theme2.typography.fontBaseFamily};
64
- color: ${({ theme: theme2 }) => theme2.colors.text.dark};
65
- margin-top: ${({ level }) => level === 3 ? "0.25rem" : 0};
66
- `;
67
- const MenuItem = ({
68
- preamble,
69
- title,
70
- level,
71
- component: Component = "li",
72
- children,
73
- ...props
74
- }) => {
75
- const hasPreamble = Boolean(preamble);
76
- return /* @__PURE__ */ React.createElement(Wrapper, {
77
- as: Component,
78
- ...props,
79
- hasPreamble
80
- }, title && /* @__PURE__ */ React.createElement(Title, null, title), /* @__PURE__ */ React.createElement(TextContainer, {
81
- level
82
- }, /* @__PURE__ */ React.createElement(Text, {
83
- level,
84
- hasPreamble
85
- }, children), preamble && /* @__PURE__ */ React.createElement(Preamble, {
86
- level
87
- }, preamble)));
88
- };
89
-
90
- export { MenuItem, MenuItem as default };
@@ -1,128 +0,0 @@
1
- import { useEffect } from 'react';
2
- import { createPortal } from 'react-dom';
3
- import { CSSTransition } from 'react-transition-group';
4
- import styled, { css, createGlobalStyle } from 'styled-components';
5
- import Close from '../Icons/Close.js';
6
-
7
- const transitions = css`
8
- .backgroundTransition-enter {
9
- opacity: 0;
10
- }
11
-
12
- .backgroundTransition-enter.backgroundTransition-enter-active {
13
- opacity: 1;
14
- transition: opacity 0.25s ease-in-out;
15
- }
16
-
17
- .backgroundTransition-exit {
18
- opacity: 1;
19
- }
20
-
21
- .backgroundTransition-exit.backgroundTransition-exit-active {
22
- opacity: 0;
23
- transition: opacity 0.25s ease-in-out;
24
- }
25
- `;
26
- const Container = styled.div`
27
- ${transitions}
28
- position: fixed;
29
- width: 100%;
30
- height: 100%;
31
- top: 0;
32
- left: 0;
33
- z-index: 200;
34
- `;
35
- const Background = styled.div`
36
- z-index: -1;
37
- position: absolute;
38
- width: 100%;
39
- height: 100%;
40
- background-color: rgba(34, 34, 34, 0.3);
41
- `;
42
- const Content = styled.div`
43
- position: relative;
44
- max-width: 512px;
45
- padding: 24px 32px 24px 32px;
46
- background-color: white;
47
- border-radius: 3px;
48
- box-shadow: 0px 24px 38px rgba(0, 0, 0, 0.1), 0px 9px 46px rgba(0, 0, 0, 0.09),
49
- 0px 11px 15px rgba(0, 0, 0, 0.15);
50
-
51
- overflow-y: hidden;
52
- margin: 1rem;
53
- margin-top: 50vh;
54
- transform: translate(0, -50%);
55
- margin-left: 1rem;
56
- margin-right: 1rem;
57
-
58
- @media (min-width: 500px) {
59
- margin-left: auto;
60
- margin-right: auto;
61
- min-width: 355px;
62
- }
63
- `;
64
- const CloseContainer = styled.div`
65
- position: absolute;
66
- top: 24px;
67
- right: 32px;
68
-
69
- :hover {
70
- cursor: pointer;
71
- }
72
-
73
- svg {
74
- width: 1rem;
75
- height: 1rem;
76
- }
77
- `;
78
- const BodyStyleInjector = createGlobalStyle`
79
- body {
80
- overflow: hidden;
81
-
82
- ${typeof window !== "undefined" && window.innerWidth > 1024 && `
83
- padding-right: 15px !important;
84
- `}
85
- }
86
- `;
87
- const Transitions = createGlobalStyle`
88
- ${transitions}
89
- `;
90
- const Modal = ({
91
- children,
92
- isOpen,
93
- contentStyles,
94
- withPortal = false,
95
- onClose
96
- }) => {
97
- useEffect(() => {
98
- const handleKeyDown = (event) => {
99
- if (event.key === "Escape") {
100
- if (isOpen) {
101
- onClose();
102
- }
103
- }
104
- };
105
- window.addEventListener("keydown", handleKeyDown);
106
- return () => {
107
- window.removeEventListener("keydown", handleKeyDown);
108
- };
109
- }, [onClose, isOpen]);
110
- const Component = /* @__PURE__ */ React.createElement(CSSTransition, {
111
- in: isOpen,
112
- mountOnEnter: true,
113
- unmountOnExit: true,
114
- timeout: 400,
115
- classNames: "backgroundTransition"
116
- }, /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Transitions, null), /* @__PURE__ */ React.createElement(Container, null, /* @__PURE__ */ React.createElement(Background, {
117
- "data-testid": "background",
118
- onClick: onClose
119
- }), /* @__PURE__ */ React.createElement(Content, {
120
- style: contentStyles
121
- }, /* @__PURE__ */ React.createElement(CloseContainer, {
122
- onClick: onClose,
123
- "data-testid": "close"
124
- }, /* @__PURE__ */ React.createElement(Close, null)), children), /* @__PURE__ */ React.createElement(BodyStyleInjector, null))));
125
- return withPortal ? createPortal(Component, document.body) : Component;
126
- };
127
-
128
- export { Modal, Modal as default };
@@ -1,31 +0,0 @@
1
- import styled from 'styled-components';
2
- import { Badge } from '../Badge/index.js';
3
- import { Button } from '../Button/index.js';
4
- import '../../theme.js';
5
- import '../Spinner/index.js';
6
- import '../../typography/ButtonText/index.js';
7
-
8
- const Container = styled.div`
9
- position: relative;
10
- display: inline-block;
11
- `;
12
- const StyledBadge = styled(Badge)`
13
- position: absolute;
14
- top: 0;
15
- right: 0;
16
- margin: -10px;
17
- border: 2px solid white;
18
- ${(props) => props.noPadding && `padding: 0;`}
19
- `;
20
- const NotificationButton = (props) => {
21
- const count = props.badgeProps.notificationAmount || 0;
22
- const noPadding = count < 10;
23
- return /* @__PURE__ */ React.createElement(Container, null, /* @__PURE__ */ React.createElement(Button, {
24
- ...props.buttonProps
25
- }, props.children), /* @__PURE__ */ React.createElement(StyledBadge, {
26
- ...props.badgeProps,
27
- noPadding
28
- }));
29
- };
30
-
31
- export { NotificationButton };
@@ -1,61 +0,0 @@
1
- import React__default from 'react';
2
- import { CSSTransition } from 'react-transition-group';
3
- import styled from 'styled-components';
4
-
5
- const defaultTransitionProps = {
6
- classNames: "backgroundTransition",
7
- timeout: {
8
- enter: 400,
9
- exit: 400
10
- },
11
- mountOnEnter: true,
12
- unmountOnExit: true
13
- };
14
- const Background = styled.div`
15
- position: fixed;
16
- z-index: 1000;
17
- width: 100%;
18
- height: 100%;
19
- top: 0;
20
- right: 0;
21
- background-color: rgba(0, 0, 0, 0.4);
22
-
23
- &.backgroundTransition-enter {
24
- opacity: 0;
25
- }
26
-
27
- &.backgroundTransition-enter.backgroundTransition-enter-active {
28
- opacity: 1;
29
- transition: opacity 0.2s ease-in-out;
30
- }
31
-
32
- &.backgroundTransition-exit {
33
- opacity: 1;
34
- }
35
-
36
- &.backgroundTransition-exit.backgroundTransition-exit-active {
37
- opacity: 0;
38
- transition: opacity 0.2s ease-in-out;
39
- }
40
- `;
41
- const Overlay = ({
42
- className,
43
- isOpen,
44
- onClick,
45
- transitionProps = defaultTransitionProps
46
- }) => {
47
- const handleClick = () => {
48
- if (onClick) {
49
- onClick();
50
- }
51
- };
52
- return /* @__PURE__ */ React__default.createElement(CSSTransition, {
53
- in: isOpen,
54
- ...transitionProps,
55
- className
56
- }, /* @__PURE__ */ React__default.createElement(Background, {
57
- onClick: handleClick
58
- }));
59
- };
60
-
61
- export { Overlay as default };