@ncino/web-components 6.1.0-preview.1 → 6.1.0-preview.11
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/components/avatar/gator/avatar.gator.js +5 -5
- package/dist/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.js +3 -3
- package/dist/components/input/base/input-base.js +1 -1
- package/dist/components/input/gator/input-date/input-date.gator.js +8 -8
- package/dist/components/input/gator/input-masked/input-masked.gator.js +1 -1
- package/dist/components/input/gator/input-text/input-text.gator.js +8 -7
- package/dist/components/input/gator/input-textarea/input-textarea.gator.js +13 -5
- package/dist/components/panel/gator/panel.storybook-test.js +1 -1
- package/dist/components/skip-link/gator/base/skip-link.gator.js +22 -0
- package/dist/components/skip-link/gator/list-item/skip-link-list-item.gator.js +7 -0
- package/dist/components/skip-link/index.js +1 -0
- package/dist/components/table/gator/table-bulk-controls/table-bulk-controls.gator.js +2 -2
- package/dist/components/table/gator/table.gator.js +29 -38
- package/dist/components/text-link/gator/text-link.gator.js +20 -10
- package/dist/index.gator.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.utils.js +1 -0
- package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/conversions.js +1 -0
- package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/index.js +1 -0
- package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/route.js +1 -0
- package/dist/node_modules/.pnpm/color-name@2.0.0/node_modules/color-name/index.js +1 -0
- package/dist/node_modules/.pnpm/color-string@2.0.1/node_modules/color-string/index.js +1 -0
- package/dist/node_modules/.pnpm/color@5.0.0/node_modules/color/index.js +1 -0
- package/dist/node_modules/.pnpm/{magic-string@0.30.17 → magic-string@0.30.18}/node_modules/magic-string/dist/magic-string.es.js +2 -2
- package/dist/packages/web-components/src/components/avatar/gator/avatar.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/checkbox/checkbox.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/checkbox-group/checkbox-group.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/input/gator/input-textarea/input-textarea.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/page-header/gator/page-header.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/skip-link/gator/base/skip-link.gator.scss.js +1 -0
- package/dist/packages/web-components/src/components/skip-link/gator/list-item/skip-link-list-item.gator.scss.js +1 -0
- package/dist/packages/web-components/src/styles/_gator-utils.scss.js +1 -1
- package/dist/types/components/avatar/gator/avatar.gator.d.ts +3 -1
- package/dist/types/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.d.ts +6 -0
- package/dist/types/components/input/base/input-base.d.ts +5 -0
- package/dist/types/components/input/gator/input-date/input-date.gator.d.ts +11 -1
- package/dist/types/components/input/gator/input-masked/input-masked.gator.d.ts +7 -1
- package/dist/types/components/input/gator/input-text/input-text.gator.d.ts +1 -0
- package/dist/types/components/input/gator/input-textarea/input-textarea.gator.d.ts +21 -0
- package/dist/types/components/skip-link/gator/base/skip-link.gator.d.ts +36 -0
- package/dist/types/components/skip-link/gator/base/skip-link.gator.test.d.ts +0 -0
- package/dist/types/components/skip-link/gator/list-item/skip-link-list-item.gator.d.ts +13 -0
- package/dist/types/components/skip-link/gator/list-item/skip-link-list-item.gator.test.d.ts +0 -0
- package/dist/types/components/skip-link/index.d.ts +2 -0
- package/dist/types/components/table/gator/table-bulk-controls/table-bulk-controls.gator.d.ts +6 -1
- package/dist/types/components/table/gator/table.gator.d.ts +3 -6
- package/dist/types/components/text-link/gator/text-link.gator.d.ts +11 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.gator.d.ts +1 -0
- package/dist/types/index.utils.d.ts +1 -0
- package/dist/types/utils/brand-color-utils.d.ts +2 -0
- package/dist/types/utils/storybook-args.d.ts +10 -0
- package/dist/utils/brand-color-utils.js +1 -0
- package/dist/utils/storybook-args.js +1 -1
- package/dist/utils/vitest-a11y-utils.js +1 -1
- package/package.json +14 -6
- package/web-types.json +260 -11
- package/dist/node_modules/.pnpm/chai@5.2.1/node_modules/chai/chai.js +0 -218
- /package/dist/node_modules/.pnpm/{@jridgewell_sourcemap-codec@1.5.4 → @jridgewell_sourcemap-codec@1.5.5}/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.2.1_typescript@5.8.3__playwright@1.54.1__6e6aa2c9b4102560da2d8ed1e4176ee9 → @vitest_browser@3.2.4_msw@2.7.3_@types_node@24.3.0_typescript@5.8.3__playwright@1.55.0__558558d730596f7c5e09b21ff26a3e74}/node_modules/@vitest/browser/context.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@9.1.1_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.2.1_typescript@5.8_ee1bb5025e4d34f67b4152c2110a5ec2 → storybook@9.1.2_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.0_typescript@5.8_573854de366b5ba3e2ab3da4bce0caa8}/node_modules/storybook/dist/client-logger/index.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@9.1.1_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.2.1_typescript@5.8_ee1bb5025e4d34f67b4152c2110a5ec2 → storybook@9.1.2_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.0_typescript@5.8_573854de366b5ba3e2ab3da4bce0caa8}/node_modules/storybook/dist/core-events/index.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@9.1.1_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.2.1_typescript@5.8_ee1bb5025e4d34f67b4152c2110a5ec2 → storybook@9.1.2_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.0_typescript@5.8_573854de366b5ba3e2ab3da4bce0caa8}/node_modules/storybook/dist/instrumenter/index.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@9.1.1_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.2.1_typescript@5.8_ee1bb5025e4d34f67b4152c2110a5ec2 → storybook@9.1.2_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.0_typescript@5.8_573854de366b5ba3e2ab3da4bce0caa8}/node_modules/storybook/dist/test/index.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.2.1_@vitest_browser@3.2.4_@vitest_ui@3._7f1cfb627fdb82ddd833112aba9e7b0b → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.0_@vitest_browser@3.2.4_@vitest_ui@3._f0774390203a57f267156838cb4cb2c5}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.2.1_@vitest_browser@3.2.4_@vitest_ui@3._7f1cfb627fdb82ddd833112aba9e7b0b → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.0_@vitest_browser@3.2.4_@vitest_ui@3._f0774390203a57f267156838cb4cb2c5}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.2.1_@vitest_browser@3.2.4_@vitest_ui@3._7f1cfb627fdb82ddd833112aba9e7b0b → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.0_@vitest_browser@3.2.4_@vitest_ui@3._f0774390203a57f267156838cb4cb2c5}/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.2.1_@vitest_browser@3.2.4_@vitest_ui@3._7f1cfb627fdb82ddd833112aba9e7b0b → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.0_@vitest_browser@3.2.4_@vitest_ui@3._f0774390203a57f267156838cb4cb2c5}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { NgcComponent } from '../../../../utils/components/ngc-component';
|
|
2
|
+
import { Ref } from 'lit/directives/ref.js';
|
|
3
|
+
import { Placement } from '@floating-ui/dom';
|
|
4
|
+
export declare class NgcSkipLink extends NgcComponent {
|
|
5
|
+
static shadowRootOptions: {
|
|
6
|
+
delegatesFocus: boolean;
|
|
7
|
+
mode: ShadowRootMode;
|
|
8
|
+
serializable?: boolean;
|
|
9
|
+
slotAssignment?: SlotAssignmentMode;
|
|
10
|
+
};
|
|
11
|
+
variant: 'list' | 'button';
|
|
12
|
+
target: string | HTMLElement;
|
|
13
|
+
text: string;
|
|
14
|
+
placement: Placement;
|
|
15
|
+
xOffset: number;
|
|
16
|
+
yOffset: number;
|
|
17
|
+
referenceElement: string | HTMLElement;
|
|
18
|
+
listTitle: string | undefined;
|
|
19
|
+
static styles: import('lit').CSSResult[];
|
|
20
|
+
_skipLinkRef: Ref<HTMLElement>;
|
|
21
|
+
_cleanup: (() => void) | undefined;
|
|
22
|
+
render(): import('lit').TemplateResult<1>;
|
|
23
|
+
get skipLinkButtonVariantMarkup(): import('lit').TemplateResult<1>;
|
|
24
|
+
get skipLinkListVariantMarkup(): import('lit').TemplateResult<1>;
|
|
25
|
+
get _referenceElement(): HTMLElement | null;
|
|
26
|
+
assignPosition(): void;
|
|
27
|
+
showSkipLink(): void;
|
|
28
|
+
hideSkipLink(): void;
|
|
29
|
+
handleSkipLinkButtonKeyup(event: KeyboardEvent): void;
|
|
30
|
+
handleSkipLinkButtonClick(): void;
|
|
31
|
+
}
|
|
32
|
+
declare global {
|
|
33
|
+
interface HTMLElementTagNameMap {
|
|
34
|
+
'ngc-skip-link': NgcSkipLink;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NgcComponent } from '../../../../utils/components/ngc-component';
|
|
2
|
+
export declare class NgcSkipLinkListItem extends NgcComponent {
|
|
3
|
+
target: string | HTMLElement;
|
|
4
|
+
text: string;
|
|
5
|
+
static styles: import('lit').CSSResult[];
|
|
6
|
+
render(): import('lit').TemplateResult<1>;
|
|
7
|
+
handleClick(): void;
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
interface HTMLElementTagNameMap {
|
|
11
|
+
'ngc-skip-link-list-item': NgcSkipLinkListItem;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
File without changes
|
package/dist/types/components/table/gator/table-bulk-controls/table-bulk-controls.gator.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { nothing } from 'lit';
|
|
2
2
|
import { NgcComponent } from '../../../../utils/components/ngc-component.ts';
|
|
3
3
|
export declare class NgcTableBulkControls extends NgcComponent {
|
|
4
|
+
static shadowRootOptions: {
|
|
5
|
+
delegatesFocus: boolean;
|
|
6
|
+
mode: ShadowRootMode;
|
|
7
|
+
serializable?: boolean;
|
|
8
|
+
slotAssignment?: SlotAssignmentMode;
|
|
9
|
+
};
|
|
4
10
|
/**
|
|
5
11
|
* Whether the bulk controls should be visible
|
|
6
12
|
*/
|
|
@@ -22,7 +28,6 @@ export declare class NgcTableBulkControls extends NgcComponent {
|
|
|
22
28
|
render(): import('lit').TemplateResult<1>;
|
|
23
29
|
get bulkControlsMarkup(): import('lit').TemplateResult<1> | typeof nothing;
|
|
24
30
|
get selectedRowsMessage(): string;
|
|
25
|
-
focus(): void;
|
|
26
31
|
}
|
|
27
32
|
declare global {
|
|
28
33
|
interface HTMLElementTagNameMap {
|
|
@@ -6,8 +6,6 @@ export declare class NgcTable extends NjcTable {
|
|
|
6
6
|
static styles: import('lit').CSSResult[];
|
|
7
7
|
selectedRows: RowData[];
|
|
8
8
|
_currentPage: number;
|
|
9
|
-
justSelectedRow: RowData | null;
|
|
10
|
-
showJumpLink: boolean;
|
|
11
9
|
protected updated(_changedProperties: PropertyValues): void;
|
|
12
10
|
render(): import('lit').TemplateResult<1> | null;
|
|
13
11
|
get tableElevatedClass(): "" | "gator-table-elevated";
|
|
@@ -15,9 +13,6 @@ export declare class NgcTable extends NjcTable {
|
|
|
15
13
|
renderWrapper(header: unknown, body: unknown): import('lit').TemplateResult<1>;
|
|
16
14
|
handlePageChanged(event: CustomEvent): void;
|
|
17
15
|
handleItemsPerPageChanged(event: CustomEvent): void;
|
|
18
|
-
private handleJumpLinkClick;
|
|
19
|
-
private handleJumpLinkBlur;
|
|
20
|
-
private handleRowSelectCheckboxBlur;
|
|
21
16
|
private getTableHeader;
|
|
22
17
|
handleSelectAll(event: CustomEvent): void;
|
|
23
18
|
private getTableHeaderColumn;
|
|
@@ -28,8 +23,10 @@ export declare class NgcTable extends NjcTable {
|
|
|
28
23
|
private formatTotal;
|
|
29
24
|
private getTableBodyRow;
|
|
30
25
|
private getTableHeaderRow;
|
|
31
|
-
handleKeyDown: (e: KeyboardEvent) => void;
|
|
32
26
|
handleTableBodyRowSelected(event: CustomEvent, rowData: RowData): void;
|
|
27
|
+
addSkipLinkToBulkActions(referenceElement: Node): void;
|
|
28
|
+
getSkipToBulkActionsMarkup(referenceElement: Node): HTMLElement;
|
|
29
|
+
removeSkipLinkToBulkActions(referenceElement: Node): void;
|
|
33
30
|
get displayedRowData(): RowData[];
|
|
34
31
|
private getTableBodyCell;
|
|
35
32
|
private getValueForCell;
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import { NjcTextLink } from '../text-link.ts';
|
|
2
2
|
export declare class NgcTextLink extends NjcTextLink {
|
|
3
|
+
static shadowRootOptions: {
|
|
4
|
+
delegatesFocus: boolean;
|
|
5
|
+
mode: ShadowRootMode;
|
|
6
|
+
serializable?: boolean;
|
|
7
|
+
slotAssignment?: SlotAssignmentMode;
|
|
8
|
+
};
|
|
3
9
|
static styles: import('lit').CSSResult[];
|
|
4
10
|
render(): import('lit').TemplateResult<1>;
|
|
11
|
+
get anchorMarkup(): import('lit').TemplateResult<1>;
|
|
12
|
+
get customLinkMarkup(): import('lit').TemplateResult<1>;
|
|
13
|
+
get textLinkInnerMarkup(): import('lit').TemplateResult<1>;
|
|
5
14
|
get variantClass(): string | null;
|
|
15
|
+
handleKeyup(event: KeyboardEvent): void;
|
|
16
|
+
handleClick(event: MouseEvent): void;
|
|
6
17
|
}
|
|
7
18
|
declare global {
|
|
8
19
|
interface HTMLElementTagNameMap {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export { NgcRadioGroup } from './components/radio-group';
|
|
|
33
33
|
export { NgcSelectionBox } from './components/selection-box';
|
|
34
34
|
export { NgcSelectionBoxGroup } from './components/selection-box-group';
|
|
35
35
|
export { NgcSkeletonLoader } from './components/skeleton-loader';
|
|
36
|
+
export { NgcSkipLink } from './components/skip-link';
|
|
36
37
|
export { NgcSwitch } from './components/switch';
|
|
37
38
|
export * from './components/tabs/index.gator.ts';
|
|
38
39
|
export { NgcTextDetail } from './components/text-detail';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { setBrandColor, getBrandColor } from './utils/brand-color-utils.ts';
|
|
@@ -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: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from"../node_modules/.pnpm/color@5.0.0/node_modules/color/index.js";function d(t){try{const[r,e]=o(t).hsl().array();document.documentElement.style.setProperty("--color-brand-base",t),document.documentElement.style.setProperty("--color-brand-hue",Math.round(r).toString()),document.documentElement.style.setProperty("--color-brand-saturation",`${Math.round(e)}%`)}catch(r){console.error("Invalid brand color provided:",t,r)}}function a(){return getComputedStyle(document.documentElement).getPropertyValue("--color-brand-base").trim()||"#103656"}export{a as getBrandColor,d as setBrandColor};
|
|
@@ -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"}}}},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)"}}},
|
|
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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{page as s}from"../node_modules/.pnpm/@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.
|
|
1
|
+
import{page as s}from"../node_modules/.pnpm/@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.3.0_typescript@5.8.3__playwright@1.55.0__558558d730596f7c5e09b21ff26a3e74/node_modules/@vitest/browser/context.js";import n from"../_virtual/axe.js";import{a as o}from"../node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.0_@vitest_browser@3.2.4_@vitest_ui@3._f0774390203a57f267156838cb4cb2c5/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js";const d="Supercalifragilisticexpialidocious".repeat(10);async function a(t){return(await n.run(t)).violations}async function p(t){const e=await a(t);o(e,`Expected no axe core violations, but got ${e.length}: ${JSON.stringify(e)}`).toHaveLength(0)}function x(){return s.viewport(320,256)}function h(t){let e;if(t.scrollWidth!==0?e=t:t.shadowRoot?e=t.shadowRoot.firstElementChild:e=t.firstElementChild,e){const r=e.scrollWidth>e.clientWidth;return o(r).toBe(!1)}return o(!0).toBe(!1)}function g(t,e,r){let i=t.querySelector(":focus-visible");if(i||(i=t.shadowRoot?.querySelector(":focus-visible")),i){const l=getComputedStyle(i).getPropertyValue(e);return o(l).toContain(r)}return o(!0).toBe(!1)}export{g as expectComponentFocusStyle,h as expectComponentNotToHaveHorizontalScrollbar,p as expectNoAxeViolations,x as resizeWindowForReflowTest,a as runAxeAndGetViolations,d as superLongStringForReflowTest};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ncino/web-components",
|
|
3
3
|
"author": "nCino",
|
|
4
|
-
"version": "6.1.0-preview.
|
|
4
|
+
"version": "6.1.0-preview.11",
|
|
5
5
|
"license": "(c) Copyright 2023 nCino, Inc., all rights reserved",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"exports": {
|
|
20
20
|
"./gator": {
|
|
21
21
|
"import": "./dist/index.gator.js",
|
|
22
|
-
"types": "./dist/types/index.gator.d.ts"
|
|
22
|
+
"types": "./dist/types/index.gator.d.ts",
|
|
23
|
+
"require": "./dist/index.gator.js"
|
|
23
24
|
},
|
|
24
25
|
"./types": {
|
|
25
26
|
"types": "./dist/types/index.d.ts"
|
|
@@ -34,7 +35,13 @@
|
|
|
34
35
|
},
|
|
35
36
|
"./services": {
|
|
36
37
|
"import": "./dist/index.services.js",
|
|
37
|
-
"types": "./dist/types/index.services.d.ts"
|
|
38
|
+
"types": "./dist/types/index.services.d.ts",
|
|
39
|
+
"require": "./dist/index.services.js"
|
|
40
|
+
},
|
|
41
|
+
"./utils": {
|
|
42
|
+
"import": "./dist/index.utils.js",
|
|
43
|
+
"types": "./dist/types/index.utils.d.ts",
|
|
44
|
+
"require": "./dist/index.utils.js"
|
|
38
45
|
},
|
|
39
46
|
"./gator-global-styles.css": {
|
|
40
47
|
"import": "./dist/styles/gator/gator-global-styles.css"
|
|
@@ -72,6 +79,7 @@
|
|
|
72
79
|
"@floating-ui/dom": "^1.7.2",
|
|
73
80
|
"@lit/localize": "^0.12.2",
|
|
74
81
|
"ckeditor5": "^45.2.1",
|
|
82
|
+
"color": "^5.0.0",
|
|
75
83
|
"libphonenumber-js": "^1.12.9",
|
|
76
84
|
"lit": "^3.3.0"
|
|
77
85
|
},
|
|
@@ -88,7 +96,7 @@
|
|
|
88
96
|
"@storybook/addon-links": "^9.1.1",
|
|
89
97
|
"@storybook/web-components-vite": "^9.1.1",
|
|
90
98
|
"@types/react": "^19.1.8",
|
|
91
|
-
"@typescript-eslint/parser": "^8.
|
|
99
|
+
"@typescript-eslint/parser": "^8.40.0",
|
|
92
100
|
"@vitest/browser": "^3.2.4",
|
|
93
101
|
"@vitest/coverage-v8": "^3.2.4",
|
|
94
102
|
"@vitest/ui": "3.2.4",
|
|
@@ -98,7 +106,7 @@
|
|
|
98
106
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
99
107
|
"custom-element-jet-brains-integration": "^1.7.0",
|
|
100
108
|
"custom-elements-manifest": "^2.1.0",
|
|
101
|
-
"eslint": "^9.
|
|
109
|
+
"eslint": "^9.34.0",
|
|
102
110
|
"eslint-config-standard": "^17.1.0",
|
|
103
111
|
"eslint-plugin-import": "^2.32.0",
|
|
104
112
|
"eslint-plugin-json": "^4.0.1",
|
|
@@ -108,7 +116,7 @@
|
|
|
108
116
|
"eslint-plugin-yml": "1.18.0",
|
|
109
117
|
"glob": "^11.0.3",
|
|
110
118
|
"jsdom": "26.1.0",
|
|
111
|
-
"playwright": "1.
|
|
119
|
+
"playwright": "1.55.0",
|
|
112
120
|
"postcss": "^8.5.6",
|
|
113
121
|
"rimraf": "^6.0.1",
|
|
114
122
|
"sass": "1.90.0",
|