@purpurds/notification-banner
Advanced tools
Comparing version 5.27.1 to 5.27.2
Name: @purpurds/button | ||
Version: 5.27.0 | ||
Version: 5.27.1 | ||
License: AGPL-3.0-only | ||
@@ -9,3 +9,3 @@ Private: false | ||
Name: @purpurds/grid | ||
Version: 5.27.0 | ||
Version: 5.27.1 | ||
License: AGPL-3.0-only | ||
@@ -17,3 +17,3 @@ Private: false | ||
Name: @purpurds/heading | ||
Version: 5.27.0 | ||
Version: 5.27.1 | ||
License: AGPL-3.0-only | ||
@@ -25,3 +25,3 @@ Private: false | ||
Name: @purpurds/icon | ||
Version: 5.27.0 | ||
Version: 5.27.1 | ||
License: AGPL-3.0-only | ||
@@ -28,0 +28,0 @@ Private: false |
@@ -25,3 +25,3 @@ "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:{}};/*! | ||
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})()})(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; | ||
//# sourceMappingURL=notification-banner.cjs.js.map |
@@ -617,5 +617,5 @@ import { jsxs as w, jsx as _ } from "react/jsx-runtime"; | ||
i | ||
] }) | ||
] }), | ||
e | ||
] }), | ||
e, | ||
a && /* @__PURE__ */ _( | ||
@@ -622,0 +622,0 @@ T, |
{ | ||
"name": "@purpurds/notification-banner", | ||
"version": "5.27.1", | ||
"version": "5.27.2", | ||
"license": "AGPL-3.0-only", | ||
@@ -18,7 +18,7 @@ "main": "./dist/notification-banner.cjs.js", | ||
"classnames": "~2.5.0", | ||
"@purpurds/grid": "5.27.1", | ||
"@purpurds/icon": "5.27.1", | ||
"@purpurds/heading": "5.27.1", | ||
"@purpurds/button": "5.27.1", | ||
"@purpurds/tokens": "5.27.1" | ||
"@purpurds/button": "5.27.2", | ||
"@purpurds/icon": "5.27.2", | ||
"@purpurds/heading": "5.27.2", | ||
"@purpurds/grid": "5.27.2", | ||
"@purpurds/tokens": "5.27.2" | ||
}, | ||
@@ -47,4 +47,4 @@ "devDependencies": { | ||
"vitest": "^2.1.2", | ||
"@purpurds/component-rig": "1.0.0", | ||
"@purpurds/link": "5.27.1" | ||
"@purpurds/link": "5.27.2", | ||
"@purpurds/component-rig": "1.0.0" | ||
}, | ||
@@ -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
1006361
+ Added@purpurds/action@5.27.2(transitive)
+ Added@purpurds/button@5.27.2(transitive)
+ Added@purpurds/grid@5.27.2(transitive)
+ Added@purpurds/heading@5.27.2(transitive)
+ Added@purpurds/icon@5.27.2(transitive)
+ Added@purpurds/spinner@5.27.2(transitive)
+ Added@purpurds/tokens@5.27.2(transitive)
- Removed@purpurds/action@5.27.1(transitive)
- Removed@purpurds/button@5.27.1(transitive)
- Removed@purpurds/grid@5.27.1(transitive)
- Removed@purpurds/heading@5.27.1(transitive)
- Removed@purpurds/icon@5.27.1(transitive)
- Removed@purpurds/spinner@5.27.1(transitive)
- Removed@purpurds/tokens@5.27.1(transitive)
Updated@purpurds/button@5.27.2
Updated@purpurds/grid@5.27.2
Updated@purpurds/heading@5.27.2
Updated@purpurds/icon@5.27.2
Updated@purpurds/tokens@5.27.2