@dnanpm/styleguide 1.9.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) 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 +29 -52
  5. package/build/cjs/components/AmountSelector/AmountSelector.js +3 -4
  6. package/build/cjs/components/Buttons/ButtonBasicStyles.d.ts +37 -30
  7. package/build/cjs/components/Buttons/ButtonBasicStyles.js +10 -14
  8. package/build/cjs/components/Buttons/ButtonDefault.js +6 -2
  9. package/build/cjs/components/Buttons/ButtonIconPrimaryStyles.d.ts +37 -30
  10. package/build/cjs/components/Buttons/ButtonIconStyles.d.ts +37 -30
  11. package/build/cjs/components/Buttons/ButtonPrimary.js +6 -2
  12. package/build/cjs/components/Buttons/ButtonPrimaryStyles.d.ts +37 -30
  13. package/build/cjs/components/Buttons/ButtonSecondary.js +7 -3
  14. package/build/cjs/components/Buttons/ButtonSecondaryStyles.d.ts +37 -30
  15. package/build/cjs/components/Buttons/ButtonTertiary.js +7 -3
  16. package/build/cjs/components/Buttons/ButtonTertiaryStyles.d.ts +37 -30
  17. package/build/cjs/components/Buttons/CloseButton.d.ts +37 -30
  18. package/build/cjs/components/Card/Card.js +4 -2
  19. package/build/cjs/components/Card/CardRow.js +3 -3
  20. package/build/cjs/components/Checkbox/Checkbox.d.ts +38 -12
  21. package/build/cjs/components/Checkbox/Checkbox.js +37 -70
  22. package/build/cjs/components/DnaLogo/DnaLogo.d.ts +37 -40
  23. package/build/cjs/components/Footer/Components/FooterComponents.js +3 -2
  24. package/build/cjs/components/Helper/Helper.js +2 -1
  25. package/build/cjs/components/Icon/Icon.d.ts +39 -30
  26. package/build/cjs/components/Icon/Icons.d.ts +1 -4
  27. package/build/cjs/components/Icon/Icons.js +3 -7
  28. package/build/cjs/components/Input/Input.d.ts +102 -13
  29. package/build/cjs/components/Input/Input.js +57 -58
  30. package/build/cjs/components/Label/Label.js +2 -3
  31. package/build/cjs/components/LabelText/LabelText.d.ts +38 -30
  32. package/build/cjs/components/LabelText/LabelText.js +1 -1
  33. package/build/cjs/components/MainNavigation/ChildComponents/BusinessMenu.js +1 -1
  34. package/build/cjs/components/MainNavigation/ChildComponents/DesktopMenu.js +10 -4
  35. package/build/cjs/components/MainNavigation/ChildComponents/HeaderNavigationElements.d.ts +37 -30
  36. package/build/cjs/components/MainNavigation/ChildComponents/LanguageSelector.js +2 -2
  37. package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +37 -30
  38. package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.js +1 -4
  39. package/build/cjs/components/MainNavigation/ChildComponents/MobileMenu.js +1 -1
  40. package/build/cjs/components/MainNavigation/ChildComponents/Ribbon.js +1 -1
  41. package/build/cjs/components/MainNavigation/MainNavigation.js +1 -1
  42. package/build/cjs/components/MainNavigation/globalNavStyles.d.ts +148 -120
  43. package/build/cjs/components/Notification/Notification.d.ts +1 -5
  44. package/build/cjs/components/Notification/Notification.js +1 -4
  45. package/build/cjs/components/NotificationBadge/NotificationBadge.d.ts +37 -30
  46. package/build/cjs/components/NotificationBadge/NotificationBadge.js +1 -1
  47. package/build/cjs/components/PixelLoader/PixelLoaderStyles.d.ts +74 -60
  48. package/build/cjs/components/ProgressIndicator/ProgressIndicator.js +3 -3
  49. package/build/cjs/components/RadioButton/RadioButton.d.ts +33 -17
  50. package/build/cjs/components/RadioButton/RadioButton.js +12 -57
  51. package/build/cjs/components/ReadMore/ReadMore.js +2 -7
  52. package/build/cjs/components/Ribbon/Ribbon.js +2 -2
  53. package/build/cjs/components/Search/Search.js +2 -1
  54. package/build/cjs/components/SecondaryNavigation/SecondaryNavigation.js +2 -2
  55. package/build/cjs/components/Selectbox/Selectbox.d.ts +102 -13
  56. package/build/cjs/components/Selectbox/Selectbox.js +40 -49
  57. package/build/cjs/components/Tabs/Tab.d.ts +37 -30
  58. package/build/cjs/components/Tabs/Tab.js +3 -2
  59. package/build/cjs/components/Tabs/Tabs.d.ts +40 -30
  60. package/build/cjs/components/Textarea/Textarea.js +4 -3
  61. package/build/cjs/components/Tooltip/Tooltip.d.ts +37 -30
  62. package/build/cjs/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.d.ts +74 -60
  63. package/build/cjs/components/index.d.ts +3 -2
  64. package/build/cjs/index.js +2 -2
  65. package/build/cjs/themes/globalStyles.d.ts +174 -60
  66. package/build/cjs/themes/globalStyles.js +132 -142
  67. package/build/cjs/themes/styled.d.ts +259 -210
  68. package/build/cjs/themes/theme.d.ts +37 -30
  69. package/build/cjs/themes/themeComponents/buttons.d.ts +1 -6
  70. package/build/cjs/themes/themeComponents/buttons.js +1 -6
  71. package/build/cjs/themes/themeComponents/fontFamily.d.ts +3 -1
  72. package/build/cjs/themes/themeComponents/fontFamily.js +3 -1
  73. package/build/cjs/themes/themeComponents/fontSize.d.ts +18 -15
  74. package/build/cjs/themes/themeComponents/fontSize.js +20 -14
  75. package/build/cjs/themes/themeComponents/lineHeight.d.ts +19 -12
  76. package/build/cjs/themes/themeComponents/lineHeight.js +21 -11
  77. package/build/es/components/Accordion/Accordion.d.ts +27 -15
  78. package/build/es/components/Accordion/Accordion.js +29 -12
  79. package/build/es/components/Accordion/AccordionItem.d.ts +14 -29
  80. package/build/es/components/Accordion/AccordionItem.js +31 -54
  81. package/build/es/components/AmountSelector/AmountSelector.js +3 -4
  82. package/build/es/components/Buttons/ButtonBasicStyles.d.ts +37 -30
  83. package/build/es/components/Buttons/ButtonBasicStyles.js +10 -14
  84. package/build/es/components/Buttons/ButtonDefault.js +6 -2
  85. package/build/es/components/Buttons/ButtonIconPrimaryStyles.d.ts +37 -30
  86. package/build/es/components/Buttons/ButtonIconStyles.d.ts +37 -30
  87. package/build/es/components/Buttons/ButtonPrimary.js +6 -2
  88. package/build/es/components/Buttons/ButtonPrimaryStyles.d.ts +37 -30
  89. package/build/es/components/Buttons/ButtonSecondary.js +7 -3
  90. package/build/es/components/Buttons/ButtonSecondaryStyles.d.ts +37 -30
  91. package/build/es/components/Buttons/ButtonTertiary.js +7 -3
  92. package/build/es/components/Buttons/ButtonTertiaryStyles.d.ts +37 -30
  93. package/build/es/components/Buttons/CloseButton.d.ts +37 -30
  94. package/build/es/components/Card/Card.js +4 -2
  95. package/build/es/components/Card/CardRow.js +3 -3
  96. package/build/es/components/Checkbox/Checkbox.d.ts +38 -12
  97. package/build/es/components/Checkbox/Checkbox.js +39 -72
  98. package/build/es/components/DnaLogo/DnaLogo.d.ts +37 -40
  99. package/build/es/components/Footer/Components/FooterComponents.js +3 -2
  100. package/build/es/components/Helper/Helper.js +2 -1
  101. package/build/es/components/Icon/Icon.d.ts +39 -30
  102. package/build/es/components/Icon/Icons.d.ts +1 -4
  103. package/build/es/components/Icon/Icons.js +3 -7
  104. package/build/es/components/Input/Input.d.ts +102 -13
  105. package/build/es/components/Input/Input.js +57 -58
  106. package/build/es/components/Label/Label.js +2 -3
  107. package/build/es/components/LabelText/LabelText.d.ts +38 -30
  108. package/build/es/components/LabelText/LabelText.js +1 -1
  109. package/build/es/components/MainNavigation/ChildComponents/BusinessMenu.js +1 -1
  110. package/build/es/components/MainNavigation/ChildComponents/DesktopMenu.js +10 -4
  111. package/build/es/components/MainNavigation/ChildComponents/HeaderNavigationElements.d.ts +37 -30
  112. package/build/es/components/MainNavigation/ChildComponents/LanguageSelector.js +2 -2
  113. package/build/es/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +37 -30
  114. package/build/es/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.js +2 -5
  115. package/build/es/components/MainNavigation/ChildComponents/MobileMenu.js +1 -1
  116. package/build/es/components/MainNavigation/ChildComponents/Ribbon.js +1 -1
  117. package/build/es/components/MainNavigation/MainNavigation.js +1 -1
  118. package/build/es/components/MainNavigation/globalNavStyles.d.ts +148 -120
  119. package/build/es/components/Notification/Notification.d.ts +1 -5
  120. package/build/es/components/Notification/Notification.js +1 -4
  121. package/build/es/components/NotificationBadge/NotificationBadge.d.ts +37 -30
  122. package/build/es/components/NotificationBadge/NotificationBadge.js +1 -1
  123. package/build/es/components/PixelLoader/PixelLoaderStyles.d.ts +74 -60
  124. package/build/es/components/ProgressIndicator/ProgressIndicator.js +3 -3
  125. package/build/es/components/RadioButton/RadioButton.d.ts +33 -17
  126. package/build/es/components/RadioButton/RadioButton.js +12 -57
  127. package/build/es/components/ReadMore/ReadMore.js +2 -7
  128. package/build/es/components/Ribbon/Ribbon.js +2 -2
  129. package/build/es/components/Search/Search.js +2 -1
  130. package/build/es/components/SecondaryNavigation/SecondaryNavigation.js +2 -2
  131. package/build/es/components/Selectbox/Selectbox.d.ts +102 -13
  132. package/build/es/components/Selectbox/Selectbox.js +40 -49
  133. package/build/es/components/Tabs/Tab.d.ts +37 -30
  134. package/build/es/components/Tabs/Tab.js +3 -2
  135. package/build/es/components/Tabs/Tabs.d.ts +40 -30
  136. package/build/es/components/Textarea/Textarea.js +4 -3
  137. package/build/es/components/Tooltip/Tooltip.d.ts +37 -30
  138. package/build/es/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.d.ts +74 -60
  139. package/build/es/components/index.d.ts +3 -2
  140. package/build/es/index.js +1 -1
  141. package/build/es/themes/globalStyles.d.ts +174 -60
  142. package/build/es/themes/globalStyles.js +134 -145
  143. package/build/es/themes/styled.d.ts +259 -210
  144. package/build/es/themes/theme.d.ts +37 -30
  145. package/build/es/themes/themeComponents/buttons.d.ts +1 -6
  146. package/build/es/themes/themeComponents/buttons.js +1 -6
  147. package/build/es/themes/themeComponents/fontFamily.d.ts +3 -1
  148. package/build/es/themes/themeComponents/fontFamily.js +3 -1
  149. package/build/es/themes/themeComponents/fontSize.d.ts +18 -15
  150. package/build/es/themes/themeComponents/fontSize.js +20 -14
  151. package/build/es/themes/themeComponents/lineHeight.d.ts +19 -12
  152. package/build/es/themes/themeComponents/lineHeight.js +21 -11
  153. package/package.json +2 -2
  154. package/build/cjs/components/Accordion/index.d.ts +0 -2
  155. package/build/es/components/Accordion/index.d.ts +0 -2
@@ -12,12 +12,7 @@ export declare const globalStyles: import("styled-components").FlattenInterpolat
12
12
  };
13
13
  breakpoints: import("./themeComponents/breakpoints").ViewBreakpoints;
14
14
  button: {
15
- buttonBorderWidth: string;
16
- buttonPadding: string;
17
- smallButtonPadding: string;
18
- buttonLineHeight: string;
19
- buttonWidth: string;
20
- buttonSmallWidth: string;
15
+ border: string;
21
16
  };
22
17
  color: {
23
18
  black: string;
@@ -48,22 +43,27 @@ export declare const globalStyles: import("styled-components").FlattenInterpolat
48
43
  gray5: string;
49
44
  };
50
45
  fontFamily: {
51
- baseFontFamily: string;
46
+ default: string;
47
+ heading: string;
48
+ numerals: string;
52
49
  };
53
50
  fontSize: {
54
- defaultFontSize: string;
55
- smallFontSize: string;
56
- extraSmallFontSize: string;
57
- xsFontSize: string;
58
- xxsFontSize: string;
59
- h1FontSize: string;
60
- h2FontSize: string;
61
- h2MobileFontSize: string;
62
- h3FontSize: string;
63
- h4FontSize: string;
64
- h5FontSize: string;
65
- heroBannerTitleFontSize: string;
66
- heroBannerTitleMobileFontSize: string;
51
+ default: string;
52
+ xl: string;
53
+ l: string;
54
+ s: string;
55
+ xs: string;
56
+ h1XL: string;
57
+ h1L: string;
58
+ h1M: string;
59
+ h1S: string;
60
+ h2M: string;
61
+ h2S: string;
62
+ h3: string;
63
+ h4: string;
64
+ h5: string;
65
+ h1: string;
66
+ h2: string;
67
67
  };
68
68
  fontWeight: {
69
69
  book: number;
@@ -79,19 +79,126 @@ export declare const globalStyles: import("styled-components").FlattenInterpolat
79
79
  gutter: string;
80
80
  };
81
81
  lineHeight: {
82
- defaultLineHeight: string;
83
- paragraphLineHeight: string;
84
- heroBannerLineHeight: string;
85
- heroBannerMobileLineHeight: string;
86
- h1LineHeight: string;
87
- h2LineHeight: string;
88
- h2MobileLineHeight: string;
89
- h3LineHeight: string;
90
- h4LineHeight: string;
91
- h5LineHeight: string;
82
+ default: string;
83
+ xl: string;
84
+ s: string;
85
+ xs: string;
86
+ xxs: string;
87
+ auto: string;
88
+ h1XL: string;
89
+ h1L: string;
90
+ h1M: string;
91
+ h1S: string;
92
+ h2M: string;
93
+ h2S: string;
94
+ h3: string;
95
+ h4: string;
96
+ h5: string;
97
+ h1: string;
98
+ h2: string;
92
99
  };
93
100
  media: Record<string | number, (l: TemplateStringsArray, ...p: any[]) => string>;
94
101
  }>>;
102
+ export declare const CheckboxInput_RadioInput: import("styled-components").StyledComponent<"input", {
103
+ base: {
104
+ baseHeight: {
105
+ value: number;
106
+ unit: string;
107
+ };
108
+ baseWidth: {
109
+ value: number;
110
+ unit: string;
111
+ };
112
+ };
113
+ breakpoints: import("./themeComponents/breakpoints").ViewBreakpoints;
114
+ button: {
115
+ border: string;
116
+ };
117
+ color: {
118
+ black: string;
119
+ white: string;
120
+ text: string;
121
+ hotPink: string;
122
+ waterBlue: string;
123
+ melonYellow: string;
124
+ slateGray: string;
125
+ grayWhite: string;
126
+ hotPinkHover: string;
127
+ waterBlueHover: string;
128
+ pink1: string;
129
+ pink2: string;
130
+ pinkday: string;
131
+ info: string;
132
+ error: string;
133
+ success: string;
134
+ warning: string;
135
+ grayBg: string;
136
+ gray80: string;
137
+ gray70: string;
138
+ gray55: string;
139
+ gray40: string;
140
+ gray25: string;
141
+ gray15: string;
142
+ gray10: string;
143
+ gray5: string;
144
+ };
145
+ fontFamily: {
146
+ default: string;
147
+ heading: string;
148
+ numerals: string;
149
+ };
150
+ fontSize: {
151
+ default: string;
152
+ xl: string;
153
+ l: string;
154
+ s: string;
155
+ xs: string;
156
+ h1XL: string;
157
+ h1L: string;
158
+ h1M: string;
159
+ h1S: string;
160
+ h2M: string;
161
+ h2S: string;
162
+ h3: string;
163
+ h4: string;
164
+ h5: string;
165
+ h1: string;
166
+ h2: string;
167
+ };
168
+ fontWeight: {
169
+ book: number;
170
+ medium: number;
171
+ bold: number;
172
+ black: number;
173
+ };
174
+ form: {
175
+ smallSelectWidth: string;
176
+ smallSelectHeight: string;
177
+ };
178
+ grid: {
179
+ gutter: string;
180
+ };
181
+ lineHeight: {
182
+ default: string;
183
+ xl: string;
184
+ s: string;
185
+ xs: string;
186
+ xxs: string;
187
+ auto: string;
188
+ h1XL: string;
189
+ h1L: string;
190
+ h1M: string;
191
+ h1S: string;
192
+ h2M: string;
193
+ h2S: string;
194
+ h3: string;
195
+ h4: string;
196
+ h5: string;
197
+ h1: string;
198
+ h2: string;
199
+ };
200
+ media: Record<string | number, (l: TemplateStringsArray, ...p: any[]) => string>;
201
+ }, {}, never>;
95
202
  declare const _default: import("styled-components").GlobalStyleComponent<{}, {
96
203
  base: {
97
204
  baseHeight: {
@@ -105,12 +212,7 @@ declare const _default: import("styled-components").GlobalStyleComponent<{}, {
105
212
  };
106
213
  breakpoints: import("./themeComponents/breakpoints").ViewBreakpoints;
107
214
  button: {
108
- buttonBorderWidth: string;
109
- buttonPadding: string;
110
- smallButtonPadding: string;
111
- buttonLineHeight: string;
112
- buttonWidth: string;
113
- buttonSmallWidth: string;
215
+ border: string;
114
216
  };
115
217
  color: {
116
218
  black: string;
@@ -141,22 +243,27 @@ declare const _default: import("styled-components").GlobalStyleComponent<{}, {
141
243
  gray5: string;
142
244
  };
143
245
  fontFamily: {
144
- baseFontFamily: string;
246
+ default: string;
247
+ heading: string;
248
+ numerals: string;
145
249
  };
146
250
  fontSize: {
147
- defaultFontSize: string;
148
- smallFontSize: string;
149
- extraSmallFontSize: string;
150
- xsFontSize: string;
151
- xxsFontSize: string;
152
- h1FontSize: string;
153
- h2FontSize: string;
154
- h2MobileFontSize: string;
155
- h3FontSize: string;
156
- h4FontSize: string;
157
- h5FontSize: string;
158
- heroBannerTitleFontSize: string;
159
- heroBannerTitleMobileFontSize: string;
251
+ default: string;
252
+ xl: string;
253
+ l: string;
254
+ s: string;
255
+ xs: string;
256
+ h1XL: string;
257
+ h1L: string;
258
+ h1M: string;
259
+ h1S: string;
260
+ h2M: string;
261
+ h2S: string;
262
+ h3: string;
263
+ h4: string;
264
+ h5: string;
265
+ h1: string;
266
+ h2: string;
160
267
  };
161
268
  fontWeight: {
162
269
  book: number;
@@ -172,16 +279,23 @@ declare const _default: import("styled-components").GlobalStyleComponent<{}, {
172
279
  gutter: string;
173
280
  };
174
281
  lineHeight: {
175
- defaultLineHeight: string;
176
- paragraphLineHeight: string;
177
- heroBannerLineHeight: string;
178
- heroBannerMobileLineHeight: string;
179
- h1LineHeight: string;
180
- h2LineHeight: string;
181
- h2MobileLineHeight: string;
182
- h3LineHeight: string;
183
- h4LineHeight: string;
184
- h5LineHeight: string;
282
+ default: string;
283
+ xl: string;
284
+ s: string;
285
+ xs: string;
286
+ xxs: string;
287
+ auto: string;
288
+ h1XL: string;
289
+ h1L: string;
290
+ h1M: string;
291
+ h1S: string;
292
+ h2M: string;
293
+ h2S: string;
294
+ h3: string;
295
+ h4: string;
296
+ h5: string;
297
+ h1: string;
298
+ h2: string;
185
299
  };
186
300
  media: Record<string | number, (l: TemplateStringsArray, ...p: any[]) => string>;
187
301
  }>;
@@ -16,10 +16,10 @@ const globalStyles = styled.css `
16
16
  body {
17
17
  margin: 0;
18
18
  padding: 0;
19
- font-family: ${props => props.theme.fontFamily.baseFontFamily};
19
+ font-family: ${props => props.theme.fontFamily.default};
20
20
  -webkit-font-smoothing: antialiased;
21
21
  -moz-osx-font-smoothing: grayscale;
22
- font-size: 1rem;
22
+ font-size: ${props => props.theme.fontSize.default};
23
23
  color: ${props => props.theme.color.text};
24
24
  }
25
25
 
@@ -40,10 +40,15 @@ const globalStyles = styled.css `
40
40
  }
41
41
 
42
42
  b,
43
- strong {
43
+ strong,
44
+ .dnasg-fw-bold {
44
45
  font-weight: ${props => props.theme.fontWeight.bold};
45
46
  }
46
47
 
48
+ .dnasg-fw-medium {
49
+ font-weight: ${props => props.theme.fontWeight.medium};
50
+ }
51
+
47
52
  h1,
48
53
  h2,
49
54
  h3,
@@ -51,200 +56,185 @@ const globalStyles = styled.css `
51
56
  h5,
52
57
  h6 {
53
58
  margin: 1rem 0 0.5rem;
54
- font-weight: ${props => props.theme.fontWeight.black};
59
+ font-weight: ${props => props.theme.fontWeight.bold};
55
60
  }
56
61
 
57
62
  h1,
58
63
  .h1 {
59
- font-size: ${props => props.theme.fontSize.h2FontSize};
60
- line-height: ${props => props.theme.lineHeight.h2LineHeight};
64
+ font-family: ${props => props.theme.fontFamily.heading};
65
+ font-size: ${props => props.theme.fontSize.h1S};
66
+ line-height: ${props => props.theme.lineHeight.h1S};
61
67
 
62
- ${({ theme }) => styledUtils.media.xs `
63
- font-size: ${theme.fontSize.h1FontSize};
64
- line-height: ${theme.lineHeight.h1LineHeight};
68
+ ${({ theme }) => styledUtils.media.md `
69
+ font-size: ${theme.fontSize.h1L};
70
+ line-height: ${theme.lineHeight.h1L};
65
71
  `}
72
+
73
+ &.xl {
74
+ font-size: ${props => props.theme.fontSize.h1XL};
75
+ line-height: ${props => props.theme.lineHeight.h1XL};
76
+ font-weight: ${props => props.theme.fontWeight.black};
77
+ }
78
+
79
+ &.l {
80
+ font-size: ${props => props.theme.fontSize.h1L};
81
+ line-height: ${props => props.theme.lineHeight.h1L};
82
+ }
83
+
84
+ &.m {
85
+ font-size: ${props => props.theme.fontSize.h1M};
86
+ line-height: ${props => props.theme.lineHeight.h1M};
87
+ }
88
+
89
+ &.s {
90
+ font-size: ${props => props.theme.fontSize.h1S};
91
+ line-height: ${props => props.theme.lineHeight.h1S};
92
+ }
66
93
  }
67
94
 
68
95
  h2,
69
96
  .h2 {
70
- font-size: ${props => props.theme.fontSize.h2MobileFontSize};
71
- line-height: ${props => props.theme.lineHeight.h2MobileLineHeight};
72
- ${({ theme }) => styledUtils.media.xs `
73
- font-size: ${theme.fontSize.h2FontSize};
74
- line-height: ${theme.lineHeight.h2LineHeight};
97
+ font-family: ${props => props.theme.fontFamily.heading};
98
+ font-size: ${props => props.theme.fontSize.h2S};
99
+ line-height: ${props => props.theme.lineHeight.h2S};
100
+
101
+ ${({ theme }) => styledUtils.media.md `
102
+ font-size: ${theme.fontSize.h2M};
103
+ line-height: ${theme.lineHeight.h2M};
75
104
  `};
105
+
106
+ &.m {
107
+ font-size: ${props => props.theme.fontSize.h2M};
108
+ line-height: ${props => props.theme.lineHeight.h2M};
109
+ }
110
+
111
+ &.s {
112
+ font-size: ${props => props.theme.fontSize.h2S};
113
+ line-height: ${props => props.theme.lineHeight.h2S};
114
+ }
76
115
  }
77
116
 
78
117
  h3,
79
118
  .h3 {
80
- font-size: ${props => props.theme.fontSize.h3FontSize};
81
- line-height: ${props => props.theme.lineHeight.h3LineHeight};
119
+ font-family: ${props => props.theme.fontFamily.default};
120
+ font-size: ${props => props.theme.fontSize.h3};
121
+ line-height: ${props => props.theme.lineHeight.h3};
82
122
  }
83
123
 
84
124
  h4,
85
125
  .h4 {
86
- font-size: ${props => props.theme.fontSize.h4FontSize};
87
- line-height: ${props => props.theme.lineHeight.h4LineHeight};
126
+ font-family: ${props => props.theme.fontFamily.default};
127
+ font-size: ${props => props.theme.fontSize.h4};
128
+ line-height: ${props => props.theme.lineHeight.h4};
88
129
  }
89
130
 
90
131
  h5,
91
132
  .h5 {
92
- font-size: ${props => props.theme.fontSize.h5FontSize};
93
- line-height: ${props => props.theme.lineHeight.h5LineHeight};
133
+ font-family: ${props => props.theme.fontFamily.default};
134
+ font-size: ${props => props.theme.fontSize.h5};
135
+ line-height: ${props => props.theme.lineHeight.h5};
94
136
  }
95
137
 
96
138
  p {
97
139
  margin-top: 0;
98
140
  margin-bottom: 1em;
99
- line-height: ${props => props.theme.lineHeight.paragraphLineHeight};
100
- }
101
-
102
- code {
103
- font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
104
- }
105
- `;
106
- const styleguideGlobalStyles = styled.css `
107
- .rsg-logo-wrapper {
108
- display: flex;
109
- align-items: center;
110
- }
141
+ line-height: ${props => props.theme.lineHeight.default};
111
142
 
112
- .rsg-logo-name {
113
- flex: 1;
114
- color: ${props => props.theme.color.white};
115
- font-weight: ${props => props.theme.fontWeight.bold};
116
- padding: ${props => styledUtils.getMultipliedSize(props.theme.base.baseWidth, 1.5)};
117
- }
118
-
119
- .rsg-logo-version {
120
- color: ${props => props.theme.color.white};
121
- padding: ${props => styledUtils.getMultipliedSize(props.theme.base.baseWidth, 1.5)} 0;
122
- }
143
+ &.no-margin {
144
+ margin-bottom: 0;
145
+ }
123
146
 
124
- .dark-container {
125
- background-color: ${props => props.theme.color.gray80};
126
- color: ${props => props.theme.color.white};
127
- }
147
+ &.par-lead {
148
+ font-size: ${props => props.theme.fontSize.xl};
149
+ line-height: ${props => props.theme.lineHeight.xl};
150
+ }
128
151
 
129
- .light-container,
130
- .dark-container {
131
- position: relative;
132
- padding: ${({ theme: { base: { baseWidth }, }, }) => `${styledUtils.getMultipliedSize(baseWidth, 1.5)}
133
- ${styledUtils.getMultipliedSize(baseWidth, 2.5)}
134
- ${styledUtils.getMultipliedSize(baseWidth, 0.5)}
135
- ${styledUtils.getMultipliedSize(baseWidth, 1.5)}`};
152
+ &.par-s {
153
+ color: ${props => props.theme.color.gray55};
154
+ font-size: ${props => props.theme.fontSize.s};
155
+ line-height: ${props => props.theme.lineHeight.s};
156
+ font-weight: ${props => props.theme.fontWeight.medium};
157
+ }
136
158
 
137
- ${() => styledUtils.media.sm `
138
- float: left;
139
- width: 50%;
140
- `};
141
- }
142
- // helper class for adding some spacing between elements in preview
143
- .padded > * {
144
- margin: ${({ theme: { base: { baseWidth }, }, }) => `0
145
- ${styledUtils.getMultipliedSize(baseWidth, 0.5)}
146
- ${styledUtils.getMultipliedSize(baseWidth, 1)}
147
- ${styledUtils.getMultipliedSize(baseWidth, 0.5)}`};
159
+ &.par-xs {
160
+ color: ${props => props.theme.color.gray55};
161
+ font-size: ${props => props.theme.fontSize.xs};
162
+ line-height: ${props => props.theme.lineHeight.xs};
163
+ font-weight: ${props => props.theme.fontWeight.medium};
164
+ }
148
165
  }
149
166
 
150
- .horizontal-spacer {
151
- margin: ${props => styledUtils.getMultipliedSize(props.theme.base.baseWidth, 1.5)} 0;
167
+ .dnasg-label {
168
+ font-size: ${props => props.theme.fontSize.xs};
169
+ line-height: ${props => props.theme.lineHeight.auto};
170
+ font-weight: ${props => props.theme.fontWeight.medium};
171
+ text-transform: uppercase;
152
172
  }
153
173
 
154
- .width-200 {
155
- width: 200px;
174
+ .dnasg-price {
175
+ font-family: ${props => props.theme.fontFamily.numerals};
156
176
  }
157
177
 
158
- .flex-center {
159
- display: flex;
160
- align-items: center;
178
+ code {
179
+ font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
161
180
  }
162
-
163
- .flex-wrapper {
181
+ `;
182
+ const CheckboxInput_RadioInput = styled['default'].input `
183
+ display: inline-grid;
184
+ appearance: none;
185
+ place-content: center;
186
+ float: left;
187
+ margin: 0;
188
+ cursor: pointer;
189
+ font-family: ${props => props.theme.fontFamily.default};
190
+ font-size: ${props => props.theme.fontSize.default};
191
+ line-height: ${props => props.theme.lineHeight.default};
192
+ width: ${props => styledUtils.getMultipliedSize(props.theme.base.baseWidth, 2)};
193
+ height: ${props => styledUtils.getMultipliedSize(props.theme.base.baseWidth, 2)};
194
+ color: ${props => props.theme.color.gray25};
195
+ border: ${props => styledUtils.getDividedSize(props.theme.base.baseWidth, 5)} solid currentColor;
196
+ background-color: transparent;
197
+
198
+ & + label {
199
+ cursor: pointer;
164
200
  display: flex;
165
- flex-direction: row;
166
- flex-wrap: wrap;
167
- margin: 0;
168
- padding: ${props => styledUtils.getMultipliedSize(props.theme.base.baseWidth, 1.5)};
169
-
170
- li {
171
- flex: 1;
172
- box-sizing: border-box;
173
- text-align: center;
174
- list-style: none;
175
-
176
- &.colorswatch {
177
- height: 13.75rem;
178
- flex-basis: 13.75rem;
179
- }
180
-
181
- &.icon {
182
- height: 7.75rem;
183
- flex-basis: 11.75rem;
184
- }
185
- }
186
- }
187
-
188
- .striped-bg {
189
- background: repeating-linear-gradient(
190
- 45deg,
191
- ${props => props.theme.color.white},
192
- ${props => props.theme.color.white}
193
- ${props => styledUtils.getMultipliedSize(props.theme.base.baseWidth, 1)},
194
- ${props => props.theme.color.grayBg}
195
- ${props => styledUtils.getMultipliedSize(props.theme.base.baseWidth, 1)},
196
- ${props => props.theme.color.grayBg}
197
- ${props => styledUtils.getMultipliedSize(props.theme.base.baseWidth, 2)}
198
- );
201
+ padding-left: ${props => styledUtils.getMultipliedSize(props.theme.base.baseWidth, 1)};
199
202
  }
200
203
 
201
- .colorswatch div {
202
- height: 9.375rem;
204
+ &::before {
205
+ content: '';
206
+ transform: scale(0);
207
+ background-color: currentColor;
203
208
  }
204
209
 
205
- .colorswatch p {
206
- margin-bottom: 0;
207
- }
208
-
209
- .text-font-wrapper {
210
- display: block;
211
- margin: 0;
212
- border-bottom: 1px solid ${props => props.theme.color.grayWhite};
213
- padding: ${props => styledUtils.getMultipliedSize(props.theme.base.baseHeight, 2)} 0;
214
-
215
- .text-a {
216
- float: left;
217
- font-size: ${props => props.theme.fontSize.h1FontSize};
218
- width: 6.25rem;
219
- }
210
+ &:checked {
211
+ color: ${props => props.theme.color.hotPink};
212
+ border-color: ${props => props.theme.color.hotPink};
220
213
 
221
- .text-font {
222
- line-height: 3.125;
214
+ &::before {
215
+ transform: scale(1);
223
216
  }
224
217
  }
225
218
 
226
- .demo-a-label {
227
- font-size: ${props => props.theme.fontSize.xsFontSize};
228
- color: ${props => props.theme.color.gray40};
229
- }
219
+ &:disabled {
220
+ cursor: not-allowed;
221
+ color: ${props => props.theme.color.gray15};
222
+ border-color: ${props => props.theme.color.gray15};
230
223
 
231
- .demo-desktop {
232
- display: none;
233
- ${styledUtils.media.xs `
234
- display: block;
235
- `}
224
+ & + label {
225
+ cursor: not-allowed;
226
+ color: ${props => props.theme.color.gray15};
227
+ }
236
228
  }
237
229
 
238
- .demo-mobile {
239
- display: block;
240
- ${styledUtils.media.xs `
241
- display: none;
242
- `}
230
+ &:disabled:checked {
231
+ color: ${props => props.theme.color.pink2};
232
+ border-color: ${props => props.theme.color.pink2};
243
233
  }
244
234
  `;
245
235
  styled.createGlobalStyle `
246
236
  ${globalStyles}
247
- ${styleguideGlobalStyles}
248
237
  `;
249
238
 
239
+ exports.CheckboxInput_RadioInput = CheckboxInput_RadioInput;
250
240
  exports.globalStyles = globalStyles;