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

@purpurds/field-error-text

Package Overview
Dependencies
Maintainers
0
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@purpurds/field-error-text - npm Package Compare versions

Comparing version 5.20.1 to 5.21.0

6

dist/field-error-text.cjs.js

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

"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime");function v(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var f={exports:{}};/*!
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime");function m(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var f={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(t){(function(){var i={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var s=arguments[e];s&&(r=o(r,u.call(this,s)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var s in r)i.call(r,s)&&r[s]&&(e=o(e,this&&this[s]||s));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(f);var _=f.exports;const m=v(_),x={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},g={name:"error-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',keywords:["error-filled"],category:"status"},y=m.bind(x),a="purpur-icon",h="md",w=t=>t.filter(i=>Object.keys(i).length>=1).map(i=>`${i.name}="${i.value}"`).join(" "),b=({content:t="",title:i}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},i?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],u=i?`<title>${i}</title>`:"";return`<svg ${w(n)}>${u}${t}</svg>`},j=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),S=({["data-testid"]:t,svg:i,allyTitle:n,className:u,size:o=h,...r})=>{const e=b({content:j(i.svg),title:n}),s=y(u,a,`${a}--${o}`);return l.jsx("span",{"aria-label":n,className:s,"data-testid":t,dangerouslySetInnerHTML:{__html:e},...r})};function O(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var d={exports:{}};/*!
*/(function(t){(function(){var i={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var s=arguments[e];s&&(r=o(r,u.call(this,s)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var s in r)i.call(r,s)&&r[s]&&(e=o(e,this&&this[s]||s));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(f);var _=f.exports;const x=m(_),g={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},y={name:"error-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',keywords:["error-filled"],category:"status"},h=x.bind(g),a="purpur-icon",w="md",b=t=>t.filter(i=>Object.keys(i).length>=1).map(i=>`${i.name}="${i.value}"`).join(" "),j=({content:t="",title:i}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},i?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],u=i?`<title>${i}</title>`:"";return`<svg ${b(n)}>${u}${t}</svg>`},S=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),d=({["data-testid"]:t,svg:i,allyTitle:n,className:u,size:o=w,...r})=>{const e=j({content:S(i.svg),title:n}),s=h(u,a,`${a}--${o}`);return l.jsx("span",{"aria-label":n,className:s,"data-testid":t,dangerouslySetInnerHTML:{__html:e},...r})};d.displayName="Icon";function O(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var v={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(t){(function(){var i={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var s=arguments[e];s&&(r=o(r,u(s)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var s in r)i.call(r,s)&&r[s]&&(e=o(e,s));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(d);var $=d.exports;const N=O($),p={"purpur-field-error-text":"_purpur-field-error-text_1u768_1","purpur-field-error-text__icon":"_purpur-field-error-text__icon_1u768_12"},c="purpur-field-error-text",q=({["data-testid"]:t,children:i,className:n,relevant:u="additions text",...o})=>l.jsxs("div",{className:N([n,p[c]]),"data-testid":t,"aria-live":"assertive","aria-relevant":u,...o,children:[l.jsx(S,{svg:g,size:"xs",className:p[`${c}__icon`]}),i]});exports.FieldErrorText=q;
*/(function(t){(function(){var i={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var s=arguments[e];s&&(r=o(r,u(s)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var s in r)i.call(r,s)&&r[s]&&(e=o(e,s));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(v);var N=v.exports;const $=O(N),p={"purpur-field-error-text":"_purpur-field-error-text_1u768_1","purpur-field-error-text__icon":"_purpur-field-error-text__icon_1u768_12"},c="purpur-field-error-text",q=({["data-testid"]:t,children:i,className:n,relevant:u="additions text",...o})=>l.jsxs("div",{className:$([n,p[c]]),"data-testid":t,"aria-live":"assertive","aria-relevant":u,...o,children:[l.jsx(d,{svg:y,size:"xs",className:p[`${c}__icon`]}),i]});exports.FieldErrorText=q;
//# sourceMappingURL=field-error-text.cjs.js.map

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

import { jsx as c, jsxs as v } from "react/jsx-runtime";
import { jsx as c, jsxs as m } from "react/jsx-runtime";
function _(t) {

@@ -41,4 +41,4 @@ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;

})(f);
var m = f.exports;
const x = /* @__PURE__ */ _(m), g = {
var x = f.exports;
const g = /* @__PURE__ */ _(x), y = {
"purpur-icon": "_purpur-icon_8u1lq_1",

@@ -51,3 +51,3 @@ "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",

"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
}, y = {
}, h = {
name: "error-filled",

@@ -57,3 +57,3 @@ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',

category: "status"
}, h = x.bind(g), l = "purpur-icon", w = "md", b = (t) => t.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), j = ({ content: t = "", title: i } = {}) => {
}, w = g.bind(y), l = "purpur-icon", b = "md", j = (t) => t.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), S = ({ content: t = "", title: i } = {}) => {
const n = [

@@ -65,4 +65,4 @@ { name: "xmlns", value: "http://www.w3.org/2000/svg" },

], u = i ? `<title>${i}</title>` : "";
return `<svg ${b(n)}>${u}${t}</svg>`;
}, S = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), O = ({
return `<svg ${j(n)}>${u}${t}</svg>`;
}, N = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), d = ({
["data-testid"]: t,

@@ -72,9 +72,9 @@ svg: i,

className: u,
size: o = w,
size: o = b,
...r
}) => {
const e = j({
content: S(i.svg),
const e = S({
content: N(i.svg),
title: n
}), s = h(u, l, `${l}--${o}`);
}), s = w(u, l, `${l}--${o}`);
return /* @__PURE__ */ c(

@@ -91,6 +91,7 @@ "span",

};
function $(t) {
d.displayName = "Icon";
function O(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var d = { exports: {} };
var v = { exports: {} };
/*!

@@ -130,5 +131,5 @@ Copyright (c) 2018 Jed Watson.

})();
})(d);
var N = d.exports;
const q = /* @__PURE__ */ $(N), a = {
})(v);
var $ = v.exports;
const q = /* @__PURE__ */ O($), a = {
"purpur-field-error-text": "_purpur-field-error-text_1u768_1",

@@ -142,3 +143,3 @@ "purpur-field-error-text__icon": "_purpur-field-error-text__icon_1u768_12"

...o
}) => /* @__PURE__ */ v(
}) => /* @__PURE__ */ m(
"div",

@@ -152,3 +153,3 @@ {

children: [
/* @__PURE__ */ c(O, { svg: y, size: "xs", className: a[`${p}__icon`] }),
/* @__PURE__ */ c(d, { svg: h, size: "xs", className: a[`${p}__icon`] }),
i

@@ -155,0 +156,0 @@ ]

Name: @purpurds/icon
Version: 5.20.0
Version: 5.20.1
License: AGPL-3.0-only

@@ -4,0 +4,0 @@ Private: false

{
"name": "@purpurds/field-error-text",
"version": "5.20.1",
"version": "5.21.0",
"license": "AGPL-3.0-only",

@@ -18,10 +18,10 @@ "main": "./dist/field-error-text.cjs.js",

"classnames": "~2.5.0",
"@purpurds/icon": "5.20.1",
"@purpurds/paragraph": "5.20.1",
"@purpurds/tokens": "5.20.1"
"@purpurds/icon": "5.21.0",
"@purpurds/tokens": "5.21.0",
"@purpurds/paragraph": "5.21.0"
},
"devDependencies": {
"@rushstack/eslint-patch": "~1.10.0",
"@storybook/react": "^8.2.6",
"storybook": "^8.2.6",
"@storybook/react": "^8.3.5",
"storybook": "^8.3.5",
"@telia/base-rig": "~8.2.0",

@@ -42,5 +42,5 @@ "@telia/react-rig": "~3.2.0",

"react": "^18.3.1",
"typescript": "^5.5.4",
"vite": "5.3.4",
"vitest": "~1.5.0",
"typescript": "^5.6.3",
"vite": "5.4.8",
"vitest": "^2.1.2",
"@purpurds/component-rig": "1.0.0"

@@ -47,0 +47,0 @@ },

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