@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.
- package/build/cjs/components/Accordion/Accordion.d.ts +27 -15
- package/build/cjs/components/Accordion/Accordion.js +29 -12
- package/build/cjs/components/Accordion/AccordionItem.d.ts +14 -29
- package/build/cjs/components/Accordion/AccordionItem.js +29 -52
- package/build/cjs/components/AmountSelector/AmountSelector.js +3 -4
- package/build/cjs/components/Buttons/ButtonBasicStyles.d.ts +37 -30
- package/build/cjs/components/Buttons/ButtonBasicStyles.js +10 -14
- package/build/cjs/components/Buttons/ButtonDefault.js +6 -2
- package/build/cjs/components/Buttons/ButtonIconPrimaryStyles.d.ts +37 -30
- package/build/cjs/components/Buttons/ButtonIconStyles.d.ts +37 -30
- package/build/cjs/components/Buttons/ButtonPrimary.js +6 -2
- package/build/cjs/components/Buttons/ButtonPrimaryStyles.d.ts +37 -30
- package/build/cjs/components/Buttons/ButtonSecondary.js +7 -3
- package/build/cjs/components/Buttons/ButtonSecondaryStyles.d.ts +37 -30
- package/build/cjs/components/Buttons/ButtonTertiary.js +7 -3
- package/build/cjs/components/Buttons/ButtonTertiaryStyles.d.ts +37 -30
- package/build/cjs/components/Buttons/CloseButton.d.ts +37 -30
- package/build/cjs/components/Card/Card.js +4 -2
- package/build/cjs/components/Card/CardRow.js +3 -3
- package/build/cjs/components/Checkbox/Checkbox.d.ts +38 -12
- package/build/cjs/components/Checkbox/Checkbox.js +37 -70
- package/build/cjs/components/DnaLogo/DnaLogo.d.ts +37 -40
- package/build/cjs/components/Footer/Components/FooterComponents.js +3 -2
- package/build/cjs/components/Helper/Helper.js +2 -1
- package/build/cjs/components/Icon/Icon.d.ts +39 -30
- package/build/cjs/components/Icon/Icons.d.ts +1 -4
- package/build/cjs/components/Icon/Icons.js +3 -7
- package/build/cjs/components/Input/Input.d.ts +102 -13
- package/build/cjs/components/Input/Input.js +57 -58
- package/build/cjs/components/Label/Label.js +2 -3
- package/build/cjs/components/LabelText/LabelText.d.ts +38 -30
- package/build/cjs/components/LabelText/LabelText.js +1 -1
- package/build/cjs/components/MainNavigation/ChildComponents/BusinessMenu.js +1 -1
- package/build/cjs/components/MainNavigation/ChildComponents/DesktopMenu.js +10 -4
- package/build/cjs/components/MainNavigation/ChildComponents/HeaderNavigationElements.d.ts +37 -30
- package/build/cjs/components/MainNavigation/ChildComponents/LanguageSelector.js +2 -2
- package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +37 -30
- package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.js +1 -4
- package/build/cjs/components/MainNavigation/ChildComponents/MobileMenu.js +1 -1
- package/build/cjs/components/MainNavigation/ChildComponents/Ribbon.js +1 -1
- package/build/cjs/components/MainNavigation/MainNavigation.js +1 -1
- package/build/cjs/components/MainNavigation/globalNavStyles.d.ts +148 -120
- package/build/cjs/components/Notification/Notification.d.ts +1 -5
- package/build/cjs/components/Notification/Notification.js +1 -4
- package/build/cjs/components/NotificationBadge/NotificationBadge.d.ts +37 -30
- package/build/cjs/components/NotificationBadge/NotificationBadge.js +1 -1
- package/build/cjs/components/PixelLoader/PixelLoaderStyles.d.ts +74 -60
- package/build/cjs/components/ProgressIndicator/ProgressIndicator.js +3 -3
- package/build/cjs/components/RadioButton/RadioButton.d.ts +33 -17
- package/build/cjs/components/RadioButton/RadioButton.js +12 -57
- package/build/cjs/components/ReadMore/ReadMore.js +2 -7
- package/build/cjs/components/Ribbon/Ribbon.js +2 -2
- package/build/cjs/components/Search/Search.js +2 -1
- package/build/cjs/components/SecondaryNavigation/SecondaryNavigation.js +2 -2
- package/build/cjs/components/Selectbox/Selectbox.d.ts +102 -13
- package/build/cjs/components/Selectbox/Selectbox.js +40 -49
- package/build/cjs/components/Tabs/Tab.d.ts +37 -30
- package/build/cjs/components/Tabs/Tab.js +3 -2
- package/build/cjs/components/Tabs/Tabs.d.ts +40 -30
- package/build/cjs/components/Textarea/Textarea.js +4 -3
- package/build/cjs/components/Tooltip/Tooltip.d.ts +37 -30
- package/build/cjs/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.d.ts +74 -60
- package/build/cjs/components/index.d.ts +3 -2
- package/build/cjs/index.js +2 -2
- package/build/cjs/themes/globalStyles.d.ts +174 -60
- package/build/cjs/themes/globalStyles.js +132 -142
- package/build/cjs/themes/styled.d.ts +259 -210
- package/build/cjs/themes/theme.d.ts +37 -30
- package/build/cjs/themes/themeComponents/buttons.d.ts +1 -6
- package/build/cjs/themes/themeComponents/buttons.js +1 -6
- package/build/cjs/themes/themeComponents/fontFamily.d.ts +3 -1
- package/build/cjs/themes/themeComponents/fontFamily.js +3 -1
- package/build/cjs/themes/themeComponents/fontSize.d.ts +18 -15
- package/build/cjs/themes/themeComponents/fontSize.js +20 -14
- package/build/cjs/themes/themeComponents/lineHeight.d.ts +19 -12
- package/build/cjs/themes/themeComponents/lineHeight.js +21 -11
- package/build/es/components/Accordion/Accordion.d.ts +27 -15
- package/build/es/components/Accordion/Accordion.js +29 -12
- package/build/es/components/Accordion/AccordionItem.d.ts +14 -29
- package/build/es/components/Accordion/AccordionItem.js +31 -54
- package/build/es/components/AmountSelector/AmountSelector.js +3 -4
- package/build/es/components/Buttons/ButtonBasicStyles.d.ts +37 -30
- package/build/es/components/Buttons/ButtonBasicStyles.js +10 -14
- package/build/es/components/Buttons/ButtonDefault.js +6 -2
- package/build/es/components/Buttons/ButtonIconPrimaryStyles.d.ts +37 -30
- package/build/es/components/Buttons/ButtonIconStyles.d.ts +37 -30
- package/build/es/components/Buttons/ButtonPrimary.js +6 -2
- package/build/es/components/Buttons/ButtonPrimaryStyles.d.ts +37 -30
- package/build/es/components/Buttons/ButtonSecondary.js +7 -3
- package/build/es/components/Buttons/ButtonSecondaryStyles.d.ts +37 -30
- package/build/es/components/Buttons/ButtonTertiary.js +7 -3
- package/build/es/components/Buttons/ButtonTertiaryStyles.d.ts +37 -30
- package/build/es/components/Buttons/CloseButton.d.ts +37 -30
- package/build/es/components/Card/Card.js +4 -2
- package/build/es/components/Card/CardRow.js +3 -3
- package/build/es/components/Checkbox/Checkbox.d.ts +38 -12
- package/build/es/components/Checkbox/Checkbox.js +39 -72
- package/build/es/components/DnaLogo/DnaLogo.d.ts +37 -40
- package/build/es/components/Footer/Components/FooterComponents.js +3 -2
- package/build/es/components/Helper/Helper.js +2 -1
- package/build/es/components/Icon/Icon.d.ts +39 -30
- package/build/es/components/Icon/Icons.d.ts +1 -4
- package/build/es/components/Icon/Icons.js +3 -7
- package/build/es/components/Input/Input.d.ts +102 -13
- package/build/es/components/Input/Input.js +57 -58
- package/build/es/components/Label/Label.js +2 -3
- package/build/es/components/LabelText/LabelText.d.ts +38 -30
- package/build/es/components/LabelText/LabelText.js +1 -1
- package/build/es/components/MainNavigation/ChildComponents/BusinessMenu.js +1 -1
- package/build/es/components/MainNavigation/ChildComponents/DesktopMenu.js +10 -4
- package/build/es/components/MainNavigation/ChildComponents/HeaderNavigationElements.d.ts +37 -30
- package/build/es/components/MainNavigation/ChildComponents/LanguageSelector.js +2 -2
- package/build/es/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +37 -30
- package/build/es/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.js +2 -5
- package/build/es/components/MainNavigation/ChildComponents/MobileMenu.js +1 -1
- package/build/es/components/MainNavigation/ChildComponents/Ribbon.js +1 -1
- package/build/es/components/MainNavigation/MainNavigation.js +1 -1
- package/build/es/components/MainNavigation/globalNavStyles.d.ts +148 -120
- package/build/es/components/Notification/Notification.d.ts +1 -5
- package/build/es/components/Notification/Notification.js +1 -4
- package/build/es/components/NotificationBadge/NotificationBadge.d.ts +37 -30
- package/build/es/components/NotificationBadge/NotificationBadge.js +1 -1
- package/build/es/components/PixelLoader/PixelLoaderStyles.d.ts +74 -60
- package/build/es/components/ProgressIndicator/ProgressIndicator.js +3 -3
- package/build/es/components/RadioButton/RadioButton.d.ts +33 -17
- package/build/es/components/RadioButton/RadioButton.js +12 -57
- package/build/es/components/ReadMore/ReadMore.js +2 -7
- package/build/es/components/Ribbon/Ribbon.js +2 -2
- package/build/es/components/Search/Search.js +2 -1
- package/build/es/components/SecondaryNavigation/SecondaryNavigation.js +2 -2
- package/build/es/components/Selectbox/Selectbox.d.ts +102 -13
- package/build/es/components/Selectbox/Selectbox.js +40 -49
- package/build/es/components/Tabs/Tab.d.ts +37 -30
- package/build/es/components/Tabs/Tab.js +3 -2
- package/build/es/components/Tabs/Tabs.d.ts +40 -30
- package/build/es/components/Textarea/Textarea.js +4 -3
- package/build/es/components/Tooltip/Tooltip.d.ts +37 -30
- package/build/es/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.d.ts +74 -60
- package/build/es/components/index.d.ts +3 -2
- package/build/es/index.js +1 -1
- package/build/es/themes/globalStyles.d.ts +174 -60
- package/build/es/themes/globalStyles.js +134 -145
- package/build/es/themes/styled.d.ts +259 -210
- package/build/es/themes/theme.d.ts +37 -30
- package/build/es/themes/themeComponents/buttons.d.ts +1 -6
- package/build/es/themes/themeComponents/buttons.js +1 -6
- package/build/es/themes/themeComponents/fontFamily.d.ts +3 -1
- package/build/es/themes/themeComponents/fontFamily.js +3 -1
- package/build/es/themes/themeComponents/fontSize.d.ts +18 -15
- package/build/es/themes/themeComponents/fontSize.js +20 -14
- package/build/es/themes/themeComponents/lineHeight.d.ts +19 -12
- package/build/es/themes/themeComponents/lineHeight.js +21 -11
- package/package.json +2 -2
- package/build/cjs/components/Accordion/index.d.ts +0 -2
- 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
|
-
|
|
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
|
-
|
|
46
|
+
default: string;
|
|
47
|
+
heading: string;
|
|
48
|
+
numerals: string;
|
|
52
49
|
};
|
|
53
50
|
fontSize: {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
|
|
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
|
-
|
|
246
|
+
default: string;
|
|
247
|
+
heading: string;
|
|
248
|
+
numerals: string;
|
|
145
249
|
};
|
|
146
250
|
fontSize: {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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.
|
|
19
|
+
font-family: ${props => props.theme.fontFamily.default};
|
|
20
20
|
-webkit-font-smoothing: antialiased;
|
|
21
21
|
-moz-osx-font-smoothing: grayscale;
|
|
22
|
-
font-size:
|
|
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.
|
|
59
|
+
font-weight: ${props => props.theme.fontWeight.bold};
|
|
55
60
|
}
|
|
56
61
|
|
|
57
62
|
h1,
|
|
58
63
|
.h1 {
|
|
59
|
-
font-
|
|
60
|
-
|
|
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.
|
|
63
|
-
font-size: ${theme.fontSize.
|
|
64
|
-
line-height: ${theme.lineHeight.
|
|
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-
|
|
71
|
-
|
|
72
|
-
${
|
|
73
|
-
|
|
74
|
-
|
|
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-
|
|
81
|
-
|
|
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-
|
|
87
|
-
|
|
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-
|
|
93
|
-
|
|
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.
|
|
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
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
147
|
+
&.par-lead {
|
|
148
|
+
font-size: ${props => props.theme.fontSize.xl};
|
|
149
|
+
line-height: ${props => props.theme.lineHeight.xl};
|
|
150
|
+
}
|
|
128
151
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
${
|
|
134
|
-
|
|
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
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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
|
-
.
|
|
151
|
-
|
|
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
|
-
.
|
|
155
|
-
|
|
174
|
+
.dnasg-price {
|
|
175
|
+
font-family: ${props => props.theme.fontFamily.numerals};
|
|
156
176
|
}
|
|
157
177
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
align-items: center;
|
|
178
|
+
code {
|
|
179
|
+
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
|
|
161
180
|
}
|
|
162
|
-
|
|
163
|
-
|
|
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
|
-
|
|
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
|
-
|
|
202
|
-
|
|
204
|
+
&::before {
|
|
205
|
+
content: '';
|
|
206
|
+
transform: scale(0);
|
|
207
|
+
background-color: currentColor;
|
|
203
208
|
}
|
|
204
209
|
|
|
205
|
-
|
|
206
|
-
|
|
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
|
-
|
|
222
|
-
|
|
214
|
+
&::before {
|
|
215
|
+
transform: scale(1);
|
|
223
216
|
}
|
|
224
217
|
}
|
|
225
218
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
color: ${props => props.theme.color.
|
|
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
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
`}
|
|
224
|
+
& + label {
|
|
225
|
+
cursor: not-allowed;
|
|
226
|
+
color: ${props => props.theme.color.gray15};
|
|
227
|
+
}
|
|
236
228
|
}
|
|
237
229
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
${
|
|
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;
|