@purpurds/notification
Advanced tools
Comparing version 3.2.0 to 3.3.0
Name: @purpurds/button | ||
Version: 3.1.0 | ||
Version: 3.2.0 | ||
License: AGPL-3.0-only | ||
@@ -9,3 +9,3 @@ Private: false | ||
Name: @purpurds/heading | ||
Version: 3.1.0 | ||
Version: 3.2.0 | ||
License: AGPL-3.0-only | ||
@@ -17,3 +17,3 @@ Private: false | ||
Name: @purpurds/icon | ||
Version: 3.1.0 | ||
Version: 3.2.0 | ||
License: AGPL-3.0-only | ||
@@ -25,3 +25,3 @@ Private: false | ||
Name: @purpurds/paragraph | ||
Version: 3.1.0 | ||
Version: 3.2.0 | ||
License: AGPL-3.0-only | ||
@@ -28,0 +28,0 @@ Private: false |
@@ -1,10 +0,10 @@ | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),R=require("react"),j={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:{}};/*! | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),R=require("react"),j={SM:"sm",MD:"md",LG:"lg"};function k(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var L={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})()})(L);var H=L.exports;const N=F(H),z="_rotate_7s2g1_1",U="_dash_7s2g1_1",y={"purpur-spinner":"_purpur-spinner_7s2g1_1",rotate:z,"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"},b="purpur-spinner",W={PRIMARY:"primary",DISABLED:"disabled",NEGATIVE:"negative",NEGATIVE_DISABLED:"negative-disabled"},X={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},Y=({["data-testid"]:e,size:i=X.SM,variant:a=W.PRIMARY,...u})=>o.jsx("div",{className:N([y[b],y[`${b}--${i}`]]),"data-testid":e,...u,children:o.jsx("svg",{viewBox:"0 0 50 50",children:o.jsx("circle",{className:N(y[`${b}__circle`],y[`${b}__circle--${a}`]),cx:"25",cy:"25",r:"20"})})});function K(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 H=L.exports;const N=k(H),U="_rotate_7s2g1_1",z="_dash_7s2g1_1",y={"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"},b="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:N([y[b],y[`${b}--${i}`]]),"data-testid":e,...u,children:o.jsx("svg",{viewBox:"0 0 50 50",children:o.jsx("circle",{className:N(y[`${b}__circle`],y[`${b}__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 J=T.exports;const Q=K(J),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:_=j.MD,variant:d,type:s="button",...h},x)=>{if(r&&d==="destructive")return null;const $=Q([f[g],f[`${g}--${d}`],f[`${g}--${_}`]],{[f[`${g}--icon-only`]]:r,[f[`${g}--negative`]]:d.endsWith("negative"),[f[`${g}--full-width`]]:p,[f[`${g}--disabled`]]:u||t},i),V=O=>{u||t?O.preventDefault():n&&n(O)},k=()=>d.endsWith("negative")?"negative-disabled":"disabled";return o.jsxs("button",{className:$,"data-testid":a,type:s,ref:x,"aria-disabled":h["aria-disabled"]||u||t,onClick:V,...h,children:[t&&o.jsx(Y,{size:_===j.LG?"xs":"xxs",variant:k()})," ",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),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:_=j.MD,variant:d,type:s="button",...h},x)=>{if(r&&d==="destructive")return null;const $=Q([f[g],f[`${g}--${d}`],f[`${g}--${_}`]],{[f[`${g}--icon-only`]]:r,[f[`${g}--negative`]]:d.endsWith("negative"),[f[`${g}--full-width`]]:p,[f[`${g}--disabled`]]:u||t},i),Z=O=>{u||t?O.preventDefault():n&&n(O)},F=()=>d.endsWith("negative")?"negative-disabled":"disabled";return o.jsxs("button",{className:$,"data-testid":a,type:s,ref:x,"aria-disabled":h["aria-disabled"]||u||t,onClick:Z,...h,children:[t&&o.jsx(X,{size:_===j.LG?"xs":"xxs",variant:F()})," ",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. | ||
@@ -25,3 +25,3 @@ 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})()})(D);var Or=D.exports;const jr=Sr(Or),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"},Nr=Object.values(v),B={POLITE:"polite",ASSERTIVE:"assertive"},Ir=Object.values(B),G={ALERT:"alert",DIALOG:"dialog",ALERTDIALOG:"alertdialog"},Er=Object.values(G),c="purpur-notification",Rr=e=>{switch(e){case v.INFO:return fr;case v.SUCCESS:return cr;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:_,hidden:d,id:s,onClose:h,...x},$)=>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:jr(u,l[c],l[`${c}--${n}`],{[l[`${c}--hidden`]]:d,[l[`${c}--has-close-button`]]:!!h}),"data-testid":e,ref:$,role:t,...x,children:[o.jsxs("div",{className:l[`${c}__top`],children:[o.jsxs("div",{className:l[`${c}__header`],children:[o.jsx(E,{"data-testid":e?`${e}-icon`:void 0,className:l[`${c}__icon`],svg:Rr(n),size:"md"}),!!_&&o.jsx(ir,{"data-testid":e?`${e}-heading`:void 0,variant:"subsection-100",tag:r,className:l[`${c}__heading`],children:o.jsxs("span",{id:s?`${s}-heading`:void 0,children:[" ",_]})})]}),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[`${c}__close-button`],children:o.jsx(E,{svg:_r,size:"sm"})})]}),a&&o.jsx("div",{"data-testid":e?`${e}-body`:void 0,className:l[`${c}__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})]}),Z=R.forwardRef(Lr);Z.displayName="Notification";exports.NOTIFICATION_ARIA_LIVE=B;exports.NOTIFICATION_ROLE=G;exports.NOTIFICATION_STATUS=v;exports.Notification=Z;exports.notificationAriaLiveValues=Ir;exports.notificationRoles=Er;exports.notificationStatuses=Nr; | ||
*/(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})()})(D);var Or=D.exports;const jr=Sr(Or),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"},Nr=Object.values(v),G={POLITE:"polite",ASSERTIVE:"assertive"},Ir=Object.values(G),B={ALERT:"alert",DIALOG:"dialog",ALERTDIALOG:"alertdialog"},Er=Object.values(B),c="purpur-notification",Rr=e=>{switch(e){case v.INFO:return fr;case v.SUCCESS:return cr;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:_,hidden:d,id:s,onClose:h,...x},$)=>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:jr(u,l[c],l[`${c}--${n}`],{[l[`${c}--hidden`]]:d,[l[`${c}--has-close-button`]]:!!h}),"data-testid":e,ref:$,role:t,...x,children:[o.jsxs("div",{className:l[`${c}__top`],children:[o.jsxs("div",{className:l[`${c}__header`],children:[o.jsx(E,{"data-testid":e?`${e}-icon`:void 0,className:l[`${c}__icon`],svg:Rr(n),size:"md"}),!!_&&o.jsx(ir,{"data-testid":e?`${e}-heading`:void 0,variant:"subsection-100",tag:r,className:l[`${c}__heading`],children:o.jsxs("span",{id:s?`${s}-heading`:void 0,children:[" ",_]})})]}),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[`${c}__close-button`],children:o.jsx(E,{svg:_r,size:"sm"})})]}),a&&o.jsx("div",{"data-testid":e?`${e}-body`:void 0,className:l[`${c}__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})]}),V=R.forwardRef(Lr);V.displayName="Notification";exports.NOTIFICATION_ARIA_LIVE=G;exports.NOTIFICATION_ROLE=B;exports.NOTIFICATION_STATUS=v;exports.Notification=V;exports.notificationAriaLiveValues=Ir;exports.notificationRoles=Er;exports.notificationStatuses=Nr; | ||
//# sourceMappingURL=notification.cjs.js.map |
@@ -8,3 +8,3 @@ import { jsxs as v, jsx as o } from "react/jsx-runtime"; | ||
}; | ||
function k(e) { | ||
function V(e) { | ||
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; | ||
@@ -48,4 +48,4 @@ } | ||
})(M); | ||
var V = M.exports; | ||
const E = /* @__PURE__ */ k(V), H = "_rotate_7s2g1_1", z = "_dash_7s2g1_1", m = { | ||
var k = M.exports; | ||
const E = /* @__PURE__ */ V(k), H = "_rotate_7s2g1_1", F = "_dash_7s2g1_1", b = { | ||
"purpur-spinner": "_purpur-spinner_7s2g1_1", | ||
@@ -59,7 +59,7 @@ rotate: H, | ||
"purpur-spinner__circle": "_purpur-spinner__circle_7s2g1_24", | ||
dash: z, | ||
dash: F, | ||
"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" | ||
}, b = "purpur-spinner", F = { | ||
}, m = "purpur-spinner", z = { | ||
PRIMARY: "primary", | ||
@@ -78,3 +78,3 @@ DISABLED: "disabled", | ||
size: u = U.SM, | ||
variant: a = F.PRIMARY, | ||
variant: a = z.PRIMARY, | ||
...i | ||
@@ -84,3 +84,3 @@ }) => /* @__PURE__ */ o( | ||
{ | ||
className: E([m[b], m[`${b}--${u}`]]), | ||
className: E([b[m], b[`${m}--${u}`]]), | ||
"data-testid": e, | ||
@@ -92,4 +92,4 @@ ...i, | ||
className: E( | ||
m[`${b}__circle`], | ||
m[`${b}__circle--${a}`] | ||
b[`${m}__circle`], | ||
b[`${m}__circle--${a}`] | ||
), | ||
@@ -103,3 +103,3 @@ cx: "25", | ||
); | ||
function X(e) { | ||
function Y(e) { | ||
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; | ||
@@ -143,4 +143,4 @@ } | ||
})(P); | ||
var Y = P.exports; | ||
const K = /* @__PURE__ */ X(Y), f = { | ||
var X = P.exports; | ||
const J = /* @__PURE__ */ Y(X), f = { | ||
"purpur-button": "_purpur-button_1fna2_1", | ||
@@ -166,3 +166,3 @@ "purpur-button--sm": "_purpur-button--sm_1fna2_33", | ||
"purpur-button--text": "_purpur-button--text_1fna2_175" | ||
}, g = "purpur-button", J = ({ | ||
}, g = "purpur-button", K = ({ | ||
children: e, | ||
@@ -183,3 +183,3 @@ className: u, | ||
return null; | ||
const S = K( | ||
const S = J( | ||
[ | ||
@@ -197,3 +197,3 @@ f[g], | ||
u | ||
), G = (N) => { | ||
), B = (N) => { | ||
i || t ? N.preventDefault() : n && n(N); | ||
@@ -209,3 +209,3 @@ }, Z = () => d.endsWith("negative") ? "negative-disabled" : "disabled"; | ||
"aria-disabled": h["aria-disabled"] || i || t, | ||
onClick: G, | ||
onClick: B, | ||
...h, | ||
@@ -219,3 +219,3 @@ children: [ | ||
); | ||
}, T = R(J); | ||
}, T = R(K); | ||
T.displayName = "Button"; | ||
@@ -308,3 +308,3 @@ function Q(e) { | ||
} | ||
var C = { exports: {} }; | ||
var D = { exports: {} }; | ||
/*! | ||
@@ -344,4 +344,4 @@ Copyright (c) 2018 Jed Watson. | ||
})(); | ||
})(C); | ||
var ur = C.exports; | ||
})(D); | ||
var ur = D.exports; | ||
const ir = /* @__PURE__ */ ar(ur), pr = { | ||
@@ -380,3 +380,3 @@ "purpur-icon": "_purpur-icon_8u1lq_1", | ||
category: "status" | ||
}, dr = ir.bind(pr), I = "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 = ir.bind(pr), L = "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 } = {}) => { | ||
const a = [ | ||
@@ -389,3 +389,3 @@ { name: "xmlns", value: "http://www.w3.org/2000/svg" }, | ||
return `<svg ${gr(a)}>${i}${e}</svg>`; | ||
}, vr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), L = ({ | ||
}, vr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), I = ({ | ||
["data-testid"]: e, | ||
@@ -401,3 +401,3 @@ svg: u, | ||
title: a | ||
}), n = dr(i, I, `${I}--${p}`); | ||
}), n = dr(i, L, `${L}--${p}`); | ||
return /* @__PURE__ */ o( | ||
@@ -417,3 +417,3 @@ "span", | ||
} | ||
var D = { exports: {} }; | ||
var C = { exports: {} }; | ||
/*! | ||
@@ -453,5 +453,5 @@ Copyright (c) 2018 Jed Watson. | ||
})(); | ||
})(D); | ||
var mr = D.exports; | ||
const br = /* @__PURE__ */ yr(mr), w = { | ||
})(C); | ||
var br = C.exports; | ||
const mr = /* @__PURE__ */ yr(br), w = { | ||
"purpur-paragraph": "_purpur-paragraph_hwaj6_1", | ||
@@ -490,3 +490,3 @@ "purpur-paragraph--disabled": "_purpur-paragraph--disabled_hwaj6_7", | ||
}) => { | ||
const n = br([ | ||
const n = mr([ | ||
a, | ||
@@ -505,3 +505,3 @@ w[x], | ||
} | ||
var B = { exports: {} }; | ||
var G = { exports: {} }; | ||
/*! | ||
@@ -541,4 +541,4 @@ Copyright (c) 2018 Jed Watson. | ||
})(); | ||
})(B); | ||
var Sr = B.exports; | ||
})(G); | ||
var Sr = G.exports; | ||
const Ar = /* @__PURE__ */ $r(Sr), l = { | ||
@@ -615,3 +615,3 @@ "purpur-notification": "_purpur-notification_10qwf_1", | ||
/* @__PURE__ */ o( | ||
L, | ||
I, | ||
{ | ||
@@ -648,3 +648,3 @@ "data-testid": e ? `${e}-icon` : void 0, | ||
className: l[`${c}__close-button`], | ||
children: /* @__PURE__ */ o(L, { svg: lr, size: "sm" }) | ||
children: /* @__PURE__ */ o(I, { svg: lr, size: "sm" }) | ||
} | ||
@@ -671,4 +671,4 @@ ) | ||
} | ||
), Ir = R(Er); | ||
Ir.displayName = "Notification"; | ||
), Lr = R(Er); | ||
Lr.displayName = "Notification"; | ||
export { | ||
@@ -678,3 +678,3 @@ Or as NOTIFICATION_ARIA_LIVE, | ||
y as NOTIFICATION_STATUS, | ||
Ir as Notification, | ||
Lr as Notification, | ||
Pr as notificationAriaLiveValues, | ||
@@ -681,0 +681,0 @@ Tr as notificationRoles, |
@@ -1,10 +0,10 @@ | ||
System.register(["react","react/jsx-runtime"],function(f,Lr){"use strict";var S,o,j,_;return{setters:[d=>{S=d.forwardRef,o=d.default},d=>{j=d.jsxs,_=d.jsx}],execute:function(){const d={SM:"sm",MD:"md",LG:"lg"};function V(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var R={exports:{}};/*! | ||
System.register(["react","react/jsx-runtime"],function(f,Lr){"use strict";var S,o,j,_;return{setters:[d=>{S=d.forwardRef,o=d.default},d=>{j=d.jsxs,_=d.jsx}],execute:function(){const d={SM:"sm",MD:"md",LG:"lg"};function Z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var R={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})()})(R);var k=R.exports;const L=V(k),F="_rotate_7s2g1_1",H="_dash_7s2g1_1",w={"purpur-spinner":"_purpur-spinner_7s2g1_1",rotate:F,"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: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"},x="purpur-spinner",z={PRIMARY:"primary",DISABLED:"disabled",NEGATIVE:"negative",NEGATIVE_DISABLED:"negative-disabled"},U={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},W=({["data-testid"]:e,size:i=U.SM,variant:a=z.PRIMARY,...u})=>_("div",{className:L([w[x],w[`${x}--${i}`]]),"data-testid":e,...u,children:_("svg",{viewBox:"0 0 50 50",children:_("circle",{className:L(w[`${x}__circle`],w[`${x}__circle--${a}`]),cx:"25",cy:"25",r:"20"})})});function X(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})()})(R);var F=R.exports;const L=Z(F),k="_rotate_7s2g1_1",H="_dash_7s2g1_1",w={"purpur-spinner":"_purpur-spinner_7s2g1_1",rotate:k,"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: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"},x="purpur-spinner",U={PRIMARY:"primary",DISABLED:"disabled",NEGATIVE:"negative",NEGATIVE_DISABLED:"negative-disabled"},z={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},W=({["data-testid"]:e,size:i=z.SM,variant:a=U.PRIMARY,...u})=>_("div",{className:L([w[x],w[`${x}--${i}`]]),"data-testid":e,...u,children:_("svg",{viewBox:"0 0 50 50",children:_("circle",{className:L(w[`${x}__circle`],w[`${x}__circle--${a}`]),cx:"25",cy:"25",r:"20"})})});function Y(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 Y=T.exports;const K=X(Y),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"},h="purpur-button",J=({children:e,className:i,["data-testid"]:a,disabled:u=!1,fullWidth:p=!1,iconOnly:r,loading:t=!1,onClick:n,size:v=d.MD,variant:y,type:s="button",...m},E)=>{if(r&&y==="destructive")return null;const I=K([g[h],g[`${h}--${y}`],g[`${h}--${v}`]],{[g[`${h}--icon-only`]]:r,[g[`${h}--negative`]]:y.endsWith("negative"),[g[`${h}--full-width`]]:p,[g[`${h}--disabled`]]:u||t},i),jr=Z=>{u||t?Z.preventDefault():n&&n(Z)},Rr=()=>y.endsWith("negative")?"negative-disabled":"disabled";return j("button",{className:I,"data-testid":a,type:s,ref:E,"aria-disabled":m["aria-disabled"]||u||t,onClick:jr,...m,children:[t&&_(W,{size:v===d.LG?"xs":"xxs",variant:Rr()})," ",e]})},M=S(J);M.displayName="Button";function Q(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 X=T.exports;const J=Y(X),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"},h="purpur-button",K=({children:e,className:i,["data-testid"]:a,disabled:u=!1,fullWidth:p=!1,iconOnly:r,loading:t=!1,onClick:n,size:v=d.MD,variant:y,type:s="button",...m},E)=>{if(r&&y==="destructive")return null;const I=J([g[h],g[`${h}--${y}`],g[`${h}--${v}`]],{[g[`${h}--icon-only`]]:r,[g[`${h}--negative`]]:y.endsWith("negative"),[g[`${h}--full-width`]]:p,[g[`${h}--disabled`]]:u||t},i),jr=V=>{u||t?V.preventDefault():n&&n(V)},Rr=()=>y.endsWith("negative")?"negative-disabled":"disabled";return j("button",{className:I,"data-testid":a,type:s,ref:E,"aria-disabled":m["aria-disabled"]||u||t,onClick:jr,...m,children:[t&&_(W,{size:v===d.LG?"xs":"xxs",variant:Rr()})," ",e]})},M=S(K);M.displayName="Button";function Q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P={exports:{}};/*! | ||
Copyright (c) 2018 Jed Watson. | ||
@@ -17,11 +17,11 @@ 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})()})(C);var ir=C.exports;const ur=ar(ir),pr={"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"},or={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"},sr={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"},lr={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"},cr={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"},_r={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"},dr=ur.bind(pr),q="purpur-icon",fr="md",gr=e=>e.filter(i=>Object.keys(i).length>=1).map(i=>`${i.name}="${i.value}"`).join(" "),hr=({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 ${gr(a)}>${u}${e}</svg>`},vr=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),D=({["data-testid"]:e,svg:i,allyTitle:a,className:u="",size:p=fr,...r})=>{const t=hr({content:vr(i.svg),title:a}),n=dr(u,q,`${q}--${p}`);return _("span",{"aria-label":a,className:n,"data-testid":e,dangerouslySetInnerHTML:{__html:t},...r})};function yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var B={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})()})(C);var ir=C.exports;const ur=ar(ir),pr={"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"},or={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"},sr={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"},lr={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"},cr={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"},_r={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"},dr=ur.bind(pr),q="purpur-icon",fr="md",gr=e=>e.filter(i=>Object.keys(i).length>=1).map(i=>`${i.name}="${i.value}"`).join(" "),hr=({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 ${gr(a)}>${u}${e}</svg>`},vr=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),D=({["data-testid"]:e,svg:i,allyTitle:a,className:u="",size:p=fr,...r})=>{const t=hr({content:vr(i.svg),title:a}),n=dr(u,q,`${q}--${p}`);return _("span",{"aria-label":a,className:n,"data-testid":e,dangerouslySetInnerHTML:{__html:t},...r})};function yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var G={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})()})(B);var mr=B.exports;const br=yr(mr),$={"purpur-paragraph":"_purpur-paragraph_hwaj6_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_hwaj6_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_hwaj6_10","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_hwaj6_13","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_hwaj6_19","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_hwaj6_26","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_hwaj6_33","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_hwaj6_39","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_hwaj6_45","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_hwaj6_51","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_hwaj6_57","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_hwaj6_64","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_hwaj6_71"},wr={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"},A="purpur-paragraph",xr=({["data-testid"]:e,children:i,className:a="",disabled:u,enableHyphenation:p=!1,variant:r=wr.PARAGRAPH100,...t})=>{const n=br([a,$[A],$[`${A}--${r}`],{[$[`${A}--hyphens`]]:p,[$[`${A}--disabled`]]:u}]);return _("p",{...t,className:n,"data-testid":e,children:i})};function $r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var G={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})()})(G);var mr=G.exports;const br=yr(mr),$={"purpur-paragraph":"_purpur-paragraph_hwaj6_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_hwaj6_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_hwaj6_10","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_hwaj6_13","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_hwaj6_19","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_hwaj6_26","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_hwaj6_33","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_hwaj6_39","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_hwaj6_45","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_hwaj6_51","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_hwaj6_57","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_hwaj6_64","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_hwaj6_71"},wr={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"},A="purpur-paragraph",xr=({["data-testid"]:e,children:i,className:a="",disabled:u,enableHyphenation:p=!1,variant:r=wr.PARAGRAPH100,...t})=>{const n=br([a,$[A],$[`${A}--${r}`],{[$[`${A}--hyphens`]]:p,[$[`${A}--disabled`]]:u}]);return _("p",{...t,className:n,"data-testid":e,children:i})};function $r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var B={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})()})(G);var Ar=G.exports;const Sr=$r(Ar),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"},b=f("NOTIFICATION_STATUS",{SUCCESS:"success",WARNING:"warning",ERROR:"error",INFO:"info"}),Tr=f("notificationStatuses",Object.values(b)),Or=f("NOTIFICATION_ARIA_LIVE",{POLITE:"polite",ASSERTIVE:"assertive"}),Mr=f("notificationAriaLiveValues",Object.values(Or)),Nr=f("NOTIFICATION_ROLE",{ALERT:"alert",DIALOG:"dialog",ALERTDIALOG:"alertdialog"}),Pr=f("notificationRoles",Object.values(Nr)),c="purpur-notification",Er=e=>{switch(e){case b.INFO:return _r;case b.SUCCESS:return sr;case b.WARNING:return or;case b.ERROR:return cr}},Ir=f("Notification",S(({["data-testid"]:e,["aria-live"]:i,children:a,className:u,closeButtonAllyLabel:p,headingTag:r="h4",role:t,status:n="info",heading:v,hidden:y,id:s,onClose:m,...E},I)=>o.createElement("div",{id:s,"aria-labelledby":s?`${s}-heading`:void 0,"aria-describedby":s?`${s}-body`:void 0,"aria-live":i,"aria-hidden":!!y,className:Sr(u,l[c],l[`${c}--${n}`],{[l[`${c}--hidden`]]:y,[l[`${c}--has-close-button`]]:!!m}),"data-testid":e,ref:I,role:t,...E},o.createElement("div",{className:l[`${c}__top`]},o.createElement("div",{className:l[`${c}__header`]},o.createElement(D,{"data-testid":e?`${e}-icon`:void 0,className:l[`${c}__icon`],svg:Er(n),size:"md"}),!!v&&o.createElement(nr,{"data-testid":e?`${e}-heading`:void 0,variant:"subsection-100",tag:r,className:l[`${c}__heading`]},o.createElement("span",{id:s?`${s}-heading`:void 0}," ",v))),m&&o.createElement(M,{"data-testid":e?`${e}-close-button`:void 0,variant:"tertiary-purple",size:"sm",iconOnly:!0,"aria-label":p,onClick:m,className:l[`${c}__close-button`]},o.createElement(D,{svg:lr,size:"sm"}))),a&&o.createElement("div",{"data-testid":e?`${e}-body`:void 0,className:l[`${c}__body`],id:s?`${s}-body`:void 0},typeof a=="string"?o.createElement(xr,{"data-testid":e?`${e}-paragraph`:void 0,variant:"paragraph-100"},a):a))));Ir.displayName="Notification"}}}); | ||
*/(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})()})(B);var Ar=B.exports;const Sr=$r(Ar),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"},b=f("NOTIFICATION_STATUS",{SUCCESS:"success",WARNING:"warning",ERROR:"error",INFO:"info"}),Tr=f("notificationStatuses",Object.values(b)),Or=f("NOTIFICATION_ARIA_LIVE",{POLITE:"polite",ASSERTIVE:"assertive"}),Mr=f("notificationAriaLiveValues",Object.values(Or)),Nr=f("NOTIFICATION_ROLE",{ALERT:"alert",DIALOG:"dialog",ALERTDIALOG:"alertdialog"}),Pr=f("notificationRoles",Object.values(Nr)),c="purpur-notification",Er=e=>{switch(e){case b.INFO:return _r;case b.SUCCESS:return sr;case b.WARNING:return or;case b.ERROR:return cr}},Ir=f("Notification",S(({["data-testid"]:e,["aria-live"]:i,children:a,className:u,closeButtonAllyLabel:p,headingTag:r="h4",role:t,status:n="info",heading:v,hidden:y,id:s,onClose:m,...E},I)=>o.createElement("div",{id:s,"aria-labelledby":s?`${s}-heading`:void 0,"aria-describedby":s?`${s}-body`:void 0,"aria-live":i,"aria-hidden":!!y,className:Sr(u,l[c],l[`${c}--${n}`],{[l[`${c}--hidden`]]:y,[l[`${c}--has-close-button`]]:!!m}),"data-testid":e,ref:I,role:t,...E},o.createElement("div",{className:l[`${c}__top`]},o.createElement("div",{className:l[`${c}__header`]},o.createElement(D,{"data-testid":e?`${e}-icon`:void 0,className:l[`${c}__icon`],svg:Er(n),size:"md"}),!!v&&o.createElement(nr,{"data-testid":e?`${e}-heading`:void 0,variant:"subsection-100",tag:r,className:l[`${c}__heading`]},o.createElement("span",{id:s?`${s}-heading`:void 0}," ",v))),m&&o.createElement(M,{"data-testid":e?`${e}-close-button`:void 0,variant:"tertiary-purple",size:"sm",iconOnly:!0,"aria-label":p,onClick:m,className:l[`${c}__close-button`]},o.createElement(D,{svg:lr,size:"sm"}))),a&&o.createElement("div",{"data-testid":e?`${e}-body`:void 0,className:l[`${c}__body`],id:s?`${s}-body`:void 0},typeof a=="string"?o.createElement(xr,{"data-testid":e?`${e}-paragraph`:void 0,variant:"paragraph-100"},a):a))));Ir.displayName="Notification"}}}); | ||
//# sourceMappingURL=notification.system.js.map |
{ | ||
"name": "@purpurds/notification", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"license": "AGPL-3.0-only", | ||
@@ -19,7 +19,7 @@ "main": "./dist/notification.cjs.js", | ||
"classnames": "~2.5.0", | ||
"@purpurds/button": "3.2.0", | ||
"@purpurds/heading": "3.2.0", | ||
"@purpurds/paragraph": "3.2.0", | ||
"@purpurds/icon": "3.2.0", | ||
"@purpurds/tokens": "3.2.0" | ||
"@purpurds/icon": "3.3.0", | ||
"@purpurds/button": "3.3.0", | ||
"@purpurds/paragraph": "3.3.0", | ||
"@purpurds/tokens": "3.3.0", | ||
"@purpurds/heading": "3.3.0" | ||
}, | ||
@@ -26,0 +26,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1438054
+ Added@purpurds/action@3.3.0(transitive)
+ Added@purpurds/button@3.3.0(transitive)
+ Added@purpurds/heading@3.3.0(transitive)
+ Added@purpurds/icon@3.3.0(transitive)
+ Added@purpurds/paragraph@3.3.0(transitive)
+ Added@purpurds/spinner@3.3.0(transitive)
+ Added@purpurds/tokens@3.3.0(transitive)
- Removed@purpurds/action@3.2.0(transitive)
- Removed@purpurds/button@3.2.0(transitive)
- Removed@purpurds/heading@3.2.0(transitive)
- Removed@purpurds/icon@3.2.0(transitive)
- Removed@purpurds/paragraph@3.2.0(transitive)
- Removed@purpurds/spinner@3.2.0(transitive)
- Removed@purpurds/tokens@3.2.0(transitive)
Updated@purpurds/button@3.3.0
Updated@purpurds/heading@3.3.0
Updated@purpurds/icon@3.3.0
Updated@purpurds/paragraph@3.3.0
Updated@purpurds/tokens@3.3.0