@ncino/web-components 1.1.0-preview.4 → 1.1.0-preview.5

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{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 NjcSldsComboboxItem};
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};
@@ -1,5 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
- import { NJC_COMBOBOX_OPTION } from '../combobox-item/combobox-item.ts';
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,8 +1,4 @@
1
1
  import { LitElement } from 'lit';
2
- export type NJC_COMBOBOX_OPTION<T = string> = {
3
- label: string;
4
- value: T;
5
- };
6
2
  export declare class NjcComboboxItem extends LitElement {
7
3
  label: string;
8
4
  value: string | null;
@@ -1,5 +1,5 @@
1
1
  import { NjcComboboxItem } from './combobox-item.ts';
2
- export declare class NjcSldsComboboxItem extends NjcComboboxItem {
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': NjcSldsComboboxItem;
13
+ 'nsc-combobox-item': NscComboboxItem;
14
14
  }
15
15
  }
@@ -0,0 +1,4 @@
1
+ export type NJC_COMBOBOX_OPTION<T = string> = {
2
+ label: string;
3
+ value: T;
4
+ };
@@ -1,2 +1,3 @@
1
1
  export * as NscCombobox from './base';
2
2
  export * as NscComboboxItem from './combobox-item';
3
+ export * from './combobox.types';
@@ -1,3 +1,3 @@
1
- import { NJC_COMBOBOX_OPTION } from '../components/combobox/combobox-item';
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.4",
5
+ "version": "1.1.0-preview.5",
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.3",
4
+ "version": "1.1.0-preview.4",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1545,38 +1545,6 @@
1545
1545
  "events": []
1546
1546
  }
1547
1547
  },
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
1548
  {
1581
1549
  "name": "nsc-combobox",
1582
1550
  "description": "\n---\n\n\n### **Events:**\n - **change**",
@@ -1680,6 +1648,38 @@
1680
1648
  "events": [{ "name": "change", "type": "CustomEvent" }]
1681
1649
  }
1682
1650
  },
1651
+ {
1652
+ "name": "nsc-combobox-item",
1653
+ "description": "\n---\n\n\n### **Events:**\n - **change**",
1654
+ "doc-url": "",
1655
+ "attributes": [
1656
+ { "name": "label", "value": { "type": "string", "default": "''" } },
1657
+ {
1658
+ "name": "value",
1659
+ "value": { "type": "string | null", "default": "null" }
1660
+ },
1661
+ {
1662
+ "name": "search-value",
1663
+ "value": { "type": "string", "default": "''" }
1664
+ },
1665
+ {
1666
+ "name": "selected-value",
1667
+ "value": { "type": "string | null", "default": "null" }
1668
+ }
1669
+ ],
1670
+ "events": [{ "name": "change", "type": "CustomEvent" }],
1671
+ "js": {
1672
+ "properties": [
1673
+ { "name": "_randomId" },
1674
+ { "name": "boldedSearchHtml" },
1675
+ { "name": "label", "type": "string" },
1676
+ { "name": "value", "type": "string | null" },
1677
+ { "name": "searchValue", "type": "string" },
1678
+ { "name": "selectedValue", "type": "string | null" }
1679
+ ],
1680
+ "events": [{ "name": "change", "type": "CustomEvent" }]
1681
+ }
1682
+ },
1683
1683
  {
1684
1684
  "name": "nsc-input-rich-text",
1685
1685
  "description": "\n---\n\n\n### **Events:**\n - **change**",