@department-of-veterans-affairs/component-library 50.4.0 → 51.0.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.
Files changed (99) hide show
  1. package/dist/0.app.bundle.js +1 -1
  2. package/dist/141.app.bundle.js +1 -1
  3. package/dist/1822.app.bundle.js +1 -1
  4. package/dist/1966.app.bundle.js +1 -1
  5. package/dist/2205.app.bundle.js +1 -1
  6. package/dist/2236.app.bundle.js +1 -1
  7. package/dist/2482.app.bundle.js +1 -1
  8. package/dist/251.app.bundle.js +1 -1
  9. package/dist/2986.app.bundle.js +1 -1
  10. package/dist/323.app.bundle.js +1 -1
  11. package/dist/3305.app.bundle.js +2 -0
  12. package/dist/3397.app.bundle.js +1 -1
  13. package/dist/3589.app.bundle.js +1 -1
  14. package/dist/4351.app.bundle.js +1 -1
  15. package/dist/4400.app.bundle.js +1 -1
  16. package/dist/4432.app.bundle.js +1 -1
  17. package/dist/4475.app.bundle.js +1 -1
  18. package/dist/4780.app.bundle.js +1 -1
  19. package/dist/5119.app.bundle.js +1 -1
  20. package/dist/5663.app.bundle.js +1 -1
  21. package/dist/5689.app.bundle.js +1 -1
  22. package/dist/5845.app.bundle.js +1 -1
  23. package/dist/5990.app.bundle.js +1 -1
  24. package/dist/6498.app.bundle.js +1 -1
  25. package/dist/6555.app.bundle.js +1 -1
  26. package/dist/6650.app.bundle.js +1 -1
  27. package/dist/6718.app.bundle.js +1 -1
  28. package/dist/6832.app.bundle.js +1 -1
  29. package/dist/7166.app.bundle.js +1 -1
  30. package/dist/7307.app.bundle.js +1 -1
  31. package/dist/7372.app.bundle.js +1 -1
  32. package/dist/7481.app.bundle.js +1 -1
  33. package/dist/7495.app.bundle.js +1 -1
  34. package/dist/7508.app.bundle.js +1 -0
  35. package/dist/7734.app.bundle.js +1 -1
  36. package/dist/8255.app.bundle.js +2 -0
  37. package/dist/8255.app.bundle.js.LICENSE.txt +5 -0
  38. package/dist/8463.app.bundle.js +1 -1
  39. package/dist/8913.app.bundle.js +1 -1
  40. package/dist/9186.app.bundle.js +1 -1
  41. package/dist/9474.app.bundle.js +1 -1
  42. package/dist/9496.app.bundle.js +1 -1
  43. package/dist/9851.app.bundle.js +1 -1
  44. package/dist/app.bundle.js +1 -1
  45. package/dist/components/index.d.ts +4 -2
  46. package/dist/components/index.js +1 -1
  47. package/dist/components/types/components.d.ts +253 -118
  48. package/dist/components/utils.js +1 -1
  49. package/dist/components/va-accordion-item2.js +1 -1
  50. package/dist/components/va-additional-info.js +1 -1
  51. package/dist/components/va-button-segmented.d.ts +11 -0
  52. package/dist/components/va-button-segmented.js +1 -0
  53. package/dist/components/va-card2.js +1 -1
  54. package/dist/components/va-checkbox-group2.js +1 -1
  55. package/dist/components/va-checkbox2.js +1 -1
  56. package/dist/components/va-combo-box2.js +4 -4
  57. package/dist/components/va-crisis-line-modal2.js +1 -1
  58. package/dist/components/va-file-input-multiple.js +1 -1
  59. package/dist/components/va-file-input2.js +1 -1
  60. package/dist/components/va-header-minimal.js +1 -1
  61. package/dist/components/va-icon2.js +1 -1
  62. package/dist/components/va-language-toggle.js +1 -1
  63. package/dist/components/va-link-action.js +1 -1
  64. package/dist/components/va-link2.js +1 -1
  65. package/dist/components/va-loading-indicator.js +1 -1
  66. package/dist/components/va-minimal-footer.js +1 -1
  67. package/dist/components/va-need-help.js +1 -1
  68. package/dist/components/va-official-gov-banner2.js +1 -1
  69. package/dist/components/va-omb-info.js +1 -1
  70. package/dist/components/va-privacy-agreement.js +1 -1
  71. package/dist/components/va-process-list-item.js +1 -1
  72. package/dist/components/va-process-list.js +1 -1
  73. package/dist/components/va-progress-bar2.js +1 -1
  74. package/dist/components/va-radio-option.js +1 -1
  75. package/dist/components/va-radio.js +1 -1
  76. package/dist/components/va-search-filter.js +1 -1
  77. package/dist/components/va-search-input.js +1 -1
  78. package/dist/components/va-segmented-progress-bar.js +1 -1
  79. package/dist/components/va-select2.js +1 -1
  80. package/dist/components/va-statement-of-truth.js +1 -1
  81. package/dist/components/va-summary-box.js +1 -1
  82. package/dist/components/va-table-inner2.js +1 -1
  83. package/dist/components/va-table-row.js +1 -1
  84. package/dist/components/va-table.js +1 -1
  85. package/dist/components/{va-input-telephone.d.ts → va-telephone-input.d.ts} +4 -4
  86. package/dist/components/va-telephone-input.js +1 -0
  87. package/dist/components/va-telephone2.js +1 -1
  88. package/dist/components/va-text-input2.js +1 -1
  89. package/dist/components/va-textarea.js +1 -1
  90. package/dist/main.css +1 -1
  91. package/dist/react-bindings/index.d.ts +2 -1
  92. package/dist/react-bindings/index.js +1 -1
  93. package/dist/react-bindings/index.js.map +1 -1
  94. package/dist/react-bindings/index.ts +2 -1
  95. package/package.json +2 -2
  96. package/dist/4775.app.bundle.js +0 -2
  97. package/dist/7373.app.bundle.js +0 -1
  98. package/dist/components/va-input-telephone.js +0 -1
  99. /package/dist/{4775.app.bundle.js.LICENSE.txt → 3305.app.bundle.js.LICENSE.txt} +0 -0
@@ -23,6 +23,8 @@ export { VaButtonIcon as VaButtonIcon } from '../types/components/va-button-icon
23
23
  export { defineCustomElement as defineCustomElementVaButtonIcon } from './va-button-icon';
24
24
  export { VaButtonPair as VaButtonPair } from '../types/components/va-button-pair/va-button-pair';
25
25
  export { defineCustomElement as defineCustomElementVaButtonPair } from './va-button-pair';
26
+ export { VaButtonSegmented as VaButtonSegmented } from '../types/components/va-button-segmented/va-button-segmented';
27
+ export { defineCustomElement as defineCustomElementVaButtonSegmented } from './va-button-segmented';
26
28
  export { VaCard as VaCard } from '../types/components/va-card/va-card';
27
29
  export { defineCustomElement as defineCustomElementVaCard } from './va-card';
28
30
  export { VaCheckbox as VaCheckbox } from '../types/components/va-checkbox/va-checkbox';
@@ -45,8 +47,6 @@ export { VaHeaderMinimal as VaHeaderMinimal } from '../types/components/va-heade
45
47
  export { defineCustomElement as defineCustomElementVaHeaderMinimal } from './va-header-minimal';
46
48
  export { VaIcon as VaIcon } from '../types/components/va-icon/va-icon';
47
49
  export { defineCustomElement as defineCustomElementVaIcon } from './va-icon';
48
- export { VaInputTelephone as VaInputTelephone } from '../types/components/va-input-telephone/va-input-telephone';
49
- export { defineCustomElement as defineCustomElementVaInputTelephone } from './va-input-telephone';
50
50
  export { VaLanguageToggle as VaLanguageToggle } from '../types/components/va-language-toggle/va-language-toggle';
51
51
  export { defineCustomElement as defineCustomElementVaLanguageToggle } from './va-language-toggle';
52
52
  export { VaLink as VaLink } from '../types/components/va-link/va-link';
@@ -111,6 +111,8 @@ export { VaTableRow as VaTableRow } from '../types/components/va-table/va-table-
111
111
  export { defineCustomElement as defineCustomElementVaTableRow } from './va-table-row';
112
112
  export { VaTelephone as VaTelephone } from '../types/components/va-telephone/va-telephone';
113
113
  export { defineCustomElement as defineCustomElementVaTelephone } from './va-telephone';
114
+ export { VaTelephoneInput as VaTelephoneInput } from '../types/components/va-telephone-input/va-telephone-input';
115
+ export { defineCustomElement as defineCustomElementVaTelephoneInput } from './va-telephone-input';
114
116
  export { VaTextInput as VaTextInput } from '../types/components/va-text-input/va-text-input';
115
117
  export { defineCustomElement as defineCustomElementVaTextInput } from './va-text-input';
116
118
  export { VaTextarea as VaTextarea } from '../types/components/va-textarea/va-textarea';
@@ -1 +1 @@
1
- export{getAssetPath,setAssetPath,setNonce,setPlatformOptions}from"@stencil/core/internal/client";import"./i18n-setup.js";export{C as CONTACTS,c as contactsMap}from"./contacts.js";export{VaAccordion,defineCustomElement as defineCustomElementVaAccordion}from"./va-accordion.js";export{VaAccordionItem,defineCustomElement as defineCustomElementVaAccordionItem}from"./va-accordion-item.js";export{VaAdditionalInfo,defineCustomElement as defineCustomElementVaAdditionalInfo}from"./va-additional-info.js";export{VaAlert,defineCustomElement as defineCustomElementVaAlert}from"./va-alert.js";export{VaAlertExpandable,defineCustomElement as defineCustomElementVaAlertExpandable}from"./va-alert-expandable.js";export{VaAlertSignIn,defineCustomElement as defineCustomElementVaAlertSignIn}from"./va-alert-sign-in.js";export{VaBackToTop,defineCustomElement as defineCustomElementVaBackToTop}from"./va-back-to-top.js";export{VaBanner,defineCustomElement as defineCustomElementVaBanner}from"./va-banner.js";export{VaBreadcrumbs,defineCustomElement as defineCustomElementVaBreadcrumbs}from"./va-breadcrumbs.js";export{VaButton,defineCustomElement as defineCustomElementVaButton}from"./va-button.js";export{VaButtonIcon,defineCustomElement as defineCustomElementVaButtonIcon}from"./va-button-icon.js";export{VaButtonPair,defineCustomElement as defineCustomElementVaButtonPair}from"./va-button-pair.js";export{VaCard,defineCustomElement as defineCustomElementVaCard}from"./va-card.js";export{VaCheckbox,defineCustomElement as defineCustomElementVaCheckbox}from"./va-checkbox.js";export{VaCheckboxGroup,defineCustomElement as defineCustomElementVaCheckboxGroup}from"./va-checkbox-group.js";export{VaComboBox,defineCustomElement as defineCustomElementVaComboBox}from"./va-combo-box.js";export{VaCrisisLineModal,defineCustomElement as defineCustomElementVaCrisisLineModal}from"./va-crisis-line-modal.js";export{VaCriticalAction,defineCustomElement as defineCustomElementVaCriticalAction}from"./va-critical-action.js";export{VaDate,defineCustomElement as defineCustomElementVaDate}from"./va-date.js";export{VaFileInput,defineCustomElement as defineCustomElementVaFileInput}from"./va-file-input.js";export{VaFileInputMultiple,defineCustomElement as defineCustomElementVaFileInputMultiple}from"./va-file-input-multiple.js";export{VaHeaderMinimal,defineCustomElement as defineCustomElementVaHeaderMinimal}from"./va-header-minimal.js";export{VaIcon,defineCustomElement as defineCustomElementVaIcon}from"./va-icon.js";export{VaInputTelephone,defineCustomElement as defineCustomElementVaInputTelephone}from"./va-input-telephone.js";export{VaLanguageToggle,defineCustomElement as defineCustomElementVaLanguageToggle}from"./va-language-toggle.js";export{VaLink,defineCustomElement as defineCustomElementVaLink}from"./va-link.js";export{VaLinkAction,defineCustomElement as defineCustomElementVaLinkAction}from"./va-link-action.js";export{VaLoadingIndicator,defineCustomElement as defineCustomElementVaLoadingIndicator}from"./va-loading-indicator.js";export{VaMaintenanceBanner,defineCustomElement as defineCustomElementVaMaintenanceBanner}from"./va-maintenance-banner.js";export{VaMemorableDate,defineCustomElement as defineCustomElementVaMemorableDate}from"./va-memorable-date.js";export{VaMinimalFooter,defineCustomElement as defineCustomElementVaMinimalFooter}from"./va-minimal-footer.js";export{VaModal,defineCustomElement as defineCustomElementVaModal}from"./va-modal.js";export{VaNeedHelp,defineCustomElement as defineCustomElementVaNeedHelp}from"./va-need-help.js";export{VaNotification,defineCustomElement as defineCustomElementVaNotification}from"./va-notification.js";export{VaOfficialGovBanner,defineCustomElement as defineCustomElementVaOfficialGovBanner}from"./va-official-gov-banner.js";export{VaOmbInfo,defineCustomElement as defineCustomElementVaOmbInfo}from"./va-omb-info.js";export{VaOnThisPage,defineCustomElement as defineCustomElementVaOnThisPage}from"./va-on-this-page.js";export{VaPagination,defineCustomElement as defineCustomElementVaPagination}from"./va-pagination.js";export{VaPrivacyAgreement,defineCustomElement as defineCustomElementVaPrivacyAgreement}from"./va-privacy-agreement.js";export{VaProcessList,defineCustomElement as defineCustomElementVaProcessList}from"./va-process-list.js";export{VaProcessListItem,defineCustomElement as defineCustomElementVaProcessListItem}from"./va-process-list-item.js";export{VaProgressBar,defineCustomElement as defineCustomElementVaProgressBar}from"./va-progress-bar.js";export{VaPromoBanner,defineCustomElement as defineCustomElementVaPromoBanner}from"./va-promo-banner.js";export{VaRadio,defineCustomElement as defineCustomElementVaRadio}from"./va-radio.js";export{VaRadioOption,defineCustomElement as defineCustomElementVaRadioOption}from"./va-radio-option.js";export{VaSearchFilter,defineCustomElement as defineCustomElementVaSearchFilter}from"./va-search-filter.js";export{VaSearchInput,defineCustomElement as defineCustomElementVaSearchInput}from"./va-search-input.js";export{VaSegmentedProgressBar,defineCustomElement as defineCustomElementVaSegmentedProgressBar}from"./va-segmented-progress-bar.js";export{VaSelect,defineCustomElement as defineCustomElementVaSelect}from"./va-select.js";export{VaServiceListItem,defineCustomElement as defineCustomElementVaServiceListItem}from"./va-service-list-item.js";export{VaStatementOfTruth,defineCustomElement as defineCustomElementVaStatementOfTruth}from"./va-statement-of-truth.js";export{VaSummaryBox,defineCustomElement as defineCustomElementVaSummaryBox}from"./va-summary-box.js";export{VaTable,defineCustomElement as defineCustomElementVaTable}from"./va-table.js";export{VaTableInner,defineCustomElement as defineCustomElementVaTableInner}from"./va-table-inner.js";export{VaTableRow,defineCustomElement as defineCustomElementVaTableRow}from"./va-table-row.js";export{VaTelephone,defineCustomElement as defineCustomElementVaTelephone}from"./va-telephone.js";export{VaTextInput,defineCustomElement as defineCustomElementVaTextInput}from"./va-text-input.js";export{VaTextarea,defineCustomElement as defineCustomElementVaTextarea}from"./va-textarea.js";export{i as i18next}from"./i18next.js";
1
+ export{getAssetPath,setAssetPath,setNonce,setPlatformOptions}from"@stencil/core/internal/client";import"./i18n-setup.js";export{C as CONTACTS,c as contactsMap}from"./contacts.js";export{VaAccordion,defineCustomElement as defineCustomElementVaAccordion}from"./va-accordion.js";export{VaAccordionItem,defineCustomElement as defineCustomElementVaAccordionItem}from"./va-accordion-item.js";export{VaAdditionalInfo,defineCustomElement as defineCustomElementVaAdditionalInfo}from"./va-additional-info.js";export{VaAlert,defineCustomElement as defineCustomElementVaAlert}from"./va-alert.js";export{VaAlertExpandable,defineCustomElement as defineCustomElementVaAlertExpandable}from"./va-alert-expandable.js";export{VaAlertSignIn,defineCustomElement as defineCustomElementVaAlertSignIn}from"./va-alert-sign-in.js";export{VaBackToTop,defineCustomElement as defineCustomElementVaBackToTop}from"./va-back-to-top.js";export{VaBanner,defineCustomElement as defineCustomElementVaBanner}from"./va-banner.js";export{VaBreadcrumbs,defineCustomElement as defineCustomElementVaBreadcrumbs}from"./va-breadcrumbs.js";export{VaButton,defineCustomElement as defineCustomElementVaButton}from"./va-button.js";export{VaButtonIcon,defineCustomElement as defineCustomElementVaButtonIcon}from"./va-button-icon.js";export{VaButtonPair,defineCustomElement as defineCustomElementVaButtonPair}from"./va-button-pair.js";export{VaButtonSegmented,defineCustomElement as defineCustomElementVaButtonSegmented}from"./va-button-segmented.js";export{VaCard,defineCustomElement as defineCustomElementVaCard}from"./va-card.js";export{VaCheckbox,defineCustomElement as defineCustomElementVaCheckbox}from"./va-checkbox.js";export{VaCheckboxGroup,defineCustomElement as defineCustomElementVaCheckboxGroup}from"./va-checkbox-group.js";export{VaComboBox,defineCustomElement as defineCustomElementVaComboBox}from"./va-combo-box.js";export{VaCrisisLineModal,defineCustomElement as defineCustomElementVaCrisisLineModal}from"./va-crisis-line-modal.js";export{VaCriticalAction,defineCustomElement as defineCustomElementVaCriticalAction}from"./va-critical-action.js";export{VaDate,defineCustomElement as defineCustomElementVaDate}from"./va-date.js";export{VaFileInput,defineCustomElement as defineCustomElementVaFileInput}from"./va-file-input.js";export{VaFileInputMultiple,defineCustomElement as defineCustomElementVaFileInputMultiple}from"./va-file-input-multiple.js";export{VaHeaderMinimal,defineCustomElement as defineCustomElementVaHeaderMinimal}from"./va-header-minimal.js";export{VaIcon,defineCustomElement as defineCustomElementVaIcon}from"./va-icon.js";export{VaLanguageToggle,defineCustomElement as defineCustomElementVaLanguageToggle}from"./va-language-toggle.js";export{VaLink,defineCustomElement as defineCustomElementVaLink}from"./va-link.js";export{VaLinkAction,defineCustomElement as defineCustomElementVaLinkAction}from"./va-link-action.js";export{VaLoadingIndicator,defineCustomElement as defineCustomElementVaLoadingIndicator}from"./va-loading-indicator.js";export{VaMaintenanceBanner,defineCustomElement as defineCustomElementVaMaintenanceBanner}from"./va-maintenance-banner.js";export{VaMemorableDate,defineCustomElement as defineCustomElementVaMemorableDate}from"./va-memorable-date.js";export{VaMinimalFooter,defineCustomElement as defineCustomElementVaMinimalFooter}from"./va-minimal-footer.js";export{VaModal,defineCustomElement as defineCustomElementVaModal}from"./va-modal.js";export{VaNeedHelp,defineCustomElement as defineCustomElementVaNeedHelp}from"./va-need-help.js";export{VaNotification,defineCustomElement as defineCustomElementVaNotification}from"./va-notification.js";export{VaOfficialGovBanner,defineCustomElement as defineCustomElementVaOfficialGovBanner}from"./va-official-gov-banner.js";export{VaOmbInfo,defineCustomElement as defineCustomElementVaOmbInfo}from"./va-omb-info.js";export{VaOnThisPage,defineCustomElement as defineCustomElementVaOnThisPage}from"./va-on-this-page.js";export{VaPagination,defineCustomElement as defineCustomElementVaPagination}from"./va-pagination.js";export{VaPrivacyAgreement,defineCustomElement as defineCustomElementVaPrivacyAgreement}from"./va-privacy-agreement.js";export{VaProcessList,defineCustomElement as defineCustomElementVaProcessList}from"./va-process-list.js";export{VaProcessListItem,defineCustomElement as defineCustomElementVaProcessListItem}from"./va-process-list-item.js";export{VaProgressBar,defineCustomElement as defineCustomElementVaProgressBar}from"./va-progress-bar.js";export{VaPromoBanner,defineCustomElement as defineCustomElementVaPromoBanner}from"./va-promo-banner.js";export{VaRadio,defineCustomElement as defineCustomElementVaRadio}from"./va-radio.js";export{VaRadioOption,defineCustomElement as defineCustomElementVaRadioOption}from"./va-radio-option.js";export{VaSearchFilter,defineCustomElement as defineCustomElementVaSearchFilter}from"./va-search-filter.js";export{VaSearchInput,defineCustomElement as defineCustomElementVaSearchInput}from"./va-search-input.js";export{VaSegmentedProgressBar,defineCustomElement as defineCustomElementVaSegmentedProgressBar}from"./va-segmented-progress-bar.js";export{VaSelect,defineCustomElement as defineCustomElementVaSelect}from"./va-select.js";export{VaServiceListItem,defineCustomElement as defineCustomElementVaServiceListItem}from"./va-service-list-item.js";export{VaStatementOfTruth,defineCustomElement as defineCustomElementVaStatementOfTruth}from"./va-statement-of-truth.js";export{VaSummaryBox,defineCustomElement as defineCustomElementVaSummaryBox}from"./va-summary-box.js";export{VaTable,defineCustomElement as defineCustomElementVaTable}from"./va-table.js";export{VaTableInner,defineCustomElement as defineCustomElementVaTableInner}from"./va-table-inner.js";export{VaTableRow,defineCustomElement as defineCustomElementVaTableRow}from"./va-table-row.js";export{VaTelephone,defineCustomElement as defineCustomElementVaTelephone}from"./va-telephone.js";export{VaTelephoneInput,defineCustomElement as defineCustomElementVaTelephoneInput}from"./va-telephone-input.js";export{VaTextInput,defineCustomElement as defineCustomElementVaTextInput}from"./va-text-input.js";export{VaTextarea,defineCustomElement as defineCustomElementVaTextarea}from"./va-textarea.js";export{i as i18next}from"./i18next.js";
@@ -6,15 +6,17 @@
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { Breadcrumb } from "./components/va-breadcrumbs/va-breadcrumbs";
9
+ import { ButtonItem } from "./components/va-button-segmented/va-button-segmented.types";
9
10
  import { UploadedFile } from "./components/va-file-input/uploadedFile";
10
- import { CountryCode } from "libphonenumber-js/min";
11
11
  import { Filter } from "./components/va-search-filter/va-search-filter";
12
12
  import { OptionalLink, ServiceAction, ServiceDetails } from "./components/va-service-list-item/va-service-list-item";
13
+ import { CountryCode } from "libphonenumber-js/min";
13
14
  export { Breadcrumb } from "./components/va-breadcrumbs/va-breadcrumbs";
15
+ export { ButtonItem } from "./components/va-button-segmented/va-button-segmented.types";
14
16
  export { UploadedFile } from "./components/va-file-input/uploadedFile";
15
- export { CountryCode } from "libphonenumber-js/min";
16
17
  export { Filter } from "./components/va-search-filter/va-search-filter";
17
18
  export { OptionalLink, ServiceAction, ServiceDetails } from "./components/va-service-list-item/va-service-list-item";
19
+ export { CountryCode } from "libphonenumber-js/min";
18
20
  export namespace Components {
19
21
  /**
20
22
  * @componentName Accordion
@@ -48,6 +50,10 @@ export namespace Components {
48
50
  * The accordion item header text
49
51
  */
50
52
  "header"?: string;
53
+ /**
54
+ * Optional text that will be read by screen readers in addition to the header text.
55
+ */
56
+ "headerSrOnly"?: string;
51
57
  /**
52
58
  * Header level for button wrapper. Must be between 1 and 6
53
59
  */
@@ -365,6 +371,30 @@ export namespace Components {
365
371
  */
366
372
  "update"?: boolean;
367
373
  }
374
+ /**
375
+ * @componentName Button Segmented
376
+ * @maturityCategory caution
377
+ * @maturityLevel candidate
378
+ * @guidanceHref button/button-segmented
379
+ */
380
+ interface VaButtonSegmented {
381
+ /**
382
+ * An array of objects defining the labels and values for each button. The recommended structure is: `{ label: string, value?: string }`, with the `label` property being required. The `value` property is optional and can be used to store additional information about the button. The maximum number of buttons allowed is four.
383
+ */
384
+ "buttons": Array<ButtonItem>;
385
+ /**
386
+ * If `true`, the component-library-analytics event is disabled.
387
+ */
388
+ "disableAnalytics"?: boolean;
389
+ /**
390
+ * The aria-label for the button group, used for accessibility. Not required, but recommended.
391
+ */
392
+ "label": string;
393
+ /**
394
+ * The index of the selected button.
395
+ */
396
+ "selected": number;
397
+ }
368
398
  /**
369
399
  * @componentName Card
370
400
  * @maturityCategory use
@@ -375,6 +405,10 @@ export namespace Components {
375
405
  * If `true`, the card will have a gray background.
376
406
  */
377
407
  "background"?: boolean;
408
+ /**
409
+ * If set, displays an icon at the top of the card in a blue circle. The value should be the icon name to use. Icons can be found at https://design.va.gov/components/icon
410
+ */
411
+ "iconName"?: string;
378
412
  /**
379
413
  * If `true`, a drop-shadow will be displayed with a white background.
380
414
  */
@@ -483,6 +517,10 @@ export namespace Components {
483
517
  * Insert a header with defined level inside the label (legend)
484
518
  */
485
519
  "labelHeaderLevel"?: string;
520
+ /**
521
+ * Optional text that will be read by screen readers in addition to the label text.
522
+ */
523
+ "labelSrOnly"?: string;
486
524
  /**
487
525
  * An optional message that will be read by screen readers when a checkbox is focused.
488
526
  */
@@ -786,43 +824,6 @@ export namespace Components {
786
824
  */
787
825
  "srtext"?: string;
788
826
  }
789
- /**
790
- * @componentName Input Telephone
791
- * @maturityCategory caution
792
- * @maturityLevel proposal
793
- * @guidanceHref form/input-telephone
794
- * @translations English
795
- */
796
- interface VaInputTelephone {
797
- /**
798
- * The telephone contact information
799
- */
800
- "contact"?: string;
801
- /**
802
- * The 2 letter ISO country code for a country
803
- */
804
- "country"?: CountryCode;
805
- /**
806
- * The error for the component
807
- */
808
- "error"?: string;
809
- /**
810
- * Header text for the component
811
- */
812
- "header"?: string;
813
- /**
814
- * Hint string text
815
- */
816
- "hint"?: string;
817
- /**
818
- * Whether the country select should be included. Set to true to exclude it.
819
- */
820
- "noCountry"?: boolean;
821
- /**
822
- * Render marker indicating field is required.
823
- */
824
- "required"?: boolean;
825
- }
826
827
  /**
827
828
  * @componentName Language Toggle
828
829
  * @maturityCategory caution
@@ -1843,6 +1844,10 @@ export namespace Components {
1843
1844
  * Prepends the country code to the given contact number. Do NOT include the '+'
1844
1845
  */
1845
1846
  "countryCode"?: string;
1847
+ /**
1848
+ * If `true`, doesn't fire the CustomEvent which can be used for analytics tracking.
1849
+ */
1850
+ "disableAnalytics"?: boolean;
1846
1851
  /**
1847
1852
  * Optional numeric string phone number extension
1848
1853
  */
@@ -1872,6 +1877,47 @@ export namespace Components {
1872
1877
  */
1873
1878
  "vanity"?: string;
1874
1879
  }
1880
+ /**
1881
+ * @componentName Telephone Input
1882
+ * @maturityCategory caution
1883
+ * @maturityLevel candidate
1884
+ * @guidanceHref form/telephone-input
1885
+ * @translations English
1886
+ */
1887
+ interface VaTelephoneInput {
1888
+ /**
1889
+ * The telephone contact information
1890
+ */
1891
+ "contact"?: string;
1892
+ /**
1893
+ * The 2 letter ISO country code for a country
1894
+ */
1895
+ "country"?: CountryCode;
1896
+ /**
1897
+ * The error for the component
1898
+ */
1899
+ "error"?: string;
1900
+ /**
1901
+ * Hint string text
1902
+ */
1903
+ "hint"?: string;
1904
+ /**
1905
+ * Label text for the component
1906
+ */
1907
+ "label"?: string;
1908
+ /**
1909
+ * Whether the country select should be included. Set to true to exclude it.
1910
+ */
1911
+ "noCountry"?: boolean;
1912
+ /**
1913
+ * Render marker indicating field is required.
1914
+ */
1915
+ "required"?: boolean;
1916
+ /**
1917
+ * If true, this prop instructs the component to display error messages in response to the internal error state. If false, error messages must be passed in from consumer.
1918
+ */
1919
+ "showInternalErrors"?: boolean;
1920
+ }
1875
1921
  /**
1876
1922
  * @nativeHandler onInput
1877
1923
  * @nativeHandler onBlur
@@ -2132,6 +2178,10 @@ export interface VaButtonPairCustomEvent<T> extends CustomEvent<T> {
2132
2178
  detail: T;
2133
2179
  target: HTMLVaButtonPairElement;
2134
2180
  }
2181
+ export interface VaButtonSegmentedCustomEvent<T> extends CustomEvent<T> {
2182
+ detail: T;
2183
+ target: HTMLVaButtonSegmentedElement;
2184
+ }
2135
2185
  export interface VaCheckboxCustomEvent<T> extends CustomEvent<T> {
2136
2186
  detail: T;
2137
2187
  target: HTMLVaCheckboxElement;
@@ -2156,10 +2206,6 @@ export interface VaFileInputMultipleCustomEvent<T> extends CustomEvent<T> {
2156
2206
  detail: T;
2157
2207
  target: HTMLVaFileInputMultipleElement;
2158
2208
  }
2159
- export interface VaInputTelephoneCustomEvent<T> extends CustomEvent<T> {
2160
- detail: T;
2161
- target: HTMLVaInputTelephoneElement;
2162
- }
2163
2209
  export interface VaLanguageToggleCustomEvent<T> extends CustomEvent<T> {
2164
2210
  detail: T;
2165
2211
  target: HTMLVaLanguageToggleElement;
@@ -2252,6 +2298,10 @@ export interface VaTelephoneCustomEvent<T> extends CustomEvent<T> {
2252
2298
  detail: T;
2253
2299
  target: HTMLVaTelephoneElement;
2254
2300
  }
2301
+ export interface VaTelephoneInputCustomEvent<T> extends CustomEvent<T> {
2302
+ detail: T;
2303
+ target: HTMLVaTelephoneInputElement;
2304
+ }
2255
2305
  export interface VaTextInputCustomEvent<T> extends CustomEvent<T> {
2256
2306
  detail: T;
2257
2307
  target: HTMLVaTextInputElement;
@@ -2513,6 +2563,30 @@ declare global {
2513
2563
  prototype: HTMLVaButtonPairElement;
2514
2564
  new (): HTMLVaButtonPairElement;
2515
2565
  };
2566
+ interface HTMLVaButtonSegmentedElementEventMap {
2567
+ "vaButtonClick": any;
2568
+ "component-library-analytics": any;
2569
+ }
2570
+ /**
2571
+ * @componentName Button Segmented
2572
+ * @maturityCategory caution
2573
+ * @maturityLevel candidate
2574
+ * @guidanceHref button/button-segmented
2575
+ */
2576
+ interface HTMLVaButtonSegmentedElement extends Components.VaButtonSegmented, HTMLStencilElement {
2577
+ addEventListener<K extends keyof HTMLVaButtonSegmentedElementEventMap>(type: K, listener: (this: HTMLVaButtonSegmentedElement, ev: VaButtonSegmentedCustomEvent<HTMLVaButtonSegmentedElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
2578
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2579
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2580
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
2581
+ removeEventListener<K extends keyof HTMLVaButtonSegmentedElementEventMap>(type: K, listener: (this: HTMLVaButtonSegmentedElement, ev: VaButtonSegmentedCustomEvent<HTMLVaButtonSegmentedElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
2582
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2583
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2584
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
2585
+ }
2586
+ var HTMLVaButtonSegmentedElement: {
2587
+ prototype: HTMLVaButtonSegmentedElement;
2588
+ new (): HTMLVaButtonSegmentedElement;
2589
+ };
2516
2590
  /**
2517
2591
  * @componentName Card
2518
2592
  * @maturityCategory use
@@ -2724,30 +2798,6 @@ declare global {
2724
2798
  prototype: HTMLVaIconElement;
2725
2799
  new (): HTMLVaIconElement;
2726
2800
  };
2727
- interface HTMLVaInputTelephoneElementEventMap {
2728
- "vaContact": any;
2729
- }
2730
- /**
2731
- * @componentName Input Telephone
2732
- * @maturityCategory caution
2733
- * @maturityLevel proposal
2734
- * @guidanceHref form/input-telephone
2735
- * @translations English
2736
- */
2737
- interface HTMLVaInputTelephoneElement extends Components.VaInputTelephone, HTMLStencilElement {
2738
- addEventListener<K extends keyof HTMLVaInputTelephoneElementEventMap>(type: K, listener: (this: HTMLVaInputTelephoneElement, ev: VaInputTelephoneCustomEvent<HTMLVaInputTelephoneElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
2739
- addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2740
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2741
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
2742
- removeEventListener<K extends keyof HTMLVaInputTelephoneElementEventMap>(type: K, listener: (this: HTMLVaInputTelephoneElement, ev: VaInputTelephoneCustomEvent<HTMLVaInputTelephoneElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
2743
- removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2744
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2745
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
2746
- }
2747
- var HTMLVaInputTelephoneElement: {
2748
- prototype: HTMLVaInputTelephoneElement;
2749
- new (): HTMLVaInputTelephoneElement;
2750
- };
2751
2801
  interface HTMLVaLanguageToggleElementEventMap {
2752
2802
  "vaLanguageToggle": any;
2753
2803
  "component-library-analytics": any;
@@ -3380,6 +3430,30 @@ declare global {
3380
3430
  prototype: HTMLVaTelephoneElement;
3381
3431
  new (): HTMLVaTelephoneElement;
3382
3432
  };
3433
+ interface HTMLVaTelephoneInputElementEventMap {
3434
+ "vaContact": any;
3435
+ }
3436
+ /**
3437
+ * @componentName Telephone Input
3438
+ * @maturityCategory caution
3439
+ * @maturityLevel candidate
3440
+ * @guidanceHref form/telephone-input
3441
+ * @translations English
3442
+ */
3443
+ interface HTMLVaTelephoneInputElement extends Components.VaTelephoneInput, HTMLStencilElement {
3444
+ addEventListener<K extends keyof HTMLVaTelephoneInputElementEventMap>(type: K, listener: (this: HTMLVaTelephoneInputElement, ev: VaTelephoneInputCustomEvent<HTMLVaTelephoneInputElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
3445
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
3446
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
3447
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
3448
+ removeEventListener<K extends keyof HTMLVaTelephoneInputElementEventMap>(type: K, listener: (this: HTMLVaTelephoneInputElement, ev: VaTelephoneInputCustomEvent<HTMLVaTelephoneInputElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
3449
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
3450
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
3451
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
3452
+ }
3453
+ var HTMLVaTelephoneInputElement: {
3454
+ prototype: HTMLVaTelephoneInputElement;
3455
+ new (): HTMLVaTelephoneInputElement;
3456
+ };
3383
3457
  interface HTMLVaTextInputElementEventMap {
3384
3458
  "component-library-analytics": any;
3385
3459
  }
@@ -3448,6 +3522,7 @@ declare global {
3448
3522
  "va-button": HTMLVaButtonElement;
3449
3523
  "va-button-icon": HTMLVaButtonIconElement;
3450
3524
  "va-button-pair": HTMLVaButtonPairElement;
3525
+ "va-button-segmented": HTMLVaButtonSegmentedElement;
3451
3526
  "va-card": HTMLVaCardElement;
3452
3527
  "va-checkbox": HTMLVaCheckboxElement;
3453
3528
  "va-checkbox-group": HTMLVaCheckboxGroupElement;
@@ -3459,7 +3534,6 @@ declare global {
3459
3534
  "va-file-input-multiple": HTMLVaFileInputMultipleElement;
3460
3535
  "va-header-minimal": HTMLVaHeaderMinimalElement;
3461
3536
  "va-icon": HTMLVaIconElement;
3462
- "va-input-telephone": HTMLVaInputTelephoneElement;
3463
3537
  "va-language-toggle": HTMLVaLanguageToggleElement;
3464
3538
  "va-link": HTMLVaLinkElement;
3465
3539
  "va-link-action": HTMLVaLinkActionElement;
@@ -3492,6 +3566,7 @@ declare global {
3492
3566
  "va-table-inner": HTMLVaTableInnerElement;
3493
3567
  "va-table-row": HTMLVaTableRowElement;
3494
3568
  "va-telephone": HTMLVaTelephoneElement;
3569
+ "va-telephone-input": HTMLVaTelephoneInputElement;
3495
3570
  "va-text-input": HTMLVaTextInputElement;
3496
3571
  "va-textarea": HTMLVaTextareaElement;
3497
3572
  }
@@ -3537,6 +3612,10 @@ declare namespace LocalJSX {
3537
3612
  * The accordion item header text
3538
3613
  */
3539
3614
  "header"?: string;
3615
+ /**
3616
+ * Optional text that will be read by screen readers in addition to the header text.
3617
+ */
3618
+ "headerSrOnly"?: string;
3540
3619
  /**
3541
3620
  * Header level for button wrapper. Must be between 1 and 6
3542
3621
  */
@@ -3910,6 +3989,38 @@ declare namespace LocalJSX {
3910
3989
  */
3911
3990
  "update"?: boolean;
3912
3991
  }
3992
+ /**
3993
+ * @componentName Button Segmented
3994
+ * @maturityCategory caution
3995
+ * @maturityLevel candidate
3996
+ * @guidanceHref button/button-segmented
3997
+ */
3998
+ interface VaButtonSegmented {
3999
+ /**
4000
+ * An array of objects defining the labels and values for each button. The recommended structure is: `{ label: string, value?: string }`, with the `label` property being required. The `value` property is optional and can be used to store additional information about the button. The maximum number of buttons allowed is four.
4001
+ */
4002
+ "buttons": Array<ButtonItem>;
4003
+ /**
4004
+ * If `true`, the component-library-analytics event is disabled.
4005
+ */
4006
+ "disableAnalytics"?: boolean;
4007
+ /**
4008
+ * The aria-label for the button group, used for accessibility. Not required, but recommended.
4009
+ */
4010
+ "label"?: string;
4011
+ /**
4012
+ * The event used to track usage of the component.
4013
+ */
4014
+ "onComponent-library-analytics"?: (event: VaButtonSegmentedCustomEvent<any>) => void;
4015
+ /**
4016
+ * Event emitted when selected button changes (a button is clicked).
4017
+ */
4018
+ "onVaButtonClick"?: (event: VaButtonSegmentedCustomEvent<any>) => void;
4019
+ /**
4020
+ * The index of the selected button.
4021
+ */
4022
+ "selected"?: number;
4023
+ }
3913
4024
  /**
3914
4025
  * @componentName Card
3915
4026
  * @maturityCategory use
@@ -3920,6 +4031,10 @@ declare namespace LocalJSX {
3920
4031
  * If `true`, the card will have a gray background.
3921
4032
  */
3922
4033
  "background"?: boolean;
4034
+ /**
4035
+ * If set, displays an icon at the top of the card in a blue circle. The value should be the icon name to use. Icons can be found at https://design.va.gov/components/icon
4036
+ */
4037
+ "iconName"?: string;
3923
4038
  /**
3924
4039
  * If `true`, a drop-shadow will be displayed with a white background.
3925
4040
  */
@@ -4036,6 +4151,10 @@ declare namespace LocalJSX {
4036
4151
  * Insert a header with defined level inside the label (legend)
4037
4152
  */
4038
4153
  "labelHeaderLevel"?: string;
4154
+ /**
4155
+ * Optional text that will be read by screen readers in addition to the label text.
4156
+ */
4157
+ "labelSrOnly"?: string;
4039
4158
  /**
4040
4159
  * An optional message that will be read by screen readers when a checkbox is focused.
4041
4160
  */
@@ -4375,47 +4494,6 @@ declare namespace LocalJSX {
4375
4494
  */
4376
4495
  "srtext"?: string;
4377
4496
  }
4378
- /**
4379
- * @componentName Input Telephone
4380
- * @maturityCategory caution
4381
- * @maturityLevel proposal
4382
- * @guidanceHref form/input-telephone
4383
- * @translations English
4384
- */
4385
- interface VaInputTelephone {
4386
- /**
4387
- * The telephone contact information
4388
- */
4389
- "contact"?: string;
4390
- /**
4391
- * The 2 letter ISO country code for a country
4392
- */
4393
- "country"?: CountryCode;
4394
- /**
4395
- * The error for the component
4396
- */
4397
- "error"?: string;
4398
- /**
4399
- * Header text for the component
4400
- */
4401
- "header"?: string;
4402
- /**
4403
- * Hint string text
4404
- */
4405
- "hint"?: string;
4406
- /**
4407
- * Whether the country select should be included. Set to true to exclude it.
4408
- */
4409
- "noCountry"?: boolean;
4410
- /**
4411
- * The event emitted when the contact changes
4412
- */
4413
- "onVaContact"?: (event: VaInputTelephoneCustomEvent<any>) => void;
4414
- /**
4415
- * Render marker indicating field is required.
4416
- */
4417
- "required"?: boolean;
4418
- }
4419
4497
  /**
4420
4498
  * @componentName Language Toggle
4421
4499
  * @maturityCategory caution
@@ -5600,6 +5678,10 @@ declare namespace LocalJSX {
5600
5678
  * Prepends the country code to the given contact number. Do NOT include the '+'
5601
5679
  */
5602
5680
  "countryCode"?: string;
5681
+ /**
5682
+ * If `true`, doesn't fire the CustomEvent which can be used for analytics tracking.
5683
+ */
5684
+ "disableAnalytics"?: boolean;
5603
5685
  /**
5604
5686
  * Optional numeric string phone number extension
5605
5687
  */
@@ -5633,6 +5715,51 @@ declare namespace LocalJSX {
5633
5715
  */
5634
5716
  "vanity"?: string;
5635
5717
  }
5718
+ /**
5719
+ * @componentName Telephone Input
5720
+ * @maturityCategory caution
5721
+ * @maturityLevel candidate
5722
+ * @guidanceHref form/telephone-input
5723
+ * @translations English
5724
+ */
5725
+ interface VaTelephoneInput {
5726
+ /**
5727
+ * The telephone contact information
5728
+ */
5729
+ "contact"?: string;
5730
+ /**
5731
+ * The 2 letter ISO country code for a country
5732
+ */
5733
+ "country"?: CountryCode;
5734
+ /**
5735
+ * The error for the component
5736
+ */
5737
+ "error"?: string;
5738
+ /**
5739
+ * Hint string text
5740
+ */
5741
+ "hint"?: string;
5742
+ /**
5743
+ * Label text for the component
5744
+ */
5745
+ "label"?: string;
5746
+ /**
5747
+ * Whether the country select should be included. Set to true to exclude it.
5748
+ */
5749
+ "noCountry"?: boolean;
5750
+ /**
5751
+ * The event emitted when the contact changes
5752
+ */
5753
+ "onVaContact"?: (event: VaTelephoneInputCustomEvent<any>) => void;
5754
+ /**
5755
+ * Render marker indicating field is required.
5756
+ */
5757
+ "required"?: boolean;
5758
+ /**
5759
+ * If true, this prop instructs the component to display error messages in response to the internal error state. If false, error messages must be passed in from consumer.
5760
+ */
5761
+ "showInternalErrors"?: boolean;
5762
+ }
5636
5763
  /**
5637
5764
  * @nativeHandler onInput
5638
5765
  * @nativeHandler onBlur
@@ -5873,6 +6000,7 @@ declare namespace LocalJSX {
5873
6000
  "va-button": VaButton;
5874
6001
  "va-button-icon": VaButtonIcon;
5875
6002
  "va-button-pair": VaButtonPair;
6003
+ "va-button-segmented": VaButtonSegmented;
5876
6004
  "va-card": VaCard;
5877
6005
  "va-checkbox": VaCheckbox;
5878
6006
  "va-checkbox-group": VaCheckboxGroup;
@@ -5884,7 +6012,6 @@ declare namespace LocalJSX {
5884
6012
  "va-file-input-multiple": VaFileInputMultiple;
5885
6013
  "va-header-minimal": VaHeaderMinimal;
5886
6014
  "va-icon": VaIcon;
5887
- "va-input-telephone": VaInputTelephone;
5888
6015
  "va-language-toggle": VaLanguageToggle;
5889
6016
  "va-link": VaLink;
5890
6017
  "va-link-action": VaLinkAction;
@@ -5917,6 +6044,7 @@ declare namespace LocalJSX {
5917
6044
  "va-table-inner": VaTableInner;
5918
6045
  "va-table-row": VaTableRow;
5919
6046
  "va-telephone": VaTelephone;
6047
+ "va-telephone-input": VaTelephoneInput;
5920
6048
  "va-text-input": VaTextInput;
5921
6049
  "va-textarea": VaTextarea;
5922
6050
  }
@@ -6001,6 +6129,13 @@ declare module "@stencil/core" {
6001
6129
  * @guidanceHref button/button-pair
6002
6130
  */
6003
6131
  "va-button-pair": LocalJSX.VaButtonPair & JSXBase.HTMLAttributes<HTMLVaButtonPairElement>;
6132
+ /**
6133
+ * @componentName Button Segmented
6134
+ * @maturityCategory caution
6135
+ * @maturityLevel candidate
6136
+ * @guidanceHref button/button-segmented
6137
+ */
6138
+ "va-button-segmented": LocalJSX.VaButtonSegmented & JSXBase.HTMLAttributes<HTMLVaButtonSegmentedElement>;
6004
6139
  /**
6005
6140
  * @componentName Card
6006
6141
  * @maturityCategory use
@@ -6086,14 +6221,6 @@ declare module "@stencil/core" {
6086
6221
  * @maturityLevel available
6087
6222
  */
6088
6223
  "va-icon": LocalJSX.VaIcon & JSXBase.HTMLAttributes<HTMLVaIconElement>;
6089
- /**
6090
- * @componentName Input Telephone
6091
- * @maturityCategory caution
6092
- * @maturityLevel proposal
6093
- * @guidanceHref form/input-telephone
6094
- * @translations English
6095
- */
6096
- "va-input-telephone": LocalJSX.VaInputTelephone & JSXBase.HTMLAttributes<HTMLVaInputTelephoneElement>;
6097
6224
  /**
6098
6225
  * @componentName Language Toggle
6099
6226
  * @maturityCategory caution
@@ -6294,6 +6421,14 @@ declare module "@stencil/core" {
6294
6421
  * @maturityLevel best_practice
6295
6422
  */
6296
6423
  "va-telephone": LocalJSX.VaTelephone & JSXBase.HTMLAttributes<HTMLVaTelephoneElement>;
6424
+ /**
6425
+ * @componentName Telephone Input
6426
+ * @maturityCategory caution
6427
+ * @maturityLevel candidate
6428
+ * @guidanceHref form/telephone-input
6429
+ * @translations English
6430
+ */
6431
+ "va-telephone-input": LocalJSX.VaTelephoneInput & JSXBase.HTMLAttributes<HTMLVaTelephoneInputElement>;
6297
6432
  /**
6298
6433
  * @nativeHandler onInput
6299
6434
  * @nativeHandler onBlur
@@ -1 +1 @@
1
- import{Build}from"@stencil/core/internal/client";function isNumeric(e){return!Number.isNaN(parseFloat(e))}function getSlottedNodes(e,t,r="slot"){const n=e.shadowRoot.querySelector(r).assignedNodes();return null!==t?Array.from(n).filter((e=>e.nodeName.toLowerCase()===t)):Array.from(n)}function consoleDevError(e){Build.isDev&&!Build.isTesting&&console.error(e)}function plurality(e){return 1===e?"":"s"}function getCharacterMessage(e,t){if(void 0===e||""===e)return`${t} character${plurality(t)} allowed`;let r;if(e.length<=t){const n=t-e.length;r=`${n} character${plurality(n)} left`}else{const n=e.length-t;r=`${n} character${plurality(n)} over limit`}return r}function makeArray(e,t){return Array.from({length:t-e+1},((t,r)=>e+r))}const isElement=e=>e&&"object"==typeof e&&1===e.nodeType;function select(e,t){if("string"!=typeof e)return[];if(!t||!isElement(t))return[];const r=t.shadowRoot.querySelectorAll(e);return Array.from(r)}function selectOrMatches(e,t){const r=select(e,t);return"string"!=typeof e||isElement(t)&&t.matches(e)&&r.push(t),r}const Sanitizer={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return Sanitizer._entities[e]},escapeHTML:function(e){for(var t="",r=0;r<e.length;r++)t+=e[r],r+1<arguments.length&&(t+=String(arguments[r+1]||"").replace(Sanitizer._entity,Sanitizer.getEntity));return t}};function getHeaderLevel(e){let t=null;return t="string"==typeof e?parseInt(e,10):Math.floor(e),t>=1&&t<=6?`h${t}`:null}function isInteractiveLinkOrButton(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function isMessageSet(e){return e&&"false"!==e||!1}function isArguments(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function deepEquals(e,t){const r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(isArguments(e)||isArguments(t)){if(!isArguments(e)||!isArguments(t))return!1;const i=Array.prototype.slice;return deepEquals(i.call(e),i.call(t),r,n)}{if(e.constructor!==t.constructor)return!1;const i=Object.keys(e),o=Object.keys(t);if(0===i.length&&0===o.length)return!0;if(i.length!==o.length)return!1;let s,u=r.length;for(;u--;)if(r[u]===e)return n[u]===t;r.push(e),n.push(t),i.sort(),o.sort();for(let e=i.length-1;e>=0;e--)if(i[e]!==o[e])return!1;for(let o=i.length-1;o>=0;o--)if(s=i[o],!deepEquals(e[s],t[s],r,n))return!1;return r.pop(),n.pop(),!0}}function truncate(e,t,r){if(!e)return e;const n=document.createElement("canvas").getContext("2d");if(!n)return e;if(n.font=r,n.measureText(e).width<=t)return e;const i=n.measureText("...").width;let o=0,s=e.length,u=0;for(;o<=s;){const r=Math.floor((o+s)/2),a=e.substring(0,r);n.measureText(a).width+i<=t?(u=r,o=r+1):s=r-1}return e.substring(0,u).trim()+"..."}export{Sanitizer as S,getSlottedNodes as a,isNumeric as b,consoleDevError as c,deepEquals as d,getCharacterMessage as e,isInteractiveLinkOrButton as f,getHeaderLevel as g,isMessageSet as i,makeArray as m,selectOrMatches as s,truncate as t};
1
+ import{Build}from"@stencil/core/internal/client";function isNumeric(e){return!Number.isNaN(parseFloat(e))}function getSlottedNodes(e,t,r="slot"){const n=e.shadowRoot.querySelector(r).assignedNodes();return null!==t?Array.from(n).filter((e=>e.nodeName.toLowerCase()===t)):Array.from(n)}function consoleDevError(e){Build.isDev&&!Build.isTesting&&console.error(e)}function plurality(e){return 1===e?"":"s"}function getCharacterMessage(e,t){if(void 0===e||""===e)return`${t} character${plurality(t)} allowed`;let r;if(e.length<=t){const n=t-e.length;r=`${n} character${plurality(n)} left`}else{const n=e.length-t;r=`${n} character${plurality(n)} over limit`}return r}function makeArray(e,t){return Array.from({length:t-e+1},((t,r)=>e+r))}const isElement=e=>e&&"object"==typeof e&&1===e.nodeType;function select(e,t){if("string"!=typeof e)return[];if(!t||!isElement(t))return[];const r=t.shadowRoot.querySelectorAll(e);return Array.from(r)}function selectOrMatches(e,t){const r=select(e,t);return"string"!=typeof e||isElement(t)&&t.matches(e)&&r.push(t),r}const Sanitizer={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return Sanitizer._entities[e]},escapeHTML:function(e){for(var t="",r=0;r<e.length;r++)t+=e[r],r+1<arguments.length&&(t+=String(arguments[r+1]||"").replace(Sanitizer._entity,Sanitizer.getEntity));return t}};function getHeaderLevel(e){let t=null;return t="string"==typeof e?parseInt(e,10):Math.floor(e),t>=1&&t<=6?`h${t}`:null}function isInteractiveLinkOrButton(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function isMessageSet(e){return e&&"false"!==e||!1}function isArguments(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function deepEquals(e,t){const r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(isArguments(e)||isArguments(t)){if(!isArguments(e)||!isArguments(t))return!1;const i=Array.prototype.slice;return deepEquals(i.call(e),i.call(t),r,n)}{if(e.constructor!==t.constructor)return!1;const i=Object.keys(e),o=Object.keys(t);if(0===i.length&&0===o.length)return!0;if(i.length!==o.length)return!1;let s,l=r.length;for(;l--;)if(r[l]===e)return n[l]===t;r.push(e),n.push(t),i.sort(),o.sort();for(let e=i.length-1;e>=0;e--)if(i[e]!==o[e])return!1;for(let o=i.length-1;o>=0;o--)if(s=i[o],!deepEquals(e[s],t[s],r,n))return!1;return r.pop(),n.pop(),!0}}function getArticle(e,t=!0){const r=["a","i","e","o"];t&&r.push("u");const n=e.charAt(0).toLowerCase();return r.includes(n)?"an":"a"}export{Sanitizer as S,getSlottedNodes as a,isNumeric as b,consoleDevError as c,deepEquals as d,getArticle as e,getCharacterMessage as f,getHeaderLevel as g,isInteractiveLinkOrButton as h,isMessageSet as i,makeArray as m,selectOrMatches as s};