@purpurds/field-error-text 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ System.register(["react","react/jsx-runtime"],function(_,A){"use strict";var a,c;return{setters:[o=>{a=o.default},o=>{c=o.jsx}],execute:function(){function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var p={exports:{}};/*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */(function(t){(function(){var i={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var s=arguments[e];s&&(r=l(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=l(e,this&&this[s]||s));return e}function l(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(p);var x=p.exports;const g=o(x),y={"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"},h={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"},w=g.bind(y),f="purpur-icon",j="md",S=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 ${S(n)}>${u}${t}</svg>`},O=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),$=({["data-testid"]:t,svg:i,allyTitle:n,className:u="",size:l=j,...r})=>{const e=b({content:O(i.svg),title:n}),s=w(u,f,`${f}--${l}`);return c("span",{"aria-label":n,className:s,"data-testid":t,dangerouslySetInnerHTML:{__html:e},...r})};function N(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var d={exports:{}};/*!
6
+ Copyright (c) 2018 Jed Watson.
7
+ Licensed under the MIT License (MIT), see
8
+ http://jedwatson.github.io/classnames
9
+ */(function(t){(function(){var i={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var s=arguments[e];s&&(r=l(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=l(e,s));return e}function l(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(d);var q=d.exports;const E=N(q),m={"purpur-field-error-text":"_purpur-field-error-text_1h4gy_1","purpur-field-error-text__icon":"_purpur-field-error-text__icon_1h4gy_12"},v="purpur-field-error-text",C=_("FieldErrorText",({["data-testid"]:t,children:i,className:n,relevant:u="additions text",...l})=>a.createElement("div",{className:E([n,m[v]]),"data-testid":t,"aria-live":"assertive","aria-relevant":u,...l},a.createElement($,{svg:h,size:"xs",className:m[`${v}__icon`]}),i))}}});
10
+ //# sourceMappingURL=field-error-text.system.js.map