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

@cavilha/text

Package Overview
Dependencies
Maintainers
5
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cavilha/text - npm Package Compare versions

Comparing version 0.0.0-alpha.4 to 0.0.0-alpha.5

2

dist/index.cjs.js

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

"use strict";var t=require("react"),e=require("@cavilha/theme");function l(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=l(t),n=function(){return(n=Object.assign||function(t){for(var e,l=1,i=arguments.length;l<i;l++)for(var n in e=arguments[l])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};var o=e.styled("span",n(n({},{fontFamily:"$untitled",color:"$neutral5",fontWeight:"regular",fontSize:"$bodyMedium",margin:0,padding:0}),{variants:{textStyle:{bodyXSmallRegular:{font:"$fontWeights$regular $fontSizes$bodyXSmall $fonts$untitled",lineHeight:"$small2"},bodyXSmallSemibold:{font:"$fontWeights$semibold $fontSizes$bodyXSmall $fonts$untitled",lineHeight:"$small2"},bodyXSmallBold:{font:"$fontWeights$bold $fontSizes$bodyXSmall $fonts$untitled",lineHeight:"$small2"},bodySmallRegular:{font:"$fontWeights$regular $fontSizes$bodySmall $fonts$untitled",lineHeight:"$small2"},bodySmallSemibold:{font:"$fontWeights$semibold $fontSizes$bodySmall $fonts$untitled",lineHeight:"$small2"},bodySmallBold:{font:"$fontWeights$bold $fontSizes$bodySmall $fonts$untitled",lineHeight:"$small2"},bodyMediumRegular:{font:"$fontWeights$regular $fontSizes$bodyMedium $fonts$untitled",lineHeight:"$small3"},bodyMediumSemibold:{font:"$fontWeights$semibold $fontSizes$bodyMedium $fonts$untitled",lineHeight:"$small3"},bodyMediumBold:{font:"$fontWeights$bold $fontSizes$bodyMedium $fonts$untitled",lineHeight:"$small3"},overline:{font:"$fontWeights$regular $fontSizes$bodySmall $fonts$untitled",textTransform:"uppercase",lineHeight:"$small1",letterSpacing:"$large"},flag:{font:"$fontWeights$bold $fontSizes$bodyXSmall $fonts$untitled",textTransform:"uppercase",lineHeight:"$small1",letterSpacing:"$none"},hero:{font:"$fontWeights$light $fontSizes$hero $fonts$untitled",lineHeight:"$large3",letterSpacing:"$small"},h1Light:{font:"$fontWeights$light $fontSizes$h1 $fonts$untitled",lineHeight:"$large1",letterSpacing:"$small"},h1Semibold:{font:"$fontWeights$semibold $fontSizes$h1 $fonts$untitled",lineHeight:"$large1",letterSpacing:"$small"},h2Light:{font:"$fontWeights$light $fontSizes$h2 $fonts$untitled",lineHeight:"$medium3",letterSpacing:"$small"},h2Semibold:{font:"$fontWeights$semibold $fontSizes$h2 $fonts$untitled",lineHeight:"$medium3",letterSpacing:"$small"},h3Light:{font:"$fontWeights$light $fontSizes$h3 $fonts$untitled",lineHeight:"$medium3",letterSpacing:"$small"},h3Semibold:{font:"$fontWeights$semibold $fontSizes$h3 $fonts$untitled",lineHeight:"$medium3",letterSpacing:"$small"},h4Light:{font:"$fontWeights$light $fontSizes$h4 $fonts$untitled",lineHeight:"$medium2",letterSpacing:"$small"},h4Semibold:{font:"$fontWeights$semibold $fontSizes$h4 $fonts$untitled",lineHeight:"$medium2",letterSpacing:"$small"},h5Light:{font:"$fontWeights$light $fontSizes$h5 $fonts$untitled",lineHeight:"$medium1",letterSpacing:"$small"},h5Semibold:{font:"$fontWeights$semibold $fontSizes$h5 $fonts$untitled",lineHeight:"$medium1",letterSpacing:"$small"}},size:{hero:{fontSize:"$hero"},h1:{fontSize:"$h1"},h2:{fontSize:"$h2"},h3:{fontSize:"$h3"},h4:{fontSize:"$h4"},h5:{fontSize:"$h5"},bodyMedium:{fontSize:"$bodyMedium"},bodySmall:{fontSize:"$bodySmall"},bodyXSmall:{fontSize:"$bodyXSmall"},link:{fontSize:"$link"}},weight:{light:{fontWeight:"$light"},regular:{fontWeight:"$regular"},semibold:{fontWeight:"$semibold"},bold:{fontWeight:"$bold"}},asBlock:{true:{display:"block"}},align:{center:{textAlign:"center"},right:{textAlign:"right"},justify:{textAlign:"justify"},left:{textAlign:"left"},start:{textAlign:"start"},end:{textAlign:"end"},matchParent:{textAlign:"match-parent"}}}})),$=i.default.forwardRef((function(t,e){var l=t.color,$=t.children,f=function(t,e){var l={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(l[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(l[i[n]]=t[i[n]])}return l}(t,["color","children"]);return i.default.createElement(o,n({style:{color:""+l},ref:e},f),$)}));module.exports=$;
"use strict";var t=require("react"),e=require("@cavilha/theme");function l(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=l(t),n=function(){return(n=Object.assign||function(t){for(var e,l=1,i=arguments.length;l<i;l++)for(var n in e=arguments[l])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};var o=e.styled("span",n(n({},{fontFamily:"$untitled",color:"$neutral5",fontWeight:"regular",fontSize:"$bodyMedium",margin:0,padding:0}),{variants:{textStyle:{bodyXSmallRegular:{font:"$fontWeights$regular $fontSizes$bodyXSmall $fonts$untitled",lineHeight:"$small2"},bodyXSmallSemibold:{font:"$fontWeights$semibold $fontSizes$bodyXSmall $fonts$untitled",lineHeight:"$small2"},bodyXSmallBold:{font:"$fontWeights$bold $fontSizes$bodyXSmall $fonts$untitled",lineHeight:"$small2"},bodySmallRegular:{font:"$fontWeights$regular $fontSizes$bodySmall $fonts$untitled",lineHeight:"$small2"},bodySmallSemibold:{font:"$fontWeights$semibold $fontSizes$bodySmall $fonts$untitled",lineHeight:"$small2"},bodySmallBold:{font:"$fontWeights$bold $fontSizes$bodySmall $fonts$untitled",lineHeight:"$small2"},bodyMediumRegular:{font:"$fontWeights$regular $fontSizes$bodyMedium $fonts$untitled",lineHeight:"$small3"},bodyMediumSemibold:{font:"$fontWeights$semibold $fontSizes$bodyMedium $fonts$untitled",lineHeight:"$small3"},bodyMediumBold:{font:"$fontWeights$bold $fontSizes$bodyMedium $fonts$untitled",lineHeight:"$small3"},overline:{font:"$fontWeights$regular $fontSizes$bodySmall $fonts$untitled",textTransform:"uppercase",lineHeight:"$small1",letterSpacing:"$large"},flag:{font:"$fontWeights$bold $fontSizes$bodyXSmall $fonts$untitled",textTransform:"uppercase",lineHeight:"$small1",letterSpacing:"$none"},hero:{font:"$fontWeights$light $fontSizes$hero $fonts$untitled",lineHeight:"$large3",letterSpacing:"$small"},h1Light:{font:"$fontWeights$light $fontSizes$h1 $fonts$untitled",lineHeight:"$large1",letterSpacing:"$small"},h1Semibold:{font:"$fontWeights$semibold $fontSizes$h1 $fonts$untitled",lineHeight:"$large1",letterSpacing:"$small"},h2Light:{font:"$fontWeights$light $fontSizes$h2 $fonts$untitled",lineHeight:"$medium3",letterSpacing:"$small"},h2Semibold:{font:"$fontWeights$semibold $fontSizes$h2 $fonts$untitled",lineHeight:"$medium3",letterSpacing:"$small"},h3Light:{font:"$fontWeights$light $fontSizes$h3 $fonts$untitled",lineHeight:"$medium3",letterSpacing:"$small"},h3Semibold:{font:"$fontWeights$semibold $fontSizes$h3 $fonts$untitled",lineHeight:"$medium3",letterSpacing:"$small"},h4Light:{font:"$fontWeights$light $fontSizes$h4 $fonts$untitled",lineHeight:"$medium2",letterSpacing:"$small"},h4Semibold:{font:"$fontWeights$semibold $fontSizes$h4 $fonts$untitled",lineHeight:"$medium2",letterSpacing:"$small"},h5Light:{font:"$fontWeights$light $fontSizes$h5 $fonts$untitled",lineHeight:"$medium1",letterSpacing:"$small"},h5Semibold:{font:"$fontWeights$semibold $fontSizes$h5 $fonts$untitled",lineHeight:"$medium1",letterSpacing:"$small"}},size:{hero:{fontSize:"$hero"},h1:{fontSize:"$h1"},h2:{fontSize:"$h2"},h3:{fontSize:"$h3"},h4:{fontSize:"$h4"},h5:{fontSize:"$h5"},bodyMedium:{fontSize:"$bodyMedium"},bodySmall:{fontSize:"$bodySmall"},bodyXSmall:{fontSize:"$bodyXSmall"},link:{fontSize:"$link"}},weight:{light:{fontWeight:"$light"},regular:{fontWeight:"$regular"},semibold:{fontWeight:"$semibold"},bold:{fontWeight:"$bold"}},asBlock:{true:{display:"block"}},align:{center:{textAlign:"center"},right:{textAlign:"right"},justify:{textAlign:"justify"},left:{textAlign:"left"},start:{textAlign:"start"},end:{textAlign:"end"},matchParent:{textAlign:"match-parent"}}}})),$=i.default.forwardRef((function(t,e){var l=t.children,$=function(t,e){var l={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(l[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(l[i[n]]=t[i[n]])}return l}(t,["children"]);return i.default.createElement(o,n({ref:e},$),l)}));module.exports=$;

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

import t from"react";import{styled as e}from"@cavilha/theme";var l=function(){return(l=Object.assign||function(t){for(var e,l=1,i=arguments.length;l<i;l++)for(var n in e=arguments[l])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};var i=e("span",l(l({},{fontFamily:"$untitled",color:"$neutral5",fontWeight:"regular",fontSize:"$bodyMedium",margin:0,padding:0}),{variants:{textStyle:{bodyXSmallRegular:{font:"$fontWeights$regular $fontSizes$bodyXSmall $fonts$untitled",lineHeight:"$small2"},bodyXSmallSemibold:{font:"$fontWeights$semibold $fontSizes$bodyXSmall $fonts$untitled",lineHeight:"$small2"},bodyXSmallBold:{font:"$fontWeights$bold $fontSizes$bodyXSmall $fonts$untitled",lineHeight:"$small2"},bodySmallRegular:{font:"$fontWeights$regular $fontSizes$bodySmall $fonts$untitled",lineHeight:"$small2"},bodySmallSemibold:{font:"$fontWeights$semibold $fontSizes$bodySmall $fonts$untitled",lineHeight:"$small2"},bodySmallBold:{font:"$fontWeights$bold $fontSizes$bodySmall $fonts$untitled",lineHeight:"$small2"},bodyMediumRegular:{font:"$fontWeights$regular $fontSizes$bodyMedium $fonts$untitled",lineHeight:"$small3"},bodyMediumSemibold:{font:"$fontWeights$semibold $fontSizes$bodyMedium $fonts$untitled",lineHeight:"$small3"},bodyMediumBold:{font:"$fontWeights$bold $fontSizes$bodyMedium $fonts$untitled",lineHeight:"$small3"},overline:{font:"$fontWeights$regular $fontSizes$bodySmall $fonts$untitled",textTransform:"uppercase",lineHeight:"$small1",letterSpacing:"$large"},flag:{font:"$fontWeights$bold $fontSizes$bodyXSmall $fonts$untitled",textTransform:"uppercase",lineHeight:"$small1",letterSpacing:"$none"},hero:{font:"$fontWeights$light $fontSizes$hero $fonts$untitled",lineHeight:"$large3",letterSpacing:"$small"},h1Light:{font:"$fontWeights$light $fontSizes$h1 $fonts$untitled",lineHeight:"$large1",letterSpacing:"$small"},h1Semibold:{font:"$fontWeights$semibold $fontSizes$h1 $fonts$untitled",lineHeight:"$large1",letterSpacing:"$small"},h2Light:{font:"$fontWeights$light $fontSizes$h2 $fonts$untitled",lineHeight:"$medium3",letterSpacing:"$small"},h2Semibold:{font:"$fontWeights$semibold $fontSizes$h2 $fonts$untitled",lineHeight:"$medium3",letterSpacing:"$small"},h3Light:{font:"$fontWeights$light $fontSizes$h3 $fonts$untitled",lineHeight:"$medium3",letterSpacing:"$small"},h3Semibold:{font:"$fontWeights$semibold $fontSizes$h3 $fonts$untitled",lineHeight:"$medium3",letterSpacing:"$small"},h4Light:{font:"$fontWeights$light $fontSizes$h4 $fonts$untitled",lineHeight:"$medium2",letterSpacing:"$small"},h4Semibold:{font:"$fontWeights$semibold $fontSizes$h4 $fonts$untitled",lineHeight:"$medium2",letterSpacing:"$small"},h5Light:{font:"$fontWeights$light $fontSizes$h5 $fonts$untitled",lineHeight:"$medium1",letterSpacing:"$small"},h5Semibold:{font:"$fontWeights$semibold $fontSizes$h5 $fonts$untitled",lineHeight:"$medium1",letterSpacing:"$small"}},size:{hero:{fontSize:"$hero"},h1:{fontSize:"$h1"},h2:{fontSize:"$h2"},h3:{fontSize:"$h3"},h4:{fontSize:"$h4"},h5:{fontSize:"$h5"},bodyMedium:{fontSize:"$bodyMedium"},bodySmall:{fontSize:"$bodySmall"},bodyXSmall:{fontSize:"$bodyXSmall"},link:{fontSize:"$link"}},weight:{light:{fontWeight:"$light"},regular:{fontWeight:"$regular"},semibold:{fontWeight:"$semibold"},bold:{fontWeight:"$bold"}},asBlock:{true:{display:"block"}},align:{center:{textAlign:"center"},right:{textAlign:"right"},justify:{textAlign:"justify"},left:{textAlign:"left"},start:{textAlign:"start"},end:{textAlign:"end"},matchParent:{textAlign:"match-parent"}}}})),n=t.forwardRef((function(e,n){var o=e.color,$=e.children,f=function(t,e){var l={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(l[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(l[i[n]]=t[i[n]])}return l}(e,["color","children"]);return t.createElement(i,l({style:{color:""+o},ref:n},f),$)}));export{n as default};
import t from"react";import{styled as e}from"@cavilha/theme";var i=function(){return(i=Object.assign||function(t){for(var e,i=1,l=arguments.length;i<l;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};var l=e("span",i(i({},{fontFamily:"$untitled",color:"$neutral5",fontWeight:"regular",fontSize:"$bodyMedium",margin:0,padding:0}),{variants:{textStyle:{bodyXSmallRegular:{font:"$fontWeights$regular $fontSizes$bodyXSmall $fonts$untitled",lineHeight:"$small2"},bodyXSmallSemibold:{font:"$fontWeights$semibold $fontSizes$bodyXSmall $fonts$untitled",lineHeight:"$small2"},bodyXSmallBold:{font:"$fontWeights$bold $fontSizes$bodyXSmall $fonts$untitled",lineHeight:"$small2"},bodySmallRegular:{font:"$fontWeights$regular $fontSizes$bodySmall $fonts$untitled",lineHeight:"$small2"},bodySmallSemibold:{font:"$fontWeights$semibold $fontSizes$bodySmall $fonts$untitled",lineHeight:"$small2"},bodySmallBold:{font:"$fontWeights$bold $fontSizes$bodySmall $fonts$untitled",lineHeight:"$small2"},bodyMediumRegular:{font:"$fontWeights$regular $fontSizes$bodyMedium $fonts$untitled",lineHeight:"$small3"},bodyMediumSemibold:{font:"$fontWeights$semibold $fontSizes$bodyMedium $fonts$untitled",lineHeight:"$small3"},bodyMediumBold:{font:"$fontWeights$bold $fontSizes$bodyMedium $fonts$untitled",lineHeight:"$small3"},overline:{font:"$fontWeights$regular $fontSizes$bodySmall $fonts$untitled",textTransform:"uppercase",lineHeight:"$small1",letterSpacing:"$large"},flag:{font:"$fontWeights$bold $fontSizes$bodyXSmall $fonts$untitled",textTransform:"uppercase",lineHeight:"$small1",letterSpacing:"$none"},hero:{font:"$fontWeights$light $fontSizes$hero $fonts$untitled",lineHeight:"$large3",letterSpacing:"$small"},h1Light:{font:"$fontWeights$light $fontSizes$h1 $fonts$untitled",lineHeight:"$large1",letterSpacing:"$small"},h1Semibold:{font:"$fontWeights$semibold $fontSizes$h1 $fonts$untitled",lineHeight:"$large1",letterSpacing:"$small"},h2Light:{font:"$fontWeights$light $fontSizes$h2 $fonts$untitled",lineHeight:"$medium3",letterSpacing:"$small"},h2Semibold:{font:"$fontWeights$semibold $fontSizes$h2 $fonts$untitled",lineHeight:"$medium3",letterSpacing:"$small"},h3Light:{font:"$fontWeights$light $fontSizes$h3 $fonts$untitled",lineHeight:"$medium3",letterSpacing:"$small"},h3Semibold:{font:"$fontWeights$semibold $fontSizes$h3 $fonts$untitled",lineHeight:"$medium3",letterSpacing:"$small"},h4Light:{font:"$fontWeights$light $fontSizes$h4 $fonts$untitled",lineHeight:"$medium2",letterSpacing:"$small"},h4Semibold:{font:"$fontWeights$semibold $fontSizes$h4 $fonts$untitled",lineHeight:"$medium2",letterSpacing:"$small"},h5Light:{font:"$fontWeights$light $fontSizes$h5 $fonts$untitled",lineHeight:"$medium1",letterSpacing:"$small"},h5Semibold:{font:"$fontWeights$semibold $fontSizes$h5 $fonts$untitled",lineHeight:"$medium1",letterSpacing:"$small"}},size:{hero:{fontSize:"$hero"},h1:{fontSize:"$h1"},h2:{fontSize:"$h2"},h3:{fontSize:"$h3"},h4:{fontSize:"$h4"},h5:{fontSize:"$h5"},bodyMedium:{fontSize:"$bodyMedium"},bodySmall:{fontSize:"$bodySmall"},bodyXSmall:{fontSize:"$bodyXSmall"},link:{fontSize:"$link"}},weight:{light:{fontWeight:"$light"},regular:{fontWeight:"$regular"},semibold:{fontWeight:"$semibold"},bold:{fontWeight:"$bold"}},asBlock:{true:{display:"block"}},align:{center:{textAlign:"center"},right:{textAlign:"right"},justify:{textAlign:"justify"},left:{textAlign:"left"},start:{textAlign:"start"},end:{textAlign:"end"},matchParent:{textAlign:"match-parent"}}}})),n=t.forwardRef((function(e,n){var o=e.children,$=function(t,e){var i={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(i[l]=t[l]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(i[l[n]]=t[l[n]])}return i}(e,["children"]);return t.createElement(l,i({ref:n},$),o)}));export{n as default};

@@ -7,6 +7,2 @@ import React from 'react';

/**
* The hexadecimal value for of the color
*/
color?: string;
/**
* The content

@@ -13,0 +9,0 @@ */

{
"name": "@cavilha/text",
"version": "0.0.0-alpha.4",
"version": "0.0.0-alpha.5",
"author": "MadeiraMadeira webstore squads",

@@ -62,9 +62,11 @@ "license": "ISC",

},
"dependencies": {
"@cavilha/theme": "0.0.0-alpha.4",
"@radix-ui/react-polymorphic": "0.0.13",
"peerDependencies": {
"@stitches/react": "v0.2.2",
"react": "^17.0.1",
"react-dom": "^17.0.1"
},
"dependencies": {
"@cavilha/theme": "0.0.0-alpha.4",
"@radix-ui/react-polymorphic": "0.0.13"
}
}
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