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

@purpurds/paragraph

Package Overview
Dependencies
Maintainers
2
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@purpurds/paragraph - npm Package Compare versions

Comparing version 3.7.1 to 4.0.0

4

dist/paragraph.cjs.js

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

"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime");function _(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}var o={exports:{}};/*!
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime");function _(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}var h={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(p){(function(){var s={}.hasOwnProperty;function u(){for(var r="",a=0;a<arguments.length;a++){var e=arguments[a];e&&(r=t(r,i(e)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return u.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var a="";for(var e in r)s.call(r,e)&&r[e]&&(a=t(a,e));return a}function t(r,a){return a?r?r+" "+a:r+a:r}p.exports?(u.default=u,p.exports=u):window.classNames=u})()})(o);var d=o.exports;const c=_(d),n={"purpur-paragraph":"_purpur-paragraph_hwaj6_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_hwaj6_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_hwaj6_10","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_hwaj6_13","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_hwaj6_19","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_hwaj6_26","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_hwaj6_33","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_hwaj6_39","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_hwaj6_45","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_hwaj6_51","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_hwaj6_57","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_hwaj6_64","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_hwaj6_71"},l={PARAGRAPH100:"paragraph-100",PARAGRAPH100MEDIUM:"paragraph-100-medium",PARAGRAPH100BOLD:"paragraph-100-bold",PARAGRAPH200:"paragraph-200",PREAMBLE100:"preamble-100",PREAMBLE200:"preamble-200",ADDITIONAL100:"additional-100",ADDITIONAL100MEDIUM:"additional-100-medium",OVERLINE100:"overline-100",OVERLINE200:"overline-200"},h="purpur-paragraph",m=({["data-testid"]:p,children:s,className:u="",disabled:i,enableHyphenation:t=!1,variant:r=l.PARAGRAPH100,...a})=>{const e=c([u,n[h],n[`${h}--${r}`],{[n[`${h}--hyphens`]]:t,[n[`${h}--disabled`]]:i}]);return g.jsx("p",{...a,className:e,"data-testid":p,children:s})};exports.Paragraph=m;exports.ParagraphVariant=l;
*/(function(p){(function(){var i={}.hasOwnProperty;function u(){for(var r="",a=0;a<arguments.length;a++){var e=arguments[a];e&&(r=t(r,o(e)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return u.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var a="";for(var e in r)i.call(r,e)&&r[e]&&(a=t(a,e));return a}function t(r,a){return a?r?r+" "+a:r+a:r}p.exports?(u.default=u,p.exports=u):window.classNames=u})()})(h);var d=h.exports;const f=_(d),n={"purpur-paragraph":"_purpur-paragraph_1fzxr_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_1fzxr_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_1fzxr_10","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_1fzxr_13","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_1fzxr_19","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_1fzxr_26","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_1fzxr_33","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_1fzxr_39","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_1fzxr_45","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_1fzxr_51","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_1fzxr_57","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_1fzxr_64","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_1fzxr_71"},l={PARAGRAPH100:"paragraph-100",PARAGRAPH100MEDIUM:"paragraph-100-medium",PARAGRAPH100BOLD:"paragraph-100-bold",PARAGRAPH200:"paragraph-200",PREAMBLE100:"preamble-100",PREAMBLE200:"preamble-200",ADDITIONAL100:"additional-100",ADDITIONAL100MEDIUM:"additional-100-medium",OVERLINE100:"overline-100",OVERLINE200:"overline-200"},s="purpur-paragraph",c=({["data-testid"]:p,children:i,className:u="",disabled:o,enableHyphenation:t=!1,variant:r=l.PARAGRAPH100,...a})=>{const e=f([u,n[s],n[`${s}--${r}`],{[n[`${s}--hyphens`]]:t,[n[`${s}--disabled`]]:o}]);return g.jsx("p",{...a,className:e,"data-testid":p,children:i})};exports.Paragraph=c;exports.ParagraphVariant=l;
//# sourceMappingURL=paragraph.cjs.js.map

@@ -5,3 +5,3 @@ import { jsx as l } from "react/jsx-runtime";

}
var i = { exports: {} };
var h = { exports: {} };
/*!

@@ -14,11 +14,11 @@ Copyright (c) 2018 Jed Watson.

(function() {
var o = {}.hasOwnProperty;
var s = {}.hasOwnProperty;
function u() {
for (var r = "", a = 0; a < arguments.length; a++) {
var e = arguments[a];
e && (r = t(r, s(e)));
e && (r = t(r, i(e)));
}
return r;
}
function s(r) {
function i(r) {
if (typeof r == "string" || typeof r == "number")

@@ -34,3 +34,3 @@ return r;

for (var e in r)
o.call(r, e) && r[e] && (a = t(a, e));
s.call(r, e) && r[e] && (a = t(a, e));
return a;

@@ -43,19 +43,19 @@ }

})();
})(i);
var g = i.exports;
const d = /* @__PURE__ */ _(g), h = {
"purpur-paragraph": "_purpur-paragraph_hwaj6_1",
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_hwaj6_7",
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_hwaj6_10",
"purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_hwaj6_13",
"purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_hwaj6_19",
"purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_hwaj6_26",
"purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_hwaj6_33",
"purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_hwaj6_39",
"purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_hwaj6_45",
"purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_hwaj6_51",
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_hwaj6_57",
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_hwaj6_64",
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_hwaj6_71"
}, m = {
})(h);
var f = h.exports;
const g = /* @__PURE__ */ _(f), n = {
"purpur-paragraph": "_purpur-paragraph_1fzxr_1",
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1fzxr_7",
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1fzxr_10",
"purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_1fzxr_13",
"purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_1fzxr_19",
"purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_1fzxr_26",
"purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_1fzxr_33",
"purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_1fzxr_39",
"purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_1fzxr_45",
"purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_1fzxr_51",
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1fzxr_57",
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1fzxr_64",
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1fzxr_71"
}, d = {
PARAGRAPH100: "paragraph-100",

@@ -71,26 +71,26 @@ PARAGRAPH100MEDIUM: "paragraph-100-medium",

OVERLINE200: "overline-200"
}, n = "purpur-paragraph", f = ({
}, o = "purpur-paragraph", c = ({
["data-testid"]: p,
children: o,
children: s,
className: u = "",
disabled: s,
disabled: i,
enableHyphenation: t = !1,
variant: r = m.PARAGRAPH100,
variant: r = d.PARAGRAPH100,
...a
}) => {
const e = d([
const e = g([
u,
h[n],
h[`${n}--${r}`],
n[o],
n[`${o}--${r}`],
{
[h[`${n}--hyphens`]]: t,
[h[`${n}--disabled`]]: s
[n[`${o}--hyphens`]]: t,
[n[`${o}--disabled`]]: i
}
]);
return /* @__PURE__ */ l("p", { ...a, className: e, "data-testid": p, children: o });
return /* @__PURE__ */ l("p", { ...a, className: e, "data-testid": p, children: s });
};
export {
f as Paragraph,
m as ParagraphVariant
c as Paragraph,
d as ParagraphVariant
};
//# sourceMappingURL=paragraph.es.js.map
{
"name": "@purpurds/paragraph",
"version": "3.7.1",
"version": "4.0.0",
"license": "AGPL-3.0-only",

@@ -10,3 +10,2 @@ "main": "./dist/paragraph.cjs.js",

"require": "./dist/paragraph.cjs.js",
"systemjs": "./dist/paragraph.system.js",
"types": "./dist/paragraph.d.ts",

@@ -21,3 +20,3 @@ "default": "./dist/paragraph.es.js"

"classnames": "~2.5.0",
"@purpurds/tokens": "3.7.1"
"@purpurds/tokens": "4.0.0"
},

@@ -51,3 +50,3 @@ "devDependencies": {

"build:watch": "vite build --watch",
"build": "rm -rf dist && vite build && vite build --mode systemjs",
"build": "vite build",
"ci:build": "rushx build",

@@ -54,0 +53,0 @@ "coverage": "vitest run --coverage",

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