@kvdbil/components 3.3.5-4 → 3.4.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 (457) hide show
  1. package/cjs/ColorCard.js +10 -31
  2. package/cjs/ElevationCard.js +5 -21
  3. package/cjs/Interfaces.js +1 -2
  4. package/cjs/Types.js +1 -2
  5. package/cjs/components/Accordion/index.js +20 -64
  6. package/cjs/components/Badge/index.js +9 -43
  7. package/cjs/components/Button/index.js +60 -125
  8. package/cjs/components/Card/index.js +6 -25
  9. package/cjs/components/CheckBox/index.js +24 -53
  10. package/cjs/components/Chip/index.js +10 -65
  11. package/cjs/components/DayPicker/DayPickerNavBar.js +9 -32
  12. package/cjs/components/DayPicker/index.js +10 -40
  13. package/cjs/components/DayPicker/localeUtils.js +1 -60
  14. package/cjs/components/DayPicker/style.js +226 -0
  15. package/cjs/components/Dialog/index.js +9 -42
  16. package/cjs/components/ErrorMessage/index.js +6 -21
  17. package/cjs/components/FieldLabel.js +22 -49
  18. package/cjs/components/Header/Hamburger.js +7 -22
  19. package/cjs/components/Header/Link.js +9 -26
  20. package/cjs/components/Header/index.js +16 -45
  21. package/cjs/components/Hero/index.js +7 -32
  22. package/cjs/components/Icon/index.js +11 -76
  23. package/cjs/components/IconButton.js +15 -54
  24. package/cjs/components/Icons/Arrow.js +1 -9
  25. package/cjs/components/Icons/CheckCircle.js +1 -9
  26. package/cjs/components/Icons/CheckIcon.js +1 -9
  27. package/cjs/components/Icons/Close.js +1 -9
  28. package/cjs/components/Icons/ErrorCircle.js +1 -9
  29. package/cjs/components/Icons/InfoCircle.js +1 -9
  30. package/cjs/components/InlineStepper/Step.js +16 -53
  31. package/cjs/components/InlineStepper/StepCircle.js +11 -46
  32. package/cjs/components/InlineStepper/index.js +4 -39
  33. package/cjs/components/ListItem/Bacon.js +1 -9
  34. package/cjs/components/ListItem/index.js +7 -28
  35. package/cjs/components/Logo/LogoEn.js +1 -9
  36. package/cjs/components/Logo/LogoSv.js +1 -9
  37. package/cjs/components/Logo/index.js +3 -30
  38. package/cjs/components/MenuItem/index.js +23 -68
  39. package/cjs/components/Modal/index.js +11 -54
  40. package/cjs/components/NotificationButton/index.js +4 -28
  41. package/cjs/components/OffCanvas/Overlay.js +2 -33
  42. package/cjs/components/OffCanvas/index.js +21 -62
  43. package/cjs/components/OffCanvas/useClickOutside.js +1 -21
  44. package/cjs/components/RadioButton/index.js +28 -58
  45. package/cjs/components/Range/index.js +10 -35
  46. package/cjs/components/Select/components/test-icon.js +1 -9
  47. package/cjs/components/Select/index.js +18 -147
  48. package/cjs/components/Snackbar/index.js +24 -76
  49. package/cjs/components/Spinner/index.js +10 -46
  50. package/cjs/components/Stepper/index.js +11 -35
  51. package/cjs/components/StepperAccordion/index.js +26 -76
  52. package/cjs/components/Tabs/index.js +7 -47
  53. package/cjs/components/TextArea/index.js +30 -61
  54. package/cjs/components/Textfield/index.js +29 -69
  55. package/cjs/components/TimePicker/index.js +2 -29
  56. package/cjs/components/TimePicker/testHelper.js +1 -17
  57. package/cjs/components/Toggle/index.js +12 -45
  58. package/cjs/icons/components/AccountCreateIcon.js +1 -11
  59. package/cjs/icons/components/AccountIcon.js +1 -11
  60. package/cjs/icons/components/AccountLoginIcon.js +1 -11
  61. package/cjs/icons/components/ArrowDownIcon.js +1 -11
  62. package/cjs/icons/components/ArrowLeftIcon.js +1 -11
  63. package/cjs/icons/components/ArrowLeftSharpIcon.js +1 -11
  64. package/cjs/icons/components/ArrowLeftSmallIcon.js +1 -11
  65. package/cjs/icons/components/ArrowLong.js +1 -11
  66. package/cjs/icons/components/ArrowRestartIcon.js +1 -11
  67. package/cjs/icons/components/ArrowRightIcon.js +1 -11
  68. package/cjs/icons/components/ArrowRightSharpIcon.js +1 -11
  69. package/cjs/icons/components/ArrowUpIcon.js +1 -11
  70. package/cjs/icons/components/AuctionIcon.js +1 -11
  71. package/cjs/icons/components/BackArrowIcon.js +1 -11
  72. package/cjs/icons/components/Baseline360Icon.js +1 -11
  73. package/cjs/icons/components/BellIcon.js +1 -11
  74. package/cjs/icons/components/BidIcon.js +1 -11
  75. package/cjs/icons/components/BidKrIcon.js +1 -11
  76. package/cjs/icons/components/BreaksIcon.js +1 -11
  77. package/cjs/icons/components/BuyCarIcon.js +1 -11
  78. package/cjs/icons/components/CabIcon.js +1 -11
  79. package/cjs/icons/components/CalendarIcon.js +1 -11
  80. package/cjs/icons/components/CameraIcon.js +1 -11
  81. package/cjs/icons/components/Car360Icon.js +1 -11
  82. package/cjs/icons/components/CarFrontIcon.js +1 -11
  83. package/cjs/icons/components/CarSearchIcon.js +1 -11
  84. package/cjs/icons/components/CarSideIcon.js +1 -11
  85. package/cjs/icons/components/CarTiresIcon.js +1 -11
  86. package/cjs/icons/components/CaravanIcon.js +1 -11
  87. package/cjs/icons/components/CardViewIcon.js +1 -11
  88. package/cjs/icons/components/CarloanIcon.js +1 -11
  89. package/cjs/icons/components/CertifiedIcon.js +1 -11
  90. package/cjs/icons/components/ChatIcon.js +1 -11
  91. package/cjs/icons/components/CheckIcon.js +1 -11
  92. package/cjs/icons/components/CheckThinIcon.js +1 -11
  93. package/cjs/icons/components/CheckmarkFilledIcon.js +1 -11
  94. package/cjs/icons/components/CheckmarkIcon.js +1 -11
  95. package/cjs/icons/components/ClipboardFilledIcon.js +1 -11
  96. package/cjs/icons/components/ClipboardIcon.js +1 -11
  97. package/cjs/icons/components/ClockFilledIcon.js +1 -11
  98. package/cjs/icons/components/ClockIcon.js +1 -11
  99. package/cjs/icons/components/CloseIcon.js +1 -11
  100. package/cjs/icons/components/CloseThinIcon.js +1 -11
  101. package/cjs/icons/components/CoffeeIcon.js +1 -11
  102. package/cjs/icons/components/CombiIcon.js +1 -11
  103. package/cjs/icons/components/CommentCircleFilledIcon.js +1 -11
  104. package/cjs/icons/components/CommentCircleIconIcon.js +1 -11
  105. package/cjs/icons/components/CommentIcon.js +1 -11
  106. package/cjs/icons/components/ContactIcon.js +1 -11
  107. package/cjs/icons/components/CoupeIcon.js +1 -11
  108. package/cjs/icons/components/CreditCardIcon.js +1 -11
  109. package/cjs/icons/components/CrossCircleIcon.js +1 -11
  110. package/cjs/icons/components/CrownIcon.js +1 -11
  111. package/cjs/icons/components/DealmakerIcon.js +1 -11
  112. package/cjs/icons/components/DeliveryIcon.js +1 -11
  113. package/cjs/icons/components/DetailedSearchIcon.js +1 -11
  114. package/cjs/icons/components/EcoFriendlyIcon.js +1 -11
  115. package/cjs/icons/components/EditIcon.js +1 -11
  116. package/cjs/icons/components/EngineIcon.js +1 -11
  117. package/cjs/icons/components/EnglandFlagIcon.js +1 -11
  118. package/cjs/icons/components/EvaluationIcon.js +1 -11
  119. package/cjs/icons/components/ExaminationMarkFilledIcon.js +1 -11
  120. package/cjs/icons/components/ExaminationMarkIcon.js +1 -11
  121. package/cjs/icons/components/ExteriorIcon.js +1 -11
  122. package/cjs/icons/components/EyeIcon.js +1 -11
  123. package/cjs/icons/components/FacebookBtnIcon.js +1 -11
  124. package/cjs/icons/components/FacebookIcon.js +1 -11
  125. package/cjs/icons/components/FatalIcon.js +1 -11
  126. package/cjs/icons/components/FavouriteIcon.js +1 -11
  127. package/cjs/icons/components/FavouriteSolidIcon.js +1 -11
  128. package/cjs/icons/components/FilterIcon.js +1 -11
  129. package/cjs/icons/components/FinanceIcon.js +1 -11
  130. package/cjs/icons/components/FindCarIcon.js +1 -11
  131. package/cjs/icons/components/FixedMonthlyCostIcon.js +1 -11
  132. package/cjs/icons/components/FlagIcon.js +1 -11
  133. package/cjs/icons/components/FlexibilityIcon.js +1 -11
  134. package/cjs/icons/components/ForumLargeIcon.js +1 -11
  135. package/cjs/icons/components/ForumSmallIcon.js +1 -11
  136. package/cjs/icons/components/GavelIcon.js +1 -11
  137. package/cjs/icons/components/GearboxIcon.js +1 -11
  138. package/cjs/icons/components/GiftIcon.js +1 -11
  139. package/cjs/icons/components/GridViewIcon.js +1 -11
  140. package/cjs/icons/components/GroupIcon.js +1 -11
  141. package/cjs/icons/components/GuaranteeIcon.js +1 -11
  142. package/cjs/icons/components/GuaranteeLargeIcon.js +1 -11
  143. package/cjs/icons/components/GuaranteeSmallIcon.js +1 -11
  144. package/cjs/icons/components/HalfCombiIcon.js +1 -11
  145. package/cjs/icons/components/HamburgerIcon.js +1 -11
  146. package/cjs/icons/components/HandshakeIcon.js +1 -11
  147. package/cjs/icons/components/HelpingHandIcon.js +1 -11
  148. package/cjs/icons/components/IdIcon.js +1 -11
  149. package/cjs/icons/components/InformationIcon.js +1 -11
  150. package/cjs/icons/components/InstagramIcon.js +1 -11
  151. package/cjs/icons/components/InsuranceIcon.js +1 -11
  152. package/cjs/icons/components/InteriorIcon.js +1 -11
  153. package/cjs/icons/components/InteriorThinIcon.js +1 -11
  154. package/cjs/icons/components/InternationalIcon.js +1 -11
  155. package/cjs/icons/components/KvdTestIcon.js +1 -11
  156. package/cjs/icons/components/KvdVenueIcon.js +1 -11
  157. package/cjs/icons/components/LifebuoyIcon.js +1 -11
  158. package/cjs/icons/components/LiftTruckIcon.js +1 -11
  159. package/cjs/icons/components/LinkedInIcon.js +1 -11
  160. package/cjs/icons/components/ListViewIcon.js +1 -11
  161. package/cjs/icons/components/MailIcon.js +1 -11
  162. package/cjs/icons/components/MinibusIcon.js +1 -11
  163. package/cjs/icons/components/MinivanIcon.js +1 -11
  164. package/cjs/icons/components/MobileIcon.js +1 -11
  165. package/cjs/icons/components/MotorcycleIcon.js +1 -11
  166. package/cjs/icons/components/MrfLogoIcon.js +1 -11
  167. package/cjs/icons/components/NotFoundIcon.js +1 -11
  168. package/cjs/icons/components/OverbidIcon.js +1 -11
  169. package/cjs/icons/components/PdfIconIcon.js +1 -11
  170. package/cjs/icons/components/PhoneIcon.js +1 -11
  171. package/cjs/icons/components/PickUpIcon.js +1 -11
  172. package/cjs/icons/components/PinIcon.js +1 -11
  173. package/cjs/icons/components/PlayIcon.js +1 -11
  174. package/cjs/icons/components/Pricetag.js +1 -11
  175. package/cjs/icons/components/PricetagFilledKronaIcon.js +1 -11
  176. package/cjs/icons/components/PrivateCarIcon.js +1 -11
  177. package/cjs/icons/components/ProfileCircleIcon.js +1 -11
  178. package/cjs/icons/components/ProfileIcon.js +1 -11
  179. package/cjs/icons/components/RadioIcon.js +1 -11
  180. package/cjs/icons/components/ReclamationIcon.js +1 -11
  181. package/cjs/icons/components/ReleasingIcon.js +1 -11
  182. package/cjs/icons/components/RemoveFilterIcon.js +1 -11
  183. package/cjs/icons/components/ReservedPriceIcon.js +1 -11
  184. package/cjs/icons/components/ResultIcon.js +1 -11
  185. package/cjs/icons/components/SafePaymentIcon.js +1 -11
  186. package/cjs/icons/components/SaleTagIcon.js +1 -11
  187. package/cjs/icons/components/SearchCheckIcon.js +1 -11
  188. package/cjs/icons/components/SearchIcon.js +1 -11
  189. package/cjs/icons/components/SedanIcon.js +1 -11
  190. package/cjs/icons/components/SellCarIcon.js +1 -11
  191. package/cjs/icons/components/SellCarsIcon.js +1 -11
  192. package/cjs/icons/components/ServiceIcon.js +1 -11
  193. package/cjs/icons/components/ShareIcon.js +1 -11
  194. package/cjs/icons/components/ShieldIcon.js +1 -11
  195. package/cjs/icons/components/SignInIcon.js +1 -11
  196. package/cjs/icons/components/SignOutIcon.js +1 -11
  197. package/cjs/icons/components/SpeedMeterIcon.js +1 -11
  198. package/cjs/icons/components/StarCircleIcon.js +1 -11
  199. package/cjs/icons/components/StartIcon.js +1 -11
  200. package/cjs/icons/components/StoreIcon.js +1 -11
  201. package/cjs/icons/components/SuvIcon.js +1 -11
  202. package/cjs/icons/components/SwedenFlag.js +1 -11
  203. package/cjs/icons/components/TankIcon.js +1 -11
  204. package/cjs/icons/components/TireIcon.js +1 -11
  205. package/cjs/icons/components/TransportIcon.js +1 -11
  206. package/cjs/icons/components/TrashcanIcon.js +1 -11
  207. package/cjs/icons/components/TrophyIcon.js +1 -11
  208. package/cjs/icons/components/TruckIcon.js +1 -11
  209. package/cjs/icons/components/UmbrellaIcon.js +1 -11
  210. package/cjs/icons/components/ValuationIcon.js +1 -11
  211. package/cjs/icons/components/ValueIcon.js +1 -11
  212. package/cjs/icons/components/WarningIcon.js +1 -11
  213. package/cjs/icons/components/YoutubeIcon.js +1 -11
  214. package/cjs/icons/components/index.js +1 -320
  215. package/cjs/index.js +1 -439
  216. package/cjs/shared/constants.js +1 -7
  217. package/cjs/shared/helpers.js +1 -28
  218. package/cjs/shared/helpers.spec.js +1 -42
  219. package/cjs/shared/media-queries.js +1 -41
  220. package/cjs/theme.js +1 -125
  221. package/cjs/typography/BodyText/index.js +20 -53
  222. package/cjs/typography/ButtonText/index.js +15 -43
  223. package/cjs/typography/Heading/index.js +22 -54
  224. package/cjs/utils/utils.js +2 -30
  225. package/esm/ColorCard.js +10 -23
  226. package/esm/ElevationCard.js +5 -13
  227. package/esm/components/Accordion/index.js +20 -55
  228. package/esm/components/Badge/index.js +9 -34
  229. package/esm/components/Button/index.js +50 -106
  230. package/esm/components/Card/index.js +6 -16
  231. package/esm/components/CheckBox/index.js +17 -37
  232. package/esm/components/Chip/index.js +10 -56
  233. package/esm/components/DayPicker/DayPickerNavBar.js +9 -24
  234. package/esm/components/DayPicker/index.js +10 -30
  235. package/esm/components/DayPicker/localeUtils.js +1 -52
  236. package/esm/components/DayPicker/style.js +226 -0
  237. package/esm/components/Dialog/index.js +9 -33
  238. package/esm/components/ErrorMessage/index.js +6 -12
  239. package/esm/components/FieldLabel.js +21 -40
  240. package/esm/components/Header/Hamburger.js +7 -14
  241. package/esm/components/Header/Link.js +9 -18
  242. package/esm/components/Header/index.js +16 -36
  243. package/esm/components/Hero/index.js +7 -23
  244. package/esm/components/Icon/index.js +11 -68
  245. package/esm/components/IconButton.js +15 -46
  246. package/esm/components/Icons/Arrow.js +1 -5
  247. package/esm/components/Icons/CheckCircle.js +1 -5
  248. package/esm/components/Icons/CheckIcon.js +1 -5
  249. package/esm/components/Icons/Close.js +1 -5
  250. package/esm/components/Icons/ErrorCircle.js +1 -5
  251. package/esm/components/Icons/InfoCircle.js +1 -5
  252. package/esm/components/InlineStepper/Step.js +16 -44
  253. package/esm/components/InlineStepper/StepCircle.js +11 -38
  254. package/esm/components/InlineStepper/index.js +4 -31
  255. package/esm/components/ListItem/Bacon.js +1 -5
  256. package/esm/components/ListItem/index.js +7 -20
  257. package/esm/components/Logo/LogoEn.js +1 -5
  258. package/esm/components/Logo/LogoSv.js +1 -5
  259. package/esm/components/Logo/index.js +3 -21
  260. package/esm/components/MenuItem/index.js +22 -58
  261. package/esm/components/Modal/index.js +11 -45
  262. package/esm/components/NotificationButton/index.js +4 -20
  263. package/esm/components/OffCanvas/Overlay.js +2 -25
  264. package/esm/components/OffCanvas/index.js +21 -53
  265. package/esm/components/OffCanvas/useClickOutside.js +1 -17
  266. package/esm/components/RadioButton/index.js +21 -42
  267. package/esm/components/Range/index.js +10 -26
  268. package/esm/components/Select/components/test-icon.js +1 -5
  269. package/esm/components/Select/index.js +18 -137
  270. package/esm/components/Snackbar/index.js +24 -67
  271. package/esm/components/Spinner/index.js +10 -38
  272. package/esm/components/Stepper/index.js +11 -27
  273. package/esm/components/StepperAccordion/index.js +23 -64
  274. package/esm/components/Tabs/index.js +7 -37
  275. package/esm/components/TextArea/index.js +30 -52
  276. package/esm/components/Textfield/index.js +29 -60
  277. package/esm/components/TimePicker/index.js +2 -20
  278. package/esm/components/TimePicker/testHelper.js +1 -13
  279. package/esm/components/Toggle/index.js +12 -37
  280. package/esm/icons/components/AccountCreateIcon.js +1 -7
  281. package/esm/icons/components/AccountIcon.js +1 -7
  282. package/esm/icons/components/AccountLoginIcon.js +1 -7
  283. package/esm/icons/components/ArrowDownIcon.js +1 -7
  284. package/esm/icons/components/ArrowLeftIcon.js +1 -7
  285. package/esm/icons/components/ArrowLeftSharpIcon.js +1 -7
  286. package/esm/icons/components/ArrowLeftSmallIcon.js +1 -7
  287. package/esm/icons/components/ArrowLong.js +1 -7
  288. package/esm/icons/components/ArrowRestartIcon.js +1 -7
  289. package/esm/icons/components/ArrowRightIcon.js +1 -7
  290. package/esm/icons/components/ArrowRightSharpIcon.js +1 -7
  291. package/esm/icons/components/ArrowUpIcon.js +1 -7
  292. package/esm/icons/components/AuctionIcon.js +1 -7
  293. package/esm/icons/components/BackArrowIcon.js +1 -7
  294. package/esm/icons/components/Baseline360Icon.js +1 -7
  295. package/esm/icons/components/BellIcon.js +1 -7
  296. package/esm/icons/components/BidIcon.js +1 -7
  297. package/esm/icons/components/BidKrIcon.js +1 -7
  298. package/esm/icons/components/BreaksIcon.js +1 -7
  299. package/esm/icons/components/BuyCarIcon.js +1 -7
  300. package/esm/icons/components/CabIcon.js +1 -7
  301. package/esm/icons/components/CalendarIcon.js +1 -7
  302. package/esm/icons/components/CameraIcon.js +1 -7
  303. package/esm/icons/components/Car360Icon.js +1 -7
  304. package/esm/icons/components/CarFrontIcon.js +1 -7
  305. package/esm/icons/components/CarSearchIcon.js +1 -7
  306. package/esm/icons/components/CarSideIcon.js +1 -7
  307. package/esm/icons/components/CarTiresIcon.js +1 -7
  308. package/esm/icons/components/CaravanIcon.js +1 -7
  309. package/esm/icons/components/CardViewIcon.js +1 -7
  310. package/esm/icons/components/CarloanIcon.js +1 -7
  311. package/esm/icons/components/CertifiedIcon.js +1 -7
  312. package/esm/icons/components/ChatIcon.js +1 -7
  313. package/esm/icons/components/CheckIcon.js +1 -7
  314. package/esm/icons/components/CheckThinIcon.js +1 -7
  315. package/esm/icons/components/CheckmarkFilledIcon.js +1 -7
  316. package/esm/icons/components/CheckmarkIcon.js +1 -7
  317. package/esm/icons/components/ClipboardFilledIcon.js +1 -7
  318. package/esm/icons/components/ClipboardIcon.js +1 -7
  319. package/esm/icons/components/ClockFilledIcon.js +1 -7
  320. package/esm/icons/components/ClockIcon.js +1 -7
  321. package/esm/icons/components/CloseIcon.js +1 -7
  322. package/esm/icons/components/CloseThinIcon.js +1 -7
  323. package/esm/icons/components/CoffeeIcon.js +1 -7
  324. package/esm/icons/components/CombiIcon.js +1 -7
  325. package/esm/icons/components/CommentCircleFilledIcon.js +1 -7
  326. package/esm/icons/components/CommentCircleIconIcon.js +1 -7
  327. package/esm/icons/components/CommentIcon.js +1 -7
  328. package/esm/icons/components/ContactIcon.js +1 -7
  329. package/esm/icons/components/CoupeIcon.js +1 -7
  330. package/esm/icons/components/CreditCardIcon.js +1 -7
  331. package/esm/icons/components/CrossCircleIcon.js +1 -7
  332. package/esm/icons/components/CrownIcon.js +1 -7
  333. package/esm/icons/components/DealmakerIcon.js +1 -7
  334. package/esm/icons/components/DeliveryIcon.js +1 -7
  335. package/esm/icons/components/DetailedSearchIcon.js +1 -7
  336. package/esm/icons/components/EcoFriendlyIcon.js +1 -7
  337. package/esm/icons/components/EditIcon.js +1 -7
  338. package/esm/icons/components/EngineIcon.js +1 -7
  339. package/esm/icons/components/EnglandFlagIcon.js +1 -7
  340. package/esm/icons/components/EvaluationIcon.js +1 -7
  341. package/esm/icons/components/ExaminationMarkFilledIcon.js +1 -7
  342. package/esm/icons/components/ExaminationMarkIcon.js +1 -7
  343. package/esm/icons/components/ExteriorIcon.js +1 -7
  344. package/esm/icons/components/EyeIcon.js +1 -7
  345. package/esm/icons/components/FacebookBtnIcon.js +1 -7
  346. package/esm/icons/components/FacebookIcon.js +1 -7
  347. package/esm/icons/components/FatalIcon.js +1 -7
  348. package/esm/icons/components/FavouriteIcon.js +1 -7
  349. package/esm/icons/components/FavouriteSolidIcon.js +1 -7
  350. package/esm/icons/components/FilterIcon.js +1 -7
  351. package/esm/icons/components/FinanceIcon.js +1 -7
  352. package/esm/icons/components/FindCarIcon.js +1 -7
  353. package/esm/icons/components/FixedMonthlyCostIcon.js +1 -7
  354. package/esm/icons/components/FlagIcon.js +1 -7
  355. package/esm/icons/components/FlexibilityIcon.js +1 -7
  356. package/esm/icons/components/ForumLargeIcon.js +1 -7
  357. package/esm/icons/components/ForumSmallIcon.js +1 -7
  358. package/esm/icons/components/GavelIcon.js +1 -7
  359. package/esm/icons/components/GearboxIcon.js +1 -7
  360. package/esm/icons/components/GiftIcon.js +1 -7
  361. package/esm/icons/components/GridViewIcon.js +1 -7
  362. package/esm/icons/components/GroupIcon.js +1 -7
  363. package/esm/icons/components/GuaranteeIcon.js +1 -7
  364. package/esm/icons/components/GuaranteeLargeIcon.js +1 -7
  365. package/esm/icons/components/GuaranteeSmallIcon.js +1 -7
  366. package/esm/icons/components/HalfCombiIcon.js +1 -7
  367. package/esm/icons/components/HamburgerIcon.js +1 -7
  368. package/esm/icons/components/HandshakeIcon.js +1 -7
  369. package/esm/icons/components/HelpingHandIcon.js +1 -7
  370. package/esm/icons/components/IdIcon.js +1 -7
  371. package/esm/icons/components/InformationIcon.js +1 -7
  372. package/esm/icons/components/InstagramIcon.js +1 -7
  373. package/esm/icons/components/InsuranceIcon.js +1 -7
  374. package/esm/icons/components/InteriorIcon.js +1 -7
  375. package/esm/icons/components/InteriorThinIcon.js +1 -7
  376. package/esm/icons/components/InternationalIcon.js +1 -7
  377. package/esm/icons/components/KvdTestIcon.js +1 -7
  378. package/esm/icons/components/KvdVenueIcon.js +1 -7
  379. package/esm/icons/components/LifebuoyIcon.js +1 -7
  380. package/esm/icons/components/LiftTruckIcon.js +1 -7
  381. package/esm/icons/components/LinkedInIcon.js +1 -7
  382. package/esm/icons/components/ListViewIcon.js +1 -7
  383. package/esm/icons/components/MailIcon.js +1 -7
  384. package/esm/icons/components/MinibusIcon.js +1 -7
  385. package/esm/icons/components/MinivanIcon.js +1 -7
  386. package/esm/icons/components/MobileIcon.js +1 -7
  387. package/esm/icons/components/MotorcycleIcon.js +1 -7
  388. package/esm/icons/components/MrfLogoIcon.js +1 -7
  389. package/esm/icons/components/NotFoundIcon.js +1 -7
  390. package/esm/icons/components/OverbidIcon.js +1 -7
  391. package/esm/icons/components/PdfIconIcon.js +1 -7
  392. package/esm/icons/components/PhoneIcon.js +1 -7
  393. package/esm/icons/components/PickUpIcon.js +1 -7
  394. package/esm/icons/components/PinIcon.js +1 -7
  395. package/esm/icons/components/PlayIcon.js +1 -7
  396. package/esm/icons/components/Pricetag.js +1 -7
  397. package/esm/icons/components/PricetagFilledKronaIcon.js +1 -7
  398. package/esm/icons/components/PrivateCarIcon.js +1 -7
  399. package/esm/icons/components/ProfileCircleIcon.js +1 -7
  400. package/esm/icons/components/ProfileIcon.js +1 -7
  401. package/esm/icons/components/RadioIcon.js +1 -7
  402. package/esm/icons/components/ReclamationIcon.js +1 -7
  403. package/esm/icons/components/ReleasingIcon.js +1 -7
  404. package/esm/icons/components/RemoveFilterIcon.js +1 -7
  405. package/esm/icons/components/ReservedPriceIcon.js +1 -7
  406. package/esm/icons/components/ResultIcon.js +1 -7
  407. package/esm/icons/components/SafePaymentIcon.js +1 -7
  408. package/esm/icons/components/SaleTagIcon.js +1 -7
  409. package/esm/icons/components/SearchCheckIcon.js +1 -7
  410. package/esm/icons/components/SearchIcon.js +1 -7
  411. package/esm/icons/components/SedanIcon.js +1 -7
  412. package/esm/icons/components/SellCarIcon.js +1 -7
  413. package/esm/icons/components/SellCarsIcon.js +1 -7
  414. package/esm/icons/components/ServiceIcon.js +1 -7
  415. package/esm/icons/components/ShareIcon.js +1 -7
  416. package/esm/icons/components/ShieldIcon.js +1 -7
  417. package/esm/icons/components/SignInIcon.js +1 -7
  418. package/esm/icons/components/SignOutIcon.js +1 -7
  419. package/esm/icons/components/SpeedMeterIcon.js +1 -7
  420. package/esm/icons/components/StarCircleIcon.js +1 -7
  421. package/esm/icons/components/StartIcon.js +1 -7
  422. package/esm/icons/components/StoreIcon.js +1 -7
  423. package/esm/icons/components/SuvIcon.js +1 -7
  424. package/esm/icons/components/SwedenFlag.js +1 -7
  425. package/esm/icons/components/TankIcon.js +1 -7
  426. package/esm/icons/components/TireIcon.js +1 -7
  427. package/esm/icons/components/TransportIcon.js +1 -7
  428. package/esm/icons/components/TrashcanIcon.js +1 -7
  429. package/esm/icons/components/TrophyIcon.js +1 -7
  430. package/esm/icons/components/TruckIcon.js +1 -7
  431. package/esm/icons/components/UmbrellaIcon.js +1 -7
  432. package/esm/icons/components/ValuationIcon.js +1 -7
  433. package/esm/icons/components/ValueIcon.js +1 -7
  434. package/esm/icons/components/WarningIcon.js +1 -7
  435. package/esm/icons/components/YoutubeIcon.js +1 -7
  436. package/esm/icons/components/index.js +1 -157
  437. package/esm/index.js +1 -221
  438. package/esm/shared/constants.js +1 -3
  439. package/esm/shared/helpers.js +1 -23
  440. package/esm/shared/helpers.spec.js +1 -40
  441. package/esm/shared/media-queries.js +1 -35
  442. package/esm/theme.js +1 -121
  443. package/esm/typography/BodyText/index.js +20 -35
  444. package/esm/typography/ButtonText/index.js +15 -28
  445. package/esm/typography/Heading/index.js +22 -38
  446. package/esm/utils/utils.js +2 -25
  447. package/package.json +11 -8
  448. package/types/components/DayPicker/index.d.ts +0 -1
  449. package/types/components/DayPicker/style.d.ts +2 -0
  450. package/types/components/FieldLabel.d.ts +1 -1
  451. package/types/components/Header/Link.d.ts +1 -1
  452. package/types/components/MenuItem/index.d.ts +1 -1
  453. package/types/components/Select/index.d.ts +9 -8
  454. package/cjs/react-app-env.d.js +0 -2
  455. package/cjs/styled.d.js +0 -4
  456. package/esm/react-app-env.d.js +0 -1
  457. package/esm/styled.d.js +0 -1
@@ -0,0 +1,226 @@
1
+ import{css as e}from"styled-components";var a=e`
2
+ /* DayPicker styles */
3
+
4
+ .DayPicker {
5
+ display: inline-block;
6
+ font-size: 1rem;
7
+ }
8
+
9
+ .DayPicker-wrapper {
10
+ position: relative;
11
+
12
+ flex-direction: row;
13
+ padding-bottom: 1em;
14
+
15
+ -webkit-user-select: none;
16
+
17
+ -moz-user-select: none;
18
+
19
+ -ms-user-select: none;
20
+
21
+ user-select: none;
22
+ }
23
+
24
+ .DayPicker-Months {
25
+ display: flex;
26
+ flex-wrap: wrap;
27
+ justify-content: center;
28
+ }
29
+
30
+ .DayPicker-Month {
31
+ display: table;
32
+ margin: 0 1em;
33
+ margin-top: 1em;
34
+ border-spacing: 0;
35
+ border-collapse: collapse;
36
+
37
+ -webkit-user-select: none;
38
+
39
+ -moz-user-select: none;
40
+
41
+ -ms-user-select: none;
42
+
43
+ user-select: none;
44
+ }
45
+
46
+ .DayPicker-NavBar {
47
+ }
48
+
49
+ .DayPicker-NavButton {
50
+ position: absolute;
51
+ top: 1em;
52
+ right: 1.5em;
53
+ left: auto;
54
+
55
+ display: inline-block;
56
+ margin-top: 2px;
57
+ width: 1.25em;
58
+ height: 1.25em;
59
+ background-position: center;
60
+ background-size: 50%;
61
+ background-repeat: no-repeat;
62
+ color: #8b9898;
63
+ cursor: pointer;
64
+ }
65
+
66
+ .DayPicker-NavButton:hover {
67
+ opacity: 0.8;
68
+ }
69
+
70
+ .DayPicker-NavButton--prev {
71
+ margin-right: 1.5em;
72
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAVVJREFUWAnN2G0KgjAYwPHpGfRkaZeqvgQaK+hY3SUHrk1YzNLay/OiEFp92I+/Mp2F2Mh2lLISWnflFjzH263RQjzMZ19wgs73ez0o1WmtW+dgA01VxrE3p6l2GLsnBy1VYQOtVSEH/atCCgqpQgKKqYIOiq2CBkqtggLKqQIKgqgCBjpJ2Y5CdJ+zrT9A7HHSTA1dxUdHgzCqJIEwq0SDsKsEg6iqBIEoq/wEcVRZBXFV+QJxV5mBtlDFB5VjYTaGZ2sf4R9PM7U9ZU+lLuaetPP/5Die3ToO1+u+MKtHs06qODB2zBnI/jBd4MPQm1VkY79Tb18gB+C62FdBFsZR6yeIo1YQiLJWMIiqVjQIu1YSCLNWFgijVjYIuhYYCKoWKAiiFgoopxYaKLUWOii2FgkophYp6F3r42W5A9s9OcgNvva8xQaysKXlFytoqdYmQH6tF3toSUo0INq9AAAAAElFTkSuQmCC');
73
+ }
74
+
75
+ .DayPicker-NavButton--next {
76
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAXRJREFUWAnN119ugjAcwPHWzJ1gnmxzB/BBE0n24m4xfNkTaOL7wOtsl3AXMMb+Vjaa1BG00N8fSEibPpAP3xAKKs2yjzTPH9RAjhEo9WzPr/Vm8zgE0+gXATAxxuxtqeJ9t5tIwv5AtQAApsfT6TPdbp+kUBcgVwvO51KqVhMkXKsVJFXrOkigVhCIs1Y4iKlWZxB1rX4gwlpRIIpa8SDkWmggrFq4IIRaJKCYWnSgnrXIQV1r8YD+1Vrn+bReagysIFfLABRt31v8oBu1xEBttfRbltmfjgEcWh9snUS2kNdBK6WN1vrOWxObWsz+fjxevsxmB1GQDfINWiev83nhaoiB/CoOU438oPrhXS0WpQ9xc1ZQWxWHqUYe0I0qrKCQKjygDlXIQV2r0IF6ViEBxVTBBSFUQQNhVYkHIVeJAtkNsbQ7c1LtzP6FsObhb2rCKv7NBIGoq4SDmKoEgTirXAcJVGkFSVVpgoSrXICGUMUH/QBZNSUy5XWUhwAAAABJRU5ErkJggg==');
77
+ }
78
+
79
+ .DayPicker-NavButton--interactionDisabled {
80
+ display: none;
81
+ }
82
+
83
+ .DayPicker-Caption {
84
+ display: table-caption;
85
+ margin-bottom: 0.5em;
86
+ padding: 0 0.5em;
87
+ text-align: left;
88
+ }
89
+
90
+ .DayPicker-Caption > div {
91
+ font-weight: 500;
92
+ font-size: 1.15em;
93
+ }
94
+
95
+ .DayPicker-Weekdays {
96
+ display: table-header-group;
97
+ margin-top: 1em;
98
+ }
99
+
100
+ .DayPicker-WeekdaysRow {
101
+ display: table-row;
102
+ }
103
+
104
+ .DayPicker-Weekday {
105
+ display: table-cell;
106
+ padding: 0.5em;
107
+ color: #8b9898;
108
+ text-align: center;
109
+ font-size: 0.875em;
110
+ }
111
+
112
+ .DayPicker-Weekday abbr[title] {
113
+ border-bottom: none;
114
+ text-decoration: none;
115
+ }
116
+
117
+ .DayPicker-Body {
118
+ display: table-row-group;
119
+ }
120
+
121
+ .DayPicker-Week {
122
+ display: table-row;
123
+ }
124
+
125
+ .DayPicker-Day {
126
+ display: table-cell;
127
+ padding: 0.5em;
128
+ border-radius: 50%;
129
+ vertical-align: middle;
130
+ text-align: center;
131
+ cursor: pointer;
132
+ }
133
+
134
+ .DayPicker-WeekNumber {
135
+ display: table-cell;
136
+ padding: 0.5em;
137
+ min-width: 1em;
138
+ border-right: 1px solid #eaecec;
139
+ color: #8b9898;
140
+ vertical-align: middle;
141
+ text-align: right;
142
+ font-size: 0.75em;
143
+ cursor: pointer;
144
+ }
145
+
146
+ .DayPicker--interactionDisabled .DayPicker-Day {
147
+ cursor: default;
148
+ }
149
+
150
+ .DayPicker-Footer {
151
+ padding-top: 0.5em;
152
+ }
153
+
154
+ .DayPicker-TodayButton {
155
+ border: none;
156
+ background-color: transparent;
157
+ background-image: none;
158
+ box-shadow: none;
159
+ color: #4a90e2;
160
+ font-size: 0.875em;
161
+ cursor: pointer;
162
+ }
163
+
164
+ /* Default modifiers */
165
+
166
+ .DayPicker-Day--today {
167
+ color: #d0021b;
168
+ font-weight: 700;
169
+ }
170
+
171
+ .DayPicker-Day--outside {
172
+ color: #8b9898;
173
+ cursor: default;
174
+ }
175
+
176
+ .DayPicker-Day--disabled {
177
+ color: #dce0e0;
178
+ cursor: default;
179
+ /* background-color: #eff1f1; */
180
+ }
181
+
182
+ /* Example modifiers */
183
+
184
+ .DayPicker-Day--sunday {
185
+ background-color: #f7f8f8;
186
+ }
187
+
188
+ .DayPicker-Day--sunday:not(.DayPicker-Day--today) {
189
+ color: #dce0e0;
190
+ }
191
+
192
+ .DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside) {
193
+ position: relative;
194
+
195
+ background-color: #4a90e2;
196
+ color: #f0f8ff;
197
+ }
198
+
199
+ .DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside):hover {
200
+ background-color: #51a0fa;
201
+ }
202
+
203
+ .DayPicker:not(.DayPicker--interactionDisabled)
204
+ .DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):hover {
205
+ background-color: #f0f8ff;
206
+ }
207
+
208
+ /* DayPickerInput */
209
+
210
+ .DayPickerInput {
211
+ display: inline-block;
212
+ }
213
+
214
+ .DayPickerInput-OverlayWrapper {
215
+ position: relative;
216
+ }
217
+
218
+ .DayPickerInput-Overlay {
219
+ position: absolute;
220
+ left: 0;
221
+ z-index: 1;
222
+
223
+ background: white;
224
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
225
+ }
226
+ `;export{a as default};
@@ -1,51 +1,27 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
- import styled from 'styled-components';
3
- import { mq } from '../../shared/media-queries.js';
4
- import { Button } from '../Button/index.js';
5
- import { Modal } from '../Modal/index.js';
6
- import { TinyTitle } from '../../typography/Heading/index.js';
7
- import '../../theme.js';
8
- import '../Spinner/index.js';
9
- import '../../typography/ButtonText/index.js';
10
- import 'react';
11
- import 'react-dom';
12
- import 'react-transition-group';
13
- import '../Icons/Close.js';
14
-
15
- const Content = styled.div `
1
+ import t from"react";import e from"styled-components";import{mq as x}from"../../shared/media-queries.js";import{Button as a}from"../Button/index.js";import{Modal as h}from"../Modal/index.js";import{TinyTitle as g}from"../../typography/Heading/index.js";import"../../theme.js";import"../Spinner/index.js";import"../../typography/ButtonText/index.js";import"react-dom";import"react-transition-group";import"../Icons/Close.js";const j=e.div`
16
2
  padding-top: 1rem;
17
- `;
18
- const Header = styled.div `
3
+ `,v=e.div`
19
4
  top: 20px;
20
5
  left: 32px;
21
6
  position: absolute;
22
- `;
23
- const Title = styled(TinyTitle) `
24
- font-weight: ${({ theme }) => theme.typography.fontAlternativeRegularWeight};
7
+ `,w=e(g)`
8
+ font-weight: ${({theme:o})=>o.typography.fontAlternativeRegularWeight};
25
9
  margin: 0;
26
- `;
27
- const ButtonWrapper = styled.div `
10
+ `,E=e.div`
28
11
  display: flex;
29
12
  justify-content: space-between;
30
- ${mq('tablet')} {
13
+ ${x("tablet")} {
31
14
  justify-content: flex-start;
32
15
  }
33
16
  overflow-x: hidden;
34
- `;
35
- const SecondaryActionButton = styled(Button) `
17
+ `,B=e(a)`
36
18
  overflow-x: hidden;
37
19
  margin-right: 2rem;
38
20
  justify-content: center;
39
21
  width: 100%;
40
22
  max-width: 110px;
41
- `;
42
- const PrimaryActionButton = styled(Button) `
23
+ `,C=e(a)`
43
24
  justify-content: center;
44
25
  width: 100%;
45
26
  max-width: 245px;
46
- `;
47
- const Dialog = ({ isOpen, title, children, modalStyles, titleStyles, primaryButtonText, primaryButtonStyles, secondaryButtonStyles, secondaryButtonText, primaryButtonAction, secondaryButtonAction, onClose, }) => {
48
- return (jsxs(Modal, Object.assign({ contentStyles: modalStyles, isOpen: isOpen, onClose: onClose }, { children: [title && (jsx(Header, { children: jsx(Title, Object.assign({ style: titleStyles }, { children: title }), void 0) }, void 0)), jsx(Content, { children: children }, void 0), jsxs(ButtonWrapper, { children: [secondaryButtonAction && (jsx(SecondaryActionButton, Object.assign({ style: secondaryButtonStyles, onClick: secondaryButtonAction, variant: "outline", color: "neutral" }, { children: secondaryButtonText }), void 0)), primaryButtonAction && (jsx(PrimaryActionButton, Object.assign({ style: primaryButtonStyles, onClick: primaryButtonAction, variant: "solid", color: "success" }, { children: primaryButtonText }), void 0))] }, void 0)] }), void 0));
49
- };
50
-
51
- export { Dialog, Dialog as default };
27
+ `,l=({isOpen:o,title:n,children:s,modalStyles:m,titleStyles:c,primaryButtonText:p,primaryButtonStyles:d,secondaryButtonStyles:u,secondaryButtonText:f,primaryButtonAction:r,secondaryButtonAction:i,onClose:y})=>t.createElement(h,{contentStyles:m,isOpen:o,onClose:y},n&&t.createElement(v,null,t.createElement(w,{style:c},n)),t.createElement(j,null,s),t.createElement(E,null,i&&t.createElement(B,{style:u,onClick:i,variant:"outline",color:"neutral"},f),r&&t.createElement(C,{style:d,onClick:r,variant:"solid",color:"success"},p)));export{l as Dialog,l as default};
@@ -1,16 +1,10 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import styled from 'styled-components';
3
-
4
- const ErrorContainer = styled.div `
5
- font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
6
- font-weight: ${({ theme }) => theme.typography.fontAlternativeRegularWeight};
7
- background: ${({ theme }) => theme.colors.error.main};
1
+ import a from"react";import n from"styled-components";const i=n.div`
2
+ font-family: ${({theme:t})=>t.typography.fontAlternativeFamily};
3
+ font-weight: ${({theme:t})=>t.typography.fontAlternativeRegularWeight};
4
+ background: ${({theme:t})=>t.colors.error.main};
8
5
  color: white;
9
6
  border-radius: 0.25rem;
10
7
  font-size: 13px;
11
8
  padding: 10px;
12
- ${({ centered }) => centered && `text-align: center;`}
13
- `;
14
- const ErrorMessage = ({ children, centered, ...props }) => (jsx(ErrorContainer, Object.assign({ centered: centered }, props, { children: children }), void 0));
15
-
16
- export { ErrorMessage, ErrorMessage as default };
9
+ ${({centered:t})=>t&&"text-align: center;"}
10
+ `,e=({children:t,centered:r,...o})=>a.createElement(i,{centered:r,...o},t);export{e as ErrorMessage,e as default};
@@ -1,53 +1,34 @@
1
- import styled, { css } from 'styled-components';
2
-
3
- const activePadding = '0.5rem';
4
- const activeStyles = (translateY) => css `
5
- background-color: ${props => props.theme.colors.background.light};
6
- transform: scale(0.75) translateY(${translateY});
1
+ import r,{css as t}from"styled-components";const l="0.5rem",s=e=>t`
2
+ background-color: ${o=>o.theme.colors.background.light};
3
+ transform: scale(0.75) translateY(${e});
7
4
  transform-origin: 0 0;
8
- padding: 0 ${activePadding};
9
- left: ${activePadding};
10
- `;
11
- const focusStyles = css `
12
- color: ${props => props.theme.colors.text.dark};
13
- `;
14
- const disabledStyles = css `
15
- color: ${props => props.theme.colors.gray.light1};
16
- background-color: ${props => props.theme.colors.background.light};
17
- `;
18
- const errorStyles = css `
19
- color: ${props => props.theme.colors.error.main};
20
- `;
21
- const centerStyles = css `
5
+ padding: 0 ${l};
6
+ left: ${l};
7
+ color: ${({theme:o})=>o.colors.text.dark};
8
+ `,c=t`
9
+ color: ${e=>e.theme.colors.text.dark};
10
+ `,n=t`
11
+ color: ${e=>e.theme.colors.gray.light1};
12
+ background-color: ${e=>e.theme.colors.background.light};
13
+ `,a=t`
22
14
  text-align: center;
23
15
  width: 100%;
24
16
  left: 0;
25
- `;
26
- // eslint-disable-next-line prettier/prettier
27
- const Label = styled.div `
28
- font-family: ${({ theme }) => theme.typography.fontBaseFamily};
17
+ `,i=r.label`
18
+ font-family: ${({theme:e})=>e.typography.fontBaseFamily};
29
19
  pointer-events: none;
30
20
  position: absolute;
31
21
  z-index: 1;
32
- top: ${props => (props.height ? `${props.height}rem` : '0.9rem')};
33
-
34
- /* Left padding on input + one character size */
22
+ top: ${e=>e.height?`${e.height}rem`:"0.9rem"};
35
23
  left: calc(0.75rem + 2px);
36
24
  transition: 150ms;
37
-
38
- /* Text styles */
39
25
  height: 16px;
40
26
  line-height: 16px;
41
27
  font-size: 16px;
28
+ color: ${e=>e.theme.colors.gray.dark5};
42
29
 
43
- color: ${props => props.theme.colors.gray.dark1};
44
-
45
- ${props => props.centered && centerStyles}
46
- ${props => (props.hasValue || props.isFocused) &&
47
- activeStyles(props.height ? `-${(props.height + 0.25) * 1.35}rem` : '-1.75rem')}
48
- ${props => props.isFocused && focusStyles}
49
- ${props => props.disabled && disabledStyles}
50
- ${props => props.hasError && errorStyles}
51
- `;
52
-
53
- export { Label };
30
+ ${e=>e.centered&&a}
31
+ ${e=>(e.hasValue||e.isFocused)&&s(e.height?`-${(e.height+.25)*1.35}rem`:"-1.75rem")}
32
+ ${e=>e.isFocused&&c}
33
+ ${e=>e.disabled&&n}
34
+ `;export{i as Label};
@@ -1,8 +1,4 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
- import styled from 'styled-components';
3
- import { mq } from '../../shared/media-queries.js';
4
-
5
- const IconWrapper = styled.button `
1
+ import t from"react";import a from"styled-components";import{mq as r}from"../../shared/media-queries.js";const o=a.button`
6
2
  appearance: none;
7
3
  cursor: pointer;
8
4
  background-color: transparent;
@@ -12,27 +8,24 @@ const IconWrapper = styled.button `
12
8
  align-items: center;
13
9
  margin-right: 1.5rem;
14
10
  margin-left: auto;
15
- ${mq('laptop')} {
11
+ ${r("laptop")} {
16
12
  display: none;
17
13
  }
18
14
 
19
15
  svg {
20
16
  width: 1.5rem;
21
17
  height: 1.5rem;
22
- fill: ${({ theme }) => theme.colors.text.dark};
18
+ fill: ${({theme:e})=>e.colors.text.dark};
23
19
  }
24
20
  span {
25
21
  display: none;
26
- font-family: ${({ theme }) => theme.typography.fontBaseFamily};
27
- font-weight: ${({ theme }) => theme.typography.fontBaseBoldWeight};
22
+ font-family: ${({theme:e})=>e.typography.fontBaseFamily};
23
+ font-weight: ${({theme:e})=>e.typography.fontBaseBoldWeight};
28
24
  font-size: 1rem;
29
25
  margin-right: 0.75rem;
30
26
 
31
- ${mq('tablet')} {
27
+ ${r("tablet")} {
32
28
  display: inline;
33
29
  }
34
30
  }
35
- `;
36
- const Hamburger = ({ onClick = () => { }, text }) => (jsxs(IconWrapper, Object.assign({ onClick: onClick }, { children: [jsx("span", { children: text }, void 0), jsxs("svg", { children: [jsx("symbol", Object.assign({ id: "icon-hamburger", viewBox: "0 0 16 12" }, { children: jsx("path", { d: "M0 0h16v2H0zm0 5h16v2H0zm0 5h16v2H0z" }, void 0) }), void 0), jsx("use", { xlinkHref: "#icon-hamburger" }, void 0)] }, void 0)] }), void 0));
37
-
38
- export { Hamburger as default };
31
+ `,l=({onClick:e=()=>{},text:n})=>t.createElement(o,{onClick:e},t.createElement("span",null,n),t.createElement("svg",null,t.createElement("symbol",{id:"icon-hamburger",viewBox:"0 0 16 12"},t.createElement("path",{d:"M0 0h16v2H0zm0 5h16v2H0zm0 5h16v2H0z"})),t.createElement("use",{xlinkHref:"#icon-hamburger"})));export{l as default};
@@ -1,11 +1,6 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import styled from 'styled-components';
3
- import { mq } from '../../shared/media-queries.js';
4
- import theme from '../../theme.js';
5
-
6
- const LinkItem = styled.li `
7
- font-family: ${({ theme }) => theme.typography.fontAlternativeFamily};
8
- font-weight: ${({ theme }) => theme.typography.fontAlternativeRegularWeight};
1
+ import r from"react";import o from"styled-components";import{mq as m}from"../../shared/media-queries.js";import t from"../../theme.js";const l=o.li`
2
+ font-family: ${({theme:e})=>e.typography.fontAlternativeFamily};
3
+ font-weight: ${({theme:e})=>e.typography.fontAlternativeRegularWeight};
9
4
  font-size: 1rem;
10
5
  display: flex;
11
6
  align-items: center;
@@ -19,25 +14,21 @@ const LinkItem = styled.li `
19
14
  display: none;
20
15
  }
21
16
 
22
- ${mq('laptop')} {
17
+ ${m("laptop")} {
23
18
  &:nth-child(n + 4) {
24
19
  display: inherit;
25
20
  }
26
21
  }
27
- `;
28
- const CommonLink = styled.a `
22
+ `,s=o.a`
29
23
  border-radius: 0.25rem;
30
24
  padding: 0.75rem 1.5rem;
31
25
  transition: 200ms;
32
- color: ${theme.colors.text.dark};
26
+ color: ${t.colors.text.dark};
33
27
  text-decoration: none;
34
28
 
35
29
  &:hover,
36
30
  &:active {
37
- color: ${theme.colors.primary.main};
38
- background: ${theme.colors.gray.light4};
31
+ color: ${t.colors.primary.main};
32
+ background: ${t.colors.gray.light4};
39
33
  }
40
- `;
41
- const Link = ({ to, component, text, ...rest }) => (jsx(LinkItem, { children: component || (jsx(CommonLink, Object.assign({ href: to }, rest, { children: text }), void 0)) }, void 0));
42
-
43
- export { Link as default };
34
+ `,c=({to:e,component:i,text:n,...a})=>r.createElement(l,null,i||r.createElement(s,{href:e,...a},n));export{c as default};
@@ -1,56 +1,42 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
2
- import styled from 'styled-components';
3
- import { mq } from '../../shared/media-queries.js';
4
- import theme from '../../theme.js';
5
- import { Logo } from '../Logo/index.js';
6
- import Hamburger from './Hamburger.js';
7
- import Link from './Link.js';
8
- import '../Logo/LogoSv.js';
9
- import '../Logo/LogoEn.js';
10
-
11
- const LogoWrapper = styled.a `
1
+ import e from"react";import t from"styled-components";import{mq as r}from"../../shared/media-queries.js";import n from"../../theme.js";import{Logo as y}from"../Logo/index.js";import k from"./Hamburger.js";import i from"./Link.js";import"../Logo/LogoSv.js";import"../Logo/LogoEn.js";const b=t.a`
12
2
  cursor: pointer;
13
3
  padding: 0 0.625rem;
14
4
  width: 100%;
15
5
  display: flex;
16
6
  justify-content: center;
17
7
  align-items: center;
18
- background: ${theme.colors.background.light};
8
+ background: ${n.colors.background.light};
19
9
 
20
- ${mq('tablet')} {
10
+ ${r("tablet")} {
21
11
  display: block;
22
12
  width: auto;
23
13
  padding: 0 1.5rem 0 0;
24
14
  }
25
- `;
26
- const HeaderContainer = styled.nav `
15
+ `,h=t.nav`
27
16
  width: 100%;
28
17
  z-index: 17;
29
18
  position: fixed;
30
19
  top: 0;
31
20
  left: 0;
32
- color: ${theme.colors.text.dark};
33
- background-color: ${theme.colors.background.light};
21
+ color: ${n.colors.text.dark};
22
+ background-color: ${n.colors.background.light};
34
23
  transition: 300ms;
35
- `;
36
- const HeaderContent = styled.div `
24
+ `,j=t.div`
37
25
  display: flex;
38
26
  flex-direction: column;
39
27
  align-items: center;
40
28
  justify-content: space-between;
41
- background-color: ${theme.colors.background.gray};
29
+ background-color: ${n.colors.background.gray};
42
30
 
43
- ${mq('tablet')} {
44
- background-color: ${theme.colors.background.light};
31
+ ${r("tablet")} {
32
+ background-color: ${n.colors.background.light};
45
33
  flex-direction: row;
46
34
  padding: 0em 1.5em;
47
35
  }
48
- `;
49
- const MainContent = styled.div `
36
+ `,E=t.div`
50
37
  display: flex;
51
38
  width: 100%;
52
- `;
53
- const PrimaryLinks = styled.ul `
39
+ `,L=t.ul`
54
40
  display: flex;
55
41
  justify-content: space-around;
56
42
  width: 100%;
@@ -59,25 +45,19 @@ const PrimaryLinks = styled.ul `
59
45
  padding: 0;
60
46
  flex-grow: 1;
61
47
 
62
- ${mq('tablet')} {
48
+ ${r("tablet")} {
63
49
  justify-content: flex-start;
64
50
  padding: 0.5em 0;
65
51
  display: flex;
66
52
  padding: 0;
67
53
  flex: 1;
68
54
  }
69
- `;
70
- const SecondaryLinks = styled.ul `
55
+ `,$=t.ul`
71
56
  display: none;
72
57
 
73
- ${mq('laptop')} {
58
+ ${r("laptop")} {
74
59
  padding: 0.5em 0;
75
60
  display: flex;
76
61
  padding: 0;
77
62
  }
78
- `;
79
- const Header = ({ locale, primaryLinks, secondaryLinks, menuIconText, onMenuClick, onHeaderClick, forwardRef, css = '', ...props }) => {
80
- return (jsx(HeaderContainer, Object.assign({ css: css }, props, { ref: forwardRef }, { children: jsxs(HeaderContent, { children: [jsx(LogoWrapper, Object.assign({ onClick: onHeaderClick }, { children: jsx(Logo, { locale: locale }, void 0) }), void 0), jsxs(MainContent, { children: [jsx(PrimaryLinks, { children: primaryLinks.map((link, index) => (jsx(Link, Object.assign({}, link), link.text || index))) }, void 0), jsx(Hamburger, { text: menuIconText, onClick: onMenuClick }, void 0)] }, void 0), jsx(SecondaryLinks, { children: secondaryLinks.map((link, index) => (jsx(Link, Object.assign({}, link), link.text || index))) }, void 0)] }, void 0) }), void 0));
81
- };
82
-
83
- export { Header, Header as default };
63
+ `,l=({locale:d,primaryLinks:c,secondaryLinks:s,menuIconText:m,onMenuClick:p,onHeaderClick:g,forwardRef:u,css:f="",...x})=>e.createElement(h,{css:f,...x,ref:u},e.createElement(j,null,e.createElement(b,{onClick:g},e.createElement(y,{locale:d})),e.createElement(E,null,e.createElement(L,null,c.map((o,a)=>e.createElement(i,{key:o.text||a,...o}))),e.createElement(k,{text:m,onClick:p})),e.createElement($,null,s.map((o,a)=>e.createElement(i,{key:o.text||a,...o})))));export{l as Header,l as default};
@@ -1,42 +1,26 @@
1
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import styled from 'styled-components';
3
- import theme from '../../theme.js';
4
-
5
- const Root = styled.div `
1
+ import t from"react";import o from"styled-components";import i from"../../theme.js";const d=o.div`
6
2
  position: relative;
7
3
  height: 60vh;
8
4
  max-height: 600px;
9
- background-color: ${theme.colors.primary.main};
5
+ background-color: ${i.colors.primary.main};
10
6
  background-size: cover;
11
- `;
12
- const Content = styled.div `
7
+ `,m=o.div`
13
8
  position: relative;
14
9
  display: flex;
15
10
  padding: 50px;
16
11
  z-index: 1;
17
- `;
18
- const Video = styled.iframe `
12
+ `,p=o.iframe`
19
13
  position: absolute;
20
14
  width: 100%;
21
15
  height: 100%;
22
16
  top: 0;
23
17
  left: 0;
24
- `;
25
- const Image = styled.img `
18
+ `,u=o.img`
26
19
  position: absolute;
27
20
  top: 0;
28
21
  left: 0;
29
22
  height: 100%;
30
23
  width: 100%;
31
24
  object-fit: cover;
32
- background-color: ${theme.colors.primary.main};
33
- `;
34
- function Hero(props) {
35
- const { imageProps, containerStyle, videoProps, children } = props;
36
- const imageStyle = {
37
- objectPosition: `${(imageProps === null || imageProps === void 0 ? void 0 : imageProps.x) ? imageProps.x : '50%'} ${(imageProps === null || imageProps === void 0 ? void 0 : imageProps.y) ? imageProps.y : '50%'}`,
38
- };
39
- return (jsx(Root, Object.assign({ style: containerStyle }, { children: videoProps ? (jsx(Video, { "data-testid": "hero-video", title: "video-frame", src: videoProps.src, width: "100%", height: "100%", frameBorder: "0", allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture", allowFullScreen: true }, void 0)) : (jsxs(Fragment, { children: [jsx(Image, { src: imageProps === null || imageProps === void 0 ? void 0 : imageProps.src, alt: "Hero background", style: imageStyle }, void 0), jsx(Content, { children: children }, void 0)] }, void 0)) }), void 0));
40
- }
41
-
42
- export { Hero, Hero as default };
25
+ background-color: ${i.colors.primary.main};
26
+ `;function l(a){const{imageProps:e,containerStyle:n,videoProps:r,children:c}=a,s={objectPosition:`${(e==null?void 0:e.x)?e.x:"50%"} ${(e==null?void 0:e.y)?e.y:"50%"}`};return t.createElement(d,{style:n},r?t.createElement(p,{"data-testid":"hero-video",title:"video-frame",src:r.src,width:"100%",height:"100%",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}):t.createElement(t.Fragment,null,t.createElement(u,{src:e==null?void 0:e.src,alt:"Hero background",style:s}),t.createElement(m,null,c)))}export{l as Hero,l as default};