@nysds/components 1.21.1 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +1524 -1022
- package/dist/.vscode/vscode.css-custom-data.json +75 -0
- package/dist/.vscode/vscode.html-custom-data.json +99 -54
- package/dist/custom-elements.json +1524 -1022
- package/dist/{nys-icon.library-C02yNW9R.js → nys-icon.library-BZ3jVyhP.js} +2 -2
- package/dist/{nys-icon.library-C02yNW9R.js.map → nys-icon.library-BZ3jVyhP.js.map} +1 -1
- package/dist/{nys-icon.library-BxwfG3ym-D4Dl8jc_.js → nys-icon.library-DYsQ8Tiv-DYS-TkV2.js} +3 -3
- package/dist/{nys-icon.library-BxwfG3ym-D4Dl8jc_.js.map → nys-icon.library-DYsQ8Tiv-DYS-TkV2.js.map} +1 -1
- package/dist/nysds.es.js +5059 -3637
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +248 -244
- package/dist/nysds.js.map +1 -1
- package/dist/packages/codegen/src/index.d.ts +16 -0
- package/dist/packages/codegen/src/manifest/components.d.ts +5 -0
- package/dist/packages/codegen/src/manifest/filters.d.ts +5 -0
- package/dist/packages/codegen/src/manifest/form-control.d.ts +5 -0
- package/dist/packages/codegen/src/manifest/load.d.ts +10 -0
- package/dist/packages/codegen/src/manifest/naming.d.ts +6 -0
- package/dist/packages/codegen/src/manifest/packages.d.ts +5 -0
- package/dist/packages/codegen/src/manifest/types.d.ts +6 -0
- package/dist/packages/codegen/src/transform/index.d.ts +19 -0
- package/dist/packages/codegen/src/transform/parse.d.ts +18 -0
- package/dist/packages/codegen/src/transform/shared.d.ts +61 -0
- package/dist/packages/codegen/src/transform/to-angular.d.ts +6 -0
- package/dist/packages/codegen/src/transform/to-jsx.d.ts +6 -0
- package/dist/packages/internals/src/form-control-mixin.d.ts +16 -0
- package/dist/packages/internals/src/form-events.d.ts +22 -0
- package/dist/packages/internals/src/index.d.ts +2 -1
- package/dist/packages/internals/src/types.d.ts +6 -0
- package/dist/packages/mcp-server/src/lib/cem-parser.d.ts +12 -0
- package/dist/packages/mcp-server/src/lib/framework-snippets.d.ts +35 -0
- package/dist/packages/mcp-server/src/lib/framework-usage.d.ts +19 -0
- package/dist/packages/mcp-server/src/lib/frameworks-data.d.ts +18 -0
- package/dist/packages/mcp-server/src/resources/frameworks.d.ts +14 -0
- package/dist/packages/nys-accordion/src/nys-accordion.d.ts +12 -0
- package/dist/packages/nys-accordion/src/nys-accordionitem.d.ts +9 -1
- package/dist/packages/nys-alert/src/nys-alert.d.ts +39 -1
- package/dist/packages/nys-avatar/src/nys-avatar.d.ts +16 -0
- package/dist/packages/nys-backtotop/src/nys-backtotop.d.ts +12 -0
- package/dist/packages/nys-badge/src/nys-badge.d.ts +18 -0
- package/dist/packages/nys-breadcrumbs/src/nys-breadcrumbs.d.ts +22 -1
- package/dist/packages/nys-button/src/nys-button.d.ts +35 -4
- package/dist/packages/nys-card/src/nys-card.d.ts +20 -0
- package/dist/packages/nys-checkbox/src/nys-checkbox.d.ts +77 -7
- package/dist/packages/nys-checkbox/src/nys-checkboxgroup.d.ts +46 -0
- package/dist/packages/nys-combobox/src/nys-combobox.d.ts +51 -6
- package/dist/packages/nys-datepicker/src/nys-datepicker.d.ts +44 -2
- package/dist/packages/nys-divider/src/nys-divider.d.ts +9 -0
- package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenu.d.ts +17 -0
- package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenuitem.d.ts +10 -0
- package/dist/packages/nys-fileinput/src/index.d.ts +1 -0
- package/dist/packages/nys-fileinput/src/nys-fileinput.d.ts +42 -6
- package/dist/packages/nys-fileinput/src/nys-fileitem.d.ts +9 -1
- package/dist/packages/nys-globalfooter/src/nys-globalfooter.d.ts +17 -0
- package/dist/packages/nys-globalheader/src/nys-globalheader.d.ts +18 -0
- package/dist/packages/nys-icon/src/nys-icon.d.ts +18 -0
- package/dist/packages/nys-iconlist/src/nys-iconlist.d.ts +16 -0
- package/dist/packages/nys-label/src/nys-label.d.ts +3 -1
- package/dist/packages/nys-modal/src/nys-modal.d.ts +26 -2
- package/dist/packages/nys-pagination/src/nys-pagination.d.ts +21 -2
- package/dist/packages/nys-processlist/src/nys-processlist.d.ts +16 -0
- package/dist/packages/nys-processlist/src/nys-processlistitem.d.ts +1 -1
- package/dist/packages/nys-radiobutton/src/nys-radiobutton.d.ts +29 -5
- package/dist/packages/nys-radiobutton/src/nys-radiogroup.d.ts +66 -4
- package/dist/packages/nys-select/src/nys-select.d.ts +22 -4
- package/dist/packages/nys-skipnav/src/nys-skipnav.d.ts +8 -0
- package/dist/packages/nys-stepper/src/nys-step.d.ts +8 -1
- package/dist/packages/nys-stepper/src/nys-stepper.d.ts +8 -0
- package/dist/packages/nys-tab/src/nys-tab.d.ts +22 -3
- package/dist/packages/nys-tab/src/nys-tabgroup.d.ts +12 -0
- package/dist/packages/nys-tab/src/nys-tabpanel.d.ts +2 -0
- package/dist/packages/nys-table/src/nys-table.d.ts +39 -2
- package/dist/packages/nys-textarea/src/nys-textarea.d.ts +47 -4
- package/dist/packages/nys-textinput/src/nys-textinput.d.ts +42 -4
- package/dist/packages/nys-toggle/src/nys-toggle.d.ts +37 -3
- package/dist/packages/nys-tooltip/src/nys-tooltip.d.ts +13 -0
- package/dist/packages/nys-unavfooter/src/nys-unavfooter.d.ts +13 -0
- package/dist/packages/nys-unavheader/src/nys-unavheader.d.ts +26 -4
- package/dist/packages/nys-verticalnav/src/nys-verticalnav.d.ts +14 -0
- package/dist/packages/nys-verticalnav/src/nys-verticalnavgroup.d.ts +11 -0
- package/dist/packages/nys-video/src/nys-video.d.ts +14 -1
- package/package.json +30 -25
- package/packages/react/.turbo/turbo-build.log +0 -59
- package/packages/react/NysAccordion.d.ts +0 -75
- package/packages/react/NysAccordion.js +0 -24
- package/packages/react/NysAccordionItem.d.ts +0 -82
- package/packages/react/NysAccordionItem.js +0 -43
- package/packages/react/NysAlert.d.ts +0 -102
- package/packages/react/NysAlert.js +0 -61
- package/packages/react/NysAvatar.d.ts +0 -88
- package/packages/react/NysAvatar.js +0 -40
- package/packages/react/NysBacktotop.d.ts +0 -57
- package/packages/react/NysBacktotop.js +0 -23
- package/packages/react/NysBadge.d.ts +0 -78
- package/packages/react/NysBadge.js +0 -42
- package/packages/react/NysBreadcrumbItem.d.ts +0 -72
- package/packages/react/NysBreadcrumbItem.js +0 -42
- package/packages/react/NysBreadcrumbs.d.ts +0 -89
- package/packages/react/NysBreadcrumbs.js +0 -50
- package/packages/react/NysButton.d.ts +0 -171
- package/packages/react/NysButton.js +0 -83
- package/packages/react/NysCard.d.ts +0 -121
- package/packages/react/NysCard.js +0 -63
- package/packages/react/NysCheckbox.d.ts +0 -145
- package/packages/react/NysCheckbox.js +0 -78
- package/packages/react/NysCheckboxgroup.d.ts +0 -88
- package/packages/react/NysCheckboxgroup.js +0 -46
- package/packages/react/NysCombobox.d.ts +0 -126
- package/packages/react/NysCombobox.js +0 -66
- package/packages/react/NysDatepicker.d.ts +0 -128
- package/packages/react/NysDatepicker.js +0 -76
- package/packages/react/NysDivider.d.ts +0 -54
- package/packages/react/NysDivider.js +0 -22
- package/packages/react/NysDropdownMenu.d.ts +0 -59
- package/packages/react/NysDropdownMenu.js +0 -23
- package/packages/react/NysDropdownMenuItem.d.ts +0 -75
- package/packages/react/NysDropdownMenuItem.js +0 -47
- package/packages/react/NysErrorMessage.d.ts +0 -60
- package/packages/react/NysErrorMessage.js +0 -24
- package/packages/react/NysFileItem.d.ts +0 -69
- package/packages/react/NysFileItem.js +0 -37
- package/packages/react/NysFileinput.d.ts +0 -130
- package/packages/react/NysFileinput.js +0 -74
- package/packages/react/NysGlobalFooter.d.ts +0 -77
- package/packages/react/NysGlobalFooter.js +0 -32
- package/packages/react/NysGlobalHeader.d.ts +0 -82
- package/packages/react/NysGlobalHeader.js +0 -32
- package/packages/react/NysIcon.d.ts +0 -75
- package/packages/react/NysIcon.js +0 -50
- package/packages/react/NysIconlist.d.ts +0 -57
- package/packages/react/NysIconlist.js +0 -23
- package/packages/react/NysIconlistitem.d.ts +0 -63
- package/packages/react/NysIconlistitem.js +0 -23
- package/packages/react/NysLabel.d.ts +0 -81
- package/packages/react/NysLabel.js +0 -40
- package/packages/react/NysModal.d.ts +0 -90
- package/packages/react/NysModal.js +0 -50
- package/packages/react/NysOption.d.ts +0 -66
- package/packages/react/NysOption.js +0 -25
- package/packages/react/NysPagination.d.ts +0 -72
- package/packages/react/NysPagination.js +0 -45
- package/packages/react/NysProcesslist.d.ts +0 -65
- package/packages/react/NysProcesslist.js +0 -25
- package/packages/react/NysProcesslistitem.d.ts +0 -61
- package/packages/react/NysProcesslistitem.js +0 -35
- package/packages/react/NysRadiobutton.d.ts +0 -132
- package/packages/react/NysRadiobutton.js +0 -72
- package/packages/react/NysRadiogroup.d.ts +0 -104
- package/packages/react/NysRadiogroup.js +0 -62
- package/packages/react/NysSelect.d.ts +0 -119
- package/packages/react/NysSelect.js +0 -67
- package/packages/react/NysSkipnav.d.ts +0 -54
- package/packages/react/NysSkipnav.js +0 -22
- package/packages/react/NysStep.d.ts +0 -73
- package/packages/react/NysStep.js +0 -40
- package/packages/react/NysStepper.d.ts +0 -67
- package/packages/react/NysStepper.js +0 -26
- package/packages/react/NysTab.d.ts +0 -90
- package/packages/react/NysTab.js +0 -39
- package/packages/react/NysTabgroup.d.ts +0 -76
- package/packages/react/NysTabgroup.js +0 -22
- package/packages/react/NysTable.d.ts +0 -80
- package/packages/react/NysTable.js +0 -41
- package/packages/react/NysTabpanel.d.ts +0 -70
- package/packages/react/NysTabpanel.js +0 -21
- package/packages/react/NysTextarea.d.ts +0 -141
- package/packages/react/NysTextarea.js +0 -79
- package/packages/react/NysTextinput.d.ts +0 -144
- package/packages/react/NysTextinput.js +0 -83
- package/packages/react/NysToggle.d.ts +0 -102
- package/packages/react/NysToggle.js +0 -59
- package/packages/react/NysTooltip.d.ts +0 -60
- package/packages/react/NysTooltip.js +0 -24
- package/packages/react/NysUnavFooter.d.ts +0 -61
- package/packages/react/NysUnavFooter.js +0 -21
- package/packages/react/NysUnavHeader.d.ts +0 -95
- package/packages/react/NysUnavHeader.js +0 -54
- package/packages/react/NysVerticalnav.d.ts +0 -67
- package/packages/react/NysVerticalnav.js +0 -26
- package/packages/react/NysVerticalnavGroup.d.ts +0 -76
- package/packages/react/NysVerticalnavGroup.js +0 -43
- package/packages/react/NysVideo.d.ts +0 -83
- package/packages/react/NysVideo.js +0 -53
- package/packages/react/README.md +0 -92
- package/packages/react/index.d.ts +0 -49
- package/packages/react/index.js +0 -49
- package/packages/react/nysds-jsx.d.ts +0 -2009
- package/packages/react/react-utils.js +0 -40
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { NysProcesslist as NysProcesslistElement } from "../../dist/nysds.es.js";
|
|
3
|
-
|
|
4
|
-
export type { NysProcesslistElement };
|
|
5
|
-
|
|
6
|
-
export interface NysProcesslistProps extends Pick<
|
|
7
|
-
React.AllHTMLAttributes<HTMLElement>,
|
|
8
|
-
| "children"
|
|
9
|
-
| "dir"
|
|
10
|
-
| "hidden"
|
|
11
|
-
| "id"
|
|
12
|
-
| "lang"
|
|
13
|
-
| "slot"
|
|
14
|
-
| "style"
|
|
15
|
-
| "title"
|
|
16
|
-
| "translate"
|
|
17
|
-
| "onClick"
|
|
18
|
-
| "onFocus"
|
|
19
|
-
| "onBlur"
|
|
20
|
-
> {
|
|
21
|
-
/** Renders each step number in a bolder, higher-emphasis color. */
|
|
22
|
-
strong?: boolean;
|
|
23
|
-
|
|
24
|
-
/** Renders each step number using neutral (grayscale) coloring instead of the theme color. */
|
|
25
|
-
neutral?: boolean;
|
|
26
|
-
|
|
27
|
-
/** Unique identifier. Auto-generated if not provided. */
|
|
28
|
-
id?: NysProcesslistElement["id"];
|
|
29
|
-
|
|
30
|
-
/** Step marker size: `sm` (smaller) or `md` (default). */
|
|
31
|
-
size?: NysProcesslistElement["size"];
|
|
32
|
-
|
|
33
|
-
/** Number given to the first step. Subsequent steps count up from it. Use this when one
|
|
34
|
-
process is split across several lists so the later lists continue the count instead of
|
|
35
|
-
restarting at 1. */
|
|
36
|
-
initialStep?: NysProcesslistElement["initialStep"];
|
|
37
|
-
|
|
38
|
-
/** A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the class selectors or functions like the method `Document.getElementsByClassName()`. */
|
|
39
|
-
className?: string;
|
|
40
|
-
|
|
41
|
-
/** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
|
|
42
|
-
exportparts?: string;
|
|
43
|
-
|
|
44
|
-
/** Used for labels to link them with their inputs (using input id). */
|
|
45
|
-
htmlFor?: string;
|
|
46
|
-
|
|
47
|
-
/** Used to help React identify which items have changed, are added, or are removed within a list. */
|
|
48
|
-
key?: number | string;
|
|
49
|
-
|
|
50
|
-
/** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
|
|
51
|
-
part?: string;
|
|
52
|
-
|
|
53
|
-
/** A mutable ref object whose `.current` property is initialized to the passed argument (`initialValue`). The returned object will persist for the full lifetime of the component. */
|
|
54
|
-
ref?: any;
|
|
55
|
-
|
|
56
|
-
/** Allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the `Tab` key, hence the name) and determine their relative ordering for sequential focus navigation. */
|
|
57
|
-
tabIndex?: number;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* An ordered list of numbered process steps.
|
|
62
|
-
* ---
|
|
63
|
-
*
|
|
64
|
-
*/
|
|
65
|
-
export const NysProcesslist: React.ForwardRefExoticComponent<NysProcesslistProps>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from "react";
|
|
2
|
-
import "../../dist/nysds.es.js";
|
|
3
|
-
|
|
4
|
-
export const NysProcesslist = forwardRef((props, forwardedRef) => {
|
|
5
|
-
const { strong, neutral, id, size, initialStep, ...filteredProps } = props;
|
|
6
|
-
|
|
7
|
-
return React.createElement(
|
|
8
|
-
"nys-processlist",
|
|
9
|
-
{
|
|
10
|
-
...filteredProps,
|
|
11
|
-
id: props.id,
|
|
12
|
-
size: props.size,
|
|
13
|
-
initialStep: props.initialStep,
|
|
14
|
-
class: props.className,
|
|
15
|
-
exportparts: props.exportparts,
|
|
16
|
-
for: props.htmlFor,
|
|
17
|
-
part: props.part,
|
|
18
|
-
tabindex: props.tabIndex,
|
|
19
|
-
strong: props.strong ? true : undefined,
|
|
20
|
-
neutral: props.neutral ? true : undefined,
|
|
21
|
-
style: { ...props.style },
|
|
22
|
-
},
|
|
23
|
-
props.children,
|
|
24
|
-
);
|
|
25
|
-
});
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { NysProcesslistitem as NysProcesslistitemElement } from "../../dist/nysds.es.js";
|
|
3
|
-
|
|
4
|
-
export type { NysProcesslistitemElement };
|
|
5
|
-
|
|
6
|
-
export interface NysProcesslistitemProps extends Pick<
|
|
7
|
-
React.AllHTMLAttributes<HTMLElement>,
|
|
8
|
-
| "children"
|
|
9
|
-
| "dir"
|
|
10
|
-
| "hidden"
|
|
11
|
-
| "id"
|
|
12
|
-
| "lang"
|
|
13
|
-
| "slot"
|
|
14
|
-
| "style"
|
|
15
|
-
| "title"
|
|
16
|
-
| "translate"
|
|
17
|
-
| "onClick"
|
|
18
|
-
| "onFocus"
|
|
19
|
-
| "onBlur"
|
|
20
|
-
> {
|
|
21
|
-
/** Step heading text. */
|
|
22
|
-
label?: NysProcesslistitemElement["label"];
|
|
23
|
-
|
|
24
|
-
/** Supporting information displayed below the label. Use the `description` slot for rich text. */
|
|
25
|
-
description?: NysProcesslistitemElement["description"];
|
|
26
|
-
|
|
27
|
-
/** A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the class selectors or functions like the method `Document.getElementsByClassName()`. */
|
|
28
|
-
className?: string;
|
|
29
|
-
|
|
30
|
-
/** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
|
|
31
|
-
exportparts?: string;
|
|
32
|
-
|
|
33
|
-
/** Used for labels to link them with their inputs (using input id). */
|
|
34
|
-
htmlFor?: string;
|
|
35
|
-
|
|
36
|
-
/** Used to help React identify which items have changed, are added, or are removed within a list. */
|
|
37
|
-
key?: number | string;
|
|
38
|
-
|
|
39
|
-
/** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
|
|
40
|
-
part?: string;
|
|
41
|
-
|
|
42
|
-
/** A mutable ref object whose `.current` property is initialized to the passed argument (`initialValue`). The returned object will persist for the full lifetime of the component. */
|
|
43
|
-
ref?: any;
|
|
44
|
-
|
|
45
|
-
/** Allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the `Tab` key, hence the name) and determine their relative ordering for sequential focus navigation. */
|
|
46
|
-
tabIndex?: number;
|
|
47
|
-
|
|
48
|
-
/** A description is shown when either the property or the slot has content, so an item with
|
|
49
|
-
neither renders no empty paragraph. */
|
|
50
|
-
_hasDescription?: NysProcesslistitemElement["_hasDescription"];
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* A numbered step for use inside `<nys-processlist>`.
|
|
55
|
-
* ---
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* ### **Slots:**
|
|
59
|
-
* - **description** - Custom HTML description content below the label. Overrides the `description` property.
|
|
60
|
-
*/
|
|
61
|
-
export const NysProcesslistitem: React.ForwardRefExoticComponent<NysProcesslistitemProps>;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef, useRef, useEffect } from "react";
|
|
2
|
-
import "../../dist/nysds.es.js";
|
|
3
|
-
import { useProperties } from "./react-utils.js";
|
|
4
|
-
|
|
5
|
-
export const NysProcesslistitem = forwardRef((props, forwardedRef) => {
|
|
6
|
-
const ref = useRef(null);
|
|
7
|
-
const { label, description, _hasDescription, ...filteredProps } = props;
|
|
8
|
-
|
|
9
|
-
/** Properties - run whenever a property has changed */
|
|
10
|
-
useProperties(ref, "_hasDescription", props._hasDescription);
|
|
11
|
-
|
|
12
|
-
return React.createElement(
|
|
13
|
-
"nys-processlistitem",
|
|
14
|
-
{
|
|
15
|
-
ref: (node) => {
|
|
16
|
-
ref.current = node;
|
|
17
|
-
if (typeof forwardedRef === "function") {
|
|
18
|
-
forwardedRef(node);
|
|
19
|
-
} else if (forwardedRef) {
|
|
20
|
-
forwardedRef.current = node;
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
...filteredProps,
|
|
24
|
-
label: props.label,
|
|
25
|
-
description: props.description,
|
|
26
|
-
class: props.className,
|
|
27
|
-
exportparts: props.exportparts,
|
|
28
|
-
for: props.htmlFor,
|
|
29
|
-
part: props.part,
|
|
30
|
-
tabindex: props.tabIndex,
|
|
31
|
-
style: { ...props.style },
|
|
32
|
-
},
|
|
33
|
-
props.children,
|
|
34
|
-
);
|
|
35
|
-
});
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
NysRadiobutton as NysRadiobuttonElement,
|
|
4
|
-
CustomEvent,
|
|
5
|
-
} from "../../dist/nysds.es.js";
|
|
6
|
-
|
|
7
|
-
export type { NysRadiobuttonElement, CustomEvent };
|
|
8
|
-
|
|
9
|
-
export interface NysRadiobuttonProps extends Pick<
|
|
10
|
-
React.AllHTMLAttributes<HTMLElement>,
|
|
11
|
-
| "children"
|
|
12
|
-
| "dir"
|
|
13
|
-
| "hidden"
|
|
14
|
-
| "id"
|
|
15
|
-
| "lang"
|
|
16
|
-
| "slot"
|
|
17
|
-
| "style"
|
|
18
|
-
| "title"
|
|
19
|
-
| "translate"
|
|
20
|
-
| "onClick"
|
|
21
|
-
| "onFocus"
|
|
22
|
-
| "onBlur"
|
|
23
|
-
> {
|
|
24
|
-
/** Whether this radio is selected. Only one per group can be checked. */
|
|
25
|
-
checked?: boolean;
|
|
26
|
-
|
|
27
|
-
/** Prevents interaction. */
|
|
28
|
-
disabled?: boolean;
|
|
29
|
-
|
|
30
|
-
/** Marks group as required. Set on radiogroup, not individual radios. */
|
|
31
|
-
required?: boolean;
|
|
32
|
-
|
|
33
|
-
/** Renders as tile with larger clickable area. */
|
|
34
|
-
tile?: boolean;
|
|
35
|
-
|
|
36
|
-
/** undefined */
|
|
37
|
-
other?: boolean;
|
|
38
|
-
|
|
39
|
-
/** undefined */
|
|
40
|
-
showOtherError?: boolean;
|
|
41
|
-
|
|
42
|
-
/** Suppress the internal visible `<nys-label>` (use with `labelledby` for
|
|
43
|
-
table cells). Without `labelledby` there is no visible element left to name
|
|
44
|
-
the radio from, so the accessible name falls back to the `label` string —
|
|
45
|
-
pair `hideLabel` with `labelledby` wherever a visible element exists. */
|
|
46
|
-
hideLabel?: boolean;
|
|
47
|
-
|
|
48
|
-
/** Visible label text. Required for accessibility. */
|
|
49
|
-
label?: NysRadiobuttonElement["label"];
|
|
50
|
-
|
|
51
|
-
/** Helper text below label. Use slot for custom HTML. */
|
|
52
|
-
description?: NysRadiobuttonElement["description"];
|
|
53
|
-
|
|
54
|
-
/** Unique identifier. Auto-generated if not provided. */
|
|
55
|
-
id?: NysRadiobuttonElement["id"];
|
|
56
|
-
|
|
57
|
-
/** Group name. Radios with same name are mutually exclusive. */
|
|
58
|
-
name?: NysRadiobuttonElement["name"];
|
|
59
|
-
|
|
60
|
-
/** Value submitted when this radio is selected. */
|
|
61
|
-
value?: NysRadiobuttonElement["value"];
|
|
62
|
-
|
|
63
|
-
/** Form `id` to associate with. */
|
|
64
|
-
form?: NysRadiobuttonElement["form"];
|
|
65
|
-
|
|
66
|
-
/** Radio size: `sm` (24px) or `md` (32px, default). */
|
|
67
|
-
size?: NysRadiobuttonElement["size"];
|
|
68
|
-
|
|
69
|
-
/** Id of an element in the host's light-DOM tree to borrow the accessible name
|
|
70
|
-
from (e.g. a table row `<th>`). Enables labelling a radio button that has no
|
|
71
|
-
visible label of its own.
|
|
72
|
-
|
|
73
|
-
Standalone radios only: inside a `nys-radiogroup` the group renders the
|
|
74
|
-
native inputs and names them from the group's own labels. */
|
|
75
|
-
labelledby?: NysRadiobuttonElement["labelledby"];
|
|
76
|
-
|
|
77
|
-
/** A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the class selectors or functions like the method `Document.getElementsByClassName()`. */
|
|
78
|
-
className?: string;
|
|
79
|
-
|
|
80
|
-
/** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
|
|
81
|
-
exportparts?: string;
|
|
82
|
-
|
|
83
|
-
/** Used for labels to link them with their inputs (using input id). */
|
|
84
|
-
htmlFor?: string;
|
|
85
|
-
|
|
86
|
-
/** Used to help React identify which items have changed, are added, or are removed within a list. */
|
|
87
|
-
key?: number | string;
|
|
88
|
-
|
|
89
|
-
/** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
|
|
90
|
-
part?: string;
|
|
91
|
-
|
|
92
|
-
/** A mutable ref object whose `.current` property is initialized to the passed argument (`initialValue`). The returned object will persist for the full lifetime of the component. */
|
|
93
|
-
ref?: any;
|
|
94
|
-
|
|
95
|
-
/** Allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the `Tab` key, hence the name) and determine their relative ordering for sequential focus navigation. */
|
|
96
|
-
tabIndex?: number;
|
|
97
|
-
|
|
98
|
-
/** Public validation API (Form Association)
|
|
99
|
-
-------------------------------------------------------------------------- */
|
|
100
|
-
validity?: NysRadiobuttonElement["validity"];
|
|
101
|
-
|
|
102
|
-
/** Fired when selection changes. Detail: `{id, checked, name, value}`. */
|
|
103
|
-
onNysChange?: (event: CustomEvent) => void;
|
|
104
|
-
|
|
105
|
-
/** Fired when radio gains focus. */
|
|
106
|
-
onNysFocus?: (event: CustomEvent) => void;
|
|
107
|
-
|
|
108
|
-
/** Fired when radio loses focus. */
|
|
109
|
-
onNysBlur?: (event: CustomEvent) => void;
|
|
110
|
-
|
|
111
|
-
/** Fired when "other" text input value changes. Detail: `{id, name, value}`. */
|
|
112
|
-
onNysOtherInput?: (event: CustomEvent) => void;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Radio button for single selection from mutually exclusive options.
|
|
117
|
-
* This is a READONLY data component when there is no `nys-radiogroup` wrapping the `nys-radiobutton`.
|
|
118
|
-
* Otherwise this radiobutton mockup the native grouping of radio buttons via "name" attribute.
|
|
119
|
-
* Since we can't do that naturally, we have supporting functions to keep track of keyboard navigation, a11y VO, and single radiobutton checked at all times.
|
|
120
|
-
* ---
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* ### **Events:**
|
|
124
|
-
* - **nys-change** - Fired when selection changes. Detail: `{id, checked, name, value}`.
|
|
125
|
-
* - **nys-focus** - Fired when radio gains focus.
|
|
126
|
-
* - **nys-blur** - Fired when radio loses focus.
|
|
127
|
-
* - **nys-other-input** - Fired when "other" text input value changes. Detail: `{id, name, value}`.
|
|
128
|
-
*
|
|
129
|
-
* ### **Slots:**
|
|
130
|
-
* - **description** - Custom HTML description content.
|
|
131
|
-
*/
|
|
132
|
-
export const NysRadiobutton: React.ForwardRefExoticComponent<NysRadiobuttonProps>;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef, useRef, useEffect } from "react";
|
|
2
|
-
import "../../dist/nysds.es.js";
|
|
3
|
-
import { useEventListener, useProperties } from "./react-utils.js";
|
|
4
|
-
|
|
5
|
-
export const NysRadiobutton = forwardRef((props, forwardedRef) => {
|
|
6
|
-
const ref = useRef(null);
|
|
7
|
-
const {
|
|
8
|
-
checked,
|
|
9
|
-
disabled,
|
|
10
|
-
required,
|
|
11
|
-
tile,
|
|
12
|
-
other,
|
|
13
|
-
showOtherError,
|
|
14
|
-
hideLabel,
|
|
15
|
-
label,
|
|
16
|
-
description,
|
|
17
|
-
id,
|
|
18
|
-
name,
|
|
19
|
-
value,
|
|
20
|
-
form,
|
|
21
|
-
size,
|
|
22
|
-
labelledby,
|
|
23
|
-
validity,
|
|
24
|
-
...filteredProps
|
|
25
|
-
} = props;
|
|
26
|
-
|
|
27
|
-
/** Event listeners - run once */
|
|
28
|
-
useEventListener(ref, "nys-change", props.onNysChange);
|
|
29
|
-
useEventListener(ref, "nys-focus", props.onNysFocus);
|
|
30
|
-
useEventListener(ref, "nys-blur", props.onNysBlur);
|
|
31
|
-
useEventListener(ref, "nys-other-input", props.onNysOtherInput);
|
|
32
|
-
|
|
33
|
-
/** Properties - run whenever a property has changed */
|
|
34
|
-
useProperties(ref, "validity", props.validity);
|
|
35
|
-
|
|
36
|
-
return React.createElement(
|
|
37
|
-
"nys-radiobutton",
|
|
38
|
-
{
|
|
39
|
-
ref: (node) => {
|
|
40
|
-
ref.current = node;
|
|
41
|
-
if (typeof forwardedRef === "function") {
|
|
42
|
-
forwardedRef(node);
|
|
43
|
-
} else if (forwardedRef) {
|
|
44
|
-
forwardedRef.current = node;
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
...filteredProps,
|
|
48
|
-
label: props.label,
|
|
49
|
-
description: props.description,
|
|
50
|
-
id: props.id,
|
|
51
|
-
name: props.name,
|
|
52
|
-
value: props.value,
|
|
53
|
-
form: props.form,
|
|
54
|
-
size: props.size,
|
|
55
|
-
labelledby: props.labelledby,
|
|
56
|
-
class: props.className,
|
|
57
|
-
exportparts: props.exportparts,
|
|
58
|
-
for: props.htmlFor,
|
|
59
|
-
part: props.part,
|
|
60
|
-
tabindex: props.tabIndex,
|
|
61
|
-
checked: props.checked ? true : undefined,
|
|
62
|
-
disabled: props.disabled ? true : undefined,
|
|
63
|
-
required: props.required ? true : undefined,
|
|
64
|
-
tile: props.tile ? true : undefined,
|
|
65
|
-
other: props.other ? true : undefined,
|
|
66
|
-
showOtherError: props.showOtherError ? true : undefined,
|
|
67
|
-
hideLabel: props.hideLabel ? true : undefined,
|
|
68
|
-
style: { ...props.style },
|
|
69
|
-
},
|
|
70
|
-
props.children,
|
|
71
|
-
);
|
|
72
|
-
});
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
NysRadiogroup as NysRadiogroupElement,
|
|
4
|
-
CustomEvent,
|
|
5
|
-
} from "../../dist/nysds.es.js";
|
|
6
|
-
|
|
7
|
-
export type { NysRadiogroupElement, CustomEvent };
|
|
8
|
-
|
|
9
|
-
export interface NysRadiogroupProps extends Pick<
|
|
10
|
-
React.AllHTMLAttributes<HTMLElement>,
|
|
11
|
-
| "children"
|
|
12
|
-
| "dir"
|
|
13
|
-
| "hidden"
|
|
14
|
-
| "id"
|
|
15
|
-
| "lang"
|
|
16
|
-
| "slot"
|
|
17
|
-
| "style"
|
|
18
|
-
| "title"
|
|
19
|
-
| "translate"
|
|
20
|
-
| "onClick"
|
|
21
|
-
| "onFocus"
|
|
22
|
-
| "onBlur"
|
|
23
|
-
> {
|
|
24
|
-
/** Requires a selection before form submission. */
|
|
25
|
-
required?: boolean;
|
|
26
|
-
|
|
27
|
-
/** Shows "Optional" flag. */
|
|
28
|
-
optional?: boolean;
|
|
29
|
-
|
|
30
|
-
/** Shows error message when true. */
|
|
31
|
-
showError?: boolean;
|
|
32
|
-
|
|
33
|
-
/** Renders all radiobuttons as tiles with larger clickable area. */
|
|
34
|
-
tile?: boolean;
|
|
35
|
-
|
|
36
|
-
/** undefined */
|
|
37
|
-
_showOtherError?: boolean;
|
|
38
|
-
|
|
39
|
-
/** Unique identifier. Auto-generated if not provided. */
|
|
40
|
-
id?: NysRadiogroupElement["id"];
|
|
41
|
-
|
|
42
|
-
/** Name for form submission. Auto-populated from child radiobuttons. */
|
|
43
|
-
name?: NysRadiogroupElement["name"];
|
|
44
|
-
|
|
45
|
-
/** Error message text. Shown only when `showError` is true. */
|
|
46
|
-
errorMessage?: NysRadiogroupElement["errorMessage"];
|
|
47
|
-
|
|
48
|
-
/** Visible label text for the group. */
|
|
49
|
-
label?: NysRadiogroupElement["label"];
|
|
50
|
-
|
|
51
|
-
/** Helper text below label. Use slot for custom HTML. */
|
|
52
|
-
description?: NysRadiogroupElement["description"];
|
|
53
|
-
|
|
54
|
-
/** Tooltip text shown on hover/focus of info icon. */
|
|
55
|
-
tooltip?: NysRadiogroupElement["tooltip"];
|
|
56
|
-
|
|
57
|
-
/** Form `id` to associate with. Applied to all children. */
|
|
58
|
-
form?: NysRadiogroupElement["form"];
|
|
59
|
-
|
|
60
|
-
/** Radio size for all children: `sm` (24px) or `md` (32px, default). */
|
|
61
|
-
size?: NysRadiogroupElement["size"];
|
|
62
|
-
|
|
63
|
-
/** A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the class selectors or functions like the method `Document.getElementsByClassName()`. */
|
|
64
|
-
className?: string;
|
|
65
|
-
|
|
66
|
-
/** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
|
|
67
|
-
exportparts?: string;
|
|
68
|
-
|
|
69
|
-
/** Used for labels to link them with their inputs (using input id). */
|
|
70
|
-
htmlFor?: string;
|
|
71
|
-
|
|
72
|
-
/** Used to help React identify which items have changed, are added, or are removed within a list. */
|
|
73
|
-
key?: number | string;
|
|
74
|
-
|
|
75
|
-
/** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
|
|
76
|
-
part?: string;
|
|
77
|
-
|
|
78
|
-
/** A mutable ref object whose `.current` property is initialized to the passed argument (`initialValue`). The returned object will persist for the full lifetime of the component. */
|
|
79
|
-
ref?: any;
|
|
80
|
-
|
|
81
|
-
/** Allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the `Tab` key, hence the name) and determine their relative ordering for sequential focus navigation. */
|
|
82
|
-
tabIndex?: number;
|
|
83
|
-
|
|
84
|
-
/** undefined */
|
|
85
|
-
onNysChange?: (event: CustomEvent) => void;
|
|
86
|
-
|
|
87
|
-
/** undefined */
|
|
88
|
-
onNysOtherInput?: (event: CustomEvent) => void;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Container for grouping radio buttons as a single form control.
|
|
93
|
-
* ---
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* ### **Events:**
|
|
97
|
-
* - **nys-change**
|
|
98
|
-
* - **nys-other-input**
|
|
99
|
-
*
|
|
100
|
-
* ### **Slots:**
|
|
101
|
-
* - _default_ - Default slot for `nys-radiobutton` elements.
|
|
102
|
-
* - **description** - Custom HTML description content.
|
|
103
|
-
*/
|
|
104
|
-
export const NysRadiogroup: React.ForwardRefExoticComponent<NysRadiogroupProps>;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef, useRef, useEffect } from "react";
|
|
2
|
-
import "../../dist/nysds.es.js";
|
|
3
|
-
import { useEventListener } from "./react-utils.js";
|
|
4
|
-
|
|
5
|
-
export const NysRadiogroup = forwardRef((props, forwardedRef) => {
|
|
6
|
-
const ref = useRef(null);
|
|
7
|
-
const {
|
|
8
|
-
required,
|
|
9
|
-
optional,
|
|
10
|
-
showError,
|
|
11
|
-
tile,
|
|
12
|
-
_showOtherError,
|
|
13
|
-
id,
|
|
14
|
-
name,
|
|
15
|
-
errorMessage,
|
|
16
|
-
label,
|
|
17
|
-
description,
|
|
18
|
-
tooltip,
|
|
19
|
-
form,
|
|
20
|
-
size,
|
|
21
|
-
...filteredProps
|
|
22
|
-
} = props;
|
|
23
|
-
|
|
24
|
-
/** Event listeners - run once */
|
|
25
|
-
useEventListener(ref, "nys-change", props.onNysChange);
|
|
26
|
-
useEventListener(ref, "nys-other-input", props.onNysOtherInput);
|
|
27
|
-
|
|
28
|
-
return React.createElement(
|
|
29
|
-
"nys-radiogroup",
|
|
30
|
-
{
|
|
31
|
-
ref: (node) => {
|
|
32
|
-
ref.current = node;
|
|
33
|
-
if (typeof forwardedRef === "function") {
|
|
34
|
-
forwardedRef(node);
|
|
35
|
-
} else if (forwardedRef) {
|
|
36
|
-
forwardedRef.current = node;
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
...filteredProps,
|
|
40
|
-
id: props.id,
|
|
41
|
-
name: props.name,
|
|
42
|
-
errorMessage: props.errorMessage,
|
|
43
|
-
label: props.label,
|
|
44
|
-
description: props.description,
|
|
45
|
-
tooltip: props.tooltip,
|
|
46
|
-
form: props.form,
|
|
47
|
-
size: props.size,
|
|
48
|
-
class: props.className,
|
|
49
|
-
exportparts: props.exportparts,
|
|
50
|
-
for: props.htmlFor,
|
|
51
|
-
part: props.part,
|
|
52
|
-
tabindex: props.tabIndex,
|
|
53
|
-
required: props.required ? true : undefined,
|
|
54
|
-
optional: props.optional ? true : undefined,
|
|
55
|
-
showError: props.showError ? true : undefined,
|
|
56
|
-
tile: props.tile ? true : undefined,
|
|
57
|
-
_showOtherError: props._showOtherError ? true : undefined,
|
|
58
|
-
style: { ...props.style },
|
|
59
|
-
},
|
|
60
|
-
props.children,
|
|
61
|
-
);
|
|
62
|
-
});
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
NysSelect as NysSelectElement,
|
|
4
|
-
CustomEvent,
|
|
5
|
-
Event,
|
|
6
|
-
} from "../../dist/nysds.es.js";
|
|
7
|
-
|
|
8
|
-
export type { NysSelectElement, CustomEvent, Event };
|
|
9
|
-
|
|
10
|
-
export interface NysSelectProps extends Pick<
|
|
11
|
-
React.AllHTMLAttributes<HTMLElement>,
|
|
12
|
-
| "children"
|
|
13
|
-
| "dir"
|
|
14
|
-
| "hidden"
|
|
15
|
-
| "id"
|
|
16
|
-
| "lang"
|
|
17
|
-
| "slot"
|
|
18
|
-
| "style"
|
|
19
|
-
| "title"
|
|
20
|
-
| "translate"
|
|
21
|
-
| "onClick"
|
|
22
|
-
| "onFocus"
|
|
23
|
-
| "onBlur"
|
|
24
|
-
> {
|
|
25
|
-
/** Prevents interaction. */
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
|
|
28
|
-
/** Marks as required. Shows "Required" flag and validates on blur. */
|
|
29
|
-
required?: boolean;
|
|
30
|
-
|
|
31
|
-
/** Shows "Optional" flag. Use when most fields are required. */
|
|
32
|
-
optional?: boolean;
|
|
33
|
-
|
|
34
|
-
/** Adjusts colors for dark backgrounds. */
|
|
35
|
-
inverted?: boolean;
|
|
36
|
-
|
|
37
|
-
/** Shows error message when true. Set by validation or manually. */
|
|
38
|
-
showError?: boolean;
|
|
39
|
-
|
|
40
|
-
/** Unique identifier. Auto-generated if not provided. */
|
|
41
|
-
id?: NysSelectElement["id"];
|
|
42
|
-
|
|
43
|
-
/** Name for form submission. */
|
|
44
|
-
name?: NysSelectElement["name"];
|
|
45
|
-
|
|
46
|
-
/** Visible label text. Required for accessibility. */
|
|
47
|
-
label?: NysSelectElement["label"];
|
|
48
|
-
|
|
49
|
-
/** Helper text below label. Use slot for custom HTML. */
|
|
50
|
-
description?: NysSelectElement["description"];
|
|
51
|
-
|
|
52
|
-
/** Accessible label. Used as a fallback when `label` is not provided. */
|
|
53
|
-
ariaLabel?: NysSelectElement["ariaLabel"];
|
|
54
|
-
|
|
55
|
-
/** Currently selected option value. */
|
|
56
|
-
value?: NysSelectElement["value"];
|
|
57
|
-
|
|
58
|
-
/** Tooltip text shown on hover/focus of info icon. */
|
|
59
|
-
tooltip?: NysSelectElement["tooltip"];
|
|
60
|
-
|
|
61
|
-
/** Form `id` to associate with when select is outside form element. */
|
|
62
|
-
form?: NysSelectElement["form"];
|
|
63
|
-
|
|
64
|
-
/** Error message text. Shown only when `showError` is true. */
|
|
65
|
-
errorMessage?: NysSelectElement["errorMessage"];
|
|
66
|
-
|
|
67
|
-
/** Select width: `sm` (88px), `md` (200px), `lg` (384px), `full` (100%, default). */
|
|
68
|
-
width?: NysSelectElement["width"];
|
|
69
|
-
|
|
70
|
-
/** A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the class selectors or functions like the method `Document.getElementsByClassName()`. */
|
|
71
|
-
className?: string;
|
|
72
|
-
|
|
73
|
-
/** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
|
|
74
|
-
exportparts?: string;
|
|
75
|
-
|
|
76
|
-
/** Used for labels to link them with their inputs (using input id). */
|
|
77
|
-
htmlFor?: string;
|
|
78
|
-
|
|
79
|
-
/** Used to help React identify which items have changed, are added, or are removed within a list. */
|
|
80
|
-
key?: number | string;
|
|
81
|
-
|
|
82
|
-
/** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
|
|
83
|
-
part?: string;
|
|
84
|
-
|
|
85
|
-
/** A mutable ref object whose `.current` property is initialized to the passed argument (`initialValue`). The returned object will persist for the full lifetime of the component. */
|
|
86
|
-
ref?: any;
|
|
87
|
-
|
|
88
|
-
/** Allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the `Tab` key, hence the name) and determine their relative ordering for sequential focus navigation. */
|
|
89
|
-
tabIndex?: number;
|
|
90
|
-
|
|
91
|
-
/** Fired when selection changes. Detail: `{id, value}`. */
|
|
92
|
-
onNysChange?: (event: CustomEvent) => void;
|
|
93
|
-
|
|
94
|
-
/** Fired when select gains focus. */
|
|
95
|
-
onNysFocus?: (event: CustomEvent) => void;
|
|
96
|
-
|
|
97
|
-
/** Fired when select loses focus. Triggers validation. */
|
|
98
|
-
onNysBlur?: (event: CustomEvent) => void;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Dropdown select for choosing one option from a list.
|
|
103
|
-
* ---
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
* ### **Events:**
|
|
107
|
-
* - **nys-change** - Fired when selection changes. Detail: `{id, value}`.
|
|
108
|
-
* - **nys-focus** - Fired when select gains focus.
|
|
109
|
-
* - **nys-blur** - Fired when select loses focus. Triggers validation.
|
|
110
|
-
*
|
|
111
|
-
* ### **Methods:**
|
|
112
|
-
* - **checkValidity(): _boolean_** - Functions
|
|
113
|
-
* --------------------------------------------------------------------------
|
|
114
|
-
*
|
|
115
|
-
* ### **Slots:**
|
|
116
|
-
* - _default_ - Default slot for `<option>` and `<optgroup>` elements.
|
|
117
|
-
* - **description** - Custom HTML description content below the label.
|
|
118
|
-
*/
|
|
119
|
-
export const NysSelect: React.ForwardRefExoticComponent<NysSelectProps>;
|