@entur/typography 1.6.10 → 1.6.13
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/CHANGELOG.md +14 -0
- package/dist/BaseHeading.d.ts +1 -3
- package/dist/CodeText.d.ts +1 -3
- package/dist/EmphasizedText.d.ts +1 -3
- package/dist/Heading1.d.ts +1 -3
- package/dist/Heading2.d.ts +1 -3
- package/dist/Heading3.d.ts +1 -3
- package/dist/Heading4.d.ts +1 -3
- package/dist/Heading5.d.ts +1 -3
- package/dist/Heading6.d.ts +1 -3
- package/dist/Label.d.ts +1 -3
- package/dist/LeadParagraph.d.ts +1 -3
- package/dist/Link.d.ts +1 -3
- package/dist/Paragraph.d.ts +1 -3
- package/dist/PreformattedText.d.ts +1 -3
- package/dist/SmallText.d.ts +1 -3
- package/dist/StrongText.d.ts +1 -3
- package/dist/SubLabel.d.ts +1 -3
- package/dist/SubParagraph.d.ts +1 -3
- package/dist/styles.css +85 -54
- package/dist/typography.cjs.development.js +148 -104
- package/dist/typography.cjs.development.js.map +1 -1
- package/dist/typography.cjs.production.min.js +1 -1
- package/dist/typography.cjs.production.min.js.map +1 -1
- package/dist/typography.esm.js +123 -82
- package/dist/typography.esm.js.map +1 -1
- package/package.json +8 -9
package/dist/typography.esm.js
CHANGED
|
@@ -2,6 +2,24 @@ import { warnAboutMissingStyles } from '@entur/utils';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
|
|
5
|
+
function _extends() {
|
|
6
|
+
_extends = Object.assign || function (target) {
|
|
7
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
8
|
+
var source = arguments[i];
|
|
9
|
+
|
|
10
|
+
for (var key in source) {
|
|
11
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
12
|
+
target[key] = source[key];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return target;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
return _extends.apply(this, arguments);
|
|
21
|
+
}
|
|
22
|
+
|
|
5
23
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
6
24
|
if (source == null) return {};
|
|
7
25
|
var target = {};
|
|
@@ -17,36 +35,40 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
17
35
|
return target;
|
|
18
36
|
}
|
|
19
37
|
|
|
38
|
+
var _excluded$l = ["className"],
|
|
39
|
+
_excluded2 = ["className"];
|
|
20
40
|
var Blockquote = function Blockquote(_ref) {
|
|
21
41
|
var className = _ref.className,
|
|
22
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
42
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
23
43
|
|
|
24
|
-
return React.createElement("blockquote",
|
|
44
|
+
return React.createElement("blockquote", _extends({
|
|
25
45
|
className: classNames('eds-blockquote', className)
|
|
26
46
|
}, rest));
|
|
27
47
|
};
|
|
28
48
|
var BlockquoteFooter = function BlockquoteFooter(_ref2) {
|
|
29
49
|
var className = _ref2.className,
|
|
30
|
-
rest = _objectWithoutPropertiesLoose(_ref2,
|
|
50
|
+
rest = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
31
51
|
|
|
32
|
-
return React.createElement("footer",
|
|
52
|
+
return React.createElement("footer", _extends({
|
|
33
53
|
className: classNames('eds-blockquote__footer', className)
|
|
34
54
|
}, rest));
|
|
35
55
|
};
|
|
36
56
|
|
|
37
|
-
var
|
|
57
|
+
var _excluded$k = ["className", "as"];
|
|
58
|
+
var defaultElement$h = 'code';
|
|
38
59
|
var CodeText = function CodeText(_ref) {
|
|
39
60
|
var className = _ref.className,
|
|
40
61
|
as = _ref.as,
|
|
41
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
62
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
42
63
|
|
|
43
|
-
var Element = as || defaultElement;
|
|
44
|
-
return React.createElement(Element,
|
|
64
|
+
var Element = as || defaultElement$h;
|
|
65
|
+
return React.createElement(Element, _extends({
|
|
45
66
|
className: classNames('eds-code-text', className)
|
|
46
67
|
}, rest));
|
|
47
68
|
};
|
|
48
69
|
|
|
49
|
-
var
|
|
70
|
+
var _excluded$j = ["className", "margin", "as"];
|
|
71
|
+
var defaultElement$g = 'em';
|
|
50
72
|
var EmphasizedText = function EmphasizedText(_ref) {
|
|
51
73
|
var _classNames;
|
|
52
74
|
|
|
@@ -54,15 +76,16 @@ var EmphasizedText = function EmphasizedText(_ref) {
|
|
|
54
76
|
_ref$margin = _ref.margin,
|
|
55
77
|
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
56
78
|
as = _ref.as,
|
|
57
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
79
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
58
80
|
|
|
59
|
-
var Element = as || defaultElement$
|
|
60
|
-
return React.createElement(Element,
|
|
81
|
+
var Element = as || defaultElement$g;
|
|
82
|
+
return React.createElement(Element, _extends({
|
|
61
83
|
className: classNames('eds-emphasized-text', (_classNames = {}, _classNames["eds-emphasized-text--margin-top"] = margin === 'top', _classNames["eds-emphasized-text--margin-bottom"] = margin === 'bottom', _classNames["eds-emphasized-text--margin-none"] = margin === 'none', _classNames), className)
|
|
62
84
|
}, rest));
|
|
63
85
|
};
|
|
64
86
|
|
|
65
|
-
var
|
|
87
|
+
var _excluded$i = ["className", "level", "margin", "as"];
|
|
88
|
+
var defaultElement$f = 'h1';
|
|
66
89
|
var BaseHeading = function BaseHeading(_ref) {
|
|
67
90
|
var _classNames;
|
|
68
91
|
|
|
@@ -70,25 +93,26 @@ var BaseHeading = function BaseHeading(_ref) {
|
|
|
70
93
|
level = _ref.level,
|
|
71
94
|
margin = _ref.margin,
|
|
72
95
|
as = _ref.as,
|
|
73
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
96
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
74
97
|
|
|
75
|
-
var Element = as || defaultElement$
|
|
98
|
+
var Element = as || defaultElement$f;
|
|
76
99
|
var baseClass = "eds-h" + level;
|
|
77
|
-
return React.createElement(Element,
|
|
100
|
+
return React.createElement(Element, _extends({
|
|
78
101
|
className: classNames(baseClass, (_classNames = {}, _classNames[baseClass + "--margin-top"] = margin === 'top', _classNames[baseClass + "--margin-bottom"] = margin === 'bottom', _classNames[baseClass + "--margin-none"] = margin === 'none', _classNames), className)
|
|
79
102
|
}, rest));
|
|
80
103
|
};
|
|
81
104
|
|
|
82
|
-
var
|
|
105
|
+
var _excluded$h = ["margin", "children", "as"];
|
|
106
|
+
var defaultElement$e = 'h1';
|
|
83
107
|
var Heading1 = function Heading1(_ref) {
|
|
84
108
|
var _ref$margin = _ref.margin,
|
|
85
109
|
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
86
110
|
children = _ref.children,
|
|
87
111
|
as = _ref.as,
|
|
88
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
112
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
89
113
|
|
|
90
|
-
var Element = as || defaultElement$
|
|
91
|
-
return React.createElement(BaseHeading,
|
|
114
|
+
var Element = as || defaultElement$e;
|
|
115
|
+
return React.createElement(BaseHeading, _extends({
|
|
92
116
|
as: Element,
|
|
93
117
|
margin: margin
|
|
94
118
|
}, rest, {
|
|
@@ -96,16 +120,17 @@ var Heading1 = function Heading1(_ref) {
|
|
|
96
120
|
}), children);
|
|
97
121
|
};
|
|
98
122
|
|
|
99
|
-
var
|
|
123
|
+
var _excluded$g = ["margin", "children", "as"];
|
|
124
|
+
var defaultElement$d = 'h2';
|
|
100
125
|
var Heading2 = function Heading2(_ref) {
|
|
101
126
|
var _ref$margin = _ref.margin,
|
|
102
127
|
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
103
128
|
children = _ref.children,
|
|
104
129
|
as = _ref.as,
|
|
105
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
130
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
106
131
|
|
|
107
|
-
var Element = as || defaultElement$
|
|
108
|
-
return React.createElement(BaseHeading,
|
|
132
|
+
var Element = as || defaultElement$d;
|
|
133
|
+
return React.createElement(BaseHeading, _extends({
|
|
109
134
|
as: Element,
|
|
110
135
|
margin: margin
|
|
111
136
|
}, rest, {
|
|
@@ -113,16 +138,17 @@ var Heading2 = function Heading2(_ref) {
|
|
|
113
138
|
}), children);
|
|
114
139
|
};
|
|
115
140
|
|
|
116
|
-
var
|
|
141
|
+
var _excluded$f = ["margin", "children", "as"];
|
|
142
|
+
var defaultElement$c = 'h3';
|
|
117
143
|
var Heading3 = function Heading3(_ref) {
|
|
118
144
|
var _ref$margin = _ref.margin,
|
|
119
145
|
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
120
146
|
children = _ref.children,
|
|
121
147
|
as = _ref.as,
|
|
122
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
148
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
123
149
|
|
|
124
|
-
var Element = as || defaultElement$
|
|
125
|
-
return React.createElement(BaseHeading,
|
|
150
|
+
var Element = as || defaultElement$c;
|
|
151
|
+
return React.createElement(BaseHeading, _extends({
|
|
126
152
|
as: Element,
|
|
127
153
|
margin: margin
|
|
128
154
|
}, rest, {
|
|
@@ -130,16 +156,17 @@ var Heading3 = function Heading3(_ref) {
|
|
|
130
156
|
}), children);
|
|
131
157
|
};
|
|
132
158
|
|
|
133
|
-
var
|
|
159
|
+
var _excluded$e = ["margin", "children", "as"];
|
|
160
|
+
var defaultElement$b = 'h4';
|
|
134
161
|
var Heading4 = function Heading4(_ref) {
|
|
135
162
|
var _ref$margin = _ref.margin,
|
|
136
163
|
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
137
164
|
children = _ref.children,
|
|
138
165
|
as = _ref.as,
|
|
139
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
166
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
140
167
|
|
|
141
|
-
var Element = as || defaultElement$
|
|
142
|
-
return React.createElement(BaseHeading,
|
|
168
|
+
var Element = as || defaultElement$b;
|
|
169
|
+
return React.createElement(BaseHeading, _extends({
|
|
143
170
|
as: Element,
|
|
144
171
|
margin: margin
|
|
145
172
|
}, rest, {
|
|
@@ -147,16 +174,17 @@ var Heading4 = function Heading4(_ref) {
|
|
|
147
174
|
}), children);
|
|
148
175
|
};
|
|
149
176
|
|
|
150
|
-
var
|
|
177
|
+
var _excluded$d = ["margin", "children", "as"];
|
|
178
|
+
var defaultElement$a = 'h5';
|
|
151
179
|
var Heading5 = function Heading5(_ref) {
|
|
152
180
|
var _ref$margin = _ref.margin,
|
|
153
181
|
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
154
182
|
children = _ref.children,
|
|
155
183
|
as = _ref.as,
|
|
156
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
184
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
157
185
|
|
|
158
|
-
var Element = as || defaultElement$
|
|
159
|
-
return React.createElement(BaseHeading,
|
|
186
|
+
var Element = as || defaultElement$a;
|
|
187
|
+
return React.createElement(BaseHeading, _extends({
|
|
160
188
|
as: Element,
|
|
161
189
|
margin: margin
|
|
162
190
|
}, rest, {
|
|
@@ -164,16 +192,17 @@ var Heading5 = function Heading5(_ref) {
|
|
|
164
192
|
}), children);
|
|
165
193
|
};
|
|
166
194
|
|
|
167
|
-
var
|
|
195
|
+
var _excluded$c = ["margin", "children", "as"];
|
|
196
|
+
var defaultElement$9 = 'h6';
|
|
168
197
|
var Heading6 = function Heading6(_ref) {
|
|
169
198
|
var _ref$margin = _ref.margin,
|
|
170
199
|
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
171
200
|
children = _ref.children,
|
|
172
201
|
as = _ref.as,
|
|
173
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
202
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
174
203
|
|
|
175
|
-
var Element = as || defaultElement$
|
|
176
|
-
return React.createElement(BaseHeading,
|
|
204
|
+
var Element = as || defaultElement$9;
|
|
205
|
+
return React.createElement(BaseHeading, _extends({
|
|
177
206
|
as: Element,
|
|
178
207
|
margin: margin
|
|
179
208
|
}, rest, {
|
|
@@ -181,7 +210,8 @@ var Heading6 = function Heading6(_ref) {
|
|
|
181
210
|
}), children);
|
|
182
211
|
};
|
|
183
212
|
|
|
184
|
-
var
|
|
213
|
+
var _excluded$b = ["className", "margin", "as"];
|
|
214
|
+
var defaultElement$8 = 'label';
|
|
185
215
|
var Label = function Label(_ref) {
|
|
186
216
|
var _classNames;
|
|
187
217
|
|
|
@@ -189,15 +219,16 @@ var Label = function Label(_ref) {
|
|
|
189
219
|
_ref$margin = _ref.margin,
|
|
190
220
|
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
191
221
|
as = _ref.as,
|
|
192
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
222
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
193
223
|
|
|
194
|
-
var Element = as || defaultElement$
|
|
195
|
-
return React.createElement(Element,
|
|
224
|
+
var Element = as || defaultElement$8;
|
|
225
|
+
return React.createElement(Element, _extends({
|
|
196
226
|
className: classNames('eds-label', (_classNames = {}, _classNames["eds-label--margin-top"] = margin === 'top', _classNames["eds-label--margin-bottom"] = margin === 'bottom', _classNames["eds-label--margin-none"] = margin === 'none', _classNames), className)
|
|
197
227
|
}, rest));
|
|
198
228
|
};
|
|
199
229
|
|
|
200
|
-
var
|
|
230
|
+
var _excluded$a = ["className", "margin", "as"];
|
|
231
|
+
var defaultElement$7 = 'p';
|
|
201
232
|
var LeadParagraph = function LeadParagraph(_ref) {
|
|
202
233
|
var _classNames;
|
|
203
234
|
|
|
@@ -205,15 +236,16 @@ var LeadParagraph = function LeadParagraph(_ref) {
|
|
|
205
236
|
_ref$margin = _ref.margin,
|
|
206
237
|
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
207
238
|
as = _ref.as,
|
|
208
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
239
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
209
240
|
|
|
210
|
-
var Element = as || defaultElement$
|
|
211
|
-
return React.createElement(Element,
|
|
241
|
+
var Element = as || defaultElement$7;
|
|
242
|
+
return React.createElement(Element, _extends({
|
|
212
243
|
className: classNames('eds-lead-paragraph', (_classNames = {}, _classNames["eds-lead-paragraph--margin-top"] = margin === 'top', _classNames["eds-lead-paragraph--margin-bottom"] = margin === 'bottom', _classNames["eds-lead-paragraph--margin-none"] = margin === 'none', _classNames), className)
|
|
213
244
|
}, rest));
|
|
214
245
|
};
|
|
215
246
|
|
|
216
|
-
var
|
|
247
|
+
var _excluded$9 = ["className", "margin", "as"];
|
|
248
|
+
var defaultElement$6 = 'a';
|
|
217
249
|
var Link = function Link(_ref) {
|
|
218
250
|
var _classNames;
|
|
219
251
|
|
|
@@ -221,15 +253,16 @@ var Link = function Link(_ref) {
|
|
|
221
253
|
_ref$margin = _ref.margin,
|
|
222
254
|
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
223
255
|
as = _ref.as,
|
|
224
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
256
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
225
257
|
|
|
226
|
-
var Element = as || defaultElement$
|
|
227
|
-
return React.createElement(Element,
|
|
258
|
+
var Element = as || defaultElement$6;
|
|
259
|
+
return React.createElement(Element, _extends({
|
|
228
260
|
className: classNames('eds-link', (_classNames = {}, _classNames["eds-link--margin-top"] = margin === 'top', _classNames["eds-link--margin-bottom"] = margin === 'bottom', _classNames["eds-link--margin-none"] = margin === 'none', _classNames), className)
|
|
229
261
|
}, rest));
|
|
230
262
|
};
|
|
231
263
|
|
|
232
|
-
var
|
|
264
|
+
var _excluded$8 = ["className", "margin", "as"];
|
|
265
|
+
var defaultElement$5 = 'strong';
|
|
233
266
|
var StrongText = function StrongText(_ref) {
|
|
234
267
|
var _classNames;
|
|
235
268
|
|
|
@@ -237,51 +270,54 @@ var StrongText = function StrongText(_ref) {
|
|
|
237
270
|
_ref$margin = _ref.margin,
|
|
238
271
|
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
239
272
|
as = _ref.as,
|
|
240
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
273
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
241
274
|
|
|
242
|
-
var Element = as || defaultElement$
|
|
243
|
-
return React.createElement(Element,
|
|
275
|
+
var Element = as || defaultElement$5;
|
|
276
|
+
return React.createElement(Element, _extends({
|
|
244
277
|
className: classNames('eds-strong-text', (_classNames = {}, _classNames["eds-strong-text--margin-top"] = margin === 'top', _classNames["eds-strong-text--margin-bottom"] = margin === 'bottom', _classNames["eds-strong-text--margin-none"] = margin === 'none', _classNames), className)
|
|
245
278
|
}, rest));
|
|
246
279
|
};
|
|
247
280
|
|
|
281
|
+
var _excluded$7 = ["children", "className", "title"];
|
|
248
282
|
var ListItem = function ListItem(_ref) {
|
|
249
283
|
var children = _ref.children,
|
|
250
284
|
className = _ref.className,
|
|
251
285
|
title = _ref.title,
|
|
252
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
286
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
253
287
|
|
|
254
|
-
return React.createElement("li",
|
|
288
|
+
return React.createElement("li", _extends({
|
|
255
289
|
className: classNames('eds-list-item', className)
|
|
256
290
|
}, rest), title && React.createElement(StrongText, {
|
|
257
291
|
className: "eds-list-item__title"
|
|
258
292
|
}, title), children);
|
|
259
293
|
};
|
|
260
294
|
|
|
295
|
+
var _excluded$6 = ["className", "type"];
|
|
261
296
|
var NumberedList = function NumberedList(_ref) {
|
|
262
297
|
var _classNames;
|
|
263
298
|
|
|
264
299
|
var className = _ref.className,
|
|
265
300
|
_ref$type = _ref.type,
|
|
266
301
|
type = _ref$type === void 0 ? '1' : _ref$type,
|
|
267
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
302
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
268
303
|
|
|
269
|
-
return React.createElement("ol",
|
|
304
|
+
return React.createElement("ol", _extends({
|
|
270
305
|
className: classNames('eds-numbered-list', (_classNames = {}, _classNames["eds-numbered-list--type-" + type] = type, _classNames), className),
|
|
271
306
|
type: type
|
|
272
307
|
}, rest));
|
|
273
308
|
};
|
|
274
309
|
|
|
275
|
-
var
|
|
310
|
+
var _excluded$5 = ["margin", "className", "as"];
|
|
311
|
+
var defaultElement$4 = 'p';
|
|
276
312
|
var Paragraph = function Paragraph(_ref) {
|
|
277
313
|
var _ref$margin = _ref.margin,
|
|
278
314
|
margin = _ref$margin === void 0 ? 'bottom' : _ref$margin,
|
|
279
315
|
className = _ref.className,
|
|
280
316
|
as = _ref.as,
|
|
281
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
317
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
282
318
|
|
|
283
|
-
var Element = as || defaultElement$
|
|
284
|
-
return React.createElement(Element,
|
|
319
|
+
var Element = as || defaultElement$4;
|
|
320
|
+
return React.createElement(Element, _extends({
|
|
285
321
|
className: classNames('eds-paragraph', {
|
|
286
322
|
'eds-paragraph--margin-bottom': margin === 'bottom',
|
|
287
323
|
'eds-paragraph--margin-none': margin === 'none'
|
|
@@ -289,19 +325,21 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
289
325
|
}, rest));
|
|
290
326
|
};
|
|
291
327
|
|
|
292
|
-
var
|
|
328
|
+
var _excluded$4 = ["className", "as"];
|
|
329
|
+
var defaultElement$3 = 'pre';
|
|
293
330
|
var PreformattedText = function PreformattedText(_ref) {
|
|
294
331
|
var className = _ref.className,
|
|
295
332
|
as = _ref.as,
|
|
296
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
333
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
297
334
|
|
|
298
|
-
var Element = as || defaultElement$
|
|
299
|
-
return React.createElement(Element,
|
|
335
|
+
var Element = as || defaultElement$3;
|
|
336
|
+
return React.createElement(Element, _extends({
|
|
300
337
|
className: classNames('eds-preformatted-text', className)
|
|
301
338
|
}, rest));
|
|
302
339
|
};
|
|
303
340
|
|
|
304
|
-
var
|
|
341
|
+
var _excluded$3 = ["className", "margin", "as"];
|
|
342
|
+
var defaultElement$2 = 'span';
|
|
305
343
|
var SmallText = function SmallText(_ref) {
|
|
306
344
|
var _classNames;
|
|
307
345
|
|
|
@@ -309,15 +347,16 @@ var SmallText = function SmallText(_ref) {
|
|
|
309
347
|
_ref$margin = _ref.margin,
|
|
310
348
|
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
311
349
|
as = _ref.as,
|
|
312
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
350
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
313
351
|
|
|
314
|
-
var Element = as || defaultElement$
|
|
315
|
-
return React.createElement(Element,
|
|
352
|
+
var Element = as || defaultElement$2;
|
|
353
|
+
return React.createElement(Element, _extends({
|
|
316
354
|
className: classNames('eds-small-text', (_classNames = {}, _classNames["eds-small-text--margin-top"] = margin === 'top', _classNames["eds-small-text--margin-bottom"] = margin === 'bottom', _classNames["eds-small-text--margin-none"] = margin === 'none', _classNames), className)
|
|
317
355
|
}, rest));
|
|
318
356
|
};
|
|
319
357
|
|
|
320
|
-
var
|
|
358
|
+
var _excluded$2 = ["className", "margin", "as"];
|
|
359
|
+
var defaultElement$1 = 'span';
|
|
321
360
|
var SubLabel = function SubLabel(_ref) {
|
|
322
361
|
var _classNames;
|
|
323
362
|
|
|
@@ -325,34 +364,36 @@ var SubLabel = function SubLabel(_ref) {
|
|
|
325
364
|
_ref$margin = _ref.margin,
|
|
326
365
|
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
327
366
|
as = _ref.as,
|
|
328
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
367
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
329
368
|
|
|
330
|
-
var Element = as || defaultElement$
|
|
331
|
-
return React.createElement(Element,
|
|
369
|
+
var Element = as || defaultElement$1;
|
|
370
|
+
return React.createElement(Element, _extends({
|
|
332
371
|
className: classNames('eds-sub-label', (_classNames = {}, _classNames["eds-sub-label--margin-top"] = margin === 'top', _classNames["eds-sub-label--margin-bottom"] = margin === 'bottom', _classNames["eds-sub-label--margin-none"] = margin === 'none', _classNames), className)
|
|
333
372
|
}, rest));
|
|
334
373
|
};
|
|
335
374
|
|
|
336
|
-
var
|
|
375
|
+
var _excluded$1 = ["className", "margin", "as"];
|
|
376
|
+
var defaultElement = 'p';
|
|
337
377
|
var SubParagraph = function SubParagraph(_ref) {
|
|
338
378
|
var _classNames;
|
|
339
379
|
|
|
340
380
|
var className = _ref.className,
|
|
341
381
|
margin = _ref.margin,
|
|
342
382
|
as = _ref.as,
|
|
343
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
383
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
344
384
|
|
|
345
|
-
var Element = as || defaultElement
|
|
346
|
-
return React.createElement(Element,
|
|
385
|
+
var Element = as || defaultElement;
|
|
386
|
+
return React.createElement(Element, _extends({
|
|
347
387
|
className: classNames('eds-sub-paragraph', (_classNames = {}, _classNames["eds-sub-paragraph--margin-top"] = margin === 'top', _classNames["eds-sub-paragraph--margin-bottom"] = margin === 'bottom', _classNames["eds-sub-paragraph--margin-none"] = margin === 'none', _classNames), className)
|
|
348
388
|
}, rest));
|
|
349
389
|
};
|
|
350
390
|
|
|
391
|
+
var _excluded = ["className"];
|
|
351
392
|
var UnorderedList = function UnorderedList(_ref) {
|
|
352
393
|
var className = _ref.className,
|
|
353
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
394
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
354
395
|
|
|
355
|
-
return React.createElement("ul",
|
|
396
|
+
return React.createElement("ul", _extends({
|
|
356
397
|
className: classNames('eds-unordered-list', className)
|
|
357
398
|
}, rest));
|
|
358
399
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.esm.js","sources":["../src/Blockquote.tsx","../src/CodeText.tsx","../src/EmphasizedText.tsx","../src/BaseHeading.tsx","../src/Heading1.tsx","../src/Heading2.tsx","../src/Heading3.tsx","../src/Heading4.tsx","../src/Heading5.tsx","../src/Heading6.tsx","../src/Label.tsx","../src/LeadParagraph.tsx","../src/Link.tsx","../src/StrongText.tsx","../src/ListItem.tsx","../src/NumberedList.tsx","../src/Paragraph.tsx","../src/PreformattedText.tsx","../src/SmallText.tsx","../src/SubLabel.tsx","../src/SubParagraph.tsx","../src/UnorderedList.tsx","../src/index.tsx"],"sourcesContent":["import React from 'react';\nimport classNames from 'classnames';\n\ntype BlockquoteProps = {\n /** Ekstra klassenavn */\n className?: string;\n} & React.DetailedHTMLProps<\n React.BlockquoteHTMLAttributes<HTMLElement>,\n HTMLElement\n>;\n\nexport const Blockquote: React.FunctionComponent<BlockquoteProps> = ({\n className,\n ...rest\n}) => {\n return (\n <blockquote className={classNames('eds-blockquote', className)} {...rest} />\n );\n};\n\ntype BlockquoteFooterProps = {\n /** Ekstra klassenavn */\n className?: string;\n} & React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;\n\nexport const BlockquoteFooter: React.FunctionComponent<BlockquoteFooterProps> = ({\n className,\n ...rest\n}) => {\n return (\n <footer\n className={classNames('eds-blockquote__footer', className)}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type CodeTextOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"code\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n};\n\nexport type CodeTextProps<E extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<CodeTextOwnProps, E>;\n\nconst defaultElement = 'code';\n\nexport const CodeText = <E extends React.ElementType = typeof defaultElement>({\n className,\n as,\n ...rest\n}: CodeTextProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element className={classNames('eds-code-text', className)} {...rest} />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type EmphasizedTextOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"em\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type EmphasizedTextProps<\n E extends React.ElementType = typeof defaultElement,\n> = PolymorphicPropsWithoutRef<EmphasizedTextOwnProps, E>;\n\nconst defaultElement = 'em';\n\nexport const EmphasizedText = <\n E extends React.ElementType = typeof defaultElement,\n>({\n className,\n margin = 'both',\n as,\n ...rest\n}: EmphasizedTextProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames(\n 'eds-emphasized-text',\n {\n [`eds-emphasized-text--margin-top`]: margin === 'top',\n [`eds-emphasized-text--margin-bottom`]: margin === 'bottom',\n [`eds-emphasized-text--margin-none`]: margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\ntype BaseHeadingOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres */\n as: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer */\n margin: 'top' | 'bottom' | 'both' | 'none';\n /** Nivået på overskriften */\n level: 1 | 2 | 3 | 4 | 5 | 6;\n};\nconst defaultElement = 'h1';\n\nexport type BaseHeadingProps<\n T extends React.ElementType = typeof defaultElement,\n> = PolymorphicPropsWithoutRef<BaseHeadingOwnProps, T>;\n\nexport const BaseHeading = <\n E extends React.ElementType = typeof defaultElement,\n>({\n className,\n level,\n margin,\n as,\n ...rest\n}: BaseHeadingProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n const baseClass = `eds-h${level}`;\n return (\n <Element\n className={classNames(\n baseClass,\n {\n [`${baseClass}--margin-top`]: margin === 'top',\n [`${baseClass}--margin-bottom`]: margin === 'bottom',\n [`${baseClass}--margin-none`]: margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport { BaseHeading } from './BaseHeading';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type Heading1OwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"h1\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nconst defaultElement = 'h1';\n\nexport type Heading1Props<T extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<Heading1OwnProps, T>;\n\nexport const Heading1 = <E extends React.ElementType = typeof defaultElement>({\n margin = 'both',\n children,\n as,\n ...rest\n}: Heading1Props<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <BaseHeading as={Element} margin={margin} {...rest} level={1}>\n {children}\n </BaseHeading>\n );\n};\n","import React from 'react';\nimport { BaseHeading } from './BaseHeading';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type Heading2OwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"h2\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type Heading2Props<T extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<Heading2OwnProps, T>;\n\nconst defaultElement = 'h2';\n\nexport const Heading2 = <E extends React.ElementType = typeof defaultElement>({\n margin = 'both',\n children,\n as,\n ...rest\n}: Heading2Props<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <BaseHeading as={Element} margin={margin} {...rest} level={2}>\n {children}\n </BaseHeading>\n );\n};\n","import React from 'react';\nimport { BaseHeading } from './BaseHeading';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type Heading3OwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"h3\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type Heading3Props<T extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<Heading3OwnProps, T>;\n\nconst defaultElement = 'h3';\n\nexport const Heading3 = <E extends React.ElementType = typeof defaultElement>({\n margin = 'both',\n children,\n as,\n ...rest\n}: Heading3Props<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <BaseHeading as={Element} margin={margin} {...rest} level={3}>\n {children}\n </BaseHeading>\n );\n};\n","import React from 'react';\nimport { BaseHeading } from './BaseHeading';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type Heading4OwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"h4\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type Heading4Props<T extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<Heading4OwnProps, T>;\n\nconst defaultElement = 'h4';\nexport const Heading4 = <E extends React.ElementType = typeof defaultElement>({\n margin = 'both',\n children,\n as,\n ...rest\n}: Heading4Props<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <BaseHeading as={Element} margin={margin} {...rest} level={4}>\n {children}\n </BaseHeading>\n );\n};\n","import React from 'react';\nimport { BaseHeading } from './BaseHeading';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type Heading5OwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"h5\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type Heading5Props<T extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<Heading5OwnProps, T>;\n\nconst defaultElement = 'h5';\n\nexport const Heading5 = <E extends React.ElementType = typeof defaultElement>({\n margin = 'both',\n children,\n as,\n ...rest\n}: Heading5Props<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <BaseHeading as={Element} margin={margin} {...rest} level={5}>\n {children}\n </BaseHeading>\n );\n};\n","import React from 'react';\nimport { BaseHeading } from './BaseHeading';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type Heading6OwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"h6\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type Heading6Props<T extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<Heading6OwnProps, T>;\n\nconst defaultElement = 'h6';\n\nexport const Heading6 = <E extends React.ElementType = typeof defaultElement>({\n margin = 'both',\n children,\n as,\n ...rest\n}: Heading6Props<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <BaseHeading as={Element} margin={margin} {...rest} level={6}>\n {children}\n </BaseHeading>\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type LabelOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"label\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type LabelProps<E extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<LabelOwnProps, E>;\n\nconst defaultElement = 'label';\n\nexport const Label = <E extends React.ElementType = typeof defaultElement>({\n className,\n margin = 'both',\n as,\n ...rest\n}: LabelProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames(\n 'eds-label',\n {\n [`eds-label--margin-top`]: margin === 'top',\n [`eds-label--margin-bottom`]: margin === 'bottom',\n [`eds-label--margin-none`]: margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type LeadParagraphOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"p\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type LeadParagraphProps<\n E extends React.ElementType = typeof defaultElement,\n> = PolymorphicPropsWithoutRef<LeadParagraphOwnProps, E>;\n\nconst defaultElement = 'p';\n\nexport const LeadParagraph = <\n E extends React.ElementType = typeof defaultElement,\n>({\n className,\n margin = 'both',\n as,\n ...rest\n}: LeadParagraphProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames(\n 'eds-lead-paragraph',\n {\n [`eds-lead-paragraph--margin-top`]: margin === 'top',\n [`eds-lead-paragraph--margin-bottom`]: margin === 'bottom',\n [`eds-lead-paragraph--margin-none`]: margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type LinkOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"a\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type LinkProps<E extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<LinkOwnProps, E>;\n\nconst defaultElement = 'a';\n\nexport const Link = <E extends React.ElementType = typeof defaultElement>({\n className,\n margin = 'both',\n as,\n ...rest\n}: LinkProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames(\n 'eds-link',\n {\n [`eds-link--margin-top`]: margin === 'top',\n [`eds-link--margin-bottom`]: margin === 'bottom',\n [`eds-link--margin-none`]: margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type StrongTextOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"strong\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type StrongTextProps<\n E extends React.ElementType = typeof defaultElement,\n> = PolymorphicPropsWithoutRef<StrongTextOwnProps, E>;\n\nconst defaultElement = 'strong';\n\nexport const StrongText = <\n E extends React.ElementType = typeof defaultElement,\n>({\n className,\n margin = 'both',\n as,\n ...rest\n}: StrongTextProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames(\n 'eds-strong-text',\n {\n [`eds-strong-text--margin-top`]: margin === 'top',\n [`eds-strong-text--margin-bottom`]: margin === 'bottom',\n [`eds-strong-text--margin-none`]: margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { StrongText } from './StrongText';\n\nexport type ListItemProps = {\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Tittel */\n title?: React.ReactNode;\n [key: string]: any;\n};\n\nexport const ListItem: React.FC<ListItemProps> = ({\n children,\n className,\n title,\n ...rest\n}) => (\n <li className={classNames('eds-list-item', className)} {...rest}>\n {title && <StrongText className=\"eds-list-item__title\">{title}</StrongText>}\n {children}\n </li>\n);\n","import React from 'react';\nimport classNames from 'classnames';\n\nexport type NumberedListProps = {\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n} & React.OlHTMLAttributes<HTMLOListElement>;\n\nexport const NumberedList: React.FC<NumberedListProps> = ({\n className,\n type = '1',\n ...rest\n}) => (\n <ol\n className={classNames(\n 'eds-numbered-list',\n { [`eds-numbered-list--type-${type}`]: type },\n className,\n )}\n type={type}\n {...rest}\n />\n);\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type ParagraphOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"p\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"bottom\"\n */\n margin?: 'bottom' | 'none';\n};\n\nexport type ParagraphProps<\n E extends React.ElementType = typeof defaultElement,\n> = PolymorphicPropsWithoutRef<ParagraphOwnProps, E>;\n\nconst defaultElement = 'p';\n\nexport const Paragraph = <E extends React.ElementType = typeof defaultElement>({\n margin = 'bottom',\n className,\n as,\n ...rest\n}: ParagraphProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames(\n 'eds-paragraph',\n {\n 'eds-paragraph--margin-bottom': margin === 'bottom',\n 'eds-paragraph--margin-none': margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type PreformattedTextOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"pre\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n};\n\nexport type PreformattedTextProps<E extends React.ElementType> =\n PolymorphicPropsWithoutRef<PreformattedTextOwnProps, E>;\n\nconst defaultElement = 'pre';\n\nexport const PreformattedText = <\n E extends React.ElementType = typeof defaultElement,\n>({\n className,\n as,\n ...rest\n}: PreformattedTextProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames('eds-preformatted-text', className)}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type SmallTextOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"span\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type SmallTextProps<\n T extends React.ElementType = typeof defaultElement,\n> = PolymorphicPropsWithoutRef<SmallTextOwnProps, T>;\nconst defaultElement = 'span';\n\nexport const SmallText = <E extends React.ElementType = typeof defaultElement>({\n className,\n margin = 'both',\n as,\n ...rest\n}: SmallTextProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames(\n 'eds-small-text',\n {\n [`eds-small-text--margin-top`]: margin === 'top',\n [`eds-small-text--margin-bottom`]: margin === 'bottom',\n [`eds-small-text--margin-none`]: margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type SubLabelOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"span\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type SubLabelProps<E extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<SubLabelOwnProps, E>;\n\nconst defaultElement = 'span';\n\nexport const SubLabel = <E extends React.ElementType = typeof defaultElement>({\n className,\n margin = 'both',\n as,\n ...rest\n}: SubLabelProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames(\n 'eds-sub-label',\n {\n [`eds-sub-label--margin-top`]: margin === 'top',\n [`eds-sub-label--margin-bottom`]: margin === 'bottom',\n [`eds-sub-label--margin-none`]: margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type SubParagraphOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"p\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type SubParagraphProps<\n E extends React.ElementType = typeof defaultElement,\n> = PolymorphicPropsWithoutRef<SubParagraphOwnProps, E>;\n\nconst defaultElement = 'p';\n\nexport const SubParagraph = <\n E extends React.ElementType = typeof defaultElement,\n>({\n className,\n margin,\n as,\n ...rest\n}: SubParagraphProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames(\n 'eds-sub-paragraph',\n {\n [`eds-sub-paragraph--margin-top`]: margin === 'top',\n [`eds-sub-paragraph--margin-bottom`]: margin === 'bottom',\n [`eds-sub-paragraph--margin-none`]: margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\n\nexport type UnorderedListProps = {\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n} & React.DetailedHTMLProps<\n React.HTMLAttributes<HTMLUListElement>,\n HTMLUListElement\n>;\n\nexport const UnorderedList: React.FC<UnorderedListProps> = ({\n className,\n ...rest\n}) => <ul className={classNames('eds-unordered-list', className)} {...rest} />;\n","import { warnAboutMissingStyles } from '@entur/utils';\nimport './index.scss';\n\nwarnAboutMissingStyles('typography');\n\nexport * from './Blockquote';\nexport * from './CodeText';\nexport * from './EmphasizedText';\nexport * from './Heading1';\nexport * from './Heading2';\nexport * from './Heading3';\nexport * from './Heading4';\nexport * from './Heading5';\nexport * from './Heading6';\nexport * from './Label';\nexport * from './LeadParagraph';\nexport * from './Link';\nexport * from './ListItem';\nexport * from './NumberedList';\nexport * from './Paragraph';\nexport * from './PreformattedText';\nexport * from './SmallText';\nexport * from './StrongText';\nexport * from './SubLabel';\nexport * from './SubParagraph';\nexport * from './UnorderedList';\n"],"names":["Blockquote","className","rest","React","classNames","BlockquoteFooter","defaultElement","CodeText","as","Element","EmphasizedText","margin","BaseHeading","level","baseClass","Heading1","children","Heading2","Heading3","Heading4","Heading5","Heading6","Label","LeadParagraph","Link","StrongText","ListItem","title","NumberedList","type","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,IAAMI,gBAAc,GAAG,GAAvB;AAEA,IAAa4B,YAAY,GAAG,SAAfA,YAAe;;;MAG1BjC,iBAAAA;MACAU,cAAAA;MACAH,UAAAA;MACGN;;AAEH,MAAMO,OAAO,GAAsBD,EAAE,IAAIF,gBAAzC;AACA,SACEH,mBAAA,CAACM,OAAD;AACER,IAAAA,SAAS,EAAEG,UAAU,CACnB,mBADmB,oEAGkBO,MAAM,KAAK,KAH7B,oDAIqBA,MAAM,KAAK,QAJhC,kDAKmBA,MAAM,KAAK,MAL9B,gBAOnBV,SAPmB;KASjBC,KAVN,CADF;AAcD,CAvBM;;ICZMiC,aAAa,GAAiC,SAA9CA,aAA8C;AAAA,MACzDlC,SADyD,QACzDA,SADyD;AAAA,MAEtDC,IAFsD;;AAAA,SAGrDC,mBAAA,KAAA;AAAIF,IAAAA,SAAS,EAAEG,UAAU,CAAC,oBAAD,EAAuBH,SAAvB;KAAuCC,KAAhE,CAHqD;AAAA,CAApD;;ACVPkC,sBAAsB,CAAC,YAAD,CAAtB;;;;"}
|
|
1
|
+
{"version":3,"file":"typography.esm.js","sources":["../src/Blockquote.tsx","../src/CodeText.tsx","../src/EmphasizedText.tsx","../src/BaseHeading.tsx","../src/Heading1.tsx","../src/Heading2.tsx","../src/Heading3.tsx","../src/Heading4.tsx","../src/Heading5.tsx","../src/Heading6.tsx","../src/Label.tsx","../src/LeadParagraph.tsx","../src/Link.tsx","../src/StrongText.tsx","../src/ListItem.tsx","../src/NumberedList.tsx","../src/Paragraph.tsx","../src/PreformattedText.tsx","../src/SmallText.tsx","../src/SubLabel.tsx","../src/SubParagraph.tsx","../src/UnorderedList.tsx","../src/index.tsx"],"sourcesContent":["import React from 'react';\nimport classNames from 'classnames';\n\ntype BlockquoteProps = {\n /** Ekstra klassenavn */\n className?: string;\n} & React.DetailedHTMLProps<\n React.BlockquoteHTMLAttributes<HTMLElement>,\n HTMLElement\n>;\n\nexport const Blockquote: React.FunctionComponent<BlockquoteProps> = ({\n className,\n ...rest\n}) => {\n return (\n <blockquote className={classNames('eds-blockquote', className)} {...rest} />\n );\n};\n\ntype BlockquoteFooterProps = {\n /** Ekstra klassenavn */\n className?: string;\n} & React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;\n\nexport const BlockquoteFooter: React.FunctionComponent<BlockquoteFooterProps> = ({\n className,\n ...rest\n}) => {\n return (\n <footer\n className={classNames('eds-blockquote__footer', className)}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type CodeTextOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"code\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n};\n\nexport type CodeTextProps<E extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<CodeTextOwnProps, E>;\n\nconst defaultElement = 'code';\n\nexport const CodeText = <E extends React.ElementType = typeof defaultElement>({\n className,\n as,\n ...rest\n}: CodeTextProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element className={classNames('eds-code-text', className)} {...rest} />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type EmphasizedTextOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"em\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type EmphasizedTextProps<\n E extends React.ElementType = typeof defaultElement,\n> = PolymorphicPropsWithoutRef<EmphasizedTextOwnProps, E>;\n\nconst defaultElement = 'em';\n\nexport const EmphasizedText = <\n E extends React.ElementType = typeof defaultElement,\n>({\n className,\n margin = 'both',\n as,\n ...rest\n}: EmphasizedTextProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames(\n 'eds-emphasized-text',\n {\n [`eds-emphasized-text--margin-top`]: margin === 'top',\n [`eds-emphasized-text--margin-bottom`]: margin === 'bottom',\n [`eds-emphasized-text--margin-none`]: margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\ntype BaseHeadingOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres */\n as: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer */\n margin: 'top' | 'bottom' | 'both' | 'none';\n /** Nivået på overskriften */\n level: 1 | 2 | 3 | 4 | 5 | 6;\n};\nconst defaultElement = 'h1';\n\nexport type BaseHeadingProps<\n T extends React.ElementType = typeof defaultElement,\n> = PolymorphicPropsWithoutRef<BaseHeadingOwnProps, T>;\n\nexport const BaseHeading = <\n E extends React.ElementType = typeof defaultElement,\n>({\n className,\n level,\n margin,\n as,\n ...rest\n}: BaseHeadingProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n const baseClass = `eds-h${level}`;\n return (\n <Element\n className={classNames(\n baseClass,\n {\n [`${baseClass}--margin-top`]: margin === 'top',\n [`${baseClass}--margin-bottom`]: margin === 'bottom',\n [`${baseClass}--margin-none`]: margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport { BaseHeading } from './BaseHeading';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type Heading1OwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"h1\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nconst defaultElement = 'h1';\n\nexport type Heading1Props<T extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<Heading1OwnProps, T>;\n\nexport const Heading1 = <E extends React.ElementType = typeof defaultElement>({\n margin = 'both',\n children,\n as,\n ...rest\n}: Heading1Props<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <BaseHeading as={Element} margin={margin} {...rest} level={1}>\n {children}\n </BaseHeading>\n );\n};\n","import React from 'react';\nimport { BaseHeading } from './BaseHeading';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type Heading2OwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"h2\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type Heading2Props<T extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<Heading2OwnProps, T>;\n\nconst defaultElement = 'h2';\n\nexport const Heading2 = <E extends React.ElementType = typeof defaultElement>({\n margin = 'both',\n children,\n as,\n ...rest\n}: Heading2Props<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <BaseHeading as={Element} margin={margin} {...rest} level={2}>\n {children}\n </BaseHeading>\n );\n};\n","import React from 'react';\nimport { BaseHeading } from './BaseHeading';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type Heading3OwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"h3\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type Heading3Props<T extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<Heading3OwnProps, T>;\n\nconst defaultElement = 'h3';\n\nexport const Heading3 = <E extends React.ElementType = typeof defaultElement>({\n margin = 'both',\n children,\n as,\n ...rest\n}: Heading3Props<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <BaseHeading as={Element} margin={margin} {...rest} level={3}>\n {children}\n </BaseHeading>\n );\n};\n","import React from 'react';\nimport { BaseHeading } from './BaseHeading';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type Heading4OwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"h4\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type Heading4Props<T extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<Heading4OwnProps, T>;\n\nconst defaultElement = 'h4';\nexport const Heading4 = <E extends React.ElementType = typeof defaultElement>({\n margin = 'both',\n children,\n as,\n ...rest\n}: Heading4Props<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <BaseHeading as={Element} margin={margin} {...rest} level={4}>\n {children}\n </BaseHeading>\n );\n};\n","import React from 'react';\nimport { BaseHeading } from './BaseHeading';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type Heading5OwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"h5\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type Heading5Props<T extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<Heading5OwnProps, T>;\n\nconst defaultElement = 'h5';\n\nexport const Heading5 = <E extends React.ElementType = typeof defaultElement>({\n margin = 'both',\n children,\n as,\n ...rest\n}: Heading5Props<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <BaseHeading as={Element} margin={margin} {...rest} level={5}>\n {children}\n </BaseHeading>\n );\n};\n","import React from 'react';\nimport { BaseHeading } from './BaseHeading';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type Heading6OwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"h6\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type Heading6Props<T extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<Heading6OwnProps, T>;\n\nconst defaultElement = 'h6';\n\nexport const Heading6 = <E extends React.ElementType = typeof defaultElement>({\n margin = 'both',\n children,\n as,\n ...rest\n}: Heading6Props<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <BaseHeading as={Element} margin={margin} {...rest} level={6}>\n {children}\n </BaseHeading>\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type LabelOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"label\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type LabelProps<E extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<LabelOwnProps, E>;\n\nconst defaultElement = 'label';\n\nexport const Label = <E extends React.ElementType = typeof defaultElement>({\n className,\n margin = 'both',\n as,\n ...rest\n}: LabelProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames(\n 'eds-label',\n {\n [`eds-label--margin-top`]: margin === 'top',\n [`eds-label--margin-bottom`]: margin === 'bottom',\n [`eds-label--margin-none`]: margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type LeadParagraphOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"p\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type LeadParagraphProps<\n E extends React.ElementType = typeof defaultElement,\n> = PolymorphicPropsWithoutRef<LeadParagraphOwnProps, E>;\n\nconst defaultElement = 'p';\n\nexport const LeadParagraph = <\n E extends React.ElementType = typeof defaultElement,\n>({\n className,\n margin = 'both',\n as,\n ...rest\n}: LeadParagraphProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames(\n 'eds-lead-paragraph',\n {\n [`eds-lead-paragraph--margin-top`]: margin === 'top',\n [`eds-lead-paragraph--margin-bottom`]: margin === 'bottom',\n [`eds-lead-paragraph--margin-none`]: margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type LinkOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"a\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type LinkProps<E extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<LinkOwnProps, E>;\n\nconst defaultElement = 'a';\n\nexport const Link = <E extends React.ElementType = typeof defaultElement>({\n className,\n margin = 'both',\n as,\n ...rest\n}: LinkProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames(\n 'eds-link',\n {\n [`eds-link--margin-top`]: margin === 'top',\n [`eds-link--margin-bottom`]: margin === 'bottom',\n [`eds-link--margin-none`]: margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type StrongTextOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"strong\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type StrongTextProps<\n E extends React.ElementType = typeof defaultElement,\n> = PolymorphicPropsWithoutRef<StrongTextOwnProps, E>;\n\nconst defaultElement = 'strong';\n\nexport const StrongText = <\n E extends React.ElementType = typeof defaultElement,\n>({\n className,\n margin = 'both',\n as,\n ...rest\n}: StrongTextProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames(\n 'eds-strong-text',\n {\n [`eds-strong-text--margin-top`]: margin === 'top',\n [`eds-strong-text--margin-bottom`]: margin === 'bottom',\n [`eds-strong-text--margin-none`]: margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { StrongText } from './StrongText';\n\nexport type ListItemProps = {\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Tittel */\n title?: React.ReactNode;\n [key: string]: any;\n};\n\nexport const ListItem: React.FC<ListItemProps> = ({\n children,\n className,\n title,\n ...rest\n}) => (\n <li className={classNames('eds-list-item', className)} {...rest}>\n {title && <StrongText className=\"eds-list-item__title\">{title}</StrongText>}\n {children}\n </li>\n);\n","import React from 'react';\nimport classNames from 'classnames';\n\nexport type NumberedListProps = {\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n} & React.OlHTMLAttributes<HTMLOListElement>;\n\nexport const NumberedList: React.FC<NumberedListProps> = ({\n className,\n type = '1',\n ...rest\n}) => (\n <ol\n className={classNames(\n 'eds-numbered-list',\n { [`eds-numbered-list--type-${type}`]: type },\n className,\n )}\n type={type}\n {...rest}\n />\n);\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type ParagraphOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"p\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"bottom\"\n */\n margin?: 'bottom' | 'none';\n};\n\nexport type ParagraphProps<\n E extends React.ElementType = typeof defaultElement,\n> = PolymorphicPropsWithoutRef<ParagraphOwnProps, E>;\n\nconst defaultElement = 'p';\n\nexport const Paragraph = <E extends React.ElementType = typeof defaultElement>({\n margin = 'bottom',\n className,\n as,\n ...rest\n}: ParagraphProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames(\n 'eds-paragraph',\n {\n 'eds-paragraph--margin-bottom': margin === 'bottom',\n 'eds-paragraph--margin-none': margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type PreformattedTextOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"pre\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n};\n\nexport type PreformattedTextProps<E extends React.ElementType> =\n PolymorphicPropsWithoutRef<PreformattedTextOwnProps, E>;\n\nconst defaultElement = 'pre';\n\nexport const PreformattedText = <\n E extends React.ElementType = typeof defaultElement,\n>({\n className,\n as,\n ...rest\n}: PreformattedTextProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames('eds-preformatted-text', className)}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type SmallTextOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"span\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type SmallTextProps<\n T extends React.ElementType = typeof defaultElement,\n> = PolymorphicPropsWithoutRef<SmallTextOwnProps, T>;\nconst defaultElement = 'span';\n\nexport const SmallText = <E extends React.ElementType = typeof defaultElement>({\n className,\n margin = 'both',\n as,\n ...rest\n}: SmallTextProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames(\n 'eds-small-text',\n {\n [`eds-small-text--margin-top`]: margin === 'top',\n [`eds-small-text--margin-bottom`]: margin === 'bottom',\n [`eds-small-text--margin-none`]: margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type SubLabelOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"span\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type SubLabelProps<E extends React.ElementType = typeof defaultElement> =\n PolymorphicPropsWithoutRef<SubLabelOwnProps, E>;\n\nconst defaultElement = 'span';\n\nexport const SubLabel = <E extends React.ElementType = typeof defaultElement>({\n className,\n margin = 'both',\n as,\n ...rest\n}: SubLabelProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames(\n 'eds-sub-label',\n {\n [`eds-sub-label--margin-top`]: margin === 'top',\n [`eds-sub-label--margin-bottom`]: margin === 'bottom',\n [`eds-sub-label--margin-none`]: margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicPropsWithoutRef } from '@entur/utils';\n\nexport type SubParagraphOwnProps = {\n /** HTML-elementet eller React-komponenten som rendres\n * @default \"p\"\n */\n as?: string | React.ElementType;\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n /** Hvor du vil ha marginer\n * @default \"both\"\n */\n margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type SubParagraphProps<\n E extends React.ElementType = typeof defaultElement,\n> = PolymorphicPropsWithoutRef<SubParagraphOwnProps, E>;\n\nconst defaultElement = 'p';\n\nexport const SubParagraph = <\n E extends React.ElementType = typeof defaultElement,\n>({\n className,\n margin,\n as,\n ...rest\n}: SubParagraphProps<E>): JSX.Element => {\n const Element: React.ElementType = as || defaultElement;\n return (\n <Element\n className={classNames(\n 'eds-sub-paragraph',\n {\n [`eds-sub-paragraph--margin-top`]: margin === 'top',\n [`eds-sub-paragraph--margin-bottom`]: margin === 'bottom',\n [`eds-sub-paragraph--margin-none`]: margin === 'none',\n },\n className,\n )}\n {...rest}\n />\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\n\nexport type UnorderedListProps = {\n /** Ekstra klassenavn */\n className?: string;\n /** Innholdet */\n children: React.ReactNode;\n} & React.DetailedHTMLProps<\n React.HTMLAttributes<HTMLUListElement>,\n HTMLUListElement\n>;\n\nexport const UnorderedList: React.FC<UnorderedListProps> = ({\n className,\n ...rest\n}) => <ul className={classNames('eds-unordered-list', className)} {...rest} />;\n","import { warnAboutMissingStyles } from '@entur/utils';\nimport './index.scss';\n\nwarnAboutMissingStyles('typography');\n\nexport * from './Blockquote';\nexport * from './CodeText';\nexport * from './EmphasizedText';\nexport * from './Heading1';\nexport * from './Heading2';\nexport * from './Heading3';\nexport * from './Heading4';\nexport * from './Heading5';\nexport * from './Heading6';\nexport * from './Label';\nexport * from './LeadParagraph';\nexport * from './Link';\nexport * from './ListItem';\nexport * from './NumberedList';\nexport * from './Paragraph';\nexport * from './PreformattedText';\nexport * from './SmallText';\nexport * from './StrongText';\nexport * from './SubLabel';\nexport * from './SubParagraph';\nexport * from './UnorderedList';\n"],"names":["Blockquote","className","rest","React","classNames","BlockquoteFooter","defaultElement","CodeText","as","Element","EmphasizedText","margin","BaseHeading","level","baseClass","Heading1","children","Heading2","Heading3","Heading4","Heading5","Heading6","Label","LeadParagraph","Link","StrongText","ListItem","title","NumberedList","type","Paragraph","PreformattedText","SmallText","SubLabel","SubParagraph","UnorderedList","warnAboutMissingStyles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWaA,UAAU,GAA6C,SAAvDA,UAAuD;MAClEC,iBAAAA;MACGC;;AAEH,SACEC,mBAAA,aAAA;AAAYF,IAAAA,SAAS,EAAEG,UAAU,CAAC,gBAAD,EAAmBH,SAAnB;AAAjC,KAAoEC,IAApE,EADF;AAGD;IAOYG,gBAAgB,GAAmD,SAAnEA,gBAAmE;MAC9EJ,kBAAAA;MACGC;;AAEH,SACEC,mBAAA,SAAA;AACEF,IAAAA,SAAS,EAAEG,UAAU,CAAC,wBAAD,EAA2BH,SAA3B;AADvB,KAEMC,IAFN,EADF;AAMD;;;ACjBD,IAAMI,gBAAc,GAAG,MAAvB;IAEaC,QAAQ,GAAG,SAAXA,QAAW;MACtBN,iBAAAA;MACAO,UAAAA;MACGN;;AAEH,MAAMO,OAAO,GAAsBD,EAAE,IAAIF,gBAAzC;AACA,SACEH,mBAAA,CAACM,OAAD;AAASR,IAAAA,SAAS,EAAEG,UAAU,CAAC,eAAD,EAAkBH,SAAlB;AAA9B,KAAgEC,IAAhE,EADF;AAGD;;;ACND,IAAMI,gBAAc,GAAG,IAAvB;IAEaI,cAAc,GAAG,SAAjBA,cAAiB;;;MAG5BT,i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