@entur/typography 1.9.13 → 1.10.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +101 -4
- 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/beta/BlockquoteBeta.d.ts +12 -0
- package/dist/beta/Heading.d.ts +21 -0
- package/dist/beta/LinkBeta.d.ts +16 -0
- package/dist/beta/Text.d.ts +21 -0
- package/dist/beta/index.d.ts +6 -0
- package/dist/beta/types.d.ts +5 -0
- package/dist/beta/utils.d.ts +10 -0
- package/dist/index.d.ts +26 -426
- package/dist/index.js +8 -0
- package/dist/styles.css +838 -2
- package/dist/typography.cjs.development.js +528 -0
- package/dist/typography.cjs.development.js.map +1 -0
- package/dist/typography.cjs.production.min.js +2 -0
- package/dist/typography.cjs.production.min.js.map +1 -0
- package/dist/typography.esm.js +474 -392
- package/dist/typography.esm.js.map +1 -1
- package/package.json +21 -25
- package/scripts/migrate-typography.js +1259 -0
- package/dist/typography.cjs.js +0 -416
- package/dist/typography.cjs.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,426 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export
|
|
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
|
+
import './index.scss';
|
|
2
|
+
export * from './Blockquote';
|
|
3
|
+
export * from './CodeText';
|
|
4
|
+
export * from './EmphasizedText';
|
|
5
|
+
export * from './Heading1';
|
|
6
|
+
export * from './Heading2';
|
|
7
|
+
export * from './Heading3';
|
|
8
|
+
export * from './Heading4';
|
|
9
|
+
export * from './Heading5';
|
|
10
|
+
export * from './Heading6';
|
|
11
|
+
export * from './Label';
|
|
12
|
+
export * from './LeadParagraph';
|
|
13
|
+
export * from './Link';
|
|
14
|
+
export * from './ListItem';
|
|
15
|
+
export * from './NumberedList';
|
|
16
|
+
export * from './Paragraph';
|
|
17
|
+
export * from './PreformattedText';
|
|
18
|
+
export * from './SmallText';
|
|
19
|
+
export * from './StrongText';
|
|
20
|
+
export * from './SubLabel';
|
|
21
|
+
export * from './SubParagraph';
|
|
22
|
+
export * from './UnorderedList';
|
|
23
|
+
export * from './beta/Text';
|
|
24
|
+
export * from './beta/Heading';
|
|
25
|
+
export * from './beta/BlockquoteBeta';
|
|
26
|
+
export * from './beta/LinkBeta';
|