@trackunit/react-form-components 0.0.80 → 0.0.82
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/index.cjs +4 -1
- package/index.js +4 -1
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -14089,7 +14089,7 @@ const useSelect = (_a) => {
|
|
|
14089
14089
|
* @returns {JSX.Element} CreatableSelect component
|
|
14090
14090
|
*/
|
|
14091
14091
|
const CreatableSelect = (props) => {
|
|
14092
|
-
const { id, dataTestId = "select", async, maxMenuHeight = 200, label, error, disabled, isMulti, value, hideLabel, description, info, options, onChange, isLoading, classNamePrefix = "", filterOption, prefix, } = props;
|
|
14092
|
+
const { id, dataTestId = "select", async, maxMenuHeight = 200, label, error, disabled, isMulti, value, hideLabel, description, info, options, onChange, isLoading, classNamePrefix = "", filterOption, prefix, onInputChange, placeholder, isClearable } = props;
|
|
14093
14093
|
const hasError = !!error;
|
|
14094
14094
|
const { refPrefix, customStyles, menuIsOpen, customComponents, menuPlacement, openMenuHandler, closeMenuHandler, orderedOptions, } = useSelect(props);
|
|
14095
14095
|
const selectProps = {
|
|
@@ -14114,6 +14114,9 @@ const CreatableSelect = (props) => {
|
|
|
14114
14114
|
isMulti: isMulti,
|
|
14115
14115
|
classNamePrefix,
|
|
14116
14116
|
isLoading,
|
|
14117
|
+
onInputChange,
|
|
14118
|
+
placeholder,
|
|
14119
|
+
isClearable,
|
|
14117
14120
|
id,
|
|
14118
14121
|
};
|
|
14119
14122
|
return (jsxRuntime.jsx(SelectContainer$1, { label: label, hideLabel: hideLabel, id: id, hasError: hasError, error: error, description: description, info: info, dataTestId: dataTestId, isDisabled: disabled, children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [prefix !== undefined && (jsxRuntime.jsx(SelectPrefix, { "data-testid": dataTestId && `${dataTestId}-prefix`, ref: refPrefix, children: prefix })), async ? (jsxRuntime.jsx(AsyncCreatableSelect$1, Object.assign({ "aria-label": label, maxMenuHeight: maxMenuHeight, "data-testid": dataTestId, components: customComponents }, props, { onMenuOpen: () => {
|
package/index.js
CHANGED
|
@@ -14063,7 +14063,7 @@ const useSelect = (_a) => {
|
|
|
14063
14063
|
* @returns {JSX.Element} CreatableSelect component
|
|
14064
14064
|
*/
|
|
14065
14065
|
const CreatableSelect = (props) => {
|
|
14066
|
-
const { id, dataTestId = "select", async, maxMenuHeight = 200, label, error, disabled, isMulti, value, hideLabel, description, info, options, onChange, isLoading, classNamePrefix = "", filterOption, prefix, } = props;
|
|
14066
|
+
const { id, dataTestId = "select", async, maxMenuHeight = 200, label, error, disabled, isMulti, value, hideLabel, description, info, options, onChange, isLoading, classNamePrefix = "", filterOption, prefix, onInputChange, placeholder, isClearable } = props;
|
|
14067
14067
|
const hasError = !!error;
|
|
14068
14068
|
const { refPrefix, customStyles, menuIsOpen, customComponents, menuPlacement, openMenuHandler, closeMenuHandler, orderedOptions, } = useSelect(props);
|
|
14069
14069
|
const selectProps = {
|
|
@@ -14088,6 +14088,9 @@ const CreatableSelect = (props) => {
|
|
|
14088
14088
|
isMulti: isMulti,
|
|
14089
14089
|
classNamePrefix,
|
|
14090
14090
|
isLoading,
|
|
14091
|
+
onInputChange,
|
|
14092
|
+
placeholder,
|
|
14093
|
+
isClearable,
|
|
14091
14094
|
id,
|
|
14092
14095
|
};
|
|
14093
14096
|
return (jsx$1(SelectContainer$1, { label: label, hideLabel: hideLabel, id: id, hasError: hasError, error: error, description: description, info: info, dataTestId: dataTestId, isDisabled: disabled, children: jsxs(Fragment$1, { children: [prefix !== undefined && (jsx$1(SelectPrefix, { "data-testid": dataTestId && `${dataTestId}-prefix`, ref: refPrefix, children: prefix })), async ? (jsx$1(AsyncCreatableSelect$1, Object.assign({ "aria-label": label, maxMenuHeight: maxMenuHeight, "data-testid": dataTestId, components: customComponents }, props, { onMenuOpen: () => {
|