@ncino/web-components 6.0.0 → 6.1.0-preview.2

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.
@@ -13,7 +13,13 @@ export declare class NgcBoolean extends NgcInputText {
13
13
  firstUpdated(): void;
14
14
  render(): import('lit').TemplateResult<1>;
15
15
  get elementId(): string;
16
- get booleanClasses(): string;
16
+ get booleanClasses(): {
17
+ 'gator-boolean': boolean;
18
+ 'gator-boolean_wrapped': boolean;
19
+ 'gator-boolean_error': boolean;
20
+ 'gator-boolean_disabled': boolean;
21
+ 'gator-boolean_skeleton': boolean;
22
+ };
17
23
  get booleanOptions(): import('lit').TemplateResult<1> | null;
18
24
  get isWrapped(): boolean;
19
25
  handleChange(event: Event): void;
@@ -74,6 +74,11 @@ export declare class InputBase extends TestableLitElement {
74
74
  * @type {string}
75
75
  */
76
76
  endIcon: string;
77
+ /**
78
+ * @property {string} minLength - The minimum number of characters allowed in the input.
79
+ * @type {string}
80
+ */
81
+ minLength: number | undefined;
77
82
  /**
78
83
  * @property {string} maxLength - The maximum number of characters allowed in the input.
79
84
  * @type {string}
@@ -84,4 +89,9 @@ export declare class InputBase extends TestableLitElement {
84
89
  * @type {boolean}
85
90
  */
86
91
  iconAsLabel: boolean;
92
+ /**
93
+ * @property {boolean} skeleton - Whether the component is in skeleton state.
94
+ * @type {boolean}
95
+ */
96
+ skeleton: boolean;
87
97
  }
@@ -1,6 +1,5 @@
1
- import { LitElement } from 'lit';
2
- declare const NgcInputLabel_base: typeof LitElement;
3
- export declare class NgcInputLabel extends NgcInputLabel_base {
1
+ import { NgcComponent } from '../../../../utils/components/ngc-component.ts';
2
+ export declare class NgcInputLabel extends NgcComponent {
4
3
  static shadowRootOptions: {
5
4
  mode: ShadowRootMode;
6
5
  delegatesFocus?: boolean;
@@ -27,4 +26,3 @@ declare global {
27
26
  'ngc-input-label': NgcInputLabel;
28
27
  }
29
28
  }
30
- export {};
@@ -35,6 +35,7 @@ export declare class NgcInputText extends NgcInputBase {
35
35
  protected _value: unknown;
36
36
  protected _inputMode: INPUT_MODE_TYPE;
37
37
  protected _placeholder: string | undefined;
38
+ protected _minLength: number | undefined;
38
39
  protected _maxLength: number | undefined;
39
40
  protected _errorText: string | undefined;
40
41
  protected _internalValidationError: string | undefined;
@@ -25,6 +25,7 @@ export declare class NgcRadio extends NgcInputText {
25
25
  connectedCallback(): void;
26
26
  render(): import('lit').TemplateResult<1>;
27
27
  get bottomText(): import('lit').TemplateResult<1> | typeof nothing;
28
+ get skeletonMarkup(): import('lit').TemplateResult<1>;
28
29
  get elementId(): string;
29
30
  get tabindex(): number;
30
31
  handleChange(): void;
@@ -12,6 +12,11 @@ export declare class NgcComponent extends NgcComponent_base {
12
12
  * to the host element.
13
13
  */
14
14
  delegatesARIA: boolean;
15
+ /**
16
+ * @property {Boolean} skeleton - Whether the component should be rendered in a skeleton state.
17
+ * @type {boolean}
18
+ */
19
+ skeleton: boolean;
15
20
  static styles: import('lit').CSSResult[];
16
21
  }
17
22
  export {};
@@ -95,6 +95,16 @@ export declare const INPUT_BASE_ARGS: {
95
95
  };
96
96
  };
97
97
  };
98
+ minLength: {
99
+ description: string;
100
+ control: string;
101
+ table: {};
102
+ };
103
+ maxLength: {
104
+ description: string;
105
+ control: string;
106
+ table: {};
107
+ };
98
108
  };
99
109
  export declare const INPUT_TEXT_ARGS: {
100
110
  pattern: {
@@ -132,6 +142,19 @@ export declare const INPUT_A11Y_ARGS: {
132
142
  description: string;
133
143
  };
134
144
  };
145
+ export declare const SKELETON_ARG: {
146
+ skeleton: {
147
+ description: string;
148
+ control: {
149
+ type: string;
150
+ };
151
+ table: {
152
+ defaultValue: {
153
+ summary: string;
154
+ };
155
+ };
156
+ };
157
+ };
135
158
  export declare const START_ICON_ARG: {
136
159
  startIcon: {
137
160
  name: string;
@@ -1 +1 @@
1
- import f from"../../packages/web-components/src/tokens/primitive.tokens.scss.js";import l from"../../packages/web-components/src/tokens/semantic.tokens.scss.js";import n from"../../packages/web-components/src/styles/_gator-utils.scss.js";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"../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{TestableLitElement as u}from"./testable-lit-element/testable-lit-element.js";import{AttributeDeletionMixin as d}from"../mixins/attribute-deletion.js";import{property as v}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{unsafeCSS as e}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var A=Object.defineProperty,y=(s,m,p,b)=>{for(var t=void 0,r=s.length-1,a;r>=0;r--)(a=s[r])&&(t=a(m,p,t)||t);return t&&A(m,p,t),t};const o=class o extends d(u){constructor(){super(...arguments),this.delegatesARIA=!0}};o.styles=[e(f),e(l),e(n)];let i=o;y([v({type:Boolean})],i.prototype,"delegatesARIA");export{i as NgcComponent};
1
+ import n from"../../packages/web-components/src/tokens/primitive.tokens.scss.js";import u from"../../packages/web-components/src/tokens/semantic.tokens.scss.js";import d from"../../packages/web-components/src/styles/_gator-utils.scss.js";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"../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{TestableLitElement as v}from"./testable-lit-element/testable-lit-element.js";import{AttributeDeletionMixin as y}from"../mixins/attribute-deletion.js";import{property as l}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{unsafeCSS as o}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var A=Object.defineProperty,f=(s,p,m,h)=>{for(var t=void 0,r=s.length-1,a;r>=0;r--)(a=s[r])&&(t=a(p,m,t)||t);return t&&A(p,m,t),t};const i=class i extends y(v){constructor(){super(...arguments),this.delegatesARIA=!0,this.skeleton=!1}};i.styles=[o(n),o(u),o(d)];let e=i;f([l({type:Boolean})],e.prototype,"delegatesARIA");f([l({type:Boolean})],e.prototype,"skeleton");export{e as NgcComponent};
@@ -1 +1 @@
1
- const n={errorText:{name:"error-text",description:"Custom error message to be displayed. This value overrides any native or internal error messaging. If this is set, the component will be styled in an error state.",table:{category:"Base Input",defaultValue:{summary:""}}},helpText:{name:"help-text",description:"Custom help text to be displayed inline below the component.",table:{category:"Base Input",defaultValue:{summary:""}}},placeholder:{description:"Placeholder text to be displayed in the input.",table:{category:"Base Input",defaultValue:{summary:""}}},value:{description:"Value of the component.",table:{category:"Base Input",defaultValue:{summary:"undefined"}}},label:{description:"Visible label for the component. This is the gold standard, best practice way to label an input for built in accessibility support. If this is not set, you must set the ariaLabelledByElements property for correct programmatic association between your custom label and the input element.",table:{category:"Base Input",defaultValue:{summary:""}}},ariaLabelledByElements:{name:"aria-labelled-by-elements",description:"Used to programmatically associate a custom label to the input. This should only be used when you are using a custom label outside of the ngc input component due to limitations of the shadow dom. Accepts a list of elements. For more information on ARIA element reflection, see [here](https://wicg.github.io/aom/aria-reflection-explainer.html).",type:{summary:"Element[]"},table:{category:"Base Input",defaultValue:{summary:""}}},required:{description:"Whether the component is required.",table:{category:"Base Input",defaultValue:{summary:"false"}}},disabled:{description:"Whether the component is disabled.",table:{category:"Base Input",defaultValue:{summary:"false"}}},readonly:{description:"Whether the component is readonly.",table:{category:"Base Input",defaultValue:{summary:"false"}}},id:{description:"Unique ID for the component. Required for accessibility.",table:{category:"Base Input",defaultValue:{summary:""}}}},i={pattern:{description:"The pattern attribute to be passed to the input. See more information [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern).",control:"text",table:{defaultValue:{summary:"undefined"}}}},r={min:{description:"The min attribute defines the minimum value that is acceptable and valid for the input containing the attribute. If the value of the element is less than this, the element fails validation. This value must be less than or equal to the value of the max attribute. See more information [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/min).",control:"string"},max:{description:"The max attribute defines the maximum value that is acceptable and valid for the input containing the attribute. If the value of the element is greater than this, the element fails validation. This value must be greater than or equal to the value of the min attribute. See more information [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/max).",control:"string"},step:{description:"The step attribute to be passed to the input for number inputs. See more information [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step).",control:"number",table:{defaultValue:{summary:"1"}}}},s={ariaDescription:{name:"aria-description",description:"The aria-description attribute for the component."}},l={startIcon:{name:"start-icon",description:"Icon to be displayed at the start of the component. Should be a valid icon name from the [icon library](?path=/story/components-icon--gator-icon-list).",control:{type:"text"},table:{category:"Optional Icon(s)"}}},u={endIcon:{name:"end-icon",description:"Icon to be displayed at the end of the component. Should be a valid icon name from the [icon library](?path=/story/components-icon--gator-icon-list).",control:{type:"text"},table:{category:"Optional Icon(s)"}}},c=(t,o)=>{let e,a={};for(e in t)t.hasOwnProperty(e)&&!o.includes(e)&&(a[e]=t[e]);return a},m=(t,o)=>{let e,a={};for(e in t)t.hasOwnProperty(e)&&o.includes(e)&&(a[e]=t[e]);return a};export{u as END_ICON_ARG,s as INPUT_A11Y_ARGS,n as INPUT_BASE_ARGS,r as INPUT_NUMERIC_ARGS,i as INPUT_TEXT_ARGS,l as START_ICON_ARG,c as argsExclude,m as argsOnly};
1
+ const n={errorText:{name:"error-text",description:"Custom error message to be displayed. This value overrides any native or internal error messaging. If this is set, the component will be styled in an error state.",table:{category:"Base Input",defaultValue:{summary:""}}},helpText:{name:"help-text",description:"Custom help text to be displayed inline below the component.",table:{category:"Base Input",defaultValue:{summary:""}}},placeholder:{description:"Placeholder text to be displayed in the input.",table:{category:"Base Input",defaultValue:{summary:""}}},value:{description:"Value of the component.",table:{category:"Base Input",defaultValue:{summary:"undefined"}}},label:{description:"Visible label for the component. This is the gold standard, best practice way to label an input for built in accessibility support. If this is not set, you must set the ariaLabelledByElements property for correct programmatic association between your custom label and the input element.",table:{category:"Base Input",defaultValue:{summary:""}}},ariaLabelledByElements:{name:"aria-labelled-by-elements",description:"Used to programmatically associate a custom label to the input. This should only be used when you are using a custom label outside of the ngc input component due to limitations of the shadow dom. Accepts a list of elements. For more information on ARIA element reflection, see [here](https://wicg.github.io/aom/aria-reflection-explainer.html).",type:{summary:"Element[]"},table:{category:"Base Input",defaultValue:{summary:""}}},required:{description:"Whether the component is required.",table:{category:"Base Input",defaultValue:{summary:"false"}}},disabled:{description:"Whether the component is disabled.",table:{category:"Base Input",defaultValue:{summary:"false"}}},readonly:{description:"Whether the component is readonly.",table:{category:"Base Input",defaultValue:{summary:"false"}}},id:{description:"Unique ID for the component. Required for accessibility.",table:{category:"Base Input",defaultValue:{summary:""}}},minLength:{description:"The minimum length of the input value. See more information [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/minlength).",control:"number",table:{}},maxLength:{description:"The maximum length of the input value. See more information [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/maxlength).",control:"number",table:{}}},i={pattern:{description:"The pattern attribute to be passed to the input. See more information [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern).",control:"text",table:{defaultValue:{summary:"undefined"}}}},r={min:{description:"The min attribute defines the minimum value that is acceptable and valid for the input containing the attribute. If the value of the element is less than this, the element fails validation. This value must be less than or equal to the value of the max attribute. See more information [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/min).",control:"string"},max:{description:"The max attribute defines the maximum value that is acceptable and valid for the input containing the attribute. If the value of the element is greater than this, the element fails validation. This value must be greater than or equal to the value of the min attribute. See more information [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/max).",control:"string"},step:{description:"The step attribute to be passed to the input for number inputs. See more information [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step).",control:"number",table:{defaultValue:{summary:"1"}}}},l={ariaDescription:{name:"aria-description",description:"The aria-description attribute for the component."}},s={skeleton:{description:"Whether the component should be rendered in a skeleton/loading state.",control:{type:"boolean"},table:{defaultValue:{summary:"false"}}}},u={startIcon:{name:"start-icon",description:"Icon to be displayed at the start of the component. Should be a valid icon name from the [icon library](?path=/story/components-icon--gator-icon-list).",control:{type:"text"},table:{category:"Optional Icon(s)"}}},m={endIcon:{name:"end-icon",description:"Icon to be displayed at the end of the component. Should be a valid icon name from the [icon library](?path=/story/components-icon--gator-icon-list).",control:{type:"text"},table:{category:"Optional Icon(s)"}}},c=(t,a)=>{let e,o={};for(e in t)t.hasOwnProperty(e)&&!a.includes(e)&&(o[e]=t[e]);return o},d=(t,a)=>{let e,o={};for(e in t)t.hasOwnProperty(e)&&a.includes(e)&&(o[e]=t[e]);return o};export{m as END_ICON_ARG,l as INPUT_A11Y_ARGS,n as INPUT_BASE_ARGS,r as INPUT_NUMERIC_ARGS,i as INPUT_TEXT_ARGS,s as SKELETON_ARG,u as START_ICON_ARG,c as argsExclude,d as argsOnly};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ncino/web-components",
3
3
  "author": "nCino",
4
- "version": "6.0.0",
4
+ "version": "6.1.0-preview.2",
5
5
  "license": "(c) Copyright 2023 nCino, Inc., all rights reserved",
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org/"