@entur/typography 1.9.13-beta.3 → 1.9.14
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 -0
- package/dist/Blockquote.d.ts +12 -0
- package/dist/CodeText.d.ts +16 -0
- package/dist/EmphasizedText.d.ts +20 -0
- package/dist/Heading1.d.ts +20 -0
- package/dist/Heading2.d.ts +20 -0
- package/dist/Heading3.d.ts +20 -0
- package/dist/Heading4.d.ts +20 -0
- package/dist/Heading5.d.ts +20 -0
- package/dist/Heading6.d.ts +20 -0
- package/dist/Label.d.ts +20 -0
- package/dist/LeadParagraph.d.ts +20 -0
- package/dist/Link.d.ts +22 -0
- package/dist/ListItem.d.ts +11 -0
- package/dist/NumberedList.d.ts +8 -0
- package/dist/Paragraph.d.ts +20 -0
- package/dist/PreformattedText.d.ts +16 -0
- package/dist/SmallText.d.ts +20 -0
- package/dist/StrongText.d.ts +20 -0
- package/dist/SubLabel.d.ts +20 -0
- package/dist/SubParagraph.d.ts +20 -0
- package/dist/UnorderedList.d.ts +8 -0
- package/dist/index.d.ts +21 -426
- package/package.json +5 -5
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '../../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 = "h1">({ className, level, margin, as, ...rest }: BaseHeadingProps<E>) => JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as 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 {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '../../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 = "code">({ className, as, ...rest }: CodeTextProps<E>) => JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '../../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 = "em">({ className, margin, as, ...rest }: EmphasizedTextProps<E>) => JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '../../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 = "h1">({ margin, children, as, ...rest }: Heading1Props<E>) => JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '../../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 = "h2">({ margin, children, as, ...rest }: Heading2Props<E>) => JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '../../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 = "h3">({ margin, children, as, ...rest }: Heading3Props<E>) => JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '../../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 = "h4">({ margin, children, as, ...rest }: Heading4Props<E>) => JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '../../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 = "h5">({ margin, children, as, ...rest }: Heading5Props<E>) => JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '../../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 = "h6">({ margin, children, as, ...rest }: Heading6Props<E>) => JSX.Element;
|
|
20
|
+
export {};
|
package/dist/Label.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '../../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 = "label">({ className, margin, as, ...rest }: LabelProps<E>) => JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '../../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 = "p">({ className, margin, as, ...rest }: LeadParagraphProps<E>) => JSX.Element;
|
|
20
|
+
export {};
|
package/dist/Link.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '../../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 = "a">({ external, ariaLabelExternalIcon, className, margin, children, as, ...rest }: LinkProps<E>) => JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as 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>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as 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>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '../../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 = "p">({ margin, className, as, ...rest }: ParagraphProps<E>) => JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '../../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
|
+
declare const defaultElement = "pre";
|
|
15
|
+
export declare const PreformattedText: <E extends React.ElementType = "pre">({ className, as, ...rest }: PreformattedTextProps<E>) => JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '../../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 = "span">({ className, margin, as, ...rest }: SmallTextProps<E>) => JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '../../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 = "strong">({ className, margin, as, ...rest }: StrongTextProps<E>) => JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '../../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 = "span">({ className, margin, as, ...rest }: SubLabelProps<E>) => JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PolymorphicComponentProps } from '../../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 = "p">({ className, margin, as, ...rest }: SubParagraphProps<E>) => JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as 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,426 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
className?: string;
|
|
23
|
-
} & default_2.DetailedHTMLProps<default_2.BlockquoteHTMLAttributes<HTMLElement>, HTMLQuoteElement>;
|
|
24
|
-
|
|
25
|
-
export declare const CodeText: <E extends default_2.ElementType = "code">({ className, as, ...rest }: CodeTextProps<E>) => JSX.Element;
|
|
26
|
-
|
|
27
|
-
export declare type CodeTextOwnProps = {
|
|
28
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
29
|
-
* @default "code"
|
|
30
|
-
*/
|
|
31
|
-
as?: string | default_2.ElementType;
|
|
32
|
-
/** Ekstra klassenavn */
|
|
33
|
-
className?: string;
|
|
34
|
-
/** Innholdet */
|
|
35
|
-
children: default_2.ReactNode;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export declare type CodeTextProps<T extends default_2.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, CodeTextOwnProps>;
|
|
39
|
-
|
|
40
|
-
declare const defaultElement = "code";
|
|
41
|
-
|
|
42
|
-
declare const defaultElement_10 = "p";
|
|
43
|
-
|
|
44
|
-
declare const defaultElement_11 = "a";
|
|
45
|
-
|
|
46
|
-
declare const defaultElement_12 = "p";
|
|
47
|
-
|
|
48
|
-
declare const defaultElement_13 = "span";
|
|
49
|
-
|
|
50
|
-
declare const defaultElement_14 = "strong";
|
|
51
|
-
|
|
52
|
-
declare const defaultElement_15 = "span";
|
|
53
|
-
|
|
54
|
-
declare const defaultElement_16 = "p";
|
|
55
|
-
|
|
56
|
-
declare const defaultElement_2 = "em";
|
|
57
|
-
|
|
58
|
-
declare const defaultElement_3 = "h1";
|
|
59
|
-
|
|
60
|
-
declare const defaultElement_4 = "h2";
|
|
61
|
-
|
|
62
|
-
declare const defaultElement_5 = "h3";
|
|
63
|
-
|
|
64
|
-
declare const defaultElement_6 = "h4";
|
|
65
|
-
|
|
66
|
-
declare const defaultElement_7 = "h5";
|
|
67
|
-
|
|
68
|
-
declare const defaultElement_8 = "h6";
|
|
69
|
-
|
|
70
|
-
declare const defaultElement_9 = "label";
|
|
71
|
-
|
|
72
|
-
export declare const EmphasizedText: <E extends default_2.ElementType = "em">({ className, margin, as, ...rest }: EmphasizedTextProps<E>) => JSX.Element;
|
|
73
|
-
|
|
74
|
-
export declare type EmphasizedTextOwnProps = {
|
|
75
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
76
|
-
* @default "em"
|
|
77
|
-
*/
|
|
78
|
-
as?: string | default_2.ElementType;
|
|
79
|
-
/** Ekstra klassenavn */
|
|
80
|
-
className?: string;
|
|
81
|
-
/** Innholdet */
|
|
82
|
-
children: default_2.ReactNode;
|
|
83
|
-
/** Hvor du vil ha marginer
|
|
84
|
-
* @default "both"
|
|
85
|
-
*/
|
|
86
|
-
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
export declare type EmphasizedTextProps<T extends default_2.ElementType = typeof defaultElement_2> = PolymorphicComponentProps<T, EmphasizedTextOwnProps>;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Allows for extending a set of props (`ExtendedProps`) by an overriding set of props
|
|
93
|
-
* (`OverrideProps`), ensuring that any duplicates are overridden by the overriding
|
|
94
|
-
* set of props.
|
|
95
|
-
*/
|
|
96
|
-
declare type ExtendableProps<ExtendedProps = Record<string, unknown>, OverrideProps = Record<string, unknown>> = OverrideProps & Omit<ExtendedProps, keyof OverrideProps>;
|
|
97
|
-
|
|
98
|
-
export declare const Heading1: <E extends default_2.ElementType = "h1">({ margin, children, as, ...rest }: Heading1Props<E>) => JSX.Element;
|
|
99
|
-
|
|
100
|
-
export declare type Heading1OwnProps = {
|
|
101
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
102
|
-
* @default "h1"
|
|
103
|
-
*/
|
|
104
|
-
as?: string | default_2.ElementType;
|
|
105
|
-
/** Ekstra klassenavn */
|
|
106
|
-
className?: string;
|
|
107
|
-
/** Innholdet */
|
|
108
|
-
children: default_2.ReactNode;
|
|
109
|
-
/** Hvor du vil ha marginer
|
|
110
|
-
* @default "both"
|
|
111
|
-
*/
|
|
112
|
-
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
export declare type Heading1Props<T extends default_2.ElementType = typeof defaultElement_3> = PolymorphicComponentProps<T, Heading1OwnProps>;
|
|
116
|
-
|
|
117
|
-
export declare const Heading2: <E extends default_2.ElementType = "h2">({ margin, children, as, ...rest }: Heading2Props<E>) => JSX.Element;
|
|
118
|
-
|
|
119
|
-
export declare type Heading2OwnProps = {
|
|
120
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
121
|
-
* @default "h2"
|
|
122
|
-
*/
|
|
123
|
-
as?: string | default_2.ElementType;
|
|
124
|
-
/** Ekstra klassenavn */
|
|
125
|
-
className?: string;
|
|
126
|
-
/** Innholdet */
|
|
127
|
-
children: default_2.ReactNode;
|
|
128
|
-
/** Hvor du vil ha marginer
|
|
129
|
-
* @default "both"
|
|
130
|
-
*/
|
|
131
|
-
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
export declare type Heading2Props<T extends default_2.ElementType = typeof defaultElement_4> = PolymorphicComponentProps<T, Heading2OwnProps>;
|
|
135
|
-
|
|
136
|
-
export declare const Heading3: <E extends default_2.ElementType = "h3">({ margin, children, as, ...rest }: Heading3Props<E>) => JSX.Element;
|
|
137
|
-
|
|
138
|
-
export declare type Heading3OwnProps = {
|
|
139
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
140
|
-
* @default "h3"
|
|
141
|
-
*/
|
|
142
|
-
as?: string | default_2.ElementType;
|
|
143
|
-
/** Ekstra klassenavn */
|
|
144
|
-
className?: string;
|
|
145
|
-
/** Innholdet */
|
|
146
|
-
children: default_2.ReactNode;
|
|
147
|
-
/** Hvor du vil ha marginer
|
|
148
|
-
* @default "both"
|
|
149
|
-
*/
|
|
150
|
-
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
export declare type Heading3Props<T extends default_2.ElementType = typeof defaultElement_5> = PolymorphicComponentProps<T, Heading3OwnProps>;
|
|
154
|
-
|
|
155
|
-
export declare const Heading4: <E extends default_2.ElementType = "h4">({ margin, children, as, ...rest }: Heading4Props<E>) => JSX.Element;
|
|
156
|
-
|
|
157
|
-
export declare type Heading4OwnProps = {
|
|
158
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
159
|
-
* @default "h4"
|
|
160
|
-
*/
|
|
161
|
-
as?: string | default_2.ElementType;
|
|
162
|
-
/** Ekstra klassenavn */
|
|
163
|
-
className?: string;
|
|
164
|
-
/** Innholdet */
|
|
165
|
-
children: default_2.ReactNode;
|
|
166
|
-
/** Hvor du vil ha marginer
|
|
167
|
-
* @default "both"
|
|
168
|
-
*/
|
|
169
|
-
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
export declare type Heading4Props<T extends default_2.ElementType = typeof defaultElement_6> = PolymorphicComponentProps<T, Heading4OwnProps>;
|
|
173
|
-
|
|
174
|
-
export declare const Heading5: <E extends default_2.ElementType = "h5">({ margin, children, as, ...rest }: Heading5Props<E>) => JSX.Element;
|
|
175
|
-
|
|
176
|
-
export declare type Heading5OwnProps = {
|
|
177
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
178
|
-
* @default "h5"
|
|
179
|
-
*/
|
|
180
|
-
as?: string | default_2.ElementType;
|
|
181
|
-
/** Ekstra klassenavn */
|
|
182
|
-
className?: string;
|
|
183
|
-
/** Innholdet */
|
|
184
|
-
children: default_2.ReactNode;
|
|
185
|
-
/** Hvor du vil ha marginer
|
|
186
|
-
* @default "both"
|
|
187
|
-
*/
|
|
188
|
-
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
export declare type Heading5Props<T extends default_2.ElementType = typeof defaultElement_7> = PolymorphicComponentProps<T, Heading5OwnProps>;
|
|
192
|
-
|
|
193
|
-
export declare const Heading6: <E extends default_2.ElementType = "h6">({ margin, children, as, ...rest }: Heading6Props<E>) => JSX.Element;
|
|
194
|
-
|
|
195
|
-
export declare type Heading6OwnProps = {
|
|
196
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
197
|
-
* @default "h6"
|
|
198
|
-
*/
|
|
199
|
-
as?: string | default_2.ElementType;
|
|
200
|
-
/** Ekstra klassenavn */
|
|
201
|
-
className?: string;
|
|
202
|
-
/** Innholdet */
|
|
203
|
-
children: default_2.ReactNode;
|
|
204
|
-
/** Hvor du vil ha marginer
|
|
205
|
-
* @default "both"
|
|
206
|
-
*/
|
|
207
|
-
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
export declare type Heading6Props<T extends default_2.ElementType = typeof defaultElement_8> = PolymorphicComponentProps<T, Heading6OwnProps>;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Allows for inheriting the props from the specified element type so that
|
|
214
|
-
* props like children, className & style work, as well as element-specific
|
|
215
|
-
* attributes like aria roles. The component (`C`) must be passed in.
|
|
216
|
-
*/
|
|
217
|
-
declare type InheritableElementProps<C extends default_2.ElementType, Props = Record<string, unknown>> = ExtendableProps<PropsOf<C>, Props>;
|
|
218
|
-
|
|
219
|
-
export declare const Label: <E extends default_2.ElementType = "label">({ className, margin, as, ...rest }: LabelProps<E>) => JSX.Element;
|
|
220
|
-
|
|
221
|
-
export declare type LabelOwnProps = {
|
|
222
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
223
|
-
* @default "label"
|
|
224
|
-
*/
|
|
225
|
-
as?: string | default_2.ElementType;
|
|
226
|
-
/** Ekstra klassenavn */
|
|
227
|
-
className?: string;
|
|
228
|
-
/** Innholdet */
|
|
229
|
-
children: default_2.ReactNode;
|
|
230
|
-
/** Hvor du vil ha marginer
|
|
231
|
-
* @default "both"
|
|
232
|
-
*/
|
|
233
|
-
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
export declare type LabelProps<T extends default_2.ElementType = typeof defaultElement_9> = PolymorphicComponentProps<T, LabelOwnProps>;
|
|
237
|
-
|
|
238
|
-
export declare const LeadParagraph: <E extends default_2.ElementType = "p">({ className, margin, as, ...rest }: LeadParagraphProps<E>) => JSX.Element;
|
|
239
|
-
|
|
240
|
-
export declare type LeadParagraphOwnProps = {
|
|
241
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
242
|
-
* @default "p"
|
|
243
|
-
*/
|
|
244
|
-
as?: string | default_2.ElementType;
|
|
245
|
-
/** Ekstra klassenavn */
|
|
246
|
-
className?: string;
|
|
247
|
-
/** Innholdet */
|
|
248
|
-
children: default_2.ReactNode;
|
|
249
|
-
/** Hvor du vil ha marginer
|
|
250
|
-
* @default "both"
|
|
251
|
-
*/
|
|
252
|
-
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
export declare type LeadParagraphProps<T extends default_2.ElementType = typeof defaultElement_10> = PolymorphicComponentProps<T, LeadParagraphOwnProps>;
|
|
256
|
-
|
|
257
|
-
export declare const Link: <E extends default_2.ElementType = "a">({ external, ariaLabelExternalIcon, className, margin, children, as, ...rest }: LinkProps<E>) => JSX.Element;
|
|
258
|
-
|
|
259
|
-
export declare type LinkOwnProps = {
|
|
260
|
-
external?: boolean;
|
|
261
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
262
|
-
* @default "a"
|
|
263
|
-
*/
|
|
264
|
-
as?: string | default_2.ElementType;
|
|
265
|
-
/** Ekstra klassenavn */
|
|
266
|
-
className?: string;
|
|
267
|
-
/** Innholdet */
|
|
268
|
-
children: default_2.ReactNode;
|
|
269
|
-
/** Hvor du vil ha marginer
|
|
270
|
-
* @default "both"
|
|
271
|
-
*/
|
|
272
|
-
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
273
|
-
ariaLabelExternalIcon?: string;
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
export declare type LinkProps<T extends default_2.ElementType = typeof defaultElement_11> = PolymorphicComponentProps<T, LinkOwnProps>;
|
|
277
|
-
|
|
278
|
-
export declare const ListItem: default_2.FC<ListItemProps>;
|
|
279
|
-
|
|
280
|
-
export declare type ListItemProps = {
|
|
281
|
-
/** Ekstra klassenavn */
|
|
282
|
-
className?: string;
|
|
283
|
-
/** Innholdet */
|
|
284
|
-
children: default_2.ReactNode;
|
|
285
|
-
/** Tittel */
|
|
286
|
-
title?: default_2.ReactNode;
|
|
287
|
-
[key: string]: any;
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
export declare const NumberedList: default_2.FC<NumberedListProps>;
|
|
291
|
-
|
|
292
|
-
export declare type NumberedListProps = {
|
|
293
|
-
/** Ekstra klassenavn */
|
|
294
|
-
className?: string;
|
|
295
|
-
/** Innholdet */
|
|
296
|
-
children: default_2.ReactNode;
|
|
297
|
-
} & default_2.OlHTMLAttributes<HTMLOListElement>;
|
|
298
|
-
|
|
299
|
-
export declare const Paragraph: <E extends default_2.ElementType = "p">({ margin, className, as, ...rest }: ParagraphProps<E>) => JSX.Element;
|
|
300
|
-
|
|
301
|
-
export declare type ParagraphOwnProps = {
|
|
302
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
303
|
-
* @default "p"
|
|
304
|
-
*/
|
|
305
|
-
as?: string | default_2.ElementType;
|
|
306
|
-
/** Ekstra klassenavn */
|
|
307
|
-
className?: string;
|
|
308
|
-
/** Innholdet */
|
|
309
|
-
children: default_2.ReactNode;
|
|
310
|
-
/** Hvor du vil ha marginer
|
|
311
|
-
* @default "bottom"
|
|
312
|
-
*/
|
|
313
|
-
margin?: 'bottom' | 'none';
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
export declare type ParagraphProps<T extends default_2.ElementType = typeof defaultElement_12> = PolymorphicComponentProps<T, ParagraphOwnProps>;
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* A more sophisticated version of `InheritableElementProps` where
|
|
320
|
-
* the passed in `as` prop will determine which props can be included
|
|
321
|
-
*/
|
|
322
|
-
declare type PolymorphicComponentProps<C extends default_2.ElementType, Props = Record<string, unknown>> = InheritableElementProps<C, Props & AsProp<C>>;
|
|
323
|
-
|
|
324
|
-
export declare const PreformattedText: <E extends default_2.ElementType = "pre">({ className, as, ...rest }: PreformattedTextProps<E>) => JSX.Element;
|
|
325
|
-
|
|
326
|
-
export declare type PreformattedTextOwnProps = {
|
|
327
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
328
|
-
* @default "pre"
|
|
329
|
-
*/
|
|
330
|
-
as?: string | default_2.ElementType;
|
|
331
|
-
/** Ekstra klassenavn */
|
|
332
|
-
className?: string;
|
|
333
|
-
/** Innholdet */
|
|
334
|
-
children: default_2.ReactNode;
|
|
335
|
-
};
|
|
336
|
-
|
|
337
|
-
export declare type PreformattedTextProps<T extends default_2.ElementType> = PolymorphicComponentProps<T, PreformattedTextOwnProps>;
|
|
338
|
-
|
|
339
|
-
declare type PropsOf<C extends keyof JSX.IntrinsicElements | default_2.JSXElementConstructor<any>> = JSX.LibraryManagedAttributes<C, default_2.ComponentPropsWithoutRef<C>>;
|
|
340
|
-
|
|
341
|
-
export declare const SmallText: <E extends default_2.ElementType = "span">({ className, margin, as, ...rest }: SmallTextProps<E>) => JSX.Element;
|
|
342
|
-
|
|
343
|
-
export declare type SmallTextOwnProps = {
|
|
344
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
345
|
-
* @default "span"
|
|
346
|
-
*/
|
|
347
|
-
as?: string | default_2.ElementType;
|
|
348
|
-
/** Ekstra klassenavn */
|
|
349
|
-
className?: string;
|
|
350
|
-
/** Innholdet */
|
|
351
|
-
children: default_2.ReactNode;
|
|
352
|
-
/** Hvor du vil ha marginer
|
|
353
|
-
* @default "both"
|
|
354
|
-
*/
|
|
355
|
-
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
356
|
-
};
|
|
357
|
-
|
|
358
|
-
export declare type SmallTextProps<T extends default_2.ElementType = typeof defaultElement_13> = PolymorphicComponentProps<T, SmallTextOwnProps>;
|
|
359
|
-
|
|
360
|
-
export declare const StrongText: <E extends default_2.ElementType = "strong">({ className, margin, as, ...rest }: StrongTextProps<E>) => JSX.Element;
|
|
361
|
-
|
|
362
|
-
export declare type StrongTextOwnProps = {
|
|
363
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
364
|
-
* @default "strong"
|
|
365
|
-
*/
|
|
366
|
-
as?: string | default_2.ElementType;
|
|
367
|
-
/** Ekstra klassenavn */
|
|
368
|
-
className?: string;
|
|
369
|
-
/** Innholdet */
|
|
370
|
-
children: default_2.ReactNode;
|
|
371
|
-
/** Hvor du vil ha marginer
|
|
372
|
-
* @default "both"
|
|
373
|
-
*/
|
|
374
|
-
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
375
|
-
};
|
|
376
|
-
|
|
377
|
-
export declare type StrongTextProps<T extends default_2.ElementType = typeof defaultElement_14> = PolymorphicComponentProps<T, StrongTextOwnProps>;
|
|
378
|
-
|
|
379
|
-
export declare const SubLabel: <E extends default_2.ElementType = "span">({ className, margin, as, ...rest }: SubLabelProps<E>) => JSX.Element;
|
|
380
|
-
|
|
381
|
-
export declare type SubLabelOwnProps = {
|
|
382
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
383
|
-
* @default "span"
|
|
384
|
-
*/
|
|
385
|
-
as?: string | default_2.ElementType;
|
|
386
|
-
/** Ekstra klassenavn */
|
|
387
|
-
className?: string;
|
|
388
|
-
/** Innholdet */
|
|
389
|
-
children: default_2.ReactNode;
|
|
390
|
-
/** Hvor du vil ha marginer
|
|
391
|
-
* @default "both"
|
|
392
|
-
*/
|
|
393
|
-
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
394
|
-
};
|
|
395
|
-
|
|
396
|
-
export declare type SubLabelProps<T extends default_2.ElementType = typeof defaultElement_15> = PolymorphicComponentProps<T, SubLabelOwnProps>;
|
|
397
|
-
|
|
398
|
-
export declare const SubParagraph: <E extends default_2.ElementType = "p">({ className, margin, as, ...rest }: SubParagraphProps<E>) => JSX.Element;
|
|
399
|
-
|
|
400
|
-
export declare type SubParagraphOwnProps = {
|
|
401
|
-
/** HTML-elementet eller React-komponenten som rendres
|
|
402
|
-
* @default "p"
|
|
403
|
-
*/
|
|
404
|
-
as?: string | default_2.ElementType;
|
|
405
|
-
/** Ekstra klassenavn */
|
|
406
|
-
className?: string;
|
|
407
|
-
/** Innholdet */
|
|
408
|
-
children: default_2.ReactNode;
|
|
409
|
-
/** Hvor du vil ha marginer
|
|
410
|
-
* @default "both"
|
|
411
|
-
*/
|
|
412
|
-
margin?: 'top' | 'bottom' | 'both' | 'none';
|
|
413
|
-
};
|
|
414
|
-
|
|
415
|
-
export declare type SubParagraphProps<T extends default_2.ElementType = typeof defaultElement_16> = PolymorphicComponentProps<T, SubParagraphOwnProps>;
|
|
416
|
-
|
|
417
|
-
export declare const UnorderedList: default_2.FC<UnorderedListProps>;
|
|
418
|
-
|
|
419
|
-
export declare type UnorderedListProps = {
|
|
420
|
-
/** Ekstra klassenavn */
|
|
421
|
-
className?: string;
|
|
422
|
-
/** Innholdet */
|
|
423
|
-
children: default_2.ReactNode;
|
|
424
|
-
} & default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLUListElement>, HTMLUListElement>;
|
|
425
|
-
|
|
426
|
-
export { }
|
|
1
|
+
export * from './Blockquote';
|
|
2
|
+
export * from './CodeText';
|
|
3
|
+
export * from './EmphasizedText';
|
|
4
|
+
export * from './Heading1';
|
|
5
|
+
export * from './Heading2';
|
|
6
|
+
export * from './Heading3';
|
|
7
|
+
export * from './Heading4';
|
|
8
|
+
export * from './Heading5';
|
|
9
|
+
export * from './Heading6';
|
|
10
|
+
export * from './Label';
|
|
11
|
+
export * from './LeadParagraph';
|
|
12
|
+
export * from './Link';
|
|
13
|
+
export * from './ListItem';
|
|
14
|
+
export * from './NumberedList';
|
|
15
|
+
export * from './Paragraph';
|
|
16
|
+
export * from './PreformattedText';
|
|
17
|
+
export * from './SmallText';
|
|
18
|
+
export * from './StrongText';
|
|
19
|
+
export * from './SubLabel';
|
|
20
|
+
export * from './SubParagraph';
|
|
21
|
+
export * from './UnorderedList';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/typography",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.14",
|
|
4
4
|
"license": "SEE LICENSE IN README.md",
|
|
5
5
|
"main": "dist/typography.cjs.js",
|
|
6
6
|
"module": "dist/typography.esm.js",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/icons": "^8.0.
|
|
31
|
-
"@entur/tokens": "^3.19.
|
|
32
|
-
"@entur/utils": "^0.12.
|
|
30
|
+
"@entur/icons": "^8.0.2",
|
|
31
|
+
"@entur/tokens": "^3.19.3",
|
|
32
|
+
"@entur/utils": "^0.12.5",
|
|
33
33
|
"classnames": "^2.5.1",
|
|
34
34
|
"normalize-scss": "^8.0.0"
|
|
35
35
|
},
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"vite": "^7.1.3",
|
|
47
47
|
"vite-plugin-dts": "^4.5.4"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "5dd9d318f1d79f6f522f978de27b551fda1e91cc"
|
|
50
50
|
}
|