@entur/typography 1.8.7 → 1.8.8
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/dist/BaseHeading.d.ts +18 -18
- package/dist/Blockquote.d.ts +12 -12
- package/dist/CodeText.d.ts +16 -16
- package/dist/EmphasizedText.d.ts +20 -20
- package/dist/Heading1.d.ts +20 -20
- package/dist/Heading2.d.ts +20 -20
- package/dist/Heading3.d.ts +20 -20
- package/dist/Heading4.d.ts +20 -20
- package/dist/Heading5.d.ts +20 -20
- package/dist/Heading6.d.ts +20 -20
- package/dist/Label.d.ts +20 -20
- package/dist/LeadParagraph.d.ts +20 -20
- package/dist/Link.d.ts +22 -21
- package/dist/ListItem.d.ts +11 -11
- package/dist/NumberedList.d.ts +8 -8
- package/dist/Paragraph.d.ts +20 -20
- package/dist/PreformattedText.d.ts +14 -14
- package/dist/SmallText.d.ts +20 -20
- package/dist/StrongText.d.ts +20 -20
- package/dist/SubLabel.d.ts +20 -20
- package/dist/SubParagraph.d.ts +20 -20
- package/dist/UnorderedList.d.ts +8 -8
- package/dist/index.d.ts +22 -22
- package/dist/styles.css +0 -2
- package/dist/typography.cjs.development.js +46 -49
- 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 +4 -2
- package/dist/typography.esm.js.map +1 -1
- package/package.json +4 -4
package/dist/SmallText.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export type SmallTextOwnProps = {
|
|
4
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
5
|
-
* @default "span"
|
|
6
|
-
*/
|
|
7
|
-
as?: string | React.ElementType;
|
|
8
|
-
/** Ekstra klassenavn */
|
|
9
|
-
className?: string;
|
|
10
|
-
/** Innholdet */
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
/** Hvor du vil ha marginer
|
|
13
|
-
* @default "both"
|
|
14
|
-
*/
|
|
15
|
-
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
|
-
};
|
|
17
|
-
export type SmallTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, SmallTextOwnProps>;
|
|
18
|
-
declare const defaultElement = "span";
|
|
19
|
-
export declare const SmallText: <E extends React.ElementType<any> = "span">({ className, margin, as, ...rest }: SmallTextProps<E>) => JSX.Element;
|
|
20
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
+
export type SmallTextOwnProps = {
|
|
4
|
+
/** HTML-elementet eller React-komponenten som rendres
|
|
5
|
+
* @default "span"
|
|
6
|
+
*/
|
|
7
|
+
as?: string | React.ElementType;
|
|
8
|
+
/** Ekstra klassenavn */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Innholdet */
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
/** Hvor du vil ha marginer
|
|
13
|
+
* @default "both"
|
|
14
|
+
*/
|
|
15
|
+
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
|
+
};
|
|
17
|
+
export type SmallTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, SmallTextOwnProps>;
|
|
18
|
+
declare const defaultElement = "span";
|
|
19
|
+
export declare const SmallText: <E extends React.ElementType<any> = "span">({ className, margin, as, ...rest }: SmallTextProps<E>) => JSX.Element;
|
|
20
|
+
export {};
|
package/dist/StrongText.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export type StrongTextOwnProps = {
|
|
4
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
5
|
-
* @default "strong"
|
|
6
|
-
*/
|
|
7
|
-
as?: string | React.ElementType;
|
|
8
|
-
/** Ekstra klassenavn */
|
|
9
|
-
className?: string;
|
|
10
|
-
/** Innholdet */
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
/** Hvor du vil ha marginer
|
|
13
|
-
* @default "both"
|
|
14
|
-
*/
|
|
15
|
-
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
|
-
};
|
|
17
|
-
export type StrongTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, StrongTextOwnProps>;
|
|
18
|
-
declare const defaultElement = "strong";
|
|
19
|
-
export declare const StrongText: <E extends React.ElementType<any> = "strong">({ className, margin, as, ...rest }: StrongTextProps<E>) => JSX.Element;
|
|
20
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
+
export type StrongTextOwnProps = {
|
|
4
|
+
/** HTML-elementet eller React-komponenten som rendres
|
|
5
|
+
* @default "strong"
|
|
6
|
+
*/
|
|
7
|
+
as?: string | React.ElementType;
|
|
8
|
+
/** Ekstra klassenavn */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Innholdet */
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
/** Hvor du vil ha marginer
|
|
13
|
+
* @default "both"
|
|
14
|
+
*/
|
|
15
|
+
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
|
+
};
|
|
17
|
+
export type StrongTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, StrongTextOwnProps>;
|
|
18
|
+
declare const defaultElement = "strong";
|
|
19
|
+
export declare const StrongText: <E extends React.ElementType<any> = "strong">({ className, margin, as, ...rest }: StrongTextProps<E>) => JSX.Element;
|
|
20
|
+
export {};
|
package/dist/SubLabel.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export type SubLabelOwnProps = {
|
|
4
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
5
|
-
* @default "span"
|
|
6
|
-
*/
|
|
7
|
-
as?: string | React.ElementType;
|
|
8
|
-
/** Ekstra klassenavn */
|
|
9
|
-
className?: string;
|
|
10
|
-
/** Innholdet */
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
/** Hvor du vil ha marginer
|
|
13
|
-
* @default "both"
|
|
14
|
-
*/
|
|
15
|
-
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
|
-
};
|
|
17
|
-
export type SubLabelProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, SubLabelOwnProps>;
|
|
18
|
-
declare const defaultElement = "span";
|
|
19
|
-
export declare const SubLabel: <E extends React.ElementType<any> = "span">({ className, margin, as, ...rest }: SubLabelProps<E>) => JSX.Element;
|
|
20
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
+
export type SubLabelOwnProps = {
|
|
4
|
+
/** HTML-elementet eller React-komponenten som rendres
|
|
5
|
+
* @default "span"
|
|
6
|
+
*/
|
|
7
|
+
as?: string | React.ElementType;
|
|
8
|
+
/** Ekstra klassenavn */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Innholdet */
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
/** Hvor du vil ha marginer
|
|
13
|
+
* @default "both"
|
|
14
|
+
*/
|
|
15
|
+
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
|
+
};
|
|
17
|
+
export type SubLabelProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, SubLabelOwnProps>;
|
|
18
|
+
declare const defaultElement = "span";
|
|
19
|
+
export declare const SubLabel: <E extends React.ElementType<any> = "span">({ className, margin, as, ...rest }: SubLabelProps<E>) => JSX.Element;
|
|
20
|
+
export {};
|
package/dist/SubParagraph.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export type SubParagraphOwnProps = {
|
|
4
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
5
|
-
* @default "p"
|
|
6
|
-
*/
|
|
7
|
-
as?: string | React.ElementType;
|
|
8
|
-
/** Ekstra klassenavn */
|
|
9
|
-
className?: string;
|
|
10
|
-
/** Innholdet */
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
/** Hvor du vil ha marginer
|
|
13
|
-
* @default "both"
|
|
14
|
-
*/
|
|
15
|
-
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
|
-
};
|
|
17
|
-
export type SubParagraphProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, SubParagraphOwnProps>;
|
|
18
|
-
declare const defaultElement = "p";
|
|
19
|
-
export declare const SubParagraph: <E extends React.ElementType<any> = "p">({ className, margin, as, ...rest }: SubParagraphProps<E>) => JSX.Element;
|
|
20
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
+
export type SubParagraphOwnProps = {
|
|
4
|
+
/** HTML-elementet eller React-komponenten som rendres
|
|
5
|
+
* @default "p"
|
|
6
|
+
*/
|
|
7
|
+
as?: string | React.ElementType;
|
|
8
|
+
/** Ekstra klassenavn */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Innholdet */
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
/** Hvor du vil ha marginer
|
|
13
|
+
* @default "both"
|
|
14
|
+
*/
|
|
15
|
+
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
|
+
};
|
|
17
|
+
export type SubParagraphProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, SubParagraphOwnProps>;
|
|
18
|
+
declare const defaultElement = "p";
|
|
19
|
+
export declare const SubParagraph: <E extends React.ElementType<any> = "p">({ className, margin, as, ...rest }: SubParagraphProps<E>) => JSX.Element;
|
|
20
|
+
export {};
|
package/dist/UnorderedList.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type UnorderedListProps = {
|
|
3
|
-
/** Ekstra klassenavn */
|
|
4
|
-
className?: string;
|
|
5
|
-
/** Innholdet */
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
} & React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>;
|
|
8
|
-
export declare const UnorderedList: React.FC<UnorderedListProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type UnorderedListProps = {
|
|
3
|
+
/** Ekstra klassenavn */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** Innholdet */
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
} & React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>;
|
|
8
|
+
export declare const UnorderedList: React.FC<UnorderedListProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import './index.scss';
|
|
2
|
-
export * from './Blockquote';
|
|
3
|
-
export * from './CodeText';
|
|
4
|
-
export * from './EmphasizedText';
|
|
5
|
-
export * from './Heading1';
|
|
6
|
-
export * from './Heading2';
|
|
7
|
-
export * from './Heading3';
|
|
8
|
-
export * from './Heading4';
|
|
9
|
-
export * from './Heading5';
|
|
10
|
-
export * from './Heading6';
|
|
11
|
-
export * from './Label';
|
|
12
|
-
export * from './LeadParagraph';
|
|
13
|
-
export * from './Link';
|
|
14
|
-
export * from './ListItem';
|
|
15
|
-
export * from './NumberedList';
|
|
16
|
-
export * from './Paragraph';
|
|
17
|
-
export * from './PreformattedText';
|
|
18
|
-
export * from './SmallText';
|
|
19
|
-
export * from './StrongText';
|
|
20
|
-
export * from './SubLabel';
|
|
21
|
-
export * from './SubParagraph';
|
|
22
|
-
export * from './UnorderedList';
|
|
1
|
+
import './index.scss';
|
|
2
|
+
export * from './Blockquote';
|
|
3
|
+
export * from './CodeText';
|
|
4
|
+
export * from './EmphasizedText';
|
|
5
|
+
export * from './Heading1';
|
|
6
|
+
export * from './Heading2';
|
|
7
|
+
export * from './Heading3';
|
|
8
|
+
export * from './Heading4';
|
|
9
|
+
export * from './Heading5';
|
|
10
|
+
export * from './Heading6';
|
|
11
|
+
export * from './Label';
|
|
12
|
+
export * from './LeadParagraph';
|
|
13
|
+
export * from './Link';
|
|
14
|
+
export * from './ListItem';
|
|
15
|
+
export * from './NumberedList';
|
|
16
|
+
export * from './Paragraph';
|
|
17
|
+
export * from './PreformattedText';
|
|
18
|
+
export * from './SmallText';
|
|
19
|
+
export * from './StrongText';
|
|
20
|
+
export * from './SubLabel';
|
|
21
|
+
export * from './SubParagraph';
|
|
22
|
+
export * from './UnorderedList';
|
package/dist/styles.css
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/* DO NOT CHANGE!*/
|
|
2
2
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
|
-
/* DO NOT CHANGE!*/
|
|
4
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
5
3
|
@font-face {
|
|
6
4
|
font-family: "Nationale";
|
|
7
5
|
src: url("./fonts/Entur-Nationale-Light.eot");
|
|
@@ -7,11 +7,6 @@ var React = require('react');
|
|
|
7
7
|
var classNames = require('classnames');
|
|
8
8
|
var icons = require('@entur/icons');
|
|
9
9
|
|
|
10
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
-
|
|
12
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
-
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
14
|
-
|
|
15
10
|
function _extends() {
|
|
16
11
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
17
12
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -39,20 +34,22 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
39
34
|
return target;
|
|
40
35
|
}
|
|
41
36
|
|
|
42
|
-
var _excluded$l = ["className"],
|
|
37
|
+
var _excluded$l = ["className", "ref"],
|
|
43
38
|
_excluded2 = ["className"];
|
|
44
39
|
var Blockquote = function Blockquote(_ref) {
|
|
45
40
|
var className = _ref.className,
|
|
41
|
+
ref = _ref.ref,
|
|
46
42
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
47
|
-
return
|
|
48
|
-
className:
|
|
43
|
+
return React.createElement("blockquote", _extends({
|
|
44
|
+
className: classNames('eds-blockquote', className),
|
|
45
|
+
ref: ref
|
|
49
46
|
}, rest));
|
|
50
47
|
};
|
|
51
48
|
var BlockquoteFooter = function BlockquoteFooter(_ref2) {
|
|
52
49
|
var className = _ref2.className,
|
|
53
50
|
rest = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
54
|
-
return
|
|
55
|
-
className:
|
|
51
|
+
return React.createElement("footer", _extends({
|
|
52
|
+
className: classNames('eds-blockquote__footer', className)
|
|
56
53
|
}, rest));
|
|
57
54
|
};
|
|
58
55
|
|
|
@@ -63,8 +60,8 @@ var CodeText = function CodeText(_ref) {
|
|
|
63
60
|
as = _ref.as,
|
|
64
61
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
65
62
|
var Element = as || defaultElement$h;
|
|
66
|
-
return
|
|
67
|
-
className:
|
|
63
|
+
return React.createElement(Element, _extends({
|
|
64
|
+
className: classNames('eds-code-text', className)
|
|
68
65
|
}, rest));
|
|
69
66
|
};
|
|
70
67
|
|
|
@@ -78,8 +75,8 @@ var EmphasizedText = function EmphasizedText(_ref) {
|
|
|
78
75
|
as = _ref.as,
|
|
79
76
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
80
77
|
var Element = as || defaultElement$g;
|
|
81
|
-
return
|
|
82
|
-
className:
|
|
78
|
+
return React.createElement(Element, _extends({
|
|
79
|
+
className: classNames('eds-emphasized-text', (_classNames = {}, _classNames["eds-emphasized-text--margin-top"] = margin === 'top', _classNames["eds-emphasized-text--margin-bottom"] = margin === 'bottom', _classNames["eds-emphasized-text--margin-none"] = margin === 'none', _classNames), className)
|
|
83
80
|
}, rest));
|
|
84
81
|
};
|
|
85
82
|
|
|
@@ -94,8 +91,8 @@ var BaseHeading = function BaseHeading(_ref) {
|
|
|
94
91
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
95
92
|
var Element = as || defaultElement$f;
|
|
96
93
|
var baseClass = "eds-h" + level;
|
|
97
|
-
return
|
|
98
|
-
className:
|
|
94
|
+
return React.createElement(Element, _extends({
|
|
95
|
+
className: classNames(baseClass, (_classNames = {}, _classNames[baseClass + "--margin-top"] = margin === 'top', _classNames[baseClass + "--margin-bottom"] = margin === 'bottom', _classNames[baseClass + "--margin-none"] = margin === 'none', _classNames), className)
|
|
99
96
|
}, rest));
|
|
100
97
|
};
|
|
101
98
|
|
|
@@ -108,7 +105,7 @@ var Heading1 = function Heading1(_ref) {
|
|
|
108
105
|
as = _ref.as,
|
|
109
106
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
110
107
|
var Element = as || defaultElement$e;
|
|
111
|
-
return
|
|
108
|
+
return React.createElement(BaseHeading, _extends({
|
|
112
109
|
as: Element,
|
|
113
110
|
margin: margin
|
|
114
111
|
}, rest, {
|
|
@@ -125,7 +122,7 @@ var Heading2 = function Heading2(_ref) {
|
|
|
125
122
|
as = _ref.as,
|
|
126
123
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
127
124
|
var Element = as || defaultElement$d;
|
|
128
|
-
return
|
|
125
|
+
return React.createElement(BaseHeading, _extends({
|
|
129
126
|
as: Element,
|
|
130
127
|
margin: margin
|
|
131
128
|
}, rest, {
|
|
@@ -142,7 +139,7 @@ var Heading3 = function Heading3(_ref) {
|
|
|
142
139
|
as = _ref.as,
|
|
143
140
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
144
141
|
var Element = as || defaultElement$c;
|
|
145
|
-
return
|
|
142
|
+
return React.createElement(BaseHeading, _extends({
|
|
146
143
|
as: Element,
|
|
147
144
|
margin: margin
|
|
148
145
|
}, rest, {
|
|
@@ -159,7 +156,7 @@ var Heading4 = function Heading4(_ref) {
|
|
|
159
156
|
as = _ref.as,
|
|
160
157
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
161
158
|
var Element = as || defaultElement$b;
|
|
162
|
-
return
|
|
159
|
+
return React.createElement(BaseHeading, _extends({
|
|
163
160
|
as: Element,
|
|
164
161
|
margin: margin
|
|
165
162
|
}, rest, {
|
|
@@ -176,7 +173,7 @@ var Heading5 = function Heading5(_ref) {
|
|
|
176
173
|
as = _ref.as,
|
|
177
174
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
178
175
|
var Element = as || defaultElement$a;
|
|
179
|
-
return
|
|
176
|
+
return React.createElement(BaseHeading, _extends({
|
|
180
177
|
as: Element,
|
|
181
178
|
margin: margin
|
|
182
179
|
}, rest, {
|
|
@@ -193,7 +190,7 @@ var Heading6 = function Heading6(_ref) {
|
|
|
193
190
|
as = _ref.as,
|
|
194
191
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
195
192
|
var Element = as || defaultElement$9;
|
|
196
|
-
return
|
|
193
|
+
return React.createElement(BaseHeading, _extends({
|
|
197
194
|
as: Element,
|
|
198
195
|
margin: margin
|
|
199
196
|
}, rest, {
|
|
@@ -211,8 +208,8 @@ var Label = function Label(_ref) {
|
|
|
211
208
|
as = _ref.as,
|
|
212
209
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
213
210
|
var Element = as || defaultElement$8;
|
|
214
|
-
return
|
|
215
|
-
className:
|
|
211
|
+
return React.createElement(Element, _extends({
|
|
212
|
+
className: classNames('eds-label', (_classNames = {}, _classNames["eds-label--margin-top"] = margin === 'top', _classNames["eds-label--margin-bottom"] = margin === 'bottom', _classNames["eds-label--margin-none"] = margin === 'none', _classNames), className)
|
|
216
213
|
}, rest));
|
|
217
214
|
};
|
|
218
215
|
|
|
@@ -226,8 +223,8 @@ var LeadParagraph = function LeadParagraph(_ref) {
|
|
|
226
223
|
as = _ref.as,
|
|
227
224
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
228
225
|
var Element = as || defaultElement$7;
|
|
229
|
-
return
|
|
230
|
-
className:
|
|
226
|
+
return React.createElement(Element, _extends({
|
|
227
|
+
className: classNames('eds-lead-paragraph', (_classNames = {}, _classNames["eds-lead-paragraph--margin-top"] = margin === 'top', _classNames["eds-lead-paragraph--margin-bottom"] = margin === 'bottom', _classNames["eds-lead-paragraph--margin-none"] = margin === 'none', _classNames), className)
|
|
231
228
|
}, rest));
|
|
232
229
|
};
|
|
233
230
|
|
|
@@ -246,12 +243,12 @@ var Link = function Link(_ref) {
|
|
|
246
243
|
as = _ref.as,
|
|
247
244
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
248
245
|
var Element = as || defaultElement$6;
|
|
249
|
-
return
|
|
250
|
-
className:
|
|
251
|
-
}, rest), children, external ?
|
|
246
|
+
return React.createElement(Element, _extends({
|
|
247
|
+
className: classNames('eds-link', (_classNames = {}, _classNames["eds-link--margin-top"] = margin === 'top', _classNames["eds-link--margin-bottom"] = margin === 'bottom', _classNames["eds-link--margin-none"] = margin === 'none', _classNames), className)
|
|
248
|
+
}, rest), children, external ? React.createElement(icons.ExternalIcon, {
|
|
252
249
|
className: "eds-link--ext-icon",
|
|
253
250
|
"aria-label": ariaLabelExternalIcon
|
|
254
|
-
}) :
|
|
251
|
+
}) : React.createElement(React.Fragment, null));
|
|
255
252
|
};
|
|
256
253
|
|
|
257
254
|
var _excluded$8 = ["className", "margin", "as"];
|
|
@@ -264,8 +261,8 @@ var StrongText = function StrongText(_ref) {
|
|
|
264
261
|
as = _ref.as,
|
|
265
262
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
266
263
|
var Element = as || defaultElement$5;
|
|
267
|
-
return
|
|
268
|
-
className:
|
|
264
|
+
return React.createElement(Element, _extends({
|
|
265
|
+
className: classNames('eds-strong-text', (_classNames = {}, _classNames["eds-strong-text--margin-top"] = margin === 'top', _classNames["eds-strong-text--margin-bottom"] = margin === 'bottom', _classNames["eds-strong-text--margin-none"] = margin === 'none', _classNames), className)
|
|
269
266
|
}, rest));
|
|
270
267
|
};
|
|
271
268
|
|
|
@@ -275,9 +272,9 @@ var ListItem = function ListItem(_ref) {
|
|
|
275
272
|
className = _ref.className,
|
|
276
273
|
title = _ref.title,
|
|
277
274
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
278
|
-
return
|
|
279
|
-
className:
|
|
280
|
-
}, rest), title &&
|
|
275
|
+
return React.createElement("li", _extends({
|
|
276
|
+
className: classNames('eds-list-item', className)
|
|
277
|
+
}, rest), title && React.createElement(StrongText, {
|
|
281
278
|
className: "eds-list-item__title"
|
|
282
279
|
}, title), children);
|
|
283
280
|
};
|
|
@@ -289,8 +286,8 @@ var NumberedList = function NumberedList(_ref) {
|
|
|
289
286
|
_ref$type = _ref.type,
|
|
290
287
|
type = _ref$type === void 0 ? '1' : _ref$type,
|
|
291
288
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
292
|
-
return
|
|
293
|
-
className:
|
|
289
|
+
return React.createElement("ol", _extends({
|
|
290
|
+
className: classNames('eds-numbered-list', (_classNames = {}, _classNames["eds-numbered-list--type-" + type] = type, _classNames), className),
|
|
294
291
|
type: type
|
|
295
292
|
}, rest));
|
|
296
293
|
};
|
|
@@ -304,8 +301,8 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
304
301
|
as = _ref.as,
|
|
305
302
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
306
303
|
var Element = as || defaultElement$4;
|
|
307
|
-
return
|
|
308
|
-
className:
|
|
304
|
+
return React.createElement(Element, _extends({
|
|
305
|
+
className: classNames('eds-paragraph', {
|
|
309
306
|
'eds-paragraph--margin-bottom': margin === 'bottom',
|
|
310
307
|
'eds-paragraph--margin-none': margin === 'none'
|
|
311
308
|
}, className)
|
|
@@ -319,8 +316,8 @@ var PreformattedText = function PreformattedText(_ref) {
|
|
|
319
316
|
as = _ref.as,
|
|
320
317
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
321
318
|
var Element = as || defaultElement$3;
|
|
322
|
-
return
|
|
323
|
-
className:
|
|
319
|
+
return React.createElement(Element, _extends({
|
|
320
|
+
className: classNames('eds-preformatted-text', className)
|
|
324
321
|
}, rest));
|
|
325
322
|
};
|
|
326
323
|
|
|
@@ -334,8 +331,8 @@ var SmallText = function SmallText(_ref) {
|
|
|
334
331
|
as = _ref.as,
|
|
335
332
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
336
333
|
var Element = as || defaultElement$2;
|
|
337
|
-
return
|
|
338
|
-
className:
|
|
334
|
+
return React.createElement(Element, _extends({
|
|
335
|
+
className: classNames('eds-small-text', (_classNames = {}, _classNames["eds-small-text--margin-top"] = margin === 'top', _classNames["eds-small-text--margin-bottom"] = margin === 'bottom', _classNames["eds-small-text--margin-none"] = margin === 'none', _classNames), className)
|
|
339
336
|
}, rest));
|
|
340
337
|
};
|
|
341
338
|
|
|
@@ -349,8 +346,8 @@ var SubLabel = function SubLabel(_ref) {
|
|
|
349
346
|
as = _ref.as,
|
|
350
347
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
351
348
|
var Element = as || defaultElement$1;
|
|
352
|
-
return
|
|
353
|
-
className:
|
|
349
|
+
return React.createElement(Element, _extends({
|
|
350
|
+
className: classNames('eds-sub-label', (_classNames = {}, _classNames["eds-sub-label--margin-top"] = margin === 'top', _classNames["eds-sub-label--margin-bottom"] = margin === 'bottom', _classNames["eds-sub-label--margin-none"] = margin === 'none', _classNames), className)
|
|
354
351
|
}, rest));
|
|
355
352
|
};
|
|
356
353
|
|
|
@@ -363,8 +360,8 @@ var SubParagraph = function SubParagraph(_ref) {
|
|
|
363
360
|
as = _ref.as,
|
|
364
361
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
365
362
|
var Element = as || defaultElement;
|
|
366
|
-
return
|
|
367
|
-
className:
|
|
363
|
+
return React.createElement(Element, _extends({
|
|
364
|
+
className: classNames('eds-sub-paragraph', (_classNames = {}, _classNames["eds-sub-paragraph--margin-top"] = margin === 'top', _classNames["eds-sub-paragraph--margin-bottom"] = margin === 'bottom', _classNames["eds-sub-paragraph--margin-none"] = margin === 'none', _classNames), className)
|
|
368
365
|
}, rest));
|
|
369
366
|
};
|
|
370
367
|
|
|
@@ -372,8 +369,8 @@ var _excluded = ["className"];
|
|
|
372
369
|
var UnorderedList = function UnorderedList(_ref) {
|
|
373
370
|
var className = _ref.className,
|
|
374
371
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
375
|
-
return
|
|
376
|
-
className:
|
|
372
|
+
return React.createElement("ul", _extends({
|
|
373
|
+
className: classNames('eds-unordered-list', className)
|
|
377
374
|
}, rest));
|
|
378
375
|
};
|
|
379
376
|
|