@nysds/components 1.16.0-alpha4 → 1.16.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.
@@ -155,7 +155,19 @@
155
155
  },
156
156
  "tagName": "nys-accordion",
157
157
  "customElement": true,
158
- "summary": "Container for accordion items with optional single-select and bordered styling."
158
+ "summary": "Container for accordion items with optional single-select and bordered styling.",
159
+ "examples": [
160
+ {
161
+ "title": "Basic accordion",
162
+ "code": "<nys-accordion>\n<nys-accordionitem heading=\"Section 1\">Content for section 1</nys-accordionitem>\n<nys-accordionitem heading=\"Section 2\">Content for section 2</nys-accordionitem>\n</nys-accordion>",
163
+ "lang": "html"
164
+ },
165
+ {
166
+ "title": "Single-select accordion",
167
+ "code": "<nys-accordion singleSelect bordered>\n<nys-accordionitem heading=\"FAQ 1\" expanded>Answer 1</nys-accordionitem>\n<nys-accordionitem heading=\"FAQ 2\">Answer 2</nys-accordionitem>\n</nys-accordion>",
168
+ "lang": "html"
169
+ }
170
+ ]
159
171
  }
160
172
  ],
161
173
  "exports": [
@@ -335,7 +347,14 @@
335
347
  },
336
348
  "tagName": "nys-accordionitem",
337
349
  "customElement": true,
338
- "summary": "Collapsible panel for use within nys-accordion with keyboard support."
350
+ "summary": "Collapsible panel for use within nys-accordion with keyboard support.",
351
+ "examples": [
352
+ {
353
+ "title": "Expanded item",
354
+ "code": "<nys-accordionitem heading=\"How do I apply?\" expanded>\n<p>Visit ny.gov and complete the online application.</p>\n</nys-accordionitem>",
355
+ "lang": "html"
356
+ }
357
+ ]
339
358
  }
340
359
  ],
341
360
  "exports": [
@@ -702,7 +721,19 @@
702
721
  },
703
722
  "tagName": "nys-alert",
704
723
  "customElement": true,
705
- "summary": "Alert for contextual feedback with semantic types and live region support."
724
+ "summary": "Alert for contextual feedback with semantic types and live region support.",
725
+ "examples": [
726
+ {
727
+ "title": "Info alert",
728
+ "code": "<nys-alert type=\"info\" heading=\"Update available\" text=\"A new version is ready to install.\"></nys-alert>",
729
+ "lang": "html"
730
+ },
731
+ {
732
+ "title": "Dismissible success alert",
733
+ "code": "<nys-alert type=\"success\" heading=\"Application submitted\" dismissible></nys-alert>",
734
+ "lang": "html"
735
+ }
736
+ ]
706
737
  }
707
738
  ],
708
739
  "exports": [
@@ -972,7 +1003,19 @@
972
1003
  },
973
1004
  "tagName": "nys-avatar",
974
1005
  "customElement": true,
975
- "summary": "User avatar with image, initials, or icon fallback and contrast-aware colors."
1006
+ "summary": "User avatar with image, initials, or icon fallback and contrast-aware colors.",
1007
+ "examples": [
1008
+ {
1009
+ "title": "Image avatar",
1010
+ "code": "<nys-avatar image=\"/path/to/photo.jpg\" ariaLabel=\"Jane Smith\"></nys-avatar>",
1011
+ "lang": "html"
1012
+ },
1013
+ {
1014
+ "title": "Initials avatar with custom color",
1015
+ "code": "<nys-avatar initials=\"JS\" color=\"var(--nys-color-theme)\" ariaLabel=\"Jane Smith\"></nys-avatar>",
1016
+ "lang": "html"
1017
+ }
1018
+ ]
976
1019
  }
977
1020
  ],
978
1021
  "exports": [
@@ -1110,7 +1153,19 @@
1110
1153
  },
1111
1154
  "tagName": "nys-backtotop",
1112
1155
  "customElement": true,
1113
- "summary": "Floating back-to-top button with auto-show behavior and smooth scroll."
1156
+ "summary": "Floating back-to-top button with auto-show behavior and smooth scroll.",
1157
+ "examples": [
1158
+ {
1159
+ "title": "Auto-appearing button",
1160
+ "code": "<nys-backtotop></nys-backtotop>",
1161
+ "lang": "html"
1162
+ },
1163
+ {
1164
+ "title": "Always visible, left position",
1165
+ "code": "<nys-backtotop visible position=\"left\"></nys-backtotop>",
1166
+ "lang": "html"
1167
+ }
1168
+ ]
1114
1169
  }
1115
1170
  ],
1116
1171
  "exports": [
@@ -1390,7 +1445,19 @@
1390
1445
  },
1391
1446
  "tagName": "nys-badge",
1392
1447
  "customElement": true,
1393
- "summary": "Compact label for status, counts, or categorization with semantic styling."
1448
+ "summary": "Compact label for status, counts, or categorization with semantic styling.",
1449
+ "examples": [
1450
+ {
1451
+ "title": "Status badge",
1452
+ "code": "<nys-badge intent=\"success\" label=\"Approved\" prefixIcon></nys-badge>",
1453
+ "lang": "html"
1454
+ },
1455
+ {
1456
+ "title": "Count badge",
1457
+ "code": "<nys-badge prefixLabel=\"Messages\" label=\"12\"></nys-badge>",
1458
+ "lang": "html"
1459
+ }
1460
+ ]
1394
1461
  }
1395
1462
  ],
1396
1463
  "exports": [
@@ -2035,7 +2102,39 @@
2035
2102
  },
2036
2103
  "tagName": "nys-button",
2037
2104
  "customElement": true,
2038
- "summary": "Button for actions and CTAs with variants, sizes, and icon support."
2105
+ "summary": "Button for actions and CTAs with variants, sizes, and icon support.",
2106
+ "examples": [
2107
+ {
2108
+ "title": "Basic filled button",
2109
+ "code": "<nys-button label=\"Submit\" variant=\"filled\"></nys-button>",
2110
+ "lang": "html"
2111
+ },
2112
+ {
2113
+ "title": "Secondary outline button",
2114
+ "code": "<nys-button label=\"Cancel\" variant=\"outline\"></nys-button>",
2115
+ "lang": "html"
2116
+ },
2117
+ {
2118
+ "title": "Button with icons",
2119
+ "code": "<nys-button label=\"Previous\" prefixIcon=\"chevron_left\"></nys-button>\n<nys-button label=\"Next\" suffixIcon=\"chevron_right\"></nys-button>",
2120
+ "lang": "html"
2121
+ },
2122
+ {
2123
+ "title": "Circle icon button",
2124
+ "code": "<nys-button circle icon=\"close\" label=\"Close dialog\"></nys-button>",
2125
+ "lang": "html"
2126
+ },
2127
+ {
2128
+ "title": "Link-style button for navigation",
2129
+ "code": "<nys-button label=\"Visit NY.gov\" href=\"https://www.ny.gov/\" target=\"_blank\" suffixIcon=\"open_in_new\"></nys-button>",
2130
+ "lang": "html"
2131
+ },
2132
+ {
2133
+ "title": "Form submit button",
2134
+ "code": "<nys-button type=\"submit\" label=\"Save Changes\" variant=\"filled\"></nys-button>",
2135
+ "lang": "html"
2136
+ }
2137
+ ]
2039
2138
  }
2040
2139
  ],
2041
2140
  "exports": [
@@ -2712,7 +2811,19 @@
2712
2811
  },
2713
2812
  "tagName": "nys-checkbox",
2714
2813
  "customElement": true,
2715
- "summary": "Checkbox for binary choices or multi-select options."
2814
+ "summary": "Checkbox for binary choices or multi-select options.",
2815
+ "examples": [
2816
+ {
2817
+ "title": "Single checkbox",
2818
+ "code": "<nys-checkbox label=\"I agree to the terms\" name=\"terms\" required></nys-checkbox>",
2819
+ "lang": "html"
2820
+ },
2821
+ {
2822
+ "title": "Checkbox group",
2823
+ "code": "<nys-checkboxgroup label=\"Select landmarks\">\n<nys-checkbox name=\"landmarks\" value=\"adirondacks\" label=\"Adirondacks\"></nys-checkbox>\n<nys-checkbox name=\"landmarks\" value=\"niagara\" label=\"Niagara Falls\"></nys-checkbox>\n</nys-checkboxgroup>",
2824
+ "lang": "html"
2825
+ }
2826
+ ]
2716
2827
  }
2717
2828
  ],
2718
2829
  "exports": [
@@ -3217,7 +3328,14 @@
3217
3328
  },
3218
3329
  "tagName": "nys-checkboxgroup",
3219
3330
  "customElement": true,
3220
- "summary": "Container for grouping checkboxes as a single form control."
3331
+ "summary": "Container for grouping checkboxes as a single form control.",
3332
+ "examples": [
3333
+ {
3334
+ "title": "Basic checkbox group",
3335
+ "code": "<nys-checkboxgroup label=\"Select landmarks\" required>\n<nys-checkbox name=\"landmarks\" value=\"adirondacks\" label=\"Adirondacks\"></nys-checkbox>\n<nys-checkbox name=\"landmarks\" value=\"niagara\" label=\"Niagara Falls\"></nys-checkbox>\n</nys-checkboxgroup>",
3336
+ "lang": "html"
3337
+ }
3338
+ ]
3221
3339
  }
3222
3340
  ],
3223
3341
  "exports": [
@@ -4673,7 +4791,29 @@
4673
4791
  },
4674
4792
  "tagName": "nys-datepicker",
4675
4793
  "customElement": true,
4676
- "summary": "Date picker with calendar popup and native fallback."
4794
+ "summary": "Date picker with calendar popup and native fallback.",
4795
+ "examples": [
4796
+ {
4797
+ "title": "Basic date picker",
4798
+ "code": "<nys-datepicker label=\"Birth Date\" required></nys-datepicker>",
4799
+ "lang": "html"
4800
+ },
4801
+ {
4802
+ "title": "With width and description",
4803
+ "code": "<nys-datepicker\nlabel=\"Event Date\"\ndescription=\"Select the date of your event\"\nwidth=\"lg\">\n</nys-datepicker>",
4804
+ "lang": "html"
4805
+ },
4806
+ {
4807
+ "title": "Hide buttons, set start date",
4808
+ "code": "<nys-datepicker\nlabel=\"Appointment\"\nhideTodayButton\nhideClearButton\nstartDate=\"2024-01-01\">\n</nys-datepicker>",
4809
+ "lang": "html"
4810
+ },
4811
+ {
4812
+ "title": "With validation error message",
4813
+ "code": "<nys-datepicker\nlabel=\"Start Date\"\nrequired\nerrorMessage=\"Please select a valid start date\">\n</nys-datepicker>",
4814
+ "lang": "html"
4815
+ }
4816
+ ]
4677
4817
  }
4678
4818
  ],
4679
4819
  "exports": [
@@ -4763,7 +4903,14 @@
4763
4903
  },
4764
4904
  "tagName": "nys-divider",
4765
4905
  "customElement": true,
4766
- "summary": "Horizontal divider for visual separation of content sections."
4906
+ "summary": "Horizontal divider for visual separation of content sections.",
4907
+ "examples": [
4908
+ {
4909
+ "title": "Basic divider",
4910
+ "code": "<p>Section one content</p>\n<nys-divider></nys-divider>\n<p>Section two content</p>",
4911
+ "lang": "html"
4912
+ }
4913
+ ]
4767
4914
  }
4768
4915
  ],
4769
4916
  "exports": [
@@ -5323,7 +5470,19 @@
5323
5470
  },
5324
5471
  "tagName": "nys-dropdownmenuitem",
5325
5472
  "customElement": true,
5326
- "summary": "Dropdown item to display label and provide href link."
5473
+ "summary": "Dropdown item to display label and provide href link.",
5474
+ "examples": [
5475
+ {
5476
+ "title": "Basic item",
5477
+ "code": "<nys-dropdownmenuitem label=\"Edit\" link=\"/edit\"></nys-dropdownmenuitem>",
5478
+ "lang": "html"
5479
+ },
5480
+ {
5481
+ "title": "Disabled item",
5482
+ "code": "<nys-dropdownmenuitem label=\"Delete\" link=\"/delete\" disabled></nys-dropdownmenuitem>",
5483
+ "lang": "html"
5484
+ }
5485
+ ]
5327
5486
  }
5328
5487
  ],
5329
5488
  "exports": [
@@ -6107,7 +6266,19 @@
6107
6266
  },
6108
6267
  "tagName": "nys-fileinput",
6109
6268
  "customElement": true,
6110
- "summary": "File input with drag-and-drop, validation, and progress tracking."
6269
+ "summary": "File input with drag-and-drop, validation, and progress tracking.",
6270
+ "examples": [
6271
+ {
6272
+ "title": "Single file upload",
6273
+ "code": "<nys-fileinput label=\"Upload document\" accept=\".pdf,.doc\" required></nys-fileinput>",
6274
+ "lang": "html"
6275
+ },
6276
+ {
6277
+ "title": "Multiple files with dropzone",
6278
+ "code": "<nys-fileinput label=\"Upload images\" accept=\"image/*\" multiple dropzone></nys-fileinput>",
6279
+ "lang": "html"
6280
+ }
6281
+ ]
6111
6282
  }
6112
6283
  ],
6113
6284
  "exports": [
@@ -6418,7 +6589,14 @@
6418
6589
  },
6419
6590
  "tagName": "nys-globalfooter",
6420
6591
  "customElement": true,
6421
- "summary": "Agency footer with auto-layout for contact info and link sections."
6592
+ "summary": "Agency footer with auto-layout for contact info and link sections.",
6593
+ "examples": [
6594
+ {
6595
+ "title": "Simple footer",
6596
+ "code": "<nys-globalfooter agencyName=\"Department of Health\" homepageLink=\"/\">\n<span>123 Main St, Albany NY</span>\n<span>info@health.ny.gov</span>\n</nys-globalfooter>",
6597
+ "lang": "html"
6598
+ }
6599
+ ]
6422
6600
  }
6423
6601
  ],
6424
6602
  "exports": [
@@ -6500,6 +6678,16 @@
6500
6678
  "description": "URL for the header title link. If empty, title is not clickable.",
6501
6679
  "attribute": "homepageLink"
6502
6680
  },
6681
+ {
6682
+ "kind": "field",
6683
+ "name": "nysLogo",
6684
+ "type": {
6685
+ "text": "boolean"
6686
+ },
6687
+ "default": "false",
6688
+ "description": "Toggles the NYS brand mark",
6689
+ "attribute": "nysLogo"
6690
+ },
6503
6691
  {
6504
6692
  "kind": "field",
6505
6693
  "name": "_isMobileMenuOpen",
@@ -6566,6 +6754,16 @@
6566
6754
  "kind": "method",
6567
6755
  "name": "_listenLinkClicks",
6568
6756
  "privacy": "private"
6757
+ },
6758
+ {
6759
+ "kind": "method",
6760
+ "name": "_renderBrandMark",
6761
+ "privacy": "private"
6762
+ },
6763
+ {
6764
+ "kind": "method",
6765
+ "name": "_getNysLogo",
6766
+ "privacy": "private"
6569
6767
  }
6570
6768
  ],
6571
6769
  "attributes": [
@@ -6598,6 +6796,16 @@
6598
6796
  "description": "URL for the header title link. If empty, title is not clickable.",
6599
6797
  "fieldName": "homepageLink",
6600
6798
  "propName": "homepagelink"
6799
+ },
6800
+ {
6801
+ "name": "nysLogo",
6802
+ "type": {
6803
+ "text": "boolean"
6804
+ },
6805
+ "default": "false",
6806
+ "description": "Toggles the NYS brand mark",
6807
+ "fieldName": "nysLogo",
6808
+ "propName": "nyslogo"
6601
6809
  }
6602
6810
  ],
6603
6811
  "superclass": {
@@ -6606,7 +6814,14 @@
6606
6814
  },
6607
6815
  "tagName": "nys-globalheader",
6608
6816
  "customElement": true,
6609
- "summary": "Agency header with navigation, mobile menu, and active link highlighting."
6817
+ "summary": "Agency header with navigation, mobile menu, and active link highlighting.",
6818
+ "examples": [
6819
+ {
6820
+ "title": "Basic header",
6821
+ "code": "<nys-globalheader appName=\"My App\" agencyName=\"Department of Health\" homepageLink=\"/\">\n<ul><li><a href=\"/about\">About</a></li><li><a href=\"/contact\">Contact</a></li></ul>\n</nys-globalheader>",
6822
+ "lang": "html"
6823
+ }
6824
+ ]
6610
6825
  }
6611
6826
  ],
6612
6827
  "exports": [
@@ -6793,7 +7008,19 @@
6793
7008
  },
6794
7009
  "tagName": "nys-icon",
6795
7010
  "customElement": true,
6796
- "summary": "SVG icon from Material Symbols library with size, rotation, and color options."
7011
+ "summary": "SVG icon from Material Symbols library with size, rotation, and color options.",
7012
+ "examples": [
7013
+ {
7014
+ "title": "Basic icon",
7015
+ "code": "<nys-icon name=\"check_circle\" size=\"lg\"></nys-icon>",
7016
+ "lang": "html"
7017
+ },
7018
+ {
7019
+ "title": "Accessible icon with label",
7020
+ "code": "<nys-icon name=\"warning\" ariaLabel=\"Warning\" color=\"var(--nys-color-warning)\"></nys-icon>",
7021
+ "lang": "html"
7022
+ }
7023
+ ]
6797
7024
  }
6798
7025
  ],
6799
7026
  "exports": [
@@ -7321,7 +7548,14 @@
7321
7548
  },
7322
7549
  "tagName": "nys-modal",
7323
7550
  "customElement": true,
7324
- "summary": "Accessible modal dialog with focus trap, keyboard support, and action slots."
7551
+ "summary": "Accessible modal dialog with focus trap, keyboard support, and action slots.",
7552
+ "examples": [
7553
+ {
7554
+ "title": "Basic modal",
7555
+ "code": "<nys-modal id=\"confirm-modal\" heading=\"Confirm action\" open>\n<p>Are you sure you want to proceed?</p>\n<div slot=\"actions\">\n<nys-button label=\"Cancel\" variant=\"outline\"></nys-button>\n<nys-button label=\"Confirm\" variant=\"filled\"></nys-button>\n</div>\n</nys-modal>",
7556
+ "lang": "html"
7557
+ }
7558
+ ]
7325
7559
  }
7326
7560
  ],
7327
7561
  "exports": [
@@ -7528,7 +7762,14 @@
7528
7762
  },
7529
7763
  "tagName": "nys-pagination",
7530
7764
  "customElement": true,
7531
- "summary": "Page navigation with numbered links, prev/next buttons, and responsive layout."
7765
+ "summary": "Page navigation with numbered links, prev/next buttons, and responsive layout.",
7766
+ "examples": [
7767
+ {
7768
+ "title": "Basic pagination",
7769
+ "code": "<nys-pagination currentPage=\"1\" totalPages=\"10\"></nys-pagination>",
7770
+ "lang": "html"
7771
+ }
7772
+ ]
7532
7773
  }
7533
7774
  ],
7534
7775
  "exports": [
@@ -8055,7 +8296,14 @@
8055
8296
  },
8056
8297
  "tagName": "nys-radiobutton",
8057
8298
  "customElement": true,
8058
- "summary": "Radio button for single selection from mutually exclusive options."
8299
+ "summary": "Radio button for single selection from mutually exclusive options.",
8300
+ "examples": [
8301
+ {
8302
+ "title": "Radio group",
8303
+ "code": "<nys-radiogroup label=\"Select borough\" required>\n<nys-radiobutton name=\"borough\" value=\"bronx\" label=\"The Bronx\"></nys-radiobutton>\n<nys-radiobutton name=\"borough\" value=\"brooklyn\" label=\"Brooklyn\"></nys-radiobutton>\n</nys-radiogroup>",
8304
+ "lang": "html"
8305
+ }
8306
+ ]
8059
8307
  }
8060
8308
  ],
8061
8309
  "exports": [
@@ -8566,7 +8814,14 @@
8566
8814
  },
8567
8815
  "tagName": "nys-radiogroup",
8568
8816
  "customElement": true,
8569
- "summary": "Container for grouping radio buttons as a single form control."
8817
+ "summary": "Container for grouping radio buttons as a single form control.",
8818
+ "examples": [
8819
+ {
8820
+ "title": "Basic radio group",
8821
+ "code": "<nys-radiogroup label=\"Select borough\" required>\n<nys-radiobutton name=\"borough\" value=\"bronx\" label=\"The Bronx\"></nys-radiobutton>\n<nys-radiobutton name=\"borough\" value=\"brooklyn\" label=\"Brooklyn\"></nys-radiobutton>\n<nys-radiobutton name=\"borough\" value=\"manhattan\" label=\"Manhattan\"></nys-radiobutton>\n</nys-radiogroup>",
8822
+ "lang": "html"
8823
+ }
8824
+ ]
8570
8825
  }
8571
8826
  ],
8572
8827
  "exports": [
@@ -8738,7 +8993,14 @@
8738
8993
  },
8739
8994
  "tagName": "nys-option",
8740
8995
  "customElement": true,
8741
- "summary": "Option item for nys-select dropdown."
8996
+ "summary": "Option item for nys-select dropdown.",
8997
+ "examples": [
8998
+ {
8999
+ "title": "Basic options",
9000
+ "code": "<nys-select>\n<nys-option value=\"ny\">New York</nys-option>\n<nys-option value=\"ca\" disabled>California</nys-option>\n</nys-select>",
9001
+ "lang": "html"
9002
+ }
9003
+ ]
8742
9004
  }
8743
9005
  ],
8744
9006
  "exports": [
@@ -9232,7 +9494,19 @@
9232
9494
  },
9233
9495
  "tagName": "nys-select",
9234
9496
  "customElement": true,
9235
- "summary": "Dropdown select for choosing one option from a list."
9497
+ "summary": "Dropdown select for choosing one option from a list.",
9498
+ "examples": [
9499
+ {
9500
+ "title": "Basic select",
9501
+ "code": "<nys-select label=\"Select borough\">\n<option value=\"bronx\">The Bronx</option>\n<option value=\"brooklyn\">Brooklyn</option>\n<option value=\"manhattan\">Manhattan</option>\n</nys-select>",
9502
+ "lang": "html"
9503
+ },
9504
+ {
9505
+ "title": "With option groups",
9506
+ "code": "<nys-select label=\"Select service\">\n<optgroup label=\"Transportation\">\n<option value=\"mta\">MTA</option>\n<option value=\"dmv\">DMV</option>\n</optgroup>\n</nys-select>",
9507
+ "lang": "html"
9508
+ }
9509
+ ]
9236
9510
  }
9237
9511
  ],
9238
9512
  "exports": [
@@ -9344,7 +9618,19 @@
9344
9618
  },
9345
9619
  "tagName": "nys-skipnav",
9346
9620
  "customElement": true,
9347
- "summary": "Skip navigation link for keyboard accessibility. Hidden until focused."
9621
+ "summary": "Skip navigation link for keyboard accessibility. Hidden until focused.",
9622
+ "examples": [
9623
+ {
9624
+ "title": "Default skip link",
9625
+ "code": "<nys-skipnav></nys-skipnav>\n<main id=\"main-content\">...</main>",
9626
+ "lang": "html"
9627
+ },
9628
+ {
9629
+ "title": "Custom target",
9630
+ "code": "<nys-skipnav href=\"#content-area\"></nys-skipnav>",
9631
+ "lang": "html"
9632
+ }
9633
+ ]
9348
9634
  }
9349
9635
  ],
9350
9636
  "exports": [
@@ -9395,7 +9681,7 @@
9395
9681
  "declarations": [
9396
9682
  {
9397
9683
  "kind": "class",
9398
- "description": "A single step within `nys-stepper`. Represents one stage in a multi-step process.\n\nMark as `current` to indicate active progress point. Previous steps become clickable for navigation.\nSet `href` for page-based navigation or listen to `nys-step-click` for SPA routing.",
9684
+ "description": "A single step within `nys-stepper`. Represents one stage in a multi-step process.\n\nMark as `current` to indicate active progress point. Previous steps become clickable for navigation.\nSet `href` for page-based navigation or listen to `nys-step-click` for SPA routing.\n\n## Step States\n\nUnderstanding the three step states is critical for proper stepper usage:\n\n- **`selected`** - Which step is currently being displayed/viewed. This controls which step's\n content is shown. Defaults to `current` if not set. Cannot be set on a step after `current`.\n Users can click previous steps to change `selected` without changing `current`.\n\n- **`current`** - The furthest step the user has reached. This is the progress boundary.\n Update this as the user completes steps and advances. Steps after `current` are not navigable.\n Only one step should have `current` at a time.\n\n- **`previous`** - Auto-applied by the stepper to all steps before `current`. Do not set manually.\n Steps with `previous` are clickable and allow the user to navigate back.\n\n## Common Patterns\n\n**Initial state:** Set `current` on the first step. `selected` will default to it.\n```html\n<nys-step label=\"Step 1\" current></nys-step>\n<nys-step label=\"Step 2\"></nys-step>\n```\n\n**User completed step 1, now on step 2:**\n```html\n<nys-step label=\"Step 1\"></nys-step>\n<nys-step label=\"Step 2\" current></nys-step>\n```\n\n**User went back to review step 1 (but progress is still at step 2):**\n```html\n<nys-step label=\"Step 1\" selected></nys-step>\n<nys-step label=\"Step 2\" current></nys-step>\n```",
9399
9685
  "name": "NysStep",
9400
9686
  "members": [
9401
9687
  {
@@ -9569,7 +9855,14 @@
9569
9855
  },
9570
9856
  "tagName": "nys-step",
9571
9857
  "customElement": true,
9572
- "summary": "Individual step for use within nys-stepper with navigation support."
9858
+ "summary": "Individual step for use within nys-stepper with navigation support.",
9859
+ "examples": [
9860
+ {
9861
+ "title": "Step with navigation",
9862
+ "code": "<nys-step label=\"Personal Info\" href=\"/step-1\"></nys-step>",
9863
+ "lang": "html"
9864
+ }
9865
+ ]
9573
9866
  }
9574
9867
  ],
9575
9868
  "exports": [
@@ -9597,7 +9890,7 @@
9597
9890
  "declarations": [
9598
9891
  {
9599
9892
  "kind": "class",
9600
- "description": "A multi-step progress indicator for forms or wizards. Manages `nys-step` children with selection and navigation.\n\nAdd `nys-step` elements as children. Mark one step as `current` to indicate progress; previous steps become\nnavigable. Compact view on mobile expands to show all steps. Use `actions` slot for navigation buttons.",
9893
+ "description": "A multi-step progress indicator for forms or wizards. Manages `nys-step` children with selection and navigation.\n\nAdd `nys-step` elements as children. Mark one step as `current` to indicate progress; previous steps become\nnavigable. Compact view on mobile expands to show all steps. Use `actions` slot for navigation buttons.\nDo not place the stepper inside a form element.",
9601
9894
  "name": "NysStepper",
9602
9895
  "slots": [
9603
9896
  {
@@ -9777,7 +10070,24 @@
9777
10070
  },
9778
10071
  "tagName": "nys-stepper",
9779
10072
  "customElement": true,
9780
- "summary": "Multi-step progress indicator with navigation and mobile-friendly compact view."
10073
+ "summary": "Multi-step progress indicator with navigation and mobile-friendly compact view.",
10074
+ "examples": [
10075
+ {
10076
+ "title": "Basic stepper",
10077
+ "code": "<nys-stepper label=\"Application Progress\">\n<nys-step label=\"Personal Info\" current></nys-step>\n<nys-step label=\"Contact Details\"></nys-step>\n<nys-step label=\"Review\"></nys-step>\n</nys-stepper>",
10078
+ "lang": "html"
10079
+ },
10080
+ {
10081
+ "title": "Grid layout with sidebar placement",
10082
+ "code": "<div class=\"nys-grid-container\">\n<div class=\"nys-grid-row\">\n<nys-stepper label=\"Application\" class=\"nys-grid-col-12 nys-desktop:nys-grid-col-3\">\n<nys-step label=\"Personal Info\"></nys-step>\n<nys-step label=\"Contact\" current></nys-step>\n<nys-step label=\"Review\"></nys-step>\n</nys-stepper>\n<main class=\"nys-grid-col-12 nys-desktop:nys-grid-col-9\" id=\"main-content\">\n<!-- Form content for current step -->\n<nys-textinput label=\"Email\" required></nys-textinput>\n<nys-textinput label=\"Phone\"></nys-textinput>\n</main>\n</div>\n</div>",
10083
+ "lang": "html"
10084
+ },
10085
+ {
10086
+ "title": "Navigation buttons in actions slot",
10087
+ "code": "<nys-stepper label=\"Application\">\n<nys-step label=\"Step 1\"></nys-step>\n<nys-step label=\"Step 2\" current></nys-step>\n<nys-step label=\"Step 3\"></nys-step>\n<div slot=\"actions\">\n<nys-button label=\"Save and Exit\" variant=\"outline\" size=\"sm\" fullWidth></nys-button>\n</div>\n</nys-stepper>",
10088
+ "lang": "html"
10089
+ }
10090
+ ]
9781
10091
  }
9782
10092
  ],
9783
10093
  "exports": [
@@ -10753,7 +11063,19 @@
10753
11063
  },
10754
11064
  "tagName": "nys-textarea",
10755
11065
  "customElement": true,
10756
- "summary": "Multi-line text input for comments, descriptions, and feedback."
11066
+ "summary": "Multi-line text input for comments, descriptions, and feedback.",
11067
+ "examples": [
11068
+ {
11069
+ "title": "Basic textarea",
11070
+ "code": "<nys-textarea label=\"Comments\" rows=\"4\"></nys-textarea>",
11071
+ "lang": "html"
11072
+ },
11073
+ {
11074
+ "title": "Required with description",
11075
+ "code": "<nys-textarea label=\"Describe the incident\" description=\"Please provide details\" required></nys-textarea>",
11076
+ "lang": "html"
11077
+ }
11078
+ ]
10757
11079
  }
10758
11080
  ],
10759
11081
  "exports": [
@@ -11522,7 +11844,29 @@
11522
11844
  },
11523
11845
  "tagName": "nys-textinput",
11524
11846
  "customElement": true,
11525
- "summary": "Text input for short single-line data with validation and masking support."
11847
+ "summary": "Text input for short single-line data with validation and masking support.",
11848
+ "examples": [
11849
+ {
11850
+ "title": "Basic text input",
11851
+ "code": "<nys-textinput label=\"Full Name\" required></nys-textinput>",
11852
+ "lang": "html"
11853
+ },
11854
+ {
11855
+ "title": "Required Email",
11856
+ "code": "<nys-textinput type=\"email\" label=\"Email Address\" required></nys-textinput>",
11857
+ "lang": "html"
11858
+ },
11859
+ {
11860
+ "title": "Phone with masking",
11861
+ "code": "<nys-textinput type=\"tel\" label=\"Phone Number\"></nys-textinput>",
11862
+ "lang": "html"
11863
+ },
11864
+ {
11865
+ "title": "Search with button",
11866
+ "code": "<nys-textinput type=\"search\" placeholder=\"Search\">\n<nys-button slot=\"endButton\" label=\"Search\" prefixIcon=\"search\"></nys-button>\n</nys-textinput>",
11867
+ "lang": "html"
11868
+ }
11869
+ ]
11526
11870
  }
11527
11871
  ],
11528
11872
  "exports": [
@@ -11912,7 +12256,19 @@
11912
12256
  },
11913
12257
  "tagName": "nys-toggle",
11914
12258
  "customElement": true,
11915
- "summary": "Toggle switch for binary settings with immediate effect."
12259
+ "summary": "Toggle switch for binary settings with immediate effect.",
12260
+ "examples": [
12261
+ {
12262
+ "title": "Basic toggle",
12263
+ "code": "<nys-toggle label=\"Enable notifications\" name=\"notifications\"></nys-toggle>",
12264
+ "lang": "html"
12265
+ },
12266
+ {
12267
+ "title": "Dark mode toggle",
12268
+ "code": "<nys-toggle label=\"Dark mode\" description=\"Adjust display for low light\" checked></nys-toggle>",
12269
+ "lang": "html"
12270
+ }
12271
+ ]
11916
12272
  }
11917
12273
  ],
11918
12274
  "exports": [
@@ -12311,7 +12667,19 @@
12311
12667
  },
12312
12668
  "tagName": "nys-tooltip",
12313
12669
  "customElement": true,
12314
- "summary": "Contextual tooltip with auto-positioning, keyboard support, and screen reader integration."
12670
+ "summary": "Contextual tooltip with auto-positioning, keyboard support, and screen reader integration.",
12671
+ "examples": [
12672
+ {
12673
+ "title": "Tooltip for button",
12674
+ "code": "<nys-button id=\"help-btn\" label=\"Help\" circle icon=\"help\"></nys-button>\n<nys-tooltip for=\"help-btn\" text=\"Click for assistance\"></nys-tooltip>",
12675
+ "lang": "html"
12676
+ },
12677
+ {
12678
+ "title": "Positioned tooltip",
12679
+ "code": "<nys-icon id=\"info-icon\" name=\"info\"></nys-icon>\n<nys-tooltip for=\"info-icon\" text=\"Additional details\" position=\"right\"></nys-tooltip>",
12680
+ "lang": "html"
12681
+ }
12682
+ ]
12315
12683
  }
12316
12684
  ],
12317
12685
  "exports": [
@@ -12370,7 +12738,14 @@
12370
12738
  },
12371
12739
  "tagName": "nys-unavfooter",
12372
12740
  "customElement": true,
12373
- "summary": "Universal NYS footer with logo and statewide links. Required site-wide."
12741
+ "summary": "Universal NYS footer with logo and statewide links. Required site-wide.",
12742
+ "examples": [
12743
+ {
12744
+ "title": "Standard usage",
12745
+ "code": "<nys-globalfooter>...</nys-globalfooter>\n<nys-unavfooter></nys-unavfooter>",
12746
+ "lang": "html"
12747
+ }
12748
+ ]
12374
12749
  }
12375
12750
  ],
12376
12751
  "exports": [