@entur/typography 1.6.9 → 1.6.12

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/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.6.12](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.11...@entur/typography@1.6.12) (2022-04-27)
7
+
8
+ **Note:** Version bump only for package @entur/typography
9
+
10
+ ## [1.6.11](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.10...@entur/typography@1.6.11) (2022-02-09)
11
+
12
+ **Note:** Version bump only for package @entur/typography
13
+
14
+ ## [1.6.10](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.9...@entur/typography@1.6.10) (2021-11-17)
15
+
16
+ **Note:** Version bump only for package @entur/typography
17
+
6
18
  ## [1.6.9](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.8...@entur/typography@1.6.9) (2021-09-23)
7
19
 
8
20
  **Note:** Version bump only for package @entur/typography
@@ -14,7 +14,5 @@ declare type BaseHeadingOwnProps = {
14
14
  };
15
15
  declare const defaultElement = "h1";
16
16
  export declare type BaseHeadingProps<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<BaseHeadingOwnProps, T>;
17
- export declare const BaseHeading: <E extends React.ElementType<any> = "h1">({ className, level, margin, as, ...rest }: Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "as" | "className" | "children" | "margin" | "level">> & BaseHeadingOwnProps & {
18
- as?: E | undefined;
19
- }) => JSX.Element;
17
+ export declare const BaseHeading: <E extends React.ElementType<any> = "h1">({ className, level, margin, as, ...rest }: BaseHeadingProps<E>) => JSX.Element;
20
18
  export {};
@@ -12,7 +12,5 @@ export declare type CodeTextOwnProps = {
12
12
  };
13
13
  export declare type CodeTextProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<CodeTextOwnProps, E>;
14
14
  declare const defaultElement = "code";
15
- export declare const CodeText: <E extends React.ElementType<any> = "code">({ className, as, ...rest }: Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "as" | "className" | "children">> & CodeTextOwnProps & {
16
- as?: E | undefined;
17
- }) => JSX.Element;
15
+ export declare const CodeText: <E extends React.ElementType<any> = "code">({ className, as, ...rest }: CodeTextProps<E>) => JSX.Element;
18
16
  export {};
@@ -16,7 +16,5 @@ export declare type EmphasizedTextOwnProps = {
16
16
  };
17
17
  export declare type EmphasizedTextProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<EmphasizedTextOwnProps, E>;
18
18
  declare const defaultElement = "em";
19
- export declare const EmphasizedText: <E extends React.ElementType<any> = "em">({ className, margin, as, ...rest }: Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "as" | "className" | "children" | "margin">> & EmphasizedTextOwnProps & {
20
- as?: E | undefined;
21
- }) => JSX.Element;
19
+ export declare const EmphasizedText: <E extends React.ElementType<any> = "em">({ className, margin, as, ...rest }: EmphasizedTextProps<E>) => JSX.Element;
22
20
  export {};
@@ -16,7 +16,5 @@ export declare type Heading1OwnProps = {
16
16
  };
17
17
  declare const defaultElement = "h1";
18
18
  export declare type Heading1Props<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<Heading1OwnProps, T>;
19
- export declare const Heading1: <E extends React.ElementType<any> = "h1">({ margin, children, as, ...rest }: Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "as" | "className" | "children" | "margin">> & Heading1OwnProps & {
20
- as?: E | undefined;
21
- }) => JSX.Element;
19
+ export declare const Heading1: <E extends React.ElementType<any> = "h1">({ margin, children, as, ...rest }: Heading1Props<E>) => JSX.Element;
22
20
  export {};
@@ -16,7 +16,5 @@ export declare type Heading2OwnProps = {
16
16
  };
17
17
  export declare type Heading2Props<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<Heading2OwnProps, T>;
18
18
  declare const defaultElement = "h2";
19
- export declare const Heading2: <E extends React.ElementType<any> = "h2">({ margin, children, as, ...rest }: Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "as" | "className" | "children" | "margin">> & Heading2OwnProps & {
20
- as?: E | undefined;
21
- }) => JSX.Element;
19
+ export declare const Heading2: <E extends React.ElementType<any> = "h2">({ margin, children, as, ...rest }: Heading2Props<E>) => JSX.Element;
22
20
  export {};
@@ -16,7 +16,5 @@ export declare type Heading3OwnProps = {
16
16
  };
17
17
  export declare type Heading3Props<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<Heading3OwnProps, T>;
18
18
  declare const defaultElement = "h3";
19
- export declare const Heading3: <E extends React.ElementType<any> = "h3">({ margin, children, as, ...rest }: Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "as" | "className" | "children" | "margin">> & Heading3OwnProps & {
20
- as?: E | undefined;
21
- }) => JSX.Element;
19
+ export declare const Heading3: <E extends React.ElementType<any> = "h3">({ margin, children, as, ...rest }: Heading3Props<E>) => JSX.Element;
22
20
  export {};
@@ -16,7 +16,5 @@ export declare type Heading4OwnProps = {
16
16
  };
17
17
  export declare type Heading4Props<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<Heading4OwnProps, T>;
18
18
  declare const defaultElement = "h4";
19
- export declare const Heading4: <E extends React.ElementType<any> = "h4">({ margin, children, as, ...rest }: Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "as" | "className" | "children" | "margin">> & Heading4OwnProps & {
20
- as?: E | undefined;
21
- }) => JSX.Element;
19
+ export declare const Heading4: <E extends React.ElementType<any> = "h4">({ margin, children, as, ...rest }: Heading4Props<E>) => JSX.Element;
22
20
  export {};
@@ -16,7 +16,5 @@ export declare type Heading5OwnProps = {
16
16
  };
17
17
  export declare type Heading5Props<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<Heading5OwnProps, T>;
18
18
  declare const defaultElement = "h5";
19
- export declare const Heading5: <E extends React.ElementType<any> = "h5">({ margin, children, as, ...rest }: Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "as" | "className" | "children" | "margin">> & Heading5OwnProps & {
20
- as?: E | undefined;
21
- }) => JSX.Element;
19
+ export declare const Heading5: <E extends React.ElementType<any> = "h5">({ margin, children, as, ...rest }: Heading5Props<E>) => JSX.Element;
22
20
  export {};
@@ -16,7 +16,5 @@ export declare type Heading6OwnProps = {
16
16
  };
17
17
  export declare type Heading6Props<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<Heading6OwnProps, T>;
18
18
  declare const defaultElement = "h6";
19
- export declare const Heading6: <E extends React.ElementType<any> = "h6">({ margin, children, as, ...rest }: Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "as" | "className" | "children" | "margin">> & Heading6OwnProps & {
20
- as?: E | undefined;
21
- }) => JSX.Element;
19
+ export declare const Heading6: <E extends React.ElementType<any> = "h6">({ margin, children, as, ...rest }: Heading6Props<E>) => JSX.Element;
22
20
  export {};
package/dist/Label.d.ts CHANGED
@@ -16,7 +16,5 @@ export declare type LabelOwnProps = {
16
16
  };
17
17
  export declare type LabelProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<LabelOwnProps, E>;
18
18
  declare const defaultElement = "label";
19
- export declare const Label: <E extends React.ElementType<any> = "label">({ className, margin, as, ...rest }: Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "as" | "className" | "children" | "margin">> & LabelOwnProps & {
20
- as?: E | undefined;
21
- }) => JSX.Element;
19
+ export declare const Label: <E extends React.ElementType<any> = "label">({ className, margin, as, ...rest }: LabelProps<E>) => JSX.Element;
22
20
  export {};
@@ -16,7 +16,5 @@ export declare type LeadParagraphOwnProps = {
16
16
  };
17
17
  export declare type LeadParagraphProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<LeadParagraphOwnProps, E>;
18
18
  declare const defaultElement = "p";
19
- export declare const LeadParagraph: <E extends React.ElementType<any> = "p">({ className, margin, as, ...rest }: Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "as" | "className" | "children" | "margin">> & LeadParagraphOwnProps & {
20
- as?: E | undefined;
21
- }) => JSX.Element;
19
+ export declare const LeadParagraph: <E extends React.ElementType<any> = "p">({ className, margin, as, ...rest }: LeadParagraphProps<E>) => JSX.Element;
22
20
  export {};
package/dist/Link.d.ts CHANGED
@@ -16,7 +16,5 @@ export declare type LinkOwnProps = {
16
16
  };
17
17
  export declare type LinkProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<LinkOwnProps, E>;
18
18
  declare const defaultElement = "a";
19
- export declare const Link: <E extends React.ElementType<any> = "a">({ className, margin, as, ...rest }: Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "as" | "className" | "children" | "margin">> & LinkOwnProps & {
20
- as?: E | undefined;
21
- }) => JSX.Element;
19
+ export declare const Link: <E extends React.ElementType<any> = "a">({ className, margin, as, ...rest }: LinkProps<E>) => JSX.Element;
22
20
  export {};
@@ -16,7 +16,5 @@ export declare type ParagraphOwnProps = {
16
16
  };
17
17
  export declare type ParagraphProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<ParagraphOwnProps, E>;
18
18
  declare const defaultElement = "p";
19
- export declare const Paragraph: <E extends React.ElementType<any> = "p">({ margin, className, as, ...rest }: Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "as" | "className" | "children" | "margin">> & ParagraphOwnProps & {
20
- as?: E | undefined;
21
- }) => JSX.Element;
19
+ export declare const Paragraph: <E extends React.ElementType<any> = "p">({ margin, className, as, ...rest }: ParagraphProps<E>) => JSX.Element;
22
20
  export {};
@@ -11,6 +11,4 @@ export declare type PreformattedTextOwnProps = {
11
11
  children: React.ReactNode;
12
12
  };
13
13
  export declare type PreformattedTextProps<E extends React.ElementType> = PolymorphicPropsWithoutRef<PreformattedTextOwnProps, E>;
14
- export declare const PreformattedText: <E extends React.ElementType<any> = "pre">({ className, as, ...rest }: Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "as" | "className" | "children">> & PreformattedTextOwnProps & {
15
- as?: E | undefined;
16
- }) => JSX.Element;
14
+ export declare const PreformattedText: <E extends React.ElementType<any> = "pre">({ className, as, ...rest }: PreformattedTextProps<E>) => JSX.Element;
@@ -16,7 +16,5 @@ export declare type SmallTextOwnProps = {
16
16
  };
17
17
  export declare type SmallTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<SmallTextOwnProps, T>;
18
18
  declare const defaultElement = "span";
19
- export declare const SmallText: <E extends React.ElementType<any> = "span">({ className, margin, as, ...rest }: Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "as" | "className" | "children" | "margin">> & SmallTextOwnProps & {
20
- as?: E | undefined;
21
- }) => JSX.Element;
19
+ export declare const SmallText: <E extends React.ElementType<any> = "span">({ className, margin, as, ...rest }: SmallTextProps<E>) => JSX.Element;
22
20
  export {};
@@ -16,7 +16,5 @@ export declare type StrongTextOwnProps = {
16
16
  };
17
17
  export declare type StrongTextProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<StrongTextOwnProps, E>;
18
18
  declare const defaultElement = "strong";
19
- export declare const StrongText: <E extends React.ElementType<any> = "strong">({ className, margin, as, ...rest }: Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "as" | "className" | "children" | "margin">> & StrongTextOwnProps & {
20
- as?: E | undefined;
21
- }) => JSX.Element;
19
+ export declare const StrongText: <E extends React.ElementType<any> = "strong">({ className, margin, as, ...rest }: StrongTextProps<E>) => JSX.Element;
22
20
  export {};
@@ -16,7 +16,5 @@ export declare type SubLabelOwnProps = {
16
16
  };
17
17
  export declare type SubLabelProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<SubLabelOwnProps, E>;
18
18
  declare const defaultElement = "span";
19
- export declare const SubLabel: <E extends React.ElementType<any> = "span">({ className, margin, as, ...rest }: Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "as" | "className" | "children" | "margin">> & SubLabelOwnProps & {
20
- as?: E | undefined;
21
- }) => JSX.Element;
19
+ export declare const SubLabel: <E extends React.ElementType<any> = "span">({ className, margin, as, ...rest }: SubLabelProps<E>) => JSX.Element;
22
20
  export {};
@@ -16,7 +16,5 @@ export declare type SubParagraphOwnProps = {
16
16
  };
17
17
  export declare type SubParagraphProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<SubParagraphOwnProps, E>;
18
18
  declare const defaultElement = "p";
19
- export declare const SubParagraph: <E extends React.ElementType<any> = "p">({ className, margin, as, ...rest }: Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "as" | "className" | "children" | "margin">> & SubParagraphOwnProps & {
20
- as?: E | undefined;
21
- }) => JSX.Element;
19
+ export declare const SubParagraph: <E extends React.ElementType<any> = "p">({ className, margin, as, ...rest }: SubParagraphProps<E>) => JSX.Element;
22
20
  export {};
package/dist/styles.css CHANGED
@@ -76,11 +76,16 @@
76
76
  "Helvetica Neue", sans-serif;
77
77
  }
78
78
  html {
79
+ background-color: #ffffff;
79
80
  background-color: #ffffff;
80
81
  background-color: var(--primary-background-color);
81
82
  box-sizing: border-box;
82
83
  color: #181c56;
84
+ color: #181c56;
83
85
  color: var(--primary-text-color);
86
+ font-family: "Nationale", Arial, "Gotham Rounded", -apple-system,
87
+ BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
88
+ "Helvetica Neue", sans-serif;
84
89
  font-family: var(--eds-font-family);
85
90
  font-weight: 500;
86
91
  font-size: 1rem;
@@ -107,6 +112,7 @@ html {
107
112
  .eds-h5,
108
113
  .eds-h6 {
109
114
  color: inherit;
115
+ color: #181c56;
110
116
  color: var(--primary-text-color);
111
117
  font-weight: 600;
112
118
  -webkit-font-smoothing: antialiased;
@@ -186,6 +192,7 @@ html {
186
192
 
187
193
  .eds-paragraph {
188
194
  color: inherit;
195
+ color: #181c56;
189
196
  color: var(--primary-text-color);
190
197
  font-size: 1rem;
191
198
  line-height: 1.5rem;
@@ -253,6 +260,7 @@ html {
253
260
 
254
261
  .eds-lead-paragraph {
255
262
  color: inherit;
263
+ color: #181c56;
256
264
  color: var(--primary-text-color);
257
265
  font-size: 1.25rem;
258
266
  line-height: 1.875rem;
@@ -267,6 +275,7 @@ html {
267
275
 
268
276
  .eds-sub-paragraph {
269
277
  color: inherit;
278
+ color: #181c56;
270
279
  color: var(--primary-text-color);
271
280
  font-size: 0.875rem;
272
281
  line-height: 1.25rem;
@@ -279,6 +288,7 @@ html {
279
288
 
280
289
  .eds-small-text {
281
290
  color: inherit;
291
+ color: #181c56;
282
292
  color: var(--primary-text-color);
283
293
  font-size: 0.625rem;
284
294
  line-height: 1rem;
@@ -292,6 +302,7 @@ html {
292
302
 
293
303
  .eds-link, .eds-link:link, .eds-link:visited {
294
304
  color: inherit;
305
+ color: #181c56;
295
306
  color: var(--primary-text-color);
296
307
  font-size: inherit;
297
308
  text-decoration: none;
@@ -302,11 +313,20 @@ html {
302
313
  background-position: 0 100%;
303
314
  }
304
315
  .eds-link:hover {
305
- animation: eds-link-underline 0.3s ease-in;
316
+ -webkit-animation: eds-link-underline 0.3s ease-in;
317
+ animation: eds-link-underline 0.3s ease-in;
306
318
  }
307
319
  .eds-contrast .eds-link {
308
320
  background-image: linear-gradient(120deg, #ffffff 0%, #ffffff 100%);
309
321
  }
322
+ @-webkit-keyframes eds-link-underline {
323
+ from {
324
+ background-size: 0% 0.125rem;
325
+ }
326
+ to {
327
+ background-size: 100% 0.125rem;
328
+ }
329
+ }
310
330
  @keyframes eds-link-underline {
311
331
  from {
312
332
  background-size: 0% 0.125rem;
@@ -332,6 +352,7 @@ html {
332
352
 
333
353
  .eds-label,
334
354
  .eds-sub-label {
355
+ color: #656782;
335
356
  color: #656782;
336
357
  color: var(--primary-label-color);
337
358
  }
@@ -436,6 +457,7 @@ html {
436
457
  }
437
458
  .eds-numbered-list > .eds-list-item::before {
438
459
  color: inherit;
460
+ color: #181c56;
439
461
  color: var(--primary-text-color);
440
462
  position: absolute;
441
463
  font-weight: 600;
@@ -476,6 +498,15 @@ html {
476
498
  text-transform: uppercase;
477
499
  }
478
500
 
501
+ @-webkit-keyframes lineExpand {
502
+ 0% {
503
+ width: 0;
504
+ }
505
+ 100% {
506
+ width: 100%;
507
+ }
508
+ }
509
+
479
510
  @keyframes lineExpand {
480
511
  0% {
481
512
  width: 0;