@purpurds/notification-banner
Advanced tools
Comparing version 5.27.3 to 5.27.4
Name: @purpurds/button | ||
Version: 5.27.2 | ||
Version: 5.27.3 | ||
License: AGPL-3.0-only | ||
@@ -9,3 +9,3 @@ Private: false | ||
Name: @purpurds/grid | ||
Version: 5.27.2 | ||
Version: 5.27.3 | ||
License: AGPL-3.0-only | ||
@@ -17,3 +17,3 @@ Private: false | ||
Name: @purpurds/heading | ||
Version: 5.27.2 | ||
Version: 5.27.3 | ||
License: AGPL-3.0-only | ||
@@ -25,3 +25,3 @@ Private: false | ||
Name: @purpurds/icon | ||
Version: 5.27.2 | ||
Version: 5.27.3 | ||
License: AGPL-3.0-only | ||
@@ -28,0 +28,0 @@ Private: false |
@@ -1,26 +0,26 @@ | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),j=require("react"),Y={LG:"lg"};function J(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var P={exports:{}};/*! | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),j=require("react"),U={SM:"sm",MD:"md",LG:"lg"};function V(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var I={exports:{}};/*! | ||
Copyright (c) 2018 Jed Watson. | ||
Licensed under the MIT License (MIT), see | ||
http://jedwatson.github.io/classnames | ||
*/(function(t){(function(){var p={}.hasOwnProperty;function e(){for(var r="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(r=u(r,o(i)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return e.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var i in r)p.call(r,i)&&r[i]&&(n=u(n,i));return n}function u(r,n){return n?r?r+" "+n:r+n:r}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(P);var U=P.exports;const M=J(U),W="_rotate_1xozj_1",X="_dash_1xozj_1",x={"purpur-spinner":"_purpur-spinner_1xozj_1",rotate:W,"purpur-spinner--xxs":"_purpur-spinner--xxs_1xozj_4","purpur-spinner--xs":"_purpur-spinner--xs_1xozj_8","purpur-spinner--sm":"_purpur-spinner--sm_1xozj_12","purpur-spinner--md":"_purpur-spinner--md_1xozj_16","purpur-spinner--lg":"_purpur-spinner--lg_1xozj_20","purpur-spinner__circle":"_purpur-spinner__circle_1xozj_24",dash:X,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_1xozj_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_1xozj_36"},b="purpur-spinner",K={SM:"sm"},Q=({["data-testid"]:t,disabled:p=!1,negative:e=!1,size:o=K.SM,...u})=>a.jsx("div",{className:M([x[b],x[`${b}--${o}`]]),"data-testid":t,...u,children:a.jsx("svg",{viewBox:"0 0 50 50",children:a.jsx("circle",{className:M(x[`${b}__circle`],{[x[`${b}__circle--disabled`]]:p,[x[`${b}__circle--negative`]]:e}),cx:"25",cy:"25",r:"20"})})});function rr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var B={exports:{}};/*! | ||
*/(function(t){(function(){var p={}.hasOwnProperty;function e(){for(var r="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(r=u(r,o(i)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return e.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var i in r)p.call(r,i)&&r[i]&&(n=u(n,i));return n}function u(r,n){return n?r?r+" "+n:r+n:r}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(I);var J=I.exports;const L=V(J),W="_rotate_1xozj_1",Y="_dash_1xozj_1",x={"purpur-spinner":"_purpur-spinner_1xozj_1",rotate:W,"purpur-spinner--xxs":"_purpur-spinner--xxs_1xozj_4","purpur-spinner--xs":"_purpur-spinner--xs_1xozj_8","purpur-spinner--sm":"_purpur-spinner--sm_1xozj_12","purpur-spinner--md":"_purpur-spinner--md_1xozj_16","purpur-spinner--lg":"_purpur-spinner--lg_1xozj_20","purpur-spinner__circle":"_purpur-spinner__circle_1xozj_24",dash:Y,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_1xozj_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_1xozj_36"},b="purpur-spinner",K={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},Q=({["data-testid"]:t,disabled:p=!1,negative:e=!1,size:o=K.SM,...u})=>a.jsx("div",{className:L([x[b],x[`${b}--${o}`]]),"data-testid":t,...u,children:a.jsx("svg",{viewBox:"0 0 50 50",children:a.jsx("circle",{className:L(x[`${b}__circle`],{[x[`${b}__circle--disabled`]]:p,[x[`${b}__circle--negative`]]:e}),cx:"25",cy:"25",r:"20"})})});function rr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var C={exports:{}};/*! | ||
Copyright (c) 2018 Jed Watson. | ||
Licensed under the MIT License (MIT), see | ||
http://jedwatson.github.io/classnames | ||
*/(function(t){(function(){var p={}.hasOwnProperty;function e(){for(var r="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(r=u(r,o.call(this,i)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return e.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var i in r)p.call(r,i)&&r[i]&&(n=u(n,this&&this[i]||i));return n}function u(r,n){return n?r?r+" "+n:r+n:r}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(B);var nr=B.exports;const tr=rr(nr),ir={"purpur-button":"_purpur-button_1acxn_1","purpur-button--sm":"_purpur-button--sm_1acxn_33","purpur-button--icon-only":"_purpur-button--icon-only_1acxn_36","purpur-button--md":"_purpur-button--md_1acxn_39","purpur-button--lg":"_purpur-button--lg_1acxn_45","purpur-button--full-width":"_purpur-button--full-width_1acxn_51","purpur-button--primary":"_purpur-button--primary_1acxn_54","purpur-button--disabled":"_purpur-button--disabled_1acxn_58","purpur-button--primary-negative":"_purpur-button--primary-negative_1acxn_64","purpur-button--secondary":"_purpur-button--secondary_1acxn_76","purpur-button--secondary-negative":"_purpur-button--secondary-negative_1acxn_87","purpur-button--expressive":"_purpur-button--expressive_1acxn_98","purpur-button--expressive-negative":"_purpur-button--expressive-negative_1acxn_108","purpur-button--negative":"_purpur-button--negative_1acxn_120","purpur-button--destructive":"_purpur-button--destructive_1acxn_127","purpur-button--destructive-negative":"_purpur-button--destructive-negative_1acxn_137","purpur-button--tertiary-purple":"_purpur-button--tertiary-purple_1acxn_147","purpur-button--tertiary-purple-negative":"_purpur-button--tertiary-purple-negative_1acxn_160","purpur-button--text-negative":"_purpur-button--text-negative_1acxn_175","purpur-button--text":"_purpur-button--text_1acxn_175"},er=tr.bind(ir),g="purpur-button",pr=({children:t,className:p,["data-testid"]:e,disabled:o=!1,fullWidth:u=!1,iconOnly:r,loading:n=!1,negative:i=!1,onClick:_,size:c="md",variant:d,type:f="button",...l},h)=>{if(r&&d==="destructive")return null;const S=er([g,`${g}--${i?`${d}-negative`:d}`,`${g}--${c}`],{[`${g}--icon-only`]:r,[`${g}--negative`]:i,[`${g}--full-width`]:u,[`${g}--disabled`]:o||n},p),k=A=>{o||n?A.preventDefault():_&&_(A)},z=!!l["aria-disabled"]||o||n;return a.jsxs("button",{className:S,"data-testid":e,type:f,ref:h,"aria-disabled":z,onClick:k,...l,children:[n&&a.jsx(Q,{size:c===Y.LG?"xs":"xxs",negative:i,disabled:z})," ",t]})},G=j.forwardRef(pr);G.displayName="Button";function ur(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var I={exports:{}};/*! | ||
*/(function(t){(function(){var p={}.hasOwnProperty;function e(){for(var r="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(r=u(r,o.call(this,i)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return e.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var i in r)p.call(r,i)&&r[i]&&(n=u(n,this&&this[i]||i));return n}function u(r,n){return n?r?r+" "+n:r+n:r}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(C);var nr=C.exports;const tr=rr(nr),ir={"purpur-button":"_purpur-button_1acxn_1","purpur-button--sm":"_purpur-button--sm_1acxn_33","purpur-button--icon-only":"_purpur-button--icon-only_1acxn_36","purpur-button--md":"_purpur-button--md_1acxn_39","purpur-button--lg":"_purpur-button--lg_1acxn_45","purpur-button--full-width":"_purpur-button--full-width_1acxn_51","purpur-button--primary":"_purpur-button--primary_1acxn_54","purpur-button--disabled":"_purpur-button--disabled_1acxn_58","purpur-button--primary-negative":"_purpur-button--primary-negative_1acxn_64","purpur-button--secondary":"_purpur-button--secondary_1acxn_76","purpur-button--secondary-negative":"_purpur-button--secondary-negative_1acxn_87","purpur-button--expressive":"_purpur-button--expressive_1acxn_98","purpur-button--expressive-negative":"_purpur-button--expressive-negative_1acxn_108","purpur-button--negative":"_purpur-button--negative_1acxn_120","purpur-button--destructive":"_purpur-button--destructive_1acxn_127","purpur-button--destructive-negative":"_purpur-button--destructive-negative_1acxn_137","purpur-button--tertiary-purple":"_purpur-button--tertiary-purple_1acxn_147","purpur-button--tertiary-purple-negative":"_purpur-button--tertiary-purple-negative_1acxn_160","purpur-button--text-negative":"_purpur-button--text-negative_1acxn_175","purpur-button--text":"_purpur-button--text_1acxn_175"},er=tr.bind(ir),m="purpur-button",pr=({children:t,className:p,["data-testid"]:e,disabled:o=!1,fullWidth:u=!1,iconOnly:r,loading:n=!1,negative:i=!1,onClick:_,size:c="md",variant:g,type:v="button",...l},h)=>{if(r&&g==="destructive")return null;const w=er([m,`${m}--${i?`${g}-negative`:g}`,`${m}--${c}`],{[`${m}--icon-only`]:r,[`${m}--negative`]:i,[`${m}--full-width`]:u,[`${m}--disabled`]:o||n},p),k=T=>{o||n?T.preventDefault():_&&_(T)},z=!!l["aria-disabled"]||o||n;return a.jsxs("button",{className:w,"data-testid":e,type:v,ref:h,"aria-disabled":z,onClick:k,...l,children:[n&&a.jsx(Q,{size:c===U.LG?"xs":"xxs",negative:i,disabled:z})," ",t]})},P=j.forwardRef(pr);P.displayName="Button";function ur(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var E={exports:{}};/*! | ||
Copyright (c) 2018 Jed Watson. | ||
Licensed under the MIT License (MIT), see | ||
http://jedwatson.github.io/classnames | ||
*/(function(t){(function(){var p={}.hasOwnProperty;function e(){for(var r="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(r=u(r,o.call(this,i)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return e.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var i in r)p.call(r,i)&&r[i]&&(n=u(n,this&&this[i]||i));return n}function u(r,n){return n?r?r+" "+n:r+n:r}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(I);var or=I.exports;const T=ur(or),ar={"purpur-grid-item":"_purpur-grid-item_zx9tz_1","purpur-grid-item--no-col-gap":"_purpur-grid-item--no-col-gap_zx9tz_6","purpur-grid-item-colspan-sm-4":"_purpur-grid-item-colspan-sm-4_zx9tz_24","purpur-grid-item-colspan-sm-3":"_purpur-grid-item-colspan-sm-3_zx9tz_27","purpur-grid-item-colspan-sm-2":"_purpur-grid-item-colspan-sm-2_zx9tz_30","purpur-grid-item-colspan-sm-1":"_purpur-grid-item-colspan-sm-1_zx9tz_33","purpur-grid-item-colspan-md-8":"_purpur-grid-item-colspan-md-8_zx9tz_37","purpur-grid-item-colspan-md-7":"_purpur-grid-item-colspan-md-7_zx9tz_42","purpur-grid-item-colspan-md-6":"_purpur-grid-item-colspan-md-6_zx9tz_47","purpur-grid-item-colspan-md-5":"_purpur-grid-item-colspan-md-5_zx9tz_52","purpur-grid-item-colspan-md-4":"_purpur-grid-item-colspan-md-4_zx9tz_57","purpur-grid-item-colspan-md-3":"_purpur-grid-item-colspan-md-3_zx9tz_62","purpur-grid-item-colspan-md-2":"_purpur-grid-item-colspan-md-2_zx9tz_67","purpur-grid-item-colspan-md-1":"_purpur-grid-item-colspan-md-1_zx9tz_72","purpur-grid-item-colspan-lg-12":"_purpur-grid-item-colspan-lg-12_zx9tz_77","purpur-grid-item-colspan-lg-11":"_purpur-grid-item-colspan-lg-11_zx9tz_82","purpur-grid-item-colspan-lg-10":"_purpur-grid-item-colspan-lg-10_zx9tz_87","purpur-grid-item-colspan-lg-9":"_purpur-grid-item-colspan-lg-9_zx9tz_92","purpur-grid-item-colspan-lg-8":"_purpur-grid-item-colspan-lg-8_zx9tz_97","purpur-grid-item-colspan-lg-7":"_purpur-grid-item-colspan-lg-7_zx9tz_102","purpur-grid-item-colspan-lg-6":"_purpur-grid-item-colspan-lg-6_zx9tz_107","purpur-grid-item-colspan-lg-5":"_purpur-grid-item-colspan-lg-5_zx9tz_112","purpur-grid-item-colspan-lg-4":"_purpur-grid-item-colspan-lg-4_zx9tz_117","purpur-grid-item-colspan-lg-3":"_purpur-grid-item-colspan-lg-3_zx9tz_122","purpur-grid-item-colspan-lg-2":"_purpur-grid-item-colspan-lg-2_zx9tz_127","purpur-grid-item-colspan-lg-1":"_purpur-grid-item-colspan-lg-1_zx9tz_77"},_r=T.bind(ar),y="purpur-grid-item",N=({children:t,className:p,["data-testid"]:e,colSpanSm:o=4,colSpanMd:u=8,colSpanLg:r=12,noColGap:n=!1})=>{const i=_r([p,y,{[`${y}--no-col-gap`]:n,[`${y}-colspan-sm-${o}`]:o,[`${y}-colspan-md-${u}`]:u,[`${y}-colspan-lg-${r}`]:r}]);return a.jsx("div",{className:i,"data-testid":e,children:t})},lr=t=>!!t&&j.isValidElement(t)&&(!!t.props.colSpanSm||!!t.props.colSpanMd||!!t.props.colSpanLg);N.displayName="Grid.Item";const sr={"purpur-grid":"_purpur-grid_8kjv6_1","purpur-grid__inner":"_purpur-grid__inner_8kjv6_27","purpur-grid__inner--no-gap":"_purpur-grid__inner--no-gap_8kjv6_32","purpur-grid__inner--no-row-gap":"_purpur-grid__inner--no-row-gap_8kjv6_32","purpur-grid__inner--grid":"_purpur-grid__inner--grid_8kjv6_50","purpur-grid__inner--no-col-gap":"_purpur-grid__inner--no-col-gap_8kjv6_54","purpur-grid__inner-col-sm-4":"_purpur-grid__inner-col-sm-4_8kjv6_57","purpur-grid__inner-col-sm-3":"_purpur-grid__inner-col-sm-3_8kjv6_60","purpur-grid__inner-col-sm-2":"_purpur-grid__inner-col-sm-2_8kjv6_63","purpur-grid__inner-col-md-8":"_purpur-grid__inner-col-md-8_8kjv6_67","purpur-grid__inner-col-md-7":"_purpur-grid__inner-col-md-7_8kjv6_72","purpur-grid__inner-col-md-6":"_purpur-grid__inner-col-md-6_8kjv6_77","purpur-grid__inner-col-md-5":"_purpur-grid__inner-col-md-5_8kjv6_82","purpur-grid__inner-col-md-4":"_purpur-grid__inner-col-md-4_8kjv6_87","purpur-grid__inner-col-md-3":"_purpur-grid__inner-col-md-3_8kjv6_92","purpur-grid__inner-col-md-2":"_purpur-grid__inner-col-md-2_8kjv6_97","purpur-grid__inner-col-lg-12":"_purpur-grid__inner-col-lg-12_8kjv6_102","purpur-grid__inner-col-lg-11":"_purpur-grid__inner-col-lg-11_8kjv6_107","purpur-grid__inner-col-lg-10":"_purpur-grid__inner-col-lg-10_8kjv6_112","purpur-grid__inner-col-lg-9":"_purpur-grid__inner-col-lg-9_8kjv6_117","purpur-grid__inner-col-lg-8":"_purpur-grid__inner-col-lg-8_8kjv6_122","purpur-grid__inner-col-lg-7":"_purpur-grid__inner-col-lg-7_8kjv6_127","purpur-grid__inner-col-lg-6":"_purpur-grid__inner-col-lg-6_8kjv6_132","purpur-grid__inner-col-lg-5":"_purpur-grid__inner-col-lg-5_8kjv6_137","purpur-grid__inner-col-lg-4":"_purpur-grid__inner-col-lg-4_8kjv6_142","purpur-grid__inner-col-lg-3":"_purpur-grid__inner-col-lg-3_8kjv6_147","purpur-grid__inner-col-lg-2":"_purpur-grid__inner-col-lg-2_8kjv6_152","purpur-grid__inner--flex":"_purpur-grid__inner--flex_8kjv6_156"},C=T.bind(sr),cr="purpur-grid",s="purpur-grid__inner",O=({children:t,className:p,containerClassName:e,["data-testid"]:o,colsSm:u=1,colsMd:r=1,colsLg:n=1,noGap:i=!1,noColGap:_=!1,noRowGap:c=!1,...d})=>{const f=j.Children.toArray(t).filter(lr),l=f.length,h=C([e,cr]),S=C([p,s,{[`${s}--grid`]:!l,[`${s}--flex`]:l,[`${s}--no-gap`]:i,[`${s}--no-col-gap`]:_,[`${s}--no-row-gap`]:c,[`${s}-col-sm-${u}`]:u>1&&!l,[`${s}-col-md-${r}`]:r>1&&!l,[`${s}-col-lg-${n}`]:n>1&&!l}]);return a.jsx("div",{className:h,"data-testid":o,...d,children:a.jsx("div",{className:S,children:l?j.Children.map(f,({props:{children:k,...z}})=>a.jsx(N,{...z,noColGap:i||_,children:k})):t})})};O.displayName="Grid";O.Item=N;function dr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var E={exports:{}};/*! | ||
*/(function(t){(function(){var p={}.hasOwnProperty;function e(){for(var r="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(r=u(r,o.call(this,i)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return e.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var i in r)p.call(r,i)&&r[i]&&(n=u(n,this&&this[i]||i));return n}function u(r,n){return n?r?r+" "+n:r+n:r}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(E);var or=E.exports;const B=ur(or),ar={"purpur-grid-item":"_purpur-grid-item_zx9tz_1","purpur-grid-item--no-col-gap":"_purpur-grid-item--no-col-gap_zx9tz_6","purpur-grid-item-colspan-sm-4":"_purpur-grid-item-colspan-sm-4_zx9tz_24","purpur-grid-item-colspan-sm-3":"_purpur-grid-item-colspan-sm-3_zx9tz_27","purpur-grid-item-colspan-sm-2":"_purpur-grid-item-colspan-sm-2_zx9tz_30","purpur-grid-item-colspan-sm-1":"_purpur-grid-item-colspan-sm-1_zx9tz_33","purpur-grid-item-colspan-md-8":"_purpur-grid-item-colspan-md-8_zx9tz_37","purpur-grid-item-colspan-md-7":"_purpur-grid-item-colspan-md-7_zx9tz_42","purpur-grid-item-colspan-md-6":"_purpur-grid-item-colspan-md-6_zx9tz_47","purpur-grid-item-colspan-md-5":"_purpur-grid-item-colspan-md-5_zx9tz_52","purpur-grid-item-colspan-md-4":"_purpur-grid-item-colspan-md-4_zx9tz_57","purpur-grid-item-colspan-md-3":"_purpur-grid-item-colspan-md-3_zx9tz_62","purpur-grid-item-colspan-md-2":"_purpur-grid-item-colspan-md-2_zx9tz_67","purpur-grid-item-colspan-md-1":"_purpur-grid-item-colspan-md-1_zx9tz_72","purpur-grid-item-colspan-lg-12":"_purpur-grid-item-colspan-lg-12_zx9tz_77","purpur-grid-item-colspan-lg-11":"_purpur-grid-item-colspan-lg-11_zx9tz_82","purpur-grid-item-colspan-lg-10":"_purpur-grid-item-colspan-lg-10_zx9tz_87","purpur-grid-item-colspan-lg-9":"_purpur-grid-item-colspan-lg-9_zx9tz_92","purpur-grid-item-colspan-lg-8":"_purpur-grid-item-colspan-lg-8_zx9tz_97","purpur-grid-item-colspan-lg-7":"_purpur-grid-item-colspan-lg-7_zx9tz_102","purpur-grid-item-colspan-lg-6":"_purpur-grid-item-colspan-lg-6_zx9tz_107","purpur-grid-item-colspan-lg-5":"_purpur-grid-item-colspan-lg-5_zx9tz_112","purpur-grid-item-colspan-lg-4":"_purpur-grid-item-colspan-lg-4_zx9tz_117","purpur-grid-item-colspan-lg-3":"_purpur-grid-item-colspan-lg-3_zx9tz_122","purpur-grid-item-colspan-lg-2":"_purpur-grid-item-colspan-lg-2_zx9tz_127","purpur-grid-item-colspan-lg-1":"_purpur-grid-item-colspan-lg-1_zx9tz_77"},_r=B.bind(ar),y="purpur-grid-item",N=({children:t,className:p,["data-testid"]:e,colSpanSm:o=4,colSpanMd:u=8,colSpanLg:r=12,noColGap:n=!1})=>{const i=_r([p,y,{[`${y}--no-col-gap`]:n,[`${y}-colspan-sm-${o}`]:o,[`${y}-colspan-md-${u}`]:u,[`${y}-colspan-lg-${r}`]:r}]);return a.jsx("div",{className:i,"data-testid":e,children:t})},lr=t=>!!t&&j.isValidElement(t)&&(!!t.props.colSpanSm||!!t.props.colSpanMd||!!t.props.colSpanLg);N.displayName="Grid.Item";const sr={"purpur-grid":"_purpur-grid_8kjv6_1","purpur-grid__inner":"_purpur-grid__inner_8kjv6_27","purpur-grid__inner--no-gap":"_purpur-grid__inner--no-gap_8kjv6_32","purpur-grid__inner--no-row-gap":"_purpur-grid__inner--no-row-gap_8kjv6_32","purpur-grid__inner--grid":"_purpur-grid__inner--grid_8kjv6_50","purpur-grid__inner--no-col-gap":"_purpur-grid__inner--no-col-gap_8kjv6_54","purpur-grid__inner-col-sm-4":"_purpur-grid__inner-col-sm-4_8kjv6_57","purpur-grid__inner-col-sm-3":"_purpur-grid__inner-col-sm-3_8kjv6_60","purpur-grid__inner-col-sm-2":"_purpur-grid__inner-col-sm-2_8kjv6_63","purpur-grid__inner-col-md-8":"_purpur-grid__inner-col-md-8_8kjv6_67","purpur-grid__inner-col-md-7":"_purpur-grid__inner-col-md-7_8kjv6_72","purpur-grid__inner-col-md-6":"_purpur-grid__inner-col-md-6_8kjv6_77","purpur-grid__inner-col-md-5":"_purpur-grid__inner-col-md-5_8kjv6_82","purpur-grid__inner-col-md-4":"_purpur-grid__inner-col-md-4_8kjv6_87","purpur-grid__inner-col-md-3":"_purpur-grid__inner-col-md-3_8kjv6_92","purpur-grid__inner-col-md-2":"_purpur-grid__inner-col-md-2_8kjv6_97","purpur-grid__inner-col-lg-12":"_purpur-grid__inner-col-lg-12_8kjv6_102","purpur-grid__inner-col-lg-11":"_purpur-grid__inner-col-lg-11_8kjv6_107","purpur-grid__inner-col-lg-10":"_purpur-grid__inner-col-lg-10_8kjv6_112","purpur-grid__inner-col-lg-9":"_purpur-grid__inner-col-lg-9_8kjv6_117","purpur-grid__inner-col-lg-8":"_purpur-grid__inner-col-lg-8_8kjv6_122","purpur-grid__inner-col-lg-7":"_purpur-grid__inner-col-lg-7_8kjv6_127","purpur-grid__inner-col-lg-6":"_purpur-grid__inner-col-lg-6_8kjv6_132","purpur-grid__inner-col-lg-5":"_purpur-grid__inner-col-lg-5_8kjv6_137","purpur-grid__inner-col-lg-4":"_purpur-grid__inner-col-lg-4_8kjv6_142","purpur-grid__inner-col-lg-3":"_purpur-grid__inner-col-lg-3_8kjv6_147","purpur-grid__inner-col-lg-2":"_purpur-grid__inner-col-lg-2_8kjv6_152","purpur-grid__inner--flex":"_purpur-grid__inner--flex_8kjv6_156"},M=B.bind(sr),cr="purpur-grid",s="purpur-grid__inner",O=({children:t,className:p,containerClassName:e,["data-testid"]:o,colsSm:u=1,colsMd:r=1,colsLg:n=1,noGap:i=!1,noColGap:_=!1,noRowGap:c=!1,...g})=>{const v=j.Children.toArray(t).filter(lr),l=v.length,h=M([e,cr]),w=M([p,s,{[`${s}--grid`]:!l,[`${s}--flex`]:l,[`${s}--no-gap`]:i,[`${s}--no-col-gap`]:_,[`${s}--no-row-gap`]:c,[`${s}-col-sm-${u}`]:u>1&&!l,[`${s}-col-md-${r}`]:r>1&&!l,[`${s}-col-lg-${n}`]:n>1&&!l}]);return a.jsx("div",{className:h,"data-testid":o,...g,children:a.jsx("div",{className:w,children:l?j.Children.map(v,({props:{children:k,...z}})=>a.jsx(N,{...z,noColGap:i||_,children:k})):t})})};O.displayName="Grid";O.Item=N;function dr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var G={exports:{}};/*! | ||
Copyright (c) 2018 Jed Watson. | ||
Licensed under the MIT License (MIT), see | ||
http://jedwatson.github.io/classnames | ||
*/(function(t){(function(){var p={}.hasOwnProperty;function e(){for(var r="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(r=u(r,o(i)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return e.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var i in r)p.call(r,i)&&r[i]&&(n=u(n,i));return n}function u(r,n){return n?r?r+" "+n:r+n:r}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(E);var gr=E.exports;const mr=dr(gr),$={"purpur-heading":"_purpur-heading_k9fhq_1","purpur-heading--hyphens":"_purpur-heading--hyphens_k9fhq_8","purpur-heading--negative":"_purpur-heading--negative_k9fhq_11","purpur-heading--subsection-100":"_purpur-heading--subsection-100_k9fhq_14","purpur-heading--title-100":"_purpur-heading--title-100_k9fhq_20","purpur-heading--title-200":"_purpur-heading--title-200_k9fhq_26","purpur-heading--title-300":"_purpur-heading--title-300_k9fhq_32","purpur-heading--title-400":"_purpur-heading--title-400_k9fhq_38","purpur-heading--title-500":"_purpur-heading--title-500_k9fhq_44","purpur-heading--title-600":"_purpur-heading--title-600_k9fhq_50","purpur-heading--title-700":"_purpur-heading--title-700_k9fhq_56","purpur-heading--display-25":"_purpur-heading--display-25_k9fhq_62","purpur-heading--display-50":"_purpur-heading--display-50_k9fhq_68","purpur-heading--display-100":"_purpur-heading--display-100_k9fhq_74","purpur-heading--display-200":"_purpur-heading--display-200_k9fhq_80"},fr={TITLE100:"title-100"},w="purpur-heading",R=({["data-testid"]:t,children:p,className:e="",enableHyphenation:o=!1,negative:u=!1,tag:r,variant:n=fr.TITLE100,...i})=>{const _=r,c=mr([e,$[w],$[`${w}--${n}`],{[$[`${w}--hyphens`]]:o,[$[`${w}--negative`]]:u}]);return a.jsx(_,{...i,className:c,"data-testid":t,children:p})};R.displayName="Heading";function vr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Z={exports:{}};/*! | ||
*/(function(t){(function(){var p={}.hasOwnProperty;function e(){for(var r="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(r=u(r,o(i)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return e.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var i in r)p.call(r,i)&&r[i]&&(n=u(n,i));return n}function u(r,n){return n?r?r+" "+n:r+n:r}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(G);var gr=G.exports;const mr=dr(gr),$={"purpur-heading":"_purpur-heading_k9fhq_1","purpur-heading--hyphens":"_purpur-heading--hyphens_k9fhq_8","purpur-heading--negative":"_purpur-heading--negative_k9fhq_11","purpur-heading--subsection-100":"_purpur-heading--subsection-100_k9fhq_14","purpur-heading--title-100":"_purpur-heading--title-100_k9fhq_20","purpur-heading--title-200":"_purpur-heading--title-200_k9fhq_26","purpur-heading--title-300":"_purpur-heading--title-300_k9fhq_32","purpur-heading--title-400":"_purpur-heading--title-400_k9fhq_38","purpur-heading--title-500":"_purpur-heading--title-500_k9fhq_44","purpur-heading--title-600":"_purpur-heading--title-600_k9fhq_50","purpur-heading--title-700":"_purpur-heading--title-700_k9fhq_56","purpur-heading--display-25":"_purpur-heading--display-25_k9fhq_62","purpur-heading--display-50":"_purpur-heading--display-50_k9fhq_68","purpur-heading--display-100":"_purpur-heading--display-100_k9fhq_74","purpur-heading--display-200":"_purpur-heading--display-200_k9fhq_80"},fr={TITLE100:"title-100",TITLE200:"title-200",TITLE300:"title-300",TITLE400:"title-400",TITLE500:"title-500",TITLE600:"title-600",TITLE700:"title-700",SUBSECTION100:"subsection-100"},S="purpur-heading",D=({["data-testid"]:t,children:p,className:e="",enableHyphenation:o=!1,negative:u=!1,tag:r,variant:n=fr.TITLE100,...i})=>{const _=r,c=mr([e,$[S],$[`${S}--${n}`],{[$[`${S}--hyphens`]]:o,[$[`${S}--negative`]]:u}]);return a.jsx(_,{...i,className:c,"data-testid":t,children:p})};D.displayName="Heading";function vr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var R={exports:{}};/*! | ||
Copyright (c) 2018 Jed Watson. | ||
Licensed under the MIT License (MIT), see | ||
http://jedwatson.github.io/classnames | ||
*/(function(t){(function(){var p={}.hasOwnProperty;function e(){for(var r="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(r=u(r,o.call(this,i)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return e.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var i in r)p.call(r,i)&&r[i]&&(n=u(n,this&&this[i]||i));return n}function u(r,n){return n?r?r+" "+n:r+n:r}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(Z);var hr=Z.exports;const xr=vr(hr),br={"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"},yr={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"},jr={name:"info",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',keywords:["info"],category:"status"},H=t=>a.jsx(q,{...t,svg:yr});H.displayName="IconClose";const V=t=>a.jsx(q,{...t,svg:jr});V.displayName="IconInfo";const zr=xr.bind(br),L="purpur-icon",$r="md",wr=t=>t.filter(p=>Object.keys(p).length>=1).map(p=>`${p.name}="${p.value}"`).join(" "),Sr=({content:t="",title:p}={})=>{const e=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},p?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],o=p?`<title>${p}</title>`:"";return`<svg ${wr(e)}>${o}${t}</svg>`},kr=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),q=({["data-testid"]:t,svg:p,allyTitle:e,className:o,size:u=$r,...r})=>{const n=Sr({content:kr(p.svg),title:e}),i=zr(o,L,`${L}--${u}`);return a.jsx("span",{"aria-label":e,className:i,"data-testid":t,dangerouslySetInnerHTML:{__html:n},...r})};q.displayName="Icon";function Nr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var D={exports:{}};/*! | ||
*/(function(t){(function(){var p={}.hasOwnProperty;function e(){for(var r="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(r=u(r,o.call(this,i)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return e.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var i in r)p.call(r,i)&&r[i]&&(n=u(n,this&&this[i]||i));return n}function u(r,n){return n?r?r+" "+n:r+n:r}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(R);var hr=R.exports;const xr=vr(hr),br={"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"},yr={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"},jr={name:"info",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',keywords:["info"],category:"status"},X=t=>a.jsx(q,{...t,svg:yr});X.displayName="IconClose";const Z=t=>a.jsx(q,{...t,svg:jr});Z.displayName="IconInfo";const zr=xr.bind(br),A="purpur-icon",$r="md",Sr=t=>t.filter(p=>Object.keys(p).length>=1).map(p=>`${p.name}="${p.value}"`).join(" "),wr=({content:t="",title:p}={})=>{const e=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},p?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],o=p?`<title>${p}</title>`:"";return`<svg ${Sr(e)}>${o}${t}</svg>`},kr=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),q=({["data-testid"]:t,svg:p,allyTitle:e,className:o,size:u=$r,...r})=>{const n=wr({content:kr(p.svg),title:e}),i=zr(o,A,`${A}--${u}`);return a.jsx("span",{"aria-label":e,className:i,"data-testid":t,dangerouslySetInnerHTML:{__html:n},...r})};q.displayName="Icon";function Nr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var H={exports:{}};/*! | ||
Copyright (c) 2018 Jed Watson. | ||
Licensed under the MIT License (MIT), see | ||
http://jedwatson.github.io/classnames | ||
*/(function(t){(function(){var p={}.hasOwnProperty;function e(){for(var r="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(r=u(r,o.call(this,i)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return e.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var i in r)p.call(r,i)&&r[i]&&(n=u(n,this&&this[i]||i));return n}function u(r,n){return n?r?r+" "+n:r+n:r}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(D);var Or=D.exports;const qr=Nr(Or),Ar={"purpur-notification-banner":"_purpur-notification-banner_llblm_1","purpur-notification-banner__container":"_purpur-notification-banner__container_llblm_6","purpur-notification-banner__content":"_purpur-notification-banner__content_llblm_11","purpur-notification-banner__icon":"_purpur-notification-banner__icon_llblm_16","purpur-notification-banner__heading":"_purpur-notification-banner__heading_llblm_19","purpur-notification-banner__heading--no-overlap":"_purpur-notification-banner__heading--no-overlap_llblm_22","purpur-notification-banner__close-button":"_purpur-notification-banner__close-button_llblm_25"},v=qr.bind(Ar),Mr=["h1","h2","h3","h4","h5","h6"],m="purpur-notification-banner",F=j.forwardRef(({["data-testid"]:t,children:p,className:e,closeButtonAllyLabel:o,description:u,hideIcon:r,icon:n,link:i,onClose:_,titleTag:c="h4",title:d,...f},l)=>{const h=v([e,m]);return a.jsx("div",{...f,className:h,role:"alert",ref:l,"data-testid":t,children:a.jsx(O,{children:a.jsxs("div",{className:v(`${m}__container`),children:[r?null:n||a.jsx(V,{className:v(`${m}__icon`),size:"sm"}),a.jsxs("div",{className:v(`${m}__content`),children:[a.jsx(R,{tag:c,variant:"subsection-100",className:v([`${m}__heading`,{[`${m}__heading--no-overlap`]:_}]),children:d}),a.jsxs("div",{children:[u," ",i]}),p]}),_&&a.jsx(G,{"data-testid":t?`${t}-close-button`:void 0,variant:"tertiary-purple",size:"sm",iconOnly:!0,"aria-label":o,onClick:_,className:v(`${m}__close-button`),children:a.jsx(H,{size:"sm"})})]})})})});F.displayName="NotificationBanner";exports.NotificationBanner=F;exports.tagTypes=Mr; | ||
*/(function(t){(function(){var p={}.hasOwnProperty;function e(){for(var r="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(r=u(r,o.call(this,i)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return e.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var i in r)p.call(r,i)&&r[i]&&(n=u(n,this&&this[i]||i));return n}function u(r,n){return n?r?r+" "+n:r+n:r}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(H);var Or=H.exports;const qr=Nr(Or),Tr={"purpur-notification-banner":"_purpur-notification-banner_llblm_1","purpur-notification-banner__container":"_purpur-notification-banner__container_llblm_6","purpur-notification-banner__content":"_purpur-notification-banner__content_llblm_11","purpur-notification-banner__icon":"_purpur-notification-banner__icon_llblm_16","purpur-notification-banner__heading":"_purpur-notification-banner__heading_llblm_19","purpur-notification-banner__heading--no-overlap":"_purpur-notification-banner__heading--no-overlap_llblm_22","purpur-notification-banner__close-button":"_purpur-notification-banner__close-button_llblm_25"},f=qr.bind(Tr),Lr=["h1","h2","h3","h4","h5","h6"],d="purpur-notification-banner",F=j.forwardRef(({["data-testid"]:t,children:p,className:e,closeButtonAllyLabel:o,description:u,hideIcon:r,icon:n,link:i,onClose:_,titleTag:c="h4",title:g,...v},l)=>{const h=f([e,d]);return a.jsx("div",{...v,className:h,role:"alert",ref:l,"data-testid":t,children:a.jsx(O,{children:a.jsxs("div",{className:f(`${d}__container`),children:[r?null:n?a.jsx("span",{className:f(`${d}__icon`),children:n}):a.jsx(Z,{className:f(`${d}__icon`),size:"sm"}),a.jsxs("div",{className:f(`${d}__content`),children:[a.jsx(D,{tag:c,variant:"subsection-100",className:f([`${d}__heading`,{[`${d}__heading--no-overlap`]:_}]),children:g}),a.jsxs("div",{children:[u," ",i]}),p]}),_&&a.jsx(P,{"data-testid":t?`${t}-close-button`:void 0,variant:"tertiary-purple",size:"sm",iconOnly:!0,"aria-label":o,onClick:_,className:f(`${d}__close-button`),children:a.jsx(X,{size:"sm"})})]})})})});F.displayName="NotificationBanner";exports.NotificationBanner=F;exports.tagTypes=Lr; | ||
//# sourceMappingURL=notification-banner.cjs.js.map |
import { jsxs as w, jsx as _ } from "react/jsx-runtime"; | ||
import { forwardRef as G, Children as M, isValidElement as J } from "react"; | ||
const U = { | ||
import { forwardRef as C, Children as T, isValidElement as V } from "react"; | ||
const J = { | ||
SM: "sm", | ||
MD: "md", | ||
LG: "lg" | ||
@@ -9,3 +11,3 @@ }; | ||
} | ||
var I = { exports: {} }; | ||
var E = { exports: {} }; | ||
/*! | ||
@@ -45,5 +47,5 @@ Copyright (c) 2018 Jed Watson. | ||
})(); | ||
})(I); | ||
var X = I.exports; | ||
const L = /* @__PURE__ */ W(X), K = "_rotate_1xozj_1", Q = "_dash_1xozj_1", x = { | ||
})(E); | ||
var Y = E.exports; | ||
const M = /* @__PURE__ */ W(Y), K = "_rotate_1xozj_1", Q = "_dash_1xozj_1", x = { | ||
"purpur-spinner": "_purpur-spinner_1xozj_1", | ||
@@ -61,3 +63,7 @@ rotate: K, | ||
}, b = "purpur-spinner", rr = { | ||
SM: "sm" | ||
XXS: "xxs", | ||
XS: "xs", | ||
SM: "sm", | ||
MD: "md", | ||
LG: "lg" | ||
}, nr = ({ | ||
@@ -72,3 +78,3 @@ ["data-testid"]: t, | ||
{ | ||
className: L([x[b], x[`${b}--${o}`]]), | ||
className: M([x[b], x[`${b}--${o}`]]), | ||
"data-testid": t, | ||
@@ -79,3 +85,3 @@ ...u, | ||
{ | ||
className: L(x[`${b}__circle`], { | ||
className: M(x[`${b}__circle`], { | ||
[x[`${b}__circle--disabled`]]: e, | ||
@@ -94,3 +100,3 @@ [x[`${b}__circle--negative`]]: p | ||
} | ||
var B = { exports: {} }; | ||
var P = { exports: {} }; | ||
/*! | ||
@@ -130,4 +136,4 @@ Copyright (c) 2018 Jed Watson. | ||
})(); | ||
})(B); | ||
var ir = B.exports; | ||
})(P); | ||
var ir = P.exports; | ||
const pr = /* @__PURE__ */ tr(ir), er = { | ||
@@ -154,3 +160,3 @@ "purpur-button": "_purpur-button_1acxn_1", | ||
"purpur-button--text": "_purpur-button--text_1acxn_175" | ||
}, ur = pr.bind(er), g = "purpur-button", or = ({ | ||
}, ur = pr.bind(er), m = "purpur-button", or = ({ | ||
children: t, | ||
@@ -166,23 +172,23 @@ className: e, | ||
size: c = "md", | ||
variant: d, | ||
type: f = "button", | ||
variant: g, | ||
type: v = "button", | ||
...l | ||
}, h) => { | ||
if (r && d === "destructive") | ||
if (r && g === "destructive") | ||
return null; | ||
const k = ur( | ||
const S = ur( | ||
[ | ||
g, | ||
`${g}--${i ? `${d}-negative` : d}`, | ||
`${g}--${c}` | ||
m, | ||
`${m}--${i ? `${g}-negative` : g}`, | ||
`${m}--${c}` | ||
], | ||
{ | ||
[`${g}--icon-only`]: r, | ||
[`${g}--negative`]: i, | ||
[`${g}--full-width`]: u, | ||
[`${g}--disabled`]: o || n | ||
[`${m}--icon-only`]: r, | ||
[`${m}--negative`]: i, | ||
[`${m}--full-width`]: u, | ||
[`${m}--disabled`]: o || n | ||
}, | ||
e | ||
), S = (A) => { | ||
o || n ? A.preventDefault() : a && a(A); | ||
), k = (L) => { | ||
o || n ? L.preventDefault() : a && a(L); | ||
}, z = !!l["aria-disabled"] || o || n; | ||
@@ -192,11 +198,11 @@ return /* @__PURE__ */ w( | ||
{ | ||
className: k, | ||
className: S, | ||
"data-testid": p, | ||
type: f, | ||
type: v, | ||
ref: h, | ||
"aria-disabled": z, | ||
onClick: S, | ||
onClick: k, | ||
...l, | ||
children: [ | ||
n && /* @__PURE__ */ _(nr, { size: c === U.LG ? "xs" : "xxs", negative: i, disabled: z }), | ||
n && /* @__PURE__ */ _(nr, { size: c === J.LG ? "xs" : "xxs", negative: i, disabled: z }), | ||
" ", | ||
@@ -207,8 +213,8 @@ t | ||
); | ||
}, T = G(or); | ||
T.displayName = "Button"; | ||
}, G = C(or); | ||
G.displayName = "Button"; | ||
function _r(t) { | ||
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; | ||
} | ||
var E = { exports: {} }; | ||
var B = { exports: {} }; | ||
/*! | ||
@@ -248,5 +254,5 @@ Copyright (c) 2018 Jed Watson. | ||
})(); | ||
})(E); | ||
var ar = E.exports; | ||
const Z = /* @__PURE__ */ _r(ar), lr = { | ||
})(B); | ||
var ar = B.exports; | ||
const D = /* @__PURE__ */ _r(ar), lr = { | ||
"purpur-grid-item": "_purpur-grid-item_zx9tz_1", | ||
@@ -278,3 +284,3 @@ "purpur-grid-item--no-col-gap": "_purpur-grid-item--no-col-gap_zx9tz_6", | ||
"purpur-grid-item-colspan-lg-1": "_purpur-grid-item-colspan-lg-1_zx9tz_77" | ||
}, sr = Z.bind(lr), y = "purpur-grid-item", N = ({ | ||
}, sr = D.bind(lr), y = "purpur-grid-item", N = ({ | ||
children: t, | ||
@@ -299,3 +305,3 @@ className: e, | ||
return /* @__PURE__ */ _("div", { className: i, "data-testid": p, children: t }); | ||
}, cr = (t) => !!t && J(t) && (!!t.props.colSpanSm || !!t.props.colSpanMd || !!t.props.colSpanLg); | ||
}, cr = (t) => !!t && V(t) && (!!t.props.colSpanSm || !!t.props.colSpanMd || !!t.props.colSpanLg); | ||
N.displayName = "Grid.Item"; | ||
@@ -331,3 +337,3 @@ const dr = { | ||
"purpur-grid__inner--flex": "_purpur-grid__inner--flex_8kjv6_156" | ||
}, C = Z.bind(dr), gr = "purpur-grid", s = "purpur-grid__inner", O = ({ | ||
}, A = D.bind(dr), gr = "purpur-grid", s = "purpur-grid__inner", O = ({ | ||
children: t, | ||
@@ -343,5 +349,5 @@ className: e, | ||
noRowGap: c = !1, | ||
...d | ||
...g | ||
}) => { | ||
const f = M.toArray(t).filter(cr), l = f.length, h = C([p, gr]), k = C([ | ||
const v = T.toArray(t).filter(cr), l = v.length, h = A([p, gr]), S = A([ | ||
e, | ||
@@ -360,3 +366,3 @@ s, | ||
]); | ||
return /* @__PURE__ */ _("div", { className: h, "data-testid": o, ...d, children: /* @__PURE__ */ _("div", { className: k, children: l ? M.map(f, ({ props: { children: S, ...z } }) => /* @__PURE__ */ _(N, { ...z, noColGap: i || a, children: S })) : t }) }); | ||
return /* @__PURE__ */ _("div", { className: h, "data-testid": o, ...g, children: /* @__PURE__ */ _("div", { className: S, children: l ? T.map(v, ({ props: { children: k, ...z } }) => /* @__PURE__ */ _(N, { ...z, noColGap: i || a, children: k })) : t }) }); | ||
}; | ||
@@ -368,3 +374,3 @@ O.displayName = "Grid"; | ||
} | ||
var H = { exports: {} }; | ||
var X = { exports: {} }; | ||
/*! | ||
@@ -404,4 +410,4 @@ Copyright (c) 2018 Jed Watson. | ||
})(); | ||
})(H); | ||
var fr = H.exports; | ||
})(X); | ||
var fr = X.exports; | ||
const vr = /* @__PURE__ */ mr(fr), $ = { | ||
@@ -424,4 +430,11 @@ "purpur-heading": "_purpur-heading_k9fhq_1", | ||
}, hr = { | ||
TITLE100: "title-100" | ||
}, j = "purpur-heading", R = ({ | ||
TITLE100: "title-100", | ||
TITLE200: "title-200", | ||
TITLE300: "title-300", | ||
TITLE400: "title-400", | ||
TITLE500: "title-500", | ||
TITLE600: "title-600", | ||
TITLE700: "title-700", | ||
SUBSECTION100: "subsection-100" | ||
}, j = "purpur-heading", Z = ({ | ||
["data-testid"]: t, | ||
@@ -447,7 +460,7 @@ children: e, | ||
}; | ||
R.displayName = "Heading"; | ||
Z.displayName = "Heading"; | ||
function xr(t) { | ||
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; | ||
} | ||
var V = { exports: {} }; | ||
var H = { exports: {} }; | ||
/*! | ||
@@ -487,4 +500,4 @@ Copyright (c) 2018 Jed Watson. | ||
})(); | ||
})(V); | ||
var br = V.exports; | ||
})(H); | ||
var br = H.exports; | ||
const yr = /* @__PURE__ */ xr(br), zr = { | ||
@@ -508,3 +521,3 @@ "purpur-icon": "_purpur-icon_8u1lq_1", | ||
category: "status" | ||
}, D = (t) => /* @__PURE__ */ _( | ||
}, R = (t) => /* @__PURE__ */ _( | ||
q, | ||
@@ -516,3 +529,3 @@ { | ||
); | ||
D.displayName = "IconClose"; | ||
R.displayName = "IconClose"; | ||
const F = (t) => /* @__PURE__ */ _( | ||
@@ -526,3 +539,3 @@ q, | ||
F.displayName = "IconInfo"; | ||
const wr = yr.bind(zr), P = "purpur-icon", kr = "md", Sr = (t) => t.filter((e) => Object.keys(e).length >= 1).map((e) => `${e.name}="${e.value}"`).join(" "), Nr = ({ content: t = "", title: e } = {}) => { | ||
const wr = yr.bind(zr), I = "purpur-icon", Sr = "md", kr = (t) => t.filter((e) => Object.keys(e).length >= 1).map((e) => `${e.name}="${e.value}"`).join(" "), Nr = ({ content: t = "", title: e } = {}) => { | ||
const p = [ | ||
@@ -534,3 +547,3 @@ { name: "xmlns", value: "http://www.w3.org/2000/svg" }, | ||
], o = e ? `<title>${e}</title>` : ""; | ||
return `<svg ${Sr(p)}>${o}${t}</svg>`; | ||
return `<svg ${kr(p)}>${o}${t}</svg>`; | ||
}, Or = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), q = ({ | ||
@@ -541,3 +554,3 @@ ["data-testid"]: t, | ||
className: o, | ||
size: u = kr, | ||
size: u = Sr, | ||
...r | ||
@@ -548,3 +561,3 @@ }) => { | ||
title: p | ||
}), i = wr(o, P, `${P}--${u}`); | ||
}), i = wr(o, I, `${I}--${u}`); | ||
return /* @__PURE__ */ _( | ||
@@ -565,3 +578,3 @@ "span", | ||
} | ||
var Y = { exports: {} }; | ||
var U = { exports: {} }; | ||
/*! | ||
@@ -601,5 +614,5 @@ Copyright (c) 2018 Jed Watson. | ||
})(); | ||
})(Y); | ||
var Ar = Y.exports; | ||
const Mr = /* @__PURE__ */ qr(Ar), Lr = { | ||
})(U); | ||
var Lr = U.exports; | ||
const Tr = /* @__PURE__ */ qr(Lr), Mr = { | ||
"purpur-notification-banner": "_purpur-notification-banner_llblm_1", | ||
@@ -612,3 +625,3 @@ "purpur-notification-banner__container": "_purpur-notification-banner__container_llblm_6", | ||
"purpur-notification-banner__close-button": "_purpur-notification-banner__close-button_llblm_25" | ||
}, v = Mr.bind(Lr), Ir = ["h1", "h2", "h3", "h4", "h5", "h6"], m = "purpur-notification-banner", Cr = G( | ||
}, f = Tr.bind(Mr), Er = ["h1", "h2", "h3", "h4", "h5", "h6"], d = "purpur-notification-banner", Ar = C( | ||
({ | ||
@@ -625,19 +638,19 @@ ["data-testid"]: t, | ||
titleTag: c = "h4", | ||
title: d, | ||
...f | ||
title: g, | ||
...v | ||
}, l) => { | ||
const h = v([p, m]); | ||
return /* @__PURE__ */ _("div", { ...f, className: h, role: "alert", ref: l, "data-testid": t, children: /* @__PURE__ */ _(O, { children: /* @__PURE__ */ w("div", { className: v(`${m}__container`), children: [ | ||
r ? null : n || /* @__PURE__ */ _(F, { className: v(`${m}__icon`), size: "sm" }), | ||
/* @__PURE__ */ w("div", { className: v(`${m}__content`), children: [ | ||
const h = f([p, d]); | ||
return /* @__PURE__ */ _("div", { ...v, className: h, role: "alert", ref: l, "data-testid": t, children: /* @__PURE__ */ _(O, { children: /* @__PURE__ */ w("div", { className: f(`${d}__container`), children: [ | ||
r ? null : n ? /* @__PURE__ */ _("span", { className: f(`${d}__icon`), children: n }) : /* @__PURE__ */ _(F, { className: f(`${d}__icon`), size: "sm" }), | ||
/* @__PURE__ */ w("div", { className: f(`${d}__content`), children: [ | ||
/* @__PURE__ */ _( | ||
R, | ||
Z, | ||
{ | ||
tag: c, | ||
variant: "subsection-100", | ||
className: v([ | ||
`${m}__heading`, | ||
{ [`${m}__heading--no-overlap`]: a } | ||
className: f([ | ||
`${d}__heading`, | ||
{ [`${d}__heading--no-overlap`]: a } | ||
]), | ||
children: d | ||
children: g | ||
} | ||
@@ -653,3 +666,3 @@ ), | ||
a && /* @__PURE__ */ _( | ||
T, | ||
G, | ||
{ | ||
@@ -662,4 +675,4 @@ "data-testid": t ? `${t}-close-button` : void 0, | ||
onClick: a, | ||
className: v(`${m}__close-button`), | ||
children: /* @__PURE__ */ _(D, { size: "sm" }) | ||
className: f(`${d}__close-button`), | ||
children: /* @__PURE__ */ _(R, { size: "sm" }) | ||
} | ||
@@ -670,7 +683,7 @@ ) | ||
); | ||
Cr.displayName = "NotificationBanner"; | ||
Ar.displayName = "NotificationBanner"; | ||
export { | ||
Cr as NotificationBanner, | ||
Ir as tagTypes | ||
Ar as NotificationBanner, | ||
Er as tagTypes | ||
}; | ||
//# sourceMappingURL=notification-banner.es.js.map |
{ | ||
"name": "@purpurds/notification-banner", | ||
"version": "5.27.3", | ||
"version": "5.27.4", | ||
"license": "AGPL-3.0-only", | ||
@@ -18,7 +18,7 @@ "main": "./dist/notification-banner.cjs.js", | ||
"classnames": "~2.5.0", | ||
"@purpurds/grid": "5.27.3", | ||
"@purpurds/heading": "5.27.3", | ||
"@purpurds/button": "5.27.3", | ||
"@purpurds/tokens": "5.27.3", | ||
"@purpurds/icon": "5.27.3" | ||
"@purpurds/grid": "5.27.4", | ||
"@purpurds/heading": "5.27.4", | ||
"@purpurds/icon": "5.27.4", | ||
"@purpurds/tokens": "5.27.4", | ||
"@purpurds/button": "5.27.4" | ||
}, | ||
@@ -47,4 +47,4 @@ "devDependencies": { | ||
"vitest": "^2.1.2", | ||
"@purpurds/link": "5.27.3", | ||
"@purpurds/component-rig": "1.0.0" | ||
"@purpurds/component-rig": "1.0.0", | ||
"@purpurds/link": "5.27.4" | ||
}, | ||
@@ -51,0 +51,0 @@ "scripts": { |
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
1007680
959
+ Added@purpurds/action@5.27.4(transitive)
+ Added@purpurds/button@5.27.4(transitive)
+ Added@purpurds/grid@5.27.4(transitive)
+ Added@purpurds/heading@5.27.4(transitive)
+ Added@purpurds/icon@5.27.4(transitive)
+ Added@purpurds/spinner@5.27.4(transitive)
+ Added@purpurds/tokens@5.27.4(transitive)
- Removed@purpurds/action@5.27.3(transitive)
- Removed@purpurds/button@5.27.3(transitive)
- Removed@purpurds/grid@5.27.3(transitive)
- Removed@purpurds/heading@5.27.3(transitive)
- Removed@purpurds/icon@5.27.3(transitive)
- Removed@purpurds/spinner@5.27.3(transitive)
- Removed@purpurds/tokens@5.27.3(transitive)
Updated@purpurds/button@5.27.4
Updated@purpurds/grid@5.27.4
Updated@purpurds/heading@5.27.4
Updated@purpurds/icon@5.27.4
Updated@purpurds/tokens@5.27.4