@dnanpm/styleguide 3.7.2 → 3.8.2

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 (262) hide show
  1. package/README.md +29 -22
  2. package/build/cjs/components/Accordion/Accordion.js +7 -12
  3. package/build/cjs/components/AccordionItem/AccordionItem.js +30 -35
  4. package/build/cjs/components/AmountSelector/AmountSelector.js +25 -29
  5. package/build/cjs/components/Box/Box.js +8 -13
  6. package/build/cjs/components/Button/Button.js +28 -33
  7. package/build/cjs/components/Button/ButtonArrow.js +16 -21
  8. package/build/cjs/components/Button/ButtonClose.js +4 -8
  9. package/build/cjs/components/Button/ButtonIcon.js +17 -22
  10. package/build/cjs/components/Button/ButtonPrimary.js +13 -17
  11. package/build/cjs/components/Button/ButtonRound.js +6 -11
  12. package/build/cjs/components/Button/ButtonSecondary.js +13 -17
  13. package/build/cjs/components/Carousel/Carousel.d.ts +1 -1
  14. package/build/cjs/components/Carousel/Carousel.js +43 -47
  15. package/build/cjs/components/Checkbox/Checkbox.js +23 -27
  16. package/build/cjs/components/Chip/Chip.js +11 -16
  17. package/build/cjs/components/DateTimePicker/DateTimePicker.js +76 -82
  18. package/build/cjs/components/Divider/Divider.js +5 -10
  19. package/build/cjs/components/DnaLogo/DnaLogo.js +14 -18
  20. package/build/cjs/components/Drawer/Drawer.js +47 -52
  21. package/build/cjs/components/EmptyState/EmptyState.js +8 -12
  22. package/build/cjs/components/Expander/Expander.js +13 -17
  23. package/build/cjs/components/Floater/Floater.js +3 -8
  24. package/build/cjs/components/Footer/Components/FooterComponents.js +58 -64
  25. package/build/cjs/components/Footer/Footer.js +63 -67
  26. package/build/cjs/components/Footer/context/FooterContext.js +2 -2
  27. package/build/cjs/components/Icon/Icon.js +9 -13
  28. package/build/cjs/components/Icons/Small/hlArrowBackSmall.js +3 -7
  29. package/build/cjs/components/Icons/Small/hlArrowForwardSmall.js +3 -7
  30. package/build/cjs/components/Icons/Small/hlArrowUnderSmall.js +3 -7
  31. package/build/cjs/components/Icons/Small/hlCalendarSmall.js +3 -7
  32. package/build/cjs/components/Icons/Small/hlChevronDownSmall.js +3 -7
  33. package/build/cjs/components/Icons/Small/hlChevronLeftSmall.js +3 -7
  34. package/build/cjs/components/Icons/Small/hlChevronRightSmall.js +3 -7
  35. package/build/cjs/components/Icons/Small/hlChevronUpSmall.js +3 -7
  36. package/build/cjs/components/Icons/Small/hlClockSmall.js +4 -8
  37. package/build/cjs/components/Icons/Small/hlDownloadSmall.js +5 -9
  38. package/build/cjs/components/Icons/Small/hlExternalSmall.js +3 -7
  39. package/build/cjs/components/Icons/Small/hlUploadSmall.js +5 -9
  40. package/build/cjs/components/Icons/Social/facebook.js +3 -7
  41. package/build/cjs/components/Icons/Social/instagram.js +3 -7
  42. package/build/cjs/components/Icons/Social/linkedin.js +3 -7
  43. package/build/cjs/components/Icons/Social/tiktok.js +3 -7
  44. package/build/cjs/components/Icons/Social/twitter.js +3 -7
  45. package/build/cjs/components/Icons/Social/youtube.js +3 -7
  46. package/build/cjs/components/Icons/hl404.js +3 -7
  47. package/build/cjs/components/Icons/hl4gSim.js +3 -7
  48. package/build/cjs/components/Icons/hl5gSim.js +3 -7
  49. package/build/cjs/components/Icons/hlBattery.js +5 -9
  50. package/build/cjs/components/Icons/hlBell.js +3 -7
  51. package/build/cjs/components/Icons/hlCableTVCard.js +3 -7
  52. package/build/cjs/components/Icons/hlCalendar.js +14 -18
  53. package/build/cjs/components/Icons/hlCall.js +3 -7
  54. package/build/cjs/components/Icons/hlCameraBack.js +5 -9
  55. package/build/cjs/components/Icons/hlCameraFront.js +4 -8
  56. package/build/cjs/components/Icons/hlCart.js +5 -9
  57. package/build/cjs/components/Icons/hlCartEmpty.js +5 -9
  58. package/build/cjs/components/Icons/hlChat.js +6 -10
  59. package/build/cjs/components/Icons/hlCheck.js +3 -7
  60. package/build/cjs/components/Icons/hlChevronDown.js +3 -7
  61. package/build/cjs/components/Icons/hlChevronLeft.js +3 -7
  62. package/build/cjs/components/Icons/hlChevronRight.js +3 -7
  63. package/build/cjs/components/Icons/hlChevronUp.js +3 -7
  64. package/build/cjs/components/Icons/hlCompensation.js +3 -7
  65. package/build/cjs/components/Icons/hlCookie.js +3 -7
  66. package/build/cjs/components/Icons/hlCopy.js +4 -8
  67. package/build/cjs/components/Icons/hlCoupon.js +5 -9
  68. package/build/cjs/components/Icons/hlDelivery.js +3 -7
  69. package/build/cjs/components/Icons/hlDigiturva.js +3 -7
  70. package/build/cjs/components/Icons/hlDisplaySize.js +5 -9
  71. package/build/cjs/components/Icons/hlDocument.js +4 -8
  72. package/build/cjs/components/Icons/hlDownload.js +5 -9
  73. package/build/cjs/components/Icons/hlEnvelope.js +3 -7
  74. package/build/cjs/components/Icons/hlError.js +5 -9
  75. package/build/cjs/components/Icons/hlEuro.js +3 -7
  76. package/build/cjs/components/Icons/hlExclamationMark.js +3 -7
  77. package/build/cjs/components/Icons/hlExpand.js +3 -7
  78. package/build/cjs/components/Icons/hlExternal.js +3 -7
  79. package/build/cjs/components/Icons/hlEyeClosed.js +3 -7
  80. package/build/cjs/components/Icons/hlEyeOpen.js +4 -8
  81. package/build/cjs/components/Icons/hlFaceId.js +3 -7
  82. package/build/cjs/components/Icons/hlFastDelivery.js +3 -7
  83. package/build/cjs/components/Icons/hlFingerprint.js +7 -11
  84. package/build/cjs/components/Icons/hlGlobe.js +3 -7
  85. package/build/cjs/components/Icons/hlHeadphones.js +3 -7
  86. package/build/cjs/components/Icons/hlHeadset.js +5 -9
  87. package/build/cjs/components/Icons/hlHeart.js +3 -7
  88. package/build/cjs/components/Icons/hlHome.js +3 -7
  89. package/build/cjs/components/Icons/hlHub.js +4 -8
  90. package/build/cjs/components/Icons/hlImage.js +3 -7
  91. package/build/cjs/components/Icons/hlInfo.js +5 -9
  92. package/build/cjs/components/Icons/hlInstallment.js +4 -8
  93. package/build/cjs/components/Icons/hlIotSim.js +4 -8
  94. package/build/cjs/components/Icons/hlLaptop.js +3 -7
  95. package/build/cjs/components/Icons/hlLink.js +4 -8
  96. package/build/cjs/components/Icons/hlLiveVideo.js +3 -7
  97. package/build/cjs/components/Icons/hlLock.js +5 -9
  98. package/build/cjs/components/Icons/hlMagnifyingGlass.js +4 -8
  99. package/build/cjs/components/Icons/hlMarker.js +4 -8
  100. package/build/cjs/components/Icons/hlMemory.js +4 -8
  101. package/build/cjs/components/Icons/hlMenu.js +3 -7
  102. package/build/cjs/components/Icons/hlMinimize.js +3 -7
  103. package/build/cjs/components/Icons/hlMinus.js +3 -7
  104. package/build/cjs/components/Icons/hlMobileData.js +3 -7
  105. package/build/cjs/components/Icons/hlMobilePayment.js +5 -9
  106. package/build/cjs/components/Icons/hlModem.js +7 -11
  107. package/build/cjs/components/Icons/hlMore.js +5 -9
  108. package/build/cjs/components/Icons/hlOs.js +4 -8
  109. package/build/cjs/components/Icons/hlPackage.js +3 -7
  110. package/build/cjs/components/Icons/hlPaperclip.js +3 -7
  111. package/build/cjs/components/Icons/hlPaytime.js +3 -7
  112. package/build/cjs/components/Icons/hlPen.js +3 -7
  113. package/build/cjs/components/Icons/hlPerson.js +3 -7
  114. package/build/cjs/components/Icons/hlPhone.js +4 -8
  115. package/build/cjs/components/Icons/hlPlaylist.js +3 -7
  116. package/build/cjs/components/Icons/hlPlus.js +4 -8
  117. package/build/cjs/components/Icons/hlPrepaid.js +3 -7
  118. package/build/cjs/components/Icons/hlProcessor.js +4 -8
  119. package/build/cjs/components/Icons/hlServices.js +3 -7
  120. package/build/cjs/components/Icons/hlSettings.js +3 -7
  121. package/build/cjs/components/Icons/hlShield.js +4 -8
  122. package/build/cjs/components/Icons/hlSim.js +4 -8
  123. package/build/cjs/components/Icons/hlSimSimple.js +5 -9
  124. package/build/cjs/components/Icons/hlSmile.js +6 -10
  125. package/build/cjs/components/Icons/hlSpeechBubble.js +4 -8
  126. package/build/cjs/components/Icons/hlSquaretrade.js +3 -7
  127. package/build/cjs/components/Icons/hlStar.js +3 -7
  128. package/build/cjs/components/Icons/hlStarFilled.js +3 -7
  129. package/build/cjs/components/Icons/hlTrash.js +4 -8
  130. package/build/cjs/components/Icons/hlTv.js +3 -7
  131. package/build/cjs/components/Icons/hlUnlock.js +4 -8
  132. package/build/cjs/components/Icons/hlUpload.js +5 -9
  133. package/build/cjs/components/Icons/hlWarning.js +5 -9
  134. package/build/cjs/components/Icons/hlWifi.js +5 -9
  135. package/build/cjs/components/Icons/hlWrench.js +3 -7
  136. package/build/cjs/components/Icons/hlX.js +3 -7
  137. package/build/cjs/components/Icons/index.js +109 -111
  138. package/build/cjs/components/InfoDialog/InfoDialog.js +18 -22
  139. package/build/cjs/components/Input/Input.js +44 -48
  140. package/build/cjs/components/Label/Label.js +14 -18
  141. package/build/cjs/components/LabelText/LabelText.js +11 -15
  142. package/build/cjs/components/MainHeaderNavigation/ChildComponents/BusinessMenu.js +23 -27
  143. package/build/cjs/components/MainHeaderNavigation/ChildComponents/DesktopMenu.js +59 -63
  144. package/build/cjs/components/MainHeaderNavigation/ChildComponents/LanguageSelector.js +11 -15
  145. package/build/cjs/components/MainHeaderNavigation/ChildComponents/LinkModifier.js +6 -10
  146. package/build/cjs/components/MainHeaderNavigation/ChildComponents/LoginTooltip.js +5 -9
  147. package/build/cjs/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenu.d.ts +4 -4
  148. package/build/cjs/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenu.js +28 -30
  149. package/build/cjs/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +2 -2
  150. package/build/cjs/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.js +11 -11
  151. package/build/cjs/components/MainHeaderNavigation/ChildComponents/MinicartTooltip.d.ts +3 -2
  152. package/build/cjs/components/MainHeaderNavigation/ChildComponents/MinicartTooltip.js +9 -11
  153. package/build/cjs/components/MainHeaderNavigation/ChildComponents/MobileMenu.js +50 -54
  154. package/build/cjs/components/MainHeaderNavigation/ChildComponents/PageSearch.js +5 -9
  155. package/build/cjs/components/MainHeaderNavigation/MainHeaderNavigation.d.ts +11 -2
  156. package/build/cjs/components/MainHeaderNavigation/MainHeaderNavigation.js +41 -43
  157. package/build/cjs/components/MainHeaderNavigation/context/MobileMenuContext.js +1 -1
  158. package/build/cjs/components/MainHeaderNavigation/context/NavContext.js +1 -1
  159. package/build/cjs/components/MainHeaderNavigation/globalNavStyles.d.ts +5 -5
  160. package/build/cjs/components/MainHeaderNavigation/globalNavStyles.js +48 -50
  161. package/build/cjs/components/MainNavigation/ChildComponents/BusinessMenu.js +14 -18
  162. package/build/cjs/components/MainNavigation/ChildComponents/DesktopMenu.js +49 -53
  163. package/build/cjs/components/MainNavigation/ChildComponents/HeaderNavigationElements.d.ts +1 -1
  164. package/build/cjs/components/MainNavigation/ChildComponents/HeaderNavigationElements.js +44 -48
  165. package/build/cjs/components/MainNavigation/ChildComponents/LanguageSelector.js +11 -15
  166. package/build/cjs/components/MainNavigation/ChildComponents/LinkModifier.js +7 -11
  167. package/build/cjs/components/MainNavigation/ChildComponents/LoginTooltip.js +5 -9
  168. package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenu.js +21 -25
  169. package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +1 -1
  170. package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.js +7 -7
  171. package/build/cjs/components/MainNavigation/ChildComponents/MinicartTooltip.js +6 -10
  172. package/build/cjs/components/MainNavigation/ChildComponents/MobileMenu.js +52 -56
  173. package/build/cjs/components/MainNavigation/ChildComponents/PageSearch.js +5 -9
  174. package/build/cjs/components/MainNavigation/ChildComponents/Ribbon.js +20 -24
  175. package/build/cjs/components/MainNavigation/MainNavigation.js +20 -24
  176. package/build/cjs/components/MainNavigation/context/MobileMenuContext.js +1 -1
  177. package/build/cjs/components/MainNavigation/context/NavContext.js +1 -1
  178. package/build/cjs/components/MainNavigation/globalNavStyles.d.ts +5 -5
  179. package/build/cjs/components/MainNavigation/globalNavStyles.js +12 -14
  180. package/build/cjs/components/Modal/Modal.js +20 -25
  181. package/build/cjs/components/Notification/Notification.js +17 -22
  182. package/build/cjs/components/NotificationBadge/NotificationBadge.js +8 -12
  183. package/build/cjs/components/Overlay/Overlay.d.ts +49 -0
  184. package/build/cjs/components/Overlay/Overlay.js +80 -0
  185. package/build/cjs/components/Pill/Pill.js +19 -24
  186. package/build/cjs/components/PixelLoader/PixelLoader.js +9 -13
  187. package/build/cjs/components/PriorityNavigation/PriorityNavigation.d.ts +10 -0
  188. package/build/cjs/components/PriorityNavigation/PriorityNavigation.js +84 -53
  189. package/build/cjs/components/PriorityNavigationItem/PriorityNavigationItem.js +20 -15
  190. package/build/cjs/components/ProgressIndicator/ProgressIndicator.js +30 -34
  191. package/build/cjs/components/RadioButton/RadioButton.js +11 -15
  192. package/build/cjs/components/ReadMore/ReadMore.js +14 -17
  193. package/build/cjs/components/Search/Search.js +16 -20
  194. package/build/cjs/components/SecondaryNavigation/SecondaryNavigation.js +53 -57
  195. package/build/cjs/components/Selectbox/Selectbox.js +44 -49
  196. package/build/cjs/components/Switch/Switch.js +18 -19
  197. package/build/cjs/components/Tab/Tab.js +29 -33
  198. package/build/cjs/components/Tabs/Tabs.js +15 -19
  199. package/build/cjs/components/Textarea/Textarea.js +29 -33
  200. package/build/cjs/components/Toaster/Toaster.js +19 -24
  201. package/build/cjs/components/Tooltip/Tooltip.js +21 -25
  202. package/build/cjs/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.js +2 -4
  203. package/build/cjs/components/TooltipMenu/TooltipMenu.js +20 -24
  204. package/build/cjs/components/index.d.ts +1 -0
  205. package/build/cjs/hooks/useCloseOutsideOrElementClicked.js +1 -1
  206. package/build/cjs/hooks/useDebounce.js +1 -1
  207. package/build/cjs/hooks/useDocHeight.js +2 -2
  208. package/build/cjs/hooks/useOutsideClick.js +1 -1
  209. package/build/cjs/hooks/useResizeObserver.d.ts +1 -1
  210. package/build/cjs/hooks/useResizeObserver.js +1 -1
  211. package/build/cjs/hooks/useScrollPosition.d.ts +3 -1
  212. package/build/cjs/hooks/useScrollPosition.js +1 -1
  213. package/build/cjs/hooks/useWindowSize.js +1 -1
  214. package/build/cjs/index.js +164 -164
  215. package/build/cjs/themes/globalStyles.js +78 -80
  216. package/build/cjs/themes/gridTheme.js +1 -1
  217. package/build/cjs/themes/styled.js +2 -2
  218. package/build/cjs/themes/theme.js +11 -11
  219. package/build/cjs/themes/themeComponents/base.js +2 -2
  220. package/build/cjs/themes/themeComponents/breakpoints.js +1 -1
  221. package/build/cjs/themes/themeComponents/color.js +1 -1
  222. package/build/cjs/themes/themeComponents/fontFamily.js +1 -1
  223. package/build/cjs/themes/themeComponents/fontSize.js +14 -14
  224. package/build/cjs/themes/themeComponents/fontWeight.js +1 -1
  225. package/build/cjs/themes/themeComponents/forms.js +2 -2
  226. package/build/cjs/themes/themeComponents/lineHeight.js +14 -14
  227. package/build/cjs/themes/themeComponents/navigation.js +1 -1
  228. package/build/cjs/themes/themeComponents/radius.js +1 -1
  229. package/build/cjs/utils/common.d.ts +1 -1
  230. package/build/cjs/utils/common.js +4 -4
  231. package/build/cjs/utils/createStyled.d.ts +2 -163
  232. package/build/cjs/utils/createStyled.js +4 -5
  233. package/build/cjs/utils/styledUtils.js +2 -4
  234. package/build/es/components/Carousel/Carousel.d.ts +1 -1
  235. package/build/es/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenu.d.ts +4 -4
  236. package/build/es/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenu.js +5 -3
  237. package/build/es/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +2 -2
  238. package/build/es/components/MainHeaderNavigation/ChildComponents/MinicartTooltip.d.ts +3 -2
  239. package/build/es/components/MainHeaderNavigation/ChildComponents/MinicartTooltip.js +4 -2
  240. package/build/es/components/MainHeaderNavigation/MainHeaderNavigation.d.ts +11 -2
  241. package/build/es/components/MainHeaderNavigation/MainHeaderNavigation.js +8 -6
  242. package/build/es/components/MainHeaderNavigation/globalNavStyles.d.ts +5 -5
  243. package/build/es/components/MainNavigation/ChildComponents/HeaderNavigationElements.d.ts +1 -1
  244. package/build/es/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +1 -1
  245. package/build/es/components/MainNavigation/globalNavStyles.d.ts +5 -5
  246. package/build/es/components/Overlay/Overlay.d.ts +49 -0
  247. package/build/es/components/Overlay/Overlay.js +76 -0
  248. package/build/es/components/PriorityNavigation/PriorityNavigation.d.ts +10 -0
  249. package/build/es/components/PriorityNavigation/PriorityNavigation.js +60 -25
  250. package/build/es/components/PriorityNavigationItem/PriorityNavigationItem.js +10 -1
  251. package/build/es/components/ReadMore/ReadMore.js +1 -0
  252. package/build/es/components/index.d.ts +1 -0
  253. package/build/es/hooks/useResizeObserver.d.ts +1 -1
  254. package/build/es/hooks/useScrollPosition.d.ts +3 -1
  255. package/build/es/index.js +1 -0
  256. package/build/es/themes/themeComponents/base.js +1 -1
  257. package/build/es/themes/themeComponents/fontSize.js +13 -13
  258. package/build/es/themes/themeComponents/forms.js +1 -1
  259. package/build/es/themes/themeComponents/lineHeight.js +13 -13
  260. package/build/es/utils/common.d.ts +1 -1
  261. package/build/es/utils/createStyled.d.ts +2 -163
  262. package/package.json +49 -53
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var styledUtils = require('../utils/styledUtils.js');
6
4
  var styled = require('./styled.js');
7
5
  var theme = require('./theme.js');
@@ -17,37 +15,37 @@ const globalStyles = styled.css `
17
15
  body {
18
16
  margin: 0;
19
17
  padding: 0;
20
- font-family: ${theme["default"].fontFamily.default};
18
+ font-family: ${theme.default.fontFamily.default};
21
19
  -webkit-font-smoothing: antialiased;
22
20
  -moz-osx-font-smoothing: grayscale;
23
- font-size: ${theme["default"].fontSize.default};
24
- color: ${theme["default"].color.text.black};
21
+ font-size: ${theme.default.fontSize.default};
22
+ color: ${theme.default.color.text.black};
25
23
  }
26
24
 
27
25
  a {
28
- color: ${theme["default"].color.text.pink};
26
+ color: ${theme.default.color.text.pink};
29
27
  text-decoration: none;
30
28
  }
31
29
 
32
30
  a:hover {
33
- color: ${theme["default"].color.hover.pink};
31
+ color: ${theme.default.color.hover.pink};
34
32
  text-decoration: underline;
35
33
  cursor: pointer;
36
34
  }
37
35
 
38
36
  a:active {
39
- color: ${theme["default"].color.hover.pink};
37
+ color: ${theme.default.color.hover.pink};
40
38
  text-decoration: none;
41
39
  }
42
40
 
43
41
  b,
44
42
  strong,
45
43
  .dnasg-fw-bold {
46
- font-weight: ${theme["default"].fontWeight.bold};
44
+ font-weight: ${theme.default.fontWeight.bold};
47
45
  }
48
46
 
49
47
  .dnasg-fw-medium {
50
- font-weight: ${theme["default"].fontWeight.medium};
48
+ font-weight: ${theme.default.fontWeight.medium};
51
49
  }
52
50
 
53
51
  h1,
@@ -57,152 +55,152 @@ const globalStyles = styled.css `
57
55
  h5,
58
56
  h6 {
59
57
  margin: 1rem 0 0.5rem;
60
- font-weight: ${theme["default"].fontWeight.bold};
58
+ font-weight: ${theme.default.fontWeight.bold};
61
59
  }
62
60
 
63
61
  h1,
64
62
  .h1 {
65
- font-family: ${theme["default"].fontFamily.heading};
66
- font-size: ${theme["default"].fontSize.h1S};
67
- line-height: ${theme["default"].lineHeight.h1S};
63
+ font-family: ${theme.default.fontFamily.heading};
64
+ font-size: ${theme.default.fontSize.h1S};
65
+ line-height: ${theme.default.lineHeight.h1S};
68
66
 
69
67
  ${() => styledUtils.media.md `
70
- font-size: ${theme["default"].fontSize.h1L};
71
- line-height: ${theme["default"].lineHeight.h1L};
68
+ font-size: ${theme.default.fontSize.h1L};
69
+ line-height: ${theme.default.lineHeight.h1L};
72
70
  `}
73
71
 
74
72
  &.xl {
75
- font-size: ${theme["default"].fontSize.h1XL};
76
- line-height: ${theme["default"].lineHeight.h1XL};
77
- font-weight: ${theme["default"].fontWeight.black};
73
+ font-size: ${theme.default.fontSize.h1XL};
74
+ line-height: ${theme.default.lineHeight.h1XL};
75
+ font-weight: ${theme.default.fontWeight.black};
78
76
  }
79
77
 
80
78
  &.l {
81
- font-size: ${theme["default"].fontSize.h1L};
82
- line-height: ${theme["default"].lineHeight.h1L};
79
+ font-size: ${theme.default.fontSize.h1L};
80
+ line-height: ${theme.default.lineHeight.h1L};
83
81
  }
84
82
 
85
83
  &.m {
86
- font-size: ${theme["default"].fontSize.h1M};
87
- line-height: ${theme["default"].lineHeight.h1M};
84
+ font-size: ${theme.default.fontSize.h1M};
85
+ line-height: ${theme.default.lineHeight.h1M};
88
86
  }
89
87
 
90
88
  &.s {
91
- font-size: ${theme["default"].fontSize.h1S};
92
- line-height: ${theme["default"].lineHeight.h1S};
89
+ font-size: ${theme.default.fontSize.h1S};
90
+ line-height: ${theme.default.lineHeight.h1S};
93
91
  }
94
92
  }
95
93
 
96
94
  h2,
97
95
  .h2 {
98
- font-family: ${theme["default"].fontFamily.heading};
99
- font-size: ${theme["default"].fontSize.h2S};
100
- line-height: ${theme["default"].lineHeight.h2S};
96
+ font-family: ${theme.default.fontFamily.heading};
97
+ font-size: ${theme.default.fontSize.h2S};
98
+ line-height: ${theme.default.lineHeight.h2S};
101
99
 
102
100
  ${() => styledUtils.media.md `
103
- font-size: ${theme["default"].fontSize.h2M};
104
- line-height: ${theme["default"].lineHeight.h2M};
101
+ font-size: ${theme.default.fontSize.h2M};
102
+ line-height: ${theme.default.lineHeight.h2M};
105
103
  `};
106
104
 
107
105
  &.m {
108
- font-size: ${theme["default"].fontSize.h2M};
109
- line-height: ${theme["default"].lineHeight.h2M};
106
+ font-size: ${theme.default.fontSize.h2M};
107
+ line-height: ${theme.default.lineHeight.h2M};
110
108
  }
111
109
 
112
110
  &.s {
113
- font-size: ${theme["default"].fontSize.h2S};
114
- line-height: ${theme["default"].lineHeight.h2S};
111
+ font-size: ${theme.default.fontSize.h2S};
112
+ line-height: ${theme.default.lineHeight.h2S};
115
113
  }
116
114
  }
117
115
 
118
116
  h3,
119
117
  .h3 {
120
- font-family: ${theme["default"].fontFamily.default};
121
- font-size: ${theme["default"].fontSize.h3};
122
- line-height: ${theme["default"].lineHeight.h3};
118
+ font-family: ${theme.default.fontFamily.default};
119
+ font-size: ${theme.default.fontSize.h3};
120
+ line-height: ${theme.default.lineHeight.h3};
123
121
  }
124
122
 
125
123
  h4,
126
124
  .h4 {
127
- font-family: ${theme["default"].fontFamily.default};
128
- font-size: ${theme["default"].fontSize.h4};
129
- line-height: ${theme["default"].lineHeight.h4};
125
+ font-family: ${theme.default.fontFamily.default};
126
+ font-size: ${theme.default.fontSize.h4};
127
+ line-height: ${theme.default.lineHeight.h4};
130
128
  }
131
129
 
132
130
  h5,
133
131
  .h5 {
134
- font-family: ${theme["default"].fontFamily.default};
135
- font-size: ${theme["default"].fontSize.h5};
136
- line-height: ${theme["default"].lineHeight.h5};
132
+ font-family: ${theme.default.fontFamily.default};
133
+ font-size: ${theme.default.fontSize.h5};
134
+ line-height: ${theme.default.lineHeight.h5};
137
135
  }
138
136
 
139
137
  p {
140
138
  margin-top: 0;
141
139
  margin-bottom: 1em;
142
- line-height: ${theme["default"].lineHeight.default};
140
+ line-height: ${theme.default.lineHeight.default};
143
141
 
144
142
  &.no-margin {
145
143
  margin-bottom: 0;
146
144
  }
147
145
 
148
146
  &.par-lead {
149
- font-size: ${theme["default"].fontSize.xl};
150
- line-height: ${theme["default"].lineHeight.xl};
147
+ font-size: ${theme.default.fontSize.xl};
148
+ line-height: ${theme.default.lineHeight.xl};
151
149
  }
152
150
 
153
151
  &.par-s {
154
- color: ${theme["default"].color.text.gray};
155
- font-size: ${theme["default"].fontSize.s};
156
- line-height: ${theme["default"].lineHeight.s};
157
- font-weight: ${theme["default"].fontWeight.medium};
152
+ color: ${theme.default.color.text.gray};
153
+ font-size: ${theme.default.fontSize.s};
154
+ line-height: ${theme.default.lineHeight.s};
155
+ font-weight: ${theme.default.fontWeight.medium};
158
156
  }
159
157
 
160
158
  &.par-xs {
161
- color: ${theme["default"].color.text.gray};
162
- font-size: ${theme["default"].fontSize.xs};
163
- line-height: ${theme["default"].lineHeight.xs};
164
- font-weight: ${theme["default"].fontWeight.medium};
159
+ color: ${theme.default.color.text.gray};
160
+ font-size: ${theme.default.fontSize.xs};
161
+ line-height: ${theme.default.lineHeight.xs};
162
+ font-weight: ${theme.default.fontWeight.medium};
165
163
  }
166
164
  }
167
165
 
168
166
  .dnasg-label {
169
- font-size: ${theme["default"].fontSize.xs};
170
- line-height: ${theme["default"].lineHeight.auto};
171
- font-weight: ${theme["default"].fontWeight.medium};
167
+ font-size: ${theme.default.fontSize.xs};
168
+ line-height: ${theme.default.lineHeight.auto};
169
+ font-weight: ${theme.default.fontWeight.medium};
172
170
  text-transform: uppercase;
173
171
  }
174
172
 
175
173
  .dnasg-price {
176
- font-family: ${theme["default"].fontFamily.numerals};
174
+ font-family: ${theme.default.fontFamily.numerals};
177
175
  }
178
176
 
179
177
  code {
180
178
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
181
179
  }
182
180
  `;
183
- const CheckboxAndRadioInputCore = styled["default"].input `
181
+ const CheckboxAndRadioInputCore = styled.default.input `
184
182
  display: inline-grid;
185
183
  appearance: none;
186
184
  place-content: center;
187
185
  float: left;
188
186
  margin: 0;
189
187
  cursor: pointer;
190
- font-family: ${theme["default"].fontFamily.default};
191
- font-size: ${theme["default"].fontSize.default};
192
- line-height: ${theme["default"].lineHeight.default};
193
- min-width: ${styledUtils.getMultipliedSize(theme["default"].base.baseWidth, 2)};
194
- width: ${styledUtils.getMultipliedSize(theme["default"].base.baseWidth, 2)};
195
- height: ${styledUtils.getMultipliedSize(theme["default"].base.baseWidth, 2)};
196
- color: ${theme["default"].color.line.L01};
197
- border: 2px solid ${theme["default"].color.line.L01};
198
- border-radius: ${theme["default"].radius.s};
199
- background-color: ${theme["default"].color.background.white.default};
188
+ font-family: ${theme.default.fontFamily.default};
189
+ font-size: ${theme.default.fontSize.default};
190
+ line-height: ${theme.default.lineHeight.default};
191
+ min-width: ${styledUtils.getMultipliedSize(theme.default.base.baseWidth, 2)};
192
+ width: ${styledUtils.getMultipliedSize(theme.default.base.baseWidth, 2)};
193
+ height: ${styledUtils.getMultipliedSize(theme.default.base.baseWidth, 2)};
194
+ color: ${theme.default.color.line.L01};
195
+ border: 2px solid ${theme.default.color.line.L01};
196
+ border-radius: ${theme.default.radius.s};
197
+ background-color: ${theme.default.color.background.white.default};
200
198
 
201
199
  & + label {
202
200
  cursor: pointer;
203
- color: ${theme["default"].color.text.black};
204
- font-weight: ${theme["default"].fontWeight.medium};
205
- padding-left: ${styledUtils.getMultipliedSize(theme["default"].base.baseWidth, 1)};
201
+ color: ${theme.default.color.text.black};
202
+ font-weight: ${theme.default.fontWeight.medium};
203
+ padding-left: ${styledUtils.getMultipliedSize(theme.default.base.baseWidth, 1)};
206
204
  }
207
205
 
208
206
  &::before {
@@ -212,8 +210,8 @@ const CheckboxAndRadioInputCore = styled["default"].input `
212
210
  }
213
211
 
214
212
  &:checked {
215
- color: ${theme["default"].color.default.pink};
216
- border-color: ${theme["default"].color.default.pink};
213
+ color: ${theme.default.color.default.pink};
214
+ border-color: ${theme.default.color.default.pink};
217
215
 
218
216
  &::before {
219
217
  transform: scale(1);
@@ -222,19 +220,19 @@ const CheckboxAndRadioInputCore = styled["default"].input `
222
220
 
223
221
  &:disabled {
224
222
  cursor: not-allowed;
225
- color: ${theme["default"].color.line.L01}${theme["default"].color.transparency.T30};
226
- border-color: ${theme["default"].color.line.L01}${theme["default"].color.transparency.T30};
227
- background-color: ${theme["default"].color.background.white.default}${theme["default"].color.transparency.T30};
223
+ color: ${theme.default.color.line.L01}${theme.default.color.transparency.T30};
224
+ border-color: ${theme.default.color.line.L01}${theme.default.color.transparency.T30};
225
+ background-color: ${theme.default.color.background.white.default}${theme.default.color.transparency.T30};
228
226
 
229
227
  & + label {
230
228
  cursor: not-allowed;
231
- color: ${theme["default"].color.text.black}${theme["default"].color.transparency.T30};
229
+ color: ${theme.default.color.text.black}${theme.default.color.transparency.T30};
232
230
  }
233
231
  }
234
232
 
235
233
  &:disabled:checked {
236
- color: ${theme["default"].color.default.pink}${theme["default"].color.transparency.T30};
237
- border-color: ${theme["default"].color.default.pink}${theme["default"].color.transparency.T30};
234
+ color: ${theme.default.color.default.pink}${theme.default.color.transparency.T30};
235
+ border-color: ${theme.default.color.default.pink}${theme.default.color.transparency.T30};
238
236
  }
239
237
  `;
240
238
  styled.createGlobalStyle `
@@ -6,4 +6,4 @@ const gridTheme = {
6
6
  gutter: '0.9375rem', // 15px
7
7
  };
8
8
 
9
- exports["default"] = gridTheme;
9
+ exports.default = gridTheme;
@@ -4,11 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var createStyled = require('../utils/createStyled.js');
6
6
 
7
- const { styled, css, createGlobalStyle, keyframes, ThemeProvider, ServerStyleSheet } = createStyled["default"]();
7
+ const { styled, css, createGlobalStyle, keyframes, ThemeProvider, ServerStyleSheet } = createStyled.default();
8
8
 
9
9
  exports.ServerStyleSheet = ServerStyleSheet;
10
10
  exports.ThemeProvider = ThemeProvider;
11
11
  exports.createGlobalStyle = createGlobalStyle;
12
12
  exports.css = css;
13
- exports["default"] = styled;
13
+ exports.default = styled;
14
14
  exports.keyframes = keyframes;
@@ -15,17 +15,17 @@ var lineHeight = require('./themeComponents/lineHeight.js');
15
15
  var radius = require('./themeComponents/radius.js');
16
16
 
17
17
  const theme = {
18
- base: base["default"],
19
- breakpoints: breakpoints["default"],
20
- color: color["default"],
21
- fontFamily: fontFamily["default"],
22
- fontSize: fontSize["default"],
23
- fontWeight: fontWeight["default"],
24
- form: forms["default"],
25
- grid: gridTheme["default"],
26
- lineHeight: lineHeight["default"],
18
+ base: base.default,
19
+ breakpoints: breakpoints.default,
20
+ color: color.default,
21
+ fontFamily: fontFamily.default,
22
+ fontSize: fontSize.default,
23
+ fontWeight: fontWeight.default,
24
+ form: forms.default,
25
+ grid: gridTheme.default,
26
+ lineHeight: lineHeight.default,
27
27
  media: styledUtils.media,
28
- radius: radius["default"],
28
+ radius: radius.default,
29
29
  };
30
30
 
31
- exports["default"] = theme;
31
+ exports.default = theme;
@@ -6,11 +6,11 @@ const base = {
6
6
  baseHeight: {
7
7
  value: 0.625,
8
8
  unit: 'rem',
9
- },
9
+ }, // 10px
10
10
  baseWidth: {
11
11
  value: 0.625,
12
12
  unit: 'rem',
13
13
  }, // 10px
14
14
  };
15
15
 
16
- exports["default"] = base;
16
+ exports.default = base;
@@ -10,4 +10,4 @@ const breakpoints = {
10
10
  xs: 480,
11
11
  };
12
12
 
13
- exports["default"] = breakpoints;
13
+ exports.default = breakpoints;
@@ -86,4 +86,4 @@ const color = {
86
86
  },
87
87
  };
88
88
 
89
- exports["default"] = color;
89
+ exports.default = color;
@@ -8,4 +8,4 @@ const fontFamily = {
8
8
  numerals: `"DNA Numerals", "DNA Text", "Helvetica Neue", Helvetica, Arial, sans-serif`,
9
9
  };
10
10
 
11
- exports["default"] = fontFamily;
11
+ exports.default = fontFamily;
@@ -3,21 +3,21 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const fontSize = {
6
- default: '1rem',
7
- xl: '1.25rem',
8
- l: '1.125rem',
9
- s: '0.875rem',
10
- xs: '0.75rem',
11
- h1XL: '2.875rem',
12
- h1L: '2.5rem',
13
- h1M: '2.125rem',
14
- h1S: '1.875rem',
15
- h2M: '1.875rem',
16
- h2S: '1.625rem',
17
- h3: '1.5rem',
18
- h4: '1.25rem',
6
+ default: '1rem', // 16px
7
+ xl: '1.25rem', // 20px
8
+ l: '1.125rem', // 18px
9
+ s: '0.875rem', // 14px
10
+ xs: '0.75rem', // 12px
11
+ h1XL: '2.875rem', // 46px
12
+ h1L: '2.5rem', // 40px
13
+ h1M: '2.125rem', // 34px
14
+ h1S: '1.875rem', // 30px
15
+ h2M: '1.875rem', // 30px
16
+ h2S: '1.625rem', // 26px
17
+ h3: '1.5rem', // 24px
18
+ h4: '1.25rem', // 20px
19
19
  h5: '1rem', // 16px
20
20
  };
21
21
  var fontSize$1 = Object.assign({ h1: fontSize.h1L, h2: fontSize.h2M }, fontSize);
22
22
 
23
- exports["default"] = fontSize$1;
23
+ exports.default = fontSize$1;
@@ -21,4 +21,4 @@ const fontWeight = {
21
21
  black: 900,
22
22
  };
23
23
 
24
- exports["default"] = fontWeight;
24
+ exports.default = fontWeight;
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const forms = {
6
- smallSelectWidth: '12rem',
6
+ smallSelectWidth: '12rem', // 192px
7
7
  smallSelectHeight: '2.5rem', // 40px
8
8
  };
9
9
 
10
- exports["default"] = forms;
10
+ exports.default = forms;
@@ -3,22 +3,22 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const lineHeight = {
6
- default: '1.5rem',
7
- xl: '1.625rem',
8
- s: '1.125rem',
9
- xs: '1rem',
10
- xxs: '0.875rem',
6
+ default: '1.5rem', // 24px
7
+ xl: '1.625rem', // 26px
8
+ s: '1.125rem', // 18px
9
+ xs: '1rem', // 16px
10
+ xxs: '0.875rem', // 14px
11
11
  auto: 'inherit',
12
- h1XL: '3rem',
13
- h1L: '2.875rem',
14
- h1M: '2.5rem',
15
- h1S: '2.25rem',
16
- h2M: '2.25rem',
17
- h2S: '2rem',
18
- h3: '1.875rem',
19
- h4: '1.5rem',
12
+ h1XL: '3rem', // 48px
13
+ h1L: '2.875rem', // 46px
14
+ h1M: '2.5rem', // 40px
15
+ h1S: '2.25rem', // 36px
16
+ h2M: '2.25rem', // 36px
17
+ h2S: '2rem', // 32px
18
+ h3: '1.875rem', // 30px
19
+ h4: '1.5rem', // 24px
20
20
  h5: '1rem', // 16px
21
21
  };
22
22
  var lineHeight$1 = Object.assign({ h1: lineHeight.h1L, h2: lineHeight.h2M }, lineHeight);
23
23
 
24
- exports["default"] = lineHeight$1;
24
+ exports.default = lineHeight$1;
@@ -38,7 +38,7 @@ const navigation = {
38
38
 
39
39
  exports.IconContainerMinWidth = IconContainerMinWidth;
40
40
  exports.IconContainerWidth = IconContainerWidth;
41
- exports["default"] = navigation;
41
+ exports.default = navigation;
42
42
  exports.desktopLogoSize = desktopLogoSize;
43
43
  exports.desktopNavMaxHeight = desktopNavMaxHeight;
44
44
  exports.headerLogoSize = headerLogoSize;
@@ -31,4 +31,4 @@ const radius = {
31
31
  pill: '100rem',
32
32
  };
33
33
 
34
- exports["default"] = radius;
34
+ exports.default = radius;
@@ -1,6 +1,6 @@
1
1
  import type { ElevationLevel } from '../types/elevation.d';
2
2
  declare const getElevationShadow: ({ elevation, shadow, }: {
3
3
  elevation: ElevationLevel;
4
- shadow?: string | undefined;
4
+ shadow?: string;
5
5
  }) => string;
6
6
  export default getElevationShadow;
@@ -7,9 +7,9 @@ var theme = require('../themes/theme.js');
7
7
  const getElevationShadow = ({ elevation, shadow, }) => {
8
8
  const shadowConfig = {
9
9
  none: [0, 0, 0],
10
- low: [0, 2, 16, `${theme["default"].color.default.black}0f`],
11
- high: [0, 6, 24, `${theme["default"].color.default.black}14`],
12
- extraHigh: [0, 8, 64, `${theme["default"].color.default.black}29`],
10
+ low: [0, 2, 16, `${theme.default.color.default.black}0f`],
11
+ high: [0, 6, 24, `${theme.default.color.default.black}14`],
12
+ extraHigh: [0, 8, 64, `${theme.default.color.default.black}29`],
13
13
  };
14
14
  const sidesMap = shadow === null || shadow === void 0 ? void 0 : shadow.split(' ').map(Number);
15
15
  const clipSize = sidesMap &&
@@ -25,4 +25,4 @@ const getElevationShadow = ({ elevation, shadow, }) => {
25
25
  return `${boxShadow}${clipPath}`;
26
26
  };
27
27
 
28
- exports["default"] = getElevationShadow;
28
+ exports.default = getElevationShadow;