@twilio-paste/heading
Advanced tools
Comparing version 3.0.4-beta.15 to 3.1.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [3.1.0](https://github.com/twilio-labs/paste/compare/@twilio-paste/heading@3.0.3...@twilio-paste/heading@3.1.0) (2021-01-21) | ||
### Features | ||
* ESBuild for builds ([#1084](https://github.com/twilio-labs/paste/issues/1084)) ([0536460](https://github.com/twilio-labs/paste/commit/053646011508be10477d5b732269cdb0419235d7)) | ||
## [3.0.3](https://github.com/twilio-labs/paste/compare/@twilio-paste/heading@3.0.2...@twilio-paste/heading@3.0.3) (2021-01-15) | ||
@@ -8,0 +19,0 @@ |
@@ -1,1 +0,1 @@ | ||
import{createElement as d,forwardRef as h}from"react";import{Text as f,safelySpreadTextProps as l}from"@twilio-paste/text";import{oneOf as t}from"prop-types";var p={as:t(["h1","h2","h3","h4","h5","h6","div","label","span"]).isRequired,marginBottom:t(["space0"]),variant:t(["heading10","heading20","heading30","heading40","heading50","heading60"]).isRequired};function H(i,e){switch(i){case"heading10":return{marginBottom:e||"space70",fontSize:"fontSize90",fontWeight:"fontWeightBold",lineHeight:"lineHeight90"};case"heading30":return{marginBottom:e||"space50",fontSize:"fontSize60",fontWeight:"fontWeightBold",lineHeight:"lineHeight60"};case"heading40":return{marginBottom:e||"space40",fontSize:"fontSize40",fontWeight:"fontWeightBold",lineHeight:"lineHeight40"};case"heading50":return{marginBottom:e||"space30",fontSize:"fontSize30",fontWeight:"fontWeightBold",lineHeight:"lineHeight30"};case"heading60":return{marginBottom:e||"space30",fontSize:"fontSize20",fontWeight:"fontWeightBold",lineHeight:"lineHeight20"};case"heading20":default:return{marginBottom:e||"space60",fontSize:"fontSize70",fontWeight:"fontWeightBold",lineHeight:"lineHeight70"}}}var n=h(({as:i,children:e,id:a,marginBottom:o,variant:s,...r},g)=>d(f,{...l(r),...H(s,o),as:i,display:"block",id:a,color:"colorText",ref:g},e));n.displayName="Heading";export{n as Heading,p as HeadingPropTypes}; | ||
var l=Object.prototype.hasOwnProperty;var r=Object.getOwnPropertySymbols,H=Object.prototype.propertyIsEnumerable;var a=Object.assign;var g=(e,i)=>{var n={};for(var t in e)l.call(e,t)&&i.indexOf(t)<0&&(n[t]=e[t]);if(e!=null&&r)for(var t of r(e))i.indexOf(t)<0&&H.call(e,t)&&(n[t]=e[t]);return n};import{createElement as T,forwardRef as y}from"react";import{Text as m,safelySpreadTextProps as P}from"@twilio-paste/text";import{oneOf as o}from"prop-types";var c={as:o(["h1","h2","h3","h4","h5","h6","div","label","span"]).isRequired,marginBottom:o(["space0"]),variant:o(["heading10","heading20","heading30","heading40","heading50","heading60"]).isRequired};function S(e,i){switch(e){case"heading10":return{marginBottom:i||"space70",fontSize:"fontSize90",fontWeight:"fontWeightBold",lineHeight:"lineHeight90"};case"heading30":return{marginBottom:i||"space50",fontSize:"fontSize60",fontWeight:"fontWeightBold",lineHeight:"lineHeight60"};case"heading40":return{marginBottom:i||"space40",fontSize:"fontSize40",fontWeight:"fontWeightBold",lineHeight:"lineHeight40"};case"heading50":return{marginBottom:i||"space30",fontSize:"fontSize30",fontWeight:"fontWeightBold",lineHeight:"lineHeight30"};case"heading60":return{marginBottom:i||"space30",fontSize:"fontSize20",fontWeight:"fontWeightBold",lineHeight:"lineHeight20"};case"heading20":default:return{marginBottom:i||"space60",fontSize:"fontSize70",fontWeight:"fontWeightBold",lineHeight:"lineHeight70"}}}var p=y((s,f)=>{var{as:e,children:i,id:n,marginBottom:t,variant:d}=s,h=g(s,["as","children","id","marginBottom","variant"]);return T(m,a(a(a({},P(h)),S(d,t)),{as:e,display:"block",id:n,color:"colorText",ref:f}),i)});p.displayName="Heading";export{p as Heading,c as HeadingPropTypes}; |
@@ -1,1 +0,1 @@ | ||
var H=Object.create,a=Object.defineProperty,c=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,y=Object.getOwnPropertyNames,m=Object.getOwnPropertyDescriptor;var p=e=>a(e,"__esModule",{value:!0});var P=(e,i)=>{p(e);for(var t in i)a(e,t,{get:i[t],enumerable:!0})},S=(e,i,t)=>{if(p(e),i&&typeof i=="object"||typeof i=="function")for(let n of y(i))!T.call(e,n)&&n!=="default"&&a(e,n,{get:()=>i[n],enumerable:!(t=m(i,n))||t.enumerable});return e},g=e=>e&&e.__esModule?e:S(a(e!=null?H(c(e)):{},"default",{value:e,enumerable:!0}),e);P(exports,{Heading:()=>d,HeadingPropTypes:()=>u});var s=g(require("react")),r=g(require("@twilio-paste/text"));var o=g(require("prop-types")),u={as:o.oneOf(["h1","h2","h3","h4","h5","h6","div","label","span"]).isRequired,marginBottom:o.oneOf(["space0"]),variant:o.oneOf(["heading10","heading20","heading30","heading40","heading50","heading60"]).isRequired};function z(e,i){switch(e){case"heading10":return{marginBottom:i||"space70",fontSize:"fontSize90",fontWeight:"fontWeightBold",lineHeight:"lineHeight90"};case"heading30":return{marginBottom:i||"space50",fontSize:"fontSize60",fontWeight:"fontWeightBold",lineHeight:"lineHeight60"};case"heading40":return{marginBottom:i||"space40",fontSize:"fontSize40",fontWeight:"fontWeightBold",lineHeight:"lineHeight40"};case"heading50":return{marginBottom:i||"space30",fontSize:"fontSize30",fontWeight:"fontWeightBold",lineHeight:"lineHeight30"};case"heading60":return{marginBottom:i||"space30",fontSize:"fontSize20",fontWeight:"fontWeightBold",lineHeight:"lineHeight20"};case"heading20":default:return{marginBottom:i||"space60",fontSize:"fontSize70",fontWeight:"fontWeightBold",lineHeight:"lineHeight70"}}}var d=s.forwardRef(({as:e,children:i,id:t,marginBottom:n,variant:h,...f},l)=>s.createElement(r.Text,{...r.safelySpreadTextProps(f),...z(h,n),as:e,display:"block",id:t,color:"colorText",ref:l},i));d.displayName="Heading"; | ||
var P=Object.create,a=Object.defineProperty,S=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,u=Object.getOwnPropertyNames,z=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertySymbols,W=Object.prototype.propertyIsEnumerable;var o=Object.assign,l=e=>a(e,"__esModule",{value:!0});var H=(e,i)=>{var n={};for(var t in e)h.call(e,t)&&i.indexOf(t)<0&&(n[t]=e[t]);if(e!=null&&f)for(var t of f(e))i.indexOf(t)<0&&W.call(e,t)&&(n[t]=e[t]);return n};var x=(e,i)=>{l(e);for(var n in i)a(e,n,{get:i[n],enumerable:!0})},B=(e,i,n)=>{if(l(e),i&&typeof i=="object"||typeof i=="function")for(let t of u(i))!h.call(e,t)&&t!=="default"&&a(e,t,{get:()=>i[t],enumerable:!(n=z(i,t))||n.enumerable});return e},p=e=>e&&e.__esModule?e:B(a(e!=null?P(S(e)):{},"default",{value:e,enumerable:!0}),e);x(exports,{Heading:()=>c,HeadingPropTypes:()=>V});var r=p(require("react")),g=p(require("@twilio-paste/text"));var s=p(require("prop-types")),V={as:s.oneOf(["h1","h2","h3","h4","h5","h6","div","label","span"]).isRequired,marginBottom:s.oneOf(["space0"]),variant:s.oneOf(["heading10","heading20","heading30","heading40","heading50","heading60"]).isRequired};function R(e,i){switch(e){case"heading10":return{marginBottom:i||"space70",fontSize:"fontSize90",fontWeight:"fontWeightBold",lineHeight:"lineHeight90"};case"heading30":return{marginBottom:i||"space50",fontSize:"fontSize60",fontWeight:"fontWeightBold",lineHeight:"lineHeight60"};case"heading40":return{marginBottom:i||"space40",fontSize:"fontSize40",fontWeight:"fontWeightBold",lineHeight:"lineHeight40"};case"heading50":return{marginBottom:i||"space30",fontSize:"fontSize30",fontWeight:"fontWeightBold",lineHeight:"lineHeight30"};case"heading60":return{marginBottom:i||"space30",fontSize:"fontSize20",fontWeight:"fontWeightBold",lineHeight:"lineHeight20"};case"heading20":default:return{marginBottom:i||"space60",fontSize:"fontSize70",fontWeight:"fontWeightBold",lineHeight:"lineHeight70"}}}var c=r.forwardRef((d,m)=>{var{as:e,children:i,id:n,marginBottom:t,variant:T}=d,y=H(d,["as","children","id","marginBottom","variant"]);return r.createElement(g.Text,o(o(o({},g.safelySpreadTextProps(y)),R(T,t)),{as:e,display:"block",id:n,color:"colorText",ref:m}),i)});c.displayName="Heading"; |
{ | ||
"name": "@twilio-paste/heading", | ||
"version": "3.0.4-beta.15+c193ca0b", | ||
"version": "3.1.0", | ||
"category": "typography", | ||
@@ -39,8 +39,8 @@ "status": "production", | ||
"devDependencies": { | ||
"@twilio-paste/design-tokens": "^6.4.1", | ||
"@twilio-paste/style-props": "^1.8.17-beta.15+c193ca0b", | ||
"@twilio-paste/styling-library": "^0.2.2", | ||
"@twilio-paste/text": "^2.4.4-beta.15+c193ca0b", | ||
"@twilio-paste/theme": "^4.1.3-beta.15+c193ca0b", | ||
"@twilio-paste/types": "^3.0.31", | ||
"@twilio-paste/design-tokens": "^6.5.0", | ||
"@twilio-paste/style-props": "^1.9.0", | ||
"@twilio-paste/styling-library": "^0.3.0", | ||
"@twilio-paste/text": "^2.5.0", | ||
"@twilio-paste/theme": "^4.2.0", | ||
"@twilio-paste/types": "^3.1.0", | ||
"prop-types": "^15.7.2", | ||
@@ -50,3 +50,3 @@ "react": "^16.8.6", | ||
}, | ||
"gitHead": "c193ca0b8017f60515cb15878d35881962c087af" | ||
"gitHead": "1bc07961cc789a6631a75fb663d9d8f5935e3ae7" | ||
} |
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
39
2
0
369218