@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.
- package/README.md +29 -22
- package/build/cjs/components/Accordion/Accordion.js +7 -12
- package/build/cjs/components/AccordionItem/AccordionItem.js +30 -35
- package/build/cjs/components/AmountSelector/AmountSelector.js +25 -29
- package/build/cjs/components/Box/Box.js +8 -13
- package/build/cjs/components/Button/Button.js +28 -33
- package/build/cjs/components/Button/ButtonArrow.js +16 -21
- package/build/cjs/components/Button/ButtonClose.js +4 -8
- package/build/cjs/components/Button/ButtonIcon.js +17 -22
- package/build/cjs/components/Button/ButtonPrimary.js +13 -17
- package/build/cjs/components/Button/ButtonRound.js +6 -11
- package/build/cjs/components/Button/ButtonSecondary.js +13 -17
- package/build/cjs/components/Carousel/Carousel.d.ts +1 -1
- package/build/cjs/components/Carousel/Carousel.js +43 -47
- package/build/cjs/components/Checkbox/Checkbox.js +23 -27
- package/build/cjs/components/Chip/Chip.js +11 -16
- package/build/cjs/components/DateTimePicker/DateTimePicker.js +76 -82
- package/build/cjs/components/Divider/Divider.js +5 -10
- package/build/cjs/components/DnaLogo/DnaLogo.js +14 -18
- package/build/cjs/components/Drawer/Drawer.js +47 -52
- package/build/cjs/components/EmptyState/EmptyState.js +8 -12
- package/build/cjs/components/Expander/Expander.js +13 -17
- package/build/cjs/components/Floater/Floater.js +3 -8
- package/build/cjs/components/Footer/Components/FooterComponents.js +58 -64
- package/build/cjs/components/Footer/Footer.js +63 -67
- package/build/cjs/components/Footer/context/FooterContext.js +2 -2
- package/build/cjs/components/Icon/Icon.js +9 -13
- package/build/cjs/components/Icons/Small/hlArrowBackSmall.js +3 -7
- package/build/cjs/components/Icons/Small/hlArrowForwardSmall.js +3 -7
- package/build/cjs/components/Icons/Small/hlArrowUnderSmall.js +3 -7
- package/build/cjs/components/Icons/Small/hlCalendarSmall.js +3 -7
- package/build/cjs/components/Icons/Small/hlChevronDownSmall.js +3 -7
- package/build/cjs/components/Icons/Small/hlChevronLeftSmall.js +3 -7
- package/build/cjs/components/Icons/Small/hlChevronRightSmall.js +3 -7
- package/build/cjs/components/Icons/Small/hlChevronUpSmall.js +3 -7
- package/build/cjs/components/Icons/Small/hlClockSmall.js +4 -8
- package/build/cjs/components/Icons/Small/hlDownloadSmall.js +5 -9
- package/build/cjs/components/Icons/Small/hlExternalSmall.js +3 -7
- package/build/cjs/components/Icons/Small/hlUploadSmall.js +5 -9
- package/build/cjs/components/Icons/Social/facebook.js +3 -7
- package/build/cjs/components/Icons/Social/instagram.js +3 -7
- package/build/cjs/components/Icons/Social/linkedin.js +3 -7
- package/build/cjs/components/Icons/Social/tiktok.js +3 -7
- package/build/cjs/components/Icons/Social/twitter.js +3 -7
- package/build/cjs/components/Icons/Social/youtube.js +3 -7
- package/build/cjs/components/Icons/hl404.js +3 -7
- package/build/cjs/components/Icons/hl4gSim.js +3 -7
- package/build/cjs/components/Icons/hl5gSim.js +3 -7
- package/build/cjs/components/Icons/hlBattery.js +5 -9
- package/build/cjs/components/Icons/hlBell.js +3 -7
- package/build/cjs/components/Icons/hlCableTVCard.js +3 -7
- package/build/cjs/components/Icons/hlCalendar.js +14 -18
- package/build/cjs/components/Icons/hlCall.js +3 -7
- package/build/cjs/components/Icons/hlCameraBack.js +5 -9
- package/build/cjs/components/Icons/hlCameraFront.js +4 -8
- package/build/cjs/components/Icons/hlCart.js +5 -9
- package/build/cjs/components/Icons/hlCartEmpty.js +5 -9
- package/build/cjs/components/Icons/hlChat.js +6 -10
- package/build/cjs/components/Icons/hlCheck.js +3 -7
- package/build/cjs/components/Icons/hlChevronDown.js +3 -7
- package/build/cjs/components/Icons/hlChevronLeft.js +3 -7
- package/build/cjs/components/Icons/hlChevronRight.js +3 -7
- package/build/cjs/components/Icons/hlChevronUp.js +3 -7
- package/build/cjs/components/Icons/hlCompensation.js +3 -7
- package/build/cjs/components/Icons/hlCookie.js +3 -7
- package/build/cjs/components/Icons/hlCopy.js +4 -8
- package/build/cjs/components/Icons/hlCoupon.js +5 -9
- package/build/cjs/components/Icons/hlDelivery.js +3 -7
- package/build/cjs/components/Icons/hlDigiturva.js +3 -7
- package/build/cjs/components/Icons/hlDisplaySize.js +5 -9
- package/build/cjs/components/Icons/hlDocument.js +4 -8
- package/build/cjs/components/Icons/hlDownload.js +5 -9
- package/build/cjs/components/Icons/hlEnvelope.js +3 -7
- package/build/cjs/components/Icons/hlError.js +5 -9
- package/build/cjs/components/Icons/hlEuro.js +3 -7
- package/build/cjs/components/Icons/hlExclamationMark.js +3 -7
- package/build/cjs/components/Icons/hlExpand.js +3 -7
- package/build/cjs/components/Icons/hlExternal.js +3 -7
- package/build/cjs/components/Icons/hlEyeClosed.js +3 -7
- package/build/cjs/components/Icons/hlEyeOpen.js +4 -8
- package/build/cjs/components/Icons/hlFaceId.js +3 -7
- package/build/cjs/components/Icons/hlFastDelivery.js +3 -7
- package/build/cjs/components/Icons/hlFingerprint.js +7 -11
- package/build/cjs/components/Icons/hlGlobe.js +3 -7
- package/build/cjs/components/Icons/hlHeadphones.js +3 -7
- package/build/cjs/components/Icons/hlHeadset.js +5 -9
- package/build/cjs/components/Icons/hlHeart.js +3 -7
- package/build/cjs/components/Icons/hlHome.js +3 -7
- package/build/cjs/components/Icons/hlHub.js +4 -8
- package/build/cjs/components/Icons/hlImage.js +3 -7
- package/build/cjs/components/Icons/hlInfo.js +5 -9
- package/build/cjs/components/Icons/hlInstallment.js +4 -8
- package/build/cjs/components/Icons/hlIotSim.js +4 -8
- package/build/cjs/components/Icons/hlLaptop.js +3 -7
- package/build/cjs/components/Icons/hlLink.js +4 -8
- package/build/cjs/components/Icons/hlLiveVideo.js +3 -7
- package/build/cjs/components/Icons/hlLock.js +5 -9
- package/build/cjs/components/Icons/hlMagnifyingGlass.js +4 -8
- package/build/cjs/components/Icons/hlMarker.js +4 -8
- package/build/cjs/components/Icons/hlMemory.js +4 -8
- package/build/cjs/components/Icons/hlMenu.js +3 -7
- package/build/cjs/components/Icons/hlMinimize.js +3 -7
- package/build/cjs/components/Icons/hlMinus.js +3 -7
- package/build/cjs/components/Icons/hlMobileData.js +3 -7
- package/build/cjs/components/Icons/hlMobilePayment.js +5 -9
- package/build/cjs/components/Icons/hlModem.js +7 -11
- package/build/cjs/components/Icons/hlMore.js +5 -9
- package/build/cjs/components/Icons/hlOs.js +4 -8
- package/build/cjs/components/Icons/hlPackage.js +3 -7
- package/build/cjs/components/Icons/hlPaperclip.js +3 -7
- package/build/cjs/components/Icons/hlPaytime.js +3 -7
- package/build/cjs/components/Icons/hlPen.js +3 -7
- package/build/cjs/components/Icons/hlPerson.js +3 -7
- package/build/cjs/components/Icons/hlPhone.js +4 -8
- package/build/cjs/components/Icons/hlPlaylist.js +3 -7
- package/build/cjs/components/Icons/hlPlus.js +4 -8
- package/build/cjs/components/Icons/hlPrepaid.js +3 -7
- package/build/cjs/components/Icons/hlProcessor.js +4 -8
- package/build/cjs/components/Icons/hlServices.js +3 -7
- package/build/cjs/components/Icons/hlSettings.js +3 -7
- package/build/cjs/components/Icons/hlShield.js +4 -8
- package/build/cjs/components/Icons/hlSim.js +4 -8
- package/build/cjs/components/Icons/hlSimSimple.js +5 -9
- package/build/cjs/components/Icons/hlSmile.js +6 -10
- package/build/cjs/components/Icons/hlSpeechBubble.js +4 -8
- package/build/cjs/components/Icons/hlSquaretrade.js +3 -7
- package/build/cjs/components/Icons/hlStar.js +3 -7
- package/build/cjs/components/Icons/hlStarFilled.js +3 -7
- package/build/cjs/components/Icons/hlTrash.js +4 -8
- package/build/cjs/components/Icons/hlTv.js +3 -7
- package/build/cjs/components/Icons/hlUnlock.js +4 -8
- package/build/cjs/components/Icons/hlUpload.js +5 -9
- package/build/cjs/components/Icons/hlWarning.js +5 -9
- package/build/cjs/components/Icons/hlWifi.js +5 -9
- package/build/cjs/components/Icons/hlWrench.js +3 -7
- package/build/cjs/components/Icons/hlX.js +3 -7
- package/build/cjs/components/Icons/index.js +109 -111
- package/build/cjs/components/InfoDialog/InfoDialog.js +18 -22
- package/build/cjs/components/Input/Input.js +44 -48
- package/build/cjs/components/Label/Label.js +14 -18
- package/build/cjs/components/LabelText/LabelText.js +11 -15
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/BusinessMenu.js +23 -27
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/DesktopMenu.js +59 -63
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/LanguageSelector.js +11 -15
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/LinkModifier.js +6 -10
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/LoginTooltip.js +5 -9
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenu.d.ts +4 -4
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenu.js +28 -30
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +2 -2
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.js +11 -11
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/MinicartTooltip.d.ts +3 -2
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/MinicartTooltip.js +9 -11
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/MobileMenu.js +50 -54
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/PageSearch.js +5 -9
- package/build/cjs/components/MainHeaderNavigation/MainHeaderNavigation.d.ts +11 -2
- package/build/cjs/components/MainHeaderNavigation/MainHeaderNavigation.js +41 -43
- package/build/cjs/components/MainHeaderNavigation/context/MobileMenuContext.js +1 -1
- package/build/cjs/components/MainHeaderNavigation/context/NavContext.js +1 -1
- package/build/cjs/components/MainHeaderNavigation/globalNavStyles.d.ts +5 -5
- package/build/cjs/components/MainHeaderNavigation/globalNavStyles.js +48 -50
- package/build/cjs/components/MainNavigation/ChildComponents/BusinessMenu.js +14 -18
- package/build/cjs/components/MainNavigation/ChildComponents/DesktopMenu.js +49 -53
- package/build/cjs/components/MainNavigation/ChildComponents/HeaderNavigationElements.d.ts +1 -1
- package/build/cjs/components/MainNavigation/ChildComponents/HeaderNavigationElements.js +44 -48
- package/build/cjs/components/MainNavigation/ChildComponents/LanguageSelector.js +11 -15
- package/build/cjs/components/MainNavigation/ChildComponents/LinkModifier.js +7 -11
- package/build/cjs/components/MainNavigation/ChildComponents/LoginTooltip.js +5 -9
- package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenu.js +21 -25
- package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +1 -1
- package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.js +7 -7
- package/build/cjs/components/MainNavigation/ChildComponents/MinicartTooltip.js +6 -10
- package/build/cjs/components/MainNavigation/ChildComponents/MobileMenu.js +52 -56
- package/build/cjs/components/MainNavigation/ChildComponents/PageSearch.js +5 -9
- package/build/cjs/components/MainNavigation/ChildComponents/Ribbon.js +20 -24
- package/build/cjs/components/MainNavigation/MainNavigation.js +20 -24
- package/build/cjs/components/MainNavigation/context/MobileMenuContext.js +1 -1
- package/build/cjs/components/MainNavigation/context/NavContext.js +1 -1
- package/build/cjs/components/MainNavigation/globalNavStyles.d.ts +5 -5
- package/build/cjs/components/MainNavigation/globalNavStyles.js +12 -14
- package/build/cjs/components/Modal/Modal.js +20 -25
- package/build/cjs/components/Notification/Notification.js +17 -22
- package/build/cjs/components/NotificationBadge/NotificationBadge.js +8 -12
- package/build/cjs/components/Overlay/Overlay.d.ts +49 -0
- package/build/cjs/components/Overlay/Overlay.js +80 -0
- package/build/cjs/components/Pill/Pill.js +19 -24
- package/build/cjs/components/PixelLoader/PixelLoader.js +9 -13
- package/build/cjs/components/PriorityNavigation/PriorityNavigation.d.ts +10 -0
- package/build/cjs/components/PriorityNavigation/PriorityNavigation.js +84 -53
- package/build/cjs/components/PriorityNavigationItem/PriorityNavigationItem.js +20 -15
- package/build/cjs/components/ProgressIndicator/ProgressIndicator.js +30 -34
- package/build/cjs/components/RadioButton/RadioButton.js +11 -15
- package/build/cjs/components/ReadMore/ReadMore.js +14 -17
- package/build/cjs/components/Search/Search.js +16 -20
- package/build/cjs/components/SecondaryNavigation/SecondaryNavigation.js +53 -57
- package/build/cjs/components/Selectbox/Selectbox.js +44 -49
- package/build/cjs/components/Switch/Switch.js +18 -19
- package/build/cjs/components/Tab/Tab.js +29 -33
- package/build/cjs/components/Tabs/Tabs.js +15 -19
- package/build/cjs/components/Textarea/Textarea.js +29 -33
- package/build/cjs/components/Toaster/Toaster.js +19 -24
- package/build/cjs/components/Tooltip/Tooltip.js +21 -25
- package/build/cjs/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.js +2 -4
- package/build/cjs/components/TooltipMenu/TooltipMenu.js +20 -24
- package/build/cjs/components/index.d.ts +1 -0
- package/build/cjs/hooks/useCloseOutsideOrElementClicked.js +1 -1
- package/build/cjs/hooks/useDebounce.js +1 -1
- package/build/cjs/hooks/useDocHeight.js +2 -2
- package/build/cjs/hooks/useOutsideClick.js +1 -1
- package/build/cjs/hooks/useResizeObserver.d.ts +1 -1
- package/build/cjs/hooks/useResizeObserver.js +1 -1
- package/build/cjs/hooks/useScrollPosition.d.ts +3 -1
- package/build/cjs/hooks/useScrollPosition.js +1 -1
- package/build/cjs/hooks/useWindowSize.js +1 -1
- package/build/cjs/index.js +164 -164
- package/build/cjs/themes/globalStyles.js +78 -80
- package/build/cjs/themes/gridTheme.js +1 -1
- package/build/cjs/themes/styled.js +2 -2
- package/build/cjs/themes/theme.js +11 -11
- package/build/cjs/themes/themeComponents/base.js +2 -2
- package/build/cjs/themes/themeComponents/breakpoints.js +1 -1
- package/build/cjs/themes/themeComponents/color.js +1 -1
- package/build/cjs/themes/themeComponents/fontFamily.js +1 -1
- package/build/cjs/themes/themeComponents/fontSize.js +14 -14
- package/build/cjs/themes/themeComponents/fontWeight.js +1 -1
- package/build/cjs/themes/themeComponents/forms.js +2 -2
- package/build/cjs/themes/themeComponents/lineHeight.js +14 -14
- package/build/cjs/themes/themeComponents/navigation.js +1 -1
- package/build/cjs/themes/themeComponents/radius.js +1 -1
- package/build/cjs/utils/common.d.ts +1 -1
- package/build/cjs/utils/common.js +4 -4
- package/build/cjs/utils/createStyled.d.ts +2 -163
- package/build/cjs/utils/createStyled.js +4 -5
- package/build/cjs/utils/styledUtils.js +2 -4
- package/build/es/components/Carousel/Carousel.d.ts +1 -1
- package/build/es/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenu.d.ts +4 -4
- package/build/es/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenu.js +5 -3
- package/build/es/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +2 -2
- package/build/es/components/MainHeaderNavigation/ChildComponents/MinicartTooltip.d.ts +3 -2
- package/build/es/components/MainHeaderNavigation/ChildComponents/MinicartTooltip.js +4 -2
- package/build/es/components/MainHeaderNavigation/MainHeaderNavigation.d.ts +11 -2
- package/build/es/components/MainHeaderNavigation/MainHeaderNavigation.js +8 -6
- package/build/es/components/MainHeaderNavigation/globalNavStyles.d.ts +5 -5
- package/build/es/components/MainNavigation/ChildComponents/HeaderNavigationElements.d.ts +1 -1
- package/build/es/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +1 -1
- package/build/es/components/MainNavigation/globalNavStyles.d.ts +5 -5
- package/build/es/components/Overlay/Overlay.d.ts +49 -0
- package/build/es/components/Overlay/Overlay.js +76 -0
- package/build/es/components/PriorityNavigation/PriorityNavigation.d.ts +10 -0
- package/build/es/components/PriorityNavigation/PriorityNavigation.js +60 -25
- package/build/es/components/PriorityNavigationItem/PriorityNavigationItem.js +10 -1
- package/build/es/components/ReadMore/ReadMore.js +1 -0
- package/build/es/components/index.d.ts +1 -0
- package/build/es/hooks/useResizeObserver.d.ts +1 -1
- package/build/es/hooks/useScrollPosition.d.ts +3 -1
- package/build/es/index.js +1 -0
- package/build/es/themes/themeComponents/base.js +1 -1
- package/build/es/themes/themeComponents/fontSize.js +13 -13
- package/build/es/themes/themeComponents/forms.js +1 -1
- package/build/es/themes/themeComponents/lineHeight.js +13 -13
- package/build/es/utils/common.d.ts +1 -1
- package/build/es/utils/createStyled.d.ts +2 -163
- 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
|
|
18
|
+
font-family: ${theme.default.fontFamily.default};
|
|
21
19
|
-webkit-font-smoothing: antialiased;
|
|
22
20
|
-moz-osx-font-smoothing: grayscale;
|
|
23
|
-
font-size: ${theme
|
|
24
|
-
color: ${theme
|
|
21
|
+
font-size: ${theme.default.fontSize.default};
|
|
22
|
+
color: ${theme.default.color.text.black};
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
a {
|
|
28
|
-
color: ${theme
|
|
26
|
+
color: ${theme.default.color.text.pink};
|
|
29
27
|
text-decoration: none;
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
a:hover {
|
|
33
|
-
color: ${theme
|
|
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
|
|
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
|
|
44
|
+
font-weight: ${theme.default.fontWeight.bold};
|
|
47
45
|
}
|
|
48
46
|
|
|
49
47
|
.dnasg-fw-medium {
|
|
50
|
-
font-weight: ${theme
|
|
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
|
|
58
|
+
font-weight: ${theme.default.fontWeight.bold};
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
h1,
|
|
64
62
|
.h1 {
|
|
65
|
-
font-family: ${theme
|
|
66
|
-
font-size: ${theme
|
|
67
|
-
line-height: ${theme
|
|
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
|
|
71
|
-
line-height: ${theme
|
|
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
|
|
76
|
-
line-height: ${theme
|
|
77
|
-
font-weight: ${theme
|
|
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
|
|
82
|
-
line-height: ${theme
|
|
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
|
|
87
|
-
line-height: ${theme
|
|
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
|
|
92
|
-
line-height: ${theme
|
|
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
|
|
99
|
-
font-size: ${theme
|
|
100
|
-
line-height: ${theme
|
|
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
|
|
104
|
-
line-height: ${theme
|
|
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
|
|
109
|
-
line-height: ${theme
|
|
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
|
|
114
|
-
line-height: ${theme
|
|
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
|
|
121
|
-
font-size: ${theme
|
|
122
|
-
line-height: ${theme
|
|
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
|
|
128
|
-
font-size: ${theme
|
|
129
|
-
line-height: ${theme
|
|
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
|
|
135
|
-
font-size: ${theme
|
|
136
|
-
line-height: ${theme
|
|
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
|
|
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
|
|
150
|
-
line-height: ${theme
|
|
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
|
|
155
|
-
font-size: ${theme
|
|
156
|
-
line-height: ${theme
|
|
157
|
-
font-weight: ${theme
|
|
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
|
|
162
|
-
font-size: ${theme
|
|
163
|
-
line-height: ${theme
|
|
164
|
-
font-weight: ${theme
|
|
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
|
|
170
|
-
line-height: ${theme
|
|
171
|
-
font-weight: ${theme
|
|
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
|
|
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
|
|
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
|
|
191
|
-
font-size: ${theme
|
|
192
|
-
line-height: ${theme
|
|
193
|
-
min-width: ${styledUtils.getMultipliedSize(theme
|
|
194
|
-
width: ${styledUtils.getMultipliedSize(theme
|
|
195
|
-
height: ${styledUtils.getMultipliedSize(theme
|
|
196
|
-
color: ${theme
|
|
197
|
-
border: 2px solid ${theme
|
|
198
|
-
border-radius: ${theme
|
|
199
|
-
background-color: ${theme
|
|
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
|
|
204
|
-
font-weight: ${theme
|
|
205
|
-
padding-left: ${styledUtils.getMultipliedSize(theme
|
|
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
|
|
216
|
-
border-color: ${theme
|
|
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
|
|
226
|
-
border-color: ${theme
|
|
227
|
-
background-color: ${theme
|
|
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
|
|
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
|
|
237
|
-
border-color: ${theme
|
|
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 `
|
|
@@ -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
|
|
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
|
|
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
|
|
19
|
-
breakpoints: breakpoints
|
|
20
|
-
color: color
|
|
21
|
-
fontFamily: fontFamily
|
|
22
|
-
fontSize: fontSize
|
|
23
|
-
fontWeight: fontWeight
|
|
24
|
-
form: forms
|
|
25
|
-
grid: gridTheme
|
|
26
|
-
lineHeight: lineHeight
|
|
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
|
|
28
|
+
radius: radius.default,
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
exports
|
|
31
|
+
exports.default = theme;
|
|
@@ -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
|
|
23
|
+
exports.default = fontSize$1;
|
|
@@ -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
|
|
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
|
|
41
|
+
exports.default = navigation;
|
|
42
42
|
exports.desktopLogoSize = desktopLogoSize;
|
|
43
43
|
exports.desktopNavMaxHeight = desktopNavMaxHeight;
|
|
44
44
|
exports.headerLogoSize = headerLogoSize;
|
|
@@ -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
|
|
11
|
-
high: [0, 6, 24, `${theme
|
|
12
|
-
extraHigh: [0, 8, 64, `${theme
|
|
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
|
|
28
|
+
exports.default = getElevationShadow;
|