@ncino/web-components 1.1.0-preview.4 → 1.1.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.
- package/dist/assets/index-chunk5.js +1 -1
- package/dist/components/chip/chip.js +1 -1
- package/dist/components/chip/gator/chip.gator.js +5 -5
- package/dist/components/combobox/combobox-item/index.js +1 -1
- package/dist/components/combobox/combobox.types.js +1 -0
- package/dist/types/components/chip/chip.d.ts +5 -0
- package/dist/types/components/chip/gator/chip.gator.d.ts +1 -0
- package/dist/types/components/combobox/base/combobox.d.ts +1 -1
- package/dist/types/components/combobox/combobox-item/combobox-item.d.ts +0 -4
- package/dist/types/components/combobox/combobox-item/combobox-item.slds.d.ts +2 -2
- package/dist/types/components/combobox/combobox.types.d.ts +4 -0
- package/dist/types/components/combobox/index.d.ts +1 -0
- package/dist/types/utils/storybook-utils.d.ts +1 -1
- package/package.json +4 -1
- package/web-types.json +42 -37
|
@@ -1 +1 @@
|
|
|
1
|
-
const r=':host,:root{--color-background-primary: var(--color-blue-10, #F3F5F7);--color-stroke-brand: var(--color-blue-30, #11395B);--color-stroke-primary: var(--color-neutral-40);--color-stroke-success: var(--color-green-20);--color-stroke-warning: var(--color-orange-20);--color-stroke-error-weak: var(--color-red-20);--color-stroke-error-strong: var(--color-red-30);--color-text-primary-base: var(--color-neutral-70, #1F1F1F);--color-text-secondary: var(--color-neutral-50, #6D6D6D);--color-text-brand: var(--color-blue-30, #11395B);--color-text-placeholder: var(--color-neutral-50, #6D6D6D);--color-text-error: var(--color-red-40, #AA330E);--color-text-disabled: var(--color-neutral-40, #BFBFBF);--color-text-inverse: var(--color-neutral-0, #FFFFFF);--color-surface-primary: var(--color-neutral-0, #FFFFFF);--color-surface-brand: var(--color-blue-10, #F3F5F7);--color-surface-brand-secondary: var(--color-blue-20, #C3CDD6);--color-surface-secondary: var(--color-neutral-10);--color-surface-error: var(--color-red-10);--color-surface-success: var(--color-green-10);--color-surface-warning: var(--color-orange-10);--color-surface-badge: var(--color-red-30);--color-icon-error: var(--color-red-30);--color-icon-success: var(--color-green-30);--color-icon-warning: var(--color-orange-30);--color-icon-disabled: var(--color-neutral-40, #BFBFBF);--color-icon-brand: var(--color-blue-30);--color-primary-03-base: var(--color-neutral-70, #1F1F1F);--color-primary-01-placeholder: var(--color-neutral-50, #6D6D6D);--color-underline-primary: var(--color-neutral-40, #BFBFBF);--color-button-pressed: var(--color-neutral-60, #404040);--size-stroke-1: 1px;--text-size-body-1: 1.0625rem;--text-line-height-body-1: 1.5rem;--text-size-button-small: .8125rem;--text-size-button-large: 1.0625rem;--text-family-sans-serif: "Open Sans", sans-serif;--spacing-padding-margin-16: 1rem;--spacing-padding-margin-4: .25rem;--spacing-gap-8: .5rem}';export{r as s};
|
|
1
|
+
const r=':host,:root{--color-background-primary: var(--color-blue-10, #F3F5F7);--color-stroke-brand: var(--color-blue-30, #11395B);--color-stroke-primary: var(--color-neutral-40);--color-stroke-success: var(--color-green-20);--color-stroke-warning: var(--color-orange-20);--color-stroke-error-weak: var(--color-red-20);--color-stroke-error-strong: var(--color-red-30);--color-text-primary-base: var(--color-neutral-70, #1F1F1F);--color-text-secondary: var(--color-neutral-50, #6D6D6D);--color-text-brand: var(--color-blue-30, #11395B);--color-text-placeholder: var(--color-neutral-50, #6D6D6D);--color-text-error: var(--color-red-40, #AA330E);--color-text-disabled: var(--color-neutral-40, #BFBFBF);--color-text-inverse: var(--color-neutral-0, #FFFFFF);--color-surface-primary: var(--color-neutral-0, #FFFFFF);--color-surface-brand: var(--color-blue-10, #F3F5F7);--color-surface-brand-secondary: var(--color-blue-20, #C3CDD6);--color-surface-secondary: var(--color-neutral-10);--color-surface-error: var(--color-red-10);--color-surface-success: var(--color-green-10);--color-surface-warning: var(--color-orange-10);--color-surface-badge: var(--color-red-30);--color-icon-error: var(--color-red-30);--color-icon-success: var(--color-green-30);--color-icon-warning: var(--color-orange-30);--color-icon-disabled: var(--color-neutral-40, #BFBFBF);--color-icon-brand: var(--color-blue-30);--color-primary-03-base: var(--color-neutral-70, #1F1F1F);--color-primary-01-placeholder: var(--color-neutral-50, #6D6D6D);--color-underline-primary: var(--color-neutral-40, #BFBFBF);--color-button-pressed: var(--color-neutral-60, #404040);--color-focus-gap: var(--color-neutral-0, #FFFFFF);--color-focus-border: var(--color-blue-30, #11395B);--size-stroke-1: 1px;--text-size-body-1: 1.0625rem;--text-line-height-body-1: 1.5rem;--text-size-button-small: .8125rem;--text-size-button-large: 1.0625rem;--text-family-sans-serif: "Open Sans", sans-serif;--spacing-padding-margin-16: 1rem;--spacing-padding-margin-4: .25rem;--spacing-gap-8: .5rem}';export{r as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as
|
|
1
|
+
import{h as n}from"../../assets/index-chunk.js";import{n as a}from"../../assets/index-chunk2.js";var l=Object.defineProperty,o=(e,d,i,f)=>{for(var t=void 0,r=e.length-1,p;r>=0;r--)(p=e[r])&&(t=p(d,i,t)||t);return t&&l(d,i,t),t};class s extends n{constructor(){super(...arguments),this.disabled=!1,this.readonly=!1,this.dataTestid=""}}o([a({type:Boolean})],s.prototype,"disabled");o([a({type:Boolean})],s.prototype,"readonly");o([a({type:String,attribute:"data-testid"})],s.prototype,"dataTestid");export{s as N};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{r as
|
|
2
|
-
<button class="gator-chip" ?disabled="${this.disabled}">
|
|
1
|
+
import{r as i,k as s}from"../../../assets/index-chunk.js";import{t as p}from"../../../assets/index-chunk3.js";import{s as d}from"../../../assets/index-chunk5.js";import{p as h}from"../../../assets/index-chunk4.js";import{N as u}from"../chip.js";import"../../../assets/index-chunk2.js";const g=":host{--ngc-chip-disabled-color: var(--color-neutral-50);--ngc-chip-color: var(--color-neutral-70);--ngc-chip-background-color: var(--color-background-primary);--ngc-chip-hover-background-color: var(--color-neutral-20);--ngc-chip-active-background-color: var(--color-neutral-30);--ngc-chip-border-radius: 3rem;--ngc-chip-focus-box-shadow: var(--shadow-x-offset-0, 0px) var(--shadow-y-offset-0, 0px) var(--shadow-blur-0, 0px) var(--shadow-spread-2, 2px) var(--color-focus-gap, #FFF), var(--shadow-x-offset-0, 0px) var(--shadow-y-offset-0, 0px) var(--shadow-blur-0, 0px) var(--shadow-spread-4, 4px) var(--color-focus-border, #11395B);--ngc-chip-padding: .25rem .75rem;--ngc-chip-font-size: .9375rem;--ngc-chip-border: none}",v=".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-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)}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);background-color:var(--ngc-chip-active-background-color)}button:active{background-color:var(--ngc-chip-active-background-color)}button:disabled{cursor:not-allowed;color:var(--color-neutral-70);outline:1px solid var(--color-neutral-40, #BFBFBF);background:var(--color-neutral-10, #F7F7F7)}.gator-chip__read-only{cursor:var(--ngc-chip-cursor, default !important)}.gator-chip__read-only:active{background-color:var(--ngc-chip-background-color)}";var b=Object.defineProperty,f=Object.getOwnPropertyDescriptor,k=(o,c,n,a)=>{for(var r=a>1?void 0:a?f(c,n):c,e=o.length-1,t;e>=0;e--)(t=o[e])&&(r=(a?t(c,n,r):t(r))||r);return a&&r&&b(c,n,r),r};let l=class extends u{render(){return this.readonly?this.readonlyChipMarkup:this.chipMarkup}get chipMarkup(){return s`
|
|
2
|
+
<button class="gator-chip" ?disabled="${this.disabled}" @click=${this.handleClick}>
|
|
3
3
|
<slot></slot>
|
|
4
4
|
</button>
|
|
5
|
-
`}get readonlyChipMarkup(){return
|
|
6
|
-
<div class="gator-chip gator-chip__read-only">
|
|
5
|
+
`}get readonlyChipMarkup(){return s`
|
|
6
|
+
<div class="gator-chip gator-chip__read-only" @click=${this.handleClick}>
|
|
7
7
|
<slot></slot>
|
|
8
8
|
</div>
|
|
9
|
-
`}};
|
|
9
|
+
`}handleClick(o){o.stopPropagation(),o.preventDefault(),!(this.disabled||this.readonly)&&this.dispatchEvent(new Event("click",{bubbles:!0}))}};l.styles=[i(g),i(v),i(h),i(d)];l=k([p("ngc-chip")],l);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{N as e}from"./combobox-item.slds.js";import{N}from"./combobox-item.js";import"../../../assets/index-chunk.js";import"../../../assets/index-chunk3.js";import"../../../assets/index-chunk8.js";import"../../../utils/string-utils.js";import"../../../assets/index-chunk2.js";export{N as NjcComboboxItem,e as
|
|
1
|
+
import{N as e}from"./combobox-item.slds.js";import{N}from"./combobox-item.js";import"../../../assets/index-chunk.js";import"../../../assets/index-chunk3.js";import"../../../assets/index-chunk8.js";import"../../../utils/string-utils.js";import"../../../assets/index-chunk2.js";export{N as NjcComboboxItem,e as NscComboboxItem};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -7,6 +7,7 @@ export declare class NgcChip extends NjcChip {
|
|
|
7
7
|
render(): import('lit').TemplateResult<1>;
|
|
8
8
|
get chipMarkup(): import('lit').TemplateResult<1>;
|
|
9
9
|
get readonlyChipMarkup(): import('lit').TemplateResult<1>;
|
|
10
|
+
handleClick(event: Event): void;
|
|
10
11
|
}
|
|
11
12
|
declare global {
|
|
12
13
|
interface HTMLElementTagNameMap {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
import { NJC_COMBOBOX_OPTION } from '../combobox
|
|
2
|
+
import { NJC_COMBOBOX_OPTION } from '../combobox.types';
|
|
3
3
|
import { Ref } from 'lit/directives/ref.js';
|
|
4
4
|
export declare class NjcCombobox extends LitElement {
|
|
5
5
|
options: NJC_COMBOBOX_OPTION[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NjcComboboxItem } from './combobox-item.ts';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class NscComboboxItem extends NjcComboboxItem {
|
|
3
3
|
/**
|
|
4
4
|
* Using light dom for accessibility purposes, enabling the screen reader
|
|
5
5
|
*/
|
|
@@ -10,6 +10,6 @@ export declare class NjcSldsComboboxItem extends NjcComboboxItem {
|
|
|
10
10
|
}
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
-
'nsc-combobox-item':
|
|
13
|
+
'nsc-combobox-item': NscComboboxItem;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { NJC_COMBOBOX_OPTION } from '../components/combobox
|
|
1
|
+
import { NJC_COMBOBOX_OPTION } from '../components/combobox';
|
|
2
2
|
export declare function generateOptions(numberOfOptions: number | undefined): NJC_COMBOBOX_OPTION[];
|
|
3
3
|
export declare function convertArgsForStorybookCodeExample(code: string, componentTag: string, args: Record<string, any>): string;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@ncino/web-components",
|
|
3
3
|
"author": "nCino",
|
|
4
4
|
"packageManager": "pnpm@9.12.2",
|
|
5
|
-
"version": "1.1.0-preview.
|
|
5
|
+
"version": "1.1.0-preview.6",
|
|
6
6
|
"license": "(c) Copyright 2023 nCino, Inc., all rights reserved",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,6 +30,9 @@
|
|
|
30
30
|
"import": "./dist/index.gator.js",
|
|
31
31
|
"types": "./dist/types/index.gator.d.ts"
|
|
32
32
|
},
|
|
33
|
+
"./types": {
|
|
34
|
+
"types": "./dist/types/index.d.ts"
|
|
35
|
+
},
|
|
33
36
|
"./slds": {
|
|
34
37
|
"import": "./dist/index.slds.js",
|
|
35
38
|
"types": "./dist/types/index.slds.d.ts"
|
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": "1.1.0-preview.
|
|
4
|
+
"version": "1.1.0-preview.5",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -508,7 +508,7 @@
|
|
|
508
508
|
},
|
|
509
509
|
{
|
|
510
510
|
"name": "ngc-chip",
|
|
511
|
-
"description": "\n---\n\n\n### **Slots:**\n - _default_ - The content within the button",
|
|
511
|
+
"description": "\n---\n\n\n### **Events:**\n - **click**\n\n### **Slots:**\n - _default_ - The content within the button",
|
|
512
512
|
"doc-url": "",
|
|
513
513
|
"attributes": [
|
|
514
514
|
{
|
|
@@ -518,20 +518,25 @@
|
|
|
518
518
|
{
|
|
519
519
|
"name": "readonly",
|
|
520
520
|
"value": { "type": "boolean", "default": "false" }
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"name": "data-testid",
|
|
524
|
+
"value": { "type": "string", "default": "''" }
|
|
521
525
|
}
|
|
522
526
|
],
|
|
523
527
|
"slots": [
|
|
524
528
|
{ "name": "", "description": "The content within the button" }
|
|
525
529
|
],
|
|
526
|
-
"events": [],
|
|
530
|
+
"events": [{ "name": "click", "type": "Event" }],
|
|
527
531
|
"js": {
|
|
528
532
|
"properties": [
|
|
529
533
|
{ "name": "chipMarkup" },
|
|
530
534
|
{ "name": "readonlyChipMarkup" },
|
|
531
535
|
{ "name": "disabled", "type": "boolean" },
|
|
532
|
-
{ "name": "readonly", "type": "boolean" }
|
|
536
|
+
{ "name": "readonly", "type": "boolean" },
|
|
537
|
+
{ "name": "dataTestid", "type": "string" }
|
|
533
538
|
],
|
|
534
|
-
"events": []
|
|
539
|
+
"events": [{ "name": "click", "type": "Event" }]
|
|
535
540
|
}
|
|
536
541
|
},
|
|
537
542
|
{
|
|
@@ -1545,38 +1550,6 @@
|
|
|
1545
1550
|
"events": []
|
|
1546
1551
|
}
|
|
1547
1552
|
},
|
|
1548
|
-
{
|
|
1549
|
-
"name": "nsc-combobox-item",
|
|
1550
|
-
"description": "\n---\n\n\n### **Events:**\n - **change**",
|
|
1551
|
-
"doc-url": "",
|
|
1552
|
-
"attributes": [
|
|
1553
|
-
{ "name": "label", "value": { "type": "string", "default": "''" } },
|
|
1554
|
-
{
|
|
1555
|
-
"name": "value",
|
|
1556
|
-
"value": { "type": "string | null", "default": "null" }
|
|
1557
|
-
},
|
|
1558
|
-
{
|
|
1559
|
-
"name": "search-value",
|
|
1560
|
-
"value": { "type": "string", "default": "''" }
|
|
1561
|
-
},
|
|
1562
|
-
{
|
|
1563
|
-
"name": "selected-value",
|
|
1564
|
-
"value": { "type": "string | null", "default": "null" }
|
|
1565
|
-
}
|
|
1566
|
-
],
|
|
1567
|
-
"events": [{ "name": "change", "type": "CustomEvent" }],
|
|
1568
|
-
"js": {
|
|
1569
|
-
"properties": [
|
|
1570
|
-
{ "name": "_randomId" },
|
|
1571
|
-
{ "name": "boldedSearchHtml" },
|
|
1572
|
-
{ "name": "label", "type": "string" },
|
|
1573
|
-
{ "name": "value", "type": "string | null" },
|
|
1574
|
-
{ "name": "searchValue", "type": "string" },
|
|
1575
|
-
{ "name": "selectedValue", "type": "string | null" }
|
|
1576
|
-
],
|
|
1577
|
-
"events": [{ "name": "change", "type": "CustomEvent" }]
|
|
1578
|
-
}
|
|
1579
|
-
},
|
|
1580
1553
|
{
|
|
1581
1554
|
"name": "nsc-combobox",
|
|
1582
1555
|
"description": "\n---\n\n\n### **Events:**\n - **change**",
|
|
@@ -1680,6 +1653,38 @@
|
|
|
1680
1653
|
"events": [{ "name": "change", "type": "CustomEvent" }]
|
|
1681
1654
|
}
|
|
1682
1655
|
},
|
|
1656
|
+
{
|
|
1657
|
+
"name": "nsc-combobox-item",
|
|
1658
|
+
"description": "\n---\n\n\n### **Events:**\n - **change**",
|
|
1659
|
+
"doc-url": "",
|
|
1660
|
+
"attributes": [
|
|
1661
|
+
{ "name": "label", "value": { "type": "string", "default": "''" } },
|
|
1662
|
+
{
|
|
1663
|
+
"name": "value",
|
|
1664
|
+
"value": { "type": "string | null", "default": "null" }
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
"name": "search-value",
|
|
1668
|
+
"value": { "type": "string", "default": "''" }
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
"name": "selected-value",
|
|
1672
|
+
"value": { "type": "string | null", "default": "null" }
|
|
1673
|
+
}
|
|
1674
|
+
],
|
|
1675
|
+
"events": [{ "name": "change", "type": "CustomEvent" }],
|
|
1676
|
+
"js": {
|
|
1677
|
+
"properties": [
|
|
1678
|
+
{ "name": "_randomId" },
|
|
1679
|
+
{ "name": "boldedSearchHtml" },
|
|
1680
|
+
{ "name": "label", "type": "string" },
|
|
1681
|
+
{ "name": "value", "type": "string | null" },
|
|
1682
|
+
{ "name": "searchValue", "type": "string" },
|
|
1683
|
+
{ "name": "selectedValue", "type": "string | null" }
|
|
1684
|
+
],
|
|
1685
|
+
"events": [{ "name": "change", "type": "CustomEvent" }]
|
|
1686
|
+
}
|
|
1687
|
+
},
|
|
1683
1688
|
{
|
|
1684
1689
|
"name": "nsc-input-rich-text",
|
|
1685
1690
|
"description": "\n---\n\n\n### **Events:**\n - **change**",
|