@nysds/components 1.21.1 → 1.22.1
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 +1562 -1029
- package/dist/.vscode/vscode.css-custom-data.json +75 -0
- package/dist/.vscode/vscode.html-custom-data.json +129 -60
- package/dist/custom-elements.json +1562 -1029
- package/dist/{nys-icon.library-BxwfG3ym-D4Dl8jc_.js → nys-icon.library-715cAMBp-BmiCym2_.js} +3 -3
- package/dist/{nys-icon.library-BxwfG3ym-D4Dl8jc_.js.map → nys-icon.library-715cAMBp-BmiCym2_.js.map} +1 -1
- package/dist/{nys-icon.library-C02yNW9R.js → nys-icon.library-C0_LOBWi.js} +2 -2
- package/dist/{nys-icon.library-C02yNW9R.js.map → nys-icon.library-C0_LOBWi.js.map} +1 -1
- package/dist/nysds.es.js +5074 -3645
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +252 -248
- 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 +43 -0
- package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenuitem.d.ts +21 -1
- 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 +31 -26
- 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,90 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { NysTab as NysTabElement, CustomEvent } from "../../dist/nysds.es.js";
|
|
3
|
-
|
|
4
|
-
export type { NysTabElement, CustomEvent };
|
|
5
|
-
|
|
6
|
-
export interface NysTabProps 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
|
-
/** Whether this tab is the currently active tab.
|
|
22
|
-
Managed by `<nys-tabgroup>`; reflected for CSS attribute selectors. */
|
|
23
|
-
selected?: boolean;
|
|
24
|
-
|
|
25
|
-
/** Whether this tab is disabled.
|
|
26
|
-
Reflected to the DOM attribute for CSS styling. */
|
|
27
|
-
disabled?: boolean;
|
|
28
|
-
|
|
29
|
-
/** Unique identifier for the tab element.
|
|
30
|
-
Reflected to the DOM attribute so `aria-controls` references resolve. */
|
|
31
|
-
id?: NysTabElement["id"];
|
|
32
|
-
|
|
33
|
-
/** Visible text label rendered inside the inner `<span>`. */
|
|
34
|
-
label?: NysTabElement["label"];
|
|
35
|
-
|
|
36
|
-
/** 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()`. */
|
|
37
|
-
className?: string;
|
|
38
|
-
|
|
39
|
-
/** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
|
|
40
|
-
exportparts?: string;
|
|
41
|
-
|
|
42
|
-
/** Used for labels to link them with their inputs (using input id). */
|
|
43
|
-
htmlFor?: string;
|
|
44
|
-
|
|
45
|
-
/** Used to help React identify which items have changed, are added, or are removed within a list. */
|
|
46
|
-
key?: number | string;
|
|
47
|
-
|
|
48
|
-
/** 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. */
|
|
49
|
-
part?: string;
|
|
50
|
-
|
|
51
|
-
/** 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. */
|
|
52
|
-
ref?: any;
|
|
53
|
-
|
|
54
|
-
/** 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. */
|
|
55
|
-
tabIndex?: number;
|
|
56
|
-
|
|
57
|
-
/** Dispatched when the tab is activated via click or Enter / Space. Bubbles and crosses shadow DOM boundaries. `detail: { id: string, label: string }` */
|
|
58
|
-
onNysTabSelect?: (event: CustomEvent) => void;
|
|
59
|
-
|
|
60
|
-
/** Dispatched when the host receives focus. Bubbles and crosses shadow DOM boundaries. `detail: { id: string }` */
|
|
61
|
-
onNysTabFocus?: (event: CustomEvent) => void;
|
|
62
|
-
|
|
63
|
-
/** Dispatched when the host loses focus. Bubbles and crosses shadow DOM boundaries. `detail: { id: string }` */
|
|
64
|
-
onNysTabBlur?: (event: CustomEvent) => void;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* `<nys-tab>` is a single tab within a `<nys-tabgroup>`.
|
|
69
|
-
*
|
|
70
|
-
* The host element carries `role="tab"`, `tabindex`, `aria-selected`,
|
|
71
|
-
* `aria-controls`, and `aria-disabled` so assistive technologies see the
|
|
72
|
-
* correct ARIA tab semantics on the element that is actually focused.
|
|
73
|
-
* `<nys-tabgroup>` manages `tabindex`, `aria-selected`, and `aria-controls`
|
|
74
|
-
* via `_applySelection`; do not set them directly on this element.
|
|
75
|
-
* ---
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* ### **Events:**
|
|
79
|
-
* - **nys-tab-select** - Dispatched when the tab is activated via click or Enter / Space. Bubbles and crosses shadow DOM boundaries. `detail: { id: string, label: string }`
|
|
80
|
-
* - **nys-tab-focus** - Dispatched when the host receives focus. Bubbles and crosses shadow DOM boundaries. `detail: { id: string }`
|
|
81
|
-
* - **nys-tab-blur** - Dispatched when the host loses focus. Bubbles and crosses shadow DOM boundaries. `detail: { id: string }`
|
|
82
|
-
*
|
|
83
|
-
* ### **Methods:**
|
|
84
|
-
* - **focus(options: _FocusOptions_): _void_** - Focuses the host element. The host carries `role="tab"` and `tabindex`,
|
|
85
|
-
* so it is the correct element for AT to land on.
|
|
86
|
-
*
|
|
87
|
-
* ### **Slots:**
|
|
88
|
-
* - _default_ - No slots; content is derived from the `label` property.
|
|
89
|
-
*/
|
|
90
|
-
export const NysTab: React.ForwardRefExoticComponent<NysTabProps>;
|
package/packages/react/NysTab.js
DELETED
|
@@ -1,39 +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 NysTab = forwardRef((props, forwardedRef) => {
|
|
6
|
-
const ref = useRef(null);
|
|
7
|
-
const { selected, disabled, id, label, ...filteredProps } = props;
|
|
8
|
-
|
|
9
|
-
/** Event listeners - run once */
|
|
10
|
-
useEventListener(ref, "nys-tab-select", props.onNysTabSelect);
|
|
11
|
-
useEventListener(ref, "nys-tab-focus", props.onNysTabFocus);
|
|
12
|
-
useEventListener(ref, "nys-tab-blur", props.onNysTabBlur);
|
|
13
|
-
|
|
14
|
-
return React.createElement(
|
|
15
|
-
"nys-tab",
|
|
16
|
-
{
|
|
17
|
-
ref: (node) => {
|
|
18
|
-
ref.current = node;
|
|
19
|
-
if (typeof forwardedRef === "function") {
|
|
20
|
-
forwardedRef(node);
|
|
21
|
-
} else if (forwardedRef) {
|
|
22
|
-
forwardedRef.current = node;
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
...filteredProps,
|
|
26
|
-
id: props.id,
|
|
27
|
-
label: props.label,
|
|
28
|
-
class: props.className,
|
|
29
|
-
exportparts: props.exportparts,
|
|
30
|
-
for: props.htmlFor,
|
|
31
|
-
part: props.part,
|
|
32
|
-
tabindex: props.tabIndex,
|
|
33
|
-
selected: props.selected ? true : undefined,
|
|
34
|
-
disabled: props.disabled ? true : undefined,
|
|
35
|
-
style: { ...props.style },
|
|
36
|
-
},
|
|
37
|
-
props.children,
|
|
38
|
-
);
|
|
39
|
-
});
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { NysTabgroup as NysTabgroupElement } from "../../dist/nysds.es.js";
|
|
3
|
-
|
|
4
|
-
export type { NysTabgroupElement };
|
|
5
|
-
|
|
6
|
-
export interface NysTabgroupProps 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
|
-
/** Unique identifier for the tabgroup element.
|
|
22
|
-
If not provided, one is auto-generated in `connectedCallback`.
|
|
23
|
-
Reflected to the DOM attribute. */
|
|
24
|
-
id?: NysTabgroupElement["id"];
|
|
25
|
-
|
|
26
|
-
/** The name of the tab group.
|
|
27
|
-
Used for form submission and accessibility purposes. */
|
|
28
|
-
name?: NysTabgroupElement["name"];
|
|
29
|
-
|
|
30
|
-
/** 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()`. */
|
|
31
|
-
className?: string;
|
|
32
|
-
|
|
33
|
-
/** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
|
|
34
|
-
exportparts?: string;
|
|
35
|
-
|
|
36
|
-
/** Used for labels to link them with their inputs (using input id). */
|
|
37
|
-
htmlFor?: string;
|
|
38
|
-
|
|
39
|
-
/** Used to help React identify which items have changed, are added, or are removed within a list. */
|
|
40
|
-
key?: number | string;
|
|
41
|
-
|
|
42
|
-
/** 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. */
|
|
43
|
-
part?: string;
|
|
44
|
-
|
|
45
|
-
/** 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. */
|
|
46
|
-
ref?: any;
|
|
47
|
-
|
|
48
|
-
/** 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. */
|
|
49
|
-
tabIndex?: number;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* `<nys-tabgroup>` is the container for `<nys-tab>` and `<nys-tabpanel>`
|
|
54
|
-
* elements.
|
|
55
|
-
*
|
|
56
|
-
* Accepts tabs and panels as flat light-DOM children in any order (interleaved
|
|
57
|
-
* or grouped). On slot change, each child is assigned `slot="tab"` or
|
|
58
|
-
* `slot="panel"` so it is projected into the correct shadow-DOM container
|
|
59
|
-
* while remaining in the light DOM, ARIA relationships are wired, and the
|
|
60
|
-
* first selected (or first) tab is activated.
|
|
61
|
-
*
|
|
62
|
-
* Scroll shadows are rendered on either side of the tab list and toggled via
|
|
63
|
-
* `ResizeObserver` and a `scroll` listener so they accurately reflect whether
|
|
64
|
-
* overflow content exists in each direction.
|
|
65
|
-
*
|
|
66
|
-
* Keyboard navigation follows the
|
|
67
|
-
* https://www.w3.org/WAI/ARIA/apg/patterns/tabs/ ARIA Tabs Pattern:
|
|
68
|
-
* - Arrow keys move focus without changing selection.
|
|
69
|
-
* - Enter / Space confirm selection on the focused tab.
|
|
70
|
-
* ---
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* ### **Slots:**
|
|
74
|
-
* - _default_ - Accepts `<nys-tab>` and `<nys-tabpanel>` children. On `slotchange` they are assigned `slot="tab"` / `slot="panel"` and projected into the tablist and panel containers; they stay in the light DOM. Any other children remain in the default slot, rendered below the panels.
|
|
75
|
-
*/
|
|
76
|
-
export const NysTabgroup: React.ForwardRefExoticComponent<NysTabgroupProps>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from "react";
|
|
2
|
-
import "../../dist/nysds.es.js";
|
|
3
|
-
|
|
4
|
-
export const NysTabgroup = forwardRef((props, forwardedRef) => {
|
|
5
|
-
const { id, name, ...filteredProps } = props;
|
|
6
|
-
|
|
7
|
-
return React.createElement(
|
|
8
|
-
"nys-tabgroup",
|
|
9
|
-
{
|
|
10
|
-
...filteredProps,
|
|
11
|
-
id: props.id,
|
|
12
|
-
name: props.name,
|
|
13
|
-
class: props.className,
|
|
14
|
-
exportparts: props.exportparts,
|
|
15
|
-
for: props.htmlFor,
|
|
16
|
-
part: props.part,
|
|
17
|
-
tabindex: props.tabIndex,
|
|
18
|
-
style: { ...props.style },
|
|
19
|
-
},
|
|
20
|
-
props.children,
|
|
21
|
-
);
|
|
22
|
-
});
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { NysTable as NysTableElement } from "../../dist/nysds.es.js";
|
|
3
|
-
|
|
4
|
-
export type { NysTableElement };
|
|
5
|
-
|
|
6
|
-
export interface NysTableProps 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
|
-
/** undefined */
|
|
22
|
-
striped?: boolean;
|
|
23
|
-
|
|
24
|
-
/** undefined */
|
|
25
|
-
sortable?: boolean;
|
|
26
|
-
|
|
27
|
-
/** undefined */
|
|
28
|
-
bordered?: boolean;
|
|
29
|
-
|
|
30
|
-
/** undefined */
|
|
31
|
-
id?: NysTableElement["id"];
|
|
32
|
-
|
|
33
|
-
/** undefined */
|
|
34
|
-
name?: NysTableElement["name"];
|
|
35
|
-
|
|
36
|
-
/** undefined */
|
|
37
|
-
download?: NysTableElement["download"];
|
|
38
|
-
|
|
39
|
-
/** 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()`. */
|
|
40
|
-
className?: string;
|
|
41
|
-
|
|
42
|
-
/** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
|
|
43
|
-
exportparts?: string;
|
|
44
|
-
|
|
45
|
-
/** Used for labels to link them with their inputs (using input id). */
|
|
46
|
-
htmlFor?: string;
|
|
47
|
-
|
|
48
|
-
/** Used to help React identify which items have changed, are added, or are removed within a list. */
|
|
49
|
-
key?: number | string;
|
|
50
|
-
|
|
51
|
-
/** 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. */
|
|
52
|
-
part?: string;
|
|
53
|
-
|
|
54
|
-
/** 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. */
|
|
55
|
-
ref?: any;
|
|
56
|
-
|
|
57
|
-
/** 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. */
|
|
58
|
-
tabIndex?: number;
|
|
59
|
-
|
|
60
|
-
/** Fired when the download button or sortable headers are clicked. */
|
|
61
|
-
onNysClick?: (event: CustomEvent) => void;
|
|
62
|
-
|
|
63
|
-
/** Fired when a sortable column header is clicked. Can be prevented by calling `event.preventDefault()` to override default sort behavior. Detail: { columnIndex: number, columnLabel: string, sortDirection: "asc" | "desc" | "none" } */
|
|
64
|
-
onNysColumnSort?: (event: CustomEvent) => void;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* `<nys-table>` is a responsive table component that can display native HTML tables,
|
|
69
|
-
* supports striped and bordered styling, sortable columns, and CSV download.
|
|
70
|
-
* ---
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* ### **Events:**
|
|
74
|
-
* - **nys-click** - Fired when the download button or sortable headers are clicked.
|
|
75
|
-
* - **nys-column-sort** - Fired when a sortable column header is clicked. Can be prevented by calling `event.preventDefault()` to override default sort behavior. Detail: { columnIndex: number, columnLabel: string, sortDirection: "asc" | "desc" | "none" }
|
|
76
|
-
*
|
|
77
|
-
* ### **Slots:**
|
|
78
|
-
* - _default_ - Accepts a `<table>` element. Only the first table is used. The table is enhanced in place and stays in the light DOM (projected through a slot, never cloned), so embedded components remain interactive and reachable by consumer CSS/JS. Its cell styling is applied from `nys-table.light.scss`, adopted once onto `document.adoptedStyleSheets`.
|
|
79
|
-
*/
|
|
80
|
-
export const NysTable: React.ForwardRefExoticComponent<NysTableProps>;
|
|
@@ -1,41 +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 NysTable = forwardRef((props, forwardedRef) => {
|
|
6
|
-
const ref = useRef(null);
|
|
7
|
-
const { striped, sortable, bordered, id, name, download, ...filteredProps } =
|
|
8
|
-
props;
|
|
9
|
-
|
|
10
|
-
/** Event listeners - run once */
|
|
11
|
-
useEventListener(ref, "nys-click", props.onNysClick);
|
|
12
|
-
useEventListener(ref, "nys-column-sort", props.onNysColumnSort);
|
|
13
|
-
|
|
14
|
-
return React.createElement(
|
|
15
|
-
"nys-table",
|
|
16
|
-
{
|
|
17
|
-
ref: (node) => {
|
|
18
|
-
ref.current = node;
|
|
19
|
-
if (typeof forwardedRef === "function") {
|
|
20
|
-
forwardedRef(node);
|
|
21
|
-
} else if (forwardedRef) {
|
|
22
|
-
forwardedRef.current = node;
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
...filteredProps,
|
|
26
|
-
id: props.id,
|
|
27
|
-
name: props.name,
|
|
28
|
-
download: props.download,
|
|
29
|
-
class: props.className,
|
|
30
|
-
exportparts: props.exportparts,
|
|
31
|
-
for: props.htmlFor,
|
|
32
|
-
part: props.part,
|
|
33
|
-
tabindex: props.tabIndex,
|
|
34
|
-
striped: props.striped ? true : undefined,
|
|
35
|
-
sortable: props.sortable ? true : undefined,
|
|
36
|
-
bordered: props.bordered ? true : undefined,
|
|
37
|
-
style: { ...props.style },
|
|
38
|
-
},
|
|
39
|
-
props.children,
|
|
40
|
-
);
|
|
41
|
-
});
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { NysTabpanel as NysTabpanelElement } from "../../dist/nysds.es.js";
|
|
3
|
-
|
|
4
|
-
export type { NysTabpanelElement };
|
|
5
|
-
|
|
6
|
-
export interface NysTabpanelProps 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
|
-
/** Unique identifier for the panel element.
|
|
22
|
-
If not provided, one is auto-generated in `connectedCallback`.
|
|
23
|
-
Reflected to the DOM attribute so `aria-controls` references on sibling
|
|
24
|
-
`<nys-tab>` elements resolve correctly. */
|
|
25
|
-
id?: NysTabpanelElement["id"];
|
|
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
|
-
|
|
49
|
-
/**
|
|
50
|
-
* `<nys-tabpanel>` is a content panel paired with a `<nys-tab>` inside a
|
|
51
|
-
* `<nys-tabgroup>`.
|
|
52
|
-
*
|
|
53
|
-
* Pairing is determined by render order: the Nth `<nys-tabpanel>` child of a
|
|
54
|
-
* `<nys-tabgroup>` corresponds to the Nth `<nys-tab>` child (or by explicit
|
|
55
|
-
* `aria-labelledby`). `aria-labelledby` and the `hidden` attribute are managed
|
|
56
|
-
* externally by `<nys-tabgroup>` via `_applySelection`; do not set them
|
|
57
|
-
* directly.
|
|
58
|
-
*
|
|
59
|
-
* The panel container is styled from the light DOM (`nys-tabpanel.light.scss`,
|
|
60
|
-
* adopted on the document) rather than a shadow-DOM wrapper. This keeps the
|
|
61
|
-
* slotted panel content in the light DOM — reachable by consumer CSS and
|
|
62
|
-
* JavaScript — and lets consumers override the panel's own styling (e.g.
|
|
63
|
-
* `nys-tabpanel { padding: 0 }`), which a shadow wrapper would prevent.
|
|
64
|
-
* ---
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
* ### **Slots:**
|
|
68
|
-
* - _default_ - Default slot for panel content. Rendered directly under the host, which is the scrollable, focusable (`tabindex="0"`) `role="tabpanel"` region.
|
|
69
|
-
*/
|
|
70
|
-
export const NysTabpanel: React.ForwardRefExoticComponent<NysTabpanelProps>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from "react";
|
|
2
|
-
import "../../dist/nysds.es.js";
|
|
3
|
-
|
|
4
|
-
export const NysTabpanel = forwardRef((props, forwardedRef) => {
|
|
5
|
-
const { id, ...filteredProps } = props;
|
|
6
|
-
|
|
7
|
-
return React.createElement(
|
|
8
|
-
"nys-tabpanel",
|
|
9
|
-
{
|
|
10
|
-
...filteredProps,
|
|
11
|
-
id: props.id,
|
|
12
|
-
class: props.className,
|
|
13
|
-
exportparts: props.exportparts,
|
|
14
|
-
for: props.htmlFor,
|
|
15
|
-
part: props.part,
|
|
16
|
-
tabindex: props.tabIndex,
|
|
17
|
-
style: { ...props.style },
|
|
18
|
-
},
|
|
19
|
-
props.children,
|
|
20
|
-
);
|
|
21
|
-
});
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
NysTextarea as NysTextareaElement,
|
|
4
|
-
CustomEvent,
|
|
5
|
-
Event,
|
|
6
|
-
} from "../../dist/nysds.es.js";
|
|
7
|
-
|
|
8
|
-
export type { NysTextareaElement, CustomEvent, Event };
|
|
9
|
-
|
|
10
|
-
export interface NysTextareaProps 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
|
-
/** Makes textarea readonly but focusable. */
|
|
29
|
-
readonly?: boolean;
|
|
30
|
-
|
|
31
|
-
/** Marks as required. Shows "Required" flag and validates on blur. */
|
|
32
|
-
required?: boolean;
|
|
33
|
-
|
|
34
|
-
/** Shows "Optional" flag. Use when most fields are required. */
|
|
35
|
-
optional?: boolean;
|
|
36
|
-
|
|
37
|
-
/** Adjusts colors for dark backgrounds. */
|
|
38
|
-
inverted?: boolean;
|
|
39
|
-
|
|
40
|
-
/** Shows error message when true. Set by validation or manually. */
|
|
41
|
-
showError?: boolean;
|
|
42
|
-
|
|
43
|
-
/** Unique identifier. Auto-generated if not provided. */
|
|
44
|
-
id?: NysTextareaElement["id"];
|
|
45
|
-
|
|
46
|
-
/** Name for form submission. */
|
|
47
|
-
name?: NysTextareaElement["name"];
|
|
48
|
-
|
|
49
|
-
/** Visible label text. Required for accessibility. */
|
|
50
|
-
label?: NysTextareaElement["label"];
|
|
51
|
-
|
|
52
|
-
/** Helper text below label. Use slot for custom HTML. */
|
|
53
|
-
description?: NysTextareaElement["description"];
|
|
54
|
-
|
|
55
|
-
/** Placeholder text. Don't use as label replacement. */
|
|
56
|
-
placeholder?: NysTextareaElement["placeholder"];
|
|
57
|
-
|
|
58
|
-
/** Current textarea value. */
|
|
59
|
-
value?: NysTextareaElement["value"];
|
|
60
|
-
|
|
61
|
-
/** Tooltip text shown on hover/focus of info icon. */
|
|
62
|
-
tooltip?: NysTextareaElement["tooltip"];
|
|
63
|
-
|
|
64
|
-
/** Form `id` to associate with when textarea is outside form element. */
|
|
65
|
-
form?: NysTextareaElement["form"];
|
|
66
|
-
|
|
67
|
-
/** Maximum character length. */
|
|
68
|
-
maxlength?: NysTextareaElement["maxlength"];
|
|
69
|
-
|
|
70
|
-
/** Textarea width: `sm` (88px), `md` (200px), `lg` (384px), `full` (100%, default). */
|
|
71
|
-
width?: NysTextareaElement["width"];
|
|
72
|
-
|
|
73
|
-
/** Visible height in lines. */
|
|
74
|
-
rows?: NysTextareaElement["rows"];
|
|
75
|
-
|
|
76
|
-
/** Resize behavior: `vertical` (default, user can resize height), `none` (fixed size). */
|
|
77
|
-
resize?: NysTextareaElement["resize"];
|
|
78
|
-
|
|
79
|
-
/** Error message text. Shown only when `showError` is true. */
|
|
80
|
-
errorMessage?: NysTextareaElement["errorMessage"];
|
|
81
|
-
|
|
82
|
-
/** Accessible label used only when no visible `label` is provided. */
|
|
83
|
-
ariaLabel?: NysTextareaElement["ariaLabel"];
|
|
84
|
-
|
|
85
|
-
/** 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()`. */
|
|
86
|
-
className?: string;
|
|
87
|
-
|
|
88
|
-
/** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
|
|
89
|
-
exportparts?: string;
|
|
90
|
-
|
|
91
|
-
/** Used for labels to link them with their inputs (using input id). */
|
|
92
|
-
htmlFor?: string;
|
|
93
|
-
|
|
94
|
-
/** Used to help React identify which items have changed, are added, or are removed within a list. */
|
|
95
|
-
key?: number | string;
|
|
96
|
-
|
|
97
|
-
/** 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. */
|
|
98
|
-
part?: string;
|
|
99
|
-
|
|
100
|
-
/** 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. */
|
|
101
|
-
ref?: any;
|
|
102
|
-
|
|
103
|
-
/** 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. */
|
|
104
|
-
tabIndex?: number;
|
|
105
|
-
|
|
106
|
-
/** Fired on input change. Detail: `{id, value}`. */
|
|
107
|
-
onNysInput?: (event: CustomEvent) => void;
|
|
108
|
-
|
|
109
|
-
/** Fired when textarea gains focus. */
|
|
110
|
-
onNysFocus?: (event: CustomEvent) => void;
|
|
111
|
-
|
|
112
|
-
/** Fired when textarea loses focus. Triggers validation. */
|
|
113
|
-
onNysBlur?: (event: CustomEvent) => void;
|
|
114
|
-
|
|
115
|
-
/** Fired when user selects text. Detail: `{id, value}`. */
|
|
116
|
-
onNysSelect?: (event: CustomEvent) => void;
|
|
117
|
-
|
|
118
|
-
/** undefined */
|
|
119
|
-
onNysSelectionchange?: (event: CustomEvent) => void;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Multi-line text input for comments, descriptions, and feedback.
|
|
124
|
-
* ---
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
* ### **Events:**
|
|
128
|
-
* - **nys-input** - Fired on input change. Detail: `{id, value}`.
|
|
129
|
-
* - **nys-focus** - Fired when textarea gains focus.
|
|
130
|
-
* - **nys-blur** - Fired when textarea loses focus. Triggers validation.
|
|
131
|
-
* - **nys-select** - Fired when user selects text. Detail: `{id, value}`.
|
|
132
|
-
* - **nys-selectionchange**
|
|
133
|
-
*
|
|
134
|
-
* ### **Methods:**
|
|
135
|
-
* - **checkValidity(): _boolean_** - Functions
|
|
136
|
-
* --------------------------------------------------------------------------
|
|
137
|
-
*
|
|
138
|
-
* ### **Slots:**
|
|
139
|
-
* - **description** - Custom HTML description content below the label.
|
|
140
|
-
*/
|
|
141
|
-
export const NysTextarea: React.ForwardRefExoticComponent<NysTextareaProps>;
|
|
@@ -1,79 +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 NysTextarea = forwardRef((props, forwardedRef) => {
|
|
6
|
-
const ref = useRef(null);
|
|
7
|
-
const {
|
|
8
|
-
disabled,
|
|
9
|
-
readonly,
|
|
10
|
-
required,
|
|
11
|
-
optional,
|
|
12
|
-
inverted,
|
|
13
|
-
showError,
|
|
14
|
-
id,
|
|
15
|
-
name,
|
|
16
|
-
label,
|
|
17
|
-
description,
|
|
18
|
-
placeholder,
|
|
19
|
-
value,
|
|
20
|
-
tooltip,
|
|
21
|
-
form,
|
|
22
|
-
maxlength,
|
|
23
|
-
width,
|
|
24
|
-
rows,
|
|
25
|
-
resize,
|
|
26
|
-
errorMessage,
|
|
27
|
-
ariaLabel,
|
|
28
|
-
...filteredProps
|
|
29
|
-
} = props;
|
|
30
|
-
|
|
31
|
-
/** Event listeners - run once */
|
|
32
|
-
useEventListener(ref, "nys-input", props.onNysInput);
|
|
33
|
-
useEventListener(ref, "nys-focus", props.onNysFocus);
|
|
34
|
-
useEventListener(ref, "nys-blur", props.onNysBlur);
|
|
35
|
-
useEventListener(ref, "nys-select", props.onNysSelect);
|
|
36
|
-
useEventListener(ref, "nys-selectionchange", props.onNysSelectionchange);
|
|
37
|
-
|
|
38
|
-
return React.createElement(
|
|
39
|
-
"nys-textarea",
|
|
40
|
-
{
|
|
41
|
-
ref: (node) => {
|
|
42
|
-
ref.current = node;
|
|
43
|
-
if (typeof forwardedRef === "function") {
|
|
44
|
-
forwardedRef(node);
|
|
45
|
-
} else if (forwardedRef) {
|
|
46
|
-
forwardedRef.current = node;
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
...filteredProps,
|
|
50
|
-
id: props.id,
|
|
51
|
-
name: props.name,
|
|
52
|
-
label: props.label,
|
|
53
|
-
description: props.description,
|
|
54
|
-
placeholder: props.placeholder,
|
|
55
|
-
value: props.value,
|
|
56
|
-
tooltip: props.tooltip,
|
|
57
|
-
form: props.form,
|
|
58
|
-
maxlength: props.maxlength,
|
|
59
|
-
width: props.width,
|
|
60
|
-
rows: props.rows,
|
|
61
|
-
resize: props.resize,
|
|
62
|
-
errorMessage: props.errorMessage,
|
|
63
|
-
ariaLabel: props.ariaLabel,
|
|
64
|
-
class: props.className,
|
|
65
|
-
exportparts: props.exportparts,
|
|
66
|
-
for: props.htmlFor,
|
|
67
|
-
part: props.part,
|
|
68
|
-
tabindex: props.tabIndex,
|
|
69
|
-
disabled: props.disabled ? true : undefined,
|
|
70
|
-
readonly: props.readonly ? true : undefined,
|
|
71
|
-
required: props.required ? true : undefined,
|
|
72
|
-
optional: props.optional ? true : undefined,
|
|
73
|
-
inverted: props.inverted ? true : undefined,
|
|
74
|
-
showError: props.showError ? true : undefined,
|
|
75
|
-
style: { ...props.style },
|
|
76
|
-
},
|
|
77
|
-
props.children,
|
|
78
|
-
);
|
|
79
|
-
});
|