@purpurds/heading
Advanced tools
Comparing version 4.1.1 to 4.2.0
@@ -1,6 +0,6 @@ | ||
"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:{}};/*! | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react/jsx-runtime");function c(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var d={exports:{}};/*! | ||
Copyright (c) 2018 Jed Watson. | ||
Licensed under the MIT License (MIT), see | ||
http://jedwatson.github.io/classnames | ||
*/(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; | ||
*/(function(r){(function(){var s={}.hasOwnProperty;function n(){for(var t="",e=0;e<arguments.length;e++){var i=arguments[e];i&&(t=p(t,l(i)))}return t}function l(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)s.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 f=c(y),a={"purpur-heading":"_purpur-heading_1g237_1","purpur-heading--hyphens":"_purpur-heading--hyphens_1g237_8","purpur-heading--negative":"_purpur-heading--negative_1g237_11","purpur-heading--subsection-100":"_purpur-heading--subsection-100_1g237_14","purpur-heading--title-100":"_purpur-heading--title-100_1g237_20","purpur-heading--title-200":"_purpur-heading--title-200_1g237_26","purpur-heading--title-300":"_purpur-heading--title-300_1g237_32","purpur-heading--title-400":"_purpur-heading--title-400_1g237_38","purpur-heading--title-500":"_purpur-heading--title-500_1g237_44","purpur-heading--title-600":"_purpur-heading--title-600_1g237_50","purpur-heading--title-700":"_purpur-heading--title-700_1g237_56","purpur-heading--display-25":"_purpur-heading--display-25_1g237_62","purpur-heading--display-50":"_purpur-heading--display-50_1g237_68","purpur-heading--display-100":"_purpur-heading--display-100_1g237_74","purpur-heading--display-200":"_purpur-heading--display-200_1g237_80"},T={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6"},g={TITLE100:"title-100",TITLE200:"title-200",TITLE300:"title-300",TITLE400:"title-400",TITLE500:"title-500",TITLE600:"title-600",TITLE700:"title-700",SUBSECTION100:"subsection-100"},I={DISPLAY25:"display-25",DISPLAY50:"display-50",DISPLAY100:"display-100",DISPLAY200:"display-200"},u="purpur-heading",S=({["data-testid"]:r,children:s,className:n="",enableHyphenation:l=!1,negative:p=!1,tag:t,variant:e=g.TITLE100,...i})=>{const o=t,h=f([n,a[u],a[`${u}--${e}`],{[a[`${u}--hyphens`]]:l,[a[`${u}--negative`]]:p}]);return _.jsx(o,{...i,className:h,"data-testid":r,children:s})};exports.DisplayVariant=I;exports.Heading=S;exports.HeadingTag=T;exports.TitleVariant=g; | ||
//# sourceMappingURL=heading.cjs.js.map |
@@ -34,6 +34,7 @@ import React, { ComponentProps, ReactNode } from "react"; | ||
enableHyphenation?: boolean; | ||
negative?: boolean; | ||
tag: HeadingTagType; | ||
variant?: TitleVariantType | DisplayVariantType; | ||
}; | ||
export declare const Heading: ({ ["data-testid"]: dataTestid, children, className, enableHyphenation, tag, variant, ...props }: HeadingProps) => React.JSX.Element; | ||
export declare const Heading: ({ ["data-testid"]: dataTestid, children, className, enableHyphenation, negative, tag, variant, ...props }: HeadingProps) => React.JSX.Element; | ||
//# sourceMappingURL=heading.d.ts.map |
@@ -1,6 +0,6 @@ | ||
import { jsx as o } from "react/jsx-runtime"; | ||
function _(e) { | ||
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; | ||
import { jsx as h } from "react/jsx-runtime"; | ||
function _(r) { | ||
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r; | ||
} | ||
var l = { exports: {} }; | ||
var d = { exports: {} }; | ||
/*! | ||
@@ -11,13 +11,13 @@ Copyright (c) 2018 Jed Watson. | ||
*/ | ||
(function(e) { | ||
(function(r) { | ||
(function() { | ||
var n = {}.hasOwnProperty; | ||
var s = {}.hasOwnProperty; | ||
function p() { | ||
for (var t = "", r = 0; r < arguments.length; r++) { | ||
var i = arguments[r]; | ||
i && (t = a(t, u(i))); | ||
for (var t = "", e = 0; e < arguments.length; e++) { | ||
var i = arguments[e]; | ||
i && (t = n(t, l(i))); | ||
} | ||
return t; | ||
} | ||
function u(t) { | ||
function l(t) { | ||
if (typeof t == "string" || typeof t == "number") | ||
@@ -31,30 +31,31 @@ return t; | ||
return t.toString(); | ||
var r = ""; | ||
var e = ""; | ||
for (var i in t) | ||
n.call(t, i) && t[i] && (r = a(r, i)); | ||
return r; | ||
s.call(t, i) && t[i] && (e = n(e, i)); | ||
return e; | ||
} | ||
function a(t, r) { | ||
return r ? t ? t + " " + r : t + r : t; | ||
function n(t, e) { | ||
return e ? t ? t + " " + e : t + e : t; | ||
} | ||
e.exports ? (p.default = p, e.exports = p) : window.classNames = p; | ||
r.exports ? (p.default = p, r.exports = p) : window.classNames = p; | ||
})(); | ||
})(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 = { | ||
})(d); | ||
var c = d.exports; | ||
const f = /* @__PURE__ */ _(c), u = { | ||
"purpur-heading": "_purpur-heading_1g237_1", | ||
"purpur-heading--hyphens": "_purpur-heading--hyphens_1g237_8", | ||
"purpur-heading--negative": "_purpur-heading--negative_1g237_11", | ||
"purpur-heading--subsection-100": "_purpur-heading--subsection-100_1g237_14", | ||
"purpur-heading--title-100": "_purpur-heading--title-100_1g237_20", | ||
"purpur-heading--title-200": "_purpur-heading--title-200_1g237_26", | ||
"purpur-heading--title-300": "_purpur-heading--title-300_1g237_32", | ||
"purpur-heading--title-400": "_purpur-heading--title-400_1g237_38", | ||
"purpur-heading--title-500": "_purpur-heading--title-500_1g237_44", | ||
"purpur-heading--title-600": "_purpur-heading--title-600_1g237_50", | ||
"purpur-heading--title-700": "_purpur-heading--title-700_1g237_56", | ||
"purpur-heading--display-25": "_purpur-heading--display-25_1g237_62", | ||
"purpur-heading--display-50": "_purpur-heading--display-50_1g237_68", | ||
"purpur-heading--display-100": "_purpur-heading--display-100_1g237_74", | ||
"purpur-heading--display-200": "_purpur-heading--display-200_1g237_80" | ||
}, I = { | ||
H1: "h1", | ||
@@ -66,3 +67,3 @@ H2: "h2", | ||
H6: "h6" | ||
}, g = { | ||
}, y = { | ||
TITLE100: "title-100", | ||
@@ -76,3 +77,3 @@ TITLE200: "title-200", | ||
SUBSECTION100: "subsection-100" | ||
}, T = { | ||
}, L = { | ||
DISPLAY25: "display-25", | ||
@@ -82,27 +83,29 @@ DISPLAY50: "display-50", | ||
DISPLAY200: "display-200" | ||
}, h = "purpur-heading", I = ({ | ||
["data-testid"]: e, | ||
children: n, | ||
}, a = "purpur-heading", m = ({ | ||
["data-testid"]: r, | ||
children: s, | ||
className: p = "", | ||
enableHyphenation: u = !1, | ||
tag: a, | ||
variant: t = g.TITLE100, | ||
...r | ||
enableHyphenation: l = !1, | ||
negative: n = !1, | ||
tag: t, | ||
variant: e = y.TITLE100, | ||
...i | ||
}) => { | ||
const i = a, d = c([ | ||
const g = t, o = f([ | ||
p, | ||
s[h], | ||
s[`${h}--${t}`], | ||
u[a], | ||
u[`${a}--${e}`], | ||
{ | ||
[s[`${h}--hyphens`]]: u | ||
[u[`${a}--hyphens`]]: l, | ||
[u[`${a}--negative`]]: n | ||
} | ||
]); | ||
return /* @__PURE__ */ o(i, { ...r, className: d, "data-testid": e, children: n }); | ||
return /* @__PURE__ */ h(g, { ...i, className: o, "data-testid": r, children: s }); | ||
}; | ||
export { | ||
T as DisplayVariant, | ||
I as Heading, | ||
b as HeadingTag, | ||
g as TitleVariant | ||
L as DisplayVariant, | ||
m as Heading, | ||
I as HeadingTag, | ||
y as TitleVariant | ||
}; | ||
//# sourceMappingURL=heading.es.js.map |
{ | ||
"name": "@purpurds/heading", | ||
"version": "4.1.1", | ||
"version": "4.2.0", | ||
"license": "AGPL-3.0-only", | ||
@@ -18,3 +18,3 @@ "main": "./dist/heading.cjs.js", | ||
"classnames": "~2.5.0", | ||
"@purpurds/tokens": "4.1.1" | ||
"@purpurds/tokens": "4.2.0" | ||
}, | ||
@@ -21,0 +21,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
37315
322
+ Added@purpurds/tokens@4.2.0(transitive)
- Removed@purpurds/tokens@4.1.1(transitive)
Updated@purpurds/tokens@4.2.0