@ncino/web-components 7.0.0-preview.3 → 7.0.0-preview.4

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.
@@ -1 +1 @@
1
- import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import{LitElement as n}from"../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{property as r}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";var y=Object.defineProperty,e=(i,p,s,c)=>{for(var t=void 0,o=i.length-1,l;o>=0;o--)(l=i[o])&&(t=l(p,s,t)||t);return t&&y(p,s,t),t};class a extends n{constructor(){super(...arguments),this.size="small",this.src="",this.srcAriaLabel="",this.avatarAriaLabel="",this.interactive=!1,this.skeleton=!1}}e([r({type:String})],a.prototype,"size");e([r({type:String})],a.prototype,"src");e([r({type:String,attribute:"src-aria-label"})],a.prototype,"srcAriaLabel");e([r({type:String,attribute:"avatar-aria-label"})],a.prototype,"avatarAriaLabel");e([r({type:Boolean})],a.prototype,"interactive");e([r({type:Boolean})],a.prototype,"skeleton");export{a as NjcAvatar};
1
+ import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import{LitElement as l}from"../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{property as e}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";var v=Object.defineProperty,r=(i,p,s,y)=>{for(var t=void 0,o=i.length-1,n;o>=0;o--)(n=i[o])&&(t=n(p,s,t)||t);return t&&v(p,s,t),t};class a extends l{constructor(){super(...arguments),this.size="small",this.src="",this.avatarAriaLabel="",this.interactive=!1,this.skeleton=!1}}r([e({type:String})],a.prototype,"size");r([e({type:String})],a.prototype,"src");r([e({type:String,attribute:"avatar-aria-label"})],a.prototype,"avatarAriaLabel");r([e({type:Boolean})],a.prototype,"interactive");r([e({type:Boolean})],a.prototype,"skeleton");export{a as NjcAvatar};
@@ -3,7 +3,7 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit
3
3
  class="gator-avatar ${this.interactive?"gator-avatar-interactive":""}"
4
4
  tabindex="${z(this.interactive?"0":void 0)}"
5
5
  role="${this.interactive?"button":"img"}"
6
- aria-label="${this.srcAriaLabel||this.avatarAriaLabel}"
6
+ aria-label="${this.avatarAriaLabel}"
7
7
  >
8
8
  <span class="gator-avatar-content">
9
9
  <slot></slot>
@@ -11,12 +11,6 @@ export declare class NjcAvatar extends LitElement {
11
11
  * @type {string}
12
12
  */
13
13
  src: string;
14
- /**
15
- * @property {string} srcAriaLabel - DEPRECATED: aria-label for the avatar image
16
- * @type {string}
17
- * @deprecated Use `avatar-aria-label` instead
18
- */
19
- srcAriaLabel: string;
20
14
  /**
21
15
  * @property {string} avatarAriaLabel - Aria-label for the avatar
22
16
  * @type {string}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ncino/web-components",
3
3
  "author": "nCino",
4
- "version": "7.0.0-preview.3",
4
+ "version": "7.0.0-preview.4",
5
5
  "license": "(c) Copyright 2023 nCino, Inc., all rights reserved",
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org/"
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@ncino/web-components",
4
- "version": "7.0.0-preview.2",
4
+ "version": "7.0.0-preview.3",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -623,10 +623,6 @@
623
623
  }
624
624
  },
625
625
  { "name": "src", "value": { "type": "string", "default": "''" } },
626
- {
627
- "name": "src-aria-label",
628
- "value": { "type": "string", "default": "''" }
629
- },
630
626
  {
631
627
  "name": "avatar-aria-label",
632
628
  "value": { "type": "string", "default": "''" }
@@ -657,7 +653,6 @@
657
653
  "type": "'xxx-small' | 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large'"
658
654
  },
659
655
  { "name": "src", "type": "string" },
660
- { "name": "srcAriaLabel", "type": "string" },
661
656
  { "name": "avatarAriaLabel", "type": "string" },
662
657
  { "name": "interactive", "type": "boolean" },
663
658
  { "name": "skeleton", "type": "boolean" }