Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fremtind/jkl-typography-react

Package Overview
Dependencies
Maintainers
2
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fremtind/jkl-typography-react - npm Package Compare versions

Comparing version 0.9.0 to 1.0.0-alpha.7

build/Label.d.ts

14

build/browser/index.js

@@ -110,2 +110,14 @@ import React from 'react';

export { H1, H2, H3, H4, LeadParagraph, Link, P, SmallParagraph, SupportLabel, TinyParagraph };
function Label(_ref) {
var _ref$variant = _ref.variant,
variant = _ref$variant === void 0 ? "medium" : _ref$variant,
forceCompact = _ref.forceCompact,
srOnly = _ref.srOnly,
children = _ref.children;
var className = "jkl-label".concat(variant ? " jkl-label--".concat(variant) : "", forceCompact ? " jkl-label--compact" : "", srOnly ? " jkl-label--sr-only" : "");
return React.createElement("span", {
className: className
}, children);
}
export { H1, H2, H3, H4, Label, LeadParagraph, Link, P, SmallParagraph, SupportLabel, TinyParagraph };

2

build/browser/index.min.js

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

import e from"react";function r(){return(r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function t(e,r){if(null==e)return{};var t,n,a=function(e,r){if(null==e)return{};var t,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)t=l[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)t=l[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function n(n,a){return function(l){var c=l.children,o=l.className,s=void 0===o?"":o,i=l.styledAs,p=t(l,["children","className","styledAs"]),u=n,f=i||n;return e.createElement(u,r({className:"jkl-".concat(a||f," ").concat(s)},p),c)}}var a=n("h1"),l=n("h2"),c=n("h3"),o=n("h4"),s=n("p","lead"),i=n("p"),p=n("p","small"),u=n("p","tiny"),f=function(n){var a=n.negative,l=void 0!==a&&a,c=n.children,o=n.className,s=void 0===o?"":o,i=t(n,["negative","children","className"]);return e.createElement("a",r({className:"jkl-link ".concat(l?"jkl-link--negative":""," ").concat(s)},i),c)},m=function(r){var t=r.helpLabel,n=r.errorLabel,a=r.forceCompact,l="jkl-form-support-label".concat(" jkl-form-support-label--".concat(n?"error":"Help"),a?" jkl-form-support-label--compact":"");return n||t?e.createElement("span",{className:l},n||t):null};export{a as H1,l as H2,c as H3,o as H4,s as LeadParagraph,f as Link,i as P,p as SmallParagraph,m as SupportLabel,u as TinyParagraph};
import e from"react";function r(){return(r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e}).apply(this,arguments)}function t(e,r){if(null==e)return{};var t,l,n=function(e,r){if(null==e)return{};var t,l,n={},a=Object.keys(e);for(l=0;l<a.length;l++)t=a[l],r.indexOf(t)>=0||(n[t]=e[t]);return n}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)t=a[l],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}function l(l,n){return function(a){var c=a.children,o=a.className,s=void 0===o?"":o,i=a.styledAs,p=t(a,["children","className","styledAs"]),u=l,m=i||l;return e.createElement(u,r({className:"jkl-".concat(n||m," ").concat(s)},p),c)}}var n=l("h1"),a=l("h2"),c=l("h3"),o=l("h4"),s=l("p","lead"),i=l("p"),p=l("p","small"),u=l("p","tiny"),m=function(l){var n=l.negative,a=void 0!==n&&n,c=l.children,o=l.className,s=void 0===o?"":o,i=t(l,["negative","children","className"]);return e.createElement("a",r({className:"jkl-link ".concat(a?"jkl-link--negative":""," ").concat(s)},i),c)},f=function(r){var t=r.helpLabel,l=r.errorLabel,n=r.forceCompact,a="jkl-form-support-label".concat(" jkl-form-support-label--".concat(l?"error":"Help"),n?" jkl-form-support-label--compact":"");return l||t?e.createElement("span",{className:a},l||t):null};function v(r){var t=r.variant,l=void 0===t?"medium":t,n=r.forceCompact,a=r.srOnly,c=r.children,o="jkl-label".concat(l?" jkl-label--".concat(l):"",n?" jkl-label--compact":"",a?" jkl-label--sr-only":"");return e.createElement("span",{className:o},c)}export{n as H1,a as H2,c as H3,o as H4,v as Label,s as LeadParagraph,m as Link,i as P,p as SmallParagraph,f as SupportLabel,u as TinyParagraph};

@@ -116,2 +116,14 @@ 'use strict';

function Label(_ref) {
var _ref$variant = _ref.variant,
variant = _ref$variant === void 0 ? "medium" : _ref$variant,
forceCompact = _ref.forceCompact,
srOnly = _ref.srOnly,
children = _ref.children;
var className = "jkl-label".concat(variant ? " jkl-label--".concat(variant) : "", forceCompact ? " jkl-label--compact" : "", srOnly ? " jkl-label--sr-only" : "");
return React.createElement("span", {
className: className
}, children);
}
exports.H1 = H1;

@@ -121,2 +133,3 @@ exports.H2 = H2;

exports.H4 = H4;
exports.Label = Label;
exports.LeadParagraph = LeadParagraph;

@@ -123,0 +136,0 @@ exports.Link = Link;

@@ -110,2 +110,14 @@ import React from 'react';

export { H1, H2, H3, H4, LeadParagraph, Link, P, SmallParagraph, SupportLabel, TinyParagraph };
function Label(_ref) {
var _ref$variant = _ref.variant,
variant = _ref$variant === void 0 ? "medium" : _ref$variant,
forceCompact = _ref.forceCompact,
srOnly = _ref.srOnly,
children = _ref.children;
var className = "jkl-label".concat(variant ? " jkl-label--".concat(variant) : "", forceCompact ? " jkl-label--compact" : "", srOnly ? " jkl-label--sr-only" : "");
return React.createElement("span", {
className: className
}, children);
}
export { H1, H2, H3, H4, Label, LeadParagraph, Link, P, SmallParagraph, SupportLabel, TinyParagraph };

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

import e from"react";function r(){return(r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function t(e,r){if(null==e)return{};var t,n,a=function(e,r){if(null==e)return{};var t,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)t=l[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)t=l[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function n(n,a){return function(l){var c=l.children,o=l.className,s=void 0===o?"":o,i=l.styledAs,p=t(l,["children","className","styledAs"]),u=n,f=i||n;return e.createElement(u,r({className:"jkl-".concat(a||f," ").concat(s)},p),c)}}var a=n("h1"),l=n("h2"),c=n("h3"),o=n("h4"),s=n("p","lead"),i=n("p"),p=n("p","small"),u=n("p","tiny"),f=function(n){var a=n.negative,l=void 0!==a&&a,c=n.children,o=n.className,s=void 0===o?"":o,i=t(n,["negative","children","className"]);return e.createElement("a",r({className:"jkl-link ".concat(l?"jkl-link--negative":""," ").concat(s)},i),c)},m=function(r){var t=r.helpLabel,n=r.errorLabel,a=r.forceCompact,l="jkl-form-support-label".concat(" jkl-form-support-label--".concat(n?"error":"Help"),a?" jkl-form-support-label--compact":"");return n||t?e.createElement("span",{className:l},n||t):null};export{a as H1,l as H2,c as H3,o as H4,s as LeadParagraph,f as Link,i as P,p as SmallParagraph,m as SupportLabel,u as TinyParagraph};
import e from"react";function r(){return(r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e}).apply(this,arguments)}function t(e,r){if(null==e)return{};var t,l,n=function(e,r){if(null==e)return{};var t,l,n={},a=Object.keys(e);for(l=0;l<a.length;l++)t=a[l],r.indexOf(t)>=0||(n[t]=e[t]);return n}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)t=a[l],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}function l(l,n){return function(a){var c=a.children,o=a.className,s=void 0===o?"":o,i=a.styledAs,p=t(a,["children","className","styledAs"]),u=l,m=i||l;return e.createElement(u,r({className:"jkl-".concat(n||m," ").concat(s)},p),c)}}var n=l("h1"),a=l("h2"),c=l("h3"),o=l("h4"),s=l("p","lead"),i=l("p"),p=l("p","small"),u=l("p","tiny"),m=function(l){var n=l.negative,a=void 0!==n&&n,c=l.children,o=l.className,s=void 0===o?"":o,i=t(l,["negative","children","className"]);return e.createElement("a",r({className:"jkl-link ".concat(a?"jkl-link--negative":""," ").concat(s)},i),c)},f=function(r){var t=r.helpLabel,l=r.errorLabel,n=r.forceCompact,a="jkl-form-support-label".concat(" jkl-form-support-label--".concat(l?"error":"Help"),n?" jkl-form-support-label--compact":"");return l||t?e.createElement("span",{className:a},l||t):null};function v(r){var t=r.variant,l=void 0===t?"medium":t,n=r.forceCompact,a=r.srOnly,c=r.children,o="jkl-label".concat(l?" jkl-label--".concat(l):"",n?" jkl-label--compact":"",a?" jkl-label--sr-only":"");return e.createElement("span",{className:o},c)}export{n as H1,a as H2,c as H3,o as H4,v as Label,s as LeadParagraph,m as Link,i as P,p as SmallParagraph,f as SupportLabel,u as TinyParagraph};
export { H1, H2, H3, H4, LeadParagraph, P, SmallParagraph, TinyParagraph } from "./Typography";
export { Link } from "./Link";
export { SupportLabel } from "./SupportLabel";
export { Label } from "./Label";

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

# [1.0.0-alpha.7](https://github.com/fremtind/jokul/compare/@fremtind/jkl-typography-react@1.0.0-alpha.6...@fremtind/jkl-typography-react@1.0.0-alpha.7) (2019-10-31)
**Note:** Version bump only for package @fremtind/jkl-typography-react
# [1.0.0-alpha.6](https://github.com/fremtind/jokul/compare/@fremtind/jkl-typography-react@1.0.0-alpha.5...@fremtind/jkl-typography-react@1.0.0-alpha.6) (2019-10-25)
**Note:** Version bump only for package @fremtind/jkl-typography-react
# [1.0.0-alpha.5](https://github.com/fremtind/jokul/compare/@fremtind/jkl-typography-react@1.0.0-alpha.4...@fremtind/jkl-typography-react@1.0.0-alpha.5) (2019-10-25)
**Note:** Version bump only for package @fremtind/jkl-typography-react
# [1.0.0-alpha.4](https://github.com/fremtind/jokul/compare/@fremtind/jkl-typography-react@1.0.0-alpha.3...@fremtind/jkl-typography-react@1.0.0-alpha.4) (2019-10-25)
**Note:** Version bump only for package @fremtind/jkl-typography-react
# [1.0.0-alpha.3](https://github.com/fremtind/jokul/compare/@fremtind/jkl-typography-react@1.0.0-alpha.2...@fremtind/jkl-typography-react@1.0.0-alpha.3) (2019-10-25)
**Note:** Version bump only for package @fremtind/jkl-typography-react
# [1.0.0-alpha.2](https://github.com/fremtind/jokul/compare/@fremtind/jkl-typography-react@1.0.0-alpha.1...@fremtind/jkl-typography-react@1.0.0-alpha.2) (2019-10-24)
**Note:** Version bump only for package @fremtind/jkl-typography-react
# [1.0.0-alpha.1](https://github.com/fremtind/jokul/compare/@fremtind/jkl-typography-react@1.0.0-alpha.0...@fremtind/jkl-typography-react@1.0.0-alpha.1) (2019-10-24)
**Note:** Version bump only for package @fremtind/jkl-typography-react
# [1.0.0-alpha.0](https://github.com/fremtind/jokul/compare/@fremtind/jkl-typography-react@0.9.1-alpha.0...@fremtind/jkl-typography-react@1.0.0-alpha.0) (2019-10-24)
**Note:** Version bump only for package @fremtind/jkl-typography-react
## [0.9.1-alpha.0](https://github.com/fremtind/jokul/compare/@fremtind/jkl-typography-react@0.9.0...@fremtind/jkl-typography-react@0.9.1-alpha.0) (2019-10-24)
### Features
* **text-field:** implement in line version of TextField ([5999a32](https://github.com/fremtind/jokul/commit/5999a32))
* **typography-react:** add label component ([1384269](https://github.com/fremtind/jokul/commit/1384269))
# [0.9.0](https://github.com/fremtind/jokul/compare/@fremtind/jkl-typography-react@0.8.3...@fremtind/jkl-typography-react@0.9.0) (2019-10-09)

@@ -8,0 +84,0 @@

{
"name": "@fremtind/jkl-typography-react",
"version": "0.9.0",
"version": "1.0.0-alpha.7",
"publishConfig": {

@@ -8,3 +8,3 @@ "access": "public"

"description": "Jøkul react typography components",
"homepage": "https://fremtind.github.io/jokul",
"homepage": "https://fremtind.github.io/jokul/",
"keywords": [

@@ -41,6 +41,6 @@ "typography",

"dependencies": {
"@fremtind/jkl-core": "^0.11.0"
"@fremtind/jkl-core": "^1.0.0-alpha.7"
},
"devDependencies": {
"@fremtind/browserslist-config-jkl": "^0.4.0"
"@fremtind/browserslist-config-jkl": "^1.0.0-alpha.7"
},

@@ -63,3 +63,3 @@ "peerDependencies": {

],
"gitHead": "f79916c3cf2d48704066a05a77f7b9b57c7fbf64"
"gitHead": "b2664fe72325d5081e19afd7fcbe4e8cb531469b"
}
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