New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@twilio-paste/heading

Package Overview
Dependencies
Maintainers
5
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twilio-paste/heading - npm Package Compare versions

Comparing version 3.0.3 to 3.0.4-beta.15

dist/tsconfig.tsbuildinfo

5

dist/index.d.ts
import * as React from 'react';
import { HeadingVariants, HeadingProps, AsTags } from './types';
import type { HeadingVariants, HeadingProps, AsTags } from './types';
import { HeadingPropTypes } from './PropTypes';
declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
export { Heading, HeadingProps, HeadingPropTypes, HeadingVariants, AsTags as asTags };
export type { HeadingProps, HeadingVariants, AsTags as asTags };
export { Heading, HeadingPropTypes };
//# sourceMappingURL=index.d.ts.map

2

dist/index.es.js

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

import{forwardRef as e,createElement as t}from"react";import{Text as i,safelySpreadTextProps as n}from"@twilio-paste/text";import{oneOf as o}from"prop-types";var r=function(){return(r=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var a={as:o(["h1","h2","h3","h4","h5","h6","div","label","span"]).isRequired,marginBottom:o(["space0"]),variant:o(["heading10","heading20","heading30","heading40","heading50","heading60"]).isRequired};var g=e((function(e,o){var a=e.as,g=e.children,h=e.id,l=e.marginBottom,f=e.variant,p=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i}(e,["as","children","id","marginBottom","variant"]);return t(i,r({},n(p),function(e,t){switch(e){case"heading10":return{marginBottom:t||"space70",fontSize:"fontSize90",fontWeight:"fontWeightBold",lineHeight:"lineHeight90"};case"heading30":return{marginBottom:t||"space50",fontSize:"fontSize60",fontWeight:"fontWeightBold",lineHeight:"lineHeight60"};case"heading40":return{marginBottom:t||"space40",fontSize:"fontSize40",fontWeight:"fontWeightBold",lineHeight:"lineHeight40"};case"heading50":return{marginBottom:t||"space30",fontSize:"fontSize30",fontWeight:"fontWeightBold",lineHeight:"lineHeight30"};case"heading60":return{marginBottom:t||"space30",fontSize:"fontSize20",fontWeight:"fontWeightBold",lineHeight:"lineHeight20"};case"heading20":default:return{marginBottom:t||"space60",fontSize:"fontSize70",fontWeight:"fontWeightBold",lineHeight:"lineHeight70"}}}(f,l),{as:a,display:"block",id:h,color:"colorText",ref:o}),g)}));g.displayName="Heading","development"===process.env.NODE_ENV&&(g.propTypes=a);export{g as Heading,a as HeadingPropTypes};
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};

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@twilio-paste/text"),i=require("prop-types"),n=function(){return(n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var o={as:i.oneOf(["h1","h2","h3","h4","h5","h6","div","label","span"]).isRequired,marginBottom:i.oneOf(["space0"]),variant:i.oneOf(["heading10","heading20","heading30","heading40","heading50","heading60"]).isRequired};var r=e.forwardRef((function(i,o){var r=i.as,a=i.children,g=i.id,h=i.marginBottom,l=i.variant,f=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i}(i,["as","children","id","marginBottom","variant"]);return e.createElement(t.Text,n({},t.safelySpreadTextProps(f),function(e,t){switch(e){case"heading10":return{marginBottom:t||"space70",fontSize:"fontSize90",fontWeight:"fontWeightBold",lineHeight:"lineHeight90"};case"heading30":return{marginBottom:t||"space50",fontSize:"fontSize60",fontWeight:"fontWeightBold",lineHeight:"lineHeight60"};case"heading40":return{marginBottom:t||"space40",fontSize:"fontSize40",fontWeight:"fontWeightBold",lineHeight:"lineHeight40"};case"heading50":return{marginBottom:t||"space30",fontSize:"fontSize30",fontWeight:"fontWeightBold",lineHeight:"lineHeight30"};case"heading60":return{marginBottom:t||"space30",fontSize:"fontSize20",fontWeight:"fontWeightBold",lineHeight:"lineHeight20"};case"heading20":default:return{marginBottom:t||"space60",fontSize:"fontSize70",fontWeight:"fontWeightBold",lineHeight:"lineHeight70"}}}(l,h),{as:r,display:"block",id:g,color:"colorText",ref:o}),a)}));r.displayName="Heading","development"===process.env.NODE_ENV&&(r.propTypes=o),exports.Heading=r,exports.HeadingPropTypes=o;
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";

@@ -5,5 +5,5 @@ import * as PropTypes from 'prop-types';

as: PropTypes.Validator<AsTags>;
marginBottom: PropTypes.Validator<"space0" | null | undefined> | undefined;
marginBottom: PropTypes.Validator<"space0">;
variant: PropTypes.Validator<HeadingVariants>;
};
//# sourceMappingURL=PropTypes.d.ts.map
{
"name": "@twilio-paste/heading",
"version": "3.0.3",
"version": "3.0.4-beta.15+c193ca0b",
"category": "typography",

@@ -21,16 +21,15 @@ "status": "production",

"scripts": {
"build": "yarn clean && yarn compile",
"build:dev": "yarn clean && yarn compile:dev",
"build": "yarn clean && NODE_ENV=production node build.js && tsc",
"build:js": "NODE_ENV=development node build.js",
"build:props": "typedoc --tsconfig ./tsconfig.json --json ./dist/prop-types.json",
"clean": "rm -rf ./dist && rm -rf tsconfig.build.tsbuildinfo && rm -rf .rpt2_cache",
"compile": "rollup -c --environment NODE_ENV:production",
"compile:dev": "rollup -c --environment NODE_ENV:development"
"clean": "rm -rf ./dist",
"tsc": "tsc"
},
"peerDependencies": {
"@twilio-paste/design-tokens": "^6.4.1",
"@twilio-paste/style-props": "^1.8.15",
"@twilio-paste/styling-library": "^0.2.1",
"@twilio-paste/text": "^2.4.2",
"@twilio-paste/theme": "^4.1.1",
"@twilio-paste/types": "^3.0.30",
"@twilio-paste/style-props": "^1.8.16",
"@twilio-paste/styling-library": "^0.2.2",
"@twilio-paste/text": "^2.4.3",
"@twilio-paste/theme": "^4.1.2",
"@twilio-paste/types": "^3.0.31",
"prop-types": "^15.7.2",

@@ -42,6 +41,6 @@ "react": "^16.8.6",

"@twilio-paste/design-tokens": "^6.4.1",
"@twilio-paste/style-props": "^1.8.16",
"@twilio-paste/style-props": "^1.8.17-beta.15+c193ca0b",
"@twilio-paste/styling-library": "^0.2.2",
"@twilio-paste/text": "^2.4.3",
"@twilio-paste/theme": "^4.1.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",

@@ -52,3 +51,3 @@ "prop-types": "^15.7.2",

},
"gitHead": "c4163904aa7c0cd4b9c4b46ffc40fe4d0db7cfb7"
"gitHead": "c193ca0b8017f60515cb15878d35881962c087af"
}

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