Socket
Socket
Sign inDemoInstall

@entur/typography

Package Overview
Dependencies
Maintainers
13
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@entur/typography - npm Package Compare versions

Comparing version 1.7.3 to 1.7.4

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

## [1.7.4](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.7.3...@entur/typography@1.7.4) (2023-01-19)
### Performance Improvements
- **packages:** remove all referenves to react-polymorphic-types npm-package ([e47a304](https://bitbucket.org/enturas/design-system/commits/e47a304d87eb77adae5dd002e89f03026c7eadce))
## [1.7.3](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.7.0...@entur/typography@1.7.3) (2022-12-09)

@@ -8,0 +14,0 @@

4

dist/BaseHeading.d.ts
import React from 'react';
import { PolymorphicPropsWithoutRef } from '@entur/utils';
import { PolymorphicComponentProps } from '@entur/utils';
declare type BaseHeadingOwnProps = {

@@ -16,4 +16,4 @@ /** HTML-elementet eller React-komponenten som rendres */

declare const defaultElement = "h1";
export declare type BaseHeadingProps<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<BaseHeadingOwnProps, T>;
export declare type BaseHeadingProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, BaseHeadingOwnProps>;
export declare const BaseHeading: <E extends React.ElementType<any> = "h1">({ className, level, margin, as, ...rest }: BaseHeadingProps<E>) => JSX.Element;
export {};
import React from 'react';
import { PolymorphicPropsWithoutRef } from '@entur/utils';
import { PolymorphicComponentProps } from '@entur/utils';
export declare type CodeTextOwnProps = {

@@ -13,5 +13,5 @@ /** HTML-elementet eller React-komponenten som rendres

};
export declare type CodeTextProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<CodeTextOwnProps, E>;
export declare type CodeTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, CodeTextOwnProps>;
declare const defaultElement = "code";
export declare const CodeText: <E extends React.ElementType<any> = "code">({ className, as, ...rest }: CodeTextProps<E>) => JSX.Element;
export {};
import React from 'react';
import { PolymorphicPropsWithoutRef } from '@entur/utils';
import { PolymorphicComponentProps } from '@entur/utils';
export declare type EmphasizedTextOwnProps = {

@@ -17,5 +17,5 @@ /** HTML-elementet eller React-komponenten som rendres

};
export declare type EmphasizedTextProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<EmphasizedTextOwnProps, E>;
export declare type EmphasizedTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, EmphasizedTextOwnProps>;
declare const defaultElement = "em";
export declare const EmphasizedText: <E extends React.ElementType<any> = "em">({ className, margin, as, ...rest }: EmphasizedTextProps<E>) => JSX.Element;
export {};
import React from 'react';
import { PolymorphicPropsWithoutRef } from '@entur/utils';
import { PolymorphicComponentProps } from '@entur/utils';
export declare type Heading1OwnProps = {

@@ -18,4 +18,4 @@ /** HTML-elementet eller React-komponenten som rendres

declare const defaultElement = "h1";
export declare type Heading1Props<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<Heading1OwnProps, T>;
export declare type Heading1Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading1OwnProps>;
export declare const Heading1: <E extends React.ElementType<any> = "h1">({ margin, children, as, ...rest }: Heading1Props<E>) => JSX.Element;
export {};
import React from 'react';
import { PolymorphicPropsWithoutRef } from '@entur/utils';
import { PolymorphicComponentProps } from '@entur/utils';
export declare type Heading2OwnProps = {

@@ -17,5 +17,5 @@ /** HTML-elementet eller React-komponenten som rendres

};
export declare type Heading2Props<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<Heading2OwnProps, T>;
export declare type Heading2Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading2OwnProps>;
declare const defaultElement = "h2";
export declare const Heading2: <E extends React.ElementType<any> = "h2">({ margin, children, as, ...rest }: Heading2Props<E>) => JSX.Element;
export {};
import React from 'react';
import { PolymorphicPropsWithoutRef } from '@entur/utils';
import { PolymorphicComponentProps } from '@entur/utils';
export declare type Heading3OwnProps = {

@@ -17,5 +17,5 @@ /** HTML-elementet eller React-komponenten som rendres

};
export declare type Heading3Props<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<Heading3OwnProps, T>;
export declare type Heading3Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading3OwnProps>;
declare const defaultElement = "h3";
export declare const Heading3: <E extends React.ElementType<any> = "h3">({ margin, children, as, ...rest }: Heading3Props<E>) => JSX.Element;
export {};
import React from 'react';
import { PolymorphicPropsWithoutRef } from '@entur/utils';
import { PolymorphicComponentProps } from '@entur/utils';
export declare type Heading4OwnProps = {

@@ -17,5 +17,5 @@ /** HTML-elementet eller React-komponenten som rendres

};
export declare type Heading4Props<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<Heading4OwnProps, T>;
export declare type Heading4Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading4OwnProps>;
declare const defaultElement = "h4";
export declare const Heading4: <E extends React.ElementType<any> = "h4">({ margin, children, as, ...rest }: Heading4Props<E>) => JSX.Element;
export {};
import React from 'react';
import { PolymorphicPropsWithoutRef } from '@entur/utils';
import { PolymorphicComponentProps } from '@entur/utils';
export declare type Heading5OwnProps = {

@@ -17,5 +17,5 @@ /** HTML-elementet eller React-komponenten som rendres

};
export declare type Heading5Props<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<Heading5OwnProps, T>;
export declare type Heading5Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading5OwnProps>;
declare const defaultElement = "h5";
export declare const Heading5: <E extends React.ElementType<any> = "h5">({ margin, children, as, ...rest }: Heading5Props<E>) => JSX.Element;
export {};
import React from 'react';
import { PolymorphicPropsWithoutRef } from '@entur/utils';
import { PolymorphicComponentProps } from '@entur/utils';
export declare type Heading6OwnProps = {

@@ -17,5 +17,5 @@ /** HTML-elementet eller React-komponenten som rendres

};
export declare type Heading6Props<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<Heading6OwnProps, T>;
export declare type Heading6Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading6OwnProps>;
declare const defaultElement = "h6";
export declare const Heading6: <E extends React.ElementType<any> = "h6">({ margin, children, as, ...rest }: Heading6Props<E>) => JSX.Element;
export {};
import React from 'react';
import { PolymorphicPropsWithoutRef } from '@entur/utils';
import { PolymorphicComponentProps } from '@entur/utils';
export declare type LabelOwnProps = {

@@ -17,5 +17,5 @@ /** HTML-elementet eller React-komponenten som rendres

};
export declare type LabelProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<LabelOwnProps, E>;
export declare type LabelProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, LabelOwnProps>;
declare const defaultElement = "label";
export declare const Label: <E extends React.ElementType<any> = "label">({ className, margin, as, ...rest }: LabelProps<E>) => JSX.Element;
export {};
import React from 'react';
import { PolymorphicPropsWithoutRef } from '@entur/utils';
import { PolymorphicComponentProps } from '@entur/utils';
export declare type LeadParagraphOwnProps = {

@@ -17,5 +17,5 @@ /** HTML-elementet eller React-komponenten som rendres

};
export declare type LeadParagraphProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<LeadParagraphOwnProps, E>;
export declare type LeadParagraphProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, LeadParagraphOwnProps>;
declare const defaultElement = "p";
export declare const LeadParagraph: <E extends React.ElementType<any> = "p">({ className, margin, as, ...rest }: LeadParagraphProps<E>) => JSX.Element;
export {};
import React from 'react';
import { PolymorphicPropsWithoutRef } from '@entur/utils';
import { PolymorphicComponentProps } from '@entur/utils';
export declare type LinkOwnProps = {

@@ -17,5 +17,5 @@ /** HTML-elementet eller React-komponenten som rendres

};
export declare type LinkProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<LinkOwnProps, E>;
export declare type LinkProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, LinkOwnProps>;
declare const defaultElement = "a";
export declare const Link: <E extends React.ElementType<any> = "a">({ className, margin, as, ...rest }: LinkProps<E>) => JSX.Element;
export {};
import React from 'react';
import { PolymorphicPropsWithoutRef } from '@entur/utils';
import { PolymorphicComponentProps } from '@entur/utils';
export declare type ParagraphOwnProps = {

@@ -17,5 +17,5 @@ /** HTML-elementet eller React-komponenten som rendres

};
export declare type ParagraphProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<ParagraphOwnProps, E>;
export declare type ParagraphProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, ParagraphOwnProps>;
declare const defaultElement = "p";
export declare const Paragraph: <E extends React.ElementType<any> = "p">({ margin, className, as, ...rest }: ParagraphProps<E>) => JSX.Element;
export {};
import React from 'react';
import { PolymorphicPropsWithoutRef } from '@entur/utils';
import { PolymorphicComponentProps } from '@entur/utils';
export declare type PreformattedTextOwnProps = {

@@ -13,3 +13,3 @@ /** HTML-elementet eller React-komponenten som rendres

};
export declare type PreformattedTextProps<E extends React.ElementType> = PolymorphicPropsWithoutRef<PreformattedTextOwnProps, E>;
export declare type PreformattedTextProps<T extends React.ElementType> = PolymorphicComponentProps<T, PreformattedTextOwnProps>;
export declare const PreformattedText: <E extends React.ElementType<any> = "pre">({ className, as, ...rest }: PreformattedTextProps<E>) => JSX.Element;
import React from 'react';
import { PolymorphicPropsWithoutRef } from '@entur/utils';
import { PolymorphicComponentProps } from '@entur/utils';
export declare type SmallTextOwnProps = {

@@ -17,5 +17,5 @@ /** HTML-elementet eller React-komponenten som rendres

};
export declare type SmallTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<SmallTextOwnProps, T>;
export declare type SmallTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, SmallTextOwnProps>;
declare const defaultElement = "span";
export declare const SmallText: <E extends React.ElementType<any> = "span">({ className, margin, as, ...rest }: SmallTextProps<E>) => JSX.Element;
export {};
import React from 'react';
import { PolymorphicPropsWithoutRef } from '@entur/utils';
import { PolymorphicComponentProps } from '@entur/utils';
export declare type StrongTextOwnProps = {

@@ -17,5 +17,5 @@ /** HTML-elementet eller React-komponenten som rendres

};
export declare type StrongTextProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<StrongTextOwnProps, E>;
export declare type StrongTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, StrongTextOwnProps>;
declare const defaultElement = "strong";
export declare const StrongText: <E extends React.ElementType<any> = "strong">({ className, margin, as, ...rest }: StrongTextProps<E>) => JSX.Element;
export {};
import React from 'react';
import { PolymorphicPropsWithoutRef } from '@entur/utils';
import { PolymorphicComponentProps } from '@entur/utils';
export declare type SubLabelOwnProps = {

@@ -17,5 +17,5 @@ /** HTML-elementet eller React-komponenten som rendres

};
export declare type SubLabelProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<SubLabelOwnProps, E>;
export declare type SubLabelProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, SubLabelOwnProps>;
declare const defaultElement = "span";
export declare const SubLabel: <E extends React.ElementType<any> = "span">({ className, margin, as, ...rest }: SubLabelProps<E>) => JSX.Element;
export {};
import React from 'react';
import { PolymorphicPropsWithoutRef } from '@entur/utils';
import { PolymorphicComponentProps } from '@entur/utils';
export declare type SubParagraphOwnProps = {

@@ -17,5 +17,5 @@ /** HTML-elementet eller React-komponenten som rendres

};
export declare type SubParagraphProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<SubParagraphOwnProps, E>;
export declare type SubParagraphProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, SubParagraphOwnProps>;
declare const defaultElement = "p";
export declare const SubParagraph: <E extends React.ElementType<any> = "p">({ className, margin, as, ...rest }: SubParagraphProps<E>) => JSX.Element;
export {};
{
"name": "@entur/typography",
"version": "1.7.3",
"version": "1.7.4",
"license": "SEE LICENSE IN README.md",

@@ -21,3 +21,3 @@ "main": "dist/index.js",

"build": "dts build && cp -r fonts dist/fonts",
"test": "dts test --env=jsdom",
"test": "dts test",
"lint": "dts lint",

@@ -31,3 +31,3 @@ "start": "dts watch --noClean"

"dependencies": {
"@entur/utils": "^0.4.8",
"@entur/utils": "^0.4.9",
"classnames": "^2.3.1",

@@ -37,5 +37,5 @@ "normalize-scss": "^7.0.1"

"devDependencies": {
"@entur/tokens": "^3.4.3"
"@entur/tokens": "^3.4.4"
},
"gitHead": "103844c30bdc32296f3998a360cf6066492173e9"
"gitHead": "de71e205560a699e2dce301e133966dc9348c459"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc