@department-of-veterans-affairs/component-library 50.2.2 → 50.4.0
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/0.app.bundle.js +2 -0
- package/dist/12.app.bundle.js +1 -0
- package/dist/141.app.bundle.js +2 -0
- package/dist/1822.app.bundle.js +2 -0
- package/dist/1966.app.bundle.js +2 -0
- package/dist/{4140.app.bundle.js → 2205.app.bundle.js} +1 -1
- package/dist/{7821.app.bundle.js → 2236.app.bundle.js} +1 -1
- package/dist/2482.app.bundle.js +1 -0
- package/dist/251.app.bundle.js +1 -0
- package/dist/272.app.bundle.js +2 -0
- package/dist/2986.app.bundle.js +1 -0
- package/dist/323.app.bundle.js +2 -0
- package/dist/{1214.app.bundle.js → 3397.app.bundle.js} +1 -1
- package/dist/3589.app.bundle.js +2 -0
- package/dist/3600.app.bundle.js +1 -0
- package/dist/{2472.app.bundle.js → 4157.app.bundle.js} +1 -1
- package/dist/{3156.app.bundle.js → 4351.app.bundle.js} +1 -1
- package/dist/4400.app.bundle.js +2 -0
- package/dist/4432.app.bundle.js +2 -0
- package/dist/4475.app.bundle.js +1 -0
- package/dist/4569.app.bundle.js +2 -0
- package/dist/4775.app.bundle.js +2 -0
- package/dist/4780.app.bundle.js +2 -0
- package/dist/5119.app.bundle.js +2 -0
- package/dist/5663.app.bundle.js +2 -0
- package/dist/{5610.app.bundle.js → 5689.app.bundle.js} +1 -1
- package/dist/5845.app.bundle.js +2 -0
- package/dist/5990.app.bundle.js +2 -0
- package/dist/6095.app.bundle.js +2 -0
- package/dist/6308.app.bundle.js +2 -0
- package/dist/{7663.app.bundle.js → 6498.app.bundle.js} +1 -1
- package/dist/6555.app.bundle.js +1 -0
- package/dist/6650.app.bundle.js +2 -0
- package/dist/6696.app.bundle.js +1 -0
- package/dist/{5155.app.bundle.js → 6718.app.bundle.js} +1 -1
- package/dist/{1365.app.bundle.js → 6830.app.bundle.js} +1 -1
- package/dist/{3071.app.bundle.js → 6832.app.bundle.js} +1 -1
- package/dist/6849.app.bundle.js +2 -0
- package/dist/{9409.app.bundle.js → 7084.app.bundle.js} +1 -1
- package/dist/7166.app.bundle.js +2 -0
- package/dist/7307.app.bundle.js +2 -0
- package/dist/7372.app.bundle.js +2 -0
- package/dist/7373.app.bundle.js +1 -0
- package/dist/7481.app.bundle.js +1 -0
- package/dist/7495.app.bundle.js +2 -0
- package/dist/7734.app.bundle.js +1 -0
- package/dist/7747.app.bundle.js +1 -0
- package/dist/{9670.app.bundle.js → 8463.app.bundle.js} +1 -1
- package/dist/8913.app.bundle.js +2 -0
- package/dist/8915.app.bundle.js +2 -0
- package/dist/9186.app.bundle.js +2 -0
- package/dist/9376.app.bundle.js +2 -0
- package/dist/9474.app.bundle.js +2 -0
- package/dist/9496.app.bundle.js +2 -0
- package/dist/{641.app.bundle.js → 960.app.bundle.js} +1 -1
- package/dist/9851.app.bundle.js +2 -0
- package/dist/9851.app.bundle.js.LICENSE.txt +5 -0
- package/dist/app.bundle.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/types/components.d.ts +138 -4
- package/dist/components/utils.js +1 -1
- package/dist/components/va-accordion2.js +1 -1
- package/dist/components/va-alert-sign-in.js +1 -1
- package/dist/components/va-combo-box.js +1 -18
- package/dist/components/va-combo-box2.js +20 -0
- package/dist/components/va-input-telephone.d.ts +11 -0
- package/dist/components/va-input-telephone.js +1 -0
- package/dist/components/va-language-toggle.js +1 -1
- package/dist/components/va-link-action.js +1 -1
- package/dist/components/va-loading-indicator.js +1 -1
- package/dist/components/va-minimal-footer.js +1 -1
- package/dist/components/va-need-help.js +1 -1
- package/dist/components/va-official-gov-banner2.js +1 -1
- package/dist/components/va-omb-info.js +1 -1
- package/dist/components/va-privacy-agreement.js +1 -1
- package/dist/components/va-process-list-item.js +1 -1
- package/dist/components/va-process-list.js +1 -1
- package/dist/components/va-progress-bar2.js +1 -1
- package/dist/components/va-radio-option.js +1 -1
- package/dist/components/va-radio.js +1 -1
- package/dist/components/va-search-filter.js +1 -1
- package/dist/components/va-search-input.js +1 -1
- package/dist/components/va-select2.js +1 -1
- package/dist/components/va-statement-of-truth.js +1 -1
- package/dist/components/va-summary-box.js +1 -1
- package/dist/components/va-table-inner2.js +1 -1
- package/dist/components/va-table-row.js +1 -1
- package/dist/components/va-table.js +1 -1
- package/dist/components/va-telephone2.js +1 -1
- package/dist/components/va-text-input2.js +1 -1
- package/dist/components/va-textarea.js +1 -1
- package/dist/react-bindings/index.d.ts +1 -0
- package/dist/react-bindings/index.js +1 -1
- package/dist/react-bindings/index.js.map +1 -1
- package/dist/react-bindings/index.ts +1 -0
- package/package.json +2 -2
- package/dist/1339.app.bundle.js +0 -2
- package/dist/1450.app.bundle.js +0 -1
- package/dist/20.app.bundle.js +0 -2
- package/dist/2222.app.bundle.js +0 -2
- package/dist/2319.app.bundle.js +0 -2
- package/dist/2387.app.bundle.js +0 -1
- package/dist/2654.app.bundle.js +0 -2
- package/dist/2801.app.bundle.js +0 -2
- package/dist/4064.app.bundle.js +0 -1
- package/dist/4117.app.bundle.js +0 -2
- package/dist/415.app.bundle.js +0 -1
- package/dist/4715.app.bundle.js +0 -2
- package/dist/5189.app.bundle.js +0 -2
- package/dist/520.app.bundle.js +0 -1
- package/dist/5306.app.bundle.js +0 -2
- package/dist/5533.app.bundle.js +0 -1
- package/dist/5699.app.bundle.js +0 -2
- package/dist/575.app.bundle.js +0 -2
- package/dist/5830.app.bundle.js +0 -2
- package/dist/6034.app.bundle.js +0 -2
- package/dist/6246.app.bundle.js +0 -2
- package/dist/6247.app.bundle.js +0 -1
- package/dist/6349.app.bundle.js +0 -2
- package/dist/6527.app.bundle.js +0 -2
- package/dist/6633.app.bundle.js +0 -2
- package/dist/6655.app.bundle.js +0 -2
- package/dist/6683.app.bundle.js +0 -2
- package/dist/6771.app.bundle.js +0 -1
- package/dist/6824.app.bundle.js +0 -2
- package/dist/712.app.bundle.js +0 -2
- package/dist/7367.app.bundle.js +0 -2
- package/dist/7531.app.bundle.js +0 -1
- package/dist/8175.app.bundle.js +0 -2
- package/dist/82.app.bundle.js +0 -2
- package/dist/8206.app.bundle.js +0 -1
- package/dist/8495.app.bundle.js +0 -2
- package/dist/8762.app.bundle.js +0 -2
- package/dist/8859.app.bundle.js +0 -1
- package/dist/890.app.bundle.js +0 -2
- package/dist/9288.app.bundle.js +0 -1
- package/dist/9724.app.bundle.js +0 -2
- package/dist/9800.app.bundle.js +0 -2
- /package/dist/{1339.app.bundle.js.LICENSE.txt → 0.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{20.app.bundle.js.LICENSE.txt → 141.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{2222.app.bundle.js.LICENSE.txt → 1822.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{2319.app.bundle.js.LICENSE.txt → 1966.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{2654.app.bundle.js.LICENSE.txt → 272.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{2801.app.bundle.js.LICENSE.txt → 323.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{4117.app.bundle.js.LICENSE.txt → 3589.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{4715.app.bundle.js.LICENSE.txt → 4400.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{5189.app.bundle.js.LICENSE.txt → 4432.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{5306.app.bundle.js.LICENSE.txt → 4569.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{5699.app.bundle.js.LICENSE.txt → 4775.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{575.app.bundle.js.LICENSE.txt → 4780.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{5830.app.bundle.js.LICENSE.txt → 5119.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{6034.app.bundle.js.LICENSE.txt → 5663.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{6246.app.bundle.js.LICENSE.txt → 5845.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{6349.app.bundle.js.LICENSE.txt → 5990.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{6527.app.bundle.js.LICENSE.txt → 6095.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{6633.app.bundle.js.LICENSE.txt → 6308.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{6655.app.bundle.js.LICENSE.txt → 6650.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{6683.app.bundle.js.LICENSE.txt → 6849.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{6824.app.bundle.js.LICENSE.txt → 7166.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{712.app.bundle.js.LICENSE.txt → 7307.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{7367.app.bundle.js.LICENSE.txt → 7372.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{8175.app.bundle.js.LICENSE.txt → 7495.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{82.app.bundle.js.LICENSE.txt → 8913.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{8495.app.bundle.js.LICENSE.txt → 8915.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{8762.app.bundle.js.LICENSE.txt → 9186.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{890.app.bundle.js.LICENSE.txt → 9376.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{9724.app.bundle.js.LICENSE.txt → 9474.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{9800.app.bundle.js.LICENSE.txt → 9496.app.bundle.js.LICENSE.txt} +0 -0
- /package/dist/components/{va-combo-box.js.LICENSE.txt → va-combo-box2.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement,HTMLElement,createEvent,forceUpdate,h,Fragment,Host}from"@stencil/core/internal/client";import{c as classnames}from"./index2.js";import"./i18n-setup.js";import"./contacts.js";import{a as getSlottedNodes,i as isMessageSet,g as getHeaderLevel}from"./utils.js";import{i as instance}from"./i18next.js";const vaSelectCss='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}.usa-select,.usa-hint,.usa-input{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-select,.usa-input{border-width:1px;border-color:#565c65;border-style:solid;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;color:#1b1b1b;display:block;height:2.5rem;margin-top:0.5rem;max-width:30rem;padding:0.5rem;width:100%}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-icon{display:inline-block;fill:currentColor;height:1em;position:relative;width:1em}.usa-icon--size-3{height:1.5rem;width:1.5rem}.usa-icon--size-4{height:2rem;width:2rem}.usa-icon--size-5{height:2.5rem;width:2.5rem}.usa-icon--size-6{height:3rem;width:3rem}.usa-icon--size-7{height:3.5rem;width:3.5rem}.usa-icon--size-8{height:4rem;width:4rem}.usa-icon--size-9{height:4.5rem;width:4.5rem}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-input:disabled,.usa-input[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1;-webkit-text-fill-color:#454545}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:0;color:GrayText}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:2px solid GrayText}}.usa-input--error{border-width:0.25rem;border-color:#b50909;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-input--success{border-width:0.25rem;border-color:#00a91c;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-select{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:white;background-position:right 0.5rem center;background-size:1.25rem;padding-right:2rem}.usa-select::-ms-expand{display:none}.usa-select:-webkit-autofill{-webkit-appearance:menulist;appearance:menulist}.usa-select:-moz-focusring{color:transparent;text-shadow:0 0 0 black}.usa-select[multiple]{height:auto;background-image:none;padding-right:0}.usa-select option{overflow:hidden;text-overflow:ellipsis}.usa-select:disabled,.usa-select[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-select:disabled:hover,.usa-select:disabled:active,.usa-select:disabled:focus,.usa-select:disabled.usa-focus,.usa-select[aria-disabled=true]:hover,.usa-select[aria-disabled=true]:active,.usa-select[aria-disabled=true]:focus,.usa-select[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-select:disabled,.usa-select[aria-disabled=true]{border:0;color:GrayText}.usa-select:disabled:hover,.usa-select:disabled:active,.usa-select:disabled:focus,.usa-select:disabled.usa-focus,.usa-select[aria-disabled=true]:hover,.usa-select[aria-disabled=true]:active,.usa-select[aria-disabled=true]:focus,.usa-select[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-select:disabled,.usa-select[aria-disabled=true]{border:2px solid GrayText}}@media (forced-colors: active){.usa-select{-webkit-appearance:listbox;-moz-appearance:listbox;appearance:listbox;background-image:none;padding-right:0}}:host .usa-input--2xs{max-width:5ex}:host .usa-input--xs{max-width:9ex}:host .usa-input--sm,:host .usa-input--small{max-width:13ex}:host .usa-input--md,:host .usa-input--medium{max-width:20ex}:host .usa-input--lg{max-width:30ex}:host .usa-input--xl{max-width:40ex}:host .usa-input--2xl{max-width:50ex}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host{display:block;font-family:var(--font-source-sans);color:var(--vads-color-base)}:host([inert]) select{border:0;background:none}.usa-select{margin-bottom:0}::slotted(option),::slotted(optgroup){display:none}.va-select--full-width{max-width:100%;width:100%}',VaSelectStyle0=vaSelectCss,VaSelect=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.vaKeyDown=createEvent(this,"vaKeyDown",7),this.vaSelect=createEvent(this,"vaSelect",7),this.vaSelectBlur=createEvent(this,"vaSelectBlur",7),this.componentLibraryAnalytics=createEvent(this,"component-library-analytics",7),this.required=!1,this.label=void 0,this.name=void 0,this.value=void 0,this.error=void 0,this.reflectInputError=!1,this.invalid=!1,this.enableAnalytics=!1,this.hint=void 0,this.messageAriaDescribedby=void 0,this.width=void 0,this.fullWidth=!1,this.showError=!0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0,this.options=void 0}connectedCallback(){instance.on("languageChanged",(()=>{forceUpdate(this.el)}))}disconnectedCallback(){instance.off("languageChanged")}handleKeyDown(){this.vaKeyDown.emit()}handleBlur(e){const a=e.target;this.value=a.value,this.vaSelectBlur.emit({value:this.value})}handleChange(e){const a=e.target;if(this.value=a.value,this.enableAnalytics){const e={componentName:"va-select",action:"change",details:{label:this.label,selectLabel:this.value}};this.componentLibraryAnalytics.emit(e)}this.vaSelect.emit({value:this.value})}populateOptions(){const{value:e}=this,a=getSlottedNodes(this.el,null,"#select-container slot").filter((e=>{const a=e.nodeName.toLowerCase();return"option"===a||"optgroup"===a}));this.options=a.map((a=>"optgroup"===a.nodeName.toLowerCase()?h("optgroup",{label:a.label},Array.from(a.children).map((a=>h("option",{value:a.value,selected:e===a.value},a.text)))):"option"===a.nodeName.toLowerCase()?h("option",{value:a.value,selected:e===a.value},a.textContent):void 0))}handleValueChange(){this.populateOptions()}render(){const{error:e,reflectInputError:a,invalid:t,label:s,required:i,name:r,hint:o,messageAriaDescribedby:l,width:n,fullWidth:d,showError:c,useFormsPattern:u,formHeadingLevel:p,formHeading:m}=this,b="input-error-message",f=`${l?"input-message":""} ${e?b:""} ${o?"input-hint":""}`.trim()||null,g=classnames({"usa-label":!0,"usa-label--error":e}),v=classnames({"usa-select":!0,"usa-input--error":e||a,[`usa-input--${n}`]:n,"va-select--full-width":d});let w=null;if(["single","multiple"].includes(u)){const e=getHeaderLevel(p);w=h(Fragment,{key:"d0dc1fcec1b25b1a435845748f501192c2ac115d"},m&&h(e,{key:"2524fa9fe3dc21e24465c9757402f38dd8666934",id:"form-question",part:"form-header"},m),h("div",{key:"fbf9cd8bc5da3d1a16fb882850d4fac748d05638",id:"form-description"},h("slot",{key:"6f1f5677845e522a6cc7e7e72987319ab2bf98d7",name:"form-description"})))}return h(Host,{key:"c8ee3691e11abb9fc26b0bd633097d5f0cf98e81"},w,s&&h("label",{key:"0f54f146284af113cfe3f900dd71edcd084649fe",htmlFor:"options",class:g,part:"label"},s,i&&h("span",{key:"a0d77807ddd7a04760845292914dbf07e6a590ce",class:"usa-label--required"}," ",instance.t("required"))),o&&h("span",{key:"19a71598338dff26868b4e21eac3e7e84de347b3",class:"usa-hint",id:"input-hint"},o),h("span",{key:"6a0f87956613580871ea803d6e41c21f5e7345f9",id:b,role:"alert"},c&&e&&h(Fragment,{key:"ac8344130d3a2bd5e043b7602f45ae5b0259fb6d"},h("span",{key:"1c4a1003cf67f475789db3f79d4a23dc31df8868",class:"usa-sr-only"},instance.t("error")),h("span",{key:"3a1249446bd6d29b8b6363d9b8f9215c08eafd1a",class:"usa-error-message"},e))),h("div",{key:"088128011123f39556df42b96acd73e644dc9f34",id:"select-container"},h("slot",{key:"f3d6caadd1f1f9b24afb0cf7a95979967ae4ce23",onSlotchange:()=>this.populateOptions()}),h("select",{key:"03164a2a20bd6bd4b54efe55e061d1cd111529d6",class:v,"aria-describedby":f,"aria-invalid":t||e?"true":"false",id:"options",name:r,required:i||null,onKeyDown:()=>this.handleKeyDown(),onChange:e=>this.handleChange(e),onBlur:e=>this.handleBlur(e),part:"select"},h("option",{key:"0",value:"",selected:!0},instance.t("select")),this.options)),isMessageSet(l)&&h("span",{key:"f92791fad095f644e2bdfcec756e51c676b0677e",id:"input-message",class:"usa-sr-only dd-privacy-hidden"},l))}get el(){return this}static get watchers(){return{value:["handleValueChange"]}}static get style(){return VaSelectStyle0}},[1,"va-select",{required:[4],label:[1],name:[1],value:[1537],error:[1],reflectInputError:[4,"reflect-input-error"],invalid:[4],enableAnalytics:[4,"enable-analytics"],hint:[1],messageAriaDescribedby:[1,"message-aria-describedby"],width:[1],fullWidth:[4,"full-width"],showError:[4,"show-error"],useFormsPattern:[1,"use-forms-pattern"],formHeadingLevel:[2,"form-heading-level"],formHeading:[1,"form-heading"],options:[32]},void 0,{value:["handleValueChange"]}]);function defineCustomElement(){"undefined"!=typeof customElements&&["va-select"].forEach((e=>{"va-select"===e&&(customElements.get(e)||customElements.define(e,VaSelect))}))}export{VaSelect as V,defineCustomElement as d};
|
|
1
|
+
import{proxyCustomElement,HTMLElement,createEvent,forceUpdate,h,Fragment,Host}from"@stencil/core/internal/client";import{c as classnames}from"./index2.js";import"./i18n-setup.js";import"./contacts.js";import{a as getSlottedNodes,i as isMessageSet,g as getHeaderLevel}from"./utils.js";import{i as instance}from"./i18next.js";const vaSelectCss='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}.usa-select,.usa-hint,.usa-input{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-select,.usa-input{border-width:1px;border-color:#565c65;border-style:solid;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;color:#1b1b1b;display:block;height:2.5rem;margin-top:0.5rem;max-width:30rem;padding:0.5rem;width:100%}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-icon{display:inline-block;fill:currentColor;height:1em;position:relative;width:1em}.usa-icon--size-3{height:1.5rem;width:1.5rem}.usa-icon--size-4{height:2rem;width:2rem}.usa-icon--size-5{height:2.5rem;width:2.5rem}.usa-icon--size-6{height:3rem;width:3rem}.usa-icon--size-7{height:3.5rem;width:3.5rem}.usa-icon--size-8{height:4rem;width:4rem}.usa-icon--size-9{height:4.5rem;width:4.5rem}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-input:disabled,.usa-input[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1;-webkit-text-fill-color:#454545}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:0;color:GrayText}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:2px solid GrayText}}.usa-input--error{border-width:0.25rem;border-color:#b50909;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-input--success{border-width:0.25rem;border-color:#00a91c;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-select{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:white;background-position:right 0.5rem center;background-size:1.25rem;padding-right:2rem}.usa-select::-ms-expand{display:none}.usa-select:-webkit-autofill{-webkit-appearance:menulist;appearance:menulist}.usa-select:-moz-focusring{color:transparent;text-shadow:0 0 0 black}.usa-select[multiple]{height:auto;background-image:none;padding-right:0}.usa-select option{overflow:hidden;text-overflow:ellipsis}.usa-select:disabled,.usa-select[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-select:disabled:hover,.usa-select:disabled:active,.usa-select:disabled:focus,.usa-select:disabled.usa-focus,.usa-select[aria-disabled=true]:hover,.usa-select[aria-disabled=true]:active,.usa-select[aria-disabled=true]:focus,.usa-select[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-select:disabled,.usa-select[aria-disabled=true]{border:0;color:GrayText}.usa-select:disabled:hover,.usa-select:disabled:active,.usa-select:disabled:focus,.usa-select:disabled.usa-focus,.usa-select[aria-disabled=true]:hover,.usa-select[aria-disabled=true]:active,.usa-select[aria-disabled=true]:focus,.usa-select[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-select:disabled,.usa-select[aria-disabled=true]{border:2px solid GrayText}}@media (forced-colors: active){.usa-select{-webkit-appearance:listbox;-moz-appearance:listbox;appearance:listbox;background-image:none;padding-right:0}}:host .usa-input--2xs{max-width:5ex}:host .usa-input--xs{max-width:9ex}:host .usa-input--sm,:host .usa-input--small{max-width:13ex}:host .usa-input--md,:host .usa-input--medium{max-width:20ex}:host .usa-input--lg{max-width:30ex}:host .usa-input--xl{max-width:40ex}:host .usa-input--2xl{max-width:50ex}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host{display:block;font-family:var(--font-source-sans);color:var(--vads-color-base)}:host([inert]) select{border:0;background:none}.usa-select{margin-bottom:0}::slotted(option),::slotted(optgroup){display:none}.va-select--full-width{max-width:100%;width:100%}',VaSelectStyle0=vaSelectCss,VaSelect=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.vaKeyDown=createEvent(this,"vaKeyDown",7),this.vaSelect=createEvent(this,"vaSelect",7),this.vaSelectBlur=createEvent(this,"vaSelectBlur",7),this.componentLibraryAnalytics=createEvent(this,"component-library-analytics",7),this.required=!1,this.label=void 0,this.name=void 0,this.value=void 0,this.error=void 0,this.reflectInputError=!1,this.invalid=!1,this.enableAnalytics=!1,this.hint=void 0,this.messageAriaDescribedby=void 0,this.width=void 0,this.fullWidth=!1,this.showError=!0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0,this.options=void 0}connectedCallback(){instance.on("languageChanged",(()=>{forceUpdate(this.el)}))}disconnectedCallback(){instance.off("languageChanged")}handleKeyDown(){this.vaKeyDown.emit()}handleBlur(e){const a=e.target;this.value=a.value,this.vaSelectBlur.emit({value:this.value})}handleChange(e){const a=e.target;if(this.value=a.value,this.enableAnalytics){const e={componentName:"va-select",action:"change",details:{label:this.label,selectLabel:this.value}};this.componentLibraryAnalytics.emit(e)}this.vaSelect.emit({value:this.value})}populateOptions(){const{value:e}=this,a=getSlottedNodes(this.el,null,"#select-container slot").filter((e=>{const a=e.nodeName.toLowerCase();return"option"===a||"optgroup"===a}));this.options=a.map((a=>"optgroup"===a.nodeName.toLowerCase()?h("optgroup",{label:a.label},Array.from(a.children).map((a=>h("option",{value:a.value,selected:e===a.value},a.text)))):"option"===a.nodeName.toLowerCase()?h("option",{value:a.value,selected:e===a.value},a.textContent):void 0))}handleValueChange(){this.populateOptions()}render(){const{error:e,reflectInputError:a,invalid:t,label:s,required:i,name:r,hint:o,messageAriaDescribedby:l,width:n,fullWidth:d,showError:c,useFormsPattern:u,formHeadingLevel:p,formHeading:m}=this,b="input-error-message",f=`${l?"input-message":""} ${e?b:""} ${o?"input-hint":""}`.trim()||null,g=classnames({"usa-label":!0,"usa-label--error":e}),v=classnames({"usa-select":!0,"usa-input--error":e||a,[`usa-input--${n}`]:n,"va-select--full-width":d});let w=null;if(["single","multiple"].includes(u)){const e=getHeaderLevel(p);w=h(Fragment,{key:"37519a1f40d2b9c5be3df401e8eb24b02e47a5bc"},m&&h(e,{key:"c8e3aad5e581906e96f8e22f09797b63ee48776f",id:"form-question",part:"form-header"},m),h("div",{key:"adfa7fa98c46cb06f2c8e9762064a16a7adce276",id:"form-description"},h("slot",{key:"9e2f2c3f76e21c5a0bca227e1e347320a337e5bd",name:"form-description"})))}return h(Host,{key:"315818c941a8d5415861fd63f49ceff2e0944419"},w,s&&h("label",{key:"cc612f5a4a5f6dfeb52c79f4324e6c0f67383442",htmlFor:"options",class:g,part:"label"},s,i&&h("span",{key:"3a9483ad436cd59b0b52feb008493f2415a271aa",class:"usa-label--required"}," ",instance.t("required"))),o&&h("span",{key:"0b280ee865a1797f833bfbb9bab45ed684f3f780",class:"usa-hint",id:"input-hint"},o),h("span",{key:"016bb3db96aab9c669a447494a60aa0475d7408c",id:b,role:"alert"},c&&e&&h(Fragment,{key:"7d026810f2b65c737e6480d8ae064024e843521b"},h("span",{key:"ec8922d27b21af8a6b522444544411931659a6e9",class:"usa-sr-only"},instance.t("error")),h("span",{key:"9140188f30eac59935d44528d0433db3ca7381a8",class:"usa-error-message"},e))),h("div",{key:"8f54274eb7ee10edd38fd919dd4baecd258cd039",id:"select-container"},h("slot",{key:"80005880ca2df581d114b91c6e8d77897d72bdcc",onSlotchange:()=>this.populateOptions()}),h("select",{key:"362c251fb558a0748cbac488efe796598787b82a",class:v,"aria-describedby":f,"aria-invalid":t||e?"true":"false",id:"options",name:r,required:i||null,onKeyDown:()=>this.handleKeyDown(),onChange:e=>this.handleChange(e),onBlur:e=>this.handleBlur(e),part:"select"},h("option",{key:"0",value:"",selected:!0},instance.t("select")),this.options)),isMessageSet(l)&&h("span",{key:"f66ad521e8e76bdef0d6fffa1034c6ae168b9b2c",id:"input-message",class:"usa-sr-only dd-privacy-hidden"},l))}get el(){return this}static get watchers(){return{value:["handleValueChange"]}}static get style(){return VaSelectStyle0}},[1,"va-select",{required:[4],label:[1],name:[1],value:[1537],error:[1],reflectInputError:[4,"reflect-input-error"],invalid:[4],enableAnalytics:[4,"enable-analytics"],hint:[1],messageAriaDescribedby:[1,"message-aria-describedby"],width:[1],fullWidth:[4,"full-width"],showError:[4,"show-error"],useFormsPattern:[1,"use-forms-pattern"],formHeadingLevel:[2,"form-heading-level"],formHeading:[1,"form-heading"],options:[32]},void 0,{value:["handleValueChange"]}]);function defineCustomElement(){"undefined"!=typeof customElements&&["va-select"].forEach((e=>{"va-select"===e&&(customElements.get(e)||customElements.define(e,VaSelect))}))}export{VaSelect as V,defineCustomElement as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement,HTMLElement,createEvent,h,Host}from"@stencil/core/internal/client";import{d as defineCustomElement$5}from"./va-checkbox2.js";import{d as defineCustomElement$4}from"./va-icon2.js";import{d as defineCustomElement$3}from"./va-link2.js";import{d as defineCustomElement$2}from"./va-text-input2.js";const vaStatementOfTruthCss='.usa-sr-only{position:absolute;left:-999em;right:auto}[class*=font-mono-]{font-family:Roboto Mono Web, Bitstream Vera Sans Mono, Consolas, Courier, monospace}[class*=font-sans-]{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans}[class*=font-serif-]{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif}[class*=font-ui-]{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans}[class*=font-heading-]{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif}[class*=font-body-]{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans}[class*=font-code-]{font-family:Roboto Mono Web, Bitstream Vera Sans Mono, Consolas, Courier, monospace}[class*=font-alt-]{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif}:host :not(h3){font-size:16.96px}:host h3{font-family:var(--font-serif);margin:24px 0}:host>p{margin:24px}@media screen and (max-width: 481px){:host .short-line{width:var(--vads-size-line-length-1)}}:host va-text-input{margin-bottom:24px}:host article{background-color:var(--vads-color-base-lightest);padding:1px 24px 24px 24px;margin-bottom:24px}va-checkbox::part(checkbox){max-width:100%}a{color:var(--vads-color-link)}',VaStatementOfTruthStyle0=vaStatementOfTruthCss,VaStatementOfTruth$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.vaInputChange=createEvent(this,"vaInputChange",7),this.vaInputBlur=createEvent(this,"vaInputBlur",7),this.vaCheckboxChange=createEvent(this,"vaCheckboxChange",7),this.handleInputChange=e=>{const{value:t}=e.currentTarget;this.vaInputChange.emit({value:t})},this.handleInputBlur=e=>{this.vaInputBlur.emit(e)},this.handleCheckboxChange=e=>{const{checked:t}=e.currentTarget;this.vaCheckboxChange.emit({checked:t})},this.heading="Statement of truth",this.inputValue="",this.inputError="",this.checkboxError="",this.inputMessageAriaDescribedby="",this.checked=void 0,this.inputLabel="Your full name",this.checkboxLabel="I certify the information above is correct and true to the best of my knowledge and belief."}render(){const{heading:e,inputLabel:t,checkboxLabel:a,inputMessageAriaDescribedby:n,checked:o,inputValue:r,inputError:i,checkboxError:s}=this;return h(Host,{key:"
|
|
1
|
+
import{proxyCustomElement,HTMLElement,createEvent,h,Host}from"@stencil/core/internal/client";import{d as defineCustomElement$5}from"./va-checkbox2.js";import{d as defineCustomElement$4}from"./va-icon2.js";import{d as defineCustomElement$3}from"./va-link2.js";import{d as defineCustomElement$2}from"./va-text-input2.js";const vaStatementOfTruthCss='.usa-sr-only{position:absolute;left:-999em;right:auto}[class*=font-mono-]{font-family:Roboto Mono Web, Bitstream Vera Sans Mono, Consolas, Courier, monospace}[class*=font-sans-]{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans}[class*=font-serif-]{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif}[class*=font-ui-]{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans}[class*=font-heading-]{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif}[class*=font-body-]{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans}[class*=font-code-]{font-family:Roboto Mono Web, Bitstream Vera Sans Mono, Consolas, Courier, monospace}[class*=font-alt-]{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif}:host :not(h3){font-size:16.96px}:host h3{font-family:var(--font-serif);margin:24px 0}:host>p{margin:24px}@media screen and (max-width: 481px){:host .short-line{width:var(--vads-size-line-length-1)}}:host va-text-input{margin-bottom:24px}:host article{background-color:var(--vads-color-base-lightest);padding:1px 24px 24px 24px;margin-bottom:24px}va-checkbox::part(checkbox){max-width:100%}a{color:var(--vads-color-link)}',VaStatementOfTruthStyle0=vaStatementOfTruthCss,VaStatementOfTruth$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.vaInputChange=createEvent(this,"vaInputChange",7),this.vaInputBlur=createEvent(this,"vaInputBlur",7),this.vaCheckboxChange=createEvent(this,"vaCheckboxChange",7),this.handleInputChange=e=>{const{value:t}=e.currentTarget;this.vaInputChange.emit({value:t})},this.handleInputBlur=e=>{this.vaInputBlur.emit(e)},this.handleCheckboxChange=e=>{const{checked:t}=e.currentTarget;this.vaCheckboxChange.emit({checked:t})},this.heading="Statement of truth",this.inputValue="",this.inputError="",this.checkboxError="",this.inputMessageAriaDescribedby="",this.checked=void 0,this.inputLabel="Your full name",this.checkboxLabel="I certify the information above is correct and true to the best of my knowledge and belief."}render(){const{heading:e,inputLabel:t,checkboxLabel:a,inputMessageAriaDescribedby:n,checked:o,inputValue:r,inputError:i,checkboxError:s}=this;return h(Host,{key:"aff59da9dd75ac48d3e413f5d075514901520952"},h("p",{key:"487e11989e4dc406c2e0e02e21417d17669a47e8",class:"font-sans-6"},h("strong",{key:"cbc1f6bd63f2872ffb9c5e156c5830fdcafde259"},"Note:")," According to federal law, there are criminal penalties, including a fine and/or imprisonment for up to 5 years, for withholding information or for providing incorrect information (Reference: 18 U.S.C. 1001)."),h("article",{key:"1ea0a97fe03322433a0519253ac72f8ab5a62b72"},h("h3",{key:"ded694db9710bc0727ffbc6605f7df019972f540"},e),h("slot",{key:"dec87679df8ea7d698215d8afbe88dab4070fdd6"}),h("p",{key:"76cccee73b1b2ab23173552f752897b8df2ca848",class:"font-sans-6 short-line"},"I have read and accept the ",h("va-link",{key:"42c2fe59f891ac4c7ce0f313d03f59c422a7a094",external:!0,text:"privacy policy",href:"/privacy-policy/"}),"."),h("va-text-input",{key:"d2b7d81a694500d0763657e98addaaac6848c22a",id:"veteran-signature",name:"veteran-signature",label:t,value:r,"message-aria-describedby":n,required:!0,error:i,onInput:this.handleInputChange,onBlur:this.handleInputBlur,"error-has-pii":!0}),h("va-checkbox",{key:"055369b5bea5191d02f5e78c4270bf08980cc351",id:"veteran-certify",name:"veteran-certify",label:a,required:!0,checked:o,error:s,onVaChange:this.handleCheckboxChange})))}get el(){return this}static get style(){return VaStatementOfTruthStyle0}},[1,"va-statement-of-truth",{heading:[1],inputValue:[1,"input-value"],inputError:[1,"input-error"],checkboxError:[1,"checkbox-error"],inputMessageAriaDescribedby:[1,"input-message-aria-describedby"],checked:[4],inputLabel:[1,"input-label"],checkboxLabel:[1,"checkbox-label"]}]);function defineCustomElement$1(){"undefined"!=typeof customElements&&["va-statement-of-truth","va-checkbox","va-icon","va-link","va-text-input"].forEach((e=>{switch(e){case"va-statement-of-truth":customElements.get(e)||customElements.define(e,VaStatementOfTruth$1);break;case"va-checkbox":customElements.get(e)||defineCustomElement$5();break;case"va-icon":customElements.get(e)||defineCustomElement$4();break;case"va-link":customElements.get(e)||defineCustomElement$3();break;case"va-text-input":customElements.get(e)||defineCustomElement$2()}}))}const VaStatementOfTruth=VaStatementOfTruth$1,defineCustomElement=defineCustomElement$1;export{VaStatementOfTruth,defineCustomElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";const vaSummaryBoxCss='.usa-summary-box{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;color:#1b1b1b;background-color:#e7f6f8;border-radius:0.25rem;border:1px #99deea solid;padding:1.5rem;position:relative}.usa-summary-box .usa-list:last-child{margin-bottom:0}*+.usa-summary-box{margin-top:1rem}.usa-summary-box__heading{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.46rem;line-height:1.1;margin-top:0;margin-bottom:0.5rem}.usa-summary-box__text{margin-bottom:0;margin-top:0}.usa-summary-box__text:only-child{margin-bottom:1px;padding-top:0.25rem}.usa-summary-box__link{color:#005ea2}.usa-summary-box__link:visited{color:#54278f}.usa-summary-box__link:hover,.usa-summary-box__link:active{color:#1a4480}.usa-summary-box__link[href^="#"]:visited{color:#005ea2}.usa-summary-box__link[href^="#"]:hover{color:#1a4480}:host{display:block}::slotted([slot=headline]){font-family:var(--font-serif);margin-top:0 !important}::slotted(p){font-family:var(--font-source-sans);margin-bottom:0 !important;margin-top:0 !important;padding-bottom:0.5em}::slotted(ul){margin:0 0 0.5em 1.5em !important;padding:0 !important}::slotted(li){list-style:square;margin:0}',VaSummaryBoxStyle0=vaSummaryBoxCss,VaSummaryBox$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.headlineText=null}componentWillLoad(){let e=Array.from(this.el.children);this.headlineText=e.find((e=>"headline"===e.slot)).textContent.trim()}componentDidLoad(){const e=this.el.shadowRoot.querySelectorAll("slot"),a=e[0],t=e[1];a.classList.add("usa-summary-box__heading"),t.classList.add("usa-summary-box__text");let o=Array.from(this.el.children);this.headlineText=o.find((e=>"headline"===e.slot)).textContent.trim()}render(){return h(Host,{key:"
|
|
1
|
+
import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";const vaSummaryBoxCss='.usa-summary-box{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;color:#1b1b1b;background-color:#e7f6f8;border-radius:0.25rem;border:1px #99deea solid;padding:1.5rem;position:relative}.usa-summary-box .usa-list:last-child{margin-bottom:0}*+.usa-summary-box{margin-top:1rem}.usa-summary-box__heading{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.46rem;line-height:1.1;margin-top:0;margin-bottom:0.5rem}.usa-summary-box__text{margin-bottom:0;margin-top:0}.usa-summary-box__text:only-child{margin-bottom:1px;padding-top:0.25rem}.usa-summary-box__link{color:#005ea2}.usa-summary-box__link:visited{color:#54278f}.usa-summary-box__link:hover,.usa-summary-box__link:active{color:#1a4480}.usa-summary-box__link[href^="#"]:visited{color:#005ea2}.usa-summary-box__link[href^="#"]:hover{color:#1a4480}:host{display:block}::slotted([slot=headline]){font-family:var(--font-serif);margin-top:0 !important}::slotted(p){font-family:var(--font-source-sans);margin-bottom:0 !important;margin-top:0 !important;padding-bottom:0.5em}::slotted(ul){margin:0 0 0.5em 1.5em !important;padding:0 !important}::slotted(li){list-style:square;margin:0}',VaSummaryBoxStyle0=vaSummaryBoxCss,VaSummaryBox$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.headlineText=null}componentWillLoad(){let e=Array.from(this.el.children);this.headlineText=e.find((e=>"headline"===e.slot)).textContent.trim()}componentDidLoad(){const e=this.el.shadowRoot.querySelectorAll("slot"),a=e[0],t=e[1];a.classList.add("usa-summary-box__heading"),t.classList.add("usa-summary-box__text");let o=Array.from(this.el.children);this.headlineText=o.find((e=>"headline"===e.slot)).textContent.trim()}render(){return h(Host,{key:"72dabef1ef580945b794cdf700ec5535bf1c4bc0"},h("div",{key:"3b19916b6d4adb1795dd19aeaa45e353f7fef9f2",class:"usa-summary-box",role:"region","aria-label":this.headlineText},h("div",{key:"d121d943c98936cfb21b43f5f17f1e1699a4d040",class:"usa-summary-box__body"},h("slot",{key:"93ab60d2807ba49ea18562ec323fe7a0a748f089",name:"headline"}),h("slot",{key:"8dbcefb5643e86758877747c43625a1f55ae8694"}))))}get el(){return this}static get style(){return VaSummaryBoxStyle0}},[1,"va-summary-box",{headlineText:[32]}]);function defineCustomElement$1(){"undefined"!=typeof customElements&&["va-summary-box"].forEach((e=>{"va-summary-box"===e&&(customElements.get(e)||customElements.define(e,VaSummaryBox$1))}))}const VaSummaryBox=VaSummaryBox$1,defineCustomElement=defineCustomElement$1;export{VaSummaryBox,defineCustomElement};
|