@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.
@@ -1,18 +1,18 @@
1
- import React from 'react';
2
- import { PolymorphicComponentProps } from '@entur/utils';
3
- type BaseHeadingOwnProps = {
4
- /** HTML-elementet eller React-komponenten som rendres */
5
- as: string | React.ElementType;
6
- /** Ekstra klassenavn */
7
- className?: string;
8
- /** Innholdet */
9
- children: React.ReactNode;
10
- /** Hvor du vil ha marginer */
11
- margin: 'top' | 'bottom' | 'both' | 'none';
12
- /** Nivået på overskriften */
13
- level: 1 | 2 | 3 | 4 | 5 | 6;
14
- };
15
- declare const defaultElement = "h1";
16
- export type BaseHeadingProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, BaseHeadingOwnProps>;
17
- export declare const BaseHeading: <E extends React.ElementType<any> = "h1">({ className, level, margin, as, ...rest }: BaseHeadingProps<E>) => JSX.Element;
18
- export {};
1
+ import React from 'react';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
+ type BaseHeadingOwnProps = {
4
+ /** HTML-elementet eller React-komponenten som rendres */
5
+ as: string | React.ElementType;
6
+ /** Ekstra klassenavn */
7
+ className?: string;
8
+ /** Innholdet */
9
+ children: React.ReactNode;
10
+ /** Hvor du vil ha marginer */
11
+ margin: 'top' | 'bottom' | 'both' | 'none';
12
+ /** Nivået på overskriften */
13
+ level: 1 | 2 | 3 | 4 | 5 | 6;
14
+ };
15
+ declare const defaultElement = "h1";
16
+ export type BaseHeadingProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, BaseHeadingOwnProps>;
17
+ export declare const BaseHeading: <E extends React.ElementType<any> = "h1">({ className, level, margin, as, ...rest }: BaseHeadingProps<E>) => JSX.Element;
18
+ export {};
@@ -1,12 +1,12 @@
1
- import React from 'react';
2
- type BlockquoteProps = {
3
- /** Ekstra klassenavn */
4
- className?: string;
5
- } & React.DetailedHTMLProps<React.BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>;
6
- export declare const Blockquote: React.FunctionComponent<BlockquoteProps>;
7
- type BlockquoteFooterProps = {
8
- /** Ekstra klassenavn */
9
- className?: string;
10
- } & React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
11
- export declare const BlockquoteFooter: React.FunctionComponent<BlockquoteFooterProps>;
12
- export {};
1
+ import React from 'react';
2
+ type BlockquoteProps = {
3
+ /** Ekstra klassenavn */
4
+ className?: string;
5
+ } & React.DetailedHTMLProps<React.BlockquoteHTMLAttributes<HTMLElement>, HTMLQuoteElement>;
6
+ export declare const Blockquote: ({ className, ref, ...rest }: BlockquoteProps) => React.JSX.Element;
7
+ type BlockquoteFooterProps = {
8
+ /** Ekstra klassenavn */
9
+ className?: string;
10
+ } & React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
11
+ export declare const BlockquoteFooter: React.FunctionComponent<BlockquoteFooterProps>;
12
+ export {};
@@ -1,16 +1,16 @@
1
- import React from 'react';
2
- import { PolymorphicComponentProps } from '@entur/utils';
3
- export type CodeTextOwnProps = {
4
- /** HTML-elementet eller React-komponenten som rendres
5
- * @default "code"
6
- */
7
- as?: string | React.ElementType;
8
- /** Ekstra klassenavn */
9
- className?: string;
10
- /** Innholdet */
11
- children: React.ReactNode;
12
- };
13
- export type CodeTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, CodeTextOwnProps>;
14
- declare const defaultElement = "code";
15
- export declare const CodeText: <E extends React.ElementType<any> = "code">({ className, as, ...rest }: CodeTextProps<E>) => JSX.Element;
16
- export {};
1
+ import React from 'react';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
+ export type CodeTextOwnProps = {
4
+ /** HTML-elementet eller React-komponenten som rendres
5
+ * @default "code"
6
+ */
7
+ as?: string | React.ElementType;
8
+ /** Ekstra klassenavn */
9
+ className?: string;
10
+ /** Innholdet */
11
+ children: React.ReactNode;
12
+ };
13
+ export type CodeTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, CodeTextOwnProps>;
14
+ declare const defaultElement = "code";
15
+ export declare const CodeText: <E extends React.ElementType<any> = "code">({ className, as, ...rest }: CodeTextProps<E>) => JSX.Element;
16
+ export {};
@@ -1,20 +1,20 @@
1
- import React from 'react';
2
- import { PolymorphicComponentProps } from '@entur/utils';
3
- export type EmphasizedTextOwnProps = {
4
- /** HTML-elementet eller React-komponenten som rendres
5
- * @default "em"
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 EmphasizedTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, EmphasizedTextOwnProps>;
18
- declare const defaultElement = "em";
19
- export declare const EmphasizedText: <E extends React.ElementType<any> = "em">({ className, margin, as, ...rest }: EmphasizedTextProps<E>) => JSX.Element;
20
- export {};
1
+ import React from 'react';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
+ export type EmphasizedTextOwnProps = {
4
+ /** HTML-elementet eller React-komponenten som rendres
5
+ * @default "em"
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 EmphasizedTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, EmphasizedTextOwnProps>;
18
+ declare const defaultElement = "em";
19
+ export declare const EmphasizedText: <E extends React.ElementType<any> = "em">({ className, margin, as, ...rest }: EmphasizedTextProps<E>) => JSX.Element;
20
+ export {};
@@ -1,20 +1,20 @@
1
- import React from 'react';
2
- import { PolymorphicComponentProps } from '@entur/utils';
3
- export type Heading1OwnProps = {
4
- /** HTML-elementet eller React-komponenten som rendres
5
- * @default "h1"
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
- declare const defaultElement = "h1";
18
- export type Heading1Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading1OwnProps>;
19
- export declare const Heading1: <E extends React.ElementType<any> = "h1">({ margin, children, as, ...rest }: Heading1Props<E>) => JSX.Element;
20
- export {};
1
+ import React from 'react';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
+ export type Heading1OwnProps = {
4
+ /** HTML-elementet eller React-komponenten som rendres
5
+ * @default "h1"
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
+ declare const defaultElement = "h1";
18
+ export type Heading1Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading1OwnProps>;
19
+ export declare const Heading1: <E extends React.ElementType<any> = "h1">({ margin, children, as, ...rest }: Heading1Props<E>) => JSX.Element;
20
+ export {};
@@ -1,20 +1,20 @@
1
- import React from 'react';
2
- import { PolymorphicComponentProps } from '@entur/utils';
3
- export type Heading2OwnProps = {
4
- /** HTML-elementet eller React-komponenten som rendres
5
- * @default "h2"
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 Heading2Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading2OwnProps>;
18
- declare const defaultElement = "h2";
19
- export declare const Heading2: <E extends React.ElementType<any> = "h2">({ margin, children, as, ...rest }: Heading2Props<E>) => JSX.Element;
20
- export {};
1
+ import React from 'react';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
+ export type Heading2OwnProps = {
4
+ /** HTML-elementet eller React-komponenten som rendres
5
+ * @default "h2"
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 Heading2Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading2OwnProps>;
18
+ declare const defaultElement = "h2";
19
+ export declare const Heading2: <E extends React.ElementType<any> = "h2">({ margin, children, as, ...rest }: Heading2Props<E>) => JSX.Element;
20
+ export {};
@@ -1,20 +1,20 @@
1
- import React from 'react';
2
- import { PolymorphicComponentProps } from '@entur/utils';
3
- export type Heading3OwnProps = {
4
- /** HTML-elementet eller React-komponenten som rendres
5
- * @default "h3"
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 Heading3Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading3OwnProps>;
18
- declare const defaultElement = "h3";
19
- export declare const Heading3: <E extends React.ElementType<any> = "h3">({ margin, children, as, ...rest }: Heading3Props<E>) => JSX.Element;
20
- export {};
1
+ import React from 'react';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
+ export type Heading3OwnProps = {
4
+ /** HTML-elementet eller React-komponenten som rendres
5
+ * @default "h3"
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 Heading3Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading3OwnProps>;
18
+ declare const defaultElement = "h3";
19
+ export declare const Heading3: <E extends React.ElementType<any> = "h3">({ margin, children, as, ...rest }: Heading3Props<E>) => JSX.Element;
20
+ export {};
@@ -1,20 +1,20 @@
1
- import React from 'react';
2
- import { PolymorphicComponentProps } from '@entur/utils';
3
- export type Heading4OwnProps = {
4
- /** HTML-elementet eller React-komponenten som rendres
5
- * @default "h4"
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 Heading4Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading4OwnProps>;
18
- declare const defaultElement = "h4";
19
- export declare const Heading4: <E extends React.ElementType<any> = "h4">({ margin, children, as, ...rest }: Heading4Props<E>) => JSX.Element;
20
- export {};
1
+ import React from 'react';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
+ export type Heading4OwnProps = {
4
+ /** HTML-elementet eller React-komponenten som rendres
5
+ * @default "h4"
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 Heading4Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading4OwnProps>;
18
+ declare const defaultElement = "h4";
19
+ export declare const Heading4: <E extends React.ElementType<any> = "h4">({ margin, children, as, ...rest }: Heading4Props<E>) => JSX.Element;
20
+ export {};
@@ -1,20 +1,20 @@
1
- import React from 'react';
2
- import { PolymorphicComponentProps } from '@entur/utils';
3
- export type Heading5OwnProps = {
4
- /** HTML-elementet eller React-komponenten som rendres
5
- * @default "h5"
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 Heading5Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading5OwnProps>;
18
- declare const defaultElement = "h5";
19
- export declare const Heading5: <E extends React.ElementType<any> = "h5">({ margin, children, as, ...rest }: Heading5Props<E>) => JSX.Element;
20
- export {};
1
+ import React from 'react';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
+ export type Heading5OwnProps = {
4
+ /** HTML-elementet eller React-komponenten som rendres
5
+ * @default "h5"
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 Heading5Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading5OwnProps>;
18
+ declare const defaultElement = "h5";
19
+ export declare const Heading5: <E extends React.ElementType<any> = "h5">({ margin, children, as, ...rest }: Heading5Props<E>) => JSX.Element;
20
+ export {};
@@ -1,20 +1,20 @@
1
- import React from 'react';
2
- import { PolymorphicComponentProps } from '@entur/utils';
3
- export type Heading6OwnProps = {
4
- /** HTML-elementet eller React-komponenten som rendres
5
- * @default "h6"
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 Heading6Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading6OwnProps>;
18
- declare const defaultElement = "h6";
19
- export declare const Heading6: <E extends React.ElementType<any> = "h6">({ margin, children, as, ...rest }: Heading6Props<E>) => JSX.Element;
20
- export {};
1
+ import React from 'react';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
+ export type Heading6OwnProps = {
4
+ /** HTML-elementet eller React-komponenten som rendres
5
+ * @default "h6"
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 Heading6Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading6OwnProps>;
18
+ declare const defaultElement = "h6";
19
+ export declare const Heading6: <E extends React.ElementType<any> = "h6">({ margin, children, as, ...rest }: Heading6Props<E>) => JSX.Element;
20
+ export {};
package/dist/Label.d.ts CHANGED
@@ -1,20 +1,20 @@
1
- import React from 'react';
2
- import { PolymorphicComponentProps } from '@entur/utils';
3
- export type LabelOwnProps = {
4
- /** HTML-elementet eller React-komponenten som rendres
5
- * @default "label"
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 LabelProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, LabelOwnProps>;
18
- declare const defaultElement = "label";
19
- export declare const Label: <E extends React.ElementType<any> = "label">({ className, margin, as, ...rest }: LabelProps<E>) => JSX.Element;
20
- export {};
1
+ import React from 'react';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
+ export type LabelOwnProps = {
4
+ /** HTML-elementet eller React-komponenten som rendres
5
+ * @default "label"
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 LabelProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, LabelOwnProps>;
18
+ declare const defaultElement = "label";
19
+ export declare const Label: <E extends React.ElementType<any> = "label">({ className, margin, as, ...rest }: LabelProps<E>) => JSX.Element;
20
+ export {};
@@ -1,20 +1,20 @@
1
- import React from 'react';
2
- import { PolymorphicComponentProps } from '@entur/utils';
3
- export type LeadParagraphOwnProps = {
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 LeadParagraphProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, LeadParagraphOwnProps>;
18
- declare const defaultElement = "p";
19
- export declare const LeadParagraph: <E extends React.ElementType<any> = "p">({ className, margin, as, ...rest }: LeadParagraphProps<E>) => JSX.Element;
20
- export {};
1
+ import React from 'react';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
+ export type LeadParagraphOwnProps = {
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 LeadParagraphProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, LeadParagraphOwnProps>;
18
+ declare const defaultElement = "p";
19
+ export declare const LeadParagraph: <E extends React.ElementType<any> = "p">({ className, margin, as, ...rest }: LeadParagraphProps<E>) => JSX.Element;
20
+ export {};
package/dist/Link.d.ts CHANGED
@@ -1,21 +1,22 @@
1
- import React from 'react';
2
- import { PolymorphicComponentProps } from '@entur/utils';
3
- export type LinkOwnProps = {
4
- external?: boolean;
5
- /** HTML-elementet eller React-komponenten som rendres
6
- * @default "a"
7
- */
8
- as?: string | React.ElementType;
9
- /** Ekstra klassenavn */
10
- className?: string;
11
- /** Innholdet */
12
- children: React.ReactNode;
13
- /** Hvor du vil ha marginer
14
- * @default "both"
15
- */
16
- margin?: 'top' | 'bottom' | 'both' | 'none';
17
- };
18
- export type LinkProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, LinkOwnProps>;
19
- declare const defaultElement = "a";
20
- export declare const Link: <E extends React.ElementType<any> = "a">({ external, ariaLabelExternalIcon, className, margin, children, as, ...rest }: LinkProps<E>) => JSX.Element;
21
- export {};
1
+ import React from 'react';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
+ export type LinkOwnProps = {
4
+ external?: boolean;
5
+ /** HTML-elementet eller React-komponenten som rendres
6
+ * @default "a"
7
+ */
8
+ as?: string | React.ElementType;
9
+ /** Ekstra klassenavn */
10
+ className?: string;
11
+ /** Innholdet */
12
+ children: React.ReactNode;
13
+ /** Hvor du vil ha marginer
14
+ * @default "both"
15
+ */
16
+ margin?: 'top' | 'bottom' | 'both' | 'none';
17
+ ariaLabelExternalIcon?: string;
18
+ };
19
+ export type LinkProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, LinkOwnProps>;
20
+ declare const defaultElement = "a";
21
+ export declare const Link: <E extends React.ElementType<any> = "a">({ external, ariaLabelExternalIcon, className, margin, children, as, ...rest }: LinkProps<E>) => JSX.Element;
22
+ export {};
@@ -1,11 +1,11 @@
1
- import React from 'react';
2
- export type ListItemProps = {
3
- /** Ekstra klassenavn */
4
- className?: string;
5
- /** Innholdet */
6
- children: React.ReactNode;
7
- /** Tittel */
8
- title?: React.ReactNode;
9
- [key: string]: any;
10
- };
11
- export declare const ListItem: React.FC<ListItemProps>;
1
+ import React from 'react';
2
+ export type ListItemProps = {
3
+ /** Ekstra klassenavn */
4
+ className?: string;
5
+ /** Innholdet */
6
+ children: React.ReactNode;
7
+ /** Tittel */
8
+ title?: React.ReactNode;
9
+ [key: string]: any;
10
+ };
11
+ export declare const ListItem: React.FC<ListItemProps>;
@@ -1,8 +1,8 @@
1
- import React from 'react';
2
- export type NumberedListProps = {
3
- /** Ekstra klassenavn */
4
- className?: string;
5
- /** Innholdet */
6
- children: React.ReactNode;
7
- } & React.OlHTMLAttributes<HTMLOListElement>;
8
- export declare const NumberedList: React.FC<NumberedListProps>;
1
+ import React from 'react';
2
+ export type NumberedListProps = {
3
+ /** Ekstra klassenavn */
4
+ className?: string;
5
+ /** Innholdet */
6
+ children: React.ReactNode;
7
+ } & React.OlHTMLAttributes<HTMLOListElement>;
8
+ export declare const NumberedList: React.FC<NumberedListProps>;
@@ -1,20 +1,20 @@
1
- import React from 'react';
2
- import { PolymorphicComponentProps } from '@entur/utils';
3
- export type ParagraphOwnProps = {
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 "bottom"
14
- */
15
- margin?: 'bottom' | 'none';
16
- };
17
- export type ParagraphProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, ParagraphOwnProps>;
18
- declare const defaultElement = "p";
19
- export declare const Paragraph: <E extends React.ElementType<any> = "p">({ margin, className, as, ...rest }: ParagraphProps<E>) => JSX.Element;
20
- export {};
1
+ import React from 'react';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
+ export type ParagraphOwnProps = {
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 "bottom"
14
+ */
15
+ margin?: 'bottom' | 'none';
16
+ };
17
+ export type ParagraphProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, ParagraphOwnProps>;
18
+ declare const defaultElement = "p";
19
+ export declare const Paragraph: <E extends React.ElementType<any> = "p">({ margin, className, as, ...rest }: ParagraphProps<E>) => JSX.Element;
20
+ export {};
@@ -1,14 +1,14 @@
1
- import React from 'react';
2
- import { PolymorphicComponentProps } from '@entur/utils';
3
- export type PreformattedTextOwnProps = {
4
- /** HTML-elementet eller React-komponenten som rendres
5
- * @default "pre"
6
- */
7
- as?: string | React.ElementType;
8
- /** Ekstra klassenavn */
9
- className?: string;
10
- /** Innholdet */
11
- children: React.ReactNode;
12
- };
13
- export type PreformattedTextProps<T extends React.ElementType> = PolymorphicComponentProps<T, PreformattedTextOwnProps>;
14
- export declare const PreformattedText: <E extends React.ElementType<any> = "pre">({ className, as, ...rest }: PreformattedTextProps<E>) => JSX.Element;
1
+ import React from 'react';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
+ export type PreformattedTextOwnProps = {
4
+ /** HTML-elementet eller React-komponenten som rendres
5
+ * @default "pre"
6
+ */
7
+ as?: string | React.ElementType;
8
+ /** Ekstra klassenavn */
9
+ className?: string;
10
+ /** Innholdet */
11
+ children: React.ReactNode;
12
+ };
13
+ export type PreformattedTextProps<T extends React.ElementType> = PolymorphicComponentProps<T, PreformattedTextOwnProps>;
14
+ export declare const PreformattedText: <E extends React.ElementType<any> = "pre">({ className, as, ...rest }: PreformattedTextProps<E>) => JSX.Element;