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

@purpurds/notification

Package Overview
Dependencies
Maintainers
2
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@purpurds/notification - npm Package Compare versions

Comparing version 4.1.1 to 4.2.0

8

dist/LICENSE.txt
Name: @purpurds/button
Version: 4.1.0
Version: 4.1.1
License: AGPL-3.0-only

@@ -9,3 +9,3 @@ Private: false

Name: @purpurds/heading
Version: 4.1.0
Version: 4.1.1
License: AGPL-3.0-only

@@ -17,3 +17,3 @@ Private: false

Name: @purpurds/icon
Version: 4.1.0
Version: 4.1.1
License: AGPL-3.0-only

@@ -25,3 +25,3 @@ Private: false

Name: @purpurds/paragraph
Version: 4.1.0
Version: 4.1.1
License: AGPL-3.0-only

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

@@ -5,23 +5,23 @@ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),R=require("react"),N={SM:"sm",MD:"md",LG:"lg"};function F(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var L={exports:{}};/*!

http://jedwatson.github.io/classnames
*/(function(e){(function(){var i={}.hasOwnProperty;function a(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=p(r,u(n)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)i.call(r,n)&&r[n]&&(t=p(t,n));return t}function p(r,t){return t?r?r+" "+t:r+t:r}e.exports?(a.default=a,e.exports=a):window.classNames=a})()})(L);var H=L.exports;const I=F(H),U="_rotate_7s2g1_1",z="_dash_7s2g1_1",b={"purpur-spinner":"_purpur-spinner_7s2g1_1",rotate:U,"purpur-spinner--xxs":"_purpur-spinner--xxs_7s2g1_4","purpur-spinner--xs":"_purpur-spinner--xs_7s2g1_8","purpur-spinner--sm":"_purpur-spinner--sm_7s2g1_12","purpur-spinner--md":"_purpur-spinner--md_7s2g1_16","purpur-spinner--lg":"_purpur-spinner--lg_7s2g1_20","purpur-spinner__circle":"_purpur-spinner__circle_7s2g1_24",dash:z,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_7s2g1_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_7s2g1_36","purpur-spinner__circle--negative-disabled":"_purpur-spinner__circle--negative-disabled_7s2g1_39"},y="purpur-spinner",W={PRIMARY:"primary",DISABLED:"disabled",NEGATIVE:"negative",NEGATIVE_DISABLED:"negative-disabled"},Y={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},X=({["data-testid"]:e,size:i=Y.SM,variant:a=W.PRIMARY,...u})=>o.jsx("div",{className:I([b[y],b[`${y}--${i}`]]),"data-testid":e,...u,children:o.jsx("svg",{viewBox:"0 0 50 50",children:o.jsx("circle",{className:I(b[`${y}__circle`],b[`${y}__circle--${a}`]),cx:"25",cy:"25",r:"20"})})});function J(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var T={exports:{}};/*!
*/(function(e){(function(){var i={}.hasOwnProperty;function a(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=p(r,u(n)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)i.call(r,n)&&r[n]&&(t=p(t,n));return t}function p(r,t){return t?r?r+" "+t:r+t:r}e.exports?(a.default=a,e.exports=a):window.classNames=a})()})(L);var k=L.exports;const j=F(k),H="_rotate_7s2g1_1",U="_dash_7s2g1_1",m={"purpur-spinner":"_purpur-spinner_7s2g1_1",rotate:H,"purpur-spinner--xxs":"_purpur-spinner--xxs_7s2g1_4","purpur-spinner--xs":"_purpur-spinner--xs_7s2g1_8","purpur-spinner--sm":"_purpur-spinner--sm_7s2g1_12","purpur-spinner--md":"_purpur-spinner--md_7s2g1_16","purpur-spinner--lg":"_purpur-spinner--lg_7s2g1_20","purpur-spinner__circle":"_purpur-spinner__circle_7s2g1_24",dash:U,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_7s2g1_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_7s2g1_36","purpur-spinner__circle--negative-disabled":"_purpur-spinner__circle--negative-disabled_7s2g1_39"},x="purpur-spinner",W={PRIMARY:"primary",DISABLED:"disabled",NEGATIVE:"negative",NEGATIVE_DISABLED:"negative-disabled"},Y={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},X=({["data-testid"]:e,size:i=Y.SM,variant:a=W.PRIMARY,...u})=>o.jsx("div",{className:j([m[x],m[`${x}--${i}`]]),"data-testid":e,...u,children:o.jsx("svg",{viewBox:"0 0 50 50",children:o.jsx("circle",{className:j(m[`${x}__circle`],m[`${x}__circle--${a}`]),cx:"25",cy:"25",r:"20"})})});function J(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var T={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var i={}.hasOwnProperty;function a(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=p(r,u(n)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)i.call(r,n)&&r[n]&&(t=p(t,n));return t}function p(r,t){return t?r?r+" "+t:r+t:r}e.exports?(a.default=a,e.exports=a):window.classNames=a})()})(T);var K=T.exports;const Q=J(K),f={"purpur-button":"_purpur-button_1fna2_1","purpur-button--sm":"_purpur-button--sm_1fna2_33","purpur-button--icon-only":"_purpur-button--icon-only_1fna2_36","purpur-button--md":"_purpur-button--md_1fna2_39","purpur-button--lg":"_purpur-button--lg_1fna2_45","purpur-button--full-width":"_purpur-button--full-width_1fna2_51","purpur-button--primary":"_purpur-button--primary_1fna2_54","purpur-button--disabled":"_purpur-button--disabled_1fna2_58","purpur-button--primary-negative":"_purpur-button--primary-negative_1fna2_64","purpur-button--secondary":"_purpur-button--secondary_1fna2_76","purpur-button--secondary-negative":"_purpur-button--secondary-negative_1fna2_87","purpur-button--expressive":"_purpur-button--expressive_1fna2_98","purpur-button--expressive-negative":"_purpur-button--expressive-negative_1fna2_108","purpur-button--negative":"_purpur-button--negative_1fna2_120","purpur-button--destructive":"_purpur-button--destructive_1fna2_127","purpur-button--destructive-negative":"_purpur-button--destructive-negative_1fna2_137","purpur-button--tertiary-purple":"_purpur-button--tertiary-purple_1fna2_147","purpur-button--tertiary-purple-negative":"_purpur-button--tertiary-purple-negative_1fna2_160","purpur-button--text-negative":"_purpur-button--text-negative_1fna2_175","purpur-button--text":"_purpur-button--text_1fna2_175"},g="purpur-button",rr=({children:e,className:i,["data-testid"]:a,disabled:u=!1,fullWidth:p=!1,iconOnly:r,loading:t=!1,onClick:n,size:c=N.MD,variant:d,type:s="button",...h},x)=>{if(r&&d==="destructive")return null;const A=Q([f[g],f[`${g}--${d}`],f[`${g}--${c}`]],{[f[`${g}--icon-only`]]:r,[f[`${g}--negative`]]:d.endsWith("negative"),[f[`${g}--full-width`]]:p,[f[`${g}--disabled`]]:u||t},i),V=S=>{u||t?S.preventDefault():n&&n(S)},Z=()=>d.endsWith("negative")?"negative-disabled":"disabled";return o.jsxs("button",{className:A,"data-testid":a,type:s,ref:x,"aria-disabled":h["aria-disabled"]||u||t,onClick:V,...h,children:[t&&o.jsx(X,{size:c===N.LG?"xs":"xxs",variant:Z()})," ",e]})},M=R.forwardRef(rr);M.displayName="Button";function tr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P={exports:{}};/*!
*/(function(e){(function(){var i={}.hasOwnProperty;function a(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=p(r,u(n)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)i.call(r,n)&&r[n]&&(t=p(t,n));return t}function p(r,t){return t?r?r+" "+t:r+t:r}e.exports?(a.default=a,e.exports=a):window.classNames=a})()})(T);var K=T.exports;const Q=J(K),g={"purpur-button":"_purpur-button_1fna2_1","purpur-button--sm":"_purpur-button--sm_1fna2_33","purpur-button--icon-only":"_purpur-button--icon-only_1fna2_36","purpur-button--md":"_purpur-button--md_1fna2_39","purpur-button--lg":"_purpur-button--lg_1fna2_45","purpur-button--full-width":"_purpur-button--full-width_1fna2_51","purpur-button--primary":"_purpur-button--primary_1fna2_54","purpur-button--disabled":"_purpur-button--disabled_1fna2_58","purpur-button--primary-negative":"_purpur-button--primary-negative_1fna2_64","purpur-button--secondary":"_purpur-button--secondary_1fna2_76","purpur-button--secondary-negative":"_purpur-button--secondary-negative_1fna2_87","purpur-button--expressive":"_purpur-button--expressive_1fna2_98","purpur-button--expressive-negative":"_purpur-button--expressive-negative_1fna2_108","purpur-button--negative":"_purpur-button--negative_1fna2_120","purpur-button--destructive":"_purpur-button--destructive_1fna2_127","purpur-button--destructive-negative":"_purpur-button--destructive-negative_1fna2_137","purpur-button--tertiary-purple":"_purpur-button--tertiary-purple_1fna2_147","purpur-button--tertiary-purple-negative":"_purpur-button--tertiary-purple-negative_1fna2_160","purpur-button--text-negative":"_purpur-button--text-negative_1fna2_175","purpur-button--text":"_purpur-button--text_1fna2_175"},f="purpur-button",rr=({children:e,className:i,["data-testid"]:a,disabled:u=!1,fullWidth:p=!1,iconOnly:r,loading:t=!1,onClick:n,size:c=N.MD,variant:d,type:s="button",...v},A)=>{if(r&&d==="destructive")return null;const O=Q([g[f],g[`${f}--${d}`],g[`${f}--${c}`]],{[g[`${f}--icon-only`]]:r,[g[`${f}--negative`]]:d.endsWith("negative"),[g[`${f}--full-width`]]:p,[g[`${f}--disabled`]]:u||t},i),V=S=>{u||t?S.preventDefault():n&&n(S)},Z=()=>d.endsWith("negative")?"negative-disabled":"disabled";return o.jsxs("button",{className:O,"data-testid":a,type:s,ref:A,"aria-disabled":v["aria-disabled"]||u||t,onClick:V,...v,children:[t&&o.jsx(X,{size:c===N.LG?"xs":"xxs",variant:Z()})," ",e]})},M=R.forwardRef(rr);M.displayName="Button";function tr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var i={}.hasOwnProperty;function a(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=p(r,u(n)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)i.call(r,n)&&r[n]&&(t=p(t,n));return t}function p(r,t){return t?r?r+" "+t:r+t:r}e.exports?(a.default=a,e.exports=a):window.classNames=a})()})(P);var er=P.exports;const nr=tr(er),$={"purpur-heading":"_purpur-heading_1abfh_1","purpur-heading--hyphens":"_purpur-heading--hyphens_1abfh_8","purpur-heading--subsection-100":"_purpur-heading--subsection-100_1abfh_11","purpur-heading--title-100":"_purpur-heading--title-100_1abfh_17","purpur-heading--title-200":"_purpur-heading--title-200_1abfh_23","purpur-heading--title-300":"_purpur-heading--title-300_1abfh_29","purpur-heading--title-400":"_purpur-heading--title-400_1abfh_35","purpur-heading--title-500":"_purpur-heading--title-500_1abfh_41","purpur-heading--title-600":"_purpur-heading--title-600_1abfh_47","purpur-heading--title-700":"_purpur-heading--title-700_1abfh_53","purpur-heading--display-25":"_purpur-heading--display-25_1abfh_59","purpur-heading--display-50":"_purpur-heading--display-50_1abfh_65","purpur-heading--display-100":"_purpur-heading--display-100_1abfh_71","purpur-heading--display-200":"_purpur-heading--display-200_1abfh_77"},ar={TITLE100:"title-100",TITLE200:"title-200",TITLE300:"title-300",TITLE400:"title-400",TITLE500:"title-500",TITLE600:"title-600",TITLE700:"title-700",SUBSECTION100:"subsection-100"},O="purpur-heading",ir=({["data-testid"]:e,children:i,className:a="",enableHyphenation:u=!1,tag:p,variant:r=ar.TITLE100,...t})=>{const n=p,c=nr([a,$[O],$[`${O}--${r}`],{[$[`${O}--hyphens`]]:u}]);return o.jsx(n,{...t,className:c,"data-testid":e,children:i})};function ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var k={exports:{}};/*!
*/(function(e){(function(){var i={}.hasOwnProperty;function a(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=p(r,u(n)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)i.call(r,n)&&r[n]&&(t=p(t,n));return t}function p(r,t){return t?r?r+" "+t:r+t:r}e.exports?(a.default=a,e.exports=a):window.classNames=a})()})(P);var er=P.exports;const nr=tr(er),w={"purpur-heading":"_purpur-heading_1g237_1","purpur-heading--hyphens":"_purpur-heading--hyphens_1g237_8","purpur-heading--negative":"_purpur-heading--negative_1g237_11","purpur-heading--subsection-100":"_purpur-heading--subsection-100_1g237_14","purpur-heading--title-100":"_purpur-heading--title-100_1g237_20","purpur-heading--title-200":"_purpur-heading--title-200_1g237_26","purpur-heading--title-300":"_purpur-heading--title-300_1g237_32","purpur-heading--title-400":"_purpur-heading--title-400_1g237_38","purpur-heading--title-500":"_purpur-heading--title-500_1g237_44","purpur-heading--title-600":"_purpur-heading--title-600_1g237_50","purpur-heading--title-700":"_purpur-heading--title-700_1g237_56","purpur-heading--display-25":"_purpur-heading--display-25_1g237_62","purpur-heading--display-50":"_purpur-heading--display-50_1g237_68","purpur-heading--display-100":"_purpur-heading--display-100_1g237_74","purpur-heading--display-200":"_purpur-heading--display-200_1g237_80"},ar={TITLE100:"title-100",TITLE200:"title-200",TITLE300:"title-300",TITLE400:"title-400",TITLE500:"title-500",TITLE600:"title-600",TITLE700:"title-700",SUBSECTION100:"subsection-100"},$="purpur-heading",ir=({["data-testid"]:e,children:i,className:a="",enableHyphenation:u=!1,negative:p=!1,tag:r,variant:t=ar.TITLE100,...n})=>{const c=r,d=nr([a,w[$],w[`${$}--${t}`],{[w[`${$}--hyphens`]]:u,[w[`${$}--negative`]]:p}]);return o.jsx(c,{...n,className:d,"data-testid":e,children:i})};function ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var q={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var i={}.hasOwnProperty;function a(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=p(r,u.call(this,n)))}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 a.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)i.call(r,n)&&r[n]&&(t=p(t,this&&this[n]||n));return t}function p(r,t){return t?r?r+" "+t:r+t:r}e.exports?(a.default=a,e.exports=a):window.classNames=a})()})(k);var pr=k.exports;const or=ur(pr),sr={"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"},lr={name:"alert-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm1.038-14.81-.247 6.875h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.916c0 .649-.585 1.234-1.25 1.234-.649 0-1.25-.585-1.25-1.234 0-.633.601-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',keywords:["alert-filled"],category:"status"},_r={name:"check-circle-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm4.712-12.491a.875.875 0 1 0-1.424-1.018l-4.4 6.16-2.27-2.27a.875.875 0 0 0-1.237 1.238l3 3a.875.875 0 0 0 1.331-.11l5-7Z" clip-rule="evenodd"/></svg>',keywords:["check-circle-filled"],category:"status"},cr={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"},dr={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"},fr={name:"info-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM10.9 7.786c0 .591.516 1.077 1.108 1.077.576 0 1.092-.486 1.092-1.077 0-.592-.516-1.078-1.092-1.078-.592 0-1.108.486-1.108 1.078Zm.167 9.74h1.866V9.94h-1.866v7.586Z" clip-rule="evenodd"/></svg>',keywords:["info-filled"],category:"status"},gr=or.bind(sr),j="purpur-icon",hr="md",vr=e=>e.filter(i=>Object.keys(i).length>=1).map(i=>`${i.name}="${i.value}"`).join(" "),br=({content:e="",title:i}={})=>{const a=[{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 ${vr(a)}>${u}${e}</svg>`},yr=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),E=({["data-testid"]:e,svg:i,allyTitle:a,className:u="",size:p=hr,...r})=>{const t=br({content:yr(i.svg),title:a}),n=gr(u,j,`${j}--${p}`);return o.jsx("span",{"aria-label":a,className:n,"data-testid":e,dangerouslySetInnerHTML:{__html:t},...r})};function mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var q={exports:{}};/*!
*/(function(e){(function(){var i={}.hasOwnProperty;function a(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=p(r,u.call(this,n)))}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 a.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)i.call(r,n)&&r[n]&&(t=p(t,this&&this[n]||n));return t}function p(r,t){return t?r?r+" "+t:r+t:r}e.exports?(a.default=a,e.exports=a):window.classNames=a})()})(q);var pr=q.exports;const or=ur(pr),sr={"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"},lr={name:"alert-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm1.038-14.81-.247 6.875h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.916c0 .649-.585 1.234-1.25 1.234-.649 0-1.25-.585-1.25-1.234 0-.633.601-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',keywords:["alert-filled"],category:"status"},_r={name:"check-circle-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm4.712-12.491a.875.875 0 1 0-1.424-1.018l-4.4 6.16-2.27-2.27a.875.875 0 0 0-1.237 1.238l3 3a.875.875 0 0 0 1.331-.11l5-7Z" clip-rule="evenodd"/></svg>',keywords:["check-circle-filled"],category:"status"},cr={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"},dr={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"},gr={name:"info-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM10.9 7.786c0 .591.516 1.077 1.108 1.077.576 0 1.092-.486 1.092-1.077 0-.592-.516-1.078-1.092-1.078-.592 0-1.108.486-1.108 1.078Zm.167 9.74h1.866V9.94h-1.866v7.586Z" clip-rule="evenodd"/></svg>',keywords:["info-filled"],category:"status"},fr=or.bind(sr),I="purpur-icon",vr="md",hr=e=>e.filter(i=>Object.keys(i).length>=1).map(i=>`${i.name}="${i.value}"`).join(" "),yr=({content:e="",title:i}={})=>{const a=[{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 ${hr(a)}>${u}${e}</svg>`},br=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),E=({["data-testid"]:e,svg:i,allyTitle:a,className:u="",size:p=vr,...r})=>{const t=yr({content:br(i.svg),title:a}),n=fr(u,I,`${I}--${p}`);return o.jsx("span",{"aria-label":a,className:n,"data-testid":e,dangerouslySetInnerHTML:{__html:t},...r})};function mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var z={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var i={}.hasOwnProperty;function a(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=p(r,u(n)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)i.call(r,n)&&r[n]&&(t=p(t,n));return t}function p(r,t){return t?r?r+" "+t:r+t:r}e.exports?(a.default=a,e.exports=a):window.classNames=a})()})(q);var wr=q.exports;const xr=mr(wr),m={"purpur-paragraph":"_purpur-paragraph_5wbko_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_5wbko_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_5wbko_10","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_5wbko_13","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_5wbko_19","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_5wbko_26","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_5wbko_33","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_5wbko_39","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_5wbko_45","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_5wbko_51","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_5wbko_57","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_5wbko_64","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_5wbko_72"},Ar={PARAGRAPH100:"paragraph-100",PARAGRAPH100MEDIUM:"paragraph-100-medium",PARAGRAPH100BOLD:"paragraph-100-bold",PARAGRAPH200:"paragraph-200",PREAMBLE100:"preamble-100",PREAMBLE200:"preamble-200",ADDITIONAL100:"additional-100",ADDITIONAL100MEDIUM:"additional-100-medium",OVERLINE100:"overline-100",OVERLINE200:"overline-200"},w="purpur-paragraph",$r=({["data-testid"]:e,children:i,className:a="",disabled:u,enableHyphenation:p=!1,variant:r=Ar.PARAGRAPH100,...t})=>{const n=xr([a,m[w],m[`${w}--${r}`],{[m[`${w}--hyphens`]]:p,[m[`${w}--disabled`]]:u}]);return o.jsx("p",{...t,className:n,"data-testid":e,children:i})};function Or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C={exports:{}};/*!
*/(function(e){(function(){var i={}.hasOwnProperty;function a(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=p(r,u(n)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)i.call(r,n)&&r[n]&&(t=p(t,n));return t}function p(r,t){return t?r?r+" "+t:r+t:r}e.exports?(a.default=a,e.exports=a):window.classNames=a})()})(z);var xr=z.exports;const wr=mr(xr),y={"purpur-paragraph":"_purpur-paragraph_15yuz_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_15yuz_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_15yuz_10","purpur-paragraph--negative":"_purpur-paragraph--negative_15yuz_13","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_15yuz_16","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_15yuz_22","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_15yuz_29","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_15yuz_36","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_15yuz_42","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_15yuz_48","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_15yuz_54","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_15yuz_60","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_15yuz_67","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_15yuz_75"},$r={PARAGRAPH100:"paragraph-100",PARAGRAPH100MEDIUM:"paragraph-100-medium",PARAGRAPH100BOLD:"paragraph-100-bold",PARAGRAPH200:"paragraph-200",PREAMBLE100:"preamble-100",PREAMBLE200:"preamble-200",ADDITIONAL100:"additional-100",ADDITIONAL100MEDIUM:"additional-100-medium",OVERLINE100:"overline-100",OVERLINE200:"overline-200"},b="purpur-paragraph",Ar=({["data-testid"]:e,children:i,className:a="",disabled:u,enableHyphenation:p=!1,negative:r=!1,variant:t=$r.PARAGRAPH100,...n})=>{const c=wr([a,y[b],y[`${b}--${t}`],{[y[`${b}--hyphens`]]:p,[y[`${b}--disabled`]]:u,[y[`${b}--negative`]]:r}]);return o.jsx("p",{...n,className:c,"data-testid":e,children:i})};function Or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var i={}.hasOwnProperty;function a(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=p(r,u(n)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)i.call(r,n)&&r[n]&&(t=p(t,n));return t}function p(r,t){return t?r?r+" "+t:r+t:r}e.exports?(a.default=a,e.exports=a):window.classNames=a})()})(C);var Sr=C.exports;const Nr=Or(Sr),l={"purpur-notification":"_purpur-notification_10qwf_1","purpur-notification__top":"_purpur-notification__top_10qwf_14","purpur-notification__header":"_purpur-notification__header_10qwf_20","purpur-notification__close-button":"_purpur-notification__close-button_10qwf_25","purpur-notification__icon":"_purpur-notification__icon_10qwf_30","purpur-notification__body":"_purpur-notification__body_10qwf_33","purpur-notification--success":"_purpur-notification--success_10qwf_36","purpur-notification__heading":"_purpur-notification__heading_10qwf_39","purpur-notification--warning":"_purpur-notification--warning_10qwf_45","purpur-notification--error":"_purpur-notification--error_10qwf_54","purpur-notification--info":"_purpur-notification--info_10qwf_63","purpur-notification--hidden":"_purpur-notification--hidden_10qwf_72","purpur-notification--has-close-button":"_purpur-notification--has-close-button_10qwf_76"},v={SUCCESS:"success",WARNING:"warning",ERROR:"error",INFO:"info"},Ir=Object.values(v),D={POLITE:"polite",ASSERTIVE:"assertive"},jr=Object.values(D),G={ALERT:"alert",DIALOG:"dialog",ALERTDIALOG:"alertdialog"},Er=Object.values(G),_="purpur-notification",Rr=e=>{switch(e){case v.INFO:return fr;case v.SUCCESS:return _r;case v.WARNING:return lr;case v.ERROR:return dr}},Lr=({["data-testid"]:e,["aria-live"]:i,children:a,className:u,closeButtonAllyLabel:p,headingTag:r="h4",role:t,status:n="info",heading:c,hidden:d,id:s,onClose:h,...x},A)=>o.jsxs("div",{id:s,"aria-labelledby":s?`${s}-heading`:void 0,"aria-describedby":s?`${s}-body`:void 0,"aria-live":i,"aria-hidden":!!d,className:Nr(u,l[_],l[`${_}--${n}`],{[l[`${_}--hidden`]]:d,[l[`${_}--has-close-button`]]:!!h}),"data-testid":e,ref:A,role:t,...x,children:[o.jsxs("div",{className:l[`${_}__top`],children:[o.jsxs("div",{className:l[`${_}__header`],children:[o.jsx(E,{"data-testid":e?`${e}-icon`:void 0,className:l[`${_}__icon`],svg:Rr(n),size:"md"}),!!c&&o.jsx(ir,{"data-testid":e?`${e}-heading`:void 0,variant:"subsection-100",tag:r,className:l[`${_}__heading`],children:o.jsxs("span",{id:s?`${s}-heading`:void 0,children:[" ",c]})})]}),h&&o.jsx(M,{"data-testid":e?`${e}-close-button`:void 0,variant:"tertiary-purple",size:"sm",iconOnly:!0,"aria-label":p,onClick:h,className:l[`${_}__close-button`],children:o.jsx(E,{svg:cr,size:"sm"})})]}),a&&o.jsx("div",{"data-testid":e?`${e}-body`:void 0,className:l[`${_}__body`],id:s?`${s}-body`:void 0,children:typeof a=="string"?o.jsx($r,{"data-testid":e?`${e}-paragraph`:void 0,variant:"paragraph-100",children:a}):a})]}),B=R.forwardRef(Lr);B.displayName="Notification";exports.NOTIFICATION_ARIA_LIVE=D;exports.NOTIFICATION_ROLE=G;exports.NOTIFICATION_STATUS=v;exports.Notification=B;exports.notificationAriaLiveValues=jr;exports.notificationRoles=Er;exports.notificationStatuses=Ir;
*/(function(e){(function(){var i={}.hasOwnProperty;function a(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=p(r,u(n)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)i.call(r,n)&&r[n]&&(t=p(t,n));return t}function p(r,t){return t?r?r+" "+t:r+t:r}e.exports?(a.default=a,e.exports=a):window.classNames=a})()})(C);var Sr=C.exports;const Nr=Or(Sr),l={"purpur-notification":"_purpur-notification_10qwf_1","purpur-notification__top":"_purpur-notification__top_10qwf_14","purpur-notification__header":"_purpur-notification__header_10qwf_20","purpur-notification__close-button":"_purpur-notification__close-button_10qwf_25","purpur-notification__icon":"_purpur-notification__icon_10qwf_30","purpur-notification__body":"_purpur-notification__body_10qwf_33","purpur-notification--success":"_purpur-notification--success_10qwf_36","purpur-notification__heading":"_purpur-notification__heading_10qwf_39","purpur-notification--warning":"_purpur-notification--warning_10qwf_45","purpur-notification--error":"_purpur-notification--error_10qwf_54","purpur-notification--info":"_purpur-notification--info_10qwf_63","purpur-notification--hidden":"_purpur-notification--hidden_10qwf_72","purpur-notification--has-close-button":"_purpur-notification--has-close-button_10qwf_76"},h={SUCCESS:"success",WARNING:"warning",ERROR:"error",INFO:"info"},jr=Object.values(h),D={POLITE:"polite",ASSERTIVE:"assertive"},Ir=Object.values(D),G={ALERT:"alert",DIALOG:"dialog",ALERTDIALOG:"alertdialog"},Er=Object.values(G),_="purpur-notification",Rr=e=>{switch(e){case h.INFO:return gr;case h.SUCCESS:return _r;case h.WARNING:return lr;case h.ERROR:return dr}},Lr=({["data-testid"]:e,["aria-live"]:i,children:a,className:u,closeButtonAllyLabel:p,headingTag:r="h4",role:t,status:n="info",heading:c,hidden:d,id:s,onClose:v,...A},O)=>o.jsxs("div",{id:s,"aria-labelledby":s?`${s}-heading`:void 0,"aria-describedby":s?`${s}-body`:void 0,"aria-live":i,"aria-hidden":!!d,className:Nr(u,l[_],l[`${_}--${n}`],{[l[`${_}--hidden`]]:d,[l[`${_}--has-close-button`]]:!!v}),"data-testid":e,ref:O,role:t,...A,children:[o.jsxs("div",{className:l[`${_}__top`],children:[o.jsxs("div",{className:l[`${_}__header`],children:[o.jsx(E,{"data-testid":e?`${e}-icon`:void 0,className:l[`${_}__icon`],svg:Rr(n),size:"md"}),!!c&&o.jsx(ir,{"data-testid":e?`${e}-heading`:void 0,variant:"subsection-100",tag:r,className:l[`${_}__heading`],children:o.jsxs("span",{id:s?`${s}-heading`:void 0,children:[" ",c]})})]}),v&&o.jsx(M,{"data-testid":e?`${e}-close-button`:void 0,variant:"tertiary-purple",size:"sm",iconOnly:!0,"aria-label":p,onClick:v,className:l[`${_}__close-button`],children:o.jsx(E,{svg:cr,size:"sm"})})]}),a&&o.jsx("div",{"data-testid":e?`${e}-body`:void 0,className:l[`${_}__body`],id:s?`${s}-body`:void 0,children:typeof a=="string"?o.jsx(Ar,{"data-testid":e?`${e}-paragraph`:void 0,variant:"paragraph-100",children:a}):a})]}),B=R.forwardRef(Lr);B.displayName="Notification";exports.NOTIFICATION_ARIA_LIVE=D;exports.NOTIFICATION_ROLE=G;exports.NOTIFICATION_STATUS=h;exports.Notification=B;exports.notificationAriaLiveValues=Ir;exports.notificationRoles=Er;exports.notificationStatuses=jr;
//# sourceMappingURL=notification.cjs.js.map

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

import { jsxs as v, jsx as o } from "react/jsx-runtime";
import { jsxs as m, jsx as o } from "react/jsx-runtime";
import { forwardRef as M } from "react";

@@ -23,7 +23,7 @@ const E = {

var n = arguments[t];
n && (r = p(r, i(n)));
n && (r = i(r, p(n)));
}
return r;
}
function i(r) {
function p(r) {
if (typeof r == "string" || typeof r == "number")

@@ -39,6 +39,6 @@ return r;

for (var n in r)
u.call(r, n) && r[n] && (t = p(t, n));
u.call(r, n) && r[n] && (t = i(t, n));
return t;
}
function p(r, t) {
function i(r, t) {
return t ? r ? r + " " + t : r + t : r;

@@ -50,5 +50,5 @@ }

var V = P.exports;
const I = /* @__PURE__ */ Z(V), H = "_rotate_7s2g1_1", F = "_dash_7s2g1_1", m = {
const R = /* @__PURE__ */ Z(V), k = "_rotate_7s2g1_1", H = "_dash_7s2g1_1", w = {
"purpur-spinner": "_purpur-spinner_7s2g1_1",
rotate: H,
rotate: k,
"purpur-spinner--xxs": "_purpur-spinner--xxs_7s2g1_4",

@@ -60,7 +60,7 @@ "purpur-spinner--xs": "_purpur-spinner--xs_7s2g1_8",

"purpur-spinner__circle": "_purpur-spinner__circle_7s2g1_24",
dash: F,
dash: H,
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_7s2g1_33",
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_7s2g1_36",
"purpur-spinner__circle--negative-disabled": "_purpur-spinner__circle--negative-disabled_7s2g1_39"
}, y = "purpur-spinner", z = {
}, x = "purpur-spinner", F = {
PRIMARY: "primary",

@@ -79,16 +79,16 @@ DISABLED: "disabled",

size: u = U.SM,
variant: a = z.PRIMARY,
...i
variant: a = F.PRIMARY,
...p
}) => /* @__PURE__ */ o(
"div",
{
className: I([m[y], m[`${y}--${u}`]]),
className: R([w[x], w[`${x}--${u}`]]),
"data-testid": e,
...i,
...p,
children: /* @__PURE__ */ o("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ o(
"circle",
{
className: I(
m[`${y}__circle`],
m[`${y}__circle--${a}`]
className: R(
w[`${x}__circle`],
w[`${x}__circle--${a}`]
),

@@ -117,7 +117,7 @@ cx: "25",

var n = arguments[t];
n && (r = p(r, i(n)));
n && (r = i(r, p(n)));
}
return r;
}
function i(r) {
function p(r) {
if (typeof r == "string" || typeof r == "number")

@@ -133,6 +133,6 @@ return r;

for (var n in r)
u.call(r, n) && r[n] && (t = p(t, n));
u.call(r, n) && r[n] && (t = i(t, n));
return t;
}
function p(r, t) {
function i(r, t) {
return t ? r ? r + " " + t : r + t : r;

@@ -144,3 +144,3 @@ }

var X = j.exports;
const J = /* @__PURE__ */ Y(X), f = {
const J = /* @__PURE__ */ Y(X), g = {
"purpur-button": "_purpur-button_1fna2_1",

@@ -166,8 +166,8 @@ "purpur-button--sm": "_purpur-button--sm_1fna2_33",

"purpur-button--text": "_purpur-button--text_1fna2_175"
}, g = "purpur-button", K = ({
}, f = "purpur-button", K = ({
children: e,
className: u,
["data-testid"]: a,
disabled: i = !1,
fullWidth: p = !1,
disabled: p = !1,
fullWidth: i = !1,
iconOnly: r,

@@ -179,32 +179,32 @@ loading: t = !1,

type: s = "button",
...h
}, $) => {
...v
}, A) => {
if (r && d === "destructive")
return null;
const S = J(
const O = J(
[
f[g],
f[`${g}--${d}`],
f[`${g}--${c}`]
g[f],
g[`${f}--${d}`],
g[`${f}--${c}`]
],
{
[f[`${g}--icon-only`]]: r,
[f[`${g}--negative`]]: d.endsWith("negative"),
[f[`${g}--full-width`]]: p,
[f[`${g}--disabled`]]: i || t
[g[`${f}--icon-only`]]: r,
[g[`${f}--negative`]]: d.endsWith("negative"),
[g[`${f}--full-width`]]: i,
[g[`${f}--disabled`]]: p || t
},
u
), G = (N) => {
i || t ? N.preventDefault() : n && n(N);
p || t ? N.preventDefault() : n && n(N);
}, B = () => d.endsWith("negative") ? "negative-disabled" : "disabled";
return /* @__PURE__ */ v(
return /* @__PURE__ */ m(
"button",
{
className: S,
className: O,
"data-testid": a,
type: s,
ref: $,
"aria-disabled": h["aria-disabled"] || i || t,
ref: A,
"aria-disabled": v["aria-disabled"] || p || t,
onClick: G,
...h,
...v,
children: [

@@ -222,3 +222,3 @@ t && /* @__PURE__ */ o(W, { size: c === E.LG ? "xs" : "xxs", variant: B() }),

}
var k = { exports: {} };
var z = { exports: {} };
/*!

@@ -235,7 +235,7 @@ Copyright (c) 2018 Jed Watson.

var n = arguments[t];
n && (r = p(r, i(n)));
n && (r = i(r, p(n)));
}
return r;
}
function i(r) {
function p(r) {
if (typeof r == "string" || typeof r == "number")

@@ -251,6 +251,6 @@ return r;

for (var n in r)
u.call(r, n) && r[n] && (t = p(t, n));
u.call(r, n) && r[n] && (t = i(t, n));
return t;
}
function p(r, t) {
function i(r, t) {
return t ? r ? r + " " + t : r + t : r;

@@ -260,19 +260,20 @@ }

})();
})(k);
var rr = k.exports;
const tr = /* @__PURE__ */ Q(rr), A = {
"purpur-heading": "_purpur-heading_1abfh_1",
"purpur-heading--hyphens": "_purpur-heading--hyphens_1abfh_8",
"purpur-heading--subsection-100": "_purpur-heading--subsection-100_1abfh_11",
"purpur-heading--title-100": "_purpur-heading--title-100_1abfh_17",
"purpur-heading--title-200": "_purpur-heading--title-200_1abfh_23",
"purpur-heading--title-300": "_purpur-heading--title-300_1abfh_29",
"purpur-heading--title-400": "_purpur-heading--title-400_1abfh_35",
"purpur-heading--title-500": "_purpur-heading--title-500_1abfh_41",
"purpur-heading--title-600": "_purpur-heading--title-600_1abfh_47",
"purpur-heading--title-700": "_purpur-heading--title-700_1abfh_53",
"purpur-heading--display-25": "_purpur-heading--display-25_1abfh_59",
"purpur-heading--display-50": "_purpur-heading--display-50_1abfh_65",
"purpur-heading--display-100": "_purpur-heading--display-100_1abfh_71",
"purpur-heading--display-200": "_purpur-heading--display-200_1abfh_77"
})(z);
var rr = z.exports;
const tr = /* @__PURE__ */ Q(rr), $ = {
"purpur-heading": "_purpur-heading_1g237_1",
"purpur-heading--hyphens": "_purpur-heading--hyphens_1g237_8",
"purpur-heading--negative": "_purpur-heading--negative_1g237_11",
"purpur-heading--subsection-100": "_purpur-heading--subsection-100_1g237_14",
"purpur-heading--title-100": "_purpur-heading--title-100_1g237_20",
"purpur-heading--title-200": "_purpur-heading--title-200_1g237_26",
"purpur-heading--title-300": "_purpur-heading--title-300_1g237_32",
"purpur-heading--title-400": "_purpur-heading--title-400_1g237_38",
"purpur-heading--title-500": "_purpur-heading--title-500_1g237_44",
"purpur-heading--title-600": "_purpur-heading--title-600_1g237_50",
"purpur-heading--title-700": "_purpur-heading--title-700_1g237_56",
"purpur-heading--display-25": "_purpur-heading--display-25_1g237_62",
"purpur-heading--display-50": "_purpur-heading--display-50_1g237_68",
"purpur-heading--display-100": "_purpur-heading--display-100_1g237_74",
"purpur-heading--display-200": "_purpur-heading--display-200_1g237_80"
}, er = {

@@ -287,20 +288,22 @@ TITLE100: "title-100",

SUBSECTION100: "subsection-100"
}, O = "purpur-heading", nr = ({
}, S = "purpur-heading", nr = ({
["data-testid"]: e,
children: u,
className: a = "",
enableHyphenation: i = !1,
tag: p,
variant: r = er.TITLE100,
...t
enableHyphenation: p = !1,
negative: i = !1,
tag: r,
variant: t = er.TITLE100,
...n
}) => {
const n = p, c = tr([
const c = r, d = tr([
a,
A[O],
A[`${O}--${r}`],
$[S],
$[`${S}--${t}`],
{
[A[`${O}--hyphens`]]: i
[$[`${S}--hyphens`]]: p,
[$[`${S}--negative`]]: i
}
]);
return /* @__PURE__ */ o(n, { ...t, className: c, "data-testid": e, children: u });
return /* @__PURE__ */ o(c, { ...n, className: d, "data-testid": e, children: u });
};

@@ -322,7 +325,7 @@ function ar(e) {

var n = arguments[t];
n && (r = p(r, i.call(this, n)));
n && (r = i(r, p.call(this, n)));
}
return r;
}
function i(r) {
function p(r) {
if (typeof r == "string" || typeof r == "number")

@@ -338,6 +341,6 @@ return this && this[r] || r;

for (var n in r)
u.call(r, n) && r[n] && (t = p(t, this && this[n] || n));
u.call(r, n) && r[n] && (t = i(t, this && this[n] || n));
return t;
}
function p(r, t) {
function i(r, t) {
return t ? r ? r + " " + t : r + t : r;

@@ -349,3 +352,3 @@ }

var ur = q.exports;
const ir = /* @__PURE__ */ ar(ur), pr = {
const pr = /* @__PURE__ */ ar(ur), ir = {
"purpur-icon": "_purpur-icon_8u1lq_1",

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

category: "status"
}, dr = ir.bind(pr), R = "purpur-icon", fr = "md", gr = (e) => e.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), hr = ({ content: e = "", title: u } = {}) => {
}, dr = pr.bind(ir), I = "purpur-icon", gr = "md", fr = (e) => e.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), vr = ({ content: e = "", title: u } = {}) => {
const a = [

@@ -390,16 +393,16 @@ { name: "xmlns", value: "http://www.w3.org/2000/svg" },

u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
], i = u ? `<title>${u}</title>` : "";
return `<svg ${gr(a)}>${i}${e}</svg>`;
}, vr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), L = ({
], p = u ? `<title>${u}</title>` : "";
return `<svg ${fr(a)}>${p}${e}</svg>`;
}, hr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), L = ({
["data-testid"]: e,
svg: u,
allyTitle: a,
className: i = "",
size: p = fr,
className: p = "",
size: i = gr,
...r
}) => {
const t = hr({
content: vr(u.svg),
const t = vr({
content: hr(u.svg),
title: a
}), n = dr(i, R, `${R}--${p}`);
}), n = dr(p, I, `${I}--${i}`);
return /* @__PURE__ */ o(

@@ -416,3 +419,3 @@ "span",

};
function br(e) {
function yr(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;

@@ -432,7 +435,7 @@ }

var n = arguments[t];
n && (r = p(r, i(n)));
n && (r = i(r, p(n)));
}
return r;
}
function i(r) {
function p(r) {
if (typeof r == "string" || typeof r == "number")

@@ -448,6 +451,6 @@ return r;

for (var n in r)
u.call(r, n) && r[n] && (t = p(t, n));
u.call(r, n) && r[n] && (t = i(t, n));
return t;
}
function p(r, t) {
function i(r, t) {
return t ? r ? r + " " + t : r + t : r;

@@ -459,16 +462,17 @@ }

var mr = D.exports;
const yr = /* @__PURE__ */ br(mr), w = {
"purpur-paragraph": "_purpur-paragraph_5wbko_1",
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_5wbko_7",
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_5wbko_10",
"purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_5wbko_13",
"purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_5wbko_19",
"purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_5wbko_26",
"purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_5wbko_33",
"purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_5wbko_39",
"purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_5wbko_45",
"purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_5wbko_51",
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_5wbko_57",
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_5wbko_64",
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_5wbko_72"
const br = /* @__PURE__ */ yr(mr), h = {
"purpur-paragraph": "_purpur-paragraph_15yuz_1",
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_15yuz_7",
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_15yuz_10",
"purpur-paragraph--negative": "_purpur-paragraph--negative_15yuz_13",
"purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_15yuz_16",
"purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_15yuz_22",
"purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_15yuz_29",
"purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_15yuz_36",
"purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_15yuz_42",
"purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_15yuz_48",
"purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_15yuz_54",
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_15yuz_60",
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_15yuz_67",
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_15yuz_75"
}, wr = {

@@ -485,21 +489,23 @@ PARAGRAPH100: "paragraph-100",

OVERLINE200: "overline-200"
}, x = "purpur-paragraph", xr = ({
}, y = "purpur-paragraph", xr = ({
["data-testid"]: e,
children: u,
className: a = "",
disabled: i,
enableHyphenation: p = !1,
variant: r = wr.PARAGRAPH100,
...t
disabled: p,
enableHyphenation: i = !1,
negative: r = !1,
variant: t = wr.PARAGRAPH100,
...n
}) => {
const n = yr([
const c = br([
a,
w[x],
w[`${x}--${r}`],
h[y],
h[`${y}--${t}`],
{
[w[`${x}--hyphens`]]: p,
[w[`${x}--disabled`]]: i
[h[`${y}--hyphens`]]: i,
[h[`${y}--disabled`]]: p,
[h[`${y}--negative`]]: r
}
]);
return /* @__PURE__ */ o("p", { ...t, className: n, "data-testid": e, children: u });
return /* @__PURE__ */ o("p", { ...n, className: c, "data-testid": e, children: u });
};

@@ -521,7 +527,7 @@ function $r(e) {

var n = arguments[t];
n && (r = p(r, i(n)));
n && (r = i(r, p(n)));
}
return r;
}
function i(r) {
function p(r) {
if (typeof r == "string" || typeof r == "number")

@@ -537,6 +543,6 @@ return r;

for (var n in r)
u.call(r, n) && r[n] && (t = p(t, n));
u.call(r, n) && r[n] && (t = i(t, n));
return t;
}
function p(r, t) {
function i(r, t) {
return t ? r ? r + " " + t : r + t : r;

@@ -585,8 +591,8 @@ }

}
}, Ir = ({
}, Rr = ({
["data-testid"]: e,
["aria-live"]: u,
children: a,
className: i,
closeButtonAllyLabel: p,
className: p,
closeButtonAllyLabel: i,
headingTag: r = "h4",

@@ -598,5 +604,5 @@ role: t,

id: s,
onClose: h,
...$
}, S) => /* @__PURE__ */ v(
onClose: v,
...A
}, O) => /* @__PURE__ */ m(
"div",

@@ -609,13 +615,13 @@ {

"aria-hidden": !!d,
className: Ar(i, l[_], l[`${_}--${n}`], {
className: Ar(p, l[_], l[`${_}--${n}`], {
[l[`${_}--hidden`]]: d,
[l[`${_}--has-close-button`]]: !!h
[l[`${_}--has-close-button`]]: !!v
}),
"data-testid": e,
ref: S,
ref: O,
role: t,
...$,
...A,
children: [
/* @__PURE__ */ v("div", { className: l[`${_}__top`], children: [
/* @__PURE__ */ v("div", { className: l[`${_}__header`], children: [
/* @__PURE__ */ m("div", { className: l[`${_}__top`], children: [
/* @__PURE__ */ m("div", { className: l[`${_}__header`], children: [
/* @__PURE__ */ o(

@@ -637,3 +643,3 @@ L,

className: l[`${_}__heading`],
children: /* @__PURE__ */ v("span", { id: s ? `${s}-heading` : void 0, children: [
children: /* @__PURE__ */ m("span", { id: s ? `${s}-heading` : void 0, children: [
" ",

@@ -645,3 +651,3 @@ c

] }),
h && /* @__PURE__ */ o(
v && /* @__PURE__ */ o(
T,

@@ -653,4 +659,4 @@ {

iconOnly: !0,
"aria-label": p,
onClick: h,
"aria-label": i,
onClick: v,
className: l[`${_}__close-button`],

@@ -679,4 +685,4 @@ children: /* @__PURE__ */ o(L, { svg: lr, size: "sm" })

}
), Rr = M(Ir);
Rr.displayName = "Notification";
), Ir = M(Rr);
Ir.displayName = "Notification";
export {

@@ -686,3 +692,3 @@ Or as NOTIFICATION_ARIA_LIVE,

b as NOTIFICATION_STATUS,
Rr as Notification,
Ir as Notification,
jr as notificationAriaLiveValues,

@@ -689,0 +695,0 @@ Tr as notificationRoles,

{
"name": "@purpurds/notification",
"version": "4.1.1",
"version": "4.2.0",
"license": "AGPL-3.0-only",

@@ -18,7 +18,7 @@ "main": "./dist/notification.cjs.js",

"classnames": "~2.5.0",
"@purpurds/button": "4.1.1",
"@purpurds/heading": "4.1.1",
"@purpurds/icon": "4.1.1",
"@purpurds/paragraph": "4.1.1",
"@purpurds/tokens": "4.1.1"
"@purpurds/button": "4.2.0",
"@purpurds/icon": "4.2.0",
"@purpurds/heading": "4.2.0",
"@purpurds/tokens": "4.2.0",
"@purpurds/paragraph": "4.2.0"
},

@@ -25,0 +25,0 @@ "devDependencies": {

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