@purpurds/notification-banner
Advanced tools
Comparing version 5.24.0 to 5.24.1
Name: @purpurds/button | ||
Version: 5.23.0 | ||
Version: 5.24.0 | ||
License: AGPL-3.0-only | ||
@@ -9,3 +9,3 @@ Private: false | ||
Name: @purpurds/grid | ||
Version: 5.23.0 | ||
Version: 5.24.0 | ||
License: AGPL-3.0-only | ||
@@ -17,3 +17,3 @@ Private: false | ||
Name: @purpurds/heading | ||
Version: 5.23.0 | ||
Version: 5.24.0 | ||
License: AGPL-3.0-only | ||
@@ -25,3 +25,3 @@ Private: false | ||
Name: @purpurds/icon | ||
Version: 5.23.0 | ||
Version: 5.24.0 | ||
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 _=require("react/jsx-runtime"),z=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:{}};/*! | ||
"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 u={}.hasOwnProperty;function e(){for(var r="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(r=p(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)u.call(r,i)&&r[i]&&(n=p(n,i));return n}function p(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 M=V(J),W="_rotate_1xozj_1",Y="_dash_1xozj_1",v={"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:u=!1,negative:e=!1,size:o=K.SM,...p})=>_.jsx("div",{className:M([v[b],v[`${b}--${o}`]]),"data-testid":t,...p,children:_.jsx("svg",{viewBox:"0 0 50 50",children:_.jsx("circle",{className:M(v[`${b}__circle`],{[v[`${b}__circle--disabled`]]:u,[v[`${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:{}};/*! | ||
*/(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 u={}.hasOwnProperty;function e(){for(var r="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(r=p(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)u.call(r,i)&&r[i]&&(n=p(n,this&&this[i]||i));return n}function p(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),g="purpur-button",ur=({children:t,className:u,["data-testid"]:e,disabled:o=!1,fullWidth:p=!1,iconOnly:r,loading:n=!1,negative:i=!1,onClick:a,size:d="md",variant:c,type:f="button",...l},x)=>{if(r&&c==="destructive")return null;const w=er([g,`${g}--${i?`${c}-negative`:c}`,`${g}--${d}`],{[`${g}--icon-only`]:r,[`${g}--negative`]:i,[`${g}--full-width`]:p,[`${g}--disabled`]:o||n},u),N=L=>{o||n?L.preventDefault():a&&a(L)},$=!!l["aria-disabled"]||o||n;return _.jsxs("button",{className:w,"data-testid":e,type:f,ref:x,"aria-disabled":$,onClick:N,...l,children:[n&&_.jsx(Q,{size:d===U.LG?"xs":"xxs",negative:i,disabled:$})," ",t]})},P=z.forwardRef(ur);P.displayName="Button";function pr(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})()})(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),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 w=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=T=>{o||n?T.preventDefault():_&&_(T)},z=!!l["aria-disabled"]||o||n;return a.jsxs("button",{className:w,"data-testid":e,type:f,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 u={}.hasOwnProperty;function e(){for(var r="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(r=p(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)u.call(r,i)&&r[i]&&(n=p(n,this&&this[i]||i));return n}function p(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 G=pr(or),_r={"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"},ar=G.bind(_r),y="purpur-grid-item",O=({children:t,className:u,["data-testid"]:e,colSpanSm:o=4,colSpanMd:p=8,colSpanLg:r=12,noColGap:n=!1})=>{const i=ar([u,y,{[`${y}--no-col-gap`]:n,[`${y}-colspan-sm-${o}`]:o,[`${y}-colspan-md-${p}`]:p,[`${y}-colspan-lg-${r}`]:r}]);return _.jsx("div",{className:i,"data-testid":e,children:t})},lr=t=>!!t&&z.isValidElement(t)&&(!!t.props.colSpanSm||!!t.props.colSpanMd||!!t.props.colSpanLg);O.displayName="Grid.Item";const sr={"purpur-grid":"_purpur-grid_113du_1","purpur-grid__inner":"_purpur-grid__inner_113du_7","purpur-grid__inner--no-gap":"_purpur-grid__inner--no-gap_113du_14","purpur-grid__inner--no-row-gap":"_purpur-grid__inner--no-row-gap_113du_14","purpur-grid__inner--grid":"_purpur-grid__inner--grid_113du_38","purpur-grid__inner--no-col-gap":"_purpur-grid__inner--no-col-gap_113du_42","purpur-grid__inner-col-sm-4":"_purpur-grid__inner-col-sm-4_113du_45","purpur-grid__inner-col-sm-3":"_purpur-grid__inner-col-sm-3_113du_48","purpur-grid__inner-col-sm-2":"_purpur-grid__inner-col-sm-2_113du_51","purpur-grid__inner-col-md-8":"_purpur-grid__inner-col-md-8_113du_55","purpur-grid__inner-col-md-7":"_purpur-grid__inner-col-md-7_113du_60","purpur-grid__inner-col-md-6":"_purpur-grid__inner-col-md-6_113du_65","purpur-grid__inner-col-md-5":"_purpur-grid__inner-col-md-5_113du_70","purpur-grid__inner-col-md-4":"_purpur-grid__inner-col-md-4_113du_75","purpur-grid__inner-col-md-3":"_purpur-grid__inner-col-md-3_113du_80","purpur-grid__inner-col-md-2":"_purpur-grid__inner-col-md-2_113du_85","purpur-grid__inner-col-lg-12":"_purpur-grid__inner-col-lg-12_113du_90","purpur-grid__inner-col-lg-11":"_purpur-grid__inner-col-lg-11_113du_95","purpur-grid__inner-col-lg-10":"_purpur-grid__inner-col-lg-10_113du_100","purpur-grid__inner-col-lg-9":"_purpur-grid__inner-col-lg-9_113du_105","purpur-grid__inner-col-lg-8":"_purpur-grid__inner-col-lg-8_113du_110","purpur-grid__inner-col-lg-7":"_purpur-grid__inner-col-lg-7_113du_115","purpur-grid__inner-col-lg-6":"_purpur-grid__inner-col-lg-6_113du_120","purpur-grid__inner-col-lg-5":"_purpur-grid__inner-col-lg-5_113du_125","purpur-grid__inner-col-lg-4":"_purpur-grid__inner-col-lg-4_113du_130","purpur-grid__inner-col-lg-3":"_purpur-grid__inner-col-lg-3_113du_135","purpur-grid__inner-col-lg-2":"_purpur-grid__inner-col-lg-2_113du_140","purpur-grid__inner--flex":"_purpur-grid__inner--flex_113du_144"},k=G.bind(sr),dr="purpur-grid",s="purpur-grid__inner",q=({children:t,className:u,containerClassName:e,["data-testid"]:o,colsSm:p=1,colsMd:r=1,colsLg:n=1,noGap:i=!1,noColGap:a=!1,noRowGap:d=!1,...c})=>{const f=z.Children.toArray(t).filter(lr),l=f.length,x=k([e,dr]),w=k([u,s,{[`${s}--grid`]:!l,[`${s}--flex`]:l,[`${s}--no-gap`]:i,[`${s}--no-col-gap`]:a,[`${s}--no-row-gap`]:d,[`${s}-col-sm-${p}`]:p>1&&!l,[`${s}-col-md-${r}`]:r>1&&!l,[`${s}-col-lg-${n}`]:n>1&&!l}]);return _.jsx("div",{className:x,"data-testid":o,...c,children:_.jsx("div",{className:w,children:l?z.Children.map(f,({props:{children:N,...$}})=>_.jsx(O,{...$,noColGap:i||a,children:N})):t})})};q.displayName="Grid";q.Item=O;function cr(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.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,...d})=>{const f=j.Children.toArray(t).filter(lr),l=f.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,...d,children:a.jsx("div",{className:w,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 G={exports:{}};/*! | ||
Copyright (c) 2018 Jed Watson. | ||
Licensed under the MIT License (MIT), see | ||
http://jedwatson.github.io/classnames | ||
*/(function(t){(function(){var u={}.hasOwnProperty;function e(){for(var r="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(r=p(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)u.call(r,i)&&r[i]&&(n=p(n,i));return n}function p(r,n){return n?r?r+" "+n:r+n:r}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(B);var gr=B.exports;const mr=cr(gr),j={"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:u,className:e="",enableHyphenation:o=!1,negative:p=!1,tag:r,variant:n=fr.TITLE100,...i})=>{const a=r,d=mr([e,j[S],j[`${S}--${n}`],{[j[`${S}--hyphens`]]:o,[j[`${S}--negative`]]:p}]);return _.jsx(a,{...i,className:d,"data-testid":t,children:u})};D.displayName="Heading";function hr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var R={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 u={}.hasOwnProperty;function e(){for(var r="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(r=p(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)u.call(r,i)&&r[i]&&(n=p(n,this&&this[i]||i));return n}function p(r,n){return n?r?r+" "+n:r+n:r}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(R);var xr=R.exports;const vr=hr(xr),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"},zr={name:"info",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',keywords:["info"],category:"status"},X=t=>_.jsx(T,{...t,svg:yr});X.displayName="IconClose";const Z=t=>_.jsx(T,{...t,svg:zr});Z.displayName="IconInfo";const $r=vr.bind(br),A="purpur-icon",jr="md",Sr=t=>t.filter(u=>Object.keys(u).length>=1).map(u=>`${u.name}="${u.value}"`).join(" "),wr=({content:t="",title:u}={})=>{const e=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},u?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],o=u?`<title>${u}</title>`:"";return`<svg ${Sr(e)}>${o}${t}</svg>`},Nr=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),T=({["data-testid"]:t,svg:u,allyTitle:e,className:o,size:p=jr,...r})=>{const n=wr({content:Nr(u.svg),title:e}),i=$r(o,A,`${A}--${p}`);return _.jsx("span",{"aria-label":e,className:i,"data-testid":t,dangerouslySetInnerHTML:{__html:n},...r})};T.displayName="Icon";function Or(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var H={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 u={}.hasOwnProperty;function e(){for(var r="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(r=p(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)u.call(r,i)&&r[i]&&(n=p(n,this&&this[i]||i));return n}function p(r,n){return n?r?r+" "+n:r+n:r}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(H);var qr=H.exports;const Tr=Or(qr),Lr={"purpur-notification-banner":"_purpur-notification-banner_llblm_1","purpur-notification-banner__container":"_purpur-notification-banner__container_llblm_6","purpur-notification-banner__content":"_purpur-notification-banner__content_llblm_11","purpur-notification-banner__icon":"_purpur-notification-banner__icon_llblm_16","purpur-notification-banner__heading":"_purpur-notification-banner__heading_llblm_19","purpur-notification-banner__heading--no-overlap":"_purpur-notification-banner__heading--no-overlap_llblm_22","purpur-notification-banner__close-button":"_purpur-notification-banner__close-button_llblm_25"},h=Tr.bind(Lr),Mr=["h1","h2","h3","h4","h5","h6"],m="purpur-notification-banner",F=z.forwardRef(({["data-testid"]:t,children:u,className:e,closeButtonAllyLabel:o,description:p,hideIcon:r,icon:n,link:i,onClose:a,titleTag:d="h4",title:c,...f},l)=>{const x=h([e,m]);return _.jsx("div",{...f,className:x,role:"alert",ref:l,"data-testid":t,children:_.jsx(q,{children:_.jsxs("div",{className:h(`${m}__container`),children:[r?null:n||_.jsx(Z,{className:h(`${m}__icon`),size:"sm"}),_.jsxs("div",{className:h(`${m}__content`),children:[_.jsx(D,{tag:d,variant:"subsection-100",className:h([`${m}__heading`,{[`${m}__heading--no-overlap`]:a}]),children:c}),_.jsxs("div",{children:[p," ",i]})]}),u,a&&_.jsx(P,{"data-testid":t?`${t}-close-button`:void 0,variant:"tertiary-purple",size:"sm",iconOnly:!0,"aria-label":o,onClick:a,className:h(`${m}__close-button`),children:_.jsx(X,{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"},v=qr.bind(Tr),Lr=["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(Z,{className:v(`${m}__icon`),size:"sm"}),a.jsxs("div",{className:v(`${m}__content`),children:[a.jsx(D,{tag:c,variant:"subsection-100",className:v([`${m}__heading`,{[`${m}__heading--no-overlap`]:_}]),children:d}),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:v(`${m}__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 C, Children as M, isValidElement as V } from "react"; | ||
import { forwardRef as C, Children as T, isValidElement as V } from "react"; | ||
const J = { | ||
@@ -19,7 +19,7 @@ SM: "sm", | ||
(function() { | ||
var p = {}.hasOwnProperty; | ||
function u() { | ||
var e = {}.hasOwnProperty; | ||
function p() { | ||
for (var r = "", n = 0; n < arguments.length; n++) { | ||
var i = arguments[n]; | ||
i && (r = e(r, o(i))); | ||
i && (r = u(r, o(i))); | ||
} | ||
@@ -34,3 +34,3 @@ return r; | ||
if (Array.isArray(r)) | ||
return u.apply(null, r); | ||
return p.apply(null, r); | ||
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]")) | ||
@@ -40,13 +40,13 @@ return r.toString(); | ||
for (var i in r) | ||
p.call(r, i) && r[i] && (n = e(n, i)); | ||
e.call(r, i) && r[i] && (n = u(n, i)); | ||
return n; | ||
} | ||
function e(r, n) { | ||
function u(r, n) { | ||
return n ? r ? r + " " + n : r + n : r; | ||
} | ||
t.exports ? (u.default = u, t.exports = u) : window.classNames = u; | ||
t.exports ? (p.default = p, t.exports = p) : window.classNames = p; | ||
})(); | ||
})(E); | ||
var Y = E.exports; | ||
const k = /* @__PURE__ */ W(Y), K = "_rotate_1xozj_1", Q = "_dash_1xozj_1", x = { | ||
const M = /* @__PURE__ */ W(Y), K = "_rotate_1xozj_1", Q = "_dash_1xozj_1", x = { | ||
"purpur-spinner": "_purpur-spinner_1xozj_1", | ||
@@ -71,18 +71,18 @@ rotate: K, | ||
["data-testid"]: t, | ||
disabled: p = !1, | ||
negative: u = !1, | ||
disabled: e = !1, | ||
negative: p = !1, | ||
size: o = rr.SM, | ||
...e | ||
...u | ||
}) => /* @__PURE__ */ _( | ||
"div", | ||
{ | ||
className: k([x[b], x[`${b}--${o}`]]), | ||
className: M([x[b], x[`${b}--${o}`]]), | ||
"data-testid": t, | ||
...e, | ||
...u, | ||
children: /* @__PURE__ */ _("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ _( | ||
"circle", | ||
{ | ||
className: k(x[`${b}__circle`], { | ||
[x[`${b}__circle--disabled`]]: p, | ||
[x[`${b}__circle--negative`]]: u | ||
className: M(x[`${b}__circle`], { | ||
[x[`${b}__circle--disabled`]]: e, | ||
[x[`${b}__circle--negative`]]: p | ||
}), | ||
@@ -107,7 +107,7 @@ cx: "25", | ||
(function() { | ||
var p = {}.hasOwnProperty; | ||
function u() { | ||
var e = {}.hasOwnProperty; | ||
function p() { | ||
for (var r = "", n = 0; n < arguments.length; n++) { | ||
var i = arguments[n]; | ||
i && (r = e(r, o.call(this, i))); | ||
i && (r = u(r, o.call(this, i))); | ||
} | ||
@@ -122,3 +122,3 @@ return r; | ||
if (Array.isArray(r)) | ||
return u.apply(this, r); | ||
return p.apply(this, r); | ||
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]")) | ||
@@ -128,13 +128,13 @@ return r.toString(); | ||
for (var i in r) | ||
p.call(r, i) && r[i] && (n = e(n, this && this[i] || i)); | ||
e.call(r, i) && r[i] && (n = u(n, this && this[i] || i)); | ||
return n; | ||
} | ||
function e(r, n) { | ||
function u(r, n) { | ||
return n ? r ? r + " " + n : r + n : r; | ||
} | ||
t.exports ? (u.default = u, t.exports = u) : window.classNames = u; | ||
t.exports ? (p.default = p, t.exports = p) : window.classNames = p; | ||
})(); | ||
})(P); | ||
var ir = P.exports; | ||
const ur = /* @__PURE__ */ tr(ir), pr = { | ||
const pr = /* @__PURE__ */ tr(ir), er = { | ||
"purpur-button": "_purpur-button_1acxn_1", | ||
@@ -160,8 +160,8 @@ "purpur-button--sm": "_purpur-button--sm_1acxn_33", | ||
"purpur-button--text": "_purpur-button--text_1acxn_175" | ||
}, er = ur.bind(pr), g = "purpur-button", or = ({ | ||
}, ur = pr.bind(er), g = "purpur-button", or = ({ | ||
children: t, | ||
className: p, | ||
["data-testid"]: u, | ||
className: e, | ||
["data-testid"]: p, | ||
disabled: o = !1, | ||
fullWidth: e = !1, | ||
fullWidth: u = !1, | ||
iconOnly: r, | ||
@@ -171,14 +171,14 @@ loading: n = !1, | ||
onClick: a, | ||
size: d = "md", | ||
variant: c, | ||
size: c = "md", | ||
variant: d, | ||
type: f = "button", | ||
...l | ||
}, v) => { | ||
if (r && c === "destructive") | ||
}, h) => { | ||
if (r && d === "destructive") | ||
return null; | ||
const N = er( | ||
const S = ur( | ||
[ | ||
g, | ||
`${g}--${i ? `${c}-negative` : c}`, | ||
`${g}--${d}` | ||
`${g}--${i ? `${d}-negative` : d}`, | ||
`${g}--${c}` | ||
], | ||
@@ -188,8 +188,8 @@ { | ||
[`${g}--negative`]: i, | ||
[`${g}--full-width`]: e, | ||
[`${g}--full-width`]: u, | ||
[`${g}--disabled`]: o || n | ||
}, | ||
p | ||
), j = (T) => { | ||
o || n ? T.preventDefault() : a && a(T); | ||
e | ||
), k = (L) => { | ||
o || n ? L.preventDefault() : a && a(L); | ||
}, z = !!l["aria-disabled"] || o || n; | ||
@@ -199,11 +199,11 @@ return /* @__PURE__ */ w( | ||
{ | ||
className: N, | ||
"data-testid": u, | ||
className: S, | ||
"data-testid": p, | ||
type: f, | ||
ref: v, | ||
ref: h, | ||
"aria-disabled": z, | ||
onClick: j, | ||
onClick: k, | ||
...l, | ||
children: [ | ||
n && /* @__PURE__ */ _(nr, { size: d === J.LG ? "xs" : "xxs", negative: i, disabled: z }), | ||
n && /* @__PURE__ */ _(nr, { size: c === J.LG ? "xs" : "xxs", negative: i, disabled: z }), | ||
" ", | ||
@@ -227,7 +227,7 @@ t | ||
(function() { | ||
var p = {}.hasOwnProperty; | ||
function u() { | ||
var e = {}.hasOwnProperty; | ||
function p() { | ||
for (var r = "", n = 0; n < arguments.length; n++) { | ||
var i = arguments[n]; | ||
i && (r = e(r, o.call(this, i))); | ||
i && (r = u(r, o.call(this, i))); | ||
} | ||
@@ -242,3 +242,3 @@ return r; | ||
if (Array.isArray(r)) | ||
return u.apply(this, r); | ||
return p.apply(this, r); | ||
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]")) | ||
@@ -248,9 +248,9 @@ return r.toString(); | ||
for (var i in r) | ||
p.call(r, i) && r[i] && (n = e(n, this && this[i] || i)); | ||
e.call(r, i) && r[i] && (n = u(n, this && this[i] || i)); | ||
return n; | ||
} | ||
function e(r, n) { | ||
function u(r, n) { | ||
return n ? r ? r + " " + n : r + n : r; | ||
} | ||
t.exports ? (u.default = u, t.exports = u) : window.classNames = u; | ||
t.exports ? (p.default = p, t.exports = p) : window.classNames = p; | ||
})(); | ||
@@ -286,8 +286,8 @@ })(B); | ||
"purpur-grid-item-colspan-lg-1": "_purpur-grid-item-colspan-lg-1_zx9tz_77" | ||
}, sr = D.bind(lr), y = "purpur-grid-item", O = ({ | ||
}, sr = D.bind(lr), y = "purpur-grid-item", N = ({ | ||
children: t, | ||
className: p, | ||
["data-testid"]: u, | ||
className: e, | ||
["data-testid"]: p, | ||
colSpanSm: o = 4, | ||
colSpanMd: e = 8, | ||
colSpanMd: u = 8, | ||
colSpanLg: r = 12, | ||
@@ -297,3 +297,3 @@ noColGap: n = !1 | ||
const i = sr([ | ||
p, | ||
e, | ||
y, | ||
@@ -303,44 +303,44 @@ { | ||
[`${y}-colspan-sm-${o}`]: o, | ||
[`${y}-colspan-md-${e}`]: e, | ||
[`${y}-colspan-md-${u}`]: u, | ||
[`${y}-colspan-lg-${r}`]: r | ||
} | ||
]); | ||
return /* @__PURE__ */ _("div", { className: i, "data-testid": u, children: t }); | ||
}, dr = (t) => !!t && V(t) && (!!t.props.colSpanSm || !!t.props.colSpanMd || !!t.props.colSpanLg); | ||
O.displayName = "Grid.Item"; | ||
const cr = { | ||
"purpur-grid": "_purpur-grid_113du_1", | ||
"purpur-grid__inner": "_purpur-grid__inner_113du_7", | ||
"purpur-grid__inner--no-gap": "_purpur-grid__inner--no-gap_113du_14", | ||
"purpur-grid__inner--no-row-gap": "_purpur-grid__inner--no-row-gap_113du_14", | ||
"purpur-grid__inner--grid": "_purpur-grid__inner--grid_113du_38", | ||
"purpur-grid__inner--no-col-gap": "_purpur-grid__inner--no-col-gap_113du_42", | ||
"purpur-grid__inner-col-sm-4": "_purpur-grid__inner-col-sm-4_113du_45", | ||
"purpur-grid__inner-col-sm-3": "_purpur-grid__inner-col-sm-3_113du_48", | ||
"purpur-grid__inner-col-sm-2": "_purpur-grid__inner-col-sm-2_113du_51", | ||
"purpur-grid__inner-col-md-8": "_purpur-grid__inner-col-md-8_113du_55", | ||
"purpur-grid__inner-col-md-7": "_purpur-grid__inner-col-md-7_113du_60", | ||
"purpur-grid__inner-col-md-6": "_purpur-grid__inner-col-md-6_113du_65", | ||
"purpur-grid__inner-col-md-5": "_purpur-grid__inner-col-md-5_113du_70", | ||
"purpur-grid__inner-col-md-4": "_purpur-grid__inner-col-md-4_113du_75", | ||
"purpur-grid__inner-col-md-3": "_purpur-grid__inner-col-md-3_113du_80", | ||
"purpur-grid__inner-col-md-2": "_purpur-grid__inner-col-md-2_113du_85", | ||
"purpur-grid__inner-col-lg-12": "_purpur-grid__inner-col-lg-12_113du_90", | ||
"purpur-grid__inner-col-lg-11": "_purpur-grid__inner-col-lg-11_113du_95", | ||
"purpur-grid__inner-col-lg-10": "_purpur-grid__inner-col-lg-10_113du_100", | ||
"purpur-grid__inner-col-lg-9": "_purpur-grid__inner-col-lg-9_113du_105", | ||
"purpur-grid__inner-col-lg-8": "_purpur-grid__inner-col-lg-8_113du_110", | ||
"purpur-grid__inner-col-lg-7": "_purpur-grid__inner-col-lg-7_113du_115", | ||
"purpur-grid__inner-col-lg-6": "_purpur-grid__inner-col-lg-6_113du_120", | ||
"purpur-grid__inner-col-lg-5": "_purpur-grid__inner-col-lg-5_113du_125", | ||
"purpur-grid__inner-col-lg-4": "_purpur-grid__inner-col-lg-4_113du_130", | ||
"purpur-grid__inner-col-lg-3": "_purpur-grid__inner-col-lg-3_113du_135", | ||
"purpur-grid__inner-col-lg-2": "_purpur-grid__inner-col-lg-2_113du_140", | ||
"purpur-grid__inner--flex": "_purpur-grid__inner--flex_113du_144" | ||
}, A = D.bind(cr), gr = "purpur-grid", s = "purpur-grid__inner", q = ({ | ||
return /* @__PURE__ */ _("div", { className: i, "data-testid": p, children: t }); | ||
}, cr = (t) => !!t && V(t) && (!!t.props.colSpanSm || !!t.props.colSpanMd || !!t.props.colSpanLg); | ||
N.displayName = "Grid.Item"; | ||
const dr = { | ||
"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" | ||
}, A = D.bind(dr), gr = "purpur-grid", s = "purpur-grid__inner", O = ({ | ||
children: t, | ||
className: p, | ||
containerClassName: u, | ||
className: e, | ||
containerClassName: p, | ||
["data-testid"]: o, | ||
colsSm: e = 1, | ||
colsSm: u = 1, | ||
colsMd: r = 1, | ||
@@ -350,7 +350,7 @@ colsLg: n = 1, | ||
noColGap: a = !1, | ||
noRowGap: d = !1, | ||
...c | ||
noRowGap: c = !1, | ||
...d | ||
}) => { | ||
const f = M.toArray(t).filter(dr), l = f.length, v = A([u, gr]), N = A([ | ||
p, | ||
const f = T.toArray(t).filter(cr), l = f.length, h = A([p, gr]), S = A([ | ||
e, | ||
s, | ||
@@ -362,4 +362,4 @@ { | ||
[`${s}--no-col-gap`]: a, | ||
[`${s}--no-row-gap`]: d, | ||
[`${s}-col-sm-${e}`]: e > 1 && !l, | ||
[`${s}--no-row-gap`]: c, | ||
[`${s}-col-sm-${u}`]: u > 1 && !l, | ||
[`${s}-col-md-${r}`]: r > 1 && !l, | ||
@@ -369,6 +369,6 @@ [`${s}-col-lg-${n}`]: n > 1 && !l | ||
]); | ||
return /* @__PURE__ */ _("div", { className: v, "data-testid": o, ...c, children: /* @__PURE__ */ _("div", { className: N, children: l ? M.map(f, ({ props: { children: j, ...z } }) => /* @__PURE__ */ _(O, { ...z, noColGap: i || a, children: j })) : t }) }); | ||
return /* @__PURE__ */ _("div", { className: h, "data-testid": o, ...d, children: /* @__PURE__ */ _("div", { className: S, children: l ? T.map(f, ({ props: { children: k, ...z } }) => /* @__PURE__ */ _(N, { ...z, noColGap: i || a, children: k })) : t }) }); | ||
}; | ||
q.displayName = "Grid"; | ||
q.Item = O; | ||
O.displayName = "Grid"; | ||
O.Item = N; | ||
function mr(t) { | ||
@@ -385,7 +385,7 @@ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; | ||
(function() { | ||
var p = {}.hasOwnProperty; | ||
function u() { | ||
var e = {}.hasOwnProperty; | ||
function p() { | ||
for (var r = "", n = 0; n < arguments.length; n++) { | ||
var i = arguments[n]; | ||
i && (r = e(r, o(i))); | ||
i && (r = u(r, o(i))); | ||
} | ||
@@ -400,3 +400,3 @@ return r; | ||
if (Array.isArray(r)) | ||
return u.apply(null, r); | ||
return p.apply(null, r); | ||
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]")) | ||
@@ -406,13 +406,13 @@ return r.toString(); | ||
for (var i in r) | ||
p.call(r, i) && r[i] && (n = e(n, i)); | ||
e.call(r, i) && r[i] && (n = u(n, i)); | ||
return n; | ||
} | ||
function e(r, n) { | ||
function u(r, n) { | ||
return n ? r ? r + " " + n : r + n : r; | ||
} | ||
t.exports ? (u.default = u, t.exports = u) : window.classNames = u; | ||
t.exports ? (p.default = p, t.exports = p) : window.classNames = p; | ||
})(); | ||
})(X); | ||
var fr = X.exports; | ||
const hr = /* @__PURE__ */ mr(fr), $ = { | ||
const vr = /* @__PURE__ */ mr(fr), $ = { | ||
"purpur-heading": "_purpur-heading_k9fhq_1", | ||
@@ -433,3 +433,3 @@ "purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8", | ||
"purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80" | ||
}, vr = { | ||
}, hr = { | ||
TITLE100: "title-100", | ||
@@ -443,22 +443,22 @@ TITLE200: "title-200", | ||
SUBSECTION100: "subsection-100" | ||
}, S = "purpur-heading", Z = ({ | ||
}, j = "purpur-heading", Z = ({ | ||
["data-testid"]: t, | ||
children: p, | ||
className: u = "", | ||
children: e, | ||
className: p = "", | ||
enableHyphenation: o = !1, | ||
negative: e = !1, | ||
negative: u = !1, | ||
tag: r, | ||
variant: n = vr.TITLE100, | ||
variant: n = hr.TITLE100, | ||
...i | ||
}) => { | ||
const a = r, d = hr([ | ||
u, | ||
$[S], | ||
$[`${S}--${n}`], | ||
const a = r, c = vr([ | ||
p, | ||
$[j], | ||
$[`${j}--${n}`], | ||
{ | ||
[$[`${S}--hyphens`]]: o, | ||
[$[`${S}--negative`]]: e | ||
[$[`${j}--hyphens`]]: o, | ||
[$[`${j}--negative`]]: u | ||
} | ||
]); | ||
return /* @__PURE__ */ _(a, { ...i, className: d, "data-testid": t, children: p }); | ||
return /* @__PURE__ */ _(a, { ...i, className: c, "data-testid": t, children: e }); | ||
}; | ||
@@ -477,7 +477,7 @@ Z.displayName = "Heading"; | ||
(function() { | ||
var p = {}.hasOwnProperty; | ||
function u() { | ||
var e = {}.hasOwnProperty; | ||
function p() { | ||
for (var r = "", n = 0; n < arguments.length; n++) { | ||
var i = arguments[n]; | ||
i && (r = e(r, o.call(this, i))); | ||
i && (r = u(r, o.call(this, i))); | ||
} | ||
@@ -492,3 +492,3 @@ return r; | ||
if (Array.isArray(r)) | ||
return u.apply(this, r); | ||
return p.apply(this, r); | ||
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]")) | ||
@@ -498,9 +498,9 @@ return r.toString(); | ||
for (var i in r) | ||
p.call(r, i) && r[i] && (n = e(n, this && this[i] || i)); | ||
e.call(r, i) && r[i] && (n = u(n, this && this[i] || i)); | ||
return n; | ||
} | ||
function e(r, n) { | ||
function u(r, n) { | ||
return n ? r ? r + " " + n : r + n : r; | ||
} | ||
t.exports ? (u.default = u, t.exports = u) : window.classNames = u; | ||
t.exports ? (p.default = p, t.exports = p) : window.classNames = p; | ||
})(); | ||
@@ -522,3 +522,3 @@ })(H); | ||
category: "utility" | ||
}, Sr = { | ||
}, jr = { | ||
name: "info", | ||
@@ -529,3 +529,3 @@ 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>', | ||
}, R = (t) => /* @__PURE__ */ _( | ||
L, | ||
q, | ||
{ | ||
@@ -538,33 +538,33 @@ ...t, | ||
const F = (t) => /* @__PURE__ */ _( | ||
L, | ||
q, | ||
{ | ||
...t, | ||
svg: Sr | ||
svg: jr | ||
} | ||
); | ||
F.displayName = "IconInfo"; | ||
const wr = yr.bind(zr), I = "purpur-icon", Nr = "md", jr = (t) => t.filter((p) => Object.keys(p).length >= 1).map((p) => `${p.name}="${p.value}"`).join(" "), Or = ({ content: t = "", title: p } = {}) => { | ||
const u = [ | ||
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 = [ | ||
{ 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 ${jr(u)}>${o}${t}</svg>`; | ||
}, qr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), L = ({ | ||
e ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" } | ||
], o = e ? `<title>${e}</title>` : ""; | ||
return `<svg ${kr(p)}>${o}${t}</svg>`; | ||
}, Or = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), q = ({ | ||
["data-testid"]: t, | ||
svg: p, | ||
allyTitle: u, | ||
svg: e, | ||
allyTitle: p, | ||
className: o, | ||
size: e = Nr, | ||
size: u = Sr, | ||
...r | ||
}) => { | ||
const n = Or({ | ||
content: qr(p.svg), | ||
title: u | ||
}), i = wr(o, I, `${I}--${e}`); | ||
const n = Nr({ | ||
content: Or(e.svg), | ||
title: p | ||
}), i = wr(o, I, `${I}--${u}`); | ||
return /* @__PURE__ */ _( | ||
"span", | ||
{ | ||
"aria-label": u, | ||
"aria-label": p, | ||
className: i, | ||
@@ -577,4 +577,4 @@ "data-testid": t, | ||
}; | ||
L.displayName = "Icon"; | ||
function Lr(t) { | ||
q.displayName = "Icon"; | ||
function qr(t) { | ||
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; | ||
@@ -590,7 +590,7 @@ } | ||
(function() { | ||
var p = {}.hasOwnProperty; | ||
function u() { | ||
var e = {}.hasOwnProperty; | ||
function p() { | ||
for (var r = "", n = 0; n < arguments.length; n++) { | ||
var i = arguments[n]; | ||
i && (r = e(r, o.call(this, i))); | ||
i && (r = u(r, o.call(this, i))); | ||
} | ||
@@ -605,3 +605,3 @@ return r; | ||
if (Array.isArray(r)) | ||
return u.apply(this, r); | ||
return p.apply(this, r); | ||
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]")) | ||
@@ -611,13 +611,13 @@ return r.toString(); | ||
for (var i in r) | ||
p.call(r, i) && r[i] && (n = e(n, this && this[i] || i)); | ||
e.call(r, i) && r[i] && (n = u(n, this && this[i] || i)); | ||
return n; | ||
} | ||
function e(r, n) { | ||
function u(r, n) { | ||
return n ? r ? r + " " + n : r + n : r; | ||
} | ||
t.exports ? (u.default = u, t.exports = u) : window.classNames = u; | ||
t.exports ? (p.default = p, t.exports = p) : window.classNames = p; | ||
})(); | ||
})(U); | ||
var Tr = U.exports; | ||
const Mr = /* @__PURE__ */ Lr(Tr), kr = { | ||
var Lr = U.exports; | ||
const Tr = /* @__PURE__ */ qr(Lr), Mr = { | ||
"purpur-notification-banner": "_purpur-notification-banner_llblm_1", | ||
@@ -630,9 +630,9 @@ "purpur-notification-banner__container": "_purpur-notification-banner__container_llblm_6", | ||
"purpur-notification-banner__close-button": "_purpur-notification-banner__close-button_llblm_25" | ||
}, h = Mr.bind(kr), Er = ["h1", "h2", "h3", "h4", "h5", "h6"], m = "purpur-notification-banner", Ar = C( | ||
}, v = Tr.bind(Mr), Er = ["h1", "h2", "h3", "h4", "h5", "h6"], m = "purpur-notification-banner", Ar = C( | ||
({ | ||
["data-testid"]: t, | ||
children: p, | ||
className: u, | ||
children: e, | ||
className: p, | ||
closeButtonAllyLabel: o, | ||
description: e, | ||
description: u, | ||
hideIcon: r, | ||
@@ -642,24 +642,24 @@ icon: n, | ||
onClose: a, | ||
titleTag: d = "h4", | ||
title: c, | ||
titleTag: c = "h4", | ||
title: d, | ||
...f | ||
}, l) => { | ||
const v = h([u, m]); | ||
return /* @__PURE__ */ _("div", { ...f, className: v, role: "alert", ref: l, "data-testid": t, children: /* @__PURE__ */ _(q, { children: /* @__PURE__ */ w("div", { className: h(`${m}__container`), children: [ | ||
r ? null : n || /* @__PURE__ */ _(F, { className: h(`${m}__icon`), size: "sm" }), | ||
/* @__PURE__ */ w("div", { className: h(`${m}__content`), children: [ | ||
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: [ | ||
/* @__PURE__ */ _( | ||
Z, | ||
{ | ||
tag: d, | ||
tag: c, | ||
variant: "subsection-100", | ||
className: h([ | ||
className: v([ | ||
`${m}__heading`, | ||
{ [`${m}__heading--no-overlap`]: a } | ||
]), | ||
children: c | ||
children: d | ||
} | ||
), | ||
/* @__PURE__ */ w("div", { children: [ | ||
e, | ||
u, | ||
" ", | ||
@@ -669,3 +669,3 @@ i | ||
] }), | ||
p, | ||
e, | ||
a && /* @__PURE__ */ _( | ||
@@ -680,3 +680,3 @@ G, | ||
onClick: a, | ||
className: h(`${m}__close-button`), | ||
className: v(`${m}__close-button`), | ||
children: /* @__PURE__ */ _(R, { size: "sm" }) | ||
@@ -683,0 +683,0 @@ } |
{ | ||
"name": "@purpurds/notification-banner", | ||
"version": "5.24.0", | ||
"version": "5.24.1", | ||
"license": "AGPL-3.0-only", | ||
@@ -18,7 +18,7 @@ "main": "./dist/notification-banner.cjs.js", | ||
"classnames": "~2.5.0", | ||
"@purpurds/heading": "5.24.0", | ||
"@purpurds/grid": "5.24.0", | ||
"@purpurds/button": "5.24.0", | ||
"@purpurds/icon": "5.24.0", | ||
"@purpurds/tokens": "5.24.0" | ||
"@purpurds/heading": "5.24.1", | ||
"@purpurds/icon": "5.24.1", | ||
"@purpurds/tokens": "5.24.1", | ||
"@purpurds/grid": "5.24.1", | ||
"@purpurds/button": "5.24.1" | ||
}, | ||
@@ -48,3 +48,3 @@ "devDependencies": { | ||
"@purpurds/component-rig": "1.0.0", | ||
"@purpurds/link": "5.24.0" | ||
"@purpurds/link": "5.24.1" | ||
}, | ||
@@ -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
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
1007238
+ Added@purpurds/action@5.24.1(transitive)
+ Added@purpurds/button@5.24.1(transitive)
+ Added@purpurds/grid@5.24.1(transitive)
+ Added@purpurds/heading@5.24.1(transitive)
+ Added@purpurds/icon@5.24.1(transitive)
+ Added@purpurds/spinner@5.24.1(transitive)
+ Added@purpurds/tokens@5.24.1(transitive)
- Removed@purpurds/action@5.24.0(transitive)
- Removed@purpurds/button@5.24.0(transitive)
- Removed@purpurds/grid@5.24.0(transitive)
- Removed@purpurds/heading@5.24.0(transitive)
- Removed@purpurds/icon@5.24.0(transitive)
- Removed@purpurds/spinner@5.24.0(transitive)
- Removed@purpurds/tokens@5.24.0(transitive)
Updated@purpurds/button@5.24.1
Updated@purpurds/grid@5.24.1
Updated@purpurds/heading@5.24.1
Updated@purpurds/icon@5.24.1
Updated@purpurds/tokens@5.24.1