@entur/typography 1.7.5 → 1.7.7
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/LICENSE.md +0 -71
- package/dist/BaseHeading.d.ts +2 -2
- package/dist/Blockquote.d.ts +2 -2
- package/dist/CodeText.d.ts +2 -2
- package/dist/EmphasizedText.d.ts +2 -2
- package/dist/Heading1.d.ts +2 -2
- package/dist/Heading2.d.ts +2 -2
- package/dist/Heading3.d.ts +2 -2
- package/dist/Heading4.d.ts +2 -2
- package/dist/Heading5.d.ts +2 -2
- package/dist/Heading6.d.ts +2 -2
- package/dist/Label.d.ts +2 -2
- package/dist/LeadParagraph.d.ts +2 -2
- package/dist/Link.d.ts +2 -2
- package/dist/ListItem.d.ts +1 -1
- package/dist/NumberedList.d.ts +1 -1
- package/dist/Paragraph.d.ts +2 -2
- package/dist/PreformattedText.d.ts +2 -2
- package/dist/SmallText.d.ts +2 -2
- package/dist/StrongText.d.ts +2 -2
- package/dist/SubLabel.d.ts +2 -2
- package/dist/SubParagraph.d.ts +2 -2
- package/dist/UnorderedList.d.ts +1 -1
- package/dist/styles.css +1 -22
- package/dist/typography.cjs.development.js +78 -117
- package/dist/typography.cjs.development.js.map +1 -1
- package/dist/typography.cjs.production.min.js +1 -1
- package/dist/typography.cjs.production.min.js.map +1 -1
- package/dist/typography.esm.js +78 -117
- package/dist/typography.esm.js.map +1 -1
- package/package.json +5 -5
- package/CHANGELOG.md +0 -367
package/LICENSE.md
CHANGED
|
@@ -208,74 +208,3 @@ The European Commission may update this Appendix to later versions of the above
|
|
|
208
208
|
a new version of the EUPL, as long as they provide the rights granted in Article 2 of this Licence and protect the
|
|
209
209
|
covered Source Code from exclusive appropriation.
|
|
210
210
|
All other changes or additions to this Appendix require the production of a new EUPL version.
|
|
211
|
-
|
|
212
|
-
# Standard Nucleo License
|
|
213
|
-
|
|
214
|
-
- Last updated: July 2, 2018
|
|
215
|
-
- [Github repo](https://github.com/NucleoApp/license-standard)
|
|
216
|
-
|
|
217
|
-
By purchasing the Nucleo icons, you have the right to:
|
|
218
|
-
|
|
219
|
-
- Use the Nucleo icons in unlimited personal and commercial projects, for yourself or a client, with no limitation to the number of impressions for your end product.
|
|
220
|
-
- Use the Nucleo icons in applications, software, UI/UX design, print, and logo design.
|
|
221
|
-
- Modify the Nucleo icons to create your icon variations.
|
|
222
|
-
|
|
223
|
-
You don't have the right to:
|
|
224
|
-
|
|
225
|
-
- Sublicense, resell, share, transfer, or otherwise redistribute the Nucleo icons (even for free or within a more complex downloadable file).
|
|
226
|
-
- Use the Nucleo icons in a product that is directly competitive with Nucleo.
|
|
227
|
-
|
|
228
|
-
## Limitations & Extended license
|
|
229
|
-
|
|
230
|
-
- **For each project, you can use a maximum of 250 Nucleo icons** (intended per unique style: for example, if you're using the same icon in both the outline and glyph styles, or in 2 different sizes, you're using 2 icons). You can lift this limit by purchasing an Extended License.
|
|
231
|
-
- If you're using Nucleo icons in templates, themes or plugins offered for sale, you can use a maximum of 100 Nucleo icons. You can lift this limit by purchasing an Extended License.
|
|
232
|
-
- If you're using the Nucleo icons in open source projects, you can use a maximum of 100 Nucleo icons.
|
|
233
|
-
- If you're interested in using the Nucleo icons in items offered for sale (or for free) where the Nucleo icons contribute to the core value of the product being sold/shared, you will need an Extended License (e.g., a CMS where users can browse the Nucleo icons and pick the ones to include in their design).
|
|
234
|
-
|
|
235
|
-
[Learn more about the Extended License](https://nucleoapp.com/extended-license)
|
|
236
|
-
|
|
237
|
-
## Freelance Projects & Contracted work
|
|
238
|
-
|
|
239
|
-
If you're working on a project for a client, you can share with your client a maximum of 250 Nucleo icons per project. You can't share the Nucleo source files unless the client purchases a license.
|
|
240
|
-
|
|
241
|
-
If the Nucleo icons contribute to the core value of the product being sold/shared, or if you (or your client) wish to include more than 250 icons in the project, the [Extended License](https://nucleoapp.com/extended-license) is required.
|
|
242
|
-
|
|
243
|
-
## Templates, Themes, UI Kits & Plugins
|
|
244
|
-
|
|
245
|
-
If you're using Nucleo icons in templates, themes or plugins offered for sale (e.g., UI kits, Wordpress Themes, HTML/CSS Templates), **you can include up to 100 icons in the downloadable source files**. This limitation applies to the icon fonts as well.
|
|
246
|
-
|
|
247
|
-
The downloadable source file has to include the [Nucleo Copyright Notice](https://nucleoapp.com/copyright-notice).
|
|
248
|
-
|
|
249
|
-
If the Nucleo icons contribute to the core value of the template, theme or plugin sold (e.g., a theme builder where users can browse Nucleo icons and pick the ones to include in their design), or if you wish to use more than 100 Nucleo icons, you will need an [Extended License](https://nucleoapp.com/extended-license).
|
|
250
|
-
|
|
251
|
-
It's not possible to purchase an Extended License if the template, theme or plugin is distributed for free.
|
|
252
|
-
|
|
253
|
-
If you're offering a free and pro version of your product, the free version cannot include more than 100 icons even if you purchased an Extended License to lift the limit. The Extended License applies only to the pro version of your product.
|
|
254
|
-
|
|
255
|
-
## Open source projects
|
|
256
|
-
|
|
257
|
-
If you're using the Nucleo icons in open source projects, **you can include up to 100 icons in the downloadable source files**. This limitation applies to the icon fonts as well.
|
|
258
|
-
|
|
259
|
-
The downloadable source file has to include the [Nucleo Copyright Notice](https://nucleoapp.com/copyright-notice).
|
|
260
|
-
|
|
261
|
-
It's not possible to purchase an Extended License for open source projects.
|
|
262
|
-
|
|
263
|
-
## Sharing Nucleo icons with team members
|
|
264
|
-
|
|
265
|
-
If you're the sole owner of a Nucleo license, you can share with your team members only the icons used in your work, with a maximum of 250 icons (e.g., if you're a designer, you can share with the developers of your team only the Nucleo icons used in your design files).
|
|
266
|
-
|
|
267
|
-
Your team members cannot reuse the Nucleo icons in other projects unless they purchase a license.
|
|
268
|
-
|
|
269
|
-
If more than one team member needs access to the Nucleo icons, you can consider purchasing a [team license](https://nucleoapp.com/pricing).
|
|
270
|
-
|
|
271
|
-
## Design systems
|
|
272
|
-
|
|
273
|
-
If you wish to include the Nucleo icons in a design system available on a public server, you can use a maximum of 250 Nucleo icons, even if your team purchased a Nucleo team license.
|
|
274
|
-
|
|
275
|
-
If the design system is accessible only by the members of your organization (e.g., is hosted on a password protected server), but you're the sole owner of a Nucleo license, you can share with your colleagues a maximum of 250 Nucleo icons.
|
|
276
|
-
|
|
277
|
-
If the design system is on a public server, you can lift the 250 icons limit by buying an [Extended License](https://nucleoapp.com/extended-license). However, please keep in mind you can't provide a link/button to download all the icons.
|
|
278
|
-
|
|
279
|
-
If your team purchased a Nucleo team license that covers all the users with access to the design system, and the design system is not public (e.g., is hosted on a password protected server), then there's no limitation to the number of icons that can be included.
|
|
280
|
-
|
|
281
|
-
If you're still unclear about what is or isn't allowed under this license, please contact us at info@nucleoapp.com.
|
package/dist/BaseHeading.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
|
|
3
|
+
type BaseHeadingOwnProps = {
|
|
4
4
|
/** HTML-elementet eller React-komponenten som rendres */
|
|
5
5
|
as: string | React.ElementType;
|
|
6
6
|
/** Ekstra klassenavn */
|
|
@@ -13,6 +13,6 @@ declare type BaseHeadingOwnProps = {
|
|
|
13
13
|
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
14
14
|
};
|
|
15
15
|
declare const defaultElement = "h1";
|
|
16
|
-
export
|
|
16
|
+
export type BaseHeadingProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, BaseHeadingOwnProps>;
|
|
17
17
|
export declare const BaseHeading: <E extends React.ElementType<any> = "h1">({ className, level, margin, as, ...rest }: BaseHeadingProps<E>) => JSX.Element;
|
|
18
18
|
export {};
|
package/dist/Blockquote.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type BlockquoteProps = {
|
|
3
3
|
/** Ekstra klassenavn */
|
|
4
4
|
className?: string;
|
|
5
5
|
} & React.DetailedHTMLProps<React.BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>;
|
|
6
6
|
export declare const Blockquote: React.FunctionComponent<BlockquoteProps>;
|
|
7
|
-
|
|
7
|
+
type BlockquoteFooterProps = {
|
|
8
8
|
/** Ekstra klassenavn */
|
|
9
9
|
className?: string;
|
|
10
10
|
} & React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
package/dist/CodeText.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export
|
|
3
|
+
export type CodeTextOwnProps = {
|
|
4
4
|
/** HTML-elementet eller React-komponenten som rendres
|
|
5
5
|
* @default "code"
|
|
6
6
|
*/
|
|
@@ -10,7 +10,7 @@ export declare type CodeTextOwnProps = {
|
|
|
10
10
|
/** Innholdet */
|
|
11
11
|
children: React.ReactNode;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type CodeTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, CodeTextOwnProps>;
|
|
14
14
|
declare const defaultElement = "code";
|
|
15
15
|
export declare const CodeText: <E extends React.ElementType<any> = "code">({ className, as, ...rest }: CodeTextProps<E>) => JSX.Element;
|
|
16
16
|
export {};
|
package/dist/EmphasizedText.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export
|
|
3
|
+
export type EmphasizedTextOwnProps = {
|
|
4
4
|
/** HTML-elementet eller React-komponenten som rendres
|
|
5
5
|
* @default "em"
|
|
6
6
|
*/
|
|
@@ -14,7 +14,7 @@ export declare type EmphasizedTextOwnProps = {
|
|
|
14
14
|
*/
|
|
15
15
|
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type EmphasizedTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, EmphasizedTextOwnProps>;
|
|
18
18
|
declare const defaultElement = "em";
|
|
19
19
|
export declare const EmphasizedText: <E extends React.ElementType<any> = "em">({ className, margin, as, ...rest }: EmphasizedTextProps<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/Heading1.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export
|
|
3
|
+
export type Heading1OwnProps = {
|
|
4
4
|
/** HTML-elementet eller React-komponenten som rendres
|
|
5
5
|
* @default "h1"
|
|
6
6
|
*/
|
|
@@ -15,6 +15,6 @@ export declare type Heading1OwnProps = {
|
|
|
15
15
|
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
16
|
};
|
|
17
17
|
declare const defaultElement = "h1";
|
|
18
|
-
export
|
|
18
|
+
export type Heading1Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading1OwnProps>;
|
|
19
19
|
export declare const Heading1: <E extends React.ElementType<any> = "h1">({ margin, children, as, ...rest }: Heading1Props<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/Heading2.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export
|
|
3
|
+
export type Heading2OwnProps = {
|
|
4
4
|
/** HTML-elementet eller React-komponenten som rendres
|
|
5
5
|
* @default "h2"
|
|
6
6
|
*/
|
|
@@ -14,7 +14,7 @@ export declare type Heading2OwnProps = {
|
|
|
14
14
|
*/
|
|
15
15
|
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type Heading2Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading2OwnProps>;
|
|
18
18
|
declare const defaultElement = "h2";
|
|
19
19
|
export declare const Heading2: <E extends React.ElementType<any> = "h2">({ margin, children, as, ...rest }: Heading2Props<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/Heading3.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export
|
|
3
|
+
export type Heading3OwnProps = {
|
|
4
4
|
/** HTML-elementet eller React-komponenten som rendres
|
|
5
5
|
* @default "h3"
|
|
6
6
|
*/
|
|
@@ -14,7 +14,7 @@ export declare type Heading3OwnProps = {
|
|
|
14
14
|
*/
|
|
15
15
|
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type Heading3Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading3OwnProps>;
|
|
18
18
|
declare const defaultElement = "h3";
|
|
19
19
|
export declare const Heading3: <E extends React.ElementType<any> = "h3">({ margin, children, as, ...rest }: Heading3Props<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/Heading4.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export
|
|
3
|
+
export type Heading4OwnProps = {
|
|
4
4
|
/** HTML-elementet eller React-komponenten som rendres
|
|
5
5
|
* @default "h4"
|
|
6
6
|
*/
|
|
@@ -14,7 +14,7 @@ export declare type Heading4OwnProps = {
|
|
|
14
14
|
*/
|
|
15
15
|
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type Heading4Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading4OwnProps>;
|
|
18
18
|
declare const defaultElement = "h4";
|
|
19
19
|
export declare const Heading4: <E extends React.ElementType<any> = "h4">({ margin, children, as, ...rest }: Heading4Props<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/Heading5.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export
|
|
3
|
+
export type Heading5OwnProps = {
|
|
4
4
|
/** HTML-elementet eller React-komponenten som rendres
|
|
5
5
|
* @default "h5"
|
|
6
6
|
*/
|
|
@@ -14,7 +14,7 @@ export declare type Heading5OwnProps = {
|
|
|
14
14
|
*/
|
|
15
15
|
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type Heading5Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading5OwnProps>;
|
|
18
18
|
declare const defaultElement = "h5";
|
|
19
19
|
export declare const Heading5: <E extends React.ElementType<any> = "h5">({ margin, children, as, ...rest }: Heading5Props<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/Heading6.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export
|
|
3
|
+
export type Heading6OwnProps = {
|
|
4
4
|
/** HTML-elementet eller React-komponenten som rendres
|
|
5
5
|
* @default "h6"
|
|
6
6
|
*/
|
|
@@ -14,7 +14,7 @@ export declare type Heading6OwnProps = {
|
|
|
14
14
|
*/
|
|
15
15
|
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type Heading6Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading6OwnProps>;
|
|
18
18
|
declare const defaultElement = "h6";
|
|
19
19
|
export declare const Heading6: <E extends React.ElementType<any> = "h6">({ margin, children, as, ...rest }: Heading6Props<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/Label.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export
|
|
3
|
+
export type LabelOwnProps = {
|
|
4
4
|
/** HTML-elementet eller React-komponenten som rendres
|
|
5
5
|
* @default "label"
|
|
6
6
|
*/
|
|
@@ -14,7 +14,7 @@ export declare type LabelOwnProps = {
|
|
|
14
14
|
*/
|
|
15
15
|
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type LabelProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, LabelOwnProps>;
|
|
18
18
|
declare const defaultElement = "label";
|
|
19
19
|
export declare const Label: <E extends React.ElementType<any> = "label">({ className, margin, as, ...rest }: LabelProps<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/LeadParagraph.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export
|
|
3
|
+
export type LeadParagraphOwnProps = {
|
|
4
4
|
/** HTML-elementet eller React-komponenten som rendres
|
|
5
5
|
* @default "p"
|
|
6
6
|
*/
|
|
@@ -14,7 +14,7 @@ export declare type LeadParagraphOwnProps = {
|
|
|
14
14
|
*/
|
|
15
15
|
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type LeadParagraphProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, LeadParagraphOwnProps>;
|
|
18
18
|
declare const defaultElement = "p";
|
|
19
19
|
export declare const LeadParagraph: <E extends React.ElementType<any> = "p">({ className, margin, as, ...rest }: LeadParagraphProps<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/Link.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export
|
|
3
|
+
export type LinkOwnProps = {
|
|
4
4
|
/** HTML-elementet eller React-komponenten som rendres
|
|
5
5
|
* @default "a"
|
|
6
6
|
*/
|
|
@@ -14,7 +14,7 @@ export declare type LinkOwnProps = {
|
|
|
14
14
|
*/
|
|
15
15
|
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type LinkProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, LinkOwnProps>;
|
|
18
18
|
declare const defaultElement = "a";
|
|
19
19
|
export declare const Link: <E extends React.ElementType<any> = "a">({ className, margin, as, ...rest }: LinkProps<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/ListItem.d.ts
CHANGED
package/dist/NumberedList.d.ts
CHANGED
package/dist/Paragraph.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export
|
|
3
|
+
export type ParagraphOwnProps = {
|
|
4
4
|
/** HTML-elementet eller React-komponenten som rendres
|
|
5
5
|
* @default "p"
|
|
6
6
|
*/
|
|
@@ -14,7 +14,7 @@ export declare type ParagraphOwnProps = {
|
|
|
14
14
|
*/
|
|
15
15
|
margin?: 'bottom' | 'none';
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type ParagraphProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, ParagraphOwnProps>;
|
|
18
18
|
declare const defaultElement = "p";
|
|
19
19
|
export declare const Paragraph: <E extends React.ElementType<any> = "p">({ margin, className, as, ...rest }: ParagraphProps<E>) => JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export
|
|
3
|
+
export type PreformattedTextOwnProps = {
|
|
4
4
|
/** HTML-elementet eller React-komponenten som rendres
|
|
5
5
|
* @default "pre"
|
|
6
6
|
*/
|
|
@@ -10,5 +10,5 @@ export declare type PreformattedTextOwnProps = {
|
|
|
10
10
|
/** Innholdet */
|
|
11
11
|
children: React.ReactNode;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type PreformattedTextProps<T extends React.ElementType> = PolymorphicComponentProps<T, PreformattedTextOwnProps>;
|
|
14
14
|
export declare const PreformattedText: <E extends React.ElementType<any> = "pre">({ className, as, ...rest }: PreformattedTextProps<E>) => JSX.Element;
|
package/dist/SmallText.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export
|
|
3
|
+
export type SmallTextOwnProps = {
|
|
4
4
|
/** HTML-elementet eller React-komponenten som rendres
|
|
5
5
|
* @default "span"
|
|
6
6
|
*/
|
|
@@ -14,7 +14,7 @@ export declare type SmallTextOwnProps = {
|
|
|
14
14
|
*/
|
|
15
15
|
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type SmallTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, SmallTextOwnProps>;
|
|
18
18
|
declare const defaultElement = "span";
|
|
19
19
|
export declare const SmallText: <E extends React.ElementType<any> = "span">({ className, margin, as, ...rest }: SmallTextProps<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/StrongText.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export
|
|
3
|
+
export type StrongTextOwnProps = {
|
|
4
4
|
/** HTML-elementet eller React-komponenten som rendres
|
|
5
5
|
* @default "strong"
|
|
6
6
|
*/
|
|
@@ -14,7 +14,7 @@ export declare type StrongTextOwnProps = {
|
|
|
14
14
|
*/
|
|
15
15
|
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type StrongTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, StrongTextOwnProps>;
|
|
18
18
|
declare const defaultElement = "strong";
|
|
19
19
|
export declare const StrongText: <E extends React.ElementType<any> = "strong">({ className, margin, as, ...rest }: StrongTextProps<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/SubLabel.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export
|
|
3
|
+
export type SubLabelOwnProps = {
|
|
4
4
|
/** HTML-elementet eller React-komponenten som rendres
|
|
5
5
|
* @default "span"
|
|
6
6
|
*/
|
|
@@ -14,7 +14,7 @@ export declare type SubLabelOwnProps = {
|
|
|
14
14
|
*/
|
|
15
15
|
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type SubLabelProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, SubLabelOwnProps>;
|
|
18
18
|
declare const defaultElement = "span";
|
|
19
19
|
export declare const SubLabel: <E extends React.ElementType<any> = "span">({ className, margin, as, ...rest }: SubLabelProps<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/SubParagraph.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
|
-
export
|
|
3
|
+
export type SubParagraphOwnProps = {
|
|
4
4
|
/** HTML-elementet eller React-komponenten som rendres
|
|
5
5
|
* @default "p"
|
|
6
6
|
*/
|
|
@@ -14,7 +14,7 @@ export declare type SubParagraphOwnProps = {
|
|
|
14
14
|
*/
|
|
15
15
|
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type SubParagraphProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, SubParagraphOwnProps>;
|
|
18
18
|
declare const defaultElement = "p";
|
|
19
19
|
export declare const SubParagraph: <E extends React.ElementType<any> = "p">({ className, margin, as, ...rest }: SubParagraphProps<E>) => JSX.Element;
|
|
20
20
|
export {};
|
package/dist/UnorderedList.d.ts
CHANGED
package/dist/styles.css
CHANGED
|
@@ -76,12 +76,10 @@
|
|
|
76
76
|
"Helvetica Neue", sans-serif;
|
|
77
77
|
}
|
|
78
78
|
html {
|
|
79
|
-
background-color: #ffffff;
|
|
80
79
|
background-color: #ffffff;
|
|
81
80
|
background-color: var(--primary-background-color);
|
|
82
81
|
box-sizing: border-box;
|
|
83
82
|
color: #181c56;
|
|
84
|
-
color: #181c56;
|
|
85
83
|
color: var(--primary-text-color);
|
|
86
84
|
font-family: "Nationale", Arial, "Gotham Rounded", -apple-system,
|
|
87
85
|
BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
|
|
@@ -260,20 +258,11 @@ html {
|
|
|
260
258
|
background-position: 0 100%;
|
|
261
259
|
}
|
|
262
260
|
.eds-link:hover {
|
|
263
|
-
|
|
264
|
-
animation: eds-link-underline 0.3s ease-in;
|
|
261
|
+
animation: eds-link-underline 0.3s ease-in;
|
|
265
262
|
}
|
|
266
263
|
.eds-contrast .eds-link {
|
|
267
264
|
background-image: linear-gradient(120deg, #ffffff 0%, #ffffff 100%);
|
|
268
265
|
}
|
|
269
|
-
@-webkit-keyframes eds-link-underline {
|
|
270
|
-
from {
|
|
271
|
-
background-size: 0% 0.125rem;
|
|
272
|
-
}
|
|
273
|
-
to {
|
|
274
|
-
background-size: 100% 0.125rem;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
266
|
@keyframes eds-link-underline {
|
|
278
267
|
from {
|
|
279
268
|
background-size: 0% 0.125rem;
|
|
@@ -299,7 +288,6 @@ html {
|
|
|
299
288
|
|
|
300
289
|
.eds-label,
|
|
301
290
|
.eds-sub-label {
|
|
302
|
-
color: #656782;
|
|
303
291
|
color: #656782;
|
|
304
292
|
color: var(--primary-label-color);
|
|
305
293
|
}
|
|
@@ -501,15 +489,6 @@ html {
|
|
|
501
489
|
margin-bottom: 0;
|
|
502
490
|
}
|
|
503
491
|
|
|
504
|
-
@-webkit-keyframes lineExpand {
|
|
505
|
-
0% {
|
|
506
|
-
width: 0;
|
|
507
|
-
}
|
|
508
|
-
100% {
|
|
509
|
-
width: 100%;
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
|
|
513
492
|
@keyframes lineExpand {
|
|
514
493
|
0% {
|
|
515
494
|
width: 0;
|