@ncino/web-components 4.0.0-preview.5 → 4.0.0-preview.6

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{NjcCard as i}from"../card/card.js";import{property as n}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";var s=Object.defineProperty,c=(t,p,a,f)=>{for(var r=void 0,e=t.length-1,o;e>=0;e--)(o=t[e])&&(r=o(p,a,r)||r);return r&&s(p,a,r),r};class l extends i{constructor(){super(...arguments),this.chipLabel=""}}c([n({attribute:"chip-label",type:String})],l.prototype,"chipLabel");export{l as NjcButtonCard};
1
+ import{NjcCard as c}from"../card/card.js";import{property as s}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";var n=Object.defineProperty,l=(t,p,o,f)=>{for(var e=void 0,r=t.length-1,a;r>=0;r--)(a=t[r])&&(e=a(p,o,e)||e);return e&&n(p,o,e),e};class i extends c{constructor(){super(...arguments),this.chipLabel="",this.selected=!1}}l([s({attribute:"chip-label",type:String})],i.prototype,"chipLabel");l([s({type:Boolean,reflect:!0})],i.prototype,"selected");export{i as NjcButtonCard};
@@ -1,12 +1,14 @@
1
- import{NjcButtonCard as m}from"../button-card.js";import"../../chip/gator/chip.gator.js";import"../../card/gator/base/card.gator.js";import"../../card/gator/header/card-header.gator.js";import"../../card/gator/content/card-content.gator.js";import"../../card/gator/footer/card-footer.gator.js";import"../../text-detail/gator/text-detail.gator.js";import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as l}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import{LitElement as h}from"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import u from"../../../packages/web-components/src/components/button-card/gator/button-card.gator.scss.js";import b from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import g from"../../../packages/web-components/src/components/button-card/button-card.tokens.scss.js";import f from"../../../packages/web-components/src/components/card/card.tokens.scss.js";import{customElement as $}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{ifDefined as n}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js";import{KEY_CONSTANTS as c}from"../../../consts/key-constants.js";import{unsafeCSS as i}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var v=Object.getOwnPropertyDescriptor,C=(t,a,p,r)=>{for(var e=r>1?void 0:r?v(a,p):a,o=t.length-1,d;o>=0;o--)(d=t[o])&&(e=d(e)||e);return e};let s=class extends m{render(){return l`
1
+ import{NjcButtonCard as p}from"../button-card.js";import"../../chip/gator/chip.gator.js";import"../../card/gator/base/card.gator.js";import"../../card/gator/header/card-header.gator.js";import"../../card/gator/content/card-content.gator.js";import"../../card/gator/footer/card-footer.gator.js";import"../../text-detail/gator/text-detail.gator.js";import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as l}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import{LitElement as m}from"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import u from"../../../packages/web-components/src/components/button-card/gator/button-card.gator.scss.js";import b from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import g from"../../../packages/web-components/src/components/button-card/button-card.tokens.scss.js";import f from"../../../packages/web-components/src/components/card/card.tokens.scss.js";import{customElement as $}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{ifDefined as n}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js";import{KEY_CONSTANTS as c}from"../../../consts/key-constants.js";import{unsafeCSS as i}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var v=Object.getOwnPropertyDescriptor,C=(t,a,h,o)=>{for(var e=o>1?void 0:o?v(a,h):a,r=t.length-1,d;r>=0;r--)(d=t[r])&&(e=d(e)||e);return e};let s=class extends p{render(){return l`
2
2
  <ngc-card
3
3
  tabindex="${this.disabled?"-1":"0"}"
4
4
  role="button"
5
+ aria-pressed="${this.selected}"
5
6
  ?elevated="${this.elevated}"
6
7
  ?outlined="${this.outlined}"
7
8
  @click=${this.handleClick}
8
9
  @keydown=${this.handleKeydown}
9
10
  ?disabled="${this.disabled}"
11
+ class="${this.selected?"selected":""}"
10
12
  >
11
13
  ${this.cardLabelMarkup}
12
14
 
@@ -26,8 +28,8 @@ import{NjcButtonCard as m}from"../button-card.js";import"../../chip/gator/chip.g
26
28
  <ngc-chip
27
29
  ?disabled="${this.disabled}"
28
30
  class="gator-button-card-chip-label"
29
- ?readonly="${!this.disabled}"
30
31
  data-testid=${n(this.dataTestid)}-chip
32
+ readonly
31
33
  >
32
34
  ${this.chipLabel}
33
- </ngc-chip>`:null}get disabledClass(){return this.disabled?"gator-button-card_disabled":""}handleClick(t){t.preventDefault(),t.stopImmediatePropagation(),this.dispatchEvent(new CustomEvent("click",{bubbles:!0}))}handleKeydown(t){[c.ENTER,c.SPACE].includes(t.key)&&this.handleClick(t)}};s.shadowRootOptions={...h.shadowRootOptions,delegatesFocus:!0};s.styles=[i(u),i(b),i(g),i(f)];s=C([$("ngc-button-card")],s);export{s as NgcButtonCard};
35
+ </ngc-chip>`:null}get disabledClass(){return this.disabled?"gator-button-card_disabled":""}handleClick(t){t.preventDefault(),t.stopImmediatePropagation(),!this.disabled&&this.dispatchEvent(new CustomEvent("click",{bubbles:!0}))}click(){this.handleClick(new CustomEvent("click",{bubbles:!0}))}handleKeydown(t){[c.ENTER,c.SPACE].includes(t.key)&&this.handleClick(t)}};s.shadowRootOptions={...m.shadowRootOptions,delegatesFocus:!0};s.styles=[i(u),i(b),i(g),i(f)];s=C([$("ngc-button-card")],s);export{s as NgcButtonCard};
@@ -1,9 +1,9 @@
1
- import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as p}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as c}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import m from"../../../packages/web-components/src/components/chip/chip.tokens.scss.js";import u from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import d from"../../../packages/web-components/src/components/chip/gator/chip.gator.scss.js";import g from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import{NjcChip as h}from"../chip.js";import{unsafeCSS as e}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var f=Object.getOwnPropertyDescriptor,C=(t,o,n,a)=>{for(var s=a>1?void 0:a?f(o,n):o,i=t.length-1,l;i>=0;i--)(l=t[i])&&(s=l(s)||s);return s};let r=class extends h{render(){return this.readonly?this.readonlyChipMarkup:this.chipMarkup}get chipMarkup(){return p`
2
- <button class="gator-chip ${this.classes}" ?disabled="${this.disabled}" @click=${this.handleClick}>
1
+ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as p}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as d}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import m from"../../../packages/web-components/src/components/chip/chip.tokens.scss.js";import u from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import g from"../../../packages/web-components/src/components/chip/gator/chip.gator.scss.js";import f from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import{NjcChip as c}from"../chip.js";import{classMap as h}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/class-map.js";import{unsafeCSS as i}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var b=Object.getOwnPropertyDescriptor,k=(t,o,n,a)=>{for(var s=a>1?void 0:a?b(o,n):o,e=t.length-1,l;e>=0;e--)(l=t[e])&&(s=l(s)||s);return s};let r=class extends c{render(){return this.readonly?this.readonlyChipMarkup:this.chipMarkup}get chipMarkup(){return p`
2
+ <button class=${h(this.classes)} ?disabled="${this.disabled}" @click=${this.handleClick}>
3
3
  <slot></slot>
4
4
  </button>
5
5
  `}get readonlyChipMarkup(){return p`
6
- <div class="gator-chip gator-chip__read-only ${this.classes}" @click=${this.handleClick}>
6
+ <div class="gator-chip__read-only ${h(this.classes)}" aria-disabled="${this.disabled}" @click=${this.handleClick}>
7
7
  <slot></slot>
8
8
  </div>
9
- `}handleClick(t){t.stopPropagation(),t.preventDefault(),!(this.disabled||this.readonly)&&this.dispatchEvent(new Event("click",{bubbles:!0}))}get classes(){return this.typeClass+" "+this.sizeClass}get typeClass(){return this.type?`gator-chip_${this.type}`:""}get sizeClass(){return this.size=="small"?"gator-chip_small":""}};r.shadowRootOptions={...h.shadowRootOptions,delegatesFocus:!0};r.styles=[e(m),e(d),e(g),e(u)];r=C([c("ngc-chip")],r);export{r as NgcChip};
9
+ `}handleClick(t){t.stopPropagation(),t.preventDefault(),!(this.disabled||this.readonly)&&this.dispatchEvent(new Event("click",{bubbles:!0}))}get classes(){return{"gator-chip":!0,"gator-chip_small":this.size==="small","gator-chip_disabled":this.disabled,[`gator-chip_${this.type}`]:this.type!==null}}};r.shadowRootOptions={...c.shadowRootOptions,delegatesFocus:!0};r.styles=[i(m),i(g),i(f),i(u)];r=k([d("ngc-chip")],r);export{r as NgcChip};
@@ -0,0 +1,5 @@
1
+ import{noChange as o}from"../lit-html.js";import{directive as h,Directive as c,PartType as d}from"../directive.js";/**
2
+ * @license
3
+ * Copyright 2018 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */const f=h(class extends c{constructor(s){var e;if(super(s),s.type!==d.ATTRIBUTE||s.name!=="class"||((e=s.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(e=>s[e]).join(" ")+" "}update(s,[e]){var n,i;if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(t=>t!=="")));for(const t in e)e[t]&&!((n=this.nt)!=null&&n.has(t))&&this.st.add(t);return this.render(e)}const r=s.element.classList;for(const t of this.st)t in e||(r.remove(t),this.st.delete(t));for(const t in e){const a=!!e[t];a===this.st.has(t)||(i=this.nt)!=null&&i.has(t)||(a?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)))}return o}});export{f as classMap};
@@ -1 +1 @@
1
- const o=":host{--ngc-button-card-pressed-background-color: var(--color-blue-10, #F3F5F7);--ngc-button-card-pressed-outline-color: var(--color-blue-30, #11395B);--ngc-button-card-focused-outline-color: var(--color-blue-30, #11395B);--ngc-button-card-width: 21rem}";export{o as default};
1
+ const o=":host{--ngc-button-card-pressed-background-color: var(--color-blue-10, #F3F5F7);--ngc-button-card-pressed-outline-color: var(--color-blue-30, #11395B);--ngc-button-card-focused-outline-color: var(--color-blue-30, #11395B);--ngc-button-card-selected-outline-color: var(--color-stroke-brand, #11395B);--ngc-button-card-width: 21rem}";export{o as default};
@@ -1 +1 @@
1
- const t=":host{max-width:var(--ngc-button-card-width, 21rem)}ngc-card{--ngc-card-display: var(--ngc-button-card-display, flex);--ngc-card-max-width: var(--ngc-button-card-width, 21rem);--ngc-card-padding: var(--spacing-4);cursor:pointer}ngc-card:hover{--ngc-card-box-shadow: 0px 9px 15px rgba(31, 31, 31, .08), 0px 10px 20px rgba(31, 31, 31, .08), 0px 9px 20px rgba(31, 31, 31, .08)}ngc-card:active{--ngc-card-background-color: var(--ngc-button-card-pressed-background-color, var(--color-blue-10, #F3F5F7));--ngc-card-outline: 1px solid var(--ngc-button-card-pressed-outline-color, var(--color-blue-30, #11395B))}ngc-card[disabled]:hover,ngc-card[disabled]:active{--ngc-card-box-shadow: unset;--ngc-card-background-color: unset;--ngc-card-outline: unset;cursor:not-allowed}ngc-card:focus-visible{outline:none;--ngc-card-outline: 2px solid var(--ngc-button-card-focused-outline-color, var(--color-blue-30, #11395B))}ngc-chip{--ngc-chip-font-size: .8125rem;--ngc-chip-line-height: 1.125rem;--ngc-chip-padding: var(--spacing-2) var(--spacing-3)}ngc-text-detail{width:100%;--ngc-text-detail-title-color: var(--color-neutral-70);--ngc-text-detail-title-font-size: 1.0625rem;--ngc-text-detail-title-font-weight: 700;--ngc-text-detail-title-line-height: 1.5rem;--ngc-text-detail-subtitle-color: var(--color-neutral-50);--ngc-text-detail-subtitle-line-height: 1.375rem;--ngc-text-detail-subtitle-font-size: .9375rem}.gator-button-card-chip-label{position:absolute;top:0;left:var(--spacing-4);transform:translateY(-50%);--ngc-chip-cursor: pointer}.gator-button-card-container{display:inline-flex;flex-direction:row;justify-content:space-between;align-items:center}.gator-button-card_disabled ngc-text-detail{--ngc-text-detail-title-color: var(--text-color-disabled, #6D6D6D);--ngc-text-detail-subtitle-color: var(--text-color-disabled, #6D6D6D)}";export{t as default};
1
+ const t=":host{max-width:var(--ngc-button-card-width, 21rem)}ngc-card{--ngc-card-display: var(--ngc-button-card-display, flex);--ngc-card-max-width: var(--ngc-button-card-width, 21rem);--ngc-card-padding: var(--spacing-4);cursor:pointer}ngc-card:hover{--ngc-card-box-shadow: 0px 9px 15px rgba(31, 31, 31, .08), 0px 10px 20px rgba(31, 31, 31, .08), 0px 9px 20px rgba(31, 31, 31, .08)}ngc-card:active{--ngc-card-background-color: var(--ngc-button-card-pressed-background-color, var(--color-blue-10, #F3F5F7));--ngc-card-outline: 1px solid var(--ngc-button-card-pressed-outline-color, var(--color-blue-30, #11395B))}ngc-card.selected{--ngc-card-outline: var(--size-stroke-1, 1px) solid var(--ngc-button-card-selected-outline-color, var(--color-stroke-brand, #11395B))}ngc-card[disabled]:hover,ngc-card[disabled]:active,ngc-card[disabled].selected{--ngc-card-box-shadow: unset;--ngc-card-background-color: unset;--ngc-card-outline: unset;--ngc-card-border: unset;cursor:not-allowed}ngc-card:focus-visible{outline:none;--ngc-card-outline: 2px solid var(--ngc-button-card-focused-outline-color, var(--color-blue-30, #11395B))}ngc-chip{--ngc-chip-font-size: .8125rem;--ngc-chip-line-height: 1.125rem;--ngc-chip-padding: var(--spacing-2) var(--spacing-3)}ngc-text-detail{width:100%;--ngc-text-detail-title-color: var(--color-neutral-70);--ngc-text-detail-title-font-size: 1.0625rem;--ngc-text-detail-title-font-weight: 700;--ngc-text-detail-title-line-height: 1.5rem;--ngc-text-detail-subtitle-color: var(--color-neutral-50);--ngc-text-detail-subtitle-line-height: 1.375rem;--ngc-text-detail-subtitle-font-size: .9375rem}.gator-button-card-chip-label{position:absolute;top:0;left:var(--spacing-4);transform:translateY(-50%);--ngc-chip-cursor: pointer}.gator-button-card-container{display:inline-flex;flex-direction:row;justify-content:space-between;align-items:center}.gator-button-card_disabled ngc-text-detail{--ngc-text-detail-title-color: var(--text-color-disabled, #6D6D6D);--ngc-text-detail-subtitle-color: var(--text-color-disabled, #6D6D6D)}";export{t as default};
@@ -1 +1 @@
1
- const r='.gator-chip{background-color:var(--ngc-chip-background-color);border-radius:var(--ngc-chip-border-radius);display:inline-block;padding:var(--ngc-chip-padding);font-family:var(--text-family-body, "Open Sans"),sans-serif;font-size:var(--ngc-chip-font-size);line-height:var(--ngc-chip-line-height);border:var(--ngc-chip-border);color:var(--color-neutral-70);cursor:var(--ngc-chip-cursor, default);border:1px solid var(--color-stroke-tertiary, #E5E5E5)}button:hover{background-color:var(--ngc-chip-hover-background-color);cursor:var(--ngc-chip-cursor, pointer)}button:focus-visible{outline:none;box-shadow:var(--ngc-chip-focus-box-shadow)}button:active{background-color:var(--ngc-chip-active-background-color)}button:disabled{cursor:not-allowed;color:var(--button-color-default-text-disabled, #6D6D6D);outline:1px solid transparent!important;background:var(--color-surface-disabled, #E5E5E5);border:1px solid transparent!important;font-size:var(--text-size-body-2, .9375rem);font-style:normal;font-weight:400}button:disabled:hover{background:var(--color-surface-disabled, #E5E5E5)!important}.gator-chip__read-only{cursor:var(--ngc-chip-cursor, default !important)}.gator-chip__read-only:active{background-color:var(--ngc-chip-background-color)}.gator-chip_error{background:var(--color-surface-error, #FAEBE7);border:1px solid var(--color-stroke-error-weak, #E99F88)}.gator-chip_error:hover:not(.gator-chip__read-only){background:var(--color-stroke-error-weak, #E99F88)}.gator-chip_warning{background:var(--color-surface-error, #FAEBE7);border:1px solid var(--color-stroke-warning, #F5B77F)}.gator-chip_warning:hover:not(.gator-chip__read-only){background:var(--color-stroke-warning, #F5B77F)}.gator-chip_success{background:var(--color-surface-success, #E9F7F0);border:1px solid var(--color-stroke-success, #90D4B4)}.gator-chip_success:hover:not(.gator-chip__read-only){background:var(--color-stroke-success, #90D4B4)}.gator-chip_info{border:1px solid var(--color-surface-brand-secondary, #C3CDD6);background:var(--color-surface-brand-hover, #E4ECF2)}.gator-chip_info:hover:not(.gator-chip__read-only){background:var(--color-surface-brand-secondary, #C3CDD6)}.gator-chip_small{font-size:var(--text-size-caption);line-height:var(--text-line-height-caption)}';export{r as default};
1
+ const r='.gator-chip{background-color:var(--ngc-chip-background-color);border-radius:var(--ngc-chip-border-radius);display:inline-block;padding:var(--ngc-chip-padding);font-family:var(--text-family-body, "Open Sans"),sans-serif;font-size:var(--ngc-chip-font-size);line-height:var(--ngc-chip-line-height);border:var(--ngc-chip-border);color:var(--color-neutral-70);cursor:var(--ngc-chip-cursor, default);border:1px solid var(--color-stroke-tertiary, #E5E5E5)}button:hover{background-color:var(--ngc-chip-hover-background-color);cursor:var(--ngc-chip-cursor, pointer)}button:focus-visible{outline:none;box-shadow:var(--ngc-chip-focus-box-shadow)}button:active{background-color:var(--ngc-chip-active-background-color)}.gator-chip_disabled{cursor:not-allowed!important;color:var(--button-color-default-text-disabled, #6D6D6D);outline:1px solid transparent!important;background:var(--color-surface-disabled, #E5E5E5);border:1px solid transparent!important}.gator-chip_disabled:hover{background:var(--color-surface-disabled, #E5E5E5)!important}.gator-chip__read-only{cursor:var(--ngc-chip-cursor, default !important)}.gator-chip__read-only:active{background-color:var(--ngc-chip-background-color)}.gator-chip_error{background:var(--color-surface-error, #FAEBE7);border:1px solid var(--color-stroke-error-weak, #E99F88)}.gator-chip_error:hover:not(.gator-chip__read-only){background:var(--color-stroke-error-weak, #E99F88)}.gator-chip_warning{background:var(--color-surface-error, #FAEBE7);border:1px solid var(--color-stroke-warning, #F5B77F)}.gator-chip_warning:hover:not(.gator-chip__read-only){background:var(--color-stroke-warning, #F5B77F)}.gator-chip_success{background:var(--color-surface-success, #E9F7F0);border:1px solid var(--color-stroke-success, #90D4B4)}.gator-chip_success:hover:not(.gator-chip__read-only){background:var(--color-stroke-success, #90D4B4)}.gator-chip_info{border:1px solid var(--color-surface-brand-secondary, #C3CDD6);background:var(--color-surface-brand-hover, #E4ECF2)}.gator-chip_info:hover:not(.gator-chip__read-only){background:var(--color-surface-brand-secondary, #C3CDD6)}.gator-chip_small{font-size:var(--text-size-caption);line-height:var(--text-line-height-caption)}';export{r as default};
@@ -5,4 +5,9 @@ export declare class NjcButtonCard extends NjcCard {
5
5
  * @property {string} chipLabel
6
6
  */
7
7
  chipLabel: string;
8
+ /**
9
+ * @description Whether the button card is in selected state
10
+ * @property {boolean} selected
11
+ */
12
+ selected: boolean;
8
13
  }
@@ -11,5 +11,6 @@ export declare class NgcButtonCard extends NjcButtonCard {
11
11
  get cardLabelMarkup(): import('lit').TemplateResult<1> | null;
12
12
  get disabledClass(): "" | "gator-button-card_disabled";
13
13
  handleClick(event: Event): void;
14
+ click(): void;
14
15
  handleKeydown(event: KeyboardEvent): void;
15
16
  }
@@ -14,9 +14,12 @@ export declare class NgcChip extends NjcChip {
14
14
  get chipMarkup(): import('lit').TemplateResult<1>;
15
15
  get readonlyChipMarkup(): import('lit').TemplateResult<1>;
16
16
  handleClick(event: Event): void;
17
- get classes(): string;
18
- get typeClass(): string;
19
- get sizeClass(): "" | "gator-chip_small";
17
+ get classes(): {
18
+ [x: string]: boolean;
19
+ 'gator-chip': boolean;
20
+ 'gator-chip_small': boolean;
21
+ 'gator-chip_disabled': boolean;
22
+ };
20
23
  }
21
24
  declare global {
22
25
  interface HTMLElementTagNameMap {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ncino/web-components",
3
3
  "author": "nCino",
4
- "version": "4.0.0-preview.5",
4
+ "version": "4.0.0-preview.6",
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": "4.0.0-preview.4",
4
+ "version": "4.0.0-preview.5",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -102,8 +102,6 @@
102
102
  { "name": "chipMarkup" },
103
103
  { "name": "readonlyChipMarkup" },
104
104
  { "name": "classes" },
105
- { "name": "typeClass" },
106
- { "name": "sizeClass" },
107
105
  { "name": "disabled", "type": "boolean" },
108
106
  { "name": "readonly", "type": "boolean" },
109
107
  {
@@ -1186,6 +1184,10 @@
1186
1184
  "name": "chip-label",
1187
1185
  "value": { "type": "string", "default": "''" }
1188
1186
  },
1187
+ {
1188
+ "name": "selected",
1189
+ "value": { "type": "boolean", "default": "false" }
1190
+ },
1189
1191
  { "name": "title", "value": { "type": "string", "default": "''" } },
1190
1192
  {
1191
1193
  "name": "subtitle",
@@ -1218,6 +1220,7 @@
1218
1220
  { "name": "cardLabelMarkup" },
1219
1221
  { "name": "disabledClass" },
1220
1222
  { "name": "chipLabel", "type": "string" },
1223
+ { "name": "selected", "type": "boolean" },
1221
1224
  { "name": "title", "type": "string" },
1222
1225
  { "name": "subtitle", "type": "string" },
1223
1226
  { "name": "elevated", "type": "boolean" },