Socket
Socket
Sign inDemoInstall

@entur/typography

Package Overview
Dependencies
Maintainers
12
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 0.4.3 to 0.4.4

8

CHANGELOG.md

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

## [0.4.4](https://bitbucket.org/enturas/design-system/compare/@entur/typography@0.4.3...@entur/typography@0.4.4) (2019-11-14)
### Bug Fixes
- fix lint errors ([8539282](https://bitbucket.org/enturas/design-system/commits/8539282c04b01cc1459109cbc9c4111dfcdaa5f4))
- **css classnames:** fixing naming collisions with CSS classes ([a93ca43](https://bitbucket.org/enturas/design-system/commits/a93ca435d3a01d61d8f02694a672686b9e943a66))
- **headings:** skip setting horizontal margins for headings ([a94f54a](https://bitbucket.org/enturas/design-system/commits/a94f54a92a65f2939438c6a8f8be895bd64a99d2))
## [0.4.3](https://bitbucket.org/enturas/design-system/compare/@entur/typography@0.4.2...@entur/typography@0.4.3) (2019-11-07)

@@ -8,0 +16,0 @@

60

dist/index.d.ts

@@ -22,3 +22,3 @@ import React from "react";

declare const EmphasizedText: React.FC<Props_$0>;
declare type Props_$1 = {
declare type Props_$0 = {
/** HTML-elementet eller React-komponenten som rendres */

@@ -32,4 +32,4 @@ as?: string | React.ElementType;

};
declare const Heading1: React.FC<Props_$1>;
declare type Props_$2 = {
declare const Heading1: React.FC<Props_$0>;
declare type Props_$0 = {
/** HTML-elementet eller React-komponenten som rendres */

@@ -43,4 +43,4 @@ as?: string | React.ElementType;

};
declare const Heading2: React.FC<Props_$2>;
declare type Props_$3 = {
declare const Heading2: React.FC<Props_$0>;
declare type Props_$0 = {
/** HTML-elementet eller React-komponenten som rendres */

@@ -54,4 +54,4 @@ as?: string | React.ElementType;

};
declare const Heading3: React.FC<Props_$3>;
declare type Props_$4 = {
declare const Heading3: React.FC<Props_$0>;
declare type Props_$0 = {
/** HTML-elementet eller React-komponenten som rendres */

@@ -65,4 +65,4 @@ as?: string | React.ElementType;

};
declare const Heading4: React.FC<Props_$4>;
declare type Props_$5 = {
declare const Heading4: React.FC<Props_$0>;
declare type Props_$0 = {
/** HTML-elementet eller React-komponenten som rendres */

@@ -76,4 +76,4 @@ as?: string | React.ElementType;

};
declare const Heading5: React.FC<Props_$5>;
declare type Props_$6 = {
declare const Heading5: React.FC<Props_$0>;
declare type Props_$0 = {
/** HTML-elementet eller React-komponenten som rendres */

@@ -87,4 +87,4 @@ as?: string | React.ElementType;

};
declare const Heading6: React.FC<Props_$6>;
declare type Props_$7 = {
declare const Heading6: React.FC<Props_$0>;
declare type Props_$0 = {
/** HTML-elementet eller React-komponenten som rendres */

@@ -98,4 +98,4 @@ as?: string | React.ElementType;

};
declare const Label: React.FC<Props_$7>;
declare type Props_$8 = {
declare const Label: React.FC<Props_$0>;
declare type Props_$0 = {
/** HTML-elementet eller React-komponenten som rendres */

@@ -109,4 +109,4 @@ as?: string | React.ElementType;

};
declare const LeadParagraph: React.FC<Props_$8>;
declare type Props_$9 = {
declare const LeadParagraph: React.FC<Props_$0>;
declare type Props_$0 = {
/** HTML-elementet eller React-komponenten som rendres */

@@ -120,4 +120,4 @@ as?: string | React.ElementType;

};
declare const Link: React.FC<Props_$9>;
declare type Props_$10 = {
declare const Link: React.FC<Props_$0>;
declare type Props_$0 = {
/** HTML-elementet eller React-komponenten som rendres */

@@ -131,4 +131,4 @@ as?: string | React.ElementType;

};
declare const Paragraph: React.FC<Props_$10>;
declare type Props_$11 = {
declare const Paragraph: React.FC<Props_$0>;
declare type Props_$0 = {
/** HTML-elementet eller React-komponenten som rendres */

@@ -142,4 +142,4 @@ as?: string | React.ElementType;

};
declare const PreformattedText: React.FC<Props_$11>;
declare type Props_$12 = {
declare const PreformattedText: React.FC<Props_$0>;
declare type Props_$0 = {
/** HTML-elementet eller React-komponenten som rendres */

@@ -153,4 +153,4 @@ as?: string | React.ElementType;

};
declare const SmallText: React.FC<Props_$12>;
declare type Props_$13 = {
declare const SmallText: React.FC<Props_$0>;
declare type Props_$0 = {
/** HTML-elementet eller React-komponenten som rendres */

@@ -164,4 +164,4 @@ as?: string | React.ElementType;

};
declare const StrongText: React.FC<Props_$13>;
declare type Props_$14 = {
declare const StrongText: React.FC<Props_$0>;
declare type Props_$0 = {
/** HTML-elementet eller React-komponenten som rendres */

@@ -175,4 +175,4 @@ as?: string | React.ElementType;

};
declare const SubLabel: React.FC<Props_$14>;
declare type Props_$15 = {
declare const SubLabel: React.FC<Props_$0>;
declare type Props_$0 = {
/** HTML-elementet eller React-komponenten som rendres */

@@ -186,3 +186,3 @@ as?: string | React.ElementType;

};
declare const SubParagraph: React.FC<Props_$15>;
declare const SubParagraph: React.FC<Props_$0>;
export { CodeText, EmphasizedText, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, Label, LeadParagraph, Link, Paragraph, PreformattedText, SmallText, StrongText, SubLabel, SubParagraph };

@@ -5,20 +5,6 @@ 'use strict';

var _objectWithoutProperties = _interopDefault(require('@babel/runtime/helpers/objectWithoutProperties'));
var React = _interopDefault(require('react'));
var classNames = _interopDefault(require('classnames'));
function _objectWithoutPropertiesLoose(source, excluded) {
if (source == null) return {};
var target = {};
var sourceKeys = Object.keys(source);
var key, i;
for (i = 0; i < sourceKeys.length; i++) {
key = sourceKeys[i];
if (excluded.indexOf(key) >= 0) continue;
target[key] = source[key];
}
return target;
}
var CodeText = function CodeText(_ref) {

@@ -28,6 +14,6 @@ var _ref$as = _ref.as,

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-code-text', className)
className: classNames('eds-code-text', className)
}, rest));

@@ -40,6 +26,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-emphasized-text', className)
className: classNames('eds-emphasized-text', className)
}, rest));

@@ -52,6 +38,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-h1', className)
className: classNames('eds-h1', className)
}, rest));

@@ -64,6 +50,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-h2', className)
className: classNames('eds-h2', className)
}, rest));

@@ -76,6 +62,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-h3', className)
className: classNames('eds-h3', className)
}, rest));

@@ -88,6 +74,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-h4', className)
className: classNames('eds-h4', className)
}, rest));

@@ -100,6 +86,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-h5', className)
className: classNames('eds-h5', className)
}, rest));

@@ -112,6 +98,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-h6', className)
className: classNames('eds-h6', className)
}, rest));

@@ -124,6 +110,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-label', className)
className: classNames('eds-label', className)
}, rest));

@@ -136,6 +122,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-lead-paragraph', className)
className: classNames('eds-lead-paragraph', className)
}, rest));

@@ -148,6 +134,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-link', className)
className: classNames('eds-link', className)
}, rest));

@@ -160,6 +146,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-paragraph', className)
className: classNames('eds-paragraph', className)
}, rest));

@@ -172,6 +158,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-preformatted-text', className)
className: classNames('eds-preformatted-text', className)
}, rest));

@@ -184,6 +170,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-small-text', className)
className: classNames('eds-small-text', className)
}, rest));

@@ -196,6 +182,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-strong-text', className)
className: classNames('eds-strong-text', className)
}, rest));

@@ -208,6 +194,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-sub-label', className)
className: classNames('eds-sub-label', className)
}, rest));

@@ -220,6 +206,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-sub-paragraph', className)
className: classNames('eds-sub-paragraph', className)
}, rest));

@@ -226,0 +212,0 @@ };

@@ -1,2 +0,2 @@

"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var a=e(require("react")),s=e(require("classnames"));function t(e,a){if(null==e)return{};var s,t,r={},n=Object.keys(e);for(t=0;t<n.length;t++)a.indexOf(s=n[t])>=0||(r[s]=e[s]);return r}exports.CodeText=function(e){var r=e.as,n=void 0===r?"code":r,c=e.className,l=t(e,["as","className"]);return a.createElement(n,Object.assign({className:s("entur-code-text",c)},l))},exports.EmphasizedText=function(e){var r=e.as,n=void 0===r?"em":r,c=e.className,l=t(e,["as","className"]);return a.createElement(n,Object.assign({className:s("entur-emphasized-text",c)},l))},exports.Heading1=function(e){var r=e.as,n=void 0===r?"h1":r,c=e.className,l=t(e,["as","className"]);return a.createElement(n,Object.assign({className:s("entur-h1",c)},l))},exports.Heading2=function(e){var r=e.as,n=void 0===r?"h2":r,c=e.className,l=t(e,["as","className"]);return a.createElement(n,Object.assign({className:s("entur-h2",c)},l))},exports.Heading3=function(e){var r=e.as,n=void 0===r?"h3":r,c=e.className,l=t(e,["as","className"]);return a.createElement(n,Object.assign({className:s("entur-h3",c)},l))},exports.Heading4=function(e){var r=e.as,n=void 0===r?"h4":r,c=e.className,l=t(e,["as","className"]);return a.createElement(n,Object.assign({className:s("entur-h4",c)},l))},exports.Heading5=function(e){var r=e.as,n=void 0===r?"h5":r,c=e.className,l=t(e,["as","className"]);return a.createElement(n,Object.assign({className:s("entur-h5",c)},l))},exports.Heading6=function(e){var r=e.as,n=void 0===r?"h6":r,c=e.className,l=t(e,["as","className"]);return a.createElement(n,Object.assign({className:s("entur-h6",c)},l))},exports.Label=function(e){var r=e.as,n=void 0===r?"label":r,c=e.className,l=t(e,["as","className"]);return a.createElement(n,Object.assign({className:s("entur-label",c)},l))},exports.LeadParagraph=function(e){var r=e.as,n=void 0===r?"p":r,c=e.className,l=t(e,["as","className"]);return a.createElement(n,Object.assign({className:s("entur-lead-paragraph",c)},l))},exports.Link=function(e){var r=e.as,n=void 0===r?"a":r,c=e.className,l=t(e,["as","className"]);return a.createElement(n,Object.assign({className:s("entur-link",c)},l))},exports.Paragraph=function(e){var r=e.as,n=void 0===r?"p":r,c=e.className,l=t(e,["as","className"]);return a.createElement(n,Object.assign({className:s("entur-paragraph",c)},l))},exports.PreformattedText=function(e){var r=e.as,n=void 0===r?"pre":r,c=e.className,l=t(e,["as","className"]);return a.createElement(n,Object.assign({className:s("entur-preformatted-text",c)},l))},exports.SmallText=function(e){var r=e.as,n=void 0===r?"span":r,c=e.className,l=t(e,["as","className"]);return a.createElement(n,Object.assign({className:s("entur-small-text",c)},l))},exports.StrongText=function(e){var r=e.as,n=void 0===r?"strong":r,c=e.className,l=t(e,["as","className"]);return a.createElement(n,Object.assign({className:s("entur-strong-text",c)},l))},exports.SubLabel=function(e){var r=e.as,n=void 0===r?"span":r,c=e.className,l=t(e,["as","className"]);return a.createElement(n,Object.assign({className:s("entur-sub-label",c)},l))},exports.SubParagraph=function(e){var r=e.as,n=void 0===r?"p":r,c=e.className,l=t(e,["as","className"]);return a.createElement(n,Object.assign({className:s("entur-sub-paragraph",c)},l))};
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var a=e(require("@babel/runtime/helpers/objectWithoutProperties")),s=e(require("react")),t=e(require("classnames"));exports.CodeText=function(e){var r=e.as,c=void 0===r?"code":r,n=e.className,l=a(e,["as","className"]);return s.createElement(c,Object.assign({className:t("eds-code-text",n)},l))},exports.EmphasizedText=function(e){var r=e.as,c=void 0===r?"em":r,n=e.className,l=a(e,["as","className"]);return s.createElement(c,Object.assign({className:t("eds-emphasized-text",n)},l))},exports.Heading1=function(e){var r=e.as,c=void 0===r?"h1":r,n=e.className,l=a(e,["as","className"]);return s.createElement(c,Object.assign({className:t("eds-h1",n)},l))},exports.Heading2=function(e){var r=e.as,c=void 0===r?"h2":r,n=e.className,l=a(e,["as","className"]);return s.createElement(c,Object.assign({className:t("eds-h2",n)},l))},exports.Heading3=function(e){var r=e.as,c=void 0===r?"h3":r,n=e.className,l=a(e,["as","className"]);return s.createElement(c,Object.assign({className:t("eds-h3",n)},l))},exports.Heading4=function(e){var r=e.as,c=void 0===r?"h4":r,n=e.className,l=a(e,["as","className"]);return s.createElement(c,Object.assign({className:t("eds-h4",n)},l))},exports.Heading5=function(e){var r=e.as,c=void 0===r?"h5":r,n=e.className,l=a(e,["as","className"]);return s.createElement(c,Object.assign({className:t("eds-h5",n)},l))},exports.Heading6=function(e){var r=e.as,c=void 0===r?"h6":r,n=e.className,l=a(e,["as","className"]);return s.createElement(c,Object.assign({className:t("eds-h6",n)},l))},exports.Label=function(e){var r=e.as,c=void 0===r?"label":r,n=e.className,l=a(e,["as","className"]);return s.createElement(c,Object.assign({className:t("eds-label",n)},l))},exports.LeadParagraph=function(e){var r=e.as,c=void 0===r?"p":r,n=e.className,l=a(e,["as","className"]);return s.createElement(c,Object.assign({className:t("eds-lead-paragraph",n)},l))},exports.Link=function(e){var r=e.as,c=void 0===r?"a":r,n=e.className,l=a(e,["as","className"]);return s.createElement(c,Object.assign({className:t("eds-link",n)},l))},exports.Paragraph=function(e){var r=e.as,c=void 0===r?"p":r,n=e.className,l=a(e,["as","className"]);return s.createElement(c,Object.assign({className:t("eds-paragraph",n)},l))},exports.PreformattedText=function(e){var r=e.as,c=void 0===r?"pre":r,n=e.className,l=a(e,["as","className"]);return s.createElement(c,Object.assign({className:t("eds-preformatted-text",n)},l))},exports.SmallText=function(e){var r=e.as,c=void 0===r?"span":r,n=e.className,l=a(e,["as","className"]);return s.createElement(c,Object.assign({className:t("eds-small-text",n)},l))},exports.StrongText=function(e){var r=e.as,c=void 0===r?"strong":r,n=e.className,l=a(e,["as","className"]);return s.createElement(c,Object.assign({className:t("eds-strong-text",n)},l))},exports.SubLabel=function(e){var r=e.as,c=void 0===r?"span":r,n=e.className,l=a(e,["as","className"]);return s.createElement(c,Object.assign({className:t("eds-sub-label",n)},l))},exports.SubParagraph=function(e){var r=e.as,c=void 0===r?"p":r,n=e.className,l=a(e,["as","className"]);return s.createElement(c,Object.assign({className:t("eds-sub-paragraph",n)},l))};
//# sourceMappingURL=typography.cjs.production.min.js.map

@@ -0,19 +1,5 @@

import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
import React from 'react';
import classNames from 'classnames';
function _objectWithoutPropertiesLoose(source, excluded) {
if (source == null) return {};
var target = {};
var sourceKeys = Object.keys(source);
var key, i;
for (i = 0; i < sourceKeys.length; i++) {
key = sourceKeys[i];
if (excluded.indexOf(key) >= 0) continue;
target[key] = source[key];
}
return target;
}
var CodeText = function CodeText(_ref) {

@@ -23,6 +9,6 @@ var _ref$as = _ref.as,

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-code-text', className)
className: classNames('eds-code-text', className)
}, rest));

@@ -35,6 +21,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-emphasized-text', className)
className: classNames('eds-emphasized-text', className)
}, rest));

@@ -47,6 +33,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-h1', className)
className: classNames('eds-h1', className)
}, rest));

@@ -59,6 +45,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-h2', className)
className: classNames('eds-h2', className)
}, rest));

@@ -71,6 +57,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-h3', className)
className: classNames('eds-h3', className)
}, rest));

@@ -83,6 +69,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-h4', className)
className: classNames('eds-h4', className)
}, rest));

@@ -95,6 +81,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-h5', className)
className: classNames('eds-h5', className)
}, rest));

@@ -107,6 +93,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-h6', className)
className: classNames('eds-h6', className)
}, rest));

@@ -119,6 +105,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-label', className)
className: classNames('eds-label', className)
}, rest));

@@ -131,6 +117,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-lead-paragraph', className)
className: classNames('eds-lead-paragraph', className)
}, rest));

@@ -143,6 +129,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-link', className)
className: classNames('eds-link', className)
}, rest));

@@ -155,6 +141,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-paragraph', className)
className: classNames('eds-paragraph', className)
}, rest));

@@ -167,6 +153,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-preformatted-text', className)
className: classNames('eds-preformatted-text', className)
}, rest));

@@ -179,6 +165,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-small-text', className)
className: classNames('eds-small-text', className)
}, rest));

@@ -191,6 +177,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-strong-text', className)
className: classNames('eds-strong-text', className)
}, rest));

@@ -203,6 +189,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-sub-label', className)
className: classNames('eds-sub-label', className)
}, rest));

@@ -215,6 +201,6 @@ };

className = _ref.className,
rest = _objectWithoutPropertiesLoose(_ref, ["as", "className"]);
rest = _objectWithoutProperties(_ref, ["as", "className"]);
return React.createElement(Element, Object.assign({
className: classNames('entur-sub-paragraph', className)
className: classNames('eds-sub-paragraph', className)
}, rest));

@@ -221,0 +207,0 @@ };

{
"name": "@entur/typography",
"version": "0.4.3",
"version": "0.4.4",
"license": "EUPL-1.2",

@@ -34,5 +34,5 @@ "main": "dist/index.js",

"devDependencies": {
"@entur/tokens": "^1.0.0"
"@entur/tokens": "^1.0.1"
},
"gitHead": "1d8d2763bf32e5b215772afb871200eaa67e5238"
"gitHead": "f474568d4572a715c5800781e34d42999d7c22ba"
}

@@ -5,3 +5,3 @@ # Typography

> 💡 Looking for the [documentation](https://entur-design-system.firebaseapp.com/komponenter/typografi)?
> 💡 Looking for the [documentation](https://design.entur.org/komponenter/typografi)?

@@ -26,2 +26,2 @@ ## Installation

Please refer to the [documentation](https://entur-design-system.firebaseapp.com/komponenter/typografi) for usage information.
Please refer to the [documentation](https://design.entur.org/komponenter/typografi) for usage information.

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