@purpurds/notification-banner 5.10.1 → 5.11.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,26 +1,26 @@
|
|
|
1
1
|
Name: @purpurds/button
|
|
2
|
-
Version: 5.10.
|
|
2
|
+
Version: 5.10.1
|
|
3
3
|
License: AGPL-3.0-only
|
|
4
4
|
Private: false
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Name: @purpurds/grid
|
|
9
|
-
Version: 5.10.
|
|
9
|
+
Version: 5.10.1
|
|
10
10
|
License: AGPL-3.0-only
|
|
11
11
|
Private: false
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
Name: @purpurds/heading
|
|
16
|
-
Version: 5.10.
|
|
16
|
+
Version: 5.10.1
|
|
17
17
|
License: AGPL-3.0-only
|
|
18
18
|
Private: false
|
|
19
19
|
|
|
20
20
|
---
|
|
21
21
|
|
|
22
22
|
Name: @purpurds/icon
|
|
23
|
-
Version: 5.10.
|
|
23
|
+
Version: 5.10.1
|
|
24
24
|
License: AGPL-3.0-only
|
|
25
25
|
Private: false
|
|
26
26
|
|
|
@@ -2,11 +2,11 @@
|
|
|
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(u){(function(){var e={}.hasOwnProperty;function i(){for(var r="",n=0;n<arguments.length;n++){var t=arguments[n];t&&(r=p(r,o(t)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return i.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var t in r)e.call(r,t)&&r[t]&&(n=p(n,t));return n}function p(r,n){return n?r?r+" "+n:r+n:r}u.exports?(i.default=i,u.exports=i):window.classNames=i})()})(k);var F=k.exports;const M=W(F),
|
|
5
|
+
*/(function(u){(function(){var e={}.hasOwnProperty;function i(){for(var r="",n=0;n<arguments.length;n++){var t=arguments[n];t&&(r=p(r,o(t)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return i.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var t in r)e.call(r,t)&&r[t]&&(n=p(n,t));return n}function p(r,n){return n?r?r+" "+n:r+n:r}u.exports?(i.default=i,u.exports=i):window.classNames=i})()})(k);var F=k.exports;const M=W(F),J="_rotate_1xozj_1",K="_dash_1xozj_1",y={"purpur-spinner":"_purpur-spinner_1xozj_1",rotate:J,"purpur-spinner--xxs":"_purpur-spinner--xxs_1xozj_4","purpur-spinner--xs":"_purpur-spinner--xs_1xozj_8","purpur-spinner--sm":"_purpur-spinner--sm_1xozj_12","purpur-spinner--md":"_purpur-spinner--md_1xozj_16","purpur-spinner--lg":"_purpur-spinner--lg_1xozj_20","purpur-spinner__circle":"_purpur-spinner__circle_1xozj_24",dash:K,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_1xozj_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_1xozj_36"},x="purpur-spinner",U={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},Q=({["data-testid"]:u,disabled:e=!1,negative:i=!1,size:o=U.SM,...p})=>_.jsx("div",{className:M([y[x],y[`${x}--${o}`]]),"data-testid":u,...p,children:_.jsx("svg",{viewBox:"0 0 50 50",children:_.jsx("circle",{className:M(y[`${x}__circle`],{[y[`${x}__circle--disabled`]]:e,[y[`${x}__circle--negative`]]:i}),cx:"25",cy:"25",r:"20"})})});function Y(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var I={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(u){(function(){var e={}.hasOwnProperty;function i(){for(var r="",n=0;n<arguments.length;n++){var t=arguments[n];t&&(r=p(r,o.call(this,t)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return i.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var t in r)e.call(r,t)&&r[t]&&(n=p(n,this&&this[t]||t));return n}function p(r,n){return n?r?r+" "+n:r+n:r}u.exports?(i.default=i,u.exports=i):window.classNames=i})()})(I);var rr=I.exports;const nr=Y(rr),ur={"purpur-button":"_purpur-button_u2yv5_1","purpur-button--sm":"_purpur-button--sm_u2yv5_33","purpur-button--icon-only":"_purpur-button--icon-only_u2yv5_36","purpur-button--md":"_purpur-button--md_u2yv5_39","purpur-button--lg":"_purpur-button--lg_u2yv5_45","purpur-button--full-width":"_purpur-button--full-width_u2yv5_51","purpur-button--primary":"_purpur-button--primary_u2yv5_54","purpur-button--disabled":"_purpur-button--disabled_u2yv5_58","purpur-button--primary-negative":"_purpur-button--primary-negative_u2yv5_64","purpur-button--secondary":"_purpur-button--secondary_u2yv5_76","purpur-button--secondary-negative":"_purpur-button--secondary-negative_u2yv5_87","purpur-button--expressive":"_purpur-button--expressive_u2yv5_98","purpur-button--expressive-negative":"_purpur-button--expressive-negative_u2yv5_108","purpur-button--negative":"_purpur-button--negative_u2yv5_120","purpur-button--destructive":"_purpur-button--destructive_u2yv5_127","purpur-button--destructive-negative":"_purpur-button--destructive-negative_u2yv5_137","purpur-button--tertiary-purple":"_purpur-button--tertiary-purple_u2yv5_147","purpur-button--tertiary-purple-negative":"_purpur-button--tertiary-purple-negative_u2yv5_160","purpur-button--text-negative":"_purpur-button--text-negative_u2yv5_175","purpur-button--text":"_purpur-button--text_u2yv5_175"},tr=nr.bind(ur),g="purpur-button",ir=({children:u,className:e,["data-testid"]:i,disabled:o=!1,fullWidth:p=!1,iconOnly:r,loading:n=!1,negative:t=!1,onClick:a,size:c=q.MD,variant:d,type:v="button",...l},h)=>{if(r&&d==="destructive")return null;const S=tr([g,`${g}--${t?`${d}-negative`:d}`,`${g}--${c}`],{[`${g}--icon-only`]:r,[`${g}--negative`]:t,[`${g}--full-width`]:p,[`${g}--disabled`]:o||n},e),N=O=>{o||n?O.preventDefault():a&&a(O)},$=!!l["aria-disabled"]||o||n;return _.jsxs("button",{className:S,"data-testid":i,type:v,ref:h,"aria-disabled":$,onClick:N,...l,children:[n&&_.jsx(
|
|
9
|
+
*/(function(u){(function(){var e={}.hasOwnProperty;function i(){for(var r="",n=0;n<arguments.length;n++){var t=arguments[n];t&&(r=p(r,o.call(this,t)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return i.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var t in r)e.call(r,t)&&r[t]&&(n=p(n,this&&this[t]||t));return n}function p(r,n){return n?r?r+" "+n:r+n:r}u.exports?(i.default=i,u.exports=i):window.classNames=i})()})(I);var rr=I.exports;const nr=Y(rr),ur={"purpur-button":"_purpur-button_u2yv5_1","purpur-button--sm":"_purpur-button--sm_u2yv5_33","purpur-button--icon-only":"_purpur-button--icon-only_u2yv5_36","purpur-button--md":"_purpur-button--md_u2yv5_39","purpur-button--lg":"_purpur-button--lg_u2yv5_45","purpur-button--full-width":"_purpur-button--full-width_u2yv5_51","purpur-button--primary":"_purpur-button--primary_u2yv5_54","purpur-button--disabled":"_purpur-button--disabled_u2yv5_58","purpur-button--primary-negative":"_purpur-button--primary-negative_u2yv5_64","purpur-button--secondary":"_purpur-button--secondary_u2yv5_76","purpur-button--secondary-negative":"_purpur-button--secondary-negative_u2yv5_87","purpur-button--expressive":"_purpur-button--expressive_u2yv5_98","purpur-button--expressive-negative":"_purpur-button--expressive-negative_u2yv5_108","purpur-button--negative":"_purpur-button--negative_u2yv5_120","purpur-button--destructive":"_purpur-button--destructive_u2yv5_127","purpur-button--destructive-negative":"_purpur-button--destructive-negative_u2yv5_137","purpur-button--tertiary-purple":"_purpur-button--tertiary-purple_u2yv5_147","purpur-button--tertiary-purple-negative":"_purpur-button--tertiary-purple-negative_u2yv5_160","purpur-button--text-negative":"_purpur-button--text-negative_u2yv5_175","purpur-button--text":"_purpur-button--text_u2yv5_175"},tr=nr.bind(ur),g="purpur-button",ir=({children:u,className:e,["data-testid"]:i,disabled:o=!1,fullWidth:p=!1,iconOnly:r,loading:n=!1,negative:t=!1,onClick:a,size:c=q.MD,variant:d,type:v="button",...l},h)=>{if(r&&d==="destructive")return null;const S=tr([g,`${g}--${t?`${d}-negative`:d}`,`${g}--${c}`],{[`${g}--icon-only`]:r,[`${g}--negative`]:t,[`${g}--full-width`]:p,[`${g}--disabled`]:o||n},e),N=O=>{o||n?O.preventDefault():a&&a(O)},$=!!l["aria-disabled"]||o||n;return _.jsxs("button",{className:S,"data-testid":i,type:v,ref:h,"aria-disabled":$,onClick:N,...l,children:[n&&_.jsx(Q,{size:c===q.LG?"xs":"xxs",negative:t,disabled:$})," ",u]})},P=z.forwardRef(ir);P.displayName="Button";function er(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var A={exports:{}};/*!
|
|
10
10
|
Copyright (c) 2018 Jed Watson.
|
|
11
11
|
Licensed under the MIT License (MIT), see
|
|
12
12
|
http://jedwatson.github.io/classnames
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
Copyright (c) 2018 Jed Watson.
|
|
19
19
|
Licensed under the MIT License (MIT), see
|
|
20
20
|
http://jedwatson.github.io/classnames
|
|
21
|
-
*/(function(u){(function(){var e={}.hasOwnProperty;function i(){for(var r="",n=0;n<arguments.length;n++){var t=arguments[n];t&&(r=p(r,o.call(this,t)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return i.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var t in r)e.call(r,t)&&r[t]&&(n=p(n,this&&this[t]||t));return n}function p(r,n){return n?r?r+" "+n:r+n:r}u.exports?(i.default=i,u.exports=i):window.classNames=i})()})(D);var hr=D.exports;const yr=fr(hr),xr={"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"},br={name:"close",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.864 4.864a.9.9 0 0 1 1.273 0L12 10.727l5.864-5.863a.9.9 0 0 1 1.272 1.272L13.273 12l5.863 5.864a.9.9 0 1 1-1.272 1.272L12 13.273l-5.863 5.863a.9.9 0 0 1-1.273-1.272L10.727 12 4.864 6.136a.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',keywords:["close"],category:"utility"},zr={name:"info",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',keywords:["info"],category:"status"},R=u=>_.jsx(
|
|
21
|
+
*/(function(u){(function(){var e={}.hasOwnProperty;function i(){for(var r="",n=0;n<arguments.length;n++){var t=arguments[n];t&&(r=p(r,o.call(this,t)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return i.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var t in r)e.call(r,t)&&r[t]&&(n=p(n,this&&this[t]||t));return n}function p(r,n){return n?r?r+" "+n:r+n:r}u.exports?(i.default=i,u.exports=i):window.classNames=i})()})(D);var hr=D.exports;const yr=fr(hr),xr={"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"},br={name:"close",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.864 4.864a.9.9 0 0 1 1.273 0L12 10.727l5.864-5.863a.9.9 0 0 1 1.272 1.272L13.273 12l5.863 5.864a.9.9 0 1 1-1.272 1.272L12 13.273l-5.863 5.863a.9.9 0 0 1-1.273-1.272L10.727 12 4.864 6.136a.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',keywords:["close"],category:"utility"},zr={name:"info",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',keywords:["info"],category:"status"},R=u=>_.jsx(X,{...u,svg:br});R.displayName="IconClose";const Z=u=>_.jsx(X,{...u,svg:zr});Z.displayName="IconInfo";const $r=yr.bind(xr),T="purpur-icon",jr="md",wr=u=>u.filter(e=>Object.keys(e).length>=1).map(e=>`${e.name}="${e.value}"`).join(" "),Sr=({content:u="",title:e}={})=>{const i=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},e?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],o=e?`<title>${e}</title>`:"";return`<svg ${wr(i)}>${o}${u}</svg>`},Nr=u=>u.replace(/<(\/?)svg([^>]*)>/g,"").trim(),X=({["data-testid"]:u,svg:e,allyTitle:i,className:o="",size:p=jr,...r})=>{const n=Sr({content:Nr(e.svg),title:i}),t=$r(o,T,`${T}--${p}`);return _.jsx("span",{"aria-label":i,className:t,"data-testid":u,dangerouslySetInnerHTML:{__html:n},...r})};function Or(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var H={exports:{}};/*!
|
|
22
22
|
Copyright (c) 2018 Jed Watson.
|
|
23
23
|
Licensed under the MIT License (MIT), see
|
|
24
24
|
http://jedwatson.github.io/classnames
|
|
25
|
-
*/(function(u){(function(){var e={}.hasOwnProperty;function i(){for(var r="",n=0;n<arguments.length;n++){var t=arguments[n];t&&(r=p(r,o.call(this,t)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return i.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var t in r)e.call(r,t)&&r[t]&&(n=p(n,this&&this[t]||t));return n}function p(r,n){return n?r?r+" "+n:r+n:r}u.exports?(i.default=i,u.exports=i):window.classNames=i})()})(
|
|
25
|
+
*/(function(u){(function(){var e={}.hasOwnProperty;function i(){for(var r="",n=0;n<arguments.length;n++){var t=arguments[n];t&&(r=p(r,o.call(this,t)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return i.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var t in r)e.call(r,t)&&r[t]&&(n=p(n,this&&this[t]||t));return n}function p(r,n){return n?r?r+" "+n:r+n:r}u.exports?(i.default=i,u.exports=i):window.classNames=i})()})(H);var qr=H.exports;const Mr=Or(qr),Lr={"purpur-notification-banner":"_purpur-notification-banner_llblm_1","purpur-notification-banner__container":"_purpur-notification-banner__container_llblm_6","purpur-notification-banner__content":"_purpur-notification-banner__content_llblm_11","purpur-notification-banner__icon":"_purpur-notification-banner__icon_llblm_16","purpur-notification-banner__heading":"_purpur-notification-banner__heading_llblm_19","purpur-notification-banner__heading--no-overlap":"_purpur-notification-banner__heading--no-overlap_llblm_22","purpur-notification-banner__close-button":"_purpur-notification-banner__close-button_llblm_25"},f=Mr.bind(Lr),m="purpur-notification-banner",V=z.forwardRef(({["data-testid"]:u,children:e,className:i,closeButtonAllyLabel:o,description:p,hideIcon:r,icon:n,link:t,onClose:a,titleTag:c="h4",title:d,...v},l)=>{const h=f([i,m]);return _.jsx("div",{...v,className:h,role:"alert",ref:l,"data-testid":u,children:_.jsx(B,{children:_.jsxs("div",{className:f(`${m}__container`),children:[r?null:n||_.jsx(Z,{className:f(`${m}__icon`),size:"sm"}),_.jsxs("div",{className:f(`${m}__content`),children:[_.jsx(vr,{tag:c,variant:"subsection-100",className:f([`${m}__heading`,{[`${m}__heading--no-overlap`]:a}]),children:d}),_.jsxs("div",{children:[p," ",t]})]}),e,a&&_.jsx(P,{"data-testid":u?`${u}-close-button`:void 0,variant:"tertiary-purple",size:"sm",iconOnly:!0,"aria-label":o,onClick:a,className:f(`${m}__close-button`),children:_.jsx(R,{size:"sm"})})]})})})});V.displayName="NotificationBanner";exports.NotificationBanner=V;
|
|
26
26
|
//# sourceMappingURL=notification-banner.cjs.js.map
|