@genesislcap/foundation-ui 15.1.0 → 15.2.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.
@@ -12,7 +12,7 @@
12
12
  "type": {
13
13
  "text": "object"
14
14
  },
15
- "default": "{\n foundationAccordion,\n foundationAiCriteriaSearch,\n foundationAiIndicator,\n foundationAccordionItem,\n foundationActionsMenu,\n foundationAnchor,\n foundationAnchoredRegion,\n foundationAvatar,\n foundationBadge,\n foundationBanner,\n foundationBreadcrumb,\n foundationBreadcrumbItem,\n foundationButton,\n foundationCalendar,\n foundationCard,\n foundationCategorizedMultiselect,\n foundationCheckbox,\n foundationCombobox,\n foundationConnectionIndicator,\n foundationDataGrid,\n foundationDataGridCell,\n foundationDataGridRow,\n foundationDatePicker,\n foundationDesignSystemProvider,\n foundationDialog,\n foundationDisclosure,\n foundationDivider,\n foundationDropdownMenu,\n foundationErrorBanner,\n foundationErrorBoundary,\n foundationErrorDialog,\n foundationFileReader,\n foundationFileUpload,\n foundationFilter,\n foundationFilterBar,\n foundationFlexLayout,\n foundationFlipper,\n foundationFlyout,\n foundationGridLayout,\n foundationGridLayoutItem,\n foundationHorizontalScroll,\n foundationIcon,\n foundationListbox,\n foundationListboxOption,\n foundationMenu,\n foundationMenuItem,\n foundationModal,\n foundationMultiselect,\n foundationNumberField,\n foundationOptgroup,\n foundationPill,\n foundationPopper,\n foundationProgress,\n foundationProgressRing,\n foundationRadio,\n foundationRadioGroup,\n foundationScheduler,\n foundationSchedulerCronBuilder,\n foundationSchedulerTimezone,\n foundationSearchBar,\n foundationSearchBarCombobox,\n foundationSegmentedControl,\n foundationSegmentedItem,\n foundationSelect,\n foundationSkeleton,\n foundationSlider,\n foundationSliderLabel,\n foundationSnackbar,\n foundationStackingIcons,\n foundationStatusPill,\n foundationEnvironmentIndicator,\n foundationStepperTab,\n foundationStepperTabPanel,\n foundationSwitch,\n foundationSystemHealthOverlay,\n foundationTab,\n foundationTabPanel,\n foundationTabs,\n foundationTextArea,\n foundationTextField,\n foundationToast,\n foundationToolbar,\n foundationTooltip,\n foundationTreeItem,\n foundationTreeView,\n foundationUrlInput,\n foundationSectionNavigator,\n register(container?: Container, ...rest: any[]) {\n if (!container) {\n // preserve backward compatibility with code that loops through\n // the values of this object and calls them as funcs with no args\n return;\n }\n\n for (const key in this) {\n if (key === 'register') {\n continue;\n }\n\n this[key]().register(container, ...rest);\n }\n },\n}"
15
+ "default": "{\n foundationAccordion,\n foundationAiCriteriaSearch,\n foundationAiIndicator,\n foundationAccordionItem,\n foundationActionsMenu,\n foundationAnchor,\n foundationAnchoredRegion,\n foundationAvatar,\n foundationBadge,\n foundationBanner,\n foundationBreadcrumb,\n foundationBreadcrumbItem,\n foundationButton,\n foundationCalendar,\n foundationCard,\n foundationCategorizedMultiselect,\n foundationCheckbox,\n foundationCombobox,\n foundationConnectionIndicator,\n foundationDataGrid,\n foundationDataGridCell,\n foundationDataGridRow,\n foundationDatePicker,\n foundationDesignSystemProvider,\n foundationDialog,\n foundationDisclosure,\n foundationDivider,\n foundationDropdownMenu,\n foundationErrorBanner,\n foundationErrorBoundary,\n foundationErrorDialog,\n foundationFileReader,\n foundationFileUpload,\n foundationFilter,\n foundationFilterBar,\n foundationFlexLayout,\n foundationFlipper,\n foundationFlyout,\n foundationGridLayout,\n foundationGridLayoutItem,\n foundationHorizontalScroll,\n foundationIcon,\n foundationListbox,\n foundationListboxOption,\n foundationMenu,\n foundationMenuItem,\n foundationModal,\n foundationMultiselect,\n foundationNumberField,\n foundationOptgroup,\n foundationPill,\n foundationPopper,\n foundationProgress,\n foundationProgressRing,\n foundationRadio,\n foundationRadioGroup,\n foundationScheduler,\n foundationSchedulerCronBuilder,\n foundationSchedulerTimezone,\n foundationSearchBar,\n foundationSearchBarCombobox,\n foundationSegmentedControl,\n foundationSegmentedItem,\n foundationSelect,\n foundationSkeleton,\n foundationSlider,\n foundationSliderLabel,\n foundationSnackbar,\n foundationStackingIcons,\n foundationStatusPill,\n foundationEnvironmentIndicator,\n foundationStepperTab,\n foundationStepperTabPanel,\n foundationSwitch,\n foundationSystemHealthOverlay,\n foundationTab,\n foundationTabPanel,\n foundationTabs,\n foundationTextArea,\n foundationTextField,\n foundationToast,\n foundationToolbar,\n foundationTooltip,\n foundationTreeItem,\n foundationTreeView,\n foundationUrlInput,\n foundationVerificationCodeInput,\n foundationSectionNavigator,\n register(container?: Container, ...rest: any[]) {\n if (!container) {\n // preserve backward compatibility with code that loops through\n // the values of this object and calls them as funcs with no args\n return;\n }\n\n for (const key in this) {\n if (key === 'register') {\n continue;\n }\n\n this[key]().register(container, ...rest);\n }\n },\n}"
16
16
  }
17
17
  ],
18
18
  "exports": [
@@ -867,6 +867,14 @@
867
867
  "name": "getPrefix",
868
868
  "module": "./utils/dom"
869
869
  }
870
+ },
871
+ {
872
+ "kind": "js",
873
+ "name": "*",
874
+ "declaration": {
875
+ "name": "*",
876
+ "package": "./verification-code-input"
877
+ }
870
878
  }
871
879
  ]
872
880
  },
@@ -59123,6 +59131,779 @@
59123
59131
  }
59124
59132
  ]
59125
59133
  },
59134
+ {
59135
+ "kind": "javascript-module",
59136
+ "path": "src/verification-code-input/index.ts",
59137
+ "declarations": [],
59138
+ "exports": [
59139
+ {
59140
+ "kind": "js",
59141
+ "name": "*",
59142
+ "declaration": {
59143
+ "name": "*",
59144
+ "package": "./verification-code-input"
59145
+ }
59146
+ },
59147
+ {
59148
+ "kind": "js",
59149
+ "name": "*",
59150
+ "declaration": {
59151
+ "name": "*",
59152
+ "package": "./verification-code-input.template"
59153
+ }
59154
+ },
59155
+ {
59156
+ "kind": "js",
59157
+ "name": "*",
59158
+ "declaration": {
59159
+ "name": "*",
59160
+ "package": "./verification-code-input.styles"
59161
+ }
59162
+ }
59163
+ ]
59164
+ },
59165
+ {
59166
+ "kind": "javascript-module",
59167
+ "path": "src/verification-code-input/verification-code-input.styles.ts",
59168
+ "declarations": [
59169
+ {
59170
+ "kind": "variable",
59171
+ "name": "foundationVerificationCodeInputStyles",
59172
+ "type": {
59173
+ "text": "ElementStyles"
59174
+ },
59175
+ "default": "css`\n :host {\n display: block;\n font-family: var(--body-font);\n outline: none;\n }\n\n .label {\n display: block;\n color: var(--neutral-foreground-rest);\n cursor: pointer;\n font-size: var(--type-ramp-base-font-size);\n line-height: var(--type-ramp-base-line-height);\n margin-bottom: 4px;\n }\n\n .label-hidden {\n display: none;\n }\n\n :host([readonly]) .label {\n cursor: var(--disabled-cursor);\n }\n\n .container {\n display: flex;\n gap: calc(var(--design-unit) * 1px);\n align-items: center;\n }\n\n .digit {\n display: inline-block;\n box-sizing: border-box;\n outline: none;\n min-width: calc(\n (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px\n );\n }\n\n .digit .root {\n box-sizing: border-box;\n position: relative;\n display: flex;\n flex-direction: row;\n align-items: center;\n color: var(--neutral-foreground-rest);\n background: var(--neutral-fill-input-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest);\n height: calc(\n (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px\n );\n }\n\n .digit .control {\n appearance: none;\n font: inherit;\n background: transparent;\n border: 0;\n color: inherit;\n height: calc(100% - 4px);\n width: 100%;\n margin-top: auto;\n margin-bottom: auto;\n padding: 0 calc(var(--design-unit) * 2px + 1px);\n font-size: var(--type-ramp-base-font-size);\n line-height: var(--type-ramp-base-line-height);\n text-align: center;\n outline: none;\n color-scheme: ${activeColorScheme};\n }\n\n .digit[appearance='filled'] .root {\n background: var(--neutral-fill-rest);\n }\n\n .digit.error .root {\n border-color: var(--error-fill-rest);\n }\n\n .digit.disabled {\n opacity: var(--disabled-opacity);\n cursor: var(--disabled-cursor);\n }\n\n .digit.disabled .control {\n cursor: var(--disabled-cursor);\n }\n\n .digit:hover:not(.disabled) .root {\n background: var(--neutral-fill-input-hover);\n border-color: var(--accent-fill-hover);\n }\n\n .digit:focus-within:not(.disabled) .root {\n border-color: var(--focus-stroke-outer);\n box-shadow: 0 0 0 calc(var(--focus-stroke-width) * 1px) var(--focus-stroke-outer) inset;\n }\n\n .digit[appearance='filled']:hover:not(.disabled) .root {\n background: var(--neutral-fill-hover);\n }\n\n ${sharedFieldStyles}\n`"
59176
+ }
59177
+ ],
59178
+ "exports": [
59179
+ {
59180
+ "kind": "js",
59181
+ "name": "foundationVerificationCodeInputStyles",
59182
+ "declaration": {
59183
+ "name": "foundationVerificationCodeInputStyles",
59184
+ "module": "src/verification-code-input/verification-code-input.styles.ts"
59185
+ }
59186
+ }
59187
+ ]
59188
+ },
59189
+ {
59190
+ "kind": "javascript-module",
59191
+ "path": "src/verification-code-input/verification-code-input.template.ts",
59192
+ "declarations": [
59193
+ {
59194
+ "kind": "variable",
59195
+ "name": "foundationVerificationCodeInputTemplate",
59196
+ "default": "html<VerificationCodeInput>`\n <label\n part=\"label\"\n id=\"${(x) => x.labelId}\"\n for=\"${(x) => x.getControlId(0)}\"\n class=\"${(x) =>\n x.defaultSlottedNodes && x.defaultSlottedNodes.length ? 'label' : 'label label-hidden'}\"\n >\n <slot\n ${slotted({\n property: 'defaultSlottedNodes',\n filter: whitespaceFilter,\n })}\n ></slot>\n </label>\n <div\n class=\"container\"\n role=\"group\"\n aria-labelledby=\"${(x) => (x.hasLabel ? x.labelId : void 0)}\"\n aria-label=\"${(x) => (x.hasLabel ? void 0 : 'Verification code')}\"\n >\n ${repeat(\n (x) => x.digitsIndexes,\n html`\n <div\n class=\"digit ${(x, c) => (c.parent as VerificationCodeInput).digitClassnames}\"\n data-digit-index=\"${(x) => x}\"\n appearance=\"${(x, c) => (c.parent as VerificationCodeInput).appearance}\"\n >\n <div class=\"root\" part=\"root\">\n <div class=\"control-field\">\n <input\n class=\"control\"\n part=\"control\"\n type=\"text\"\n inputmode=\"numeric\"\n pattern=\"[0-9]*\"\n name=\"${(x, c) => (c.parent as VerificationCodeInput).getControlId(x)}\"\n id=\"${(x, c) => (c.parent as VerificationCodeInput).getControlId(x)}\"\n autocomplete=\"${(x) => (x === 0 ? 'one-time-code' : 'off')}\"\n data-test-id=\"${(x, c) => (c.parent as VerificationCodeInput).getControlId(x)}\"\n title=\"Only numbers are allowed\"\n maxlength=\"1\"\n ?autofocus=\"${(x, c) => (c.parent as VerificationCodeInput).autofocus && x === 0}\"\n ?readonly=\"${(x, c) => (c.parent as VerificationCodeInput).readOnly}\"\n ?disabled=\"${(x, c) =>\n (c.parent as VerificationCodeInput).disabled ||\n (c.parent as VerificationCodeInput).readOnly}\"\n aria-required=\"${(x, c) => (c.parent as VerificationCodeInput).required}\"\n aria-invalid=\"${(x, c) => (c.parent as VerificationCodeInput).error}\"\n />\n </div>\n </div>\n </div>\n `,\n )}\n </div>\n`"
59197
+ }
59198
+ ],
59199
+ "exports": [
59200
+ {
59201
+ "kind": "js",
59202
+ "name": "foundationVerificationCodeInputTemplate",
59203
+ "declaration": {
59204
+ "name": "foundationVerificationCodeInputTemplate",
59205
+ "module": "src/verification-code-input/verification-code-input.template.ts"
59206
+ }
59207
+ }
59208
+ ]
59209
+ },
59210
+ {
59211
+ "kind": "javascript-module",
59212
+ "path": "src/verification-code-input/verification-code-input.ts",
59213
+ "declarations": [
59214
+ {
59215
+ "kind": "variable",
59216
+ "name": "foundationVerificationCodeInputShadowOptions",
59217
+ "type": {
59218
+ "text": "ShadowRootInit"
59219
+ },
59220
+ "default": "{\n mode: 'open',\n delegatesFocus: true,\n}"
59221
+ },
59222
+ {
59223
+ "kind": "variable",
59224
+ "name": "defaultVerificationCodeInputConfig",
59225
+ "type": {
59226
+ "text": "object"
59227
+ },
59228
+ "default": "{}"
59229
+ },
59230
+ {
59231
+ "kind": "class",
59232
+ "description": "Multi-digit verification code input for OTP / 2FA flows.\n\nForm-associated (FAST `FormAssociated`): host `name` / `required` / `value` participate\nin native HTML form validation and submission like TextField.",
59233
+ "name": "VerificationCodeInput",
59234
+ "members": [
59235
+ {
59236
+ "kind": "field",
59237
+ "name": "values",
59238
+ "type": {
59239
+ "text": "string[]"
59240
+ },
59241
+ "default": "[]",
59242
+ "description": "Per-digit values indexed from `0` to `digits - 1`."
59243
+ },
59244
+ {
59245
+ "kind": "field",
59246
+ "name": "defaultSlottedNodes",
59247
+ "description": "Slotted label content; when empty the label is visually hidden."
59248
+ },
59249
+ {
59250
+ "kind": "field",
59251
+ "name": "controlListeners",
59252
+ "type": {
59253
+ "text": "Map<HTMLInputElement, ControlListeners>"
59254
+ },
59255
+ "privacy": "private",
59256
+ "readonly": true,
59257
+ "default": "new Map()"
59258
+ },
59259
+ {
59260
+ "kind": "field",
59261
+ "name": "syncingFromDigits",
59262
+ "type": {
59263
+ "text": "boolean"
59264
+ },
59265
+ "privacy": "private",
59266
+ "default": "false",
59267
+ "description": "Skip digit re-sync when `value` is updated from digit entry (`commitValues`)."
59268
+ },
59269
+ {
59270
+ "kind": "field",
59271
+ "name": "id",
59272
+ "type": {
59273
+ "text": "string"
59274
+ },
59275
+ "description": "Optional host id used as a prefix for digit input ids (`{id}-0`, `{id}-1`, …)\nand the associated label element."
59276
+ },
59277
+ {
59278
+ "kind": "field",
59279
+ "name": "appearance",
59280
+ "type": {
59281
+ "text": "string"
59282
+ },
59283
+ "default": "'outline'",
59284
+ "description": "Visual treatment applied to each digit field.",
59285
+ "privacy": "public"
59286
+ },
59287
+ {
59288
+ "kind": "field",
59289
+ "name": "digits",
59290
+ "type": {
59291
+ "text": "number"
59292
+ },
59293
+ "default": "6",
59294
+ "description": "Number of single-character digit fields to render.",
59295
+ "privacy": "public"
59296
+ },
59297
+ {
59298
+ "kind": "field",
59299
+ "name": "readOnly",
59300
+ "type": {
59301
+ "text": "boolean"
59302
+ },
59303
+ "default": "false",
59304
+ "description": "When true, digit fields are non-interactive.",
59305
+ "privacy": "public"
59306
+ },
59307
+ {
59308
+ "kind": "field",
59309
+ "name": "autofocus",
59310
+ "type": {
59311
+ "text": "boolean"
59312
+ },
59313
+ "default": "false",
59314
+ "description": "When true, focuses the first digit on connect (and after SPA route commit when hosted that way).",
59315
+ "privacy": "public"
59316
+ },
59317
+ {
59318
+ "kind": "field",
59319
+ "name": "error",
59320
+ "type": {
59321
+ "text": "boolean"
59322
+ },
59323
+ "default": "false",
59324
+ "description": "When true, applies the error visual state to each digit field.",
59325
+ "privacy": "public"
59326
+ },
59327
+ {
59328
+ "kind": "field",
59329
+ "name": "digitsIndexes",
59330
+ "type": {
59331
+ "text": "number[]"
59332
+ },
59333
+ "privacy": "public",
59334
+ "readonly": true
59335
+ },
59336
+ {
59337
+ "kind": "field",
59338
+ "name": "controlIdPrefix",
59339
+ "type": {
59340
+ "text": "string"
59341
+ },
59342
+ "privacy": "public",
59343
+ "readonly": true
59344
+ },
59345
+ {
59346
+ "kind": "field",
59347
+ "name": "labelId",
59348
+ "type": {
59349
+ "text": "string"
59350
+ },
59351
+ "privacy": "public",
59352
+ "readonly": true
59353
+ },
59354
+ {
59355
+ "kind": "field",
59356
+ "name": "hasLabel",
59357
+ "type": {
59358
+ "text": "boolean"
59359
+ },
59360
+ "privacy": "public",
59361
+ "readonly": true
59362
+ },
59363
+ {
59364
+ "kind": "method",
59365
+ "name": "getControlId",
59366
+ "privacy": "public",
59367
+ "return": {
59368
+ "type": {
59369
+ "text": "string"
59370
+ }
59371
+ },
59372
+ "parameters": [
59373
+ {
59374
+ "name": "index",
59375
+ "type": {
59376
+ "text": "number"
59377
+ }
59378
+ }
59379
+ ]
59380
+ },
59381
+ {
59382
+ "kind": "method",
59383
+ "name": "clear",
59384
+ "privacy": "public",
59385
+ "return": {
59386
+ "type": {
59387
+ "text": "void"
59388
+ }
59389
+ },
59390
+ "description": "Clears digits, emits `change`, and focuses the first field when connected."
59391
+ },
59392
+ {
59393
+ "kind": "method",
59394
+ "name": "focus",
59395
+ "privacy": "public",
59396
+ "return": {
59397
+ "type": {
59398
+ "text": "void"
59399
+ }
59400
+ }
59401
+ },
59402
+ {
59403
+ "kind": "method",
59404
+ "name": "digitsChanged",
59405
+ "return": {
59406
+ "type": {
59407
+ "text": "void"
59408
+ }
59409
+ }
59410
+ },
59411
+ {
59412
+ "kind": "field",
59413
+ "name": "digitClassnames",
59414
+ "type": {
59415
+ "text": "string"
59416
+ },
59417
+ "privacy": "public",
59418
+ "readonly": true
59419
+ },
59420
+ {
59421
+ "kind": "method",
59422
+ "name": "sanitizeCode",
59423
+ "privacy": "private",
59424
+ "return": {
59425
+ "type": {
59426
+ "text": "string"
59427
+ }
59428
+ },
59429
+ "parameters": [
59430
+ {
59431
+ "name": "raw",
59432
+ "type": {
59433
+ "text": "unknown"
59434
+ }
59435
+ }
59436
+ ]
59437
+ },
59438
+ {
59439
+ "kind": "method",
59440
+ "name": "bindControlListeners",
59441
+ "privacy": "private",
59442
+ "return": {
59443
+ "type": {
59444
+ "text": "void"
59445
+ }
59446
+ }
59447
+ },
59448
+ {
59449
+ "kind": "method",
59450
+ "name": "unbindControlListeners",
59451
+ "privacy": "private",
59452
+ "return": {
59453
+ "type": {
59454
+ "text": "void"
59455
+ }
59456
+ }
59457
+ },
59458
+ {
59459
+ "kind": "method",
59460
+ "name": "onKeyDown",
59461
+ "privacy": "private",
59462
+ "return": {
59463
+ "type": {
59464
+ "text": "void"
59465
+ }
59466
+ },
59467
+ "parameters": [
59468
+ {
59469
+ "name": "event",
59470
+ "type": {
59471
+ "text": "KeyboardEvent"
59472
+ }
59473
+ },
59474
+ {
59475
+ "name": "index",
59476
+ "type": {
59477
+ "text": "number"
59478
+ }
59479
+ }
59480
+ ]
59481
+ },
59482
+ {
59483
+ "kind": "method",
59484
+ "name": "isBlockedCharacter",
59485
+ "privacy": "private",
59486
+ "return": {
59487
+ "type": {
59488
+ "text": "boolean"
59489
+ }
59490
+ },
59491
+ "parameters": [
59492
+ {
59493
+ "name": "event",
59494
+ "type": {
59495
+ "text": "KeyboardEvent"
59496
+ }
59497
+ }
59498
+ ]
59499
+ },
59500
+ {
59501
+ "kind": "method",
59502
+ "name": "onInput",
59503
+ "privacy": "private",
59504
+ "return": {
59505
+ "type": {
59506
+ "text": "void"
59507
+ }
59508
+ },
59509
+ "parameters": [
59510
+ {
59511
+ "name": "event",
59512
+ "type": {
59513
+ "text": "InputEvent"
59514
+ }
59515
+ },
59516
+ {
59517
+ "name": "index",
59518
+ "type": {
59519
+ "text": "number"
59520
+ }
59521
+ }
59522
+ ]
59523
+ },
59524
+ {
59525
+ "kind": "method",
59526
+ "name": "onPaste",
59527
+ "privacy": "private",
59528
+ "return": {
59529
+ "type": {
59530
+ "text": "void"
59531
+ }
59532
+ },
59533
+ "parameters": [
59534
+ {
59535
+ "name": "event",
59536
+ "type": {
59537
+ "text": "ClipboardEvent"
59538
+ }
59539
+ },
59540
+ {
59541
+ "name": "index",
59542
+ "type": {
59543
+ "text": "number"
59544
+ }
59545
+ }
59546
+ ]
59547
+ },
59548
+ {
59549
+ "kind": "method",
59550
+ "name": "handleBackspace",
59551
+ "privacy": "private",
59552
+ "return": {
59553
+ "type": {
59554
+ "text": "void"
59555
+ }
59556
+ },
59557
+ "parameters": [
59558
+ {
59559
+ "name": "index",
59560
+ "type": {
59561
+ "text": "number"
59562
+ }
59563
+ }
59564
+ ]
59565
+ },
59566
+ {
59567
+ "kind": "method",
59568
+ "name": "handleDelete",
59569
+ "privacy": "private",
59570
+ "return": {
59571
+ "type": {
59572
+ "text": "void"
59573
+ }
59574
+ },
59575
+ "parameters": [
59576
+ {
59577
+ "name": "index",
59578
+ "type": {
59579
+ "text": "number"
59580
+ }
59581
+ }
59582
+ ]
59583
+ },
59584
+ {
59585
+ "kind": "method",
59586
+ "name": "getIndexFromInput",
59587
+ "privacy": "private",
59588
+ "return": {
59589
+ "type": {
59590
+ "text": "number | null"
59591
+ }
59592
+ },
59593
+ "parameters": [
59594
+ {
59595
+ "name": "input",
59596
+ "type": {
59597
+ "text": "HTMLInputElement"
59598
+ }
59599
+ }
59600
+ ]
59601
+ },
59602
+ {
59603
+ "kind": "method",
59604
+ "name": "syncDigitsFromValue",
59605
+ "privacy": "private",
59606
+ "return": {
59607
+ "type": {
59608
+ "text": "void"
59609
+ }
59610
+ },
59611
+ "parameters": [
59612
+ {
59613
+ "name": "cleaned",
59614
+ "type": {
59615
+ "text": "string"
59616
+ }
59617
+ }
59618
+ ],
59619
+ "description": "Maps a sanitized code string into per-digit `values` and syncs the DOM when connected."
59620
+ },
59621
+ {
59622
+ "kind": "method",
59623
+ "name": "updateDigit",
59624
+ "privacy": "private",
59625
+ "return": {
59626
+ "type": {
59627
+ "text": "void"
59628
+ }
59629
+ },
59630
+ "parameters": [
59631
+ {
59632
+ "name": "index",
59633
+ "type": {
59634
+ "text": "number"
59635
+ }
59636
+ },
59637
+ {
59638
+ "name": "digit",
59639
+ "type": {
59640
+ "text": "string"
59641
+ }
59642
+ }
59643
+ ]
59644
+ },
59645
+ {
59646
+ "kind": "method",
59647
+ "name": "applyDigits",
59648
+ "privacy": "private",
59649
+ "return": {
59650
+ "type": {
59651
+ "text": "void"
59652
+ }
59653
+ },
59654
+ "parameters": [
59655
+ {
59656
+ "name": "raw",
59657
+ "type": {
59658
+ "text": "string"
59659
+ }
59660
+ },
59661
+ {
59662
+ "name": "startIndex",
59663
+ "type": {
59664
+ "text": "number"
59665
+ }
59666
+ }
59667
+ ]
59668
+ },
59669
+ {
59670
+ "kind": "method",
59671
+ "name": "commitValues",
59672
+ "privacy": "private",
59673
+ "return": {
59674
+ "type": {
59675
+ "text": "void"
59676
+ }
59677
+ },
59678
+ "parameters": [
59679
+ {
59680
+ "name": "nextValues",
59681
+ "type": {
59682
+ "text": "string[]"
59683
+ }
59684
+ }
59685
+ ],
59686
+ "description": "Pushes digit state into the form-associated `value` and emits change / complete."
59687
+ },
59688
+ {
59689
+ "kind": "method",
59690
+ "name": "syncFieldValues",
59691
+ "privacy": "private",
59692
+ "return": {
59693
+ "type": {
59694
+ "text": "void"
59695
+ }
59696
+ }
59697
+ },
59698
+ {
59699
+ "kind": "method",
59700
+ "name": "syncFieldValue",
59701
+ "privacy": "private",
59702
+ "return": {
59703
+ "type": {
59704
+ "text": "void"
59705
+ }
59706
+ },
59707
+ "parameters": [
59708
+ {
59709
+ "name": "index",
59710
+ "type": {
59711
+ "text": "number"
59712
+ }
59713
+ }
59714
+ ]
59715
+ },
59716
+ {
59717
+ "kind": "method",
59718
+ "name": "focusDigit",
59719
+ "privacy": "private",
59720
+ "return": {
59721
+ "type": {
59722
+ "text": "void"
59723
+ }
59724
+ },
59725
+ "parameters": [
59726
+ {
59727
+ "name": "index",
59728
+ "type": {
59729
+ "text": "number"
59730
+ }
59731
+ }
59732
+ ]
59733
+ },
59734
+ {
59735
+ "kind": "field",
59736
+ "name": "rootNode",
59737
+ "type": {
59738
+ "text": "ParentNode"
59739
+ },
59740
+ "privacy": "private",
59741
+ "readonly": true
59742
+ },
59743
+ {
59744
+ "kind": "method",
59745
+ "name": "getControlElement",
59746
+ "privacy": "private",
59747
+ "return": {
59748
+ "type": {
59749
+ "text": "HTMLInputElement | null"
59750
+ }
59751
+ },
59752
+ "parameters": [
59753
+ {
59754
+ "name": "index",
59755
+ "type": {
59756
+ "text": "number"
59757
+ }
59758
+ }
59759
+ ]
59760
+ },
59761
+ {
59762
+ "kind": "method",
59763
+ "name": "isComplete",
59764
+ "privacy": "private",
59765
+ "return": {
59766
+ "type": {
59767
+ "text": "boolean"
59768
+ }
59769
+ }
59770
+ },
59771
+ {
59772
+ "kind": "method",
59773
+ "name": "emitChange",
59774
+ "privacy": "private",
59775
+ "return": {
59776
+ "type": {
59777
+ "text": "void"
59778
+ }
59779
+ }
59780
+ },
59781
+ {
59782
+ "kind": "field",
59783
+ "name": "proxy"
59784
+ }
59785
+ ],
59786
+ "events": [
59787
+ {
59788
+ "description": "Fired when any digit changes. detail: `VerificationCodeInputEventDetail`",
59789
+ "name": "change"
59790
+ },
59791
+ {
59792
+ "description": "Fired when all digits are filled. detail: `VerificationCodeInputEventDetail`",
59793
+ "name": "complete"
59794
+ }
59795
+ ],
59796
+ "attributes": [
59797
+ {
59798
+ "name": "id",
59799
+ "type": {
59800
+ "text": "string"
59801
+ },
59802
+ "description": "Optional host id used as a prefix for digit input ids (`{id}-0`, `{id}-1`, …)\nand the associated label element.",
59803
+ "fieldName": "id"
59804
+ },
59805
+ {
59806
+ "name": "appearance",
59807
+ "type": {
59808
+ "text": "string"
59809
+ },
59810
+ "default": "'outline'",
59811
+ "description": "Visual treatment applied to each digit field.",
59812
+ "fieldName": "appearance"
59813
+ },
59814
+ {
59815
+ "name": "digits",
59816
+ "type": {
59817
+ "text": "number"
59818
+ },
59819
+ "default": "DEFAULT_DIGITS",
59820
+ "description": "Number of single-character digit fields to render.",
59821
+ "resolveInitializer": {
59822
+ "module": "src/verification-code-input/verification-code-input.ts"
59823
+ },
59824
+ "fieldName": "digits"
59825
+ },
59826
+ {
59827
+ "name": "readonly",
59828
+ "type": {
59829
+ "text": "boolean"
59830
+ },
59831
+ "default": "false",
59832
+ "description": "When true, digit fields are non-interactive.",
59833
+ "fieldName": "readOnly"
59834
+ },
59835
+ {
59836
+ "type": {
59837
+ "text": "boolean"
59838
+ },
59839
+ "default": "false",
59840
+ "description": "When true, focuses the first digit on connect (and after SPA route commit when hosted that way).",
59841
+ "fieldName": "autofocus"
59842
+ },
59843
+ {
59844
+ "type": {
59845
+ "text": "boolean"
59846
+ },
59847
+ "default": "false",
59848
+ "description": "When true, applies the error visual state to each digit field.",
59849
+ "fieldName": "error"
59850
+ }
59851
+ ],
59852
+ "mixins": [
59853
+ {
59854
+ "name": "FormAssociated",
59855
+ "package": "@microsoft/fast-foundation"
59856
+ }
59857
+ ],
59858
+ "superclass": {
59859
+ "name": "_VerificationCodeInput",
59860
+ "module": "src/verification-code-input/verification-code-input.ts"
59861
+ },
59862
+ "tagName": "%%prefix%%-verification-code-input",
59863
+ "customElement": true
59864
+ },
59865
+ {
59866
+ "kind": "variable",
59867
+ "name": "foundationVerificationCodeInput",
59868
+ "description": "The Foundation Verification Code Input",
59869
+ "privacy": "public"
59870
+ }
59871
+ ],
59872
+ "exports": [
59873
+ {
59874
+ "kind": "js",
59875
+ "name": "foundationVerificationCodeInputShadowOptions",
59876
+ "declaration": {
59877
+ "name": "foundationVerificationCodeInputShadowOptions",
59878
+ "module": "src/verification-code-input/verification-code-input.ts"
59879
+ }
59880
+ },
59881
+ {
59882
+ "kind": "js",
59883
+ "name": "defaultVerificationCodeInputConfig",
59884
+ "declaration": {
59885
+ "name": "defaultVerificationCodeInputConfig",
59886
+ "module": "src/verification-code-input/verification-code-input.ts"
59887
+ }
59888
+ },
59889
+ {
59890
+ "kind": "js",
59891
+ "name": "VerificationCodeInput",
59892
+ "declaration": {
59893
+ "name": "VerificationCodeInput",
59894
+ "module": "src/verification-code-input/verification-code-input.ts"
59895
+ }
59896
+ },
59897
+ {
59898
+ "kind": "js",
59899
+ "name": "foundationVerificationCodeInput",
59900
+ "declaration": {
59901
+ "name": "foundationVerificationCodeInput",
59902
+ "module": "src/verification-code-input/verification-code-input.ts"
59903
+ }
59904
+ }
59905
+ ]
59906
+ },
59126
59907
  {
59127
59908
  "kind": "javascript-module",
59128
59909
  "path": "src/_config/styles/colors.ts",