@purpurds/field-error-text 5.20.0 → 5.21.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
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime");function
|
|
1
|
+
"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:{}};/*!
|
|
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
|
|
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 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:{}};/*!
|
|
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})()})(
|
|
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})()})(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;
|
|
10
10
|
//# sourceMappingURL=field-error-text.cjs.js.map
|