@spectrum-web-components/alert-banner 1.11.2 → 1.11.3-next.20260216104008

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/alert-banner",
3
- "version": "1.11.2",
3
+ "version": "1.11.3-next.20260216104008",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -64,10 +64,10 @@
64
64
  "css"
65
65
  ],
66
66
  "dependencies": {
67
- "@spectrum-web-components/base": "1.11.2",
68
- "@spectrum-web-components/button": "1.11.2",
67
+ "@spectrum-web-components/base": "1.11.3-next.20260216104008",
68
+ "@spectrum-web-components/button": "1.11.3-next.20260216104008",
69
69
  "@spectrum-web-components/core": "0.0.4",
70
- "@spectrum-web-components/icons-workflow": "1.11.2"
70
+ "@spectrum-web-components/icons-workflow": "1.11.3-next.20260216104008"
71
71
  },
72
72
  "types": "./src/index.d.ts",
73
73
  "customElements": "custom-elements.json",
@@ -11,9 +11,9 @@
11
11
  */
12
12
  import { CSSResultArray, TemplateResult } from '@spectrum-web-components/base';
13
13
  import '@spectrum-web-components/button/sp-close-button.js';
14
+ import { AlertBannerBase, AlertBannerVariants } from '@spectrum-web-components/core/components/alert-banner';
14
15
  import '@spectrum-web-components/icons-workflow/icons/sp-icon-alert.js';
15
16
  import '@spectrum-web-components/icons-workflow/icons/sp-icon-info.js';
16
- import { AlertBannerBase, AlertBannerVariants } from '@spectrum-web-components/core/components/alert-banner';
17
17
  export type { AlertBannerVariants };
18
18
  /**
19
19
  * @element sp-alert-banner
@@ -3,12 +3,12 @@ import {
3
3
  html
4
4
  } from "@spectrum-web-components/base";
5
5
  import "@spectrum-web-components/button/sp-close-button.js";
6
- import "@spectrum-web-components/icons-workflow/icons/sp-icon-alert.js";
7
- import "@spectrum-web-components/icons-workflow/icons/sp-icon-info.js";
8
- import styles from "./alert-banner.css.js";
9
6
  import {
10
7
  AlertBannerBase
11
8
  } from "@spectrum-web-components/core/components/alert-banner";
9
+ import "@spectrum-web-components/icons-workflow/icons/sp-icon-alert.js";
10
+ import "@spectrum-web-components/icons-workflow/icons/sp-icon-info.js";
11
+ import styles from "./alert-banner.css.js";
12
12
  export class AlertBanner extends AlertBannerBase {
13
13
  static get styles() {
14
14
  return [styles];
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["AlertBanner.ts"],
4
- "sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {\n CSSResultArray,\n html,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport '@spectrum-web-components/button/sp-close-button.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-alert.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-info.js';\nimport styles from './alert-banner.css.js';\nimport {\n AlertBannerBase,\n AlertBannerVariants,\n} from '@spectrum-web-components/core/components/alert-banner';\n\nexport type { AlertBannerVariants };\n\n/**\n * @element sp-alert-banner\n *\n * @slot - The alert banner text context\n * @slot action - Slot for the button element that surfaces the contextual action a user can take\n *\n * @fires close - Announces the alert banner has been closed\n */\nexport class AlertBanner extends AlertBannerBase {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n protected override renderIcon(variant: string): TemplateResult {\n switch (variant) {\n case 'info':\n return html`\n <sp-icon-info\n label=\"Information\"\n class=\"type\"\n ></sp-icon-info>\n `;\n case 'negative':\n return html`\n <sp-icon-alert label=\"Error\" class=\"type\"></sp-icon-alert>\n `;\n default:\n return html``;\n }\n }\n\n protected override render(): TemplateResult {\n return html`\n <div class=\"body\" role=\"alert\">\n <div class=\"content\">\n ${this.renderIcon(this.variant)}\n <div class=\"text\"><slot></slot></div>\n </div>\n <slot name=\"action\"></slot>\n </div>\n <div class=\"end\">\n ${this.dismissible\n ? html`\n <sp-close-button\n @click=${this.shouldClose}\n label=\"Close\"\n static-color=\"white\"\n ></sp-close-button>\n `\n : html``}\n </div>\n `;\n }\n}\n"],
5
- "mappings": ";AAWA;AAAA,EAEI;AAAA,OAEG;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO,YAAY;AACnB;AAAA,EACI;AAAA,OAEG;AAYA,aAAM,oBAAoB,gBAAgB;AAAA,EAC7C,WAA2B,SAAyB;AAChD,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAEmB,WAAW,SAAiC;AAC3D,YAAQ,SAAS;AAAA,MACb,KAAK;AACD,eAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAMX,KAAK;AACD,eAAO;AAAA;AAAA;AAAA,MAGX;AACI,eAAO;AAAA,IACf;AAAA,EACJ;AAAA,EAEmB,SAAyB;AACxC,WAAO;AAAA;AAAA;AAAA,sBAGO,KAAK,WAAW,KAAK,OAAO,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAMjC,KAAK,cACD;AAAA;AAAA,uCAEiB,KAAK,WAAW;AAAA;AAAA;AAAA;AAAA,0BAKjC,MAAM;AAAA;AAAA;AAAA,EAGxB;AACJ;",
4
+ "sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {\n CSSResultArray,\n html,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport '@spectrum-web-components/button/sp-close-button.js';\nimport {\n AlertBannerBase,\n AlertBannerVariants,\n} from '@spectrum-web-components/core/components/alert-banner';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-alert.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-info.js';\nimport styles from './alert-banner.css.js';\n\nexport type { AlertBannerVariants };\n\n/**\n * @element sp-alert-banner\n *\n * @slot - The alert banner text context\n * @slot action - Slot for the button element that surfaces the contextual action a user can take\n *\n * @fires close - Announces the alert banner has been closed\n */\nexport class AlertBanner extends AlertBannerBase {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n protected override renderIcon(variant: string): TemplateResult {\n switch (variant) {\n case 'info':\n return html`\n <sp-icon-info\n label=\"Information\"\n class=\"type\"\n ></sp-icon-info>\n `;\n case 'negative':\n return html`\n <sp-icon-alert label=\"Error\" class=\"type\"></sp-icon-alert>\n `;\n default:\n return html``;\n }\n }\n\n protected override render(): TemplateResult {\n return html`\n <div class=\"body\" role=\"alert\">\n <div class=\"content\">\n ${this.renderIcon(this.variant)}\n <div class=\"text\"><slot></slot></div>\n </div>\n <slot name=\"action\"></slot>\n </div>\n <div class=\"end\">\n ${this.dismissible\n ? html`\n <sp-close-button\n @click=${this.shouldClose}\n label=\"Close\"\n static-color=\"white\"\n ></sp-close-button>\n `\n : html``}\n </div>\n `;\n }\n}\n"],
5
+ "mappings": ";AAWA;AAAA,EAEI;AAAA,OAEG;AACP,OAAO;AACP;AAAA,EACI;AAAA,OAEG;AACP,OAAO;AACP,OAAO;AACP,OAAO,YAAY;AAYZ,aAAM,oBAAoB,gBAAgB;AAAA,EAC7C,WAA2B,SAAyB;AAChD,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAEmB,WAAW,SAAiC;AAC3D,YAAQ,SAAS;AAAA,MACb,KAAK;AACD,eAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAMX,KAAK;AACD,eAAO;AAAA;AAAA;AAAA,MAGX;AACI,eAAO;AAAA,IACf;AAAA,EACJ;AAAA,EAEmB,SAAyB;AACxC,WAAO;AAAA;AAAA;AAAA,sBAGO,KAAK,WAAW,KAAK,OAAO,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAMjC,KAAK,cACD;AAAA;AAAA,uCAEiB,KAAK,WAAW;AAAA;AAAA;AAAA;AAAA,0BAKjC,MAAM;AAAA;AAAA;AAAA,EAGxB;AACJ;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- "use strict";import{html as e}from"@spectrum-web-components/base";import"@spectrum-web-components/button/sp-close-button.js";import"@spectrum-web-components/icons-workflow/icons/sp-icon-alert.js";import"@spectrum-web-components/icons-workflow/icons/sp-icon-info.js";import r from"./alert-banner.css.js";import{AlertBannerBase as s}from"@spectrum-web-components/core/components/alert-banner";export class AlertBanner extends s{static get styles(){return[r]}renderIcon(t){switch(t){case"info":return e`
1
+ "use strict";import{html as e}from"@spectrum-web-components/base";import"@spectrum-web-components/button/sp-close-button.js";import{AlertBannerBase as r}from"@spectrum-web-components/core/components/alert-banner";import"@spectrum-web-components/icons-workflow/icons/sp-icon-alert.js";import"@spectrum-web-components/icons-workflow/icons/sp-icon-info.js";import s from"./alert-banner.css.js";export class AlertBanner extends r{static get styles(){return[s]}renderIcon(t){switch(t){case"info":return e`
2
2
  <sp-icon-info
3
3
  label="Information"
4
4
  class="type"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["AlertBanner.ts"],
4
- "sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {\n CSSResultArray,\n html,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport '@spectrum-web-components/button/sp-close-button.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-alert.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-info.js';\nimport styles from './alert-banner.css.js';\nimport {\n AlertBannerBase,\n AlertBannerVariants,\n} from '@spectrum-web-components/core/components/alert-banner';\n\nexport type { AlertBannerVariants };\n\n/**\n * @element sp-alert-banner\n *\n * @slot - The alert banner text context\n * @slot action - Slot for the button element that surfaces the contextual action a user can take\n *\n * @fires close - Announces the alert banner has been closed\n */\nexport class AlertBanner extends AlertBannerBase {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n protected override renderIcon(variant: string): TemplateResult {\n switch (variant) {\n case 'info':\n return html`\n <sp-icon-info\n label=\"Information\"\n class=\"type\"\n ></sp-icon-info>\n `;\n case 'negative':\n return html`\n <sp-icon-alert label=\"Error\" class=\"type\"></sp-icon-alert>\n `;\n default:\n return html``;\n }\n }\n\n protected override render(): TemplateResult {\n return html`\n <div class=\"body\" role=\"alert\">\n <div class=\"content\">\n ${this.renderIcon(this.variant)}\n <div class=\"text\"><slot></slot></div>\n </div>\n <slot name=\"action\"></slot>\n </div>\n <div class=\"end\">\n ${this.dismissible\n ? html`\n <sp-close-button\n @click=${this.shouldClose}\n label=\"Close\"\n static-color=\"white\"\n ></sp-close-button>\n `\n : html``}\n </div>\n `;\n }\n}\n"],
5
- "mappings": "aAWA,OAEI,QAAAA,MAEG,gCACP,MAAO,qDACP,MAAO,iEACP,MAAO,gEACP,OAAOC,MAAY,wBACnB,OACI,mBAAAC,MAEG,wDAYA,aAAM,oBAAoBA,CAAgB,CAC7C,WAA2B,QAAyB,CAChD,MAAO,CAACD,CAAM,CAClB,CAEmB,WAAWE,EAAiC,CAC3D,OAAQA,EAAS,CACb,IAAK,OACD,OAAOH;AAAA;AAAA;AAAA;AAAA;AAAA,kBAMX,IAAK,WACD,OAAOA;AAAA;AAAA,kBAGX,QACI,OAAOA,GACf,CACJ,CAEmB,QAAyB,CACxC,OAAOA;AAAA;AAAA;AAAA,sBAGO,KAAK,WAAW,KAAK,OAAO,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAMjC,KAAK,YACDA;AAAA;AAAA,uCAEiB,KAAK,WAAW;AAAA;AAAA;AAAA;AAAA,wBAKjCA,GAAM;AAAA;AAAA,SAGxB,CACJ",
6
- "names": ["html", "styles", "AlertBannerBase", "variant"]
4
+ "sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {\n CSSResultArray,\n html,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport '@spectrum-web-components/button/sp-close-button.js';\nimport {\n AlertBannerBase,\n AlertBannerVariants,\n} from '@spectrum-web-components/core/components/alert-banner';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-alert.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-info.js';\nimport styles from './alert-banner.css.js';\n\nexport type { AlertBannerVariants };\n\n/**\n * @element sp-alert-banner\n *\n * @slot - The alert banner text context\n * @slot action - Slot for the button element that surfaces the contextual action a user can take\n *\n * @fires close - Announces the alert banner has been closed\n */\nexport class AlertBanner extends AlertBannerBase {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n protected override renderIcon(variant: string): TemplateResult {\n switch (variant) {\n case 'info':\n return html`\n <sp-icon-info\n label=\"Information\"\n class=\"type\"\n ></sp-icon-info>\n `;\n case 'negative':\n return html`\n <sp-icon-alert label=\"Error\" class=\"type\"></sp-icon-alert>\n `;\n default:\n return html``;\n }\n }\n\n protected override render(): TemplateResult {\n return html`\n <div class=\"body\" role=\"alert\">\n <div class=\"content\">\n ${this.renderIcon(this.variant)}\n <div class=\"text\"><slot></slot></div>\n </div>\n <slot name=\"action\"></slot>\n </div>\n <div class=\"end\">\n ${this.dismissible\n ? html`\n <sp-close-button\n @click=${this.shouldClose}\n label=\"Close\"\n static-color=\"white\"\n ></sp-close-button>\n `\n : html``}\n </div>\n `;\n }\n}\n"],
5
+ "mappings": "aAWA,OAEI,QAAAA,MAEG,gCACP,MAAO,qDACP,OACI,mBAAAC,MAEG,wDACP,MAAO,iEACP,MAAO,gEACP,OAAOC,MAAY,wBAYZ,aAAM,oBAAoBD,CAAgB,CAC7C,WAA2B,QAAyB,CAChD,MAAO,CAACC,CAAM,CAClB,CAEmB,WAAWC,EAAiC,CAC3D,OAAQA,EAAS,CACb,IAAK,OACD,OAAOH;AAAA;AAAA;AAAA;AAAA;AAAA,kBAMX,IAAK,WACD,OAAOA;AAAA;AAAA,kBAGX,QACI,OAAOA,GACf,CACJ,CAEmB,QAAyB,CACxC,OAAOA;AAAA;AAAA;AAAA,sBAGO,KAAK,WAAW,KAAK,OAAO,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAMjC,KAAK,YACDA;AAAA;AAAA,uCAEiB,KAAK,WAAW;AAAA;AAAA;AAAA;AAAA,wBAKjCA,GAAM;AAAA;AAAA,SAGxB,CACJ",
6
+ "names": ["html", "AlertBannerBase", "styles", "variant"]
7
7
  }
@@ -1,2 +1,2 @@
1
- declare const styles: import("@spectrum-web-components/base").CSSResult;
1
+ declare const styles: import("lit").CSSResult;
2
2
  export default styles;
@@ -1,2 +1,2 @@
1
- declare const styles: import("@spectrum-web-components/base").CSSResult;
1
+ declare const styles: import("lit").CSSResult;
2
2
  export default styles;
@@ -1,2 +1,2 @@
1
- declare const styles: import("@spectrum-web-components/base").CSSResult;
1
+ declare const styles: import("lit").CSSResult;
2
2
  export default styles;