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
78
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 4.1.1 to 4.2.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 h={exports:{}};/*!
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react/jsx-runtime");function d(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})()})(h);var d=h.exports;const b=_(d),o={"purpur-paragraph":"_purpur-paragraph_5wbko_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_5wbko_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_5wbko_10","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_5wbko_13","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_5wbko_19","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_5wbko_26","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_5wbko_33","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_5wbko_39","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_5wbko_45","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_5wbko_51","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_5wbko_57","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_5wbko_64","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_5wbko_72"},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"},n="purpur-paragraph",c=({["data-testid"]:p,children:s,className:u="",disabled:i,enableHyphenation:t=!1,variant:r=l.PARAGRAPH100,...a})=>{const e=b([u,o[n],o[`${n}--${r}`],{[o[`${n}--hyphens`]]:t,[o[`${n}--disabled`]]:i}]);return g.jsx("p",{...a,className:e,"data-testid":p,children:s})};exports.Paragraph=c;exports.ParagraphVariant=l;
*/(function(p){(function(){var s={}.hasOwnProperty;function e(){for(var r="",a=0;a<arguments.length;a++){var u=arguments[a];u&&(r=i(r,o(u)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return e.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var a="";for(var u in r)s.call(r,u)&&r[u]&&(a=i(a,u));return a}function i(r,a){return a?r?r+" "+a:r+a:r}p.exports?(e.default=e,p.exports=e):window.classNames=e})()})(h);var c=h.exports;const m=d(c),t={"purpur-paragraph":"_purpur-paragraph_15yuz_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_15yuz_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_15yuz_10","purpur-paragraph--negative":"_purpur-paragraph--negative_15yuz_13","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_15yuz_16","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_15yuz_22","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_15yuz_29","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_15yuz_36","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_15yuz_42","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_15yuz_48","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_15yuz_54","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_15yuz_60","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_15yuz_67","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_15yuz_75"},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"},n="purpur-paragraph",y=({["data-testid"]:p,children:s,className:e="",disabled:o,enableHyphenation:i=!1,negative:r=!1,variant:a=l.PARAGRAPH100,...u})=>{const g=m([e,t[n],t[`${n}--${a}`],{[t[`${n}--hyphens`]]:i,[t[`${n}--disabled`]]:o,[t[`${n}--negative`]]:r}]);return _.jsx("p",{...u,className:g,"data-testid":p,children:s})};exports.Paragraph=y;exports.ParagraphVariant=l;
//# sourceMappingURL=paragraph.cjs.js.map

@@ -20,6 +20,7 @@ import React, { ParamHTMLAttributes, ReactNode } from "react";

enableHyphenation?: boolean;
negative?: boolean;
disabled?: boolean;
variant?: ParagraphVariant;
};
export declare const Paragraph: ({ ["data-testid"]: dataTestid, children, className, disabled, enableHyphenation, variant, ...props }: ParagraphProps) => React.JSX.Element;
export declare const Paragraph: ({ ["data-testid"]: dataTestid, children, className, disabled, enableHyphenation, negative, variant, ...props }: ParagraphProps) => React.JSX.Element;
//# sourceMappingURL=paragraph.d.ts.map

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

import { jsx as l } from "react/jsx-runtime";
import { jsx as g } from "react/jsx-runtime";
function _(p) {

@@ -13,11 +13,11 @@ return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, "default") ? p.default : p;

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

@@ -28,32 +28,33 @@ return r;

if (Array.isArray(r))
return u.apply(null, r);
return e.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));
for (var u in r)
i.call(r, u) && r[u] && (a = s(a, u));
return a;
}
function t(r, a) {
function s(r, a) {
return a ? r ? r + " " + a : r + a : r;
}
p.exports ? (u.default = u, p.exports = u) : window.classNames = u;
p.exports ? (e.default = e, p.exports = e) : window.classNames = e;
})();
})(h);
var g = h.exports;
const d = /* @__PURE__ */ _(g), o = {
"purpur-paragraph": "_purpur-paragraph_5wbko_1",
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_5wbko_7",
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_5wbko_10",
"purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_5wbko_13",
"purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_5wbko_19",
"purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_5wbko_26",
"purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_5wbko_33",
"purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_5wbko_39",
"purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_5wbko_45",
"purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_5wbko_51",
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_5wbko_57",
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_5wbko_64",
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_5wbko_72"
}, b = {
var d = h.exports;
const m = /* @__PURE__ */ _(d), t = {
"purpur-paragraph": "_purpur-paragraph_15yuz_1",
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_15yuz_7",
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_15yuz_10",
"purpur-paragraph--negative": "_purpur-paragraph--negative_15yuz_13",
"purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_15yuz_16",
"purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_15yuz_22",
"purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_15yuz_29",
"purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_15yuz_36",
"purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_15yuz_42",
"purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_15yuz_48",
"purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_15yuz_54",
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_15yuz_60",
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_15yuz_67",
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_15yuz_75"
}, c = {
PARAGRAPH100: "paragraph-100",

@@ -69,26 +70,28 @@ PARAGRAPH100MEDIUM: "paragraph-100-medium",

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

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

"classnames": "~2.5.0",
"@purpurds/tokens": "4.1.1"
"@purpurds/tokens": "4.2.0"
},

@@ -22,0 +22,0 @@ "devDependencies": {

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

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

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