@entur/typography 1.7.1-RC.1 → 1.7.1-RC.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/BaseHeading.d.ts +2 -2
- package/dist/Blockquote.d.ts +2 -2
- package/dist/CodeText.d.ts +2 -2
- package/dist/EmphasizedText.d.ts +2 -2
- package/dist/Heading1.d.ts +2 -2
- package/dist/Heading2.d.ts +2 -2
- package/dist/Heading3.d.ts +2 -2
- package/dist/Heading4.d.ts +2 -2
- package/dist/Heading5.d.ts +2 -2
- package/dist/Heading6.d.ts +2 -2
- package/dist/Label.d.ts +2 -2
- package/dist/LeadParagraph.d.ts +2 -2
- package/dist/Link.d.ts +2 -2
- package/dist/ListItem.d.ts +1 -1
- package/dist/NumberedList.d.ts +1 -1
- package/dist/Paragraph.d.ts +2 -2
- package/dist/PreformattedText.d.ts +2 -2
- package/dist/SmallText.d.ts +2 -2
- package/dist/StrongText.d.ts +2 -2
- package/dist/SubLabel.d.ts +2 -2
- package/dist/SubParagraph.d.ts +2 -2
- package/dist/UnorderedList.d.ts +1 -1
- package/dist/styles.css +4 -24
- package/dist/typography.cjs.development.js +78 -117
- 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 +78 -117
- package/dist/typography.esm.js.map +1 -1
- package/package.json +3 -3
|
@@ -12,52 +12,44 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
12
12
|
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
13
13
|
|
|
14
14
|
function _extends() {
|
|
15
|
-
_extends = Object.assign
|
|
15
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
16
16
|
for (var i = 1; i < arguments.length; i++) {
|
|
17
17
|
var source = arguments[i];
|
|
18
|
-
|
|
19
18
|
for (var key in source) {
|
|
20
19
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
21
20
|
target[key] = source[key];
|
|
22
21
|
}
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
|
-
|
|
26
24
|
return target;
|
|
27
25
|
};
|
|
28
|
-
|
|
29
26
|
return _extends.apply(this, arguments);
|
|
30
27
|
}
|
|
31
|
-
|
|
32
28
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
33
29
|
if (source == null) return {};
|
|
34
30
|
var target = {};
|
|
35
31
|
var sourceKeys = Object.keys(source);
|
|
36
32
|
var key, i;
|
|
37
|
-
|
|
38
33
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
39
34
|
key = sourceKeys[i];
|
|
40
35
|
if (excluded.indexOf(key) >= 0) continue;
|
|
41
36
|
target[key] = source[key];
|
|
42
37
|
}
|
|
43
|
-
|
|
44
38
|
return target;
|
|
45
39
|
}
|
|
46
40
|
|
|
47
41
|
var _excluded$l = ["className"],
|
|
48
|
-
|
|
42
|
+
_excluded2 = ["className"];
|
|
49
43
|
var Blockquote = function Blockquote(_ref) {
|
|
50
44
|
var className = _ref.className,
|
|
51
|
-
|
|
52
|
-
|
|
45
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
53
46
|
return React__default["default"].createElement("blockquote", _extends({
|
|
54
47
|
className: classNames__default["default"]('eds-blockquote', className)
|
|
55
48
|
}, rest));
|
|
56
49
|
};
|
|
57
50
|
var BlockquoteFooter = function BlockquoteFooter(_ref2) {
|
|
58
51
|
var className = _ref2.className,
|
|
59
|
-
|
|
60
|
-
|
|
52
|
+
rest = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
61
53
|
return React__default["default"].createElement("footer", _extends({
|
|
62
54
|
className: classNames__default["default"]('eds-blockquote__footer', className)
|
|
63
55
|
}, rest));
|
|
@@ -67,9 +59,8 @@ var _excluded$k = ["className", "as"];
|
|
|
67
59
|
var defaultElement$h = 'code';
|
|
68
60
|
var CodeText = function CodeText(_ref) {
|
|
69
61
|
var className = _ref.className,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
62
|
+
as = _ref.as,
|
|
63
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
73
64
|
var Element = as || defaultElement$h;
|
|
74
65
|
return React__default["default"].createElement(Element, _extends({
|
|
75
66
|
className: classNames__default["default"]('eds-code-text', className)
|
|
@@ -80,13 +71,11 @@ var _excluded$j = ["className", "margin", "as"];
|
|
|
80
71
|
var defaultElement$g = 'em';
|
|
81
72
|
var EmphasizedText = function EmphasizedText(_ref) {
|
|
82
73
|
var _classNames;
|
|
83
|
-
|
|
84
74
|
var className = _ref.className,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
75
|
+
_ref$margin = _ref.margin,
|
|
76
|
+
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
77
|
+
as = _ref.as,
|
|
78
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
90
79
|
var Element = as || defaultElement$g;
|
|
91
80
|
return React__default["default"].createElement(Element, _extends({
|
|
92
81
|
className: classNames__default["default"]('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)
|
|
@@ -97,13 +86,11 @@ var _excluded$i = ["className", "level", "margin", "as"];
|
|
|
97
86
|
var defaultElement$f = 'h1';
|
|
98
87
|
var BaseHeading = function BaseHeading(_ref) {
|
|
99
88
|
var _classNames;
|
|
100
|
-
|
|
101
89
|
var className = _ref.className,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
90
|
+
level = _ref.level,
|
|
91
|
+
margin = _ref.margin,
|
|
92
|
+
as = _ref.as,
|
|
93
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
107
94
|
var Element = as || defaultElement$f;
|
|
108
95
|
var baseClass = "eds-h" + level;
|
|
109
96
|
return React__default["default"].createElement(Element, _extends({
|
|
@@ -115,11 +102,10 @@ var _excluded$h = ["margin", "children", "as"];
|
|
|
115
102
|
var defaultElement$e = 'h1';
|
|
116
103
|
var Heading1 = function Heading1(_ref) {
|
|
117
104
|
var _ref$margin = _ref.margin,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
105
|
+
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
106
|
+
children = _ref.children,
|
|
107
|
+
as = _ref.as,
|
|
108
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
123
109
|
var Element = as || defaultElement$e;
|
|
124
110
|
return React__default["default"].createElement(BaseHeading, _extends({
|
|
125
111
|
as: Element,
|
|
@@ -133,11 +119,10 @@ var _excluded$g = ["margin", "children", "as"];
|
|
|
133
119
|
var defaultElement$d = 'h2';
|
|
134
120
|
var Heading2 = function Heading2(_ref) {
|
|
135
121
|
var _ref$margin = _ref.margin,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
122
|
+
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
123
|
+
children = _ref.children,
|
|
124
|
+
as = _ref.as,
|
|
125
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
141
126
|
var Element = as || defaultElement$d;
|
|
142
127
|
return React__default["default"].createElement(BaseHeading, _extends({
|
|
143
128
|
as: Element,
|
|
@@ -151,11 +136,10 @@ var _excluded$f = ["margin", "children", "as"];
|
|
|
151
136
|
var defaultElement$c = 'h3';
|
|
152
137
|
var Heading3 = function Heading3(_ref) {
|
|
153
138
|
var _ref$margin = _ref.margin,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
139
|
+
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
140
|
+
children = _ref.children,
|
|
141
|
+
as = _ref.as,
|
|
142
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
159
143
|
var Element = as || defaultElement$c;
|
|
160
144
|
return React__default["default"].createElement(BaseHeading, _extends({
|
|
161
145
|
as: Element,
|
|
@@ -169,11 +153,10 @@ var _excluded$e = ["margin", "children", "as"];
|
|
|
169
153
|
var defaultElement$b = 'h4';
|
|
170
154
|
var Heading4 = function Heading4(_ref) {
|
|
171
155
|
var _ref$margin = _ref.margin,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
156
|
+
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
157
|
+
children = _ref.children,
|
|
158
|
+
as = _ref.as,
|
|
159
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
177
160
|
var Element = as || defaultElement$b;
|
|
178
161
|
return React__default["default"].createElement(BaseHeading, _extends({
|
|
179
162
|
as: Element,
|
|
@@ -187,11 +170,10 @@ var _excluded$d = ["margin", "children", "as"];
|
|
|
187
170
|
var defaultElement$a = 'h5';
|
|
188
171
|
var Heading5 = function Heading5(_ref) {
|
|
189
172
|
var _ref$margin = _ref.margin,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
173
|
+
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
174
|
+
children = _ref.children,
|
|
175
|
+
as = _ref.as,
|
|
176
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
195
177
|
var Element = as || defaultElement$a;
|
|
196
178
|
return React__default["default"].createElement(BaseHeading, _extends({
|
|
197
179
|
as: Element,
|
|
@@ -205,11 +187,10 @@ var _excluded$c = ["margin", "children", "as"];
|
|
|
205
187
|
var defaultElement$9 = 'h6';
|
|
206
188
|
var Heading6 = function Heading6(_ref) {
|
|
207
189
|
var _ref$margin = _ref.margin,
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
190
|
+
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
191
|
+
children = _ref.children,
|
|
192
|
+
as = _ref.as,
|
|
193
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
213
194
|
var Element = as || defaultElement$9;
|
|
214
195
|
return React__default["default"].createElement(BaseHeading, _extends({
|
|
215
196
|
as: Element,
|
|
@@ -223,13 +204,11 @@ var _excluded$b = ["className", "margin", "as"];
|
|
|
223
204
|
var defaultElement$8 = 'label';
|
|
224
205
|
var Label = function Label(_ref) {
|
|
225
206
|
var _classNames;
|
|
226
|
-
|
|
227
207
|
var className = _ref.className,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
208
|
+
_ref$margin = _ref.margin,
|
|
209
|
+
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
210
|
+
as = _ref.as,
|
|
211
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
233
212
|
var Element = as || defaultElement$8;
|
|
234
213
|
return React__default["default"].createElement(Element, _extends({
|
|
235
214
|
className: classNames__default["default"]('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)
|
|
@@ -240,13 +219,11 @@ var _excluded$a = ["className", "margin", "as"];
|
|
|
240
219
|
var defaultElement$7 = 'p';
|
|
241
220
|
var LeadParagraph = function LeadParagraph(_ref) {
|
|
242
221
|
var _classNames;
|
|
243
|
-
|
|
244
222
|
var className = _ref.className,
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
223
|
+
_ref$margin = _ref.margin,
|
|
224
|
+
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
225
|
+
as = _ref.as,
|
|
226
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
250
227
|
var Element = as || defaultElement$7;
|
|
251
228
|
return React__default["default"].createElement(Element, _extends({
|
|
252
229
|
className: classNames__default["default"]('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)
|
|
@@ -257,13 +234,11 @@ var _excluded$9 = ["className", "margin", "as"];
|
|
|
257
234
|
var defaultElement$6 = 'a';
|
|
258
235
|
var Link = function Link(_ref) {
|
|
259
236
|
var _classNames;
|
|
260
|
-
|
|
261
237
|
var className = _ref.className,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
238
|
+
_ref$margin = _ref.margin,
|
|
239
|
+
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
240
|
+
as = _ref.as,
|
|
241
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
267
242
|
var Element = as || defaultElement$6;
|
|
268
243
|
return React__default["default"].createElement(Element, _extends({
|
|
269
244
|
className: classNames__default["default"]('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)
|
|
@@ -274,13 +249,11 @@ var _excluded$8 = ["className", "margin", "as"];
|
|
|
274
249
|
var defaultElement$5 = 'strong';
|
|
275
250
|
var StrongText = function StrongText(_ref) {
|
|
276
251
|
var _classNames;
|
|
277
|
-
|
|
278
252
|
var className = _ref.className,
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
253
|
+
_ref$margin = _ref.margin,
|
|
254
|
+
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
255
|
+
as = _ref.as,
|
|
256
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
284
257
|
var Element = as || defaultElement$5;
|
|
285
258
|
return React__default["default"].createElement(Element, _extends({
|
|
286
259
|
className: classNames__default["default"]('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)
|
|
@@ -290,10 +263,9 @@ var StrongText = function StrongText(_ref) {
|
|
|
290
263
|
var _excluded$7 = ["children", "className", "title"];
|
|
291
264
|
var ListItem = function ListItem(_ref) {
|
|
292
265
|
var children = _ref.children,
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
266
|
+
className = _ref.className,
|
|
267
|
+
title = _ref.title,
|
|
268
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
297
269
|
return React__default["default"].createElement("li", _extends({
|
|
298
270
|
className: classNames__default["default"]('eds-list-item', className)
|
|
299
271
|
}, rest), title && React__default["default"].createElement(StrongText, {
|
|
@@ -304,12 +276,10 @@ var ListItem = function ListItem(_ref) {
|
|
|
304
276
|
var _excluded$6 = ["className", "type"];
|
|
305
277
|
var NumberedList = function NumberedList(_ref) {
|
|
306
278
|
var _classNames;
|
|
307
|
-
|
|
308
279
|
var className = _ref.className,
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
280
|
+
_ref$type = _ref.type,
|
|
281
|
+
type = _ref$type === void 0 ? '1' : _ref$type,
|
|
282
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
313
283
|
return React__default["default"].createElement("ol", _extends({
|
|
314
284
|
className: classNames__default["default"]('eds-numbered-list', (_classNames = {}, _classNames["eds-numbered-list--type-" + type] = type, _classNames), className),
|
|
315
285
|
type: type
|
|
@@ -320,11 +290,10 @@ var _excluded$5 = ["margin", "className", "as"];
|
|
|
320
290
|
var defaultElement$4 = 'p';
|
|
321
291
|
var Paragraph = function Paragraph(_ref) {
|
|
322
292
|
var _ref$margin = _ref.margin,
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
293
|
+
margin = _ref$margin === void 0 ? 'bottom' : _ref$margin,
|
|
294
|
+
className = _ref.className,
|
|
295
|
+
as = _ref.as,
|
|
296
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
328
297
|
var Element = as || defaultElement$4;
|
|
329
298
|
return React__default["default"].createElement(Element, _extends({
|
|
330
299
|
className: classNames__default["default"]('eds-paragraph', {
|
|
@@ -338,9 +307,8 @@ var _excluded$4 = ["className", "as"];
|
|
|
338
307
|
var defaultElement$3 = 'pre';
|
|
339
308
|
var PreformattedText = function PreformattedText(_ref) {
|
|
340
309
|
var className = _ref.className,
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
310
|
+
as = _ref.as,
|
|
311
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
344
312
|
var Element = as || defaultElement$3;
|
|
345
313
|
return React__default["default"].createElement(Element, _extends({
|
|
346
314
|
className: classNames__default["default"]('eds-preformatted-text', className)
|
|
@@ -351,13 +319,11 @@ var _excluded$3 = ["className", "margin", "as"];
|
|
|
351
319
|
var defaultElement$2 = 'span';
|
|
352
320
|
var SmallText = function SmallText(_ref) {
|
|
353
321
|
var _classNames;
|
|
354
|
-
|
|
355
322
|
var className = _ref.className,
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
323
|
+
_ref$margin = _ref.margin,
|
|
324
|
+
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
325
|
+
as = _ref.as,
|
|
326
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
361
327
|
var Element = as || defaultElement$2;
|
|
362
328
|
return React__default["default"].createElement(Element, _extends({
|
|
363
329
|
className: classNames__default["default"]('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)
|
|
@@ -368,13 +334,11 @@ var _excluded$2 = ["className", "margin", "as"];
|
|
|
368
334
|
var defaultElement$1 = 'span';
|
|
369
335
|
var SubLabel = function SubLabel(_ref) {
|
|
370
336
|
var _classNames;
|
|
371
|
-
|
|
372
337
|
var className = _ref.className,
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
338
|
+
_ref$margin = _ref.margin,
|
|
339
|
+
margin = _ref$margin === void 0 ? 'both' : _ref$margin,
|
|
340
|
+
as = _ref.as,
|
|
341
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
378
342
|
var Element = as || defaultElement$1;
|
|
379
343
|
return React__default["default"].createElement(Element, _extends({
|
|
380
344
|
className: classNames__default["default"]('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)
|
|
@@ -385,12 +349,10 @@ var _excluded$1 = ["className", "margin", "as"];
|
|
|
385
349
|
var defaultElement = 'p';
|
|
386
350
|
var SubParagraph = function SubParagraph(_ref) {
|
|
387
351
|
var _classNames;
|
|
388
|
-
|
|
389
352
|
var className = _ref.className,
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
353
|
+
margin = _ref.margin,
|
|
354
|
+
as = _ref.as,
|
|
355
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
394
356
|
var Element = as || defaultElement;
|
|
395
357
|
return React__default["default"].createElement(Element, _extends({
|
|
396
358
|
className: classNames__default["default"]('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)
|
|
@@ -400,8 +362,7 @@ var SubParagraph = function SubParagraph(_ref) {
|
|
|
400
362
|
var _excluded = ["className"];
|
|
401
363
|
var UnorderedList = function UnorderedList(_ref) {
|
|
402
364
|
var className = _ref.className,
|
|
403
|
-
|
|
404
|
-
|
|
365
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
405
366
|
return React__default["default"].createElement("ul", _extends({
|
|
406
367
|
className: classNames__default["default"]('eds-unordered-list', className)
|
|
407
368
|
}, rest));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.cjs.development.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, ...rest }) => {\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,uCAAA,aAAA;AAAYF,IAAAA,SAAS,EAAEG,8BAAU,CAAC,gBAAD,EAAmBH,SAAnB;AAAjC,KAAoEC,IAApE,EADF;AAGD;IAOYG,gBAAgB,GAC3B,SADWA,gBACX;MAAGJ,kBAAAA;MAAcC;;AACf,SACEC,uCAAA,SAAA;AACEF,IAAAA,SAAS,EAAEG,8BAAU,CAAC,wBAAD,EAA2BH,SAA3B;AADvB,KAEMC,IAFN,EADF;AAMD;;;ACfH,IAAMI,gBAAc,GAAG,MAAvB;IAEaC,QAAQ,GAAG,SAAXA,QAAW;MACtBN,iBAAAA;MACAO,UAAAA;MACGN;;AAEH,MAAMO,OAAO,GAAsBD,EAAE,IAAIF,gBAAzC;AACA,SACEH,uCAAA,CAACM,OAAD;AAASR,IAAAA,SAAS,EAAEG,8BAAU,CAAC,eAAD,EAAkBH,SAAlB;AAA9B,KAAgEC,IAAhE,EADF;AAGD;;;ACND,IAAMI,gBAAc,GAAG,IAAvB;IAEaI,cAAc,GAAG,SAAjBA,cAAiB;;;MAG5BT,iBAAAA;yBACAU;MAAAA,kCAAS;MACTH,UAAAA;MACGN;;AAEH,MAAMO,OAAO,GAAsBD,EAAE,IAAIF,gBAAzC;AACA,SACEH,uCAAA,CAACM,OAAD;AACER,IAAAA,SAAS,EAAEG,8BAAU,CACnB,qBADmB,sEAGoBO,MAAM,KAAK,KAH/B,sDAIuBA,MAAM,KAAK,QAJlC,oDAKqBA,MAAM,KAAK,MALhC,gBAOnBV,SAPmB;AADvB,KAUMC,IAVN,EADF;AAcD;;;AChCD,IAAMI,g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,IAAAA,SAAS,EAAEG,8BAAU,CACnB,eADmB,gEAGcO,MAAM,KAAK,KAHzB,gDAIiBA,MAAM,KAAK,QAJ5B,8CAKeA,MAAM,KAAK,MAL1B,gBAOnBV,SAPmB;AADvB,KAUMC,IAVN,EADF;AAcD;;;ACtBD,IAAMI,cAAc,GAAG,GAAvB;IAEa4B,YAAY,GAAG,SAAfA,YAAe;;;MAG1BjC,iBAAAA;MACAU,cAAAA;MACAH,UAAAA;MACGN;;AAEH,MAAMO,OAAO,GAAsBD,EAAE,IAAIF,cAAzC;AACA,SACEH,uCAAA,CAACM,OAAD;AACER,IAAAA,SAAS,EAAEG,8BAAU,CACnB,mBADmB,oEAGkBO,MAAM,KAAK,KAH7B,oDAIqBA,MAAM,KAAK,QAJhC,kDAKmBA,MAAM,KAAK,MAL9B,gBAOnBV,SAPmB;AADvB,KAUMC,IAVN,EADF;AAcD;;;ICnCYiC,aAAa,GAAiC,SAA9CA,aAA8C;AAAA,MACzDlC,SADyD,QACzDA,SADyD;AAAA,MAEtDC,IAFsD;;AAAA,SAGrDC,uCAAA,KAAA;AAAIF,IAAAA,SAAS,EAAEG,8BAAU,CAAC,oBAAD,EAAuBH,SAAvB;AAAzB,KAAgEC,IAAhE,EAHqD;AAAA;;ACV3DkC,4BAAsB,CAAC,YAAD,CAAtB;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"typography.cjs.development.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, ...rest }) => {\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","_excluded","React","createElement","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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWaA,IAAAA,UAAU,GAA6C,SAAvDA,UAAU,CAGlB,IAAA,EAAA;EAAA,IAFHC,SAAS,QAATA,SAAS;IACNC,IAAI,GAAA,6BAAA,CAAA,IAAA,EAAAC,WAAA,CAAA,CAAA;AAEP,EAAA,OACEC,yBAAA,CAAAC,aAAA,CAAA,YAAA,EAAA,QAAA,CAAA;AAAYJ,IAAAA,SAAS,EAAEK,8BAAU,CAAC,gBAAgB,EAAEL,SAAS,CAAA;AAAC,GAAA,EAAMC,IAAI,CAAI,CAAA,CAAA;AAEhF,EAAC;AAOYK,IAAAA,gBAAgB,GAC3B,SADWA,gBAAgB,CACA,KAAA,EAAA;EAAA,IAAxBN,SAAS,SAATA,SAAS;IAAKC,IAAI,GAAA,6BAAA,CAAA,KAAA,EAAA,UAAA,CAAA,CAA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N;;;ACnCamC,IAAAA,aAAa,GAAiC,SAA9CA,aAAa,CAAA,IAAA,EAAA;EAAA,IACxBpC,SAAS,QAATA,SAAS;IACNC,IAAI,GAAA,6BAAA,CAAA,IAAA,EAAA,SAAA,CAAA,CAAA;AAAA,EAAA,OACHE,yBAAI,CAAAC,aAAA,CAAA,IAAA,EAAA,QAAA,CAAA;AAAAJ,IAAAA,SAAS,EAAEK,8BAAU,CAAC,oBAAoB,EAAEL,SAAS,CAAA;AAAC,GAAA,EAAMC,IAAI,CAAI,CAAA,CAAA;AAAA;;ACb9EoC,4BAAsB,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@entur/utils"),a=require("react"),t=require("classnames");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(a),s=r(t);function l(){return l=Object.assign
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@entur/utils"),a=require("react"),t=require("classnames");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(a),s=r(t);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},l.apply(this,arguments)}function o(e,a){if(null==e)return{};var t,r,n={},s=Object.keys(e);for(r=0;r<s.length;r++)a.indexOf(t=s[r])>=0||(n[t]=e[t]);return n}var m=["className"],i=["className"],d=["className","as"],c=["className","margin","as"],u=["className","level","margin","as"],g=function(e){var a,t=e.className,r=e.level,m=e.margin,i=e.as,d=o(e,u),c="eds-h"+r;return n.default.createElement(i||"h1",l({className:s.default(c,(a={},a[c+"--margin-top"]="top"===m,a[c+"--margin-bottom"]="bottom"===m,a[c+"--margin-none"]="none"===m,a),t)},d))},p=["margin","children","as"],f=["margin","children","as"],b=["margin","children","as"],h=["margin","children","as"],v=["margin","children","as"],N=["margin","children","as"],x=["className","margin","as"],E=["className","margin","as"],y=["className","margin","as"],k=["className","margin","as"],q=function(e){var a,t=e.className,r=e.margin,m=void 0===r?"both":r,i=e.as,d=o(e,k);return n.default.createElement(i||"strong",l({className:s.default("eds-strong-text",(a={},a["eds-strong-text--margin-top"]="top"===m,a["eds-strong-text--margin-bottom"]="bottom"===m,a["eds-strong-text--margin-none"]="none"===m,a),t)},d))},L=["children","className","title"],O=["className","type"],j=["margin","className","as"],H=["className","as"],P=["className","margin","as"],_=["className","margin","as"],z=["className","margin","as"],S=["className"];e.warnAboutMissingStyles("typography"),exports.Blockquote=function(e){var a=e.className,t=o(e,m);return n.default.createElement("blockquote",l({className:s.default("eds-blockquote",a)},t))},exports.BlockquoteFooter=function(e){var a=e.className,t=o(e,i);return n.default.createElement("footer",l({className:s.default("eds-blockquote__footer",a)},t))},exports.CodeText=function(e){var a=e.className,t=e.as,r=o(e,d);return n.default.createElement(t||"code",l({className:s.default("eds-code-text",a)},r))},exports.EmphasizedText=function(e){var a,t=e.className,r=e.margin,m=void 0===r?"both":r,i=e.as,d=o(e,c);return n.default.createElement(i||"em",l({className:s.default("eds-emphasized-text",(a={},a["eds-emphasized-text--margin-top"]="top"===m,a["eds-emphasized-text--margin-bottom"]="bottom"===m,a["eds-emphasized-text--margin-none"]="none"===m,a),t)},d))},exports.Heading1=function(e){var a=e.margin,t=void 0===a?"both":a,r=e.children,s=e.as,m=o(e,p);return n.default.createElement(g,l({as:s||"h1",margin:t},m,{level:1}),r)},exports.Heading2=function(e){var a=e.margin,t=void 0===a?"both":a,r=e.children,s=e.as,m=o(e,f);return n.default.createElement(g,l({as:s||"h2",margin:t},m,{level:2}),r)},exports.Heading3=function(e){var a=e.margin,t=void 0===a?"both":a,r=e.children,s=e.as,m=o(e,b);return n.default.createElement(g,l({as:s||"h3",margin:t},m,{level:3}),r)},exports.Heading4=function(e){var a=e.margin,t=void 0===a?"both":a,r=e.children,s=e.as,m=o(e,h);return n.default.createElement(g,l({as:s||"h4",margin:t},m,{level:4}),r)},exports.Heading5=function(e){var a=e.margin,t=void 0===a?"both":a,r=e.children,s=e.as,m=o(e,v);return n.default.createElement(g,l({as:s||"h5",margin:t},m,{level:5}),r)},exports.Heading6=function(e){var a=e.margin,t=void 0===a?"both":a,r=e.children,s=e.as,m=o(e,N);return n.default.createElement(g,l({as:s||"h6",margin:t},m,{level:6}),r)},exports.Label=function(e){var a,t=e.className,r=e.margin,m=void 0===r?"both":r,i=e.as,d=o(e,x);return n.default.createElement(i||"label",l({className:s.default("eds-label",(a={},a["eds-label--margin-top"]="top"===m,a["eds-label--margin-bottom"]="bottom"===m,a["eds-label--margin-none"]="none"===m,a),t)},d))},exports.LeadParagraph=function(e){var a,t=e.className,r=e.margin,m=void 0===r?"both":r,i=e.as,d=o(e,E);return n.default.createElement(i||"p",l({className:s.default("eds-lead-paragraph",(a={},a["eds-lead-paragraph--margin-top"]="top"===m,a["eds-lead-paragraph--margin-bottom"]="bottom"===m,a["eds-lead-paragraph--margin-none"]="none"===m,a),t)},d))},exports.Link=function(e){var a,t=e.className,r=e.margin,m=void 0===r?"both":r,i=e.as,d=o(e,y);return n.default.createElement(i||"a",l({className:s.default("eds-link",(a={},a["eds-link--margin-top"]="top"===m,a["eds-link--margin-bottom"]="bottom"===m,a["eds-link--margin-none"]="none"===m,a),t)},d))},exports.ListItem=function(e){var a=e.children,t=e.className,r=e.title,m=o(e,L);return n.default.createElement("li",l({className:s.default("eds-list-item",t)},m),r&&n.default.createElement(q,{className:"eds-list-item__title"},r),a)},exports.NumberedList=function(e){var a,t=e.className,r=e.type,m=void 0===r?"1":r,i=o(e,O);return n.default.createElement("ol",l({className:s.default("eds-numbered-list",(a={},a["eds-numbered-list--type-"+m]=m,a),t),type:m},i))},exports.Paragraph=function(e){var a=e.margin,t=void 0===a?"bottom":a,r=e.className,m=e.as,i=o(e,j);return n.default.createElement(m||"p",l({className:s.default("eds-paragraph",{"eds-paragraph--margin-bottom":"bottom"===t,"eds-paragraph--margin-none":"none"===t},r)},i))},exports.PreformattedText=function(e){var a=e.className,t=e.as,r=o(e,H);return n.default.createElement(t||"pre",l({className:s.default("eds-preformatted-text",a)},r))},exports.SmallText=function(e){var a,t=e.className,r=e.margin,m=void 0===r?"both":r,i=e.as,d=o(e,P);return n.default.createElement(i||"span",l({className:s.default("eds-small-text",(a={},a["eds-small-text--margin-top"]="top"===m,a["eds-small-text--margin-bottom"]="bottom"===m,a["eds-small-text--margin-none"]="none"===m,a),t)},d))},exports.StrongText=q,exports.SubLabel=function(e){var a,t=e.className,r=e.margin,m=void 0===r?"both":r,i=e.as,d=o(e,_);return n.default.createElement(i||"span",l({className:s.default("eds-sub-label",(a={},a["eds-sub-label--margin-top"]="top"===m,a["eds-sub-label--margin-bottom"]="bottom"===m,a["eds-sub-label--margin-none"]="none"===m,a),t)},d))},exports.SubParagraph=function(e){var a,t=e.className,r=e.margin,m=e.as,i=o(e,z);return n.default.createElement(m||"p",l({className:s.default("eds-sub-paragraph",(a={},a["eds-sub-paragraph--margin-top"]="top"===r,a["eds-sub-paragraph--margin-bottom"]="bottom"===r,a["eds-sub-paragraph--margin-none"]="none"===r,a),t)},i))},exports.UnorderedList=function(e){var a=e.className,t=o(e,S);return n.default.createElement("ul",l({className:s.default("eds-unordered-list",a)},t))};
|
|
2
2
|
//# sourceMappingURL=typography.cjs.production.min.js.map
|