@dnanpm/styleguide 1.9.0 → 2.1.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 (597) hide show
  1. package/build/cjs/components/Accordion/Accordion.d.ts +27 -15
  2. package/build/cjs/components/Accordion/Accordion.js +29 -12
  3. package/build/cjs/components/Accordion/AccordionItem.d.ts +14 -29
  4. package/build/cjs/components/Accordion/AccordionItem.js +32 -52
  5. package/build/cjs/components/AmountSelector/AmountSelector.js +16 -9
  6. package/build/cjs/components/Buttons/ButtonBasicStyles.d.ts +37 -30
  7. package/build/cjs/components/Buttons/ButtonBasicStyles.js +14 -18
  8. package/build/cjs/components/Buttons/ButtonDefault.js +6 -2
  9. package/build/cjs/components/Buttons/ButtonIcon.js +9 -2
  10. package/build/cjs/components/Buttons/ButtonIconPrimary.js +9 -2
  11. package/build/cjs/components/Buttons/ButtonIconPrimaryStyles.d.ts +37 -30
  12. package/build/cjs/components/Buttons/ButtonIconStyles.d.ts +37 -30
  13. package/build/cjs/components/Buttons/ButtonIconStyles.js +2 -6
  14. package/build/cjs/components/Buttons/ButtonPrimary.js +6 -2
  15. package/build/cjs/components/Buttons/ButtonPrimaryStyles.d.ts +37 -30
  16. package/build/cjs/components/Buttons/ButtonSecondary.js +7 -3
  17. package/build/cjs/components/Buttons/ButtonSecondaryStyles.d.ts +37 -30
  18. package/build/cjs/components/Buttons/ButtonTertiary.js +7 -3
  19. package/build/cjs/components/Buttons/ButtonTertiaryStyles.d.ts +37 -30
  20. package/build/cjs/components/Buttons/CloseButton.d.ts +37 -30
  21. package/build/cjs/components/Card/Card.js +4 -2
  22. package/build/cjs/components/Card/CardRow.js +3 -3
  23. package/build/cjs/components/Checkbox/Checkbox.d.ts +38 -12
  24. package/build/cjs/components/Checkbox/Checkbox.js +39 -70
  25. package/build/cjs/components/DnaLogo/DnaLogo.d.ts +37 -40
  26. package/build/cjs/components/EmptyState/EmptyState.d.ts +5 -1
  27. package/build/cjs/components/EmptyState/EmptyState.js +11 -3
  28. package/build/cjs/components/Footer/Components/FooterComponents.js +11 -7
  29. package/build/cjs/components/Helper/Helper.js +2 -1
  30. package/build/cjs/components/Icon/Icon.d.ts +46 -115
  31. package/build/cjs/components/Icon/Icon.js +37 -18
  32. package/build/cjs/components/Icon/Icons.d.ts +219 -317
  33. package/build/cjs/components/Icon/Icons.js +1 -374
  34. package/build/cjs/components/Icons/Small/hlArrowBackSmall.d.ts +12 -0
  35. package/build/cjs/components/Icons/Small/hlArrowBackSmall.js +24 -0
  36. package/build/cjs/components/Icons/Small/hlArrowForwardSmall.d.ts +12 -0
  37. package/build/cjs/components/Icons/Small/hlArrowForwardSmall.js +24 -0
  38. package/build/cjs/components/Icons/Small/hlArrowUnderSmall.d.ts +8 -0
  39. package/build/cjs/components/Icons/Small/hlArrowUnderSmall.js +19 -0
  40. package/build/cjs/components/Icons/Small/hlCalendarSmall.d.ts +4 -0
  41. package/build/cjs/components/Icons/Small/hlCalendarSmall.js +14 -0
  42. package/build/cjs/components/Icons/Small/hlChevronDownSmall.d.ts +4 -0
  43. package/build/cjs/components/Icons/Small/hlChevronDownSmall.js +14 -0
  44. package/build/cjs/components/Icons/Small/hlChevronLeftSmall.d.ts +4 -0
  45. package/build/cjs/components/Icons/Small/hlChevronLeftSmall.js +14 -0
  46. package/build/cjs/components/Icons/Small/hlChevronRightSmall.d.ts +4 -0
  47. package/build/cjs/components/Icons/Small/hlChevronRightSmall.js +14 -0
  48. package/build/cjs/components/Icons/Small/hlChevronUpSmall.d.ts +4 -0
  49. package/build/cjs/components/Icons/Small/hlChevronUpSmall.js +14 -0
  50. package/build/cjs/components/Icons/Small/hlClockSmall.d.ts +4 -0
  51. package/build/cjs/components/Icons/Small/hlClockSmall.js +15 -0
  52. package/build/cjs/components/Icons/Small/hlDownloadSmall.d.ts +4 -0
  53. package/build/cjs/components/Icons/Small/hlDownloadSmall.js +16 -0
  54. package/build/cjs/components/Icons/Small/hlExternalSmall.d.ts +4 -0
  55. package/build/cjs/components/Icons/Small/hlExternalSmall.js +14 -0
  56. package/build/cjs/components/Icons/Small/hlUploadSmall.d.ts +4 -0
  57. package/build/cjs/components/Icons/Small/hlUploadSmall.js +16 -0
  58. package/build/cjs/components/Icons/Social/facebook.d.ts +4 -0
  59. package/build/cjs/components/Icons/Social/facebook.js +14 -0
  60. package/build/cjs/components/Icons/Social/instagram.d.ts +4 -0
  61. package/build/cjs/components/Icons/Social/instagram.js +14 -0
  62. package/build/cjs/components/Icons/Social/linkedin.d.ts +4 -0
  63. package/build/cjs/components/Icons/Social/linkedin.js +14 -0
  64. package/build/cjs/components/Icons/Social/tiktok.d.ts +4 -0
  65. package/build/cjs/components/Icons/Social/tiktok.js +14 -0
  66. package/build/cjs/components/Icons/Social/twitter.d.ts +4 -0
  67. package/build/cjs/components/Icons/Social/twitter.js +14 -0
  68. package/build/cjs/components/Icons/Social/youtube.d.ts +4 -0
  69. package/build/cjs/components/Icons/Social/youtube.js +14 -0
  70. package/build/cjs/components/Icons/hl404.d.ts +4 -0
  71. package/build/cjs/components/Icons/hl404.js +14 -0
  72. package/build/cjs/components/Icons/hl4gSim.d.ts +4 -0
  73. package/build/cjs/components/Icons/hl4gSim.js +14 -0
  74. package/build/cjs/components/Icons/hl5gSim.d.ts +4 -0
  75. package/build/cjs/components/Icons/hl5gSim.js +14 -0
  76. package/build/cjs/components/Icons/hlBattery.d.ts +4 -0
  77. package/build/cjs/components/Icons/hlBattery.js +16 -0
  78. package/build/cjs/components/Icons/hlBell.d.ts +4 -0
  79. package/build/cjs/components/Icons/hlBell.js +14 -0
  80. package/build/cjs/components/Icons/hlCalendar.d.ts +4 -0
  81. package/build/cjs/components/Icons/hlCalendar.js +25 -0
  82. package/build/cjs/components/Icons/hlCall.d.ts +4 -0
  83. package/build/cjs/components/Icons/hlCall.js +14 -0
  84. package/build/cjs/components/Icons/hlCameraBack.d.ts +4 -0
  85. package/build/cjs/components/Icons/hlCameraBack.js +16 -0
  86. package/build/cjs/components/Icons/hlCameraFront.d.ts +4 -0
  87. package/build/cjs/components/Icons/hlCameraFront.js +15 -0
  88. package/build/cjs/components/Icons/hlCart.d.ts +4 -0
  89. package/build/cjs/components/Icons/hlCart.js +16 -0
  90. package/build/cjs/components/Icons/hlCartEmpty.d.ts +4 -0
  91. package/build/cjs/components/Icons/hlCartEmpty.js +16 -0
  92. package/build/cjs/components/Icons/hlChat.d.ts +4 -0
  93. package/build/cjs/components/Icons/hlChat.js +17 -0
  94. package/build/cjs/components/Icons/hlCheck.d.ts +4 -0
  95. package/build/cjs/components/Icons/hlCheck.js +14 -0
  96. package/build/cjs/components/Icons/hlChevronDown.d.ts +4 -0
  97. package/build/cjs/components/Icons/hlChevronDown.js +14 -0
  98. package/build/cjs/components/Icons/hlChevronLeft.d.ts +4 -0
  99. package/build/cjs/components/Icons/hlChevronLeft.js +14 -0
  100. package/build/cjs/components/Icons/hlChevronRight.d.ts +4 -0
  101. package/build/cjs/components/Icons/hlChevronRight.js +14 -0
  102. package/build/cjs/components/Icons/hlChevronUp.d.ts +4 -0
  103. package/build/cjs/components/Icons/hlChevronUp.js +14 -0
  104. package/build/cjs/components/Icons/hlCompensation.d.ts +4 -0
  105. package/build/cjs/components/Icons/hlCompensation.js +14 -0
  106. package/build/cjs/components/Icons/hlCookie.d.ts +4 -0
  107. package/build/cjs/components/Icons/hlCookie.js +14 -0
  108. package/build/cjs/components/Icons/hlCopy.d.ts +4 -0
  109. package/build/cjs/components/Icons/hlCopy.js +15 -0
  110. package/build/cjs/components/Icons/hlCoupon.d.ts +4 -0
  111. package/build/cjs/components/Icons/hlCoupon.js +16 -0
  112. package/build/cjs/components/Icons/hlDelivery.d.ts +4 -0
  113. package/build/cjs/components/Icons/hlDelivery.js +14 -0
  114. package/build/cjs/components/Icons/hlDigiturva.d.ts +4 -0
  115. package/build/cjs/components/Icons/hlDigiturva.js +14 -0
  116. package/build/cjs/components/Icons/hlDisplaySize.d.ts +4 -0
  117. package/build/cjs/components/Icons/hlDisplaySize.js +16 -0
  118. package/build/cjs/components/Icons/hlDocument.d.ts +4 -0
  119. package/build/cjs/components/Icons/hlDocument.js +15 -0
  120. package/build/cjs/components/Icons/hlDownload.d.ts +4 -0
  121. package/build/cjs/components/Icons/hlDownload.js +16 -0
  122. package/build/cjs/components/Icons/hlEnvelope.d.ts +4 -0
  123. package/build/cjs/components/Icons/hlEnvelope.js +14 -0
  124. package/build/cjs/components/Icons/hlError.d.ts +4 -0
  125. package/build/cjs/components/Icons/hlError.js +16 -0
  126. package/build/cjs/components/Icons/hlEuro.d.ts +4 -0
  127. package/build/cjs/components/Icons/hlEuro.js +14 -0
  128. package/build/cjs/components/Icons/hlExclamationMark.d.ts +4 -0
  129. package/build/cjs/components/Icons/hlExclamationMark.js +14 -0
  130. package/build/cjs/components/Icons/hlExpand.d.ts +4 -0
  131. package/build/cjs/components/Icons/hlExpand.js +14 -0
  132. package/build/cjs/components/Icons/hlExternal.d.ts +4 -0
  133. package/build/cjs/components/Icons/hlExternal.js +14 -0
  134. package/build/cjs/components/Icons/hlEyeClosed.d.ts +4 -0
  135. package/build/cjs/components/Icons/hlEyeClosed.js +14 -0
  136. package/build/cjs/components/Icons/hlEyeOpen.d.ts +4 -0
  137. package/build/cjs/components/Icons/hlEyeOpen.js +15 -0
  138. package/build/cjs/components/Icons/hlFaceId.d.ts +4 -0
  139. package/build/cjs/components/Icons/hlFaceId.js +14 -0
  140. package/build/cjs/components/Icons/hlFastDelivery.d.ts +4 -0
  141. package/build/cjs/components/Icons/hlFastDelivery.js +14 -0
  142. package/build/cjs/components/Icons/hlFingerprint.d.ts +4 -0
  143. package/build/cjs/components/Icons/hlFingerprint.js +18 -0
  144. package/build/cjs/components/Icons/hlGlobe.d.ts +4 -0
  145. package/build/cjs/components/Icons/hlGlobe.js +14 -0
  146. package/build/cjs/components/Icons/hlHeadphones.d.ts +4 -0
  147. package/build/cjs/components/Icons/hlHeadphones.js +14 -0
  148. package/build/cjs/components/Icons/hlHeadset.d.ts +4 -0
  149. package/build/cjs/components/Icons/hlHeadset.js +16 -0
  150. package/build/cjs/components/Icons/hlHeart.d.ts +4 -0
  151. package/build/cjs/components/Icons/hlHeart.js +14 -0
  152. package/build/cjs/components/Icons/hlHome.d.ts +4 -0
  153. package/build/cjs/components/Icons/hlHome.js +14 -0
  154. package/build/cjs/components/Icons/hlImage.d.ts +4 -0
  155. package/build/cjs/components/Icons/hlImage.js +14 -0
  156. package/build/cjs/components/Icons/hlInfo.d.ts +4 -0
  157. package/build/cjs/components/Icons/hlInfo.js +16 -0
  158. package/build/cjs/components/Icons/hlInstallment.d.ts +4 -0
  159. package/build/cjs/components/Icons/hlInstallment.js +15 -0
  160. package/build/cjs/components/Icons/hlIotSim.d.ts +4 -0
  161. package/build/cjs/components/Icons/hlIotSim.js +15 -0
  162. package/build/cjs/components/Icons/hlLock.d.ts +4 -0
  163. package/build/cjs/components/Icons/hlLock.js +16 -0
  164. package/build/cjs/components/Icons/hlMagnifyingGlass.d.ts +4 -0
  165. package/build/cjs/components/Icons/hlMagnifyingGlass.js +15 -0
  166. package/build/cjs/components/Icons/hlMarker.d.ts +4 -0
  167. package/build/cjs/components/Icons/hlMarker.js +15 -0
  168. package/build/cjs/components/Icons/hlMemory.d.ts +4 -0
  169. package/build/cjs/components/Icons/hlMemory.js +15 -0
  170. package/build/cjs/components/Icons/hlMenu.d.ts +4 -0
  171. package/build/cjs/components/Icons/hlMenu.js +14 -0
  172. package/build/cjs/components/Icons/hlMinimize.d.ts +4 -0
  173. package/build/cjs/components/Icons/hlMinimize.js +14 -0
  174. package/build/cjs/components/Icons/hlMinus.d.ts +4 -0
  175. package/build/cjs/components/Icons/hlMinus.js +14 -0
  176. package/build/cjs/components/Icons/hlMobileData.d.ts +4 -0
  177. package/build/cjs/components/Icons/hlMobileData.js +14 -0
  178. package/build/cjs/components/Icons/hlMobilePayment.d.ts +4 -0
  179. package/build/cjs/components/Icons/hlMobilePayment.js +16 -0
  180. package/build/cjs/components/Icons/hlModem.d.ts +4 -0
  181. package/build/cjs/components/Icons/hlModem.js +18 -0
  182. package/build/cjs/components/Icons/hlMore.d.ts +4 -0
  183. package/build/cjs/components/Icons/hlMore.js +16 -0
  184. package/build/cjs/components/Icons/hlOs.d.ts +4 -0
  185. package/build/cjs/components/Icons/hlOs.js +15 -0
  186. package/build/cjs/components/Icons/hlPackage.d.ts +4 -0
  187. package/build/cjs/components/Icons/hlPackage.js +14 -0
  188. package/build/cjs/components/Icons/hlPaperclip.d.ts +4 -0
  189. package/build/cjs/components/Icons/hlPaperclip.js +14 -0
  190. package/build/cjs/components/Icons/hlPaytime.d.ts +4 -0
  191. package/build/cjs/components/Icons/hlPaytime.js +14 -0
  192. package/build/cjs/components/Icons/hlPen.d.ts +4 -0
  193. package/build/cjs/components/Icons/hlPen.js +14 -0
  194. package/build/cjs/components/Icons/hlPerson.d.ts +4 -0
  195. package/build/cjs/components/Icons/hlPerson.js +14 -0
  196. package/build/cjs/components/Icons/hlPhone.d.ts +4 -0
  197. package/build/cjs/components/Icons/hlPhone.js +15 -0
  198. package/build/cjs/components/Icons/hlPlus.d.ts +4 -0
  199. package/build/cjs/components/Icons/hlPlus.js +15 -0
  200. package/build/cjs/components/Icons/hlPrepaid.d.ts +4 -0
  201. package/build/cjs/components/Icons/hlPrepaid.js +14 -0
  202. package/build/cjs/components/Icons/hlProcessor.d.ts +4 -0
  203. package/build/cjs/components/Icons/hlProcessor.js +15 -0
  204. package/build/cjs/components/Icons/hlServices.d.ts +4 -0
  205. package/build/cjs/components/Icons/hlServices.js +14 -0
  206. package/build/cjs/components/Icons/hlSettings.d.ts +4 -0
  207. package/build/cjs/components/Icons/hlSettings.js +14 -0
  208. package/build/cjs/components/Icons/hlShield.d.ts +4 -0
  209. package/build/cjs/components/Icons/hlShield.js +15 -0
  210. package/build/cjs/components/Icons/hlSim.d.ts +4 -0
  211. package/build/cjs/components/Icons/hlSim.js +15 -0
  212. package/build/cjs/components/Icons/hlSimSimple.d.ts +4 -0
  213. package/build/cjs/components/Icons/hlSimSimple.js +16 -0
  214. package/build/cjs/components/Icons/hlSmile.d.ts +4 -0
  215. package/build/cjs/components/Icons/hlSmile.js +17 -0
  216. package/build/cjs/components/Icons/hlSpeechBubble.d.ts +4 -0
  217. package/build/cjs/components/Icons/hlSpeechBubble.js +15 -0
  218. package/build/cjs/components/Icons/hlSquaretrade.d.ts +4 -0
  219. package/build/cjs/components/Icons/hlSquaretrade.js +14 -0
  220. package/build/cjs/components/Icons/hlStar.d.ts +4 -0
  221. package/build/cjs/components/Icons/hlStar.js +14 -0
  222. package/build/cjs/components/Icons/hlStarFilled.d.ts +4 -0
  223. package/build/cjs/components/Icons/hlStarFilled.js +14 -0
  224. package/build/cjs/components/Icons/hlTrash.d.ts +4 -0
  225. package/build/cjs/components/Icons/hlTrash.js +15 -0
  226. package/build/cjs/components/Icons/hlTv.d.ts +4 -0
  227. package/build/cjs/components/Icons/hlTv.js +14 -0
  228. package/build/cjs/components/Icons/hlUnlock.d.ts +4 -0
  229. package/build/cjs/components/Icons/hlUnlock.js +16 -0
  230. package/build/cjs/components/Icons/hlUpload.d.ts +4 -0
  231. package/build/cjs/components/Icons/hlUpload.js +16 -0
  232. package/build/cjs/components/Icons/hlWarning.d.ts +4 -0
  233. package/build/cjs/components/Icons/hlWarning.js +16 -0
  234. package/build/cjs/components/Icons/hlWifi.d.ts +4 -0
  235. package/build/cjs/components/Icons/hlWifi.js +16 -0
  236. package/build/cjs/components/Icons/hlX.d.ts +4 -0
  237. package/build/cjs/components/Icons/hlX.js +14 -0
  238. package/build/cjs/components/Icons/index.d.ts +102 -0
  239. package/build/cjs/components/Icons/index.js +216 -0
  240. package/build/cjs/components/Input/Input.d.ts +102 -13
  241. package/build/cjs/components/Input/Input.js +59 -58
  242. package/build/cjs/components/Label/Label.js +2 -3
  243. package/build/cjs/components/LabelText/LabelText.d.ts +38 -30
  244. package/build/cjs/components/LabelText/LabelText.js +1 -1
  245. package/build/cjs/components/MainNavigation/ChildComponents/BusinessMenu.js +1 -1
  246. package/build/cjs/components/MainNavigation/ChildComponents/DesktopMenu.js +30 -12
  247. package/build/cjs/components/MainNavigation/ChildComponents/HeaderNavigationElements.d.ts +37 -30
  248. package/build/cjs/components/MainNavigation/ChildComponents/HeaderNavigationElements.js +10 -7
  249. package/build/cjs/components/MainNavigation/ChildComponents/LanguageSelector.js +4 -4
  250. package/build/cjs/components/MainNavigation/ChildComponents/LoginTooltip.js +2 -1
  251. package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +37 -30
  252. package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.js +16 -19
  253. package/build/cjs/components/MainNavigation/ChildComponents/MinicartTooltip.js +2 -1
  254. package/build/cjs/components/MainNavigation/ChildComponents/MobileMenu.js +7 -6
  255. package/build/cjs/components/MainNavigation/ChildComponents/PageSearch.js +4 -3
  256. package/build/cjs/components/MainNavigation/ChildComponents/Ribbon.js +5 -6
  257. package/build/cjs/components/MainNavigation/MainNavigation.js +4 -17
  258. package/build/cjs/components/MainNavigation/globalNavStyles.d.ts +148 -120
  259. package/build/cjs/components/MainNavigation/globalNavStyles.js +1 -1
  260. package/build/cjs/components/Modal/Modal.js +2 -1
  261. package/build/cjs/components/Notification/Notification.d.ts +1 -5
  262. package/build/cjs/components/Notification/Notification.js +12 -7
  263. package/build/cjs/components/NotificationBadge/NotificationBadge.d.ts +37 -30
  264. package/build/cjs/components/NotificationBadge/NotificationBadge.js +1 -1
  265. package/build/cjs/components/PixelLoader/PixelLoaderStyles.d.ts +74 -60
  266. package/build/cjs/components/ProgressIndicator/ProgressIndicator.js +14 -10
  267. package/build/cjs/components/RadioButton/RadioButton.d.ts +33 -17
  268. package/build/cjs/components/RadioButton/RadioButton.js +13 -57
  269. package/build/cjs/components/ReadMore/ReadMore.js +7 -12
  270. package/build/cjs/components/Ribbon/Ribbon.js +4 -3
  271. package/build/cjs/components/Search/Search.d.ts +21 -2
  272. package/build/cjs/components/Search/Search.js +26 -7
  273. package/build/cjs/components/SecondaryNavigation/SecondaryNavigation.js +25 -26
  274. package/build/cjs/components/Selectbox/Selectbox.d.ts +104 -13
  275. package/build/cjs/components/Selectbox/Selectbox.js +61 -57
  276. package/build/cjs/components/Tabs/Tab.d.ts +37 -30
  277. package/build/cjs/components/Tabs/Tab.js +3 -2
  278. package/build/cjs/components/Tabs/Tabs.d.ts +40 -30
  279. package/build/cjs/components/Textarea/Textarea.js +4 -3
  280. package/build/cjs/components/Tooltip/Tooltip.d.ts +37 -30
  281. package/build/cjs/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.d.ts +74 -60
  282. package/build/cjs/components/TooltipMenu/TooltipMenu.d.ts +13 -4
  283. package/build/cjs/components/TooltipMenu/TooltipMenu.js +10 -5
  284. package/build/cjs/components/index.d.ts +5 -2
  285. package/build/cjs/index.js +430 -2
  286. package/build/cjs/themes/globalStyles.d.ts +174 -60
  287. package/build/cjs/themes/globalStyles.js +133 -143
  288. package/build/cjs/themes/styled.d.ts +259 -210
  289. package/build/cjs/themes/theme.d.ts +37 -30
  290. package/build/cjs/themes/themeComponents/buttons.d.ts +1 -6
  291. package/build/cjs/themes/themeComponents/buttons.js +1 -6
  292. package/build/cjs/themes/themeComponents/fontFamily.d.ts +3 -1
  293. package/build/cjs/themes/themeComponents/fontFamily.js +3 -1
  294. package/build/cjs/themes/themeComponents/fontSize.d.ts +18 -15
  295. package/build/cjs/themes/themeComponents/fontSize.js +20 -14
  296. package/build/cjs/themes/themeComponents/lineHeight.d.ts +19 -12
  297. package/build/cjs/themes/themeComponents/lineHeight.js +21 -11
  298. package/build/es/components/Accordion/Accordion.d.ts +27 -15
  299. package/build/es/components/Accordion/Accordion.js +29 -12
  300. package/build/es/components/Accordion/AccordionItem.d.ts +14 -29
  301. package/build/es/components/Accordion/AccordionItem.js +34 -54
  302. package/build/es/components/AmountSelector/AmountSelector.js +16 -9
  303. package/build/es/components/Buttons/ButtonBasicStyles.d.ts +37 -30
  304. package/build/es/components/Buttons/ButtonBasicStyles.js +14 -18
  305. package/build/es/components/Buttons/ButtonDefault.js +6 -2
  306. package/build/es/components/Buttons/ButtonIcon.js +9 -2
  307. package/build/es/components/Buttons/ButtonIconPrimary.js +9 -2
  308. package/build/es/components/Buttons/ButtonIconPrimaryStyles.d.ts +37 -30
  309. package/build/es/components/Buttons/ButtonIconStyles.d.ts +37 -30
  310. package/build/es/components/Buttons/ButtonIconStyles.js +2 -6
  311. package/build/es/components/Buttons/ButtonPrimary.js +6 -2
  312. package/build/es/components/Buttons/ButtonPrimaryStyles.d.ts +37 -30
  313. package/build/es/components/Buttons/ButtonSecondary.js +7 -3
  314. package/build/es/components/Buttons/ButtonSecondaryStyles.d.ts +37 -30
  315. package/build/es/components/Buttons/ButtonTertiary.js +7 -3
  316. package/build/es/components/Buttons/ButtonTertiaryStyles.d.ts +37 -30
  317. package/build/es/components/Buttons/CloseButton.d.ts +37 -30
  318. package/build/es/components/Card/Card.js +4 -2
  319. package/build/es/components/Card/CardRow.js +3 -3
  320. package/build/es/components/Checkbox/Checkbox.d.ts +38 -12
  321. package/build/es/components/Checkbox/Checkbox.js +41 -72
  322. package/build/es/components/DnaLogo/DnaLogo.d.ts +37 -40
  323. package/build/es/components/EmptyState/EmptyState.d.ts +5 -1
  324. package/build/es/components/EmptyState/EmptyState.js +11 -3
  325. package/build/es/components/Footer/Components/FooterComponents.js +11 -7
  326. package/build/es/components/Helper/Helper.js +2 -1
  327. package/build/es/components/Icon/Icon.d.ts +46 -115
  328. package/build/es/components/Icon/Icon.js +35 -17
  329. package/build/es/components/Icon/Icons.d.ts +219 -317
  330. package/build/es/components/Icon/Icons.js +2 -280
  331. package/build/es/components/Icons/Small/hlArrowBackSmall.d.ts +12 -0
  332. package/build/es/components/Icons/Small/hlArrowBackSmall.js +15 -0
  333. package/build/es/components/Icons/Small/hlArrowForwardSmall.d.ts +12 -0
  334. package/build/es/components/Icons/Small/hlArrowForwardSmall.js +15 -0
  335. package/build/es/components/Icons/Small/hlArrowUnderSmall.d.ts +8 -0
  336. package/build/es/components/Icons/Small/hlArrowUnderSmall.js +11 -0
  337. package/build/es/components/Icons/Small/hlCalendarSmall.d.ts +4 -0
  338. package/build/es/components/Icons/Small/hlCalendarSmall.js +6 -0
  339. package/build/es/components/Icons/Small/hlChevronDownSmall.d.ts +4 -0
  340. package/build/es/components/Icons/Small/hlChevronDownSmall.js +6 -0
  341. package/build/es/components/Icons/Small/hlChevronLeftSmall.d.ts +4 -0
  342. package/build/es/components/Icons/Small/hlChevronLeftSmall.js +6 -0
  343. package/build/es/components/Icons/Small/hlChevronRightSmall.d.ts +4 -0
  344. package/build/es/components/Icons/Small/hlChevronRightSmall.js +6 -0
  345. package/build/es/components/Icons/Small/hlChevronUpSmall.d.ts +4 -0
  346. package/build/es/components/Icons/Small/hlChevronUpSmall.js +6 -0
  347. package/build/es/components/Icons/Small/hlClockSmall.d.ts +4 -0
  348. package/build/es/components/Icons/Small/hlClockSmall.js +7 -0
  349. package/build/es/components/Icons/Small/hlDownloadSmall.d.ts +4 -0
  350. package/build/es/components/Icons/Small/hlDownloadSmall.js +8 -0
  351. package/build/es/components/Icons/Small/hlExternalSmall.d.ts +4 -0
  352. package/build/es/components/Icons/Small/hlExternalSmall.js +6 -0
  353. package/build/es/components/Icons/Small/hlUploadSmall.d.ts +4 -0
  354. package/build/es/components/Icons/Small/hlUploadSmall.js +8 -0
  355. package/build/es/components/Icons/Social/facebook.d.ts +4 -0
  356. package/build/es/components/Icons/Social/facebook.js +6 -0
  357. package/build/es/components/Icons/Social/instagram.d.ts +4 -0
  358. package/build/es/components/Icons/Social/instagram.js +6 -0
  359. package/build/es/components/Icons/Social/linkedin.d.ts +4 -0
  360. package/build/es/components/Icons/Social/linkedin.js +6 -0
  361. package/build/es/components/Icons/Social/tiktok.d.ts +4 -0
  362. package/build/es/components/Icons/Social/tiktok.js +6 -0
  363. package/build/es/components/Icons/Social/twitter.d.ts +4 -0
  364. package/build/es/components/Icons/Social/twitter.js +6 -0
  365. package/build/es/components/Icons/Social/youtube.d.ts +4 -0
  366. package/build/es/components/Icons/Social/youtube.js +6 -0
  367. package/build/es/components/Icons/hl404.d.ts +4 -0
  368. package/build/es/components/Icons/hl404.js +6 -0
  369. package/build/es/components/Icons/hl4gSim.d.ts +4 -0
  370. package/build/es/components/Icons/hl4gSim.js +6 -0
  371. package/build/es/components/Icons/hl5gSim.d.ts +4 -0
  372. package/build/es/components/Icons/hl5gSim.js +6 -0
  373. package/build/es/components/Icons/hlBattery.d.ts +4 -0
  374. package/build/es/components/Icons/hlBattery.js +8 -0
  375. package/build/es/components/Icons/hlBell.d.ts +4 -0
  376. package/build/es/components/Icons/hlBell.js +6 -0
  377. package/build/es/components/Icons/hlCalendar.d.ts +4 -0
  378. package/build/es/components/Icons/hlCalendar.js +17 -0
  379. package/build/es/components/Icons/hlCall.d.ts +4 -0
  380. package/build/es/components/Icons/hlCall.js +6 -0
  381. package/build/es/components/Icons/hlCameraBack.d.ts +4 -0
  382. package/build/es/components/Icons/hlCameraBack.js +8 -0
  383. package/build/es/components/Icons/hlCameraFront.d.ts +4 -0
  384. package/build/es/components/Icons/hlCameraFront.js +7 -0
  385. package/build/es/components/Icons/hlCart.d.ts +4 -0
  386. package/build/es/components/Icons/hlCart.js +8 -0
  387. package/build/es/components/Icons/hlCartEmpty.d.ts +4 -0
  388. package/build/es/components/Icons/hlCartEmpty.js +8 -0
  389. package/build/es/components/Icons/hlChat.d.ts +4 -0
  390. package/build/es/components/Icons/hlChat.js +9 -0
  391. package/build/es/components/Icons/hlCheck.d.ts +4 -0
  392. package/build/es/components/Icons/hlCheck.js +6 -0
  393. package/build/es/components/Icons/hlChevronDown.d.ts +4 -0
  394. package/build/es/components/Icons/hlChevronDown.js +6 -0
  395. package/build/es/components/Icons/hlChevronLeft.d.ts +4 -0
  396. package/build/es/components/Icons/hlChevronLeft.js +6 -0
  397. package/build/es/components/Icons/hlChevronRight.d.ts +4 -0
  398. package/build/es/components/Icons/hlChevronRight.js +6 -0
  399. package/build/es/components/Icons/hlChevronUp.d.ts +4 -0
  400. package/build/es/components/Icons/hlChevronUp.js +6 -0
  401. package/build/es/components/Icons/hlCompensation.d.ts +4 -0
  402. package/build/es/components/Icons/hlCompensation.js +6 -0
  403. package/build/es/components/Icons/hlCookie.d.ts +4 -0
  404. package/build/es/components/Icons/hlCookie.js +6 -0
  405. package/build/es/components/Icons/hlCopy.d.ts +4 -0
  406. package/build/es/components/Icons/hlCopy.js +7 -0
  407. package/build/es/components/Icons/hlCoupon.d.ts +4 -0
  408. package/build/es/components/Icons/hlCoupon.js +8 -0
  409. package/build/es/components/Icons/hlDelivery.d.ts +4 -0
  410. package/build/es/components/Icons/hlDelivery.js +6 -0
  411. package/build/es/components/Icons/hlDigiturva.d.ts +4 -0
  412. package/build/es/components/Icons/hlDigiturva.js +6 -0
  413. package/build/es/components/Icons/hlDisplaySize.d.ts +4 -0
  414. package/build/es/components/Icons/hlDisplaySize.js +8 -0
  415. package/build/es/components/Icons/hlDocument.d.ts +4 -0
  416. package/build/es/components/Icons/hlDocument.js +7 -0
  417. package/build/es/components/Icons/hlDownload.d.ts +4 -0
  418. package/build/es/components/Icons/hlDownload.js +8 -0
  419. package/build/es/components/Icons/hlEnvelope.d.ts +4 -0
  420. package/build/es/components/Icons/hlEnvelope.js +6 -0
  421. package/build/es/components/Icons/hlError.d.ts +4 -0
  422. package/build/es/components/Icons/hlError.js +8 -0
  423. package/build/es/components/Icons/hlEuro.d.ts +4 -0
  424. package/build/es/components/Icons/hlEuro.js +6 -0
  425. package/build/es/components/Icons/hlExclamationMark.d.ts +4 -0
  426. package/build/es/components/Icons/hlExclamationMark.js +6 -0
  427. package/build/es/components/Icons/hlExpand.d.ts +4 -0
  428. package/build/es/components/Icons/hlExpand.js +6 -0
  429. package/build/es/components/Icons/hlExternal.d.ts +4 -0
  430. package/build/es/components/Icons/hlExternal.js +6 -0
  431. package/build/es/components/Icons/hlEyeClosed.d.ts +4 -0
  432. package/build/es/components/Icons/hlEyeClosed.js +6 -0
  433. package/build/es/components/Icons/hlEyeOpen.d.ts +4 -0
  434. package/build/es/components/Icons/hlEyeOpen.js +7 -0
  435. package/build/es/components/Icons/hlFaceId.d.ts +4 -0
  436. package/build/es/components/Icons/hlFaceId.js +6 -0
  437. package/build/es/components/Icons/hlFastDelivery.d.ts +4 -0
  438. package/build/es/components/Icons/hlFastDelivery.js +6 -0
  439. package/build/es/components/Icons/hlFingerprint.d.ts +4 -0
  440. package/build/es/components/Icons/hlFingerprint.js +10 -0
  441. package/build/es/components/Icons/hlGlobe.d.ts +4 -0
  442. package/build/es/components/Icons/hlGlobe.js +6 -0
  443. package/build/es/components/Icons/hlHeadphones.d.ts +4 -0
  444. package/build/es/components/Icons/hlHeadphones.js +6 -0
  445. package/build/es/components/Icons/hlHeadset.d.ts +4 -0
  446. package/build/es/components/Icons/hlHeadset.js +8 -0
  447. package/build/es/components/Icons/hlHeart.d.ts +4 -0
  448. package/build/es/components/Icons/hlHeart.js +6 -0
  449. package/build/es/components/Icons/hlHome.d.ts +4 -0
  450. package/build/es/components/Icons/hlHome.js +6 -0
  451. package/build/es/components/Icons/hlImage.d.ts +4 -0
  452. package/build/es/components/Icons/hlImage.js +6 -0
  453. package/build/es/components/Icons/hlInfo.d.ts +4 -0
  454. package/build/es/components/Icons/hlInfo.js +8 -0
  455. package/build/es/components/Icons/hlInstallment.d.ts +4 -0
  456. package/build/es/components/Icons/hlInstallment.js +7 -0
  457. package/build/es/components/Icons/hlIotSim.d.ts +4 -0
  458. package/build/es/components/Icons/hlIotSim.js +7 -0
  459. package/build/es/components/Icons/hlLock.d.ts +4 -0
  460. package/build/es/components/Icons/hlLock.js +8 -0
  461. package/build/es/components/Icons/hlMagnifyingGlass.d.ts +4 -0
  462. package/build/es/components/Icons/hlMagnifyingGlass.js +7 -0
  463. package/build/es/components/Icons/hlMarker.d.ts +4 -0
  464. package/build/es/components/Icons/hlMarker.js +7 -0
  465. package/build/es/components/Icons/hlMemory.d.ts +4 -0
  466. package/build/es/components/Icons/hlMemory.js +7 -0
  467. package/build/es/components/Icons/hlMenu.d.ts +4 -0
  468. package/build/es/components/Icons/hlMenu.js +6 -0
  469. package/build/es/components/Icons/hlMinimize.d.ts +4 -0
  470. package/build/es/components/Icons/hlMinimize.js +6 -0
  471. package/build/es/components/Icons/hlMinus.d.ts +4 -0
  472. package/build/es/components/Icons/hlMinus.js +6 -0
  473. package/build/es/components/Icons/hlMobileData.d.ts +4 -0
  474. package/build/es/components/Icons/hlMobileData.js +6 -0
  475. package/build/es/components/Icons/hlMobilePayment.d.ts +4 -0
  476. package/build/es/components/Icons/hlMobilePayment.js +8 -0
  477. package/build/es/components/Icons/hlModem.d.ts +4 -0
  478. package/build/es/components/Icons/hlModem.js +10 -0
  479. package/build/es/components/Icons/hlMore.d.ts +4 -0
  480. package/build/es/components/Icons/hlMore.js +8 -0
  481. package/build/es/components/Icons/hlOs.d.ts +4 -0
  482. package/build/es/components/Icons/hlOs.js +7 -0
  483. package/build/es/components/Icons/hlPackage.d.ts +4 -0
  484. package/build/es/components/Icons/hlPackage.js +6 -0
  485. package/build/es/components/Icons/hlPaperclip.d.ts +4 -0
  486. package/build/es/components/Icons/hlPaperclip.js +6 -0
  487. package/build/es/components/Icons/hlPaytime.d.ts +4 -0
  488. package/build/es/components/Icons/hlPaytime.js +6 -0
  489. package/build/es/components/Icons/hlPen.d.ts +4 -0
  490. package/build/es/components/Icons/hlPen.js +6 -0
  491. package/build/es/components/Icons/hlPerson.d.ts +4 -0
  492. package/build/es/components/Icons/hlPerson.js +6 -0
  493. package/build/es/components/Icons/hlPhone.d.ts +4 -0
  494. package/build/es/components/Icons/hlPhone.js +7 -0
  495. package/build/es/components/Icons/hlPlus.d.ts +4 -0
  496. package/build/es/components/Icons/hlPlus.js +7 -0
  497. package/build/es/components/Icons/hlPrepaid.d.ts +4 -0
  498. package/build/es/components/Icons/hlPrepaid.js +6 -0
  499. package/build/es/components/Icons/hlProcessor.d.ts +4 -0
  500. package/build/es/components/Icons/hlProcessor.js +7 -0
  501. package/build/es/components/Icons/hlServices.d.ts +4 -0
  502. package/build/es/components/Icons/hlServices.js +6 -0
  503. package/build/es/components/Icons/hlSettings.d.ts +4 -0
  504. package/build/es/components/Icons/hlSettings.js +6 -0
  505. package/build/es/components/Icons/hlShield.d.ts +4 -0
  506. package/build/es/components/Icons/hlShield.js +7 -0
  507. package/build/es/components/Icons/hlSim.d.ts +4 -0
  508. package/build/es/components/Icons/hlSim.js +7 -0
  509. package/build/es/components/Icons/hlSimSimple.d.ts +4 -0
  510. package/build/es/components/Icons/hlSimSimple.js +8 -0
  511. package/build/es/components/Icons/hlSmile.d.ts +4 -0
  512. package/build/es/components/Icons/hlSmile.js +9 -0
  513. package/build/es/components/Icons/hlSpeechBubble.d.ts +4 -0
  514. package/build/es/components/Icons/hlSpeechBubble.js +7 -0
  515. package/build/es/components/Icons/hlSquaretrade.d.ts +4 -0
  516. package/build/es/components/Icons/hlSquaretrade.js +6 -0
  517. package/build/es/components/Icons/hlStar.d.ts +4 -0
  518. package/build/es/components/Icons/hlStar.js +6 -0
  519. package/build/es/components/Icons/hlStarFilled.d.ts +4 -0
  520. package/build/es/components/Icons/hlStarFilled.js +6 -0
  521. package/build/es/components/Icons/hlTrash.d.ts +4 -0
  522. package/build/es/components/Icons/hlTrash.js +7 -0
  523. package/build/es/components/Icons/hlTv.d.ts +4 -0
  524. package/build/es/components/Icons/hlTv.js +6 -0
  525. package/build/es/components/Icons/hlUnlock.d.ts +4 -0
  526. package/build/es/components/Icons/hlUnlock.js +8 -0
  527. package/build/es/components/Icons/hlUpload.d.ts +4 -0
  528. package/build/es/components/Icons/hlUpload.js +8 -0
  529. package/build/es/components/Icons/hlWarning.d.ts +4 -0
  530. package/build/es/components/Icons/hlWarning.js +8 -0
  531. package/build/es/components/Icons/hlWifi.d.ts +4 -0
  532. package/build/es/components/Icons/hlWifi.js +8 -0
  533. package/build/es/components/Icons/hlX.d.ts +4 -0
  534. package/build/es/components/Icons/hlX.js +6 -0
  535. package/build/es/components/Icons/index.d.ts +102 -0
  536. package/build/es/components/Icons/index.js +102 -0
  537. package/build/es/components/Input/Input.d.ts +102 -13
  538. package/build/es/components/Input/Input.js +59 -58
  539. package/build/es/components/Label/Label.js +2 -3
  540. package/build/es/components/LabelText/LabelText.d.ts +38 -30
  541. package/build/es/components/LabelText/LabelText.js +1 -1
  542. package/build/es/components/MainNavigation/ChildComponents/BusinessMenu.js +1 -1
  543. package/build/es/components/MainNavigation/ChildComponents/DesktopMenu.js +31 -13
  544. package/build/es/components/MainNavigation/ChildComponents/HeaderNavigationElements.d.ts +37 -30
  545. package/build/es/components/MainNavigation/ChildComponents/HeaderNavigationElements.js +10 -7
  546. package/build/es/components/MainNavigation/ChildComponents/LanguageSelector.js +4 -4
  547. package/build/es/components/MainNavigation/ChildComponents/LoginTooltip.js +2 -1
  548. package/build/es/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +37 -30
  549. package/build/es/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.js +17 -20
  550. package/build/es/components/MainNavigation/ChildComponents/MinicartTooltip.js +2 -1
  551. package/build/es/components/MainNavigation/ChildComponents/MobileMenu.js +8 -7
  552. package/build/es/components/MainNavigation/ChildComponents/PageSearch.js +4 -3
  553. package/build/es/components/MainNavigation/ChildComponents/Ribbon.js +5 -6
  554. package/build/es/components/MainNavigation/MainNavigation.js +5 -17
  555. package/build/es/components/MainNavigation/globalNavStyles.d.ts +148 -120
  556. package/build/es/components/MainNavigation/globalNavStyles.js +1 -1
  557. package/build/es/components/Modal/Modal.js +2 -1
  558. package/build/es/components/Notification/Notification.d.ts +1 -5
  559. package/build/es/components/Notification/Notification.js +12 -7
  560. package/build/es/components/NotificationBadge/NotificationBadge.d.ts +37 -30
  561. package/build/es/components/NotificationBadge/NotificationBadge.js +1 -1
  562. package/build/es/components/PixelLoader/PixelLoaderStyles.d.ts +74 -60
  563. package/build/es/components/ProgressIndicator/ProgressIndicator.js +14 -10
  564. package/build/es/components/RadioButton/RadioButton.d.ts +33 -17
  565. package/build/es/components/RadioButton/RadioButton.js +13 -57
  566. package/build/es/components/ReadMore/ReadMore.js +7 -12
  567. package/build/es/components/Ribbon/Ribbon.js +4 -3
  568. package/build/es/components/Search/Search.d.ts +21 -2
  569. package/build/es/components/Search/Search.js +26 -7
  570. package/build/es/components/SecondaryNavigation/SecondaryNavigation.js +25 -26
  571. package/build/es/components/Selectbox/Selectbox.d.ts +104 -13
  572. package/build/es/components/Selectbox/Selectbox.js +62 -58
  573. package/build/es/components/Tabs/Tab.d.ts +37 -30
  574. package/build/es/components/Tabs/Tab.js +3 -2
  575. package/build/es/components/Tabs/Tabs.d.ts +40 -30
  576. package/build/es/components/Textarea/Textarea.js +4 -3
  577. package/build/es/components/Tooltip/Tooltip.d.ts +37 -30
  578. package/build/es/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.d.ts +74 -60
  579. package/build/es/components/TooltipMenu/TooltipMenu.d.ts +13 -4
  580. package/build/es/components/TooltipMenu/TooltipMenu.js +10 -5
  581. package/build/es/components/index.d.ts +5 -2
  582. package/build/es/index.js +104 -1
  583. package/build/es/themes/globalStyles.d.ts +174 -60
  584. package/build/es/themes/globalStyles.js +135 -146
  585. package/build/es/themes/styled.d.ts +259 -210
  586. package/build/es/themes/theme.d.ts +37 -30
  587. package/build/es/themes/themeComponents/buttons.d.ts +1 -6
  588. package/build/es/themes/themeComponents/buttons.js +1 -6
  589. package/build/es/themes/themeComponents/fontFamily.d.ts +3 -1
  590. package/build/es/themes/themeComponents/fontFamily.js +3 -1
  591. package/build/es/themes/themeComponents/fontSize.d.ts +18 -15
  592. package/build/es/themes/themeComponents/fontSize.js +20 -14
  593. package/build/es/themes/themeComponents/lineHeight.d.ts +19 -12
  594. package/build/es/themes/themeComponents/lineHeight.js +21 -11
  595. package/package.json +3 -4
  596. package/build/cjs/components/Accordion/index.d.ts +0 -2
  597. package/build/es/components/Accordion/index.d.ts +0 -2
@@ -2,16 +2,18 @@ import React from 'react';
2
2
  import styled from '../../themes/styled.js';
3
3
  import theme from '../../themes/theme.js';
4
4
  import { getMultipliedSize } from '../../utils/styledUtils.js';
5
- import '../Buttons/ButtonBasicStyles.js';
6
- import '../PixelLoader/PixelLoaderStyles.js';
7
- import '../Buttons/ButtonPrimaryStyles.js';
5
+ import '../Buttons/ButtonDefault.js';
6
+ import '../Buttons/ButtonPrimary.js';
8
7
  import ButtonSecondary from '../Buttons/ButtonSecondary.js';
9
- import '../Buttons/ButtonTertiaryStyles.js';
8
+ import '../Buttons/ButtonTertiary.js';
10
9
  import '../Buttons/ButtonRoundStyles.js';
11
10
  import '../Buttons/CloseButton.js';
12
- import '../Buttons/ButtonIconStyles.js';
13
11
  import Icon from '../Icon/Icon.js';
12
+ import '../Buttons/ButtonIconStyles.js';
14
13
  import '../Buttons/ButtonIconPrimaryStyles.js';
14
+ import hlMinus from '../Icons/hlMinus.js';
15
+ import hlPlus from '../Icons/hlPlus.js';
16
+ import hlTrash from '../Icons/hlTrash.js';
15
17
 
16
18
  const Container = styled.div `
17
19
  display: flex;
@@ -19,6 +21,8 @@ const Container = styled.div `
19
21
 
20
22
  input {
21
23
  width: ${getMultipliedSize(theme.base.baseWidth, 4)};
24
+ font-family: ${props => props.theme.fontFamily.default};
25
+ font-size: ${props => props.theme.fontSize.default};
22
26
  border: 0 none;
23
27
  text-align: center;
24
28
  outline: none;
@@ -32,6 +36,9 @@ const Container = styled.div `
32
36
  `;
33
37
  const StyledButtonSecondary = styled(ButtonSecondary) `
34
38
  min-width: ${getMultipliedSize(theme.base.baseWidth, 4)};
39
+ width: ${getMultipliedSize(theme.base.baseWidth, 4)};
40
+ height: ${getMultipliedSize(theme.base.baseHeight, 4)};
41
+ padding: ${getMultipliedSize(theme.base.baseWidth, 0.6)};
35
42
  `;
36
43
  /** @visibleName Amount Selector */
37
44
  const AmountSelector = ({ onChange, value = 1, step = 1, min = 1, max, disabled = false, readonly = true, 'data-testid': dataTestId, ...props }) => {
@@ -65,12 +72,12 @@ const AmountSelector = ({ onChange, value = 1, step = 1, min = 1, max, disabled
65
72
  }
66
73
  };
67
74
  return (React.createElement(Container, { disabled: disabled, "data-testid": dataTestId, className: props.className },
68
- React.createElement(StyledButtonSecondary, { disabled: disabled, onClick: decrease, "data-testid": dataTestId &&
75
+ React.createElement(StyledButtonSecondary, { disabled: disabled, onClick: decrease, type: "button", "data-testid": dataTestId &&
69
76
  `${dataTestId}${props.removable && isMinReached(value - step) ? '-remove' : '-decrease'}` },
70
- React.createElement(Icon, { color: theme.color.black, name: props.removable && isMinReached(value - step) ? 'hlTrash' : 'hlMinus' })),
77
+ React.createElement(Icon, { icon: props.removable && isMinReached(value - step) ? hlTrash : hlMinus, color: theme.color.black })),
71
78
  React.createElement("input", { id: props.id, name: props.name, type: "number", onChange: handleChange, value: value, readOnly: readonly || disabled, disabled: disabled }),
72
- React.createElement(StyledButtonSecondary, { disabled: disabled, onClick: increase, "data-testid": dataTestId ? `${dataTestId}-increase` : undefined },
73
- React.createElement(Icon, { color: theme.color.black, name: "hlPlus" }))));
79
+ React.createElement(StyledButtonSecondary, { disabled: disabled, onClick: increase, "data-testid": dataTestId ? `${dataTestId}-increase` : undefined, type: "button" },
80
+ React.createElement(Icon, { icon: hlPlus, color: theme.color.black }))));
74
81
  };
75
82
 
76
83
  export default AmountSelector;
@@ -18,12 +18,7 @@ declare const ButtonBasicStyle: import("styled-components").StyledComponent<"but
18
18
  };
19
19
  breakpoints: import("../../themes/themeComponents/breakpoints").ViewBreakpoints;
20
20
  button: {
21
- buttonBorderWidth: string;
22
- buttonPadding: string;
23
- smallButtonPadding: string;
24
- buttonLineHeight: string;
25
- buttonWidth: string;
26
- buttonSmallWidth: string;
21
+ border: string;
27
22
  };
28
23
  color: {
29
24
  black: string;
@@ -54,22 +49,27 @@ declare const ButtonBasicStyle: import("styled-components").StyledComponent<"but
54
49
  gray5: string;
55
50
  };
56
51
  fontFamily: {
57
- baseFontFamily: string;
52
+ default: string;
53
+ heading: string;
54
+ numerals: string;
58
55
  };
59
56
  fontSize: {
60
- defaultFontSize: string;
61
- smallFontSize: string;
62
- extraSmallFontSize: string;
63
- xsFontSize: string;
64
- xxsFontSize: string;
65
- h1FontSize: string;
66
- h2FontSize: string;
67
- h2MobileFontSize: string;
68
- h3FontSize: string;
69
- h4FontSize: string;
70
- h5FontSize: string;
71
- heroBannerTitleFontSize: string;
72
- heroBannerTitleMobileFontSize: string;
57
+ default: string;
58
+ xl: string;
59
+ l: string;
60
+ s: string;
61
+ xs: string;
62
+ h1XL: string;
63
+ h1L: string;
64
+ h1M: string;
65
+ h1S: string;
66
+ h2M: string;
67
+ h2S: string;
68
+ h3: string;
69
+ h4: string;
70
+ h5: string;
71
+ h1: string;
72
+ h2: string;
73
73
  };
74
74
  fontWeight: {
75
75
  book: number;
@@ -85,16 +85,23 @@ declare const ButtonBasicStyle: import("styled-components").StyledComponent<"but
85
85
  gutter: string;
86
86
  };
87
87
  lineHeight: {
88
- defaultLineHeight: string;
89
- paragraphLineHeight: string;
90
- heroBannerLineHeight: string;
91
- heroBannerMobileLineHeight: string;
92
- h1LineHeight: string;
93
- h2LineHeight: string;
94
- h2MobileLineHeight: string;
95
- h3LineHeight: string;
96
- h4LineHeight: string;
97
- h5LineHeight: string;
88
+ default: string;
89
+ xl: string;
90
+ s: string;
91
+ xs: string;
92
+ xxs: string;
93
+ auto: string;
94
+ h1XL: string;
95
+ h1L: string;
96
+ h1M: string;
97
+ h1S: string;
98
+ h2M: string;
99
+ h2S: string;
100
+ h3: string;
101
+ h4: string;
102
+ h5: string;
103
+ h1: string;
104
+ h2: string;
98
105
  };
99
106
  media: Record<string | number, (l: TemplateStringsArray, ...p: any[]) => string>;
100
107
  }, ButtonProps, never>;
@@ -1,28 +1,26 @@
1
1
  import styled from '../../themes/styled.js';
2
+ import { getMultipliedSize } from '../../utils/styledUtils.js';
2
3
 
3
4
  const ButtonBasicStyle = styled.button `
4
5
  position: relative;
5
- padding: ${props => props && props.small
6
- ? props.theme.button.smallButtonPadding
7
- : props.theme.button.buttonPadding};
6
+ padding: ${props => `${getMultipliedSize(props.theme.base.baseWidth, 0.8)}
7
+ ${getMultipliedSize(props.theme.base.baseWidth, 1)}`};
8
8
  text-decoration: none;
9
9
  display: inline-block;
10
10
  border-style: solid;
11
- border-width: ${props => props.theme.button.buttonBorderWidth};
11
+ border-width: ${props => props.theme.button.border};
12
12
  border-color: ${props => props && props.darkBg ? props.theme.color.white : props.theme.color.black};
13
13
  box-sizing: border-box;
14
14
  background-color: transparent;
15
15
  color: ${props => (props && props.darkBg ? props.theme.color.white : props.theme.color.black)};
16
- font-family: ${props => props.theme.fontFamily.baseFontFamily};
16
+ font-family: ${props => props.theme.fontFamily.default};
17
17
  font-weight: ${props => props.theme.fontWeight.bold};
18
- line-height: ${props => props.theme.button.buttonLineHeight};
19
- font-size: ${props => props.theme.fontSize.defaultFontSize};
18
+ font-size: ${props => props && props.small ? props.theme.fontSize.s : props.theme.fontSize.default};
19
+ line-height: ${props => props && props.small ? props.theme.lineHeight.s : props.theme.lineHeight.default};
20
20
  outline: none;
21
21
  text-align: center;
22
22
  vertical-align: middle;
23
- min-width: ${props => props && props.small
24
- ? props.theme.button.buttonSmallWidth
25
- : props.theme.button.buttonWidth};
23
+ min-width: ${props => getMultipliedSize(props.theme.base.baseWidth, props && props.small ? 10.5 : 12.5)};
26
24
  width: ${props => (props && props.fullWidth ? '100%' : 'auto')};
27
25
  cursor: pointer;
28
26
  max-width: 100%;
@@ -31,15 +29,15 @@ const ButtonBasicStyle = styled.button `
31
29
  &:focus {
32
30
  outline: none;
33
31
  color: ${props => props && props.darkBg ? props.theme.color.white : props.theme.color.black};
34
- span {
35
- border-bottom: ${props => `${props.theme.button.buttonBorderWidth} solid`};
32
+ span:not(span.dnasg-icon) {
33
+ border-bottom: ${props => `${props.theme.button.border} solid`};
36
34
  }
37
35
  }
38
36
  &:hover {
39
37
  background: ${props => props && props.darkBg ? props.theme.color.white : props.theme.color.black};
40
38
  color: ${props => props && props.darkBg ? props.theme.color.black : props.theme.color.white};
41
39
  text-decoration: none;
42
- span {
40
+ span:not(span.dnasg-icon) {
43
41
  border-bottom: 0;
44
42
  }
45
43
  }
@@ -47,7 +45,7 @@ const ButtonBasicStyle = styled.button `
47
45
  opacity: 0.7;
48
46
  background: transparent;
49
47
  color: ${props => props && props.darkBg ? props.theme.color.white : props.theme.color.black};
50
- span {
48
+ span:not(span.dnasg-icon) {
51
49
  border-bottom: 0;
52
50
  }
53
51
  }
@@ -60,11 +58,9 @@ const ButtonBasicStyle = styled.button `
60
58
  pointer-events: none;
61
59
  }
62
60
 
63
- span {
61
+ span:not(span.dnasg-icon) {
64
62
  border-bottom: 0;
65
- font-size: ${props => props && props.small
66
- ? props.theme.fontSize.smallFontSize
67
- : props.theme.fontSize.defaultFontSize};
63
+ font-size: ${props => props && props.small ? props.theme.fontSize.s : props.theme.fontSize.default};
68
64
  }
69
65
  `;
70
66
 
@@ -1,8 +1,12 @@
1
1
  import React from 'react';
2
- import ButtonBasicStyle from './ButtonBasicStyles.js';
2
+ import styled from '../../themes/styled.js';
3
3
  import { PixelLoader } from '../PixelLoader/PixelLoader.js';
4
+ import ButtonBasicStyle from './ButtonBasicStyles.js';
4
5
 
5
6
  const noop = () => { }; // tslint:disable-line
7
+ const StyledPixelLoader = styled(PixelLoader) `
8
+ display: inline-flex;
9
+ `;
6
10
  /** @visibleName Buttons */
7
11
  const Button = (props) => {
8
12
  const { children, className, fullWidth, small, loading = false, darkBg, onClick, onMouseDown, disabled = false, 'data-testid': dataTestId, 'data-no-close': dataNoClose, 'data-track-value': dataTrackValue, type, } = props;
@@ -12,7 +16,7 @@ const Button = (props) => {
12
16
  // https://github.com/styled-components/styled-components/pull/2093
13
17
  loading: loading ? loading.toString() : undefined, darkBg: darkBg, disabled: disabled, onClick: !disabled || !loading ? onClick : noop, onMouseDown: (!disabled || !loading) && onMouseDown ? onMouseDown : noop, className: className, "data-testid": dataTestId, "data-no-close": dataNoClose, "data-track-value": dataTrackValue, type: type },
14
18
  !loading && (React.createElement("span", { "data-testid": dataTestId && `${dataTestId}-text`, "data-no-close": dataNoClose }, children)),
15
- loading && React.createElement(PixelLoader, null)));
19
+ loading && React.createElement(StyledPixelLoader, null)));
16
20
  };
17
21
 
18
22
  export default Button;
@@ -1,17 +1,24 @@
1
1
  import React from 'react';
2
- import ButtonIconStyles from './ButtonIconStyles.js';
3
2
  import Icon from '../Icon/Icon.js';
3
+ import ButtonIconStyles from './ButtonIconStyles.js';
4
4
 
5
5
  const noop = () => { }; // tslint:disable-line
6
6
  /** @visibleName Icon Button */
7
7
  const ButtonIcon = (props) => {
8
8
  const { children, fullWidth, small, loading = false, darkBg, onClick, onMouseDown, disabled = false, className, icon, showTextMobile = true, 'data-testid': dataTestId, 'data-no-close': dataNoClose, 'data-track-value': dataTrackValue, type, } = props;
9
+ // TODO: Remove once https://jira.dna.fi/browse/STYLE-334 is done
10
+ const renderIcon = () => {
11
+ if (typeof icon === 'string') {
12
+ return (React.createElement(Icon, { name: icon, size: small ? '1.25rem' : '1.5rem', "data-testid": dataTestId && `${dataTestId}-icon`, "data-no-close": dataNoClose }));
13
+ }
14
+ return (React.createElement(Icon, { icon: icon, size: small ? '1.25rem' : '1.5rem', "data-testid": dataTestId && `${dataTestId}-icon`, "data-no-close": dataNoClose }));
15
+ };
9
16
  return (React.createElement(ButtonIconStyles, { fullWidth: fullWidth, small: small,
10
17
  // There is an issue related to styled-components: react warning: Received `true` for a non-boolean attribute 'loading'.
11
18
  // If you want to write it to the DOM, pass a string instead: loading="true"
12
19
  // https://github.com/styled-components/styled-components/pull/2093
13
20
  darkBg: darkBg, disabled: disabled, onClick: !disabled || !loading ? onClick : noop, onMouseDown: (!disabled || !loading) && onMouseDown ? onMouseDown : noop, className: className, showTextMobile: showTextMobile, "data-testid": dataTestId, "data-no-close": dataNoClose, "data-track-value": dataTrackValue, type: type }, !loading && (React.createElement(React.Fragment, null,
14
- React.createElement(Icon, { name: icon, size: "100%", "data-testid": dataTestId && `${dataTestId}-icon`, "data-no-close": dataNoClose }),
21
+ renderIcon(),
15
22
  React.createElement("span", { "data-testid": dataTestId && `${dataTestId}-text`, "data-no-close": dataNoClose }, children)))));
16
23
  };
17
24
 
@@ -1,17 +1,24 @@
1
1
  import React from 'react';
2
- import ButtonIconPrimaryStyles from './ButtonIconPrimaryStyles.js';
3
2
  import Icon from '../Icon/Icon.js';
3
+ import ButtonIconPrimaryStyles from './ButtonIconPrimaryStyles.js';
4
4
 
5
5
  const noop = () => { }; // tslint:disable-line
6
6
  /** @visibleName Icon Button Primary */
7
7
  const ButtonIconPrimary = (props) => {
8
8
  const { children, fullWidth, small, loading = false, darkBg, onClick, onMouseDown, disabled = false, className, icon, showTextMobile = true, 'data-testid': dataTestId, 'data-no-close': dataNoClose, 'data-track-value': dataTrackValue, type, } = props;
9
+ // TODO: Remove once https://jira.dna.fi/browse/STYLE-334 is done
10
+ const renderIcon = () => {
11
+ if (typeof icon === 'string') {
12
+ return (React.createElement(Icon, { name: icon, size: small ? '1.25rem' : '1.5rem', "data-testid": dataTestId && `${dataTestId}-icon`, "data-no-close": dataNoClose }));
13
+ }
14
+ return (React.createElement(Icon, { icon: icon, size: small ? '1.25rem' : '1.5rem', "data-testid": dataTestId && `${dataTestId}-icon`, "data-no-close": dataNoClose }));
15
+ };
9
16
  return (React.createElement(ButtonIconPrimaryStyles, { fullWidth: fullWidth, small: small,
10
17
  // There is an issue related to styled-components: react warning: Received `true` for a non-boolean attribute 'loading'.
11
18
  // If you want to write it to the DOM, pass a string instead: loading="true"
12
19
  // https://github.com/styled-components/styled-components/pull/2093
13
20
  darkBg: darkBg, disabled: disabled, onClick: !disabled || !loading ? onClick : noop, onMouseDown: (!disabled || !loading) && onMouseDown ? onMouseDown : noop, className: className, showTextMobile: showTextMobile, "data-testid": dataTestId, "data-no-close": dataNoClose, "data-track-value": dataTrackValue, type: type }, !loading && (React.createElement(React.Fragment, null,
14
- React.createElement(Icon, { name: icon, size: "100%", "data-testid": dataTestId && `${dataTestId}-icon`, "data-no-close": dataNoClose }),
21
+ renderIcon(),
15
22
  React.createElement("span", { "data-testid": dataTestId && `${dataTestId}-text`, "data-no-close": dataNoClose }, children)))));
16
23
  };
17
24
 
@@ -11,12 +11,7 @@ declare const ButtonIconPrimaryStyles: import("styled-components").StyledCompone
11
11
  };
12
12
  breakpoints: import("../../themes/themeComponents/breakpoints").ViewBreakpoints;
13
13
  button: {
14
- buttonBorderWidth: string;
15
- buttonPadding: string;
16
- smallButtonPadding: string;
17
- buttonLineHeight: string;
18
- buttonWidth: string;
19
- buttonSmallWidth: string;
14
+ border: string;
20
15
  };
21
16
  color: {
22
17
  black: string;
@@ -47,22 +42,27 @@ declare const ButtonIconPrimaryStyles: import("styled-components").StyledCompone
47
42
  gray5: string;
48
43
  };
49
44
  fontFamily: {
50
- baseFontFamily: string;
45
+ default: string;
46
+ heading: string;
47
+ numerals: string;
51
48
  };
52
49
  fontSize: {
53
- defaultFontSize: string;
54
- smallFontSize: string;
55
- extraSmallFontSize: string;
56
- xsFontSize: string;
57
- xxsFontSize: string;
58
- h1FontSize: string;
59
- h2FontSize: string;
60
- h2MobileFontSize: string;
61
- h3FontSize: string;
62
- h4FontSize: string;
63
- h5FontSize: string;
64
- heroBannerTitleFontSize: string;
65
- heroBannerTitleMobileFontSize: string;
50
+ default: string;
51
+ xl: string;
52
+ l: string;
53
+ s: string;
54
+ xs: string;
55
+ h1XL: string;
56
+ h1L: string;
57
+ h1M: string;
58
+ h1S: string;
59
+ h2M: string;
60
+ h2S: string;
61
+ h3: string;
62
+ h4: string;
63
+ h5: string;
64
+ h1: string;
65
+ h2: string;
66
66
  };
67
67
  fontWeight: {
68
68
  book: number;
@@ -78,16 +78,23 @@ declare const ButtonIconPrimaryStyles: import("styled-components").StyledCompone
78
78
  gutter: string;
79
79
  };
80
80
  lineHeight: {
81
- defaultLineHeight: string;
82
- paragraphLineHeight: string;
83
- heroBannerLineHeight: string;
84
- heroBannerMobileLineHeight: string;
85
- h1LineHeight: string;
86
- h2LineHeight: string;
87
- h2MobileLineHeight: string;
88
- h3LineHeight: string;
89
- h4LineHeight: string;
90
- h5LineHeight: string;
81
+ default: string;
82
+ xl: string;
83
+ s: string;
84
+ xs: string;
85
+ xxs: string;
86
+ auto: string;
87
+ h1XL: string;
88
+ h1L: string;
89
+ h1M: string;
90
+ h1S: string;
91
+ h2M: string;
92
+ h2S: string;
93
+ h3: string;
94
+ h4: string;
95
+ h5: string;
96
+ h1: string;
97
+ h2: string;
91
98
  };
92
99
  media: Record<string | number, (l: TemplateStringsArray, ...p: any[]) => string>;
93
100
  }, import("./ButtonBasicStyles").ButtonProps & {
@@ -11,12 +11,7 @@ declare const ButtonIconStyles: import("styled-components").StyledComponent<"but
11
11
  };
12
12
  breakpoints: import("../../themes/themeComponents/breakpoints").ViewBreakpoints;
13
13
  button: {
14
- buttonBorderWidth: string;
15
- buttonPadding: string;
16
- smallButtonPadding: string;
17
- buttonLineHeight: string;
18
- buttonWidth: string;
19
- buttonSmallWidth: string;
14
+ border: string;
20
15
  };
21
16
  color: {
22
17
  black: string;
@@ -47,22 +42,27 @@ declare const ButtonIconStyles: import("styled-components").StyledComponent<"but
47
42
  gray5: string;
48
43
  };
49
44
  fontFamily: {
50
- baseFontFamily: string;
45
+ default: string;
46
+ heading: string;
47
+ numerals: string;
51
48
  };
52
49
  fontSize: {
53
- defaultFontSize: string;
54
- smallFontSize: string;
55
- extraSmallFontSize: string;
56
- xsFontSize: string;
57
- xxsFontSize: string;
58
- h1FontSize: string;
59
- h2FontSize: string;
60
- h2MobileFontSize: string;
61
- h3FontSize: string;
62
- h4FontSize: string;
63
- h5FontSize: string;
64
- heroBannerTitleFontSize: string;
65
- heroBannerTitleMobileFontSize: string;
50
+ default: string;
51
+ xl: string;
52
+ l: string;
53
+ s: string;
54
+ xs: string;
55
+ h1XL: string;
56
+ h1L: string;
57
+ h1M: string;
58
+ h1S: string;
59
+ h2M: string;
60
+ h2S: string;
61
+ h3: string;
62
+ h4: string;
63
+ h5: string;
64
+ h1: string;
65
+ h2: string;
66
66
  };
67
67
  fontWeight: {
68
68
  book: number;
@@ -78,16 +78,23 @@ declare const ButtonIconStyles: import("styled-components").StyledComponent<"but
78
78
  gutter: string;
79
79
  };
80
80
  lineHeight: {
81
- defaultLineHeight: string;
82
- paragraphLineHeight: string;
83
- heroBannerLineHeight: string;
84
- heroBannerMobileLineHeight: string;
85
- h1LineHeight: string;
86
- h2LineHeight: string;
87
- h2MobileLineHeight: string;
88
- h3LineHeight: string;
89
- h4LineHeight: string;
90
- h5LineHeight: string;
81
+ default: string;
82
+ xl: string;
83
+ s: string;
84
+ xs: string;
85
+ xxs: string;
86
+ auto: string;
87
+ h1XL: string;
88
+ h1L: string;
89
+ h1M: string;
90
+ h1S: string;
91
+ h2M: string;
92
+ h2S: string;
93
+ h3: string;
94
+ h4: string;
95
+ h5: string;
96
+ h1: string;
97
+ h2: string;
91
98
  };
92
99
  media: Record<string | number, (l: TemplateStringsArray, ...p: any[]) => string>;
93
100
  }, import("./ButtonBasicStyles").ButtonProps & {
@@ -1,6 +1,6 @@
1
1
  import styled from '../../themes/styled.js';
2
- import ButtonBasicStyle from './ButtonBasicStyles.js';
3
2
  import { media } from '../../utils/styledUtils.js';
3
+ import ButtonBasicStyle from './ButtonBasicStyles.js';
4
4
 
5
5
  const ButtonIconStyles = styled(ButtonBasicStyle) `
6
6
  border: none;
@@ -19,11 +19,7 @@ const ButtonIconStyles = styled(ButtonBasicStyle) `
19
19
  &:disabled {
20
20
  background: none;
21
21
  }
22
- svg {
23
- height: ${p => (p.small ? '1.25em' : '1.5em')};
24
- width: ${p => (p.small ? '1.25em' : '1.5em')};
25
- }
26
- span {
22
+ span.dnasg-icon + span {
27
23
  margin-left: 0.5rem;
28
24
  display: ${({ showTextMobile }) => (showTextMobile ? 'block' : 'none')};
29
25
  ${media.sm `
@@ -1,8 +1,12 @@
1
1
  import React from 'react';
2
- import ButtonPrimaryStyles from './ButtonPrimaryStyles.js';
2
+ import styled from '../../themes/styled.js';
3
3
  import { PixelLoader } from '../PixelLoader/PixelLoader.js';
4
+ import ButtonPrimaryStyles from './ButtonPrimaryStyles.js';
4
5
 
5
6
  const noop = () => { }; // tslint:disable-line
7
+ const StyledPixelLoader = styled(PixelLoader) `
8
+ display: inline-flex;
9
+ `;
6
10
  /** @visibleName Button primary */
7
11
  const ButtonPrimary = (props) => {
8
12
  const { children, fullWidth, small, loading = false, darkBg, onClick, onMouseDown, disabled = false, className, 'data-testid': dataTestId, 'data-no-close': dataNoClose, 'data-track-value': dataTrackValue, type, } = props;
@@ -12,7 +16,7 @@ const ButtonPrimary = (props) => {
12
16
  // https://github.com/styled-components/styled-components/pull/2093
13
17
  loading: loading ? loading.toString() : undefined, darkBg: darkBg, disabled: disabled, onClick: !disabled || !loading ? onClick : noop, onMouseDown: (!disabled || !loading) && onMouseDown ? onMouseDown : noop, className: className, "data-testid": dataTestId, "data-no-close": dataNoClose, "data-track-value": dataTrackValue, type: type },
14
18
  !loading && (React.createElement("span", { "data-testid": dataTestId && `${dataTestId}-text`, "data-no-close": dataNoClose }, children)),
15
- loading && React.createElement(PixelLoader, null)));
19
+ loading && React.createElement(StyledPixelLoader, null)));
16
20
  };
17
21
 
18
22
  export default ButtonPrimary;
@@ -11,12 +11,7 @@ declare const ButtonPrimaryStyles: import("styled-components").StyledComponent<"
11
11
  };
12
12
  breakpoints: import("../../themes/themeComponents/breakpoints").ViewBreakpoints;
13
13
  button: {
14
- buttonBorderWidth: string;
15
- buttonPadding: string;
16
- smallButtonPadding: string;
17
- buttonLineHeight: string;
18
- buttonWidth: string;
19
- buttonSmallWidth: string;
14
+ border: string;
20
15
  };
21
16
  color: {
22
17
  black: string;
@@ -47,22 +42,27 @@ declare const ButtonPrimaryStyles: import("styled-components").StyledComponent<"
47
42
  gray5: string;
48
43
  };
49
44
  fontFamily: {
50
- baseFontFamily: string;
45
+ default: string;
46
+ heading: string;
47
+ numerals: string;
51
48
  };
52
49
  fontSize: {
53
- defaultFontSize: string;
54
- smallFontSize: string;
55
- extraSmallFontSize: string;
56
- xsFontSize: string;
57
- xxsFontSize: string;
58
- h1FontSize: string;
59
- h2FontSize: string;
60
- h2MobileFontSize: string;
61
- h3FontSize: string;
62
- h4FontSize: string;
63
- h5FontSize: string;
64
- heroBannerTitleFontSize: string;
65
- heroBannerTitleMobileFontSize: string;
50
+ default: string;
51
+ xl: string;
52
+ l: string;
53
+ s: string;
54
+ xs: string;
55
+ h1XL: string;
56
+ h1L: string;
57
+ h1M: string;
58
+ h1S: string;
59
+ h2M: string;
60
+ h2S: string;
61
+ h3: string;
62
+ h4: string;
63
+ h5: string;
64
+ h1: string;
65
+ h2: string;
66
66
  };
67
67
  fontWeight: {
68
68
  book: number;
@@ -78,16 +78,23 @@ declare const ButtonPrimaryStyles: import("styled-components").StyledComponent<"
78
78
  gutter: string;
79
79
  };
80
80
  lineHeight: {
81
- defaultLineHeight: string;
82
- paragraphLineHeight: string;
83
- heroBannerLineHeight: string;
84
- heroBannerMobileLineHeight: string;
85
- h1LineHeight: string;
86
- h2LineHeight: string;
87
- h2MobileLineHeight: string;
88
- h3LineHeight: string;
89
- h4LineHeight: string;
90
- h5LineHeight: string;
81
+ default: string;
82
+ xl: string;
83
+ s: string;
84
+ xs: string;
85
+ xxs: string;
86
+ auto: string;
87
+ h1XL: string;
88
+ h1L: string;
89
+ h1M: string;
90
+ h1S: string;
91
+ h2M: string;
92
+ h2S: string;
93
+ h3: string;
94
+ h4: string;
95
+ h5: string;
96
+ h1: string;
97
+ h2: string;
91
98
  };
92
99
  media: Record<string | number, (l: TemplateStringsArray, ...p: any[]) => string>;
93
100
  }, import("./ButtonBasicStyles").ButtonProps, never>;
@@ -1,9 +1,13 @@
1
1
  import React from 'react';
2
- import ButtonSecondaryStyles from './ButtonSecondaryStyles.js';
3
- import { PixelLoader } from '../PixelLoader/PixelLoader.js';
2
+ import styled from '../../themes/styled.js';
4
3
  import theme from '../../themes/theme.js';
4
+ import { PixelLoader } from '../PixelLoader/PixelLoader.js';
5
+ import ButtonSecondaryStyles from './ButtonSecondaryStyles.js';
5
6
 
6
7
  const noop = () => { }; // tslint:disable-line
8
+ const StyledPixelLoader = styled(PixelLoader) `
9
+ display: inline-flex;
10
+ `;
7
11
  /** @visibleName Button secondary */
8
12
  const ButtonSecondary = (props) => {
9
13
  const { children, className, fullWidth, small, loading = false, darkBg, onClick, onMouseDown, disabled = false, 'data-testid': dataTestId, 'data-no-close': dataNoClose, 'data-track-value': dataTrackValue, type, } = props;
@@ -13,7 +17,7 @@ const ButtonSecondary = (props) => {
13
17
  // https://github.com/styled-components/styled-components/pull/2093
14
18
  loading: loading ? loading.toString() : undefined, darkBg: darkBg, disabled: disabled, onClick: !disabled || !loading ? onClick : noop, onMouseDown: (!disabled || !loading) && onMouseDown ? onMouseDown : noop, className: className, "data-testid": dataTestId, "data-no-close": dataNoClose, "data-track-value": dataTrackValue, type: type },
15
19
  !loading && (React.createElement("span", { "data-testid": dataTestId && `${dataTestId}-text`, "data-no-close": dataNoClose }, children)),
16
- loading && React.createElement(PixelLoader, { color: darkBg ? theme.color.white : theme.color.hotPink })));
20
+ loading && (React.createElement(StyledPixelLoader, { color: darkBg ? theme.color.white : theme.color.hotPink }))));
17
21
  };
18
22
 
19
23
  export default ButtonSecondary;