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

@purpurds/heading

Package Overview
Dependencies
Maintainers
2
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@purpurds/heading - npm Package Compare versions

Comparing version 3.7.1 to 4.0.0

4

dist/heading.cjs.js

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

"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime");function _(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var d={exports:{}};/*!
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react/jsx-runtime");function f(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var h={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(r){(function(){var a={}.hasOwnProperty;function n(){for(var t="",e=0;e<arguments.length;e++){var i=arguments[e];i&&(t=p(t,u(i)))}return t}function u(t){if(typeof t=="string"||typeof t=="number")return t;if(typeof t!="object")return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var i in t)a.call(t,i)&&t[i]&&(e=p(e,i));return e}function p(t,e){return e?t?t+" "+e:t+e:t}r.exports?(n.default=n,r.exports=n):window.classNames=n})()})(d);var y=d.exports;const g=_(y),s={"purpur-heading":"_purpur-heading_2c2y0_1","purpur-heading--hyphens":"_purpur-heading--hyphens_2c2y0_8","purpur-heading--subsection-100":"_purpur-heading--subsection-100_2c2y0_11","purpur-heading--title-100":"_purpur-heading--title-100_2c2y0_17","purpur-heading--title-200":"_purpur-heading--title-200_2c2y0_23","purpur-heading--title-300":"_purpur-heading--title-300_2c2y0_29","purpur-heading--title-400":"_purpur-heading--title-400_2c2y0_35","purpur-heading--title-500":"_purpur-heading--title-500_2c2y0_41","purpur-heading--title-600":"_purpur-heading--title-600_2c2y0_47","purpur-heading--title-700":"_purpur-heading--title-700_2c2y0_53","purpur-heading--display-25":"_purpur-heading--display-25_2c2y0_59","purpur-heading--display-50":"_purpur-heading--display-50_2c2y0_65","purpur-heading--display-100":"_purpur-heading--display-100_2c2y0_71","purpur-heading--display-200":"_purpur-heading--display-200_2c2y0_77"},f={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6"},c={TITLE100:"title-100",TITLE200:"title-200",TITLE300:"title-300",TITLE400:"title-400",TITLE500:"title-500",TITLE600:"title-600",TITLE700:"title-700",SUBSECTION100:"subsection-100"},T={DISPLAY25:"display-25",DISPLAY50:"display-50",DISPLAY100:"display-100",DISPLAY200:"display-200"},l="purpur-heading",I=({["data-testid"]:r,children:a,className:n="",enableHyphenation:u=!1,tag:p,variant:t=c.TITLE100,...e})=>{const i=p,o=g([n,s[l],s[`${l}--${t}`],{[s[`${l}--hyphens`]]:u}]);return h.jsx(i,{...e,className:o,"data-testid":r,children:a})};exports.DisplayVariant=T;exports.Heading=I;exports.HeadingTag=f;exports.TitleVariant=c;
*/(function(r){(function(){var p={}.hasOwnProperty;function a(){for(var t="",e=0;e<arguments.length;e++){var i=arguments[e];i&&(t=n(t,u(i)))}return t}function u(t){if(typeof t=="string"||typeof t=="number")return t;if(typeof t!="object")return"";if(Array.isArray(t))return a.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var i in t)p.call(t,i)&&t[i]&&(e=n(e,i));return e}function n(t,e){return e?t?t+" "+e:t+e:t}r.exports?(a.default=a,r.exports=a):window.classNames=a})()})(h);var c=h.exports;const g=f(c),s={"purpur-heading":"_purpur-heading_1abfh_1","purpur-heading--hyphens":"_purpur-heading--hyphens_1abfh_8","purpur-heading--subsection-100":"_purpur-heading--subsection-100_1abfh_11","purpur-heading--title-100":"_purpur-heading--title-100_1abfh_17","purpur-heading--title-200":"_purpur-heading--title-200_1abfh_23","purpur-heading--title-300":"_purpur-heading--title-300_1abfh_29","purpur-heading--title-400":"_purpur-heading--title-400_1abfh_35","purpur-heading--title-500":"_purpur-heading--title-500_1abfh_41","purpur-heading--title-600":"_purpur-heading--title-600_1abfh_47","purpur-heading--title-700":"_purpur-heading--title-700_1abfh_53","purpur-heading--display-25":"_purpur-heading--display-25_1abfh_59","purpur-heading--display-50":"_purpur-heading--display-50_1abfh_65","purpur-heading--display-100":"_purpur-heading--display-100_1abfh_71","purpur-heading--display-200":"_purpur-heading--display-200_1abfh_77"},y={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6"},d={TITLE100:"title-100",TITLE200:"title-200",TITLE300:"title-300",TITLE400:"title-400",TITLE500:"title-500",TITLE600:"title-600",TITLE700:"title-700",SUBSECTION100:"subsection-100"},b={DISPLAY25:"display-25",DISPLAY50:"display-50",DISPLAY100:"display-100",DISPLAY200:"display-200"},l="purpur-heading",T=({["data-testid"]:r,children:p,className:a="",enableHyphenation:u=!1,tag:n,variant:t=d.TITLE100,...e})=>{const i=n,o=g([a,s[l],s[`${l}--${t}`],{[s[`${l}--hyphens`]]:u}]);return _.jsx(i,{...e,className:o,"data-testid":r,children:p})};exports.DisplayVariant=b;exports.Heading=T;exports.HeadingTag=y;exports.TitleVariant=d;
//# sourceMappingURL=heading.cjs.js.map

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

import { jsx as c } from "react/jsx-runtime";
function h(e) {
import { jsx as o } from "react/jsx-runtime";
function _(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var d = { exports: {} };
var l = { exports: {} };
/*!

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

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

@@ -33,6 +33,6 @@ return t;

for (var i in t)
u.call(t, i) && t[i] && (r = n(r, i));
n.call(t, i) && t[i] && (r = a(r, i));
return r;
}
function n(t, r) {
function a(t, r) {
return r ? t ? t + " " + r : t + r : t;

@@ -42,20 +42,20 @@ }

})();
})(d);
var _ = d.exports;
const y = /* @__PURE__ */ h(_), s = {
"purpur-heading": "_purpur-heading_2c2y0_1",
"purpur-heading--hyphens": "_purpur-heading--hyphens_2c2y0_8",
"purpur-heading--subsection-100": "_purpur-heading--subsection-100_2c2y0_11",
"purpur-heading--title-100": "_purpur-heading--title-100_2c2y0_17",
"purpur-heading--title-200": "_purpur-heading--title-200_2c2y0_23",
"purpur-heading--title-300": "_purpur-heading--title-300_2c2y0_29",
"purpur-heading--title-400": "_purpur-heading--title-400_2c2y0_35",
"purpur-heading--title-500": "_purpur-heading--title-500_2c2y0_41",
"purpur-heading--title-600": "_purpur-heading--title-600_2c2y0_47",
"purpur-heading--title-700": "_purpur-heading--title-700_2c2y0_53",
"purpur-heading--display-25": "_purpur-heading--display-25_2c2y0_59",
"purpur-heading--display-50": "_purpur-heading--display-50_2c2y0_65",
"purpur-heading--display-100": "_purpur-heading--display-100_2c2y0_71",
"purpur-heading--display-200": "_purpur-heading--display-200_2c2y0_77"
}, T = {
})(l);
var f = l.exports;
const c = /* @__PURE__ */ _(f), s = {
"purpur-heading": "_purpur-heading_1abfh_1",
"purpur-heading--hyphens": "_purpur-heading--hyphens_1abfh_8",
"purpur-heading--subsection-100": "_purpur-heading--subsection-100_1abfh_11",
"purpur-heading--title-100": "_purpur-heading--title-100_1abfh_17",
"purpur-heading--title-200": "_purpur-heading--title-200_1abfh_23",
"purpur-heading--title-300": "_purpur-heading--title-300_1abfh_29",
"purpur-heading--title-400": "_purpur-heading--title-400_1abfh_35",
"purpur-heading--title-500": "_purpur-heading--title-500_1abfh_41",
"purpur-heading--title-600": "_purpur-heading--title-600_1abfh_47",
"purpur-heading--title-700": "_purpur-heading--title-700_1abfh_53",
"purpur-heading--display-25": "_purpur-heading--display-25_1abfh_59",
"purpur-heading--display-50": "_purpur-heading--display-50_1abfh_65",
"purpur-heading--display-100": "_purpur-heading--display-100_1abfh_71",
"purpur-heading--display-200": "_purpur-heading--display-200_1abfh_77"
}, b = {
H1: "h1",

@@ -76,3 +76,3 @@ H2: "h2",

SUBSECTION100: "subsection-100"
}, I = {
}, T = {
DISPLAY25: "display-25",

@@ -82,27 +82,27 @@ DISPLAY50: "display-50",

DISPLAY200: "display-200"
}, l = "purpur-heading", L = ({
}, h = "purpur-heading", I = ({
["data-testid"]: e,
children: u,
children: n,
className: p = "",
enableHyphenation: a = !1,
tag: n,
enableHyphenation: u = !1,
tag: a,
variant: t = g.TITLE100,
...r
}) => {
const i = n, o = y([
const i = a, d = c([
p,
s[l],
s[`${l}--${t}`],
s[h],
s[`${h}--${t}`],
{
[s[`${l}--hyphens`]]: a
[s[`${h}--hyphens`]]: u
}
]);
return /* @__PURE__ */ c(i, { ...r, className: o, "data-testid": e, children: u });
return /* @__PURE__ */ o(i, { ...r, className: d, "data-testid": e, children: n });
};
export {
I as DisplayVariant,
L as Heading,
T as HeadingTag,
T as DisplayVariant,
I as Heading,
b as HeadingTag,
g as TitleVariant
};
//# sourceMappingURL=heading.es.js.map
{
"name": "@purpurds/heading",
"version": "3.7.1",
"version": "4.0.0",
"license": "AGPL-3.0-only",

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

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

@@ -20,3 +19,3 @@ "default": "./dist/heading.es.js"

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

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

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

@@ -53,0 +52,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