@entur/typography 1.8.50-alpha.0 → 1.8.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/BaseHeading.d.ts +1 -1
- package/dist/CodeText.d.ts +1 -1
- package/dist/EmphasizedText.d.ts +1 -1
- package/dist/Heading1.d.ts +1 -1
- package/dist/Heading2.d.ts +1 -1
- package/dist/Heading3.d.ts +1 -1
- package/dist/Heading4.d.ts +1 -1
- package/dist/Heading5.d.ts +1 -1
- package/dist/Heading6.d.ts +1 -1
- package/dist/Label.d.ts +1 -1
- package/dist/LeadParagraph.d.ts +1 -1
- package/dist/Link.d.ts +1 -1
- package/dist/Paragraph.d.ts +1 -1
- package/dist/PreformattedText.d.ts +3 -1
- package/dist/SmallText.d.ts +1 -1
- package/dist/StrongText.d.ts +1 -1
- package/dist/SubLabel.d.ts +1 -1
- package/dist/SubParagraph.d.ts +1 -1
- package/dist/styles.css +22 -0
- package/dist/typography.cjs.development.js +13 -21
- 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 +13 -21
- package/dist/typography.esm.js.map +1 -1
- package/package.json +9 -6
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Entur's official font is Nationale and is created by Playtype Foundry, located i
|
|
|
6
6
|
|
|
7
7
|
This package contains styles and React components for all of our typography.
|
|
8
8
|
|
|
9
|
-
> 💡 Looking for the [documentation](https://design.entur.no/komponenter/
|
|
9
|
+
> 💡 Looking for the [documentation](https://design.entur.no/komponenter/ressurser/typography)?
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ yarn add @entur/typography
|
|
|
18
18
|
|
|
19
19
|
## Usage
|
|
20
20
|
|
|
21
|
-
Please refer to the [documentation](https://design.entur.no/komponenter/
|
|
21
|
+
Please refer to the [documentation](https://design.entur.no/komponenter/ressurser/typography) for usage information.
|
|
22
22
|
|
|
23
23
|
## Licenses
|
|
24
24
|
|
package/dist/BaseHeading.d.ts
CHANGED
|
@@ -14,5 +14,5 @@ type BaseHeadingOwnProps = {
|
|
|
14
14
|
};
|
|
15
15
|
declare const defaultElement = "h1";
|
|
16
16
|
export type BaseHeadingProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, BaseHeadingOwnProps>;
|
|
17
|
-
export declare const BaseHeading: <E extends React.ElementType
|
|
17
|
+
export declare const BaseHeading: <E extends React.ElementType = "h1">({ className, level, margin, as, ...rest }: BaseHeadingProps<E>) => JSX.Element;
|
|
18
18
|
export {};
|
package/dist/CodeText.d.ts
CHANGED
|
@@ -12,5 +12,5 @@ export type CodeTextOwnProps = {
|
|
|
12
12
|
};
|
|
13
13
|
export type CodeTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, CodeTextOwnProps>;
|
|
14
14
|
declare const defaultElement = "code";
|
|
15
|
-
export declare const CodeText: <E extends React.ElementType
|
|
15
|
+
export declare const CodeText: <E extends React.ElementType = "code">({ className, as, ...rest }: CodeTextProps<E>) => JSX.Element;
|
|
16
16
|
export {};
|
package/dist/EmphasizedText.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export type EmphasizedTextOwnProps = {
|
|
|
16
16
|
};
|
|
17
17
|
export type EmphasizedTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, EmphasizedTextOwnProps>;
|
|
18
18
|
declare const defaultElement = "em";
|
|
19
|
-
export declare const EmphasizedText: <E extends React.ElementType
|
|
19
|
+
export declare const EmphasizedText: <E extends React.ElementType = "em">({ className, margin, as, ...rest }: EmphasizedTextProps<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/Heading1.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export type Heading1OwnProps = {
|
|
|
16
16
|
};
|
|
17
17
|
declare const defaultElement = "h1";
|
|
18
18
|
export type Heading1Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading1OwnProps>;
|
|
19
|
-
export declare const Heading1: <E extends React.ElementType
|
|
19
|
+
export declare const Heading1: <E extends React.ElementType = "h1">({ margin, children, as, ...rest }: Heading1Props<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/Heading2.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export type Heading2OwnProps = {
|
|
|
16
16
|
};
|
|
17
17
|
export type Heading2Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading2OwnProps>;
|
|
18
18
|
declare const defaultElement = "h2";
|
|
19
|
-
export declare const Heading2: <E extends React.ElementType
|
|
19
|
+
export declare const Heading2: <E extends React.ElementType = "h2">({ margin, children, as, ...rest }: Heading2Props<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/Heading3.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export type Heading3OwnProps = {
|
|
|
16
16
|
};
|
|
17
17
|
export type Heading3Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading3OwnProps>;
|
|
18
18
|
declare const defaultElement = "h3";
|
|
19
|
-
export declare const Heading3: <E extends React.ElementType
|
|
19
|
+
export declare const Heading3: <E extends React.ElementType = "h3">({ margin, children, as, ...rest }: Heading3Props<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/Heading4.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export type Heading4OwnProps = {
|
|
|
16
16
|
};
|
|
17
17
|
export type Heading4Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading4OwnProps>;
|
|
18
18
|
declare const defaultElement = "h4";
|
|
19
|
-
export declare const Heading4: <E extends React.ElementType
|
|
19
|
+
export declare const Heading4: <E extends React.ElementType = "h4">({ margin, children, as, ...rest }: Heading4Props<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/Heading5.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export type Heading5OwnProps = {
|
|
|
16
16
|
};
|
|
17
17
|
export type Heading5Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading5OwnProps>;
|
|
18
18
|
declare const defaultElement = "h5";
|
|
19
|
-
export declare const Heading5: <E extends React.ElementType
|
|
19
|
+
export declare const Heading5: <E extends React.ElementType = "h5">({ margin, children, as, ...rest }: Heading5Props<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/Heading6.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export type Heading6OwnProps = {
|
|
|
16
16
|
};
|
|
17
17
|
export type Heading6Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading6OwnProps>;
|
|
18
18
|
declare const defaultElement = "h6";
|
|
19
|
-
export declare const Heading6: <E extends React.ElementType
|
|
19
|
+
export declare const Heading6: <E extends React.ElementType = "h6">({ margin, children, as, ...rest }: Heading6Props<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/Label.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export type LabelOwnProps = {
|
|
|
16
16
|
};
|
|
17
17
|
export type LabelProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, LabelOwnProps>;
|
|
18
18
|
declare const defaultElement = "label";
|
|
19
|
-
export declare const Label: <E extends React.ElementType
|
|
19
|
+
export declare const Label: <E extends React.ElementType = "label">({ className, margin, as, ...rest }: LabelProps<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/LeadParagraph.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export type LeadParagraphOwnProps = {
|
|
|
16
16
|
};
|
|
17
17
|
export type LeadParagraphProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, LeadParagraphOwnProps>;
|
|
18
18
|
declare const defaultElement = "p";
|
|
19
|
-
export declare const LeadParagraph: <E extends React.ElementType
|
|
19
|
+
export declare const LeadParagraph: <E extends React.ElementType = "p">({ className, margin, as, ...rest }: LeadParagraphProps<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/Link.d.ts
CHANGED
|
@@ -18,5 +18,5 @@ export type LinkOwnProps = {
|
|
|
18
18
|
};
|
|
19
19
|
export type LinkProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, LinkOwnProps>;
|
|
20
20
|
declare const defaultElement = "a";
|
|
21
|
-
export declare const Link: <E extends React.ElementType
|
|
21
|
+
export declare const Link: <E extends React.ElementType = "a">({ external, ariaLabelExternalIcon, className, margin, children, as, ...rest }: LinkProps<E>) => JSX.Element;
|
|
22
22
|
export {};
|
package/dist/Paragraph.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export type ParagraphOwnProps = {
|
|
|
16
16
|
};
|
|
17
17
|
export type ParagraphProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, ParagraphOwnProps>;
|
|
18
18
|
declare const defaultElement = "p";
|
|
19
|
-
export declare const Paragraph: <E extends React.ElementType
|
|
19
|
+
export declare const Paragraph: <E extends React.ElementType = "p">({ margin, className, as, ...rest }: ParagraphProps<E>) => JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -11,4 +11,6 @@ export type PreformattedTextOwnProps = {
|
|
|
11
11
|
children: React.ReactNode;
|
|
12
12
|
};
|
|
13
13
|
export type PreformattedTextProps<T extends React.ElementType> = PolymorphicComponentProps<T, PreformattedTextOwnProps>;
|
|
14
|
-
|
|
14
|
+
declare const defaultElement = "pre";
|
|
15
|
+
export declare const PreformattedText: <E extends React.ElementType = "pre">({ className, as, ...rest }: PreformattedTextProps<E>) => JSX.Element;
|
|
16
|
+
export {};
|
package/dist/SmallText.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export type SmallTextOwnProps = {
|
|
|
16
16
|
};
|
|
17
17
|
export type SmallTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, SmallTextOwnProps>;
|
|
18
18
|
declare const defaultElement = "span";
|
|
19
|
-
export declare const SmallText: <E extends React.ElementType
|
|
19
|
+
export declare const SmallText: <E extends React.ElementType = "span">({ className, margin, as, ...rest }: SmallTextProps<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/StrongText.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export type StrongTextOwnProps = {
|
|
|
16
16
|
};
|
|
17
17
|
export type StrongTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, StrongTextOwnProps>;
|
|
18
18
|
declare const defaultElement = "strong";
|
|
19
|
-
export declare const StrongText: <E extends React.ElementType
|
|
19
|
+
export declare const StrongText: <E extends React.ElementType = "strong">({ className, margin, as, ...rest }: StrongTextProps<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/SubLabel.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export type SubLabelOwnProps = {
|
|
|
16
16
|
};
|
|
17
17
|
export type SubLabelProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, SubLabelOwnProps>;
|
|
18
18
|
declare const defaultElement = "span";
|
|
19
|
-
export declare const SubLabel: <E extends React.ElementType
|
|
19
|
+
export declare const SubLabel: <E extends React.ElementType = "span">({ className, margin, as, ...rest }: SubLabelProps<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/SubParagraph.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export type SubParagraphOwnProps = {
|
|
|
16
16
|
};
|
|
17
17
|
export type SubParagraphProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, SubParagraphOwnProps>;
|
|
18
18
|
declare const defaultElement = "p";
|
|
19
|
-
export declare const SubParagraph: <E extends React.ElementType
|
|
19
|
+
export declare const SubParagraph: <E extends React.ElementType = "p">({ className, margin, as, ...rest }: SubParagraphProps<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/styles.css
CHANGED
|
@@ -266,7 +266,9 @@
|
|
|
266
266
|
--eds-font-family: "Nationale", Arial, "Gotham Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
|
|
267
267
|
"Helvetica Neue", sans-serif;
|
|
268
268
|
box-sizing: border-box;
|
|
269
|
+
color: #181c56;
|
|
269
270
|
color: var(--primary-text-color);
|
|
271
|
+
background-color: #ffffff;
|
|
270
272
|
background-color: var(--primary-background-color);
|
|
271
273
|
font-family: "Nationale", Arial, "Gotham Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
272
274
|
font-weight: 500;
|
|
@@ -279,7 +281,9 @@
|
|
|
279
281
|
--primary-background-color: var(--basecolors-frame-contrast);
|
|
280
282
|
--primary-text-color: var(--components-typography-basetext-contrast-text-accent);
|
|
281
283
|
--primary-label-color: var(--components-typography-label-contrast-text-accent);
|
|
284
|
+
color: #ffffff;
|
|
282
285
|
color: var(--primary-text-color);
|
|
286
|
+
background-color: #181c56;
|
|
283
287
|
background-color: var(--primary-background-color);
|
|
284
288
|
}
|
|
285
289
|
@media screen and (min-width: 50rem) {
|
|
@@ -304,6 +308,7 @@
|
|
|
304
308
|
.eds-h4,
|
|
305
309
|
.eds-h5,
|
|
306
310
|
.eds-h6 {
|
|
311
|
+
color: #181c56;
|
|
307
312
|
color: var(--primary-text-color);
|
|
308
313
|
font-weight: 600;
|
|
309
314
|
-webkit-font-smoothing: antialiased;
|
|
@@ -382,6 +387,7 @@
|
|
|
382
387
|
}
|
|
383
388
|
|
|
384
389
|
.eds-paragraph {
|
|
390
|
+
color: #181c56;
|
|
385
391
|
color: var(--primary-text-color);
|
|
386
392
|
font-size: 1rem;
|
|
387
393
|
line-height: 1.5rem;
|
|
@@ -395,6 +401,7 @@
|
|
|
395
401
|
}
|
|
396
402
|
|
|
397
403
|
.eds-lead-paragraph {
|
|
404
|
+
color: #181c56;
|
|
398
405
|
color: var(--primary-text-color);
|
|
399
406
|
font-size: 1.25rem;
|
|
400
407
|
line-height: 1.875rem;
|
|
@@ -408,6 +415,7 @@
|
|
|
408
415
|
}
|
|
409
416
|
|
|
410
417
|
.eds-sub-paragraph {
|
|
418
|
+
color: #181c56;
|
|
411
419
|
color: var(--primary-text-color);
|
|
412
420
|
font-size: 0.875rem;
|
|
413
421
|
line-height: 1.25rem;
|
|
@@ -419,6 +427,7 @@
|
|
|
419
427
|
}
|
|
420
428
|
|
|
421
429
|
.eds-small-text {
|
|
430
|
+
color: #181c56;
|
|
422
431
|
color: var(--primary-text-color);
|
|
423
432
|
font-size: 0.625rem;
|
|
424
433
|
line-height: 1rem;
|
|
@@ -431,12 +440,15 @@
|
|
|
431
440
|
}
|
|
432
441
|
|
|
433
442
|
.eds-link {
|
|
443
|
+
color: #181c56;
|
|
434
444
|
color: var(--primary-text-color);
|
|
435
445
|
}
|
|
436
446
|
.eds-link, .eds-link:link, .eds-link:visited {
|
|
437
447
|
font-size: inherit;
|
|
448
|
+
-webkit-text-decoration: none;
|
|
438
449
|
text-decoration: none;
|
|
439
450
|
position: relative;
|
|
451
|
+
background-image: linear-gradient(120deg, #181c56 0%, #181c56 100%);
|
|
440
452
|
background-image: linear-gradient(120deg, var(--primary-text-color) 0%, var(--primary-text-color) 100%);
|
|
441
453
|
background-repeat: no-repeat;
|
|
442
454
|
background-size: 100% 0.125rem;
|
|
@@ -456,10 +468,12 @@
|
|
|
456
468
|
}
|
|
457
469
|
.eds-link:focus {
|
|
458
470
|
outline: 2px solid #181c56;
|
|
471
|
+
outline-color: #181c56;
|
|
459
472
|
outline-color: var(--basecolors-stroke-focus-standard);
|
|
460
473
|
outline-offset: 0.125rem;
|
|
461
474
|
}
|
|
462
475
|
.eds-contrast .eds-link:focus {
|
|
476
|
+
outline-color: #aeb7e2;
|
|
463
477
|
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
464
478
|
}
|
|
465
479
|
@media screen and (min-width: 50rem) {
|
|
@@ -477,6 +491,7 @@ p .eds-link--ext-icon {
|
|
|
477
491
|
|
|
478
492
|
.eds-label,
|
|
479
493
|
.eds-sub-label {
|
|
494
|
+
color: #626493;
|
|
480
495
|
color: var(--primary-label-color);
|
|
481
496
|
}
|
|
482
497
|
|
|
@@ -510,9 +525,12 @@ p .eds-link--ext-icon {
|
|
|
510
525
|
|
|
511
526
|
.eds-preformatted-text,
|
|
512
527
|
.eds-code-text {
|
|
528
|
+
background-color: #f6f6f9;
|
|
513
529
|
background-color: var(--components-typography-codetext-standard-fill);
|
|
530
|
+
border: 0.0625rem solid rgba(84, 86, 140, 0.4);
|
|
514
531
|
border: 0.0625rem solid var(--components-typography-codetext-standard-border);
|
|
515
532
|
border-radius: 0.25rem;
|
|
533
|
+
color: #181c56;
|
|
516
534
|
color: var(--components-typography-codetext-standard-text);
|
|
517
535
|
font-family: "Monaco", monospace;
|
|
518
536
|
font-size: 0.875rem;
|
|
@@ -541,6 +559,7 @@ p .eds-link--ext-icon {
|
|
|
541
559
|
}
|
|
542
560
|
.eds-unordered-list .eds-list-item::before {
|
|
543
561
|
content: "";
|
|
562
|
+
background: #aeb7e2;
|
|
544
563
|
background: var(--components-typography-list-standard-border);
|
|
545
564
|
display: block;
|
|
546
565
|
height: 0.125rem;
|
|
@@ -580,10 +599,12 @@ p .eds-link--ext-icon {
|
|
|
580
599
|
position: relative;
|
|
581
600
|
}
|
|
582
601
|
.eds-numbered-list > .eds-list-item::before {
|
|
602
|
+
color: #181c56;
|
|
583
603
|
color: var(--primary-text-color);
|
|
584
604
|
position: absolute;
|
|
585
605
|
font-weight: 600;
|
|
586
606
|
left: -2.5rem;
|
|
607
|
+
border: 0.125rem solid #aeb7e2;
|
|
587
608
|
border: 0.125rem solid var(--components-typography-list-standard-border);
|
|
588
609
|
border-radius: 50%;
|
|
589
610
|
height: 2rem;
|
|
@@ -604,6 +625,7 @@ p .eds-link--ext-icon {
|
|
|
604
625
|
}
|
|
605
626
|
|
|
606
627
|
.eds-blockquote {
|
|
628
|
+
border-left: 0.25rem solid #8284ab;
|
|
607
629
|
border-left: 0.25rem solid var(--components-typography-blockquote-standard-stroke);
|
|
608
630
|
font-family: inherit;
|
|
609
631
|
font-size: 1.25rem;
|
|
@@ -8,30 +8,22 @@ var classNames = require('classnames');
|
|
|
8
8
|
var icons = require('@entur/icons');
|
|
9
9
|
|
|
10
10
|
function _extends() {
|
|
11
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
12
|
-
for (var
|
|
13
|
-
var
|
|
14
|
-
for (var
|
|
15
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
16
|
-
target[key] = source[key];
|
|
17
|
-
}
|
|
18
|
-
}
|
|
11
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
12
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
13
|
+
var t = arguments[e];
|
|
14
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
19
15
|
}
|
|
20
|
-
return
|
|
21
|
-
};
|
|
22
|
-
return _extends.apply(this, arguments);
|
|
16
|
+
return n;
|
|
17
|
+
}, _extends.apply(null, arguments);
|
|
23
18
|
}
|
|
24
|
-
function _objectWithoutPropertiesLoose(
|
|
25
|
-
if (
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
key = sourceKeys[i];
|
|
31
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
32
|
-
target[key] = source[key];
|
|
19
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
20
|
+
if (null == r) return {};
|
|
21
|
+
var t = {};
|
|
22
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
23
|
+
if (e.includes(n)) continue;
|
|
24
|
+
t[n] = r[n];
|
|
33
25
|
}
|
|
34
|
-
return
|
|
26
|
+
return t;
|
|
35
27
|
}
|
|
36
28
|
|
|
37
29
|
var _excluded$l = ["className", "ref"],
|
|
@@ -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 HTMLQuoteElement\n>;\n\nexport const Blockquote = ({ className, ref, ...rest }: BlockquoteProps) => {\n return (\n <blockquote\n className={classNames('eds-blockquote', className)}\n ref={ref}\n {...rest}\n />\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 { PolymorphicComponentProps } 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<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, CodeTextOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, EmphasizedTextOwnProps>;\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 { PolymorphicComponentProps } 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> = PolymorphicComponentProps<T, BaseHeadingOwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading1OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading2OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading3OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading4OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading5OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading6OwnProps>;\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 { PolymorphicComponentProps } 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<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, LabelOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, LeadParagraphOwnProps>;\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 { PolymorphicComponentProps } from '@entur/utils';\nimport { ExternalIcon } from '@entur/icons';\n\nexport type LinkOwnProps = {\n external?: boolean;\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 ariaLabelExternalIcon?: string;\n};\n\nexport type LinkProps<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, LinkOwnProps>;\n\nconst defaultElement = 'a';\n\nexport const Link = <E extends React.ElementType = typeof defaultElement>({\n external = false,\n ariaLabelExternalIcon = '(ekstern lenke)',\n className,\n margin = 'both',\n children,\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 {children}\n {external ? (\n <ExternalIcon\n className=\"eds-link--ext-icon\"\n aria-label={ariaLabelExternalIcon}\n />\n ) : (\n <></>\n )}\n </Element>\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, StrongTextOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, ParagraphOwnProps>;\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 { PolymorphicComponentProps } 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<T extends React.ElementType> =\n PolymorphicComponentProps<T, PreformattedTextOwnProps>;\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 { PolymorphicComponentProps } 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> = PolymorphicComponentProps<T, SmallTextOwnProps>;\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 { PolymorphicComponentProps } 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<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, SubLabelOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, SubParagraphOwnProps>;\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","ref","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","external","ariaLabelExternalIcon","ExternalIcon","Fragment","StrongText","ListItem","title","NumberedList","type","Paragraph","PreformattedText","SmallText","SubLabel","SubParagraph","UnorderedList","warnAboutMissingStyles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWaA,IAAAA,UAAU,GAAG,SAAbA,UAAU,CAAoD,IAAA,EAAA;EAAA,IAA9CC,SAAS,QAATA,SAAS;AAAEC,IAAAA,GAAG,QAAHA,GAAG;IAAKC,IAAI,GAAA,6BAAA,CAAA,IAAA,EAAAC,WAAA,CAAA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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 HTMLQuoteElement\n>;\n\nexport const Blockquote = ({ className, ref, ...rest }: BlockquoteProps) => {\n return (\n <blockquote\n className={classNames('eds-blockquote', className)}\n ref={ref}\n {...rest}\n />\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 { PolymorphicComponentProps } 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<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, CodeTextOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, EmphasizedTextOwnProps>;\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 { PolymorphicComponentProps } 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> = PolymorphicComponentProps<T, BaseHeadingOwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading1OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading2OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading3OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading4OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading5OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading6OwnProps>;\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 { PolymorphicComponentProps } 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<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, LabelOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, LeadParagraphOwnProps>;\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 { PolymorphicComponentProps } from '@entur/utils';\nimport { ExternalIcon } from '@entur/icons';\n\nexport type LinkOwnProps = {\n external?: boolean;\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 ariaLabelExternalIcon?: string;\n};\n\nexport type LinkProps<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, LinkOwnProps>;\n\nconst defaultElement = 'a';\n\nexport const Link = <E extends React.ElementType = typeof defaultElement>({\n external = false,\n ariaLabelExternalIcon = '(ekstern lenke)',\n className,\n margin = 'both',\n children,\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 {children}\n {external ? (\n <ExternalIcon\n className=\"eds-link--ext-icon\"\n aria-label={ariaLabelExternalIcon}\n />\n ) : (\n <></>\n )}\n </Element>\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, StrongTextOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, ParagraphOwnProps>;\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 { PolymorphicComponentProps } 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<T extends React.ElementType> =\n PolymorphicComponentProps<T, PreformattedTextOwnProps>;\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 { PolymorphicComponentProps } 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> = PolymorphicComponentProps<T, SmallTextOwnProps>;\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 { PolymorphicComponentProps } 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<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, SubLabelOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, SubParagraphOwnProps>;\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","_ref","className","ref","rest","_objectWithoutPropertiesLoose","_excluded","React","createElement","_extends","classNames","BlockquoteFooter","_ref2","_excluded2","defaultElement","CodeText","as","Element","EmphasizedText","_classNames","_ref$margin","margin","BaseHeading","level","baseClass","Heading1","children","Heading2","Heading3","Heading4","Heading5","Heading6","Label","LeadParagraph","Link","_ref$external","external","_ref$ariaLabelExterna","ariaLabelExternalIcon","ExternalIcon","Fragment","StrongText","ListItem","title","NumberedList","_ref$type","type","Paragraph","PreformattedText","SmallText","SubLabel","SubParagraph","UnorderedList","warnAboutMissingStyles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;AAAA,EAAA,OACHC,KAAI,CAAAC,aAAA,CAAA,IAAA,EAAAC,QAAA,CAAA;AAAAP,IAAAA,SAAS,EAAEQ,UAAU,CAAC,oBAAoB,EAAER,SAAS,CAAA;GAAOE,EAAAA,IAAI,CAAA,CAAI,CAAA;AAAA;;ACb9EiD,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"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@entur/utils"),a=require("react"),r=require("classnames"),t=require("@entur/icons");function n(){return n=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var t in r)({}).hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},n.apply(null,arguments)}function s(e,a){if(null==e)return{};var r={};for(var t in e)if({}.hasOwnProperty.call(e,t)){if(a.includes(t))continue;r[t]=e[t]}return r}var o=["className","ref"],l=["className"],m=["className","as"],i=["className","margin","as"],c=["className","level","margin","as"],d=function(e){var t,o=e.className,l=e.level,m=e.margin,i=e.as,d=s(e,c),g="eds-h"+l;return a.createElement(i||"h1",n({className:r(g,(t={},t[g+"--margin-top"]="top"===m,t[g+"--margin-bottom"]="bottom"===m,t[g+"--margin-none"]="none"===m,t),o)},d))},g=["margin","children","as"],p=["margin","children","as"],u=["margin","children","as"],b=["margin","children","as"],h=["margin","children","as"],v=["margin","children","as"],N=["className","margin","as"],x=["className","margin","as"],f=["external","ariaLabelExternalIcon","className","margin","children","as"],E=["className","margin","as"],k=function(e){var t,o=e.className,l=e.margin,m=void 0===l?"both":l,i=e.as,c=s(e,E);return a.createElement(i||"strong",n({className:r("eds-strong-text",(t={},t["eds-strong-text--margin-top"]="top"===m,t["eds-strong-text--margin-bottom"]="bottom"===m,t["eds-strong-text--margin-none"]="none"===m,t),o)},c))},y=["children","className","title"],q=["className","type"],L=["margin","className","as"],P=["className","as"],H=["className","margin","as"],_=["className","margin","as"],z=["className","margin","as"],O=["className"];e.warnAboutMissingStyles("typography"),exports.Blockquote=function(e){var t=e.className,l=e.ref,m=s(e,o);return a.createElement("blockquote",n({className:r("eds-blockquote",t),ref:l},m))},exports.BlockquoteFooter=function(e){var t=e.className,o=s(e,l);return a.createElement("footer",n({className:r("eds-blockquote__footer",t)},o))},exports.CodeText=function(e){var t=e.className,o=e.as,l=s(e,m);return a.createElement(o||"code",n({className:r("eds-code-text",t)},l))},exports.EmphasizedText=function(e){var t,o=e.className,l=e.margin,m=void 0===l?"both":l,c=e.as,d=s(e,i);return a.createElement(c||"em",n({className:r("eds-emphasized-text",(t={},t["eds-emphasized-text--margin-top"]="top"===m,t["eds-emphasized-text--margin-bottom"]="bottom"===m,t["eds-emphasized-text--margin-none"]="none"===m,t),o)},d))},exports.Heading1=function(e){var r=e.margin,t=void 0===r?"both":r,o=e.children,l=e.as,m=s(e,g);return a.createElement(d,n({as:l||"h1",margin:t},m,{level:1}),o)},exports.Heading2=function(e){var r=e.margin,t=void 0===r?"both":r,o=e.children,l=e.as,m=s(e,p);return a.createElement(d,n({as:l||"h2",margin:t},m,{level:2}),o)},exports.Heading3=function(e){var r=e.margin,t=void 0===r?"both":r,o=e.children,l=e.as,m=s(e,u);return a.createElement(d,n({as:l||"h3",margin:t},m,{level:3}),o)},exports.Heading4=function(e){var r=e.margin,t=void 0===r?"both":r,o=e.children,l=e.as,m=s(e,b);return a.createElement(d,n({as:l||"h4",margin:t},m,{level:4}),o)},exports.Heading5=function(e){var r=e.margin,t=void 0===r?"both":r,o=e.children,l=e.as,m=s(e,h);return a.createElement(d,n({as:l||"h5",margin:t},m,{level:5}),o)},exports.Heading6=function(e){var r=e.margin,t=void 0===r?"both":r,o=e.children,l=e.as,m=s(e,v);return a.createElement(d,n({as:l||"h6",margin:t},m,{level:6}),o)},exports.Label=function(e){var t,o=e.className,l=e.margin,m=void 0===l?"both":l,i=e.as,c=s(e,N);return a.createElement(i||"label",n({className:r("eds-label",(t={},t["eds-label--margin-top"]="top"===m,t["eds-label--margin-bottom"]="bottom"===m,t["eds-label--margin-none"]="none"===m,t),o)},c))},exports.LeadParagraph=function(e){var t,o=e.className,l=e.margin,m=void 0===l?"both":l,i=e.as,c=s(e,x);return a.createElement(i||"p",n({className:r("eds-lead-paragraph",(t={},t["eds-lead-paragraph--margin-top"]="top"===m,t["eds-lead-paragraph--margin-bottom"]="bottom"===m,t["eds-lead-paragraph--margin-none"]="none"===m,t),o)},c))},exports.Link=function(e){var o,l=e.external,m=void 0!==l&&l,i=e.ariaLabelExternalIcon,c=void 0===i?"(ekstern lenke)":i,d=e.className,g=e.margin,p=void 0===g?"both":g,u=e.children,b=e.as,h=s(e,f);return a.createElement(b||"a",n({className:r("eds-link",(o={},o["eds-link--margin-top"]="top"===p,o["eds-link--margin-bottom"]="bottom"===p,o["eds-link--margin-none"]="none"===p,o),d)},h),u,m?a.createElement(t.ExternalIcon,{className:"eds-link--ext-icon","aria-label":c}):a.createElement(a.Fragment,null))},exports.ListItem=function(e){var t=e.children,o=e.className,l=e.title,m=s(e,y);return a.createElement("li",n({className:r("eds-list-item",o)},m),l&&a.createElement(k,{className:"eds-list-item__title"},l),t)},exports.NumberedList=function(e){var t,o=e.className,l=e.type,m=void 0===l?"1":l,i=s(e,q);return a.createElement("ol",n({className:r("eds-numbered-list",(t={},t["eds-numbered-list--type-"+m]=m,t),o),type:m},i))},exports.Paragraph=function(e){var t=e.margin,o=void 0===t?"bottom":t,l=e.className,m=e.as,i=s(e,L);return a.createElement(m||"p",n({className:r("eds-paragraph",{"eds-paragraph--margin-bottom":"bottom"===o,"eds-paragraph--margin-none":"none"===o},l)},i))},exports.PreformattedText=function(e){var t=e.className,o=e.as,l=s(e,P);return a.createElement(o||"pre",n({className:r("eds-preformatted-text",t)},l))},exports.SmallText=function(e){var t,o=e.className,l=e.margin,m=void 0===l?"both":l,i=e.as,c=s(e,H);return a.createElement(i||"span",n({className:r("eds-small-text",(t={},t["eds-small-text--margin-top"]="top"===m,t["eds-small-text--margin-bottom"]="bottom"===m,t["eds-small-text--margin-none"]="none"===m,t),o)},c))},exports.StrongText=k,exports.SubLabel=function(e){var t,o=e.className,l=e.margin,m=void 0===l?"both":l,i=e.as,c=s(e,_);return a.createElement(i||"span",n({className:r("eds-sub-label",(t={},t["eds-sub-label--margin-top"]="top"===m,t["eds-sub-label--margin-bottom"]="bottom"===m,t["eds-sub-label--margin-none"]="none"===m,t),o)},c))},exports.SubParagraph=function(e){var t,o=e.className,l=e.margin,m=e.as,i=s(e,z);return a.createElement(m||"p",n({className:r("eds-sub-paragraph",(t={},t["eds-sub-paragraph--margin-top"]="top"===l,t["eds-sub-paragraph--margin-bottom"]="bottom"===l,t["eds-sub-paragraph--margin-none"]="none"===l,t),o)},i))},exports.UnorderedList=function(e){var t=e.className,o=s(e,O);return a.createElement("ul",n({className:r("eds-unordered-list",t)},o))};
|
|
2
2
|
//# sourceMappingURL=typography.cjs.production.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.cjs.production.min.js","sources":["../src/BaseHeading.tsx","../src/StrongText.tsx","../src/index.tsx","../src/Blockquote.tsx","../src/CodeText.tsx","../src/EmphasizedText.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/ListItem.tsx","../src/NumberedList.tsx","../src/Paragraph.tsx","../src/PreformattedText.tsx","../src/SmallText.tsx","../src/SubLabel.tsx","../src/SubParagraph.tsx","../src/UnorderedList.tsx"],"sourcesContent":["import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicComponentProps } 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> = PolymorphicComponentProps<T, BaseHeadingOwnProps>;\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 classNames from 'classnames';\nimport { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, StrongTextOwnProps>;\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 { 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","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 HTMLQuoteElement\n>;\n\nexport const Blockquote = ({ className, ref, ...rest }: BlockquoteProps) => {\n return (\n <blockquote\n className={classNames('eds-blockquote', className)}\n ref={ref}\n {...rest}\n />\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 { PolymorphicComponentProps } 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<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, CodeTextOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, EmphasizedTextOwnProps>;\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 { BaseHeading } from './BaseHeading';\nimport { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading1OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading2OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading3OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading4OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading5OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading6OwnProps>;\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 { PolymorphicComponentProps } 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<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, LabelOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, LeadParagraphOwnProps>;\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 { PolymorphicComponentProps } from '@entur/utils';\nimport { ExternalIcon } from '@entur/icons';\n\nexport type LinkOwnProps = {\n external?: boolean;\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 ariaLabelExternalIcon?: string;\n};\n\nexport type LinkProps<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, LinkOwnProps>;\n\nconst defaultElement = 'a';\n\nexport const Link = <E extends React.ElementType = typeof defaultElement>({\n external = false,\n ariaLabelExternalIcon = '(ekstern lenke)',\n className,\n margin = 'both',\n children,\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 {children}\n {external ? (\n <ExternalIcon\n className=\"eds-link--ext-icon\"\n aria-label={ariaLabelExternalIcon}\n />\n ) : (\n <></>\n )}\n </Element>\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, ParagraphOwnProps>;\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 { PolymorphicComponentProps } 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<T extends React.ElementType> =\n PolymorphicComponentProps<T, PreformattedTextOwnProps>;\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 { PolymorphicComponentProps } 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> = PolymorphicComponentProps<T, SmallTextOwnProps>;\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 { PolymorphicComponentProps } 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<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, SubLabelOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, SubParagraphOwnProps>;\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"],"names":["BaseHeading","_ref","_classNames","className","level","margin","as","rest","_objectWithoutPropertiesLoose","_excluded","baseClass","React","_extends","classNames","StrongText","_ref$margin","warnAboutMissingStyles","ref","createElement","_ref2","_excluded2","children","_ref$external","external","_ref$ariaLabelExterna","ariaLabelExternalIcon","ExternalIcon","Fragment","title","_ref$type","type"],"mappings":"kpBAsBaA,EAAc,SAQYC,GAAA,IAAAC,EALrCC,IAAAA,UACAC,IAAAA,MACAC,IAAAA,OACAC,IAAAA,GACGC,EAAIC,EAAAP,EAAAQ,GAGDC,UAAoBN,EAC1B,OACEO,gBAHiCL,GAfd,KAkBXM,EAAA,CACNT,UAAWU,EACTH,UAEMA,EAAS,gBAA4B,QAAXL,EAAgBH,EAC1CQ,EAA6BL,mBAAW,WAAXA,EAC7BK,EAAAA,mBAAsC,SAAXL,EAAiBH,GAElDC,IAEEI,GAGV,sVCtBaO,EAAa,SAOYb,GAAA,IAAAC,EAJpCC,IAAAA,UAASY,EAAAd,EACTI,OAAAA,aAAS,OAAMU,EACfT,IAAAA,GACGC,EAAIC,EAAAP,EAAAQ,GAGP,OACEE,gBAFiCL,GAVd,SAYXM,EAAA,CACNT,UAAWU,EACT,mBAAiBX,EAAA,CAAA,EAAAA,EAAA,+BAE6B,QAAXG,EACGA,EAAAA,kCAAW,WAAXA,EAAmBH,EAAA,gCACV,SAAXG,KAEpCF,IAEEI,GAGV,yNC7CAS,EAAsBA,uBAAC,iCCQG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C,IAAAA,GACGC,EAAIC,EAAAP,EAAAQ,GAGP,OACEE,gBAFiCL,GAVd,IAYXM,EAAA,CACNT,UAAWU,EACT,qBAAmBX,EAAA,CAAA,EAAAA,EAAA,iCAE6B,QAAXG,EACGA,EAAAA,oCAAW,WAAXA,EAAmBH,EAAA,kCACV,SAAXG,KAEtCF,IAEEI,GAGV,wBCnC2D,SAAjCN,GAAA,IACxBE,IAAAA,UACGI,EAAIC,EAAAP,EAAAQ,GAAA,OACHE,EAAIO,cAAA,KAAAN,EAAA,CAAAT,UAAWU,EAAW,qBAAsBV,IAAgBI,GAAQ"}
|
|
1
|
+
{"version":3,"file":"typography.cjs.production.min.js","sources":["../src/BaseHeading.tsx","../src/StrongText.tsx","../src/index.tsx","../src/Blockquote.tsx","../src/CodeText.tsx","../src/EmphasizedText.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/ListItem.tsx","../src/NumberedList.tsx","../src/Paragraph.tsx","../src/PreformattedText.tsx","../src/SmallText.tsx","../src/SubLabel.tsx","../src/SubParagraph.tsx","../src/UnorderedList.tsx"],"sourcesContent":["import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicComponentProps } 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> = PolymorphicComponentProps<T, BaseHeadingOwnProps>;\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 classNames from 'classnames';\nimport { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, StrongTextOwnProps>;\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 { 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","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 HTMLQuoteElement\n>;\n\nexport const Blockquote = ({ className, ref, ...rest }: BlockquoteProps) => {\n return (\n <blockquote\n className={classNames('eds-blockquote', className)}\n ref={ref}\n {...rest}\n />\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 { PolymorphicComponentProps } 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<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, CodeTextOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, EmphasizedTextOwnProps>;\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 { BaseHeading } from './BaseHeading';\nimport { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading1OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading2OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading3OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading4OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading5OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading6OwnProps>;\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 { PolymorphicComponentProps } 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<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, LabelOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, LeadParagraphOwnProps>;\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 { PolymorphicComponentProps } from '@entur/utils';\nimport { ExternalIcon } from '@entur/icons';\n\nexport type LinkOwnProps = {\n external?: boolean;\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 ariaLabelExternalIcon?: string;\n};\n\nexport type LinkProps<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, LinkOwnProps>;\n\nconst defaultElement = 'a';\n\nexport const Link = <E extends React.ElementType = typeof defaultElement>({\n external = false,\n ariaLabelExternalIcon = '(ekstern lenke)',\n className,\n margin = 'both',\n children,\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 {children}\n {external ? (\n <ExternalIcon\n className=\"eds-link--ext-icon\"\n aria-label={ariaLabelExternalIcon}\n />\n ) : (\n <></>\n )}\n </Element>\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, ParagraphOwnProps>;\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 { PolymorphicComponentProps } 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<T extends React.ElementType> =\n PolymorphicComponentProps<T, PreformattedTextOwnProps>;\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 { PolymorphicComponentProps } 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> = PolymorphicComponentProps<T, SmallTextOwnProps>;\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 { PolymorphicComponentProps } 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<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, SubLabelOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, SubParagraphOwnProps>;\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"],"names":["BaseHeading","_ref","_classNames","className","level","margin","as","rest","_objectWithoutPropertiesLoose","_excluded","baseClass","React","_extends","classNames","StrongText","_ref$margin","warnAboutMissingStyles","ref","createElement","_ref2","_excluded2","children","_ref$external","external","_ref$ariaLabelExterna","ariaLabelExternalIcon","ExternalIcon","Fragment","title","_ref$type","type"],"mappings":"2oBAsBaA,EAAc,SAAHC,GAQe,IAAAC,EALrCC,EAASF,EAATE,UACAC,EAAKH,EAALG,MACAC,EAAMJ,EAANI,OACAC,EAAEL,EAAFK,GACGC,EAAIC,EAAAP,EAAAQ,GAGDC,UAAoBN,EAC1B,OACEO,gBAHiCL,GAfd,KAkBXM,EAAA,CACNT,UAAWU,EACTH,GAASR,EAAA,CAAA,EAAAA,EAEHQ,EAAS,gBAA4B,QAAXL,EAAgBH,EAC1CQ,EAA6BL,mBAAW,WAAXA,EAAmBH,EAChDQ,EAAS,iBAA6B,SAAXL,EAAiBH,GAElDC,IAEEI,GAGV,sVCtBaO,EAAa,SAAHb,GAOe,IAAAC,EAJpCC,EAASF,EAATE,UAASY,EAAAd,EACTI,OAAAA,OAAS,IAAHU,EAAG,OAAMA,EACfT,EAAEL,EAAFK,GACGC,EAAIC,EAAAP,EAAAQ,GAGP,OACEE,gBAFiCL,GAVd,SAYXM,EAAA,CACNT,UAAWU,EACT,mBAAiBX,EAAA,CAAA,EAAAA,EAAA,+BAE6B,QAAXG,EAAgBH,EAAA,kCACF,WAAXG,EAAmBH,EAAA,gCACV,SAAXG,EAAiBH,GAErDC,IAEEI,GAGV,yNC7CAS,EAAsBA,uBAAC,iCCQG,SAAHf,GAAoD,IAA9CE,EAASF,EAATE,UAAWc,EAAGhB,EAAHgB,IAAQV,EAAIC,EAAAP,EAAAQ,GAClD,OACEE,EACEO,cAAA,aAAAN,EAAA,CAAAT,UAAWU,EAAW,iBAAkBV,GACxCc,IAAKA,GACDV,GAGV,2BAQE,SAD2BY,GACA,IAAxBhB,EAASgB,EAAThB,UAAcI,EAAIC,EAAA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EAAIC,EAAAP,EAAAQ,GAGP,OACEE,gBAFiCL,GARd,OAUXM,EAAA,CACNT,UAAWU,EACT,iBAAeX,EAAA,CAAA,EAAAA,EAAA,6BAE6B,QAAXG,EAAgBH,EAAA,gCACF,WAAXG,EAAmBH,EAAA,8BACV,SAAXG,EAAiBH,GAEnDC,IAEEI,GAGV,uBCpB4B,SAAHN,GAOe,IAAAC,EAJtCC,EAASF,EAATE,UACAE,EAAMJ,EAANI,OACAC,EAAEL,EAAFK,GACGC,EAAIC,EAAAP,EAAAQ,GAGP,OACEE,gBAFiCL,GAVd,IAYXM,EAAA,CACNT,UAAWU,EACT,qBAAmBX,EAAA,CAAA,EAAAA,EAAA,iCAE6B,QAAXG,EAAgBH,EAAA,oCACF,WAAXG,EAAmBH,EAAA,kCACV,SAAXG,EAAiBH,GAEvDC,IAEEI,GAGV,wBCnC2D,SAAjCN,GAAA,IACxBE,EAASF,EAATE,UACGI,EAAIC,EAAAP,EAAAQ,GAAA,OACHE,EAAIO,cAAA,KAAAN,EAAA,CAAAT,UAAWU,EAAW,qBAAsBV,IAAgBI,GAAQ"}
|
package/dist/typography.esm.js
CHANGED
|
@@ -4,30 +4,22 @@ import classNames from 'classnames';
|
|
|
4
4
|
import { ExternalIcon } from '@entur/icons';
|
|
5
5
|
|
|
6
6
|
function _extends() {
|
|
7
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
8
|
-
for (var
|
|
9
|
-
var
|
|
10
|
-
for (var
|
|
11
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
12
|
-
target[key] = source[key];
|
|
13
|
-
}
|
|
14
|
-
}
|
|
7
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
8
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
9
|
+
var t = arguments[e];
|
|
10
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
15
11
|
}
|
|
16
|
-
return
|
|
17
|
-
};
|
|
18
|
-
return _extends.apply(this, arguments);
|
|
12
|
+
return n;
|
|
13
|
+
}, _extends.apply(null, arguments);
|
|
19
14
|
}
|
|
20
|
-
function _objectWithoutPropertiesLoose(
|
|
21
|
-
if (
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
key = sourceKeys[i];
|
|
27
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
28
|
-
target[key] = source[key];
|
|
15
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
16
|
+
if (null == r) return {};
|
|
17
|
+
var t = {};
|
|
18
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
19
|
+
if (e.includes(n)) continue;
|
|
20
|
+
t[n] = r[n];
|
|
29
21
|
}
|
|
30
|
-
return
|
|
22
|
+
return t;
|
|
31
23
|
}
|
|
32
24
|
|
|
33
25
|
var _excluded$l = ["className", "ref"],
|
|
@@ -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 HTMLQuoteElement\n>;\n\nexport const Blockquote = ({ className, ref, ...rest }: BlockquoteProps) => {\n return (\n <blockquote\n className={classNames('eds-blockquote', className)}\n ref={ref}\n {...rest}\n />\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 { PolymorphicComponentProps } 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<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, CodeTextOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, EmphasizedTextOwnProps>;\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 { PolymorphicComponentProps } 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> = PolymorphicComponentProps<T, BaseHeadingOwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading1OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading2OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading3OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading4OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading5OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading6OwnProps>;\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 { PolymorphicComponentProps } 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<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, LabelOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, LeadParagraphOwnProps>;\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 { PolymorphicComponentProps } from '@entur/utils';\nimport { ExternalIcon } from '@entur/icons';\n\nexport type LinkOwnProps = {\n external?: boolean;\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 ariaLabelExternalIcon?: string;\n};\n\nexport type LinkProps<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, LinkOwnProps>;\n\nconst defaultElement = 'a';\n\nexport const Link = <E extends React.ElementType = typeof defaultElement>({\n external = false,\n ariaLabelExternalIcon = '(ekstern lenke)',\n className,\n margin = 'both',\n children,\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 {children}\n {external ? (\n <ExternalIcon\n className=\"eds-link--ext-icon\"\n aria-label={ariaLabelExternalIcon}\n />\n ) : (\n <></>\n )}\n </Element>\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, StrongTextOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, ParagraphOwnProps>;\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 { PolymorphicComponentProps } 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<T extends React.ElementType> =\n PolymorphicComponentProps<T, PreformattedTextOwnProps>;\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 { PolymorphicComponentProps } 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> = PolymorphicComponentProps<T, SmallTextOwnProps>;\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 { PolymorphicComponentProps } 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<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, SubLabelOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, SubParagraphOwnProps>;\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","ref","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","external","ariaLabelExternalIcon","ExternalIcon","Fragment","StrongText","ListItem","title","NumberedList","type","Paragraph","PreformattedText","SmallText","SubLabel","SubParagraph","UnorderedList","warnAboutMissingStyles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWaA,IAAAA,UAAU,GAAG,SAAbA,UAAU,CAAoD,IAAA,EAAA;EAAA,IAA9CC,SAAS,QAATA,SAAS;AAAEC,IAAAA,GAAG,QAAHA,GAAG;IAAKC,IAAI,GAAA,6BAAA,CAAA,IAAA,EAAAC,WAAA,CAAA,CAAA;AAClD,EAAA,OACEC,KACE,CAAAC,aAAA,CAAA,YAAA,EAAA,QAAA,CAAA;AAAAL,IAAAA,SAAS,EAAEM,UAAU,CAAC,gBAAgB,EAAEN,SAAS,CAAC;AAClDC,IAAAA,GAAG,EAAEA,GAAAA;AAAG,GAAA,EACJC,IAAI,CACR,CAAA,CAAA;AAEN,EAAC;AAOYK,IAAAA,gBAAgB,GAC3B,SADWA,gBAAgB,CACA,KAAA,EAAA;EAAA,IAAxBP,SAAS,SAATA,SAAS;IAAKE,IAAI,GAAA,6BAAA,CAAA,KAAA,EAAA,UAAA,CAAA,CAAA;AACnB,EAAA,OACEE,KAAA,CAAAC,aAAA,CAAA,QAAA,EAAA,QAAA,CAAA;AACEL,IAAAA,SAAS,EAAEM,UAAU,CAAC,wBAAwB,EAAEN,SAAS,CAAA;AAAC,GAAA,E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A,WAAA,GAAA,EAAA,EAAA,WAAA,CAAA,+BAAA,CAAA,GAEkBO,MAAM,KAAK,KAAK,EACbA,WAAAA,CAAAA,kCAAAA,CAAAA,GAAAA,MAAM,KAAK,QAAQ,EAAA,WAAA,CAAA,gCAAA,CAAA,GACrBA,MAAM,KAAK,MAAM,gBAEvDb,SAAS,CAAA;AACV,GAAA,EACGE,IAAI,CACR,CAAA,CAAA;AAEN;;;ACnCauC,IAAAA,aAAa,GAAiC,SAA9CA,aAAa,CAAA,IAAA,EAAA;EAAA,IACxBzC,SAAS,QAATA,SAAS;IACNE,IAAI,GAAA,6BAAA,CAAA,IAAA,EAAA,SAAA,CAAA,CAAA;AAAA,EAAA,OACHE,KAAI,CAAAC,aAAA,CAAA,IAAA,EAAA,QAAA,CAAA;AAAAL,IAAAA,SAAS,EAAEM,UAAU,CAAC,oBAAoB,EAAEN,SAAS,CAAA;AAAC,GAAA,EAAME,IAAI,CAAI,CAAA,CAAA;AAAA;;ACb9EwC,sBAAsB,CAAC,YAAY,CAAC;;;;"}
|
|
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 HTMLQuoteElement\n>;\n\nexport const Blockquote = ({ className, ref, ...rest }: BlockquoteProps) => {\n return (\n <blockquote\n className={classNames('eds-blockquote', className)}\n ref={ref}\n {...rest}\n />\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 { PolymorphicComponentProps } 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<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, CodeTextOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, EmphasizedTextOwnProps>;\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 { PolymorphicComponentProps } 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> = PolymorphicComponentProps<T, BaseHeadingOwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading1OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading2OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading3OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading4OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading5OwnProps>;\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 { PolymorphicComponentProps } 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 PolymorphicComponentProps<T, Heading6OwnProps>;\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 { PolymorphicComponentProps } 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<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, LabelOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, LeadParagraphOwnProps>;\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 { PolymorphicComponentProps } from '@entur/utils';\nimport { ExternalIcon } from '@entur/icons';\n\nexport type LinkOwnProps = {\n external?: boolean;\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 ariaLabelExternalIcon?: string;\n};\n\nexport type LinkProps<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, LinkOwnProps>;\n\nconst defaultElement = 'a';\n\nexport const Link = <E extends React.ElementType = typeof defaultElement>({\n external = false,\n ariaLabelExternalIcon = '(ekstern lenke)',\n className,\n margin = 'both',\n children,\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 {children}\n {external ? (\n <ExternalIcon\n className=\"eds-link--ext-icon\"\n aria-label={ariaLabelExternalIcon}\n />\n ) : (\n <></>\n )}\n </Element>\n );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, StrongTextOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, ParagraphOwnProps>;\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 { PolymorphicComponentProps } 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<T extends React.ElementType> =\n PolymorphicComponentProps<T, PreformattedTextOwnProps>;\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 { PolymorphicComponentProps } 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> = PolymorphicComponentProps<T, SmallTextOwnProps>;\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 { PolymorphicComponentProps } 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<T extends React.ElementType = typeof defaultElement> =\n PolymorphicComponentProps<T, SubLabelOwnProps>;\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 { PolymorphicComponentProps } 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 T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, SubParagraphOwnProps>;\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","_ref","className","ref","rest","_objectWithoutPropertiesLoose","_excluded","React","createElement","_extends","classNames","BlockquoteFooter","_ref2","_excluded2","defaultElement","CodeText","as","Element","EmphasizedText","_classNames","_ref$margin","margin","BaseHeading","level","baseClass","Heading1","children","Heading2","Heading3","Heading4","Heading5","Heading6","Label","LeadParagraph","Link","_ref$external","external","_ref$ariaLabelExterna","ariaLabelExternalIcon","ExternalIcon","Fragment","StrongText","ListItem","title","NumberedList","_ref$type","type","Paragraph","PreformattedText","SmallText","SubLabel","SubParagraph","UnorderedList","warnAboutMissingStyles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;IAWaA,UAAU,GAAG,SAAbA,UAAUA,CAAAC,IAAA,EAAoD;AAAA,EAAA,IAA9CC,SAAS,GAAAD,IAAA,CAATC,SAAS;IAAEC,GAAG,GAAAF,IAAA,CAAHE,GAAG;AAAKC,IAAAA,IAAI,GAAAC,6BAAA,CAAAJ,IAAA,EAAAK,WAAA,CAAA,CAAA;AAClD,EAAA,OACEC,KACE,CAAAC,aAAA,CAAA,YAAA,EAAAC,QAAA,CAAA;AAAAP,IAAAA,SAAS,EAAEQ,UAAU,CAAC,gBAAgB,EAAER,SAAS,CAAC;AAClDC,IAAAA,GAAG,EAAEA,GAAAA;GACDC,EAAAA,IAAI,CAAA,CACR,CAAA;AAEN,EAAC;IAOYO,gBAAgB,GAC3B,SADWA,gBAAgBA,CAAAC,KAAA,EACA;AAAA,EAAA,IAAxBV,SAAS,GAAAU,KAAA,CAATV,SAAS;AAAKE,IAAAA,IAAI,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AAA,CAAFe,EAAE;AACCZ,IAAAA,IAAI,GAAAC,6BAAA,CAAAJ,IAAA,EAAAK,WAAA,CAAA,CAAA;AAEP,EAAA,IAAMW,OAAO,GAAsBD,EAAE,IAAIF,cAAc,CAAA;AACvD,EAAA,OACEP,oBAACU,OAAO,EAAAR,QAAA,CAAA;IACNP,SAAS,EAAEQ,UAAU,CACnB,mBAAmB,GAAAS,WAAA,GAAA,EAAA,EAAAA,WAAA,CAAA,+BAAA,CAAA,GAEkBE,MAAM,KAAK,KAAK,EAAAF,WAAA,CAAA,kCAAA,CAAA,GACbE,MAAM,KAAK,QAAQ,EAAAF,WAAA,CAAA,gCAAA,CAAA,GACrBE,MAAM,KAAK,MAAM,EAAAF,WAAA,GAEvDjB,SAAS,CAAA;GAEPE,EAAAA,IAAI,CAAA,CACR,CAAA;AAEN;;;ICnCagD,aAAa,GAAiC,SAA9CA,aAAaA,CAAAnD,IAAA,EAAA;AAAA,EAAA,IACxBC,SAAS,GAAAD,IAAA,CAATC,SAAS;AACNE,IAAAA,IAAI,GAAAC,6BAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;AAAA,EAAA,OACHC,KAAI,CAAAC,aAAA,CAAA,IAAA,EAAAC,QAAA,CAAA;AAAAP,IAAAA,SAAS,EAAEQ,UAAU,CAAC,oBAAoB,EAAER,SAAS,CAAA;GAAOE,EAAAA,IAAI,CAAA,CAAI,CAAA;AAAA;;ACb9EiD,sBAAsB,CAAC,YAAY,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/typography",
|
|
3
|
-
"version": "1.8.50
|
|
3
|
+
"version": "1.8.50",
|
|
4
4
|
"license": "SEE LICENSE IN README.md",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/typography.esm.js",
|
|
@@ -27,11 +27,14 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/icons": "^7.5.
|
|
31
|
-
"@entur/tokens": "^3.17.
|
|
32
|
-
"@entur/utils": "^
|
|
30
|
+
"@entur/icons": "^7.5.1",
|
|
31
|
+
"@entur/tokens": "^3.17.4",
|
|
32
|
+
"@entur/utils": "^0.12.2",
|
|
33
33
|
"classnames": "^2.3.1",
|
|
34
|
-
"normalize-scss": "^
|
|
34
|
+
"normalize-scss": "^8.0.0"
|
|
35
35
|
},
|
|
36
|
-
"
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"dts-cli": "2.0.5"
|
|
38
|
+
},
|
|
39
|
+
"gitHead": "835e1335b390f48b80379ae6c473ac89041a392a"
|
|
37
40
|
}
|