@nysds/components 1.16.0-alpha4 → 1.16.0-alpha5

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": [
@@ -6606,7 +6784,14 @@
6606
6784
  },
6607
6785
  "tagName": "nys-globalheader",
6608
6786
  "customElement": true,
6609
- "summary": "Agency header with navigation, mobile menu, and active link highlighting."
6787
+ "summary": "Agency header with navigation, mobile menu, and active link highlighting.",
6788
+ "examples": [
6789
+ {
6790
+ "title": "Basic header",
6791
+ "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>",
6792
+ "lang": "html"
6793
+ }
6794
+ ]
6610
6795
  }
6611
6796
  ],
6612
6797
  "exports": [
@@ -6793,7 +6978,19 @@
6793
6978
  },
6794
6979
  "tagName": "nys-icon",
6795
6980
  "customElement": true,
6796
- "summary": "SVG icon from Material Symbols library with size, rotation, and color options."
6981
+ "summary": "SVG icon from Material Symbols library with size, rotation, and color options.",
6982
+ "examples": [
6983
+ {
6984
+ "title": "Basic icon",
6985
+ "code": "<nys-icon name=\"check_circle\" size=\"lg\"></nys-icon>",
6986
+ "lang": "html"
6987
+ },
6988
+ {
6989
+ "title": "Accessible icon with label",
6990
+ "code": "<nys-icon name=\"warning\" ariaLabel=\"Warning\" color=\"var(--nys-color-warning)\"></nys-icon>",
6991
+ "lang": "html"
6992
+ }
6993
+ ]
6797
6994
  }
6798
6995
  ],
6799
6996
  "exports": [
@@ -7321,7 +7518,14 @@
7321
7518
  },
7322
7519
  "tagName": "nys-modal",
7323
7520
  "customElement": true,
7324
- "summary": "Accessible modal dialog with focus trap, keyboard support, and action slots."
7521
+ "summary": "Accessible modal dialog with focus trap, keyboard support, and action slots.",
7522
+ "examples": [
7523
+ {
7524
+ "title": "Basic modal",
7525
+ "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>",
7526
+ "lang": "html"
7527
+ }
7528
+ ]
7325
7529
  }
7326
7530
  ],
7327
7531
  "exports": [
@@ -7528,7 +7732,14 @@
7528
7732
  },
7529
7733
  "tagName": "nys-pagination",
7530
7734
  "customElement": true,
7531
- "summary": "Page navigation with numbered links, prev/next buttons, and responsive layout."
7735
+ "summary": "Page navigation with numbered links, prev/next buttons, and responsive layout.",
7736
+ "examples": [
7737
+ {
7738
+ "title": "Basic pagination",
7739
+ "code": "<nys-pagination currentPage=\"1\" totalPages=\"10\"></nys-pagination>",
7740
+ "lang": "html"
7741
+ }
7742
+ ]
7532
7743
  }
7533
7744
  ],
7534
7745
  "exports": [
@@ -8055,7 +8266,14 @@
8055
8266
  },
8056
8267
  "tagName": "nys-radiobutton",
8057
8268
  "customElement": true,
8058
- "summary": "Radio button for single selection from mutually exclusive options."
8269
+ "summary": "Radio button for single selection from mutually exclusive options.",
8270
+ "examples": [
8271
+ {
8272
+ "title": "Radio group",
8273
+ "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>",
8274
+ "lang": "html"
8275
+ }
8276
+ ]
8059
8277
  }
8060
8278
  ],
8061
8279
  "exports": [
@@ -8566,7 +8784,14 @@
8566
8784
  },
8567
8785
  "tagName": "nys-radiogroup",
8568
8786
  "customElement": true,
8569
- "summary": "Container for grouping radio buttons as a single form control."
8787
+ "summary": "Container for grouping radio buttons as a single form control.",
8788
+ "examples": [
8789
+ {
8790
+ "title": "Basic radio group",
8791
+ "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>",
8792
+ "lang": "html"
8793
+ }
8794
+ ]
8570
8795
  }
8571
8796
  ],
8572
8797
  "exports": [
@@ -8738,7 +8963,14 @@
8738
8963
  },
8739
8964
  "tagName": "nys-option",
8740
8965
  "customElement": true,
8741
- "summary": "Option item for nys-select dropdown."
8966
+ "summary": "Option item for nys-select dropdown.",
8967
+ "examples": [
8968
+ {
8969
+ "title": "Basic options",
8970
+ "code": "<nys-select>\n<nys-option value=\"ny\">New York</nys-option>\n<nys-option value=\"ca\" disabled>California</nys-option>\n</nys-select>",
8971
+ "lang": "html"
8972
+ }
8973
+ ]
8742
8974
  }
8743
8975
  ],
8744
8976
  "exports": [
@@ -9232,7 +9464,19 @@
9232
9464
  },
9233
9465
  "tagName": "nys-select",
9234
9466
  "customElement": true,
9235
- "summary": "Dropdown select for choosing one option from a list."
9467
+ "summary": "Dropdown select for choosing one option from a list.",
9468
+ "examples": [
9469
+ {
9470
+ "title": "Basic select",
9471
+ "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>",
9472
+ "lang": "html"
9473
+ },
9474
+ {
9475
+ "title": "With option groups",
9476
+ "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>",
9477
+ "lang": "html"
9478
+ }
9479
+ ]
9236
9480
  }
9237
9481
  ],
9238
9482
  "exports": [
@@ -9344,7 +9588,19 @@
9344
9588
  },
9345
9589
  "tagName": "nys-skipnav",
9346
9590
  "customElement": true,
9347
- "summary": "Skip navigation link for keyboard accessibility. Hidden until focused."
9591
+ "summary": "Skip navigation link for keyboard accessibility. Hidden until focused.",
9592
+ "examples": [
9593
+ {
9594
+ "title": "Default skip link",
9595
+ "code": "<nys-skipnav></nys-skipnav>\n<main id=\"main-content\">...</main>",
9596
+ "lang": "html"
9597
+ },
9598
+ {
9599
+ "title": "Custom target",
9600
+ "code": "<nys-skipnav href=\"#content-area\"></nys-skipnav>",
9601
+ "lang": "html"
9602
+ }
9603
+ ]
9348
9604
  }
9349
9605
  ],
9350
9606
  "exports": [
@@ -9395,7 +9651,7 @@
9395
9651
  "declarations": [
9396
9652
  {
9397
9653
  "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.",
9654
+ "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
9655
  "name": "NysStep",
9400
9656
  "members": [
9401
9657
  {
@@ -9569,7 +9825,14 @@
9569
9825
  },
9570
9826
  "tagName": "nys-step",
9571
9827
  "customElement": true,
9572
- "summary": "Individual step for use within nys-stepper with navigation support."
9828
+ "summary": "Individual step for use within nys-stepper with navigation support.",
9829
+ "examples": [
9830
+ {
9831
+ "title": "Step with navigation",
9832
+ "code": "<nys-step label=\"Personal Info\" href=\"/step-1\"></nys-step>",
9833
+ "lang": "html"
9834
+ }
9835
+ ]
9573
9836
  }
9574
9837
  ],
9575
9838
  "exports": [
@@ -9597,7 +9860,7 @@
9597
9860
  "declarations": [
9598
9861
  {
9599
9862
  "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.",
9863
+ "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
9864
  "name": "NysStepper",
9602
9865
  "slots": [
9603
9866
  {
@@ -9777,7 +10040,24 @@
9777
10040
  },
9778
10041
  "tagName": "nys-stepper",
9779
10042
  "customElement": true,
9780
- "summary": "Multi-step progress indicator with navigation and mobile-friendly compact view."
10043
+ "summary": "Multi-step progress indicator with navigation and mobile-friendly compact view.",
10044
+ "examples": [
10045
+ {
10046
+ "title": "Basic stepper",
10047
+ "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>",
10048
+ "lang": "html"
10049
+ },
10050
+ {
10051
+ "title": "Grid layout with sidebar placement",
10052
+ "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>",
10053
+ "lang": "html"
10054
+ },
10055
+ {
10056
+ "title": "Navigation buttons in actions slot",
10057
+ "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>",
10058
+ "lang": "html"
10059
+ }
10060
+ ]
9781
10061
  }
9782
10062
  ],
9783
10063
  "exports": [
@@ -10753,7 +11033,19 @@
10753
11033
  },
10754
11034
  "tagName": "nys-textarea",
10755
11035
  "customElement": true,
10756
- "summary": "Multi-line text input for comments, descriptions, and feedback."
11036
+ "summary": "Multi-line text input for comments, descriptions, and feedback.",
11037
+ "examples": [
11038
+ {
11039
+ "title": "Basic textarea",
11040
+ "code": "<nys-textarea label=\"Comments\" rows=\"4\"></nys-textarea>",
11041
+ "lang": "html"
11042
+ },
11043
+ {
11044
+ "title": "Required with description",
11045
+ "code": "<nys-textarea label=\"Describe the incident\" description=\"Please provide details\" required></nys-textarea>",
11046
+ "lang": "html"
11047
+ }
11048
+ ]
10757
11049
  }
10758
11050
  ],
10759
11051
  "exports": [
@@ -11522,7 +11814,29 @@
11522
11814
  },
11523
11815
  "tagName": "nys-textinput",
11524
11816
  "customElement": true,
11525
- "summary": "Text input for short single-line data with validation and masking support."
11817
+ "summary": "Text input for short single-line data with validation and masking support.",
11818
+ "examples": [
11819
+ {
11820
+ "title": "Basic text input",
11821
+ "code": "<nys-textinput label=\"Full Name\" required></nys-textinput>",
11822
+ "lang": "html"
11823
+ },
11824
+ {
11825
+ "title": "Required Email",
11826
+ "code": "<nys-textinput type=\"email\" label=\"Email Address\" required></nys-textinput>",
11827
+ "lang": "html"
11828
+ },
11829
+ {
11830
+ "title": "Phone with masking",
11831
+ "code": "<nys-textinput type=\"tel\" label=\"Phone Number\"></nys-textinput>",
11832
+ "lang": "html"
11833
+ },
11834
+ {
11835
+ "title": "Search with button",
11836
+ "code": "<nys-textinput type=\"search\" placeholder=\"Search\">\n<nys-button slot=\"endButton\" label=\"Search\" prefixIcon=\"search\"></nys-button>\n</nys-textinput>",
11837
+ "lang": "html"
11838
+ }
11839
+ ]
11526
11840
  }
11527
11841
  ],
11528
11842
  "exports": [
@@ -11912,7 +12226,19 @@
11912
12226
  },
11913
12227
  "tagName": "nys-toggle",
11914
12228
  "customElement": true,
11915
- "summary": "Toggle switch for binary settings with immediate effect."
12229
+ "summary": "Toggle switch for binary settings with immediate effect.",
12230
+ "examples": [
12231
+ {
12232
+ "title": "Basic toggle",
12233
+ "code": "<nys-toggle label=\"Enable notifications\" name=\"notifications\"></nys-toggle>",
12234
+ "lang": "html"
12235
+ },
12236
+ {
12237
+ "title": "Dark mode toggle",
12238
+ "code": "<nys-toggle label=\"Dark mode\" description=\"Adjust display for low light\" checked></nys-toggle>",
12239
+ "lang": "html"
12240
+ }
12241
+ ]
11916
12242
  }
11917
12243
  ],
11918
12244
  "exports": [
@@ -12311,7 +12637,19 @@
12311
12637
  },
12312
12638
  "tagName": "nys-tooltip",
12313
12639
  "customElement": true,
12314
- "summary": "Contextual tooltip with auto-positioning, keyboard support, and screen reader integration."
12640
+ "summary": "Contextual tooltip with auto-positioning, keyboard support, and screen reader integration.",
12641
+ "examples": [
12642
+ {
12643
+ "title": "Tooltip for button",
12644
+ "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>",
12645
+ "lang": "html"
12646
+ },
12647
+ {
12648
+ "title": "Positioned tooltip",
12649
+ "code": "<nys-icon id=\"info-icon\" name=\"info\"></nys-icon>\n<nys-tooltip for=\"info-icon\" text=\"Additional details\" position=\"right\"></nys-tooltip>",
12650
+ "lang": "html"
12651
+ }
12652
+ ]
12315
12653
  }
12316
12654
  ],
12317
12655
  "exports": [
@@ -12370,7 +12708,14 @@
12370
12708
  },
12371
12709
  "tagName": "nys-unavfooter",
12372
12710
  "customElement": true,
12373
- "summary": "Universal NYS footer with logo and statewide links. Required site-wide."
12711
+ "summary": "Universal NYS footer with logo and statewide links. Required site-wide.",
12712
+ "examples": [
12713
+ {
12714
+ "title": "Standard usage",
12715
+ "code": "<nys-globalfooter>...</nys-globalfooter>\n<nys-unavfooter></nys-unavfooter>",
12716
+ "lang": "html"
12717
+ }
12718
+ ]
12374
12719
  }
12375
12720
  ],
12376
12721
  "exports": [