@purpurds/field-error-text 3.1.0 → 3.3.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.
- package/dist/LICENSE.txt +1 -1
- package/dist/field-error-text.cjs.js +2 -2
- package/dist/field-error-text.cjs.js.map +1 -1
- package/dist/field-error-text.es.js +7 -7
- package/dist/field-error-text.es.js.map +1 -1
- package/dist/field-error-text.system.js +3 -3
- package/dist/field-error-text.system.js.map +1 -1
- package/package.json +4 -4
package/dist/LICENSE.txt
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
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=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(_),
|
|
5
|
+
*/(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(_),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"},x={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(g),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:{}};/*!
|
|
6
6
|
Copyright (c) 2018 Jed Watson.
|
|
7
7
|
Licensed under the MIT License (MIT), see
|
|
8
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=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 q=O($),p={"purpur-field-error-text":"_purpur-field-error-text_1h4gy_1","purpur-field-error-text__icon":"_purpur-field-error-text__icon_1h4gy_12"},c="purpur-field-error-text",N=({["data-testid"]:t,children:i,className:n,relevant:u="additions text",...o})=>l.jsxs("div",{className:q([n,p[c]]),"data-testid":t,"aria-live":"assertive","aria-relevant":u,...o,children:[l.jsx(S,{svg:
|
|
9
|
+
*/(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 q=O($),p={"purpur-field-error-text":"_purpur-field-error-text_1h4gy_1","purpur-field-error-text__icon":"_purpur-field-error-text__icon_1h4gy_12"},c="purpur-field-error-text",N=({["data-testid"]:t,children:i,className:n,relevant:u="additions text",...o})=>l.jsxs("div",{className:q([n,p[c]]),"data-testid":t,"aria-live":"assertive","aria-relevant":u,...o,children:[l.jsx(S,{svg:x,size:"xs",className:p[`${c}__icon`]}),i]});exports.FieldErrorText=N;
|
|
10
10
|
//# sourceMappingURL=field-error-text.cjs.js.map
|