@ncino/web-components 7.0.0-preview.4 → 7.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.
- package/dist/components/boolean/boolean.gator.js +3 -3
- package/dist/components/input/gator/input-phone/input-phone.gator.js +6 -8
- package/dist/components/panel/gator/panel.storybook-test.js +1 -1
- package/dist/packages/web-components/src/components/input/gator/input-phone/input-phone.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/input/input.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/input/input.gator.tokens.scss.js +1 -1
- package/dist/types/components/boolean/boolean.gator.d.ts +2 -2
- package/dist/utils/vitest-a11y-utils.js +1 -1
- package/package.json +3 -3
- package/web-types.json +6 -3
- /package/dist/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 → @vitest_browser@3.2.4_msw@2.7.3_@types_node@24.3.0_typescript@5.8.3__playwright@1.55.0__250fccbe5ed788e0688ecbf1c4e5e907}/node_modules/@vitest/browser/context.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@9.1.2_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.0_typescript@5.8_573854de366b5ba3e2ab3da4bce0caa8 → storybook@9.1.2_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.0_typescript@5.8_413f1e59e14f568767561920c5a87a5f}/node_modules/storybook/dist/client-logger/index.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@9.1.2_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.0_typescript@5.8_573854de366b5ba3e2ab3da4bce0caa8 → storybook@9.1.2_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.0_typescript@5.8_413f1e59e14f568767561920c5a87a5f}/node_modules/storybook/dist/core-events/index.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@9.1.2_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.0_typescript@5.8_573854de366b5ba3e2ab3da4bce0caa8 → storybook@9.1.2_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.0_typescript@5.8_413f1e59e14f568767561920c5a87a5f}/node_modules/storybook/dist/instrumenter/index.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@9.1.2_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.0_typescript@5.8_573854de366b5ba3e2ab3da4bce0caa8 → storybook@9.1.2_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.0_typescript@5.8_413f1e59e14f568767561920c5a87a5f}/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.3.0_@vitest_browser@3.2.4_@vitest_ui@3._f0774390203a57f267156838cb4cb2c5 → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.0_@vitest_browser@3.2.4_@vitest_ui@3._ad1109fdae535cd946c9feed44178247}/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.3.0_@vitest_browser@3.2.4_@vitest_ui@3._f0774390203a57f267156838cb4cb2c5 → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.0_@vitest_browser@3.2.4_@vitest_ui@3._ad1109fdae535cd946c9feed44178247}/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.3.0_@vitest_browser@3.2.4_@vitest_ui@3._f0774390203a57f267156838cb4cb2c5 → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.0_@vitest_browser@3.2.4_@vitest_ui@3._ad1109fdae535cd946c9feed44178247}/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.3.0_@vitest_browser@3.2.4_@vitest_ui@3._f0774390203a57f267156838cb4cb2c5 → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.0_@vitest_browser@3.2.4_@vitest_ui@3._ad1109fdae535cd946c9feed44178247}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as
|
|
1
|
+
import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as n}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 h}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as u}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import g from"../../packages/web-components/src/components/boolean/boolean.gator.scss.js";import m from"../../packages/web-components/src/components/boolean/boolean.gator.tokens.scss.js";import{generateRandomId as c,getElementId as b}from"../../utils/string-utils.js";import"../radio-group/radio-group.gator.js";import{NgcInputText as f}from"../input/gator/input-text/input-text.gator.js";import{classMap as v}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/class-map.js";import{unsafeCSS as p}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var _=Object.defineProperty,$=Object.getOwnPropertyDescriptor,w=Object.getPrototypeOf,y=Reflect.get,d=(e,t,o,a)=>{for(var r=a>1?void 0:a?$(t,o):t,l=e.length-1,i;l>=0;l--)(i=e[l])&&(r=(a?i(t,o,r):i(r))||r);return a&&r&&_(t,o,r),r},x=(e,t,o)=>y(w(e),o,t);let s=class extends f{constructor(){super(...arguments),this.options=[{label:"Yes",value:!0},{label:"No",value:!1}],this._randomId=c()}firstUpdated(){this.handleResize(),window.addEventListener("resize",()=>this.handleResize())}render(){return n`
|
|
2
2
|
<ngc-radio-group
|
|
3
3
|
class=${v(this.booleanClasses)}
|
|
4
4
|
id=${this.elementId}
|
|
@@ -11,11 +11,11 @@ import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/re
|
|
|
11
11
|
?skeleton=${this.skeleton}
|
|
12
12
|
>
|
|
13
13
|
${this.booleanOptions}
|
|
14
|
-
</ngc-radio-group>`}get elementId(){return b(this.id,this._randomId)}get booleanClasses(){return{"gator-boolean":!0,"gator-boolean_wrapped":this.isWrapped,"gator-boolean_error":!!this.errorText,"gator-boolean_disabled":this.disabled,"gator-boolean_skeleton":this.skeleton}}get booleanOptions(){if(!this.options)return null;const e=this.options.map((t,o)=>
|
|
14
|
+
</ngc-radio-group>`}get elementId(){return b(this.id,this._randomId)}get booleanClasses(){return{"gator-boolean":!0,"gator-boolean_wrapped":this.isWrapped,"gator-boolean_error":!!this.errorText,"gator-boolean_disabled":this.disabled,"gator-boolean_skeleton":this.skeleton}}get booleanOptions(){if(!this.options)return null;const e=this.options.map((t,o)=>n`
|
|
15
15
|
<ngc-radio
|
|
16
16
|
id="${this.elementId}-option-${o}"
|
|
17
17
|
class="gator-boolean-option-${o}${this.selectedClass(t)}"
|
|
18
18
|
value=${t.value}
|
|
19
19
|
title-text=${t.label}
|
|
20
20
|
></ngc-radio>
|
|
21
|
-
`);return
|
|
21
|
+
`);return n`${e}`}get isWrapped(){const e=this.shadowRoot?.querySelectorAll("ngc-radio");return e&&e.length>1?e[0].offsetTop<e[1].offsetTop:window.innerWidth<475}handleChange(e){const t=e;t.stopImmediatePropagation(),this.value=t.detail,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:this.value}))}handleResize(){const e=this.shadowRoot?.querySelector("ngc-radio-group");this.isWrapped?e?.classList.add("gator-boolean_wrapped"):e?.classList.remove("gator-boolean_wrapped")}selectedClass(e){return this.value===e.value?" gator-boolean-option_selected":""}};s.styles=[...x(s,s,"styles"),p(g),p(m)];d([u({type:Array})],s.prototype,"options",2);s=d([h("ngc-boolean")],s);export{s as NgcBoolean};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import{customElement as c}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{state as h}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import{NgcInputBase as m}from"../../base/input-base.gator.js";import{html as s}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"../dropdown/input-dropdown.gator.js";import"../input-text/input-text.gator.js";import"../input-label/input-label.gator.js";import
|
|
1
|
+
import{customElement as c}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{state as h}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import{NgcInputBase as m}from"../../base/input-base.gator.js";import{html as s}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"../dropdown/input-dropdown.gator.js";import"../input-text/input-text.gator.js";import"../input-label/input-label.gator.js";import v from"../../../../packages/web-components/src/components/input/gator/input-phone/input-phone.gator.scss.js";import{createRef as p,ref as d}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{parsePhoneNumber as b}from"../../../../node_modules/.pnpm/libphonenumber-js@1.12.9/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js";import{unsafeCSS as f}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var g=Object.defineProperty,C=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,$=Reflect.get,u=(e,t,r,i)=>{for(var n=i>1?void 0:i?C(t,r):t,a=e.length-1,l;a>=0;a--)(l=e[a])&&(n=(i?l(t,r,n):l(n))||n);return i&&n&&g(t,r,n),n},P=(e,t,r)=>$(y(e),r,t);let o=class extends m{constructor(){super(...arguments),this.inputContainer=p(),this.dropdownContainer=p()}render(){return s`
|
|
2
2
|
<div class="gator-form-element">
|
|
3
3
|
${this.label?this.labelMarkup:null}
|
|
4
4
|
<div class="gator-phone-input-container" ${d(this.inputContainer)}>
|
|
5
5
|
<div class="gator-phone-input-country-container">
|
|
6
6
|
<ngc-input-dropdown
|
|
7
7
|
${d(this.dropdownContainer)}
|
|
8
|
-
|
|
8
|
+
value="${this.countryCodeValue}"
|
|
9
9
|
id="country-${this.id}"
|
|
10
10
|
?disabled="${this.disabled}"
|
|
11
11
|
autocomplete
|
|
12
12
|
data-type="phoneCodes"
|
|
13
|
-
@
|
|
14
|
-
label="${this.label} Country Code"
|
|
13
|
+
@change="${this.handleSelected}"
|
|
15
14
|
value-displayed
|
|
16
15
|
>
|
|
17
16
|
${this.slotLabelMarkup}
|
|
@@ -24,7 +23,6 @@ import{customElement as c}from"../../../../node_modules/.pnpm/@lit_reactive-elem
|
|
|
24
23
|
type="text"
|
|
25
24
|
id="phone-${this.id}"
|
|
26
25
|
@change="${this.handlePhoneInput}"
|
|
27
|
-
label="${this.label} Number"
|
|
28
26
|
>
|
|
29
27
|
${this.slotLabelMarkup}
|
|
30
28
|
</ngc-input-text>
|
|
@@ -32,12 +30,12 @@ import{customElement as c}from"../../../../node_modules/.pnpm/@lit_reactive-elem
|
|
|
32
30
|
</div>
|
|
33
31
|
${this.bottomText}
|
|
34
32
|
</div>
|
|
35
|
-
`}updated(){this.dropdownContainer.value&&this.inputContainer.value&&(this.dropdownContainer.value.listWidth=this.inputContainer.value?.offsetWidth.toString())}handleSelected(e){this.countryCodeValue=e.detail.value}handlePhoneInput(e){e.preventDefault(),e.stopPropagation();const t=
|
|
33
|
+
`}updated(){this.dropdownContainer.value&&this.inputContainer.value&&(this.dropdownContainer.value.listWidth=this.inputContainer.value?.offsetWidth.toString())}handleSelected(e){this.countryCodeValue=e.detail.value}handlePhoneInput(e){e.preventDefault(),e.stopPropagation();const t=b(e.detail.value,this.countryCodeValue);if(t){!this.countryCodeValue&&t.countryCallingCode&&(this.countryCodeValue="+"+t.countryCallingCode),this.phoneNumberValue=t.nationalNumber,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{value:e.detail.value,countryCode:t.countryCallingCode,country:t.country,phoneNumber:t.nationalNumber,formattedPhoneNumber:t.formatInternational()}}));return}this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{value:e.detail.value}}))}get slotLabelMarkup(){return s`
|
|
36
34
|
<ngc-input-label
|
|
37
35
|
slot="label"
|
|
38
36
|
hide-label
|
|
39
|
-
|
|
37
|
+
for="country-${this.id}"
|
|
40
38
|
.required="${this.required}"
|
|
41
39
|
>
|
|
42
40
|
${this.label}
|
|
43
|
-
</ngc-input-label>`}};
|
|
41
|
+
</ngc-input-label>`}};o.styles=[...P(o,o,"styles"),f(v)];u([h()],o.prototype,"countryCodeValue",2);u([h()],o.prototype,"phoneNumberValue",2);o=u([c("ngc-input-phone")],o);export{o as NgcInputPhone};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{within as h,waitFor as d,expect as e,userEvent as s}from"../../../node_modules/.pnpm/storybook@9.1.2_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.0_typescript@5.
|
|
1
|
+
import{within as h,waitFor as d,expect as e,userEvent as s}from"../../../node_modules/.pnpm/storybook@9.1.2_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.0_typescript@5.8_413f1e59e14f568767561920c5a87a5f/node_modules/storybook/dist/test/index.js";import{getShadowRootElementByDataTestId as p}from"../../../utils/vitest-utils.js";const r=async({canvasElement:w,step:t})=>{const i=h(w);let l,o,c,n;await t("Scenario: Nested Panel Functionality",async()=>{await t("GIVEN the Story renders with the first panel open and the second panel closed",async()=>{l=await i.findByTestId("first-panel"),o=p(l,"first-panel-panel"),c=await i.findByTestId("second-panel"),n=p(c,"second-panel-panel"),await d(()=>e(o).toBeVisible()),e(n).not.toBeVisible()}),await t("WHEN I click on the list item with nested content to open the second panel",async()=>{i.getByTestId("list-item-with-nested").click()}),await t("THEN the second panel is opened relative to the first panel",async()=>{await d(()=>e(n).toBeVisible());const a=o?.offsetWidth;e(window.getComputedStyle(n).left).toBe(`${a}px`)}),await t("WHEN I click the collapse button in the first panel",async()=>{const a=i.getByText("Collapse");await s.click(a)}),await t("THEN I expect the second panel to have moved with the first panel",async()=>{e(window.getComputedStyle(o).width).toBe("56px"),e(window.getComputedStyle(n).left).toBe(`${o.offsetWidth}px`)}),await t("WHEN I click the expand button in the first panel",async()=>{const a=i.getByTestId("expand-button");await s.click(a)}),await t("THEN I expect the first panel to expand and the second panel to move with it",async()=>{e(window.getComputedStyle(o).width).toBe("280px"),e(window.getComputedStyle(n).left).toBe(`${o.offsetWidth}px`)}),await t("WHEN I click on the close button in the second panel",async()=>{const a=i.getByTestId("close-button");await s.click(a)}),await t("THEN I expect the second panel to be closed",async()=>{n.addEventListener("animationend",()=>{e(n).not.toBeVisible()},{once:!0})})})};export{r as nestedPanelTests};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const r=".gator-phone-input-container{display:flex}.gator-phone-input-country-container{width:25%}.gator-phone-input-number-container{width:75%}ngc-input-dropdown{--ngc-input-border-radius: var(--radius-sm, .125rem) 0 0 var(--radius-sm, .125rem)}ngc-input-text{--ngc-input-border-radius: 0 var(--radius-sm, .125rem) var(--radius-sm, .125rem) 0}";export{r as default};
|
|
1
|
+
const r=".gator-phone-input-container{display:flex}.gator-phone-input-country-container{width:25%}.gator-phone-input-number-container{width:75%}ngc-input-dropdown{--ngc-input-border-radius: var(--radius-sm, .125rem) 0 0 var(--radius-sm, .125rem)}ngc-input-text{--ngc-input-height: 24px;--ngc-input-border-radius: 0 var(--radius-sm, .125rem) var(--radius-sm, .125rem) 0}";export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const r='input,textarea{border:none;background-color:transparent}input:focus,textarea:focus{outline:none}input[type=time]::-webkit-calendar-picker-indicator{background:none;display:none}.gator-form-element-control:focus-within:not(.gator-disabled){outline:2px solid var(--ngc-input-outline-color-focused, var(--color-stroke-brand, #11395B))!important}.gator-form-element{display:block;margin-bottom:var(--ngc-input-margin-bottom, 1rem);max-width:var(--ngc-input-max-width, 200px)}.gator-form-element-control{padding:var(--ngc-input-padding);display:flex;flex-direction:column}.gator-input,.gator-faux-input{display:flex;width:100%;height:100%;font-size:var(--ngc-input-font-size, 1.0625rem);font-family:var(--text-family-body, "Open Sans", sans-serif);padding:0;line-height:24px}.gator-form-element-control{margin:.5rem 0;border:1px solid var(--ngc-input-border-color, var(--color-stroke-primary, #6D6D6D));border-radius:var(--ngc-input-border-radius, 2px);flex:1;background-color:var(--ngc-input-background-color, var(--color-surface-primary, #FFFFFF))}.gator-form-element-control:hover:not(.gator-disabled){border:1px solid var(--ngc-input-border-color-hovered, var(--color-stroke-interactive, #0E304D));outline:none}.gator-readonly{border-color:var(--color-stroke-secondary, #BFBFBF);background:var(--color-surface-tertiary, #F2F2F2);color:var(--text-color-primary-base, #1F1F1F)}.gator-has-error:not(.gator-readonly){border-color:var(--ngc-input-error-border, var(--color-stroke-error, #AA330E))!important}.gator-disabled{background:var(--color-surface-secondary, #F7F7F7);border:none;cursor:not-allowed;--ngc-icon-color: var(--color-stroke-secondary, #BFBFBF)}.gator-disabled input,.gator-disabled textarea{cursor:not-allowed}.gator-form-element-control-icon-right{display:flex;align-items:center}.gator-input-container{display:flex;align-items:center;position:relative;width:100%}.gator-input-start,.gator-input-end{display:flex;align-items:center;font-family:var(--text-family-body),sans-serif;font-size:var(--text-size-body-1)}.gator-input-start{margin-right:.5rem}.gator-cursor-pointer{cursor:pointer}';export{r as default};
|
|
1
|
+
const r='input,textarea{border:none;background-color:transparent}input:focus,textarea:focus{outline:none}input[type=time]::-webkit-calendar-picker-indicator{background:none;display:none}.gator-form-element-control:focus-within:not(.gator-disabled){outline:2px solid var(--ngc-input-outline-color-focused, var(--color-stroke-brand, #11395B))!important}.gator-form-element{display:block;margin-bottom:var(--ngc-input-margin-bottom, 1rem);max-width:var(--ngc-input-max-width, 200px)}.gator-form-element-control{padding:var(--ngc-input-padding);display:flex;flex-direction:column;height:var(--ngc-input-height, unset)}.gator-input,.gator-faux-input{display:flex;width:100%;height:100%;font-size:var(--ngc-input-font-size, 1.0625rem);font-family:var(--text-family-body, "Open Sans", sans-serif);padding:0;line-height:24px}.gator-form-element-control{margin:.5rem 0;border:1px solid var(--ngc-input-border-color, var(--color-stroke-primary, #6D6D6D));border-radius:var(--ngc-input-border-radius, 2px);flex:1;background-color:var(--ngc-input-background-color, var(--color-surface-primary, #FFFFFF))}.gator-form-element-control:hover:not(.gator-disabled){border:1px solid var(--ngc-input-border-color-hovered, var(--color-stroke-interactive, #0E304D));outline:none}.gator-readonly{border-color:var(--color-stroke-secondary, #BFBFBF);background:var(--color-surface-tertiary, #F2F2F2);color:var(--text-color-primary-base, #1F1F1F)}.gator-has-error:not(.gator-readonly){border-color:var(--ngc-input-error-border, var(--color-stroke-error, #AA330E))!important}.gator-disabled{background:var(--color-surface-secondary, #F7F7F7);border:none;cursor:not-allowed;--ngc-icon-color: var(--color-stroke-secondary, #BFBFBF)}.gator-disabled input,.gator-disabled textarea{cursor:not-allowed}.gator-form-element-control-icon-right{display:flex;align-items:center}.gator-input-container{display:flex;align-items:center;position:relative;width:100%}.gator-input-start,.gator-input-end{display:flex;align-items:center;font-family:var(--text-family-body),sans-serif;font-size:var(--text-size-body-1)}.gator-input-start{margin-right:.5rem}.gator-cursor-pointer{cursor:pointer}';export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const r=":root,:host{--ngc-input-error-border: var(--color-stroke-error, #AA330E);--ngc-input-border-color: var(--color-stroke-primary, #6D6D6D);--ngc-input-border-color-hovered: var(--color-stroke-interactive, #0E304D);--ngc-input-outline-color-focused: var(--color-stroke-brand, #11395B);--ngc-input-background-color: var(--color-surface-primary, #FFFFFF);--ngc-input-min-width: 200px;--ngc-input-padding: var(--spacing-3, .75rem) var(--spacing-4, 1rem);--ngc-input-border-radius: var(--radius-sm, .125rem);--ngc-input-max-width: 100%;--ngc-input-search-max-width: 15.75rem;--ngc-input-margin-bottom: 1rem;--ngc-input-font-size: 17px}";export{r as default};
|
|
1
|
+
const r=":root,:host{--ngc-input-error-border: var(--color-stroke-error, #AA330E);--ngc-input-border-color: var(--color-stroke-primary, #6D6D6D);--ngc-input-border-color-hovered: var(--color-stroke-interactive, #0E304D);--ngc-input-outline-color-focused: var(--color-stroke-brand, #11395B);--ngc-input-background-color: var(--color-surface-primary, #FFFFFF);--ngc-input-min-width: 200px;--ngc-input-padding: var(--spacing-3, .75rem) var(--spacing-4, 1rem);--ngc-input-border-radius: var(--radius-sm, .125rem);--ngc-input-max-width: 100%;--ngc-input-search-max-width: 15.75rem;--ngc-input-margin-bottom: 1rem;--ngc-input-height: unset;--ngc-input-font-size: 17px}";export{r as default};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { NgcInputText } from '../input/gator/input-text/input-text.gator.ts';
|
|
2
2
|
export type NGC_BOOLEAN_OPTION = {
|
|
3
3
|
label: string;
|
|
4
|
-
value: string;
|
|
4
|
+
value: string | boolean;
|
|
5
5
|
};
|
|
6
6
|
export declare class NgcBoolean extends NgcInputText {
|
|
7
7
|
static styles: import('lit').CSSResult[];
|
|
8
8
|
/**
|
|
9
9
|
* @property {NGC_BOOLEAN_OPTION[]} options - Options to render as boolean options. Each option must have a label and value property.
|
|
10
10
|
*/
|
|
11
|
-
options: NGC_BOOLEAN_OPTION[];
|
|
11
|
+
options: NGC_BOOLEAN_OPTION[] | undefined;
|
|
12
12
|
private _randomId;
|
|
13
13
|
firstUpdated(): void;
|
|
14
14
|
render(): import('lit').TemplateResult<1>;
|
|
@@ -1 +1 @@
|
|
|
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.
|
|
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__250fccbe5ed788e0688ecbf1c4e5e907/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._ad1109fdae535cd946c9feed44178247/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": "7.0.0-preview.
|
|
4
|
+
"version": "7.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/"
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"@storybook/addon-links": "^9.1.1",
|
|
97
97
|
"@storybook/web-components-vite": "^9.1.1",
|
|
98
98
|
"@types/react": "^19.1.8",
|
|
99
|
-
"@typescript-eslint/parser": "^8.
|
|
99
|
+
"@typescript-eslint/parser": "^8.41.0",
|
|
100
100
|
"@vitest/browser": "^3.2.4",
|
|
101
101
|
"@vitest/coverage-v8": "^3.2.4",
|
|
102
102
|
"@vitest/ui": "3.2.4",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"playwright": "1.55.0",
|
|
120
120
|
"postcss": "^8.5.6",
|
|
121
121
|
"rimraf": "^6.0.1",
|
|
122
|
-
"sass": "1.
|
|
122
|
+
"sass": "1.91.0",
|
|
123
123
|
"storybook": "^9.1.1",
|
|
124
124
|
"storybook-addon-code-editor": "^5.0.0",
|
|
125
125
|
"storybook-design-token": "^4.1.0",
|
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": "7.0.0-preview.
|
|
4
|
+
"version": "7.0.0-preview.5",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -1351,7 +1351,10 @@
|
|
|
1351
1351
|
"attributes": [
|
|
1352
1352
|
{
|
|
1353
1353
|
"name": "options",
|
|
1354
|
-
"value": {
|
|
1354
|
+
"value": {
|
|
1355
|
+
"type": "NGC_BOOLEAN_OPTION[] | undefined",
|
|
1356
|
+
"default": "[ { label: 'Yes', value: true }, { label: 'No', value: false } ]"
|
|
1357
|
+
}
|
|
1355
1358
|
},
|
|
1356
1359
|
{ "name": "for", "value": { "type": "string", "default": "''" } },
|
|
1357
1360
|
{ "name": "min", "value": { "type": "string" } },
|
|
@@ -1438,7 +1441,7 @@
|
|
|
1438
1441
|
],
|
|
1439
1442
|
"js": {
|
|
1440
1443
|
"properties": [
|
|
1441
|
-
{ "name": "options", "type": "NGC_BOOLEAN_OPTION[]" },
|
|
1444
|
+
{ "name": "options", "type": "NGC_BOOLEAN_OPTION[] | undefined" },
|
|
1442
1445
|
{ "name": "elementId" },
|
|
1443
1446
|
{ "name": "booleanClasses" },
|
|
1444
1447
|
{ "name": "booleanOptions" },
|